adonisjs-server-stats 1.9.0 → 1.10.0
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.
- package/dist/core/index.js +24 -22
- package/dist/core/split-pane.d.ts +18 -0
- package/dist/core/trace-utils.d.ts +5 -0
- package/dist/core/types.d.ts +1 -1
- package/dist/react/{CacheSection-xH75hwXu.js → CacheSection-UCMptWyn.js} +1 -1
- package/dist/react/{CacheTab-DYmsZJJ1.js → CacheTab-CA8LB1J5.js} +1 -1
- package/dist/react/{ConfigSection-D8BO1Ry9.js → ConfigSection-DfFd-WRq.js} +1 -1
- package/dist/react/{ConfigTab-CcN-tfjv.js → ConfigTab-Bdg8YMer.js} +1 -1
- package/dist/react/{CustomPaneTab-D7_o3Ec6.js → CustomPaneTab-Bxtv_8Rw.js} +1 -1
- package/dist/react/{EmailsSection-BzlsTdPs.js → EmailsSection-CM7stSyh.js} +1 -1
- package/dist/react/{EmailsTab-Uh2CQY3o.js → EmailsTab-BDhEiomM.js} +1 -1
- package/dist/react/{EventsSection-CGQWiIdV.js → EventsSection-ByQ-9blq.js} +1 -1
- package/dist/react/{EventsTab-CC6DQzEm.js → EventsTab-CMfY98Rl.js} +1 -1
- package/dist/react/{JobsSection-D7AHQmZi.js → JobsSection-DF3qEv9O.js} +1 -1
- package/dist/react/{JobsTab-B3Lfdqed.js → JobsTab-BbrBWIOb.js} +1 -1
- package/dist/react/{LogsSection-Cly1dpvS.js → LogsSection-DcFTZY7b.js} +1 -1
- package/dist/react/{LogsTab-BbYK-iyh.js → LogsTab-CicucmVk.js} +2 -2
- package/dist/react/{OverviewSection-CkBGFEWq.js → OverviewSection-C4T1ur51.js} +1 -1
- package/dist/react/{QueriesSection-CfCpnNUD.js → QueriesSection-PswteoF9.js} +1 -1
- package/dist/react/{QueriesTab-DbBmAqzO.js → QueriesTab-osLUWd4L.js} +1 -1
- package/dist/react/RelatedLogs-DFDOyUMr.js +40 -0
- package/dist/react/RequestsSection-Nag30rEA.js +341 -0
- package/dist/react/{RoutesSection-CRqF-cNM.js → RoutesSection-BUSkM6PY.js} +1 -1
- package/dist/react/{RoutesTab-Bwreij3e.js → RoutesTab-DgVzd2PZ.js} +1 -1
- package/dist/react/TimelineTab-Covg5weo.js +220 -0
- package/dist/react/{index-CecA4IdQ.js → index-Cflz9Ebj.js} +197 -203
- package/dist/react/index.js +1 -1
- package/dist/react/react/components/shared/RelatedLogs.d.ts +7 -0
- package/dist/react/style.css +1 -1
- package/dist/src/controller/debug_controller.js +1 -1
- package/dist/src/dashboard/dashboard_controller.js +13 -0
- package/dist/src/dashboard/dashboard_store.d.ts +1 -0
- package/dist/src/dashboard/dashboard_store.js +88 -41
- package/dist/src/dashboard/migrator.js +6 -0
- package/dist/src/data/data_access.d.ts +7 -0
- package/dist/src/data/data_access.js +32 -1
- package/dist/src/debug/trace_collector.d.ts +1 -1
- package/dist/src/debug/trace_collector.js +2 -1
- package/dist/src/debug/types.d.ts +4 -0
- package/dist/src/edge/client/dashboard.js +2 -2
- package/dist/src/edge/client/debug-panel-deferred.js +1 -1
- package/dist/src/edge/client-vue/dashboard.js +4 -4
- package/dist/src/edge/client-vue/debug-panel-deferred.js +3 -3
- package/dist/src/middleware/request_tracking_middleware.d.ts +1 -0
- package/dist/src/middleware/request_tracking_middleware.js +3 -1
- package/dist/src/provider/server_stats_provider.d.ts +3 -3
- package/dist/src/provider/server_stats_provider.js +29 -15
- package/dist/src/routes/register_routes.js +7 -2
- package/dist/src/styles/components.css +81 -0
- package/dist/src/styles/debug-panel.css +9 -0
- package/dist/src/types.d.ts +1 -1
- package/dist/vue/{CacheSection-Cx-hj09X.js → CacheSection-oFAJL3mo.js} +1 -1
- package/dist/vue/{ConfigSection-CMXyryf6.js → ConfigSection-BhfJ4KqL.js} +1 -1
- package/dist/vue/{EmailsSection-DgKl9xGT.js → EmailsSection-BcNyhyHs.js} +1 -1
- package/dist/vue/{EventsSection-BNMCAim1.js → EventsSection-r60Q5Lmu.js} +1 -1
- package/dist/vue/{JobsSection-CCMgMlxd.js → JobsSection-BHL-hkQw.js} +1 -1
- package/dist/vue/{LogsSection-CvOnTxUu.js → LogsSection-DRMGzJmg.js} +1 -1
- package/dist/vue/{OverviewSection-CHgaKtUR.js → OverviewSection-CXh6Ja1B.js} +1 -1
- package/dist/vue/{QueriesSection-BnHRD98z.js → QueriesSection-IodIsCJ-.js} +1 -1
- package/dist/vue/RelatedLogs.vue_vue_type_script_setup_true_lang-CB2_TzYW.js +84 -0
- package/dist/vue/RequestsSection-BPuMdmMc.js +401 -0
- package/dist/vue/{RoutesSection-BrceOcKQ.js → RoutesSection-NKo3Rbq3.js} +1 -1
- package/dist/vue/TimelineTab-zj5Z5OdT.js +338 -0
- package/dist/vue/components/Dashboard/sections/RequestsSection.vue.d.ts +4 -0
- package/dist/vue/components/DebugPanel/tabs/TimelineTab.vue.d.ts +4 -0
- package/dist/vue/components/{Dashboard/sections/TimelineSection.vue.d.ts → shared/RelatedLogs.vue.d.ts} +5 -6
- package/dist/vue/index-Dtgysd26.js +1229 -0
- package/dist/vue/index.js +1 -1
- package/dist/vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/react/RequestsSection-Cb5a6MlT.js +0 -209
- package/dist/react/TimelineSection-B2y06kRE.js +0 -158
- package/dist/react/TimelineTab-6hthfdBB.js +0 -193
- package/dist/react/WaterfallChart-Cj73WdfM.js +0 -100
- package/dist/react/react/components/Dashboard/sections/TimelineSection.d.ts +0 -8
- package/dist/vue/RequestsSection-B-uSlM0f.js +0 -243
- package/dist/vue/TimelineSection-CfvnA2Oo.js +0 -186
- package/dist/vue/TimelineTab-Db6lKKsD.js +0 -250
- package/dist/vue/WaterfallChart.vue_vue_type_script_setup_true_lang-tZ13cNj1.js +0 -118
- package/dist/vue/index-oLxS08vN.js +0 -1235
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";function hn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Ee={},Vt=[],ft=()=>{},ul=()=>!1,Ms=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pn=e=>e.startsWith("onUpdate:"),Ne=Object.assign,vn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ga=Object.prototype.hasOwnProperty,Se=(e,t)=>ga.call(e,t),ge=Array.isArray,zt=e=>fs(e)==="[object Map]",cl=e=>fs(e)==="[object Set]",dl=e=>fs(e)==="[object Date]",ye=e=>typeof e=="function",Oe=e=>typeof e=="string",it=e=>typeof e=="symbol",Ce=e=>e!==null&&typeof e=="object",fl=e=>(Ce(e)||ye(e))&&ye(e.then)&&ye(e.catch),hl=Object.prototype.toString,fs=e=>hl.call(e),ya=e=>fs(e).slice(8,-1),pl=e=>fs(e)==="[object Object]",gn=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hs=hn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ma=/-\w/g,st=Rs(e=>e.replace(ma,t=>t.slice(1).toUpperCase())),ba=/\B([A-Z])/g,Et=Rs(e=>e.replace(ba,"-$1").toLowerCase()),Ls=Rs(e=>e.charAt(0).toUpperCase()+e.slice(1)),yn=Rs(e=>e?`on${Ls(e)}`:""),Pt=(e,t)=>!Object.is(e,t),mn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},vl=(e,t,s,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:s})},_a=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xa=e=>{const t=Oe(e)?Number(e):NaN;return isNaN(t)?e:t};let gl;const Os=()=>gl||(gl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ke(e){if(ge(e)){const t={};for(let s=0;s<e.length;s++){const l=e[s],a=Oe(l)?Sa(l):Ke(l);if(a)for(const o in a)t[o]=a[o]}return t}else if(Oe(e)||Ce(e))return e}const wa=/;(?![^(]*\))/g,$a=/:([^]+)/,ka=/\/\*[^]*?\*\//g;function Sa(e){const t={};return e.replace(ka,"").split(wa).forEach(s=>{if(s){const l=s.split($a);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function D(e){let t="";if(Oe(e))t=e;else if(ge(e))for(let s=0;s<e.length;s++){const l=D(e[s]);l&&(t+=l+" ")}else if(Ce(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Ca=hn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function yl(e){return!!e||e===""}function Ta(e,t){if(e.length!==t.length)return!1;let s=!0;for(let l=0;s&&l<e.length;l++)s=bn(e[l],t[l]);return s}function bn(e,t){if(e===t)return!0;let s=dl(e),l=dl(t);if(s||l)return s&&l?e.getTime()===t.getTime():!1;if(s=it(e),l=it(t),s||l)return e===t;if(s=ge(e),l=ge(t),s||l)return s&&l?Ta(e,t):!1;if(s=Ce(e),l=Ce(t),s||l){if(!s||!l)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const i in e){const r=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(r&&!c||!r&&c||!bn(e[i],t[i]))return!1}}return String(e)===String(t)}const ml=e=>!!(e&&e.__v_isRef===!0),f=e=>Oe(e)?e:e==null?"":ge(e)||Ce(e)&&(e.toString===hl||!ye(e.toString))?ml(e)?f(e.value):JSON.stringify(e,bl,2):String(e),bl=(e,t)=>ml(t)?bl(e,t.value):zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[l,a],o)=>(s[_n(l,o)+" =>"]=a,s),{})}:cl(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>_n(s))}:it(t)?_n(t):Ce(t)&&!ge(t)&&!pl(t)?String(t):t,_n=(e,t="")=>{var s;return it(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Qe;class Ea{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=Qe,!t&&Qe&&(this.index=(Qe.scopes||(Qe.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=Qe;try{return Qe=this,t()}finally{Qe=s}}}on(){++this._on===1&&(this.prevScope=Qe,Qe=this)}off(){this._on>0&&--this._on===0&&(Qe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,l;for(s=0,l=this.effects.length;s<l;s++)this.effects[s].stop();for(this.effects.length=0,s=0,l=this.cleanups.length;s<l;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,l=this.scopes.length;s<l;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function Pa(){return Qe}let Pe;const xn=new WeakSet;class _l{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,Qe&&Qe.active&&Qe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,xn.has(this)&&(xn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tl(this),$l(this);const t=Pe,s=rt;Pe=this,rt=!0;try{return this.fn()}finally{kl(this),Pe=t,rt=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Sn(t);this.deps=this.depsTail=void 0,Tl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?xn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){kn(this)&&this.run()}get dirty(){return kn(this)}}let xl=0,ps,vs;function wl(e,t=!1){if(e.flags|=8,t){e.next=vs,vs=e;return}e.next=ps,ps=e}function wn(){xl++}function $n(){if(--xl>0)return;if(vs){let t=vs;for(vs=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ps;){let t=ps;for(ps=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=s}}if(e)throw e}function $l(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function kl(e){let t,s=e.depsTail,l=s;for(;l;){const a=l.prevDep;l.version===-1?(l===s&&(s=a),Sn(l),Aa(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=a}e.deps=t,e.depsTail=s}function kn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Sl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Sl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gs)||(e.globalVersion=gs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!kn(e))))return;e.flags|=2;const t=e.dep,s=Pe,l=rt;Pe=e,rt=!0;try{$l(e);const a=e.fn(e._value);(t.version===0||Pt(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Pe=s,rt=l,kl(e),e.flags&=-3}}function Sn(e,t=!1){const{dep:s,prevSub:l,nextSub:a}=e;if(l&&(l.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=l,e.nextSub=void 0),s.subs===e&&(s.subs=l,!l&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Sn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Aa(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let rt=!0;const Cl=[];function ht(){Cl.push(rt),rt=!1}function pt(){const e=Cl.pop();rt=e===void 0?!0:e}function Tl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Pe;Pe=void 0;try{t()}finally{Pe=s}}}let gs=0;class Ma{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 Cn{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(!Pe||!rt||Pe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Pe)s=this.activeLink=new Ma(Pe,this),Pe.deps?(s.prevDep=Pe.depsTail,Pe.depsTail.nextDep=s,Pe.depsTail=s):Pe.deps=Pe.depsTail=s,El(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const l=s.nextDep;l.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=l),s.prevDep=Pe.depsTail,s.nextDep=void 0,Pe.depsTail.nextDep=s,Pe.depsTail=s,Pe.deps===s&&(Pe.deps=l)}return s}trigger(t){this.version++,gs++,this.notify(t)}notify(t){wn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{$n()}}}function El(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)El(l)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Tn=new WeakMap,Nt=Symbol(""),En=Symbol(""),ys=Symbol("");function Ue(e,t,s){if(rt&&Pe){let l=Tn.get(e);l||Tn.set(e,l=new Map);let a=l.get(s);a||(l.set(s,a=new Cn),a.map=l,a.key=s),a.track()}}function _t(e,t,s,l,a,o){const i=Tn.get(e);if(!i){gs++;return}const r=c=>{c&&c.trigger()};if(wn(),t==="clear")i.forEach(r);else{const c=ge(e),g=c&&gn(s);if(c&&s==="length"){const v=Number(l);i.forEach((m,p)=>{(p==="length"||p===ys||!it(p)&&p>=v)&&r(m)})}else switch((s!==void 0||i.has(void 0))&&r(i.get(s)),g&&r(i.get(ys)),t){case"add":c?g&&r(i.get("length")):(r(i.get(Nt)),zt(e)&&r(i.get(En)));break;case"delete":c||(r(i.get(Nt)),zt(e)&&r(i.get(En)));break;case"set":zt(e)&&r(i.get(Nt));break}}$n()}function Wt(e){const t=$e(e);return t===e?t:(Ue(t,"iterate",ys),nt(e)?t:t.map(ut))}function Ds(e){return Ue(e=$e(e),"iterate",ys),e}function At(e,t){return wt(e)?Qt(jt(e)?ut(t):t):ut(t)}const Ra={__proto__:null,[Symbol.iterator](){return Pn(this,Symbol.iterator,e=>At(this,e))},concat(...e){return Wt(this).concat(...e.map(t=>ge(t)?Wt(t):t))},entries(){return Pn(this,"entries",e=>(e[1]=At(this,e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,s=>s.map(l=>At(this,l)),arguments)},find(e,t){return xt(this,"find",e,t,s=>At(this,s),arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,s=>At(this,s),arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return An(this,"includes",e)},indexOf(...e){return An(this,"indexOf",e)},join(e){return Wt(this).join(e)},lastIndexOf(...e){return An(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return ms(this,"pop")},push(...e){return ms(this,"push",e)},reduce(e,...t){return Pl(this,"reduce",e,t)},reduceRight(e,...t){return Pl(this,"reduceRight",e,t)},shift(){return ms(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return ms(this,"splice",e)},toReversed(){return Wt(this).toReversed()},toSorted(e){return Wt(this).toSorted(e)},toSpliced(...e){return Wt(this).toSpliced(...e)},unshift(...e){return ms(this,"unshift",e)},values(){return Pn(this,"values",e=>At(this,e))}};function Pn(e,t,s){const l=Ds(e),a=l[t]();return l!==e&&!nt(e)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=s(o.value)),o}),a}const La=Array.prototype;function xt(e,t,s,l,a,o){const i=Ds(e),r=i!==e&&!nt(e),c=i[t];if(c!==La[t]){const m=c.apply(e,o);return r?ut(m):m}let g=s;i!==e&&(r?g=function(m,p){return s.call(this,At(e,m),p,e)}:s.length>2&&(g=function(m,p){return s.call(this,m,p,e)}));const v=c.call(i,g,l);return r&&a?a(v):v}function Pl(e,t,s,l){const a=Ds(e);let o=s;return a!==e&&(nt(e)?s.length>3&&(o=function(i,r,c){return s.call(this,i,r,c,e)}):o=function(i,r,c){return s.call(this,i,At(e,r),c,e)}),a[t](o,...l)}function An(e,t,s){const l=$e(e);Ue(l,"iterate",ys);const a=l[t](...s);return(a===-1||a===!1)&&Ln(s[0])?(s[0]=$e(s[0]),l[t](...s)):a}function ms(e,t,s=[]){ht(),wn();const l=$e(e)[t].apply(e,s);return $n(),pt(),l}const Oa=hn("__proto__,__v_isRef,__isVue"),Al=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(it));function Da(e){it(e)||(e=String(e));const t=$e(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Ml{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,l){if(s==="__v_skip")return t.__v_skip;const a=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!a;if(s==="__v_isReadonly")return a;if(s==="__v_isShallow")return o;if(s==="__v_raw")return l===(a?o?Il:Fl:o?Dl:Ol).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const i=ge(t);if(!a){let c;if(i&&(c=Ra[s]))return c;if(s==="hasOwnProperty")return Da}const r=Reflect.get(t,s,je(t)?t:l);if((it(s)?Al.has(s):Oa(s))||(a||Ue(t,"get",s),o))return r;if(je(r)){const c=i&&gn(s)?r:r.value;return a&&Ce(c)?Rn(c):c}return Ce(r)?a?Rn(r):Jt(r):r}}class Rl extends Ml{constructor(t=!1){super(!1,t)}set(t,s,l,a){let o=t[s];const i=ge(t)&&gn(s);if(!this._isShallow){const g=wt(o);if(!nt(l)&&!wt(l)&&(o=$e(o),l=$e(l)),!i&&je(o)&&!je(l))return g||(o.value=l),!0}const r=i?Number(s)<t.length:Se(t,s),c=Reflect.set(t,s,l,je(t)?t:a);return t===$e(a)&&(r?Pt(l,o)&&_t(t,"set",s,l):_t(t,"add",s,l)),c}deleteProperty(t,s){const l=Se(t,s);t[s];const a=Reflect.deleteProperty(t,s);return a&&l&&_t(t,"delete",s,void 0),a}has(t,s){const l=Reflect.has(t,s);return(!it(s)||!Al.has(s))&&Ue(t,"has",s),l}ownKeys(t){return Ue(t,"iterate",ge(t)?"length":Nt),Reflect.ownKeys(t)}}class Ll extends Ml{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Fa=new Rl,Ia=new Ll,Ba=new Rl(!0),Na=new Ll(!0),Mn=e=>e,Fs=e=>Reflect.getPrototypeOf(e);function ja(e,t,s){return function(...l){const a=this.__v_raw,o=$e(a),i=zt(o),r=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,g=a[e](...l),v=s?Mn:t?Qt:ut;return!t&&Ue(o,"iterate",c?En:Nt),Ne(Object.create(g),{next(){const{value:m,done:p}=g.next();return p?{value:m,done:p}:{value:r?[v(m[0]),v(m[1])]:v(m),done:p}}})}}function Is(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ha(e,t){const s={get(a){const o=this.__v_raw,i=$e(o),r=$e(a);e||(Pt(a,r)&&Ue(i,"get",a),Ue(i,"get",r));const{has:c}=Fs(i),g=t?Mn:e?Qt:ut;if(c.call(i,a))return g(o.get(a));if(c.call(i,r))return g(o.get(r));o!==i&&o.get(a)},get size(){const a=this.__v_raw;return!e&&Ue($e(a),"iterate",Nt),a.size},has(a){const o=this.__v_raw,i=$e(o),r=$e(a);return e||(Pt(a,r)&&Ue(i,"has",a),Ue(i,"has",r)),a===r?o.has(a):o.has(a)||o.has(r)},forEach(a,o){const i=this,r=i.__v_raw,c=$e(r),g=t?Mn:e?Qt:ut;return!e&&Ue(c,"iterate",Nt),r.forEach((v,m)=>a.call(o,g(v),g(m),i))}};return Ne(s,e?{add:Is("add"),set:Is("set"),delete:Is("delete"),clear:Is("clear")}:{add(a){!t&&!nt(a)&&!wt(a)&&(a=$e(a));const o=$e(this);return Fs(o).has.call(o,a)||(o.add(a),_t(o,"add",a,a)),this},set(a,o){!t&&!nt(o)&&!wt(o)&&(o=$e(o));const i=$e(this),{has:r,get:c}=Fs(i);let g=r.call(i,a);g||(a=$e(a),g=r.call(i,a));const v=c.call(i,a);return i.set(a,o),g?Pt(o,v)&&_t(i,"set",a,o):_t(i,"add",a,o),this},delete(a){const o=$e(this),{has:i,get:r}=Fs(o);let c=i.call(o,a);c||(a=$e(a),c=i.call(o,a)),r&&r.call(o,a);const g=o.delete(a);return c&&_t(o,"delete",a,void 0),g},clear(){const a=$e(this),o=a.size!==0,i=a.clear();return o&&_t(a,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(a=>{s[a]=ja(a,e,t)}),s}function Bs(e,t){const s=Ha(e,t);return(l,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?l:Reflect.get(Se(s,a)&&a in l?s:l,a,o)}const Ua={get:Bs(!1,!1)},qa={get:Bs(!1,!0)},Ka={get:Bs(!0,!1)},Va={get:Bs(!0,!0)},Ol=new WeakMap,Dl=new WeakMap,Fl=new WeakMap,Il=new WeakMap;function za(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wa(e){return e.__v_skip||!Object.isExtensible(e)?0:za(ya(e))}function Jt(e){return wt(e)?e:Ns(e,!1,Fa,Ua,Ol)}function Ja(e){return Ns(e,!1,Ba,qa,Dl)}function Rn(e){return Ns(e,!0,Ia,Ka,Fl)}function _1(e){return Ns(e,!0,Na,Va,Il)}function Ns(e,t,s,l,a){if(!Ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Wa(e);if(o===0)return e;const i=a.get(e);if(i)return i;const r=new Proxy(e,o===2?l:s);return a.set(e,r),r}function jt(e){return wt(e)?jt(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function nt(e){return!!(e&&e.__v_isShallow)}function Ln(e){return e?!!e.__v_raw:!1}function $e(e){const t=e&&e.__v_raw;return t?$e(t):e}function Qa(e){return!Se(e,"__v_skip")&&Object.isExtensible(e)&&vl(e,"__v_skip",!0),e}const ut=e=>Ce(e)?Jt(e):e,Qt=e=>Ce(e)?Rn(e):e;function je(e){return e?e.__v_isRef===!0:!1}function Q(e){return Ga(e,!1)}function Ga(e,t){return je(e)?e:new Ya(e,t)}class Ya{constructor(t,s){this.dep=new Cn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:$e(t),this._value=s?t:ut(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,l=this.__v_isShallow||nt(t)||wt(t);t=l?t:$e(t),Pt(t,s)&&(this._rawValue=t,this._value=l?t:ut(t),this.dep.trigger())}}function w(e){return je(e)?e.value:e}const Xa={get:(e,t,s)=>t==="__v_raw"?e:w(Reflect.get(e,t,s)),set:(e,t,s,l)=>{const a=e[t];return je(a)&&!je(s)?(a.value=s,!0):Reflect.set(e,t,s,l)}};function Bl(e){return jt(e)?e:new Proxy(e,Xa)}class Za{constructor(t,s,l){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Cn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Pe!==this)return wl(this,!0),!0}get value(){const t=this.dep.track();return Sl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let l,a;return ye(e)?l=e:(l=e.get,a=e.set),new Za(l,a,s)}const js={},Hs=new WeakMap;let Ht;function ti(e,t=!1,s=Ht){if(s){let l=Hs.get(s);l||Hs.set(s,l=[]),l.push(e)}}function si(e,t,s=Ee){const{immediate:l,deep:a,once:o,scheduler:i,augmentJob:r,call:c}=s,g=k=>a?k:nt(k)||a===!1||a===0?Mt(k,1):Mt(k);let v,m,p,x,$=!1,_=!1;if(je(e)?(m=()=>e.value,$=nt(e)):jt(e)?(m=()=>g(e),$=!0):ge(e)?(_=!0,$=e.some(k=>jt(k)||nt(k)),m=()=>e.map(k=>{if(je(k))return k.value;if(jt(k))return g(k);if(ye(k))return c?c(k,2):k()})):ye(e)?t?m=c?()=>c(e,2):e:m=()=>{if(p){ht();try{p()}finally{pt()}}const k=Ht;Ht=v;try{return c?c(e,3,[x]):e(x)}finally{Ht=k}}:m=ft,t&&a){const k=m,C=a===!0?1/0:a;m=()=>Mt(k(),C)}const E=Pa(),R=()=>{v.stop(),E&&E.active&&vn(E.effects,v)};if(o&&t){const k=t;t=(...C)=>{k(...C),R()}}let M=_?new Array(e.length).fill(js):js;const y=k=>{if(!(!(v.flags&1)||!v.dirty&&!k))if(t){const C=v.run();if(a||$||(_?C.some((J,W)=>Pt(J,M[W])):Pt(C,M))){p&&p();const J=Ht;Ht=v;try{const W=[C,M===js?void 0:_&&M[0]===js?[]:M,x];M=C,c?c(t,3,W):t(...W)}finally{Ht=J}}}else v.run()};return r&&r(y),v=new _l(m),v.scheduler=i?()=>i(y,!1):y,x=k=>ti(k,!1,v),p=v.onStop=()=>{const k=Hs.get(v);if(k){if(c)c(k,4);else for(const C of k)C();Hs.delete(v)}},t?l?y(!0):M=v.run():i?i(y.bind(null,!0),!0):v.run(),R.pause=v.pause.bind(v),R.resume=v.resume.bind(v),R.stop=R,R}function Mt(e,t=1/0,s){if(t<=0||!Ce(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,je(e))Mt(e.value,t,s);else if(ge(e))for(let l=0;l<e.length;l++)Mt(e[l],t,s);else if(cl(e)||zt(e))e.forEach(l=>{Mt(l,t,s)});else if(pl(e)){for(const l in e)Mt(e[l],t,s);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&Mt(e[l],t,s)}return e}const bs=[];let On=!1;function x1(e,...t){if(On)return;On=!0,ht();const s=bs.length?bs[bs.length-1].component:null,l=s&&s.appContext.config.warnHandler,a=ni();if(l)Gt(l,s,11,[e+t.map(o=>{var i,r;return(r=(i=o.toString)==null?void 0:i.call(o))!=null?r:JSON.stringify(o)}).join(""),s&&s.proxy,a.map(({vnode:o})=>`at <${Bo(s,o.type)}>`).join(`
|
|
1
|
+
(function(){"use strict";function fn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Ae={},Wt=[],ht=()=>{},cl=()=>!1,Ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hn=e=>e.startsWith("onUpdate:"),Ne=Object.assign,pn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ga=Object.prototype.hasOwnProperty,Ee=(e,t)=>ga.call(e,t),ve=Array.isArray,Jt=e=>vs(e)==="[object Map]",dl=e=>vs(e)==="[object Set]",fl=e=>vs(e)==="[object Date]",ge=e=>typeof e=="function",Oe=e=>typeof e=="string",at=e=>typeof e=="symbol",Pe=e=>e!==null&&typeof e=="object",hl=e=>(Pe(e)||ge(e))&&ge(e.then)&&ge(e.catch),pl=Object.prototype.toString,vs=e=>pl.call(e),ya=e=>vs(e).slice(8,-1),vl=e=>vs(e)==="[object Object]",vn=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gs=fn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Os=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ma=/-\w/g,tt=Os(e=>e.replace(ma,t=>t.slice(1).toUpperCase())),ba=/\B([A-Z])/g,Pt=Os(e=>e.replace(ba,"-$1").toLowerCase()),Fs=Os(e=>e.charAt(0).toUpperCase()+e.slice(1)),gn=Os(e=>e?`on${Fs(e)}`:""),Rt=(e,t)=>!Object.is(e,t),yn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},gl=(e,t,s,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:s})},_a=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xa=e=>{const t=Oe(e)?Number(e):NaN;return isNaN(t)?e:t};let yl;const Ds=()=>yl||(yl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ke(e){if(ve(e)){const t={};for(let s=0;s<e.length;s++){const l=e[s],a=Oe(l)?Sa(l):Ke(l);if(a)for(const o in a)t[o]=a[o]}return t}else if(Oe(e)||Pe(e))return e}const wa=/;(?![^(]*\))/g,$a=/:([^]+)/,ka=/\/\*[^]*?\*\//g;function Sa(e){const t={};return e.replace(ka,"").split(wa).forEach(s=>{if(s){const l=s.split($a);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function M(e){let t="";if(Oe(e))t=e;else if(ve(e))for(let s=0;s<e.length;s++){const l=M(e[s]);l&&(t+=l+" ")}else if(Pe(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Ca=fn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ml(e){return!!e||e===""}function Ta(e,t){if(e.length!==t.length)return!1;let s=!0;for(let l=0;s&&l<e.length;l++)s=mn(e[l],t[l]);return s}function mn(e,t){if(e===t)return!0;let s=fl(e),l=fl(t);if(s||l)return s&&l?e.getTime()===t.getTime():!1;if(s=at(e),l=at(t),s||l)return e===t;if(s=ve(e),l=ve(t),s||l)return s&&l?Ta(e,t):!1;if(s=Pe(e),l=Pe(t),s||l){if(!s||!l)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const i in e){const r=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(r&&!u||!r&&u||!mn(e[i],t[i]))return!1}}return String(e)===String(t)}const bl=e=>!!(e&&e.__v_isRef===!0),h=e=>Oe(e)?e:e==null?"":ve(e)||Pe(e)&&(e.toString===pl||!ge(e.toString))?bl(e)?h(e.value):JSON.stringify(e,_l,2):String(e),_l=(e,t)=>bl(t)?_l(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[l,a],o)=>(s[bn(l,o)+" =>"]=a,s),{})}:dl(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>bn(s))}:at(t)?bn(t):Pe(t)&&!ve(t)&&!vl(t)?String(t):t,bn=(e,t="")=>{var s;return at(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Qe;class Ea{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=Qe,!t&&Qe&&(this.index=(Qe.scopes||(Qe.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=Qe;try{return Qe=this,t()}finally{Qe=s}}}on(){++this._on===1&&(this.prevScope=Qe,Qe=this)}off(){this._on>0&&--this._on===0&&(Qe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,l;for(s=0,l=this.effects.length;s<l;s++)this.effects[s].stop();for(this.effects.length=0,s=0,l=this.cleanups.length;s<l;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,l=this.scopes.length;s<l;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function Pa(){return Qe}let Me;const _n=new WeakSet;class xl{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,Qe&&Qe.active&&Qe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_n.has(this)&&(_n.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||$l(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,El(this),kl(this);const t=Me,s=it;Me=this,it=!0;try{return this.fn()}finally{Sl(this),Me=t,it=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)kn(t);this.deps=this.depsTail=void 0,El(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_n.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$n(this)&&this.run()}get dirty(){return $n(this)}}let wl=0,ys,ms;function $l(e,t=!1){if(e.flags|=8,t){e.next=ms,ms=e;return}e.next=ys,ys=e}function xn(){wl++}function wn(){if(--wl>0)return;if(ms){let t=ms;for(ms=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ys;){let t=ys;for(ys=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=s}}if(e)throw e}function kl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Sl(e){let t,s=e.depsTail,l=s;for(;l;){const a=l.prevDep;l.version===-1?(l===s&&(s=a),kn(l),Ra(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=a}e.deps=t,e.depsTail=s}function $n(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Cl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Cl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===bs)||(e.globalVersion=bs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$n(e))))return;e.flags|=2;const t=e.dep,s=Me,l=it;Me=e,it=!0;try{kl(e);const a=e.fn(e._value);(t.version===0||Rt(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Me=s,it=l,Sl(e),e.flags&=-3}}function kn(e,t=!1){const{dep:s,prevSub:l,nextSub:a}=e;if(l&&(l.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=l,e.nextSub=void 0),s.subs===e&&(s.subs=l,!l&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)kn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Ra(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let it=!0;const Tl=[];function pt(){Tl.push(it),it=!1}function vt(){const e=Tl.pop();it=e===void 0?!0:e}function El(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Me;Me=void 0;try{t()}finally{Me=s}}}let bs=0;class Aa{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 Sn{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(!Me||!it||Me===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Me)s=this.activeLink=new Aa(Me,this),Me.deps?(s.prevDep=Me.depsTail,Me.depsTail.nextDep=s,Me.depsTail=s):Me.deps=Me.depsTail=s,Pl(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const l=s.nextDep;l.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=l),s.prevDep=Me.depsTail,s.nextDep=void 0,Me.depsTail.nextDep=s,Me.depsTail=s,Me.deps===s&&(Me.deps=l)}return s}trigger(t){this.version++,bs++,this.notify(t)}notify(t){xn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{wn()}}}function Pl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Pl(l)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Cn=new WeakMap,Ht=Symbol(""),Tn=Symbol(""),_s=Symbol("");function qe(e,t,s){if(it&&Me){let l=Cn.get(e);l||Cn.set(e,l=new Map);let a=l.get(s);a||(l.set(s,a=new Sn),a.map=l,a.key=s),a.track()}}function xt(e,t,s,l,a,o){const i=Cn.get(e);if(!i){bs++;return}const r=u=>{u&&u.trigger()};if(xn(),t==="clear")i.forEach(r);else{const u=ve(e),g=u&&vn(s);if(u&&s==="length"){const p=Number(l);i.forEach((m,v)=>{(v==="length"||v===_s||!at(v)&&v>=p)&&r(m)})}else switch((s!==void 0||i.has(void 0))&&r(i.get(s)),g&&r(i.get(_s)),t){case"add":u?g&&r(i.get("length")):(r(i.get(Ht)),Jt(e)&&r(i.get(Tn)));break;case"delete":u||(r(i.get(Ht)),Jt(e)&&r(i.get(Tn)));break;case"set":Jt(e)&&r(i.get(Ht));break}}wn()}function Qt(e){const t=ke(e);return t===e?t:(qe(t,"iterate",_s),st(e)?t:t.map(rt))}function Is(e){return qe(e=ke(e),"iterate",_s),e}function At(e,t){return $t(e)?Yt(qt(e)?rt(t):t):rt(t)}const Ma={__proto__:null,[Symbol.iterator](){return En(this,Symbol.iterator,e=>At(this,e))},concat(...e){return Qt(this).concat(...e.map(t=>ve(t)?Qt(t):t))},entries(){return En(this,"entries",e=>(e[1]=At(this,e[1]),e))},every(e,t){return wt(this,"every",e,t,void 0,arguments)},filter(e,t){return wt(this,"filter",e,t,s=>s.map(l=>At(this,l)),arguments)},find(e,t){return wt(this,"find",e,t,s=>At(this,s),arguments)},findIndex(e,t){return wt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return wt(this,"findLast",e,t,s=>At(this,s),arguments)},findLastIndex(e,t){return wt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return wt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Pn(this,"includes",e)},indexOf(...e){return Pn(this,"indexOf",e)},join(e){return Qt(this).join(e)},lastIndexOf(...e){return Pn(this,"lastIndexOf",e)},map(e,t){return wt(this,"map",e,t,void 0,arguments)},pop(){return xs(this,"pop")},push(...e){return xs(this,"push",e)},reduce(e,...t){return Rl(this,"reduce",e,t)},reduceRight(e,...t){return Rl(this,"reduceRight",e,t)},shift(){return xs(this,"shift")},some(e,t){return wt(this,"some",e,t,void 0,arguments)},splice(...e){return xs(this,"splice",e)},toReversed(){return Qt(this).toReversed()},toSorted(e){return Qt(this).toSorted(e)},toSpliced(...e){return Qt(this).toSpliced(...e)},unshift(...e){return xs(this,"unshift",e)},values(){return En(this,"values",e=>At(this,e))}};function En(e,t,s){const l=Is(e),a=l[t]();return l!==e&&!st(e)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=s(o.value)),o}),a}const La=Array.prototype;function wt(e,t,s,l,a,o){const i=Is(e),r=i!==e&&!st(e),u=i[t];if(u!==La[t]){const m=u.apply(e,o);return r?rt(m):m}let g=s;i!==e&&(r?g=function(m,v){return s.call(this,At(e,m),v,e)}:s.length>2&&(g=function(m,v){return s.call(this,m,v,e)}));const p=u.call(i,g,l);return r&&a?a(p):p}function Rl(e,t,s,l){const a=Is(e);let o=s;return a!==e&&(st(e)?s.length>3&&(o=function(i,r,u){return s.call(this,i,r,u,e)}):o=function(i,r,u){return s.call(this,i,At(e,r),u,e)}),a[t](o,...l)}function Pn(e,t,s){const l=ke(e);qe(l,"iterate",_s);const a=l[t](...s);return(a===-1||a===!1)&&Mn(s[0])?(s[0]=ke(s[0]),l[t](...s)):a}function xs(e,t,s=[]){pt(),xn();const l=ke(e)[t].apply(e,s);return wn(),vt(),l}const Oa=fn("__proto__,__v_isRef,__isVue"),Al=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(at));function Fa(e){at(e)||(e=String(e));const t=ke(this);return qe(t,"has",e),t.hasOwnProperty(e)}class Ml{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,l){if(s==="__v_skip")return t.__v_skip;const a=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!a;if(s==="__v_isReadonly")return a;if(s==="__v_isShallow")return o;if(s==="__v_raw")return l===(a?o?Bl:Il:o?Dl:Fl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const i=ve(t);if(!a){let u;if(i&&(u=Ma[s]))return u;if(s==="hasOwnProperty")return Fa}const r=Reflect.get(t,s,je(t)?t:l);if((at(s)?Al.has(s):Oa(s))||(a||qe(t,"get",s),o))return r;if(je(r)){const u=i&&vn(s)?r:r.value;return a&&Pe(u)?An(u):u}return Pe(r)?a?An(r):Gt(r):r}}class Ll extends Ml{constructor(t=!1){super(!1,t)}set(t,s,l,a){let o=t[s];const i=ve(t)&&vn(s);if(!this._isShallow){const g=$t(o);if(!st(l)&&!$t(l)&&(o=ke(o),l=ke(l)),!i&&je(o)&&!je(l))return g||(o.value=l),!0}const r=i?Number(s)<t.length:Ee(t,s),u=Reflect.set(t,s,l,je(t)?t:a);return t===ke(a)&&(r?Rt(l,o)&&xt(t,"set",s,l):xt(t,"add",s,l)),u}deleteProperty(t,s){const l=Ee(t,s);t[s];const a=Reflect.deleteProperty(t,s);return a&&l&&xt(t,"delete",s,void 0),a}has(t,s){const l=Reflect.has(t,s);return(!at(s)||!Al.has(s))&&qe(t,"has",s),l}ownKeys(t){return qe(t,"iterate",ve(t)?"length":Ht),Reflect.ownKeys(t)}}class Ol extends Ml{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Da=new Ll,Ia=new Ol,Ba=new Ll(!0),Na=new Ol(!0),Rn=e=>e,Bs=e=>Reflect.getPrototypeOf(e);function ja(e,t,s){return function(...l){const a=this.__v_raw,o=ke(a),i=Jt(o),r=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,g=a[e](...l),p=s?Rn:t?Yt:rt;return!t&&qe(o,"iterate",u?Tn:Ht),Ne(Object.create(g),{next(){const{value:m,done:v}=g.next();return v?{value:m,done:v}:{value:r?[p(m[0]),p(m[1])]:p(m),done:v}}})}}function Ns(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ha(e,t){const s={get(a){const o=this.__v_raw,i=ke(o),r=ke(a);e||(Rt(a,r)&&qe(i,"get",a),qe(i,"get",r));const{has:u}=Bs(i),g=t?Rn:e?Yt:rt;if(u.call(i,a))return g(o.get(a));if(u.call(i,r))return g(o.get(r));o!==i&&o.get(a)},get size(){const a=this.__v_raw;return!e&&qe(ke(a),"iterate",Ht),a.size},has(a){const o=this.__v_raw,i=ke(o),r=ke(a);return e||(Rt(a,r)&&qe(i,"has",a),qe(i,"has",r)),a===r?o.has(a):o.has(a)||o.has(r)},forEach(a,o){const i=this,r=i.__v_raw,u=ke(r),g=t?Rn:e?Yt:rt;return!e&&qe(u,"iterate",Ht),r.forEach((p,m)=>a.call(o,g(p),g(m),i))}};return Ne(s,e?{add:Ns("add"),set:Ns("set"),delete:Ns("delete"),clear:Ns("clear")}:{add(a){!t&&!st(a)&&!$t(a)&&(a=ke(a));const o=ke(this);return Bs(o).has.call(o,a)||(o.add(a),xt(o,"add",a,a)),this},set(a,o){!t&&!st(o)&&!$t(o)&&(o=ke(o));const i=ke(this),{has:r,get:u}=Bs(i);let g=r.call(i,a);g||(a=ke(a),g=r.call(i,a));const p=u.call(i,a);return i.set(a,o),g?Rt(o,p)&&xt(i,"set",a,o):xt(i,"add",a,o),this},delete(a){const o=ke(this),{has:i,get:r}=Bs(o);let u=i.call(o,a);u||(a=ke(a),u=i.call(o,a)),r&&r.call(o,a);const g=o.delete(a);return u&&xt(o,"delete",a,void 0),g},clear(){const a=ke(this),o=a.size!==0,i=a.clear();return o&&xt(a,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(a=>{s[a]=ja(a,e,t)}),s}function js(e,t){const s=Ha(e,t);return(l,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?l:Reflect.get(Ee(s,a)&&a in l?s:l,a,o)}const qa={get:js(!1,!1)},Ua={get:js(!1,!0)},Ka={get:js(!0,!1)},Va={get:js(!0,!0)},Fl=new WeakMap,Dl=new WeakMap,Il=new WeakMap,Bl=new WeakMap;function za(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wa(e){return e.__v_skip||!Object.isExtensible(e)?0:za(ya(e))}function Gt(e){return $t(e)?e:Hs(e,!1,Da,qa,Fl)}function Ja(e){return Hs(e,!1,Ba,Ua,Dl)}function An(e){return Hs(e,!0,Ia,Ka,Il)}function p1(e){return Hs(e,!0,Na,Va,Bl)}function Hs(e,t,s,l,a){if(!Pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Wa(e);if(o===0)return e;const i=a.get(e);if(i)return i;const r=new Proxy(e,o===2?l:s);return a.set(e,r),r}function qt(e){return $t(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function st(e){return!!(e&&e.__v_isShallow)}function Mn(e){return e?!!e.__v_raw:!1}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function Qa(e){return!Ee(e,"__v_skip")&&Object.isExtensible(e)&&gl(e,"__v_skip",!0),e}const rt=e=>Pe(e)?Gt(e):e,Yt=e=>Pe(e)?An(e):e;function je(e){return e?e.__v_isRef===!0:!1}function W(e){return Ga(e,!1)}function Ga(e,t){return je(e)?e:new Ya(e,t)}class Ya{constructor(t,s){this.dep=new Sn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:ke(t),this._value=s?t:rt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,l=this.__v_isShallow||st(t)||$t(t);t=l?t:ke(t),Rt(t,s)&&(this._rawValue=t,this._value=l?t:rt(t),this.dep.trigger())}}function w(e){return je(e)?e.value:e}const Xa={get:(e,t,s)=>t==="__v_raw"?e:w(Reflect.get(e,t,s)),set:(e,t,s,l)=>{const a=e[t];return je(a)&&!je(s)?(a.value=s,!0):Reflect.set(e,t,s,l)}};function Nl(e){return qt(e)?e:new Proxy(e,Xa)}class Za{constructor(t,s,l){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Sn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=bs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Me!==this)return $l(this,!0),!0}get value(){const t=this.dep.track();return Cl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let l,a;return ge(e)?l=e:(l=e.get,a=e.set),new Za(l,a,s)}const qs={},Us=new WeakMap;let Ut;function ti(e,t=!1,s=Ut){if(s){let l=Us.get(s);l||Us.set(s,l=[]),l.push(e)}}function si(e,t,s=Ae){const{immediate:l,deep:a,once:o,scheduler:i,augmentJob:r,call:u}=s,g=$=>a?$:st($)||a===!1||a===0?Mt($,1):Mt($);let p,m,v,b,C=!1,x=!1;if(je(e)?(m=()=>e.value,C=st(e)):qt(e)?(m=()=>g(e),C=!0):ve(e)?(x=!0,C=e.some($=>qt($)||st($)),m=()=>e.map($=>{if(je($))return $.value;if(qt($))return g($);if(ge($))return u?u($,2):$()})):ge(e)?t?m=u?()=>u(e,2):e:m=()=>{if(v){pt();try{v()}finally{vt()}}const $=Ut;Ut=p;try{return u?u(e,3,[b]):e(b)}finally{Ut=$}}:m=ht,t&&a){const $=m,T=a===!0?1/0:a;m=()=>Mt($(),T)}const P=Pa(),L=()=>{p.stop(),P&&P.active&&pn(P.effects,p)};if(o&&t){const $=t;t=(...T)=>{$(...T),L()}}let A=x?new Array(e.length).fill(qs):qs;const y=$=>{if(!(!(p.flags&1)||!p.dirty&&!$))if(t){const T=p.run();if(a||C||(x?T.some((z,te)=>Rt(z,A[te])):Rt(T,A))){v&&v();const z=Ut;Ut=p;try{const te=[T,A===qs?void 0:x&&A[0]===qs?[]:A,b];A=T,u?u(t,3,te):t(...te)}finally{Ut=z}}}else p.run()};return r&&r(y),p=new xl(m),p.scheduler=i?()=>i(y,!1):y,b=$=>ti($,!1,p),v=p.onStop=()=>{const $=Us.get(p);if($){if(u)u($,4);else for(const T of $)T();Us.delete(p)}},t?l?y(!0):A=p.run():i?i(y.bind(null,!0),!0):p.run(),L.pause=p.pause.bind(p),L.resume=p.resume.bind(p),L.stop=L,L}function Mt(e,t=1/0,s){if(t<=0||!Pe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,je(e))Mt(e.value,t,s);else if(ve(e))for(let l=0;l<e.length;l++)Mt(e[l],t,s);else if(dl(e)||Jt(e))e.forEach(l=>{Mt(l,t,s)});else if(vl(e)){for(const l in e)Mt(e[l],t,s);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&Mt(e[l],t,s)}return e}const ws=[];let Ln=!1;function v1(e,...t){if(Ln)return;Ln=!0,pt();const s=ws.length?ws[ws.length-1].component:null,l=s&&s.appContext.config.warnHandler,a=ni();if(l)Xt(l,s,11,[e+t.map(o=>{var i,r;return(r=(i=o.toString)==null?void 0:i.call(o))!=null?r:JSON.stringify(o)}).join(""),s&&s.proxy,a.map(({vnode:o})=>`at <${Bo(s,o.type)}>`).join(`
|
|
2
2
|
`),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push(`
|
|
3
|
-
`,...li(a)),console.warn(...o)}
|
|
4
|
-
`],...oi(s))}),t}function oi({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,a=` at <${Bo(e.component,e.type,l)}`,o=">"+s;return e.props?[a,...ai(e.props),o]:[a+o]}function ai(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...Nl(l,e[l]))}),s.length>3&&t.push(" ..."),t}function Nl(e,t,s){return Oe(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:je(t)?(t=Nl(e,$e(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):ye(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=$e(t),s?t:[`${e}=`,t])}function Gt(e,t,s,l){try{return l?e(...l):e()}catch(a){Yt(a,t,s)}}function vt(e,t,s,l){if(ye(e)){const a=Gt(e,t,s,l);return a&&fl(a)&&a.catch(o=>{Yt(o,t,s)}),a}if(ge(e)){const a=[];for(let o=0;o<e.length;o++)a.push(vt(e[o],t,s,l));return a}}function Yt(e,t,s,l=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ee;if(t){let r=t.parent;const c=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const v=r.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,c,g)===!1)return}r=r.parent}if(o){ht(),Gt(o,null,10,[e,c,g]),pt();return}}ii(e,s,a,l,i)}function ii(e,t,s,l=!0,a=!1){if(a)throw e;console.error(e)}const Ve=[];let gt=-1;const Xt=[];let Rt=null,Zt=0;const jl=Promise.resolve();let Us=null;function Hl(e){const t=Us||jl;return e?t.then(this?e.bind(this):e):t}function ri(e){let t=gt+1,s=Ve.length;for(;t<s;){const l=t+s>>>1,a=Ve[l],o=_s(a);o<e||o===e&&a.flags&2?t=l+1:s=l}return t}function Dn(e){if(!(e.flags&1)){const t=_s(e),s=Ve[Ve.length-1];!s||!(e.flags&2)&&t>=_s(s)?Ve.push(e):Ve.splice(ri(t),0,e),e.flags|=1,Ul()}}function Ul(){Us||(Us=jl.then(Vl))}function Fn(e){ge(e)?Xt.push(...e):Rt&&e.id===-1?Rt.splice(Zt+1,0,e):e.flags&1||(Xt.push(e),e.flags|=1),Ul()}function ql(e,t,s=gt+1){for(;s<Ve.length;s++){const l=Ve[s];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;Ve.splice(s,1),s--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function Kl(e){if(Xt.length){const t=[...new Set(Xt)].sort((s,l)=>_s(s)-_s(l));if(Xt.length=0,Rt){Rt.push(...t);return}for(Rt=t,Zt=0;Zt<Rt.length;Zt++){const s=Rt[Zt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Rt=null,Zt=0}}const _s=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Vl(e){try{for(gt=0;gt<Ve.length;gt++){const t=Ve[gt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Gt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;gt<Ve.length;gt++){const t=Ve[gt];t&&(t.flags&=-2)}gt=-1,Ve.length=0,Kl(),Us=null,(Ve.length||Xt.length)&&Vl()}}let ze=null,zl=null;function qs(e){const t=ze;return ze=e,zl=e&&e.type.__scopeId||null,t}function es(e,t=ze,s){if(!t||e._n)return e;const l=(...a)=>{l._d&&Ys(-1);const o=qs(t);let i;try{i=e(...a)}finally{qs(o),l._d&&Ys(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function Ut(e,t,s,l){const a=e.dirs,o=t&&t.dirs;for(let i=0;i<a.length;i++){const r=a[i];o&&(r.oldValue=o[i].value);let c=r.dir[l];c&&(ht(),vt(c,s,8,[e.el,r,e,t]),pt())}}function ts(e,t){if(He){let s=He.provides;const l=He.parent&&He.parent.provides;l===s&&(s=He.provides=Object.create(l)),s[e]=t}}function ue(e,t,s=!1){const l=vr();if(l||ns){let a=ns?ns._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return s&&ye(t)?t.call(l&&l.proxy):t}}const ui=Symbol.for("v-scx"),ci=()=>ue(ui);function yt(e,t,s){return Wl(e,t,s)}function Wl(e,t,s=Ee){const{immediate:l,deep:a,flush:o,once:i}=s,r=Ne({},s),c=t&&l||!t&&o!=="post";let g;if(rs){if(o==="sync"){const x=ci();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!c){const x=()=>{};return x.stop=ft,x.resume=ft,x.pause=ft,x}}const v=He;r.call=(x,$,_)=>vt(x,v,$,_);let m=!1;o==="post"?r.scheduler=x=>{Je(x,v&&v.suspense)}:o!=="sync"&&(m=!0,r.scheduler=(x,$)=>{$?x():Dn(x)}),r.augmentJob=x=>{t&&(x.flags|=4),m&&(x.flags|=2,v&&(x.id=v.uid,x.i=v))};const p=si(e,t,r);return rs&&(g?g.push(p):c&&p()),p}function di(e,t,s){const l=this.proxy,a=Oe(e)?e.includes(".")?Jl(l,e):()=>l[e]:e.bind(l,l);let o;ye(t)?o=t:(o=t.handler,s=t);const i=Cs(this),r=Wl(a,o.bind(l),s);return i(),r}function Jl(e,t){const s=t.split(".");return()=>{let l=e;for(let a=0;a<s.length&&l;a++)l=l[s[a]];return l}}const fi=Symbol("_vte"),hi=e=>e.__isTeleport,pi=Symbol("_leaveCb");function In(e,t){e.shapeFlag&6&&e.component?(e.transition=t,In(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 De(e,t){return ye(e)?Ne({name:e.name},t,{setup:e}):e}function Bn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ql(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Ks=new WeakMap;function xs(e,t,s,l,a=!1){if(ge(e)){e.forEach((_,E)=>xs(_,t&&(ge(t)?t[E]:t),s,l,a));return}if(ss(l)&&!a){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&xs(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?Zn(l.component):l.el,i=a?null:o,{i:r,r:c}=e,g=t&&t.r,v=r.refs===Ee?r.refs={}:r.refs,m=r.setupState,p=$e(m),x=m===Ee?ul:_=>Ql(v,_)?!1:Se(p,_),$=(_,E)=>!(E&&Ql(v,E));if(g!=null&&g!==c){if(Gl(t),Oe(g))v[g]=null,x(g)&&(m[g]=null);else if(je(g)){const _=t;$(g,_.k)&&(g.value=null),_.k&&(v[_.k]=null)}}if(ye(c))Gt(c,r,12,[i,v]);else{const _=Oe(c),E=je(c);if(_||E){const R=()=>{if(e.f){const M=_?x(c)?m[c]:v[c]:$()||!e.k?c.value:v[e.k];if(a)ge(M)&&vn(M,o);else if(ge(M))M.includes(o)||M.push(o);else if(_)v[c]=[o],x(c)&&(m[c]=v[c]);else{const y=[o];$(c,e.k)&&(c.value=y),e.k&&(v[e.k]=y)}}else _?(v[c]=i,x(c)&&(m[c]=i)):E&&($(c,e.k)&&(c.value=i),e.k&&(v[e.k]=i))};if(i){const M=()=>{R(),Ks.delete(e)};M.id=-1,Ks.set(e,M),Je(M,s)}else Gl(e),R()}}}function Gl(e){const t=Ks.get(e);t&&(t.flags|=8,Ks.delete(e))}const Yl=e=>e.nodeType===8;Os().requestIdleCallback,Os().cancelIdleCallback;function vi(e,t){if(Yl(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(Yl(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const ss=e=>!!e.type.__asyncLoader;function lt(e){ye(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:a=200,hydrate:o,timeout:i,suspensible:r=!0,onError:c}=e;let g=null,v,m=0;const p=()=>(m++,g=null,x()),x=()=>{let $;return g||($=g=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),c)return new Promise((E,R)=>{c(_,()=>E(p()),()=>R(_),m+1)});throw _}).then(_=>$!==g&&g?g:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),v=_,_)))};return De({name:"AsyncComponentWrapper",__asyncLoader:x,__asyncHydrate($,_,E){let R=!1;(_.bu||(_.bu=[])).push(()=>R=!0);const M=()=>{R||E()},y=o?()=>{const k=o(M,C=>vi($,C));k&&(_.bum||(_.bum=[])).push(k)}:M;v?y():x().then(()=>!_.isUnmounted&&y())},get __asyncResolved(){return v},setup(){const $=He;if(Bn($),v)return()=>Vs(v,$);const _=y=>{g=null,Yt(y,$,13,!l)};if(r&&$.suspense||rs)return x().then(y=>()=>Vs(y,$)).catch(y=>(_(y),()=>l?be(l,{error:y}):null));const E=Q(!1),R=Q(),M=Q(!!a);return a&&setTimeout(()=>{M.value=!1},a),i!=null&&setTimeout(()=>{if(!E.value&&!R.value){const y=new Error(`Async component timed out after ${i}ms.`);_(y),R.value=y}},i),x().then(()=>{E.value=!0,$.parent&&Nn($.parent.vnode)&&$.parent.update()}).catch(y=>{_(y),R.value=y}),()=>{if(E.value&&v)return Vs(v,$);if(R.value&&l)return be(l,{error:R.value});if(s&&!M.value)return Vs(s,$)}}})}function Vs(e,t){const{ref:s,props:l,children:a,ce:o}=t.vnode,i=be(e,l,a);return i.ref=s,i.ce=o,delete t.vnode.ce,i}const Nn=e=>e.type.__isKeepAlive;function gi(e,t){Xl(e,"a",t)}function yi(e,t){Xl(e,"da",t)}function Xl(e,t,s=He){const l=e.__wdc||(e.__wdc=()=>{let a=s;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(zs(t,l,s),s){let a=s.parent;for(;a&&a.parent;)Nn(a.parent.vnode)&&mi(l,t,s,a),a=a.parent}}function mi(e,t,s,l){const a=zs(t,e,l,!0);Ot(()=>{vn(l[t],a)},s)}function zs(e,t,s=He,l=!1){if(s){const a=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{ht();const r=Cs(s),c=vt(t,s,e,i);return r(),pt(),c});return l?a.unshift(o):a.push(o),o}}const $t=e=>(t,s=He)=>{(!rs||e==="sp")&&zs(e,(...l)=>t(...l),s)},bi=$t("bm"),Lt=$t("m"),_i=$t("bu"),xi=$t("u"),Zl=$t("bum"),Ot=$t("um"),wi=$t("sp"),$i=$t("rtg"),ki=$t("rtc");function Si(e,t=He){zs("ec",e,t)}const Ci="components",eo=Symbol.for("v-ndc");function Ti(e){return Oe(e)?Ei(Ci,e,!1)||e:e||eo}function Ei(e,t,s=!0,l=!1){const a=ze||He;if(a){const o=a.type;{const r=Io(o,!1);if(r&&(r===t||r===st(t)||r===Ls(st(t))))return o}const i=to(a[e]||o[e],t)||to(a.appContext[e],t);return!i&&l?o:i}}function to(e,t){return e&&(e[t]||e[st(t)]||e[Ls(st(t))])}function me(e,t,s,l){let a;const o=s,i=ge(e);if(i||Oe(e)){const r=i&&jt(e);let c=!1,g=!1;r&&(c=!nt(e),g=wt(e),e=Ds(e)),a=new Array(e.length);for(let v=0,m=e.length;v<m;v++)a[v]=t(c?g?Qt(ut(e[v])):ut(e[v]):e[v],v,void 0,o)}else if(typeof e=="number"){a=new Array(e);for(let r=0;r<e;r++)a[r]=t(r+1,r,void 0,o)}else if(Ce(e))if(e[Symbol.iterator])a=Array.from(e,(r,c)=>t(r,c,void 0,o));else{const r=Object.keys(e);a=new Array(r.length);for(let c=0,g=r.length;c<g;c++){const v=r[c];a[c]=t(e[v],v,c,o)}}else a=[];return a}function Pi(e,t,s={},l,a){if(ze.ce||ze.parent&&ss(ze.parent)&&ze.parent.ce){const g=Object.keys(s).length>0;return u(),Xe(U,null,[be("slot",s,l)],g?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),u();const i=o&&so(o(s)),r=s.key||i&&i.key,c=Xe(U,{key:(r&&!it(r)?r:`_${t}`)+(!i&&l?"_fb":"")},i||[],i&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function so(e){return e.some(t=>as(t)?!(t.type===ct||t.type===U&&!so(t.children)):!0)?e:null}const jn=e=>e?Do(e)?Zn(e):jn(e.parent):null,ws=Ne(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=>jn(e.parent),$root:e=>jn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ao(e),$forceUpdate:e=>e.f||(e.f=()=>{Dn(e.update)}),$nextTick:e=>e.n||(e.n=Hl.bind(e.proxy)),$watch:e=>di.bind(e)}),Hn=(e,t)=>e!==Ee&&!e.__isScriptSetup&&Se(e,t),Ai={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:a,props:o,accessCache:i,type:r,appContext:c}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return l[t];case 2:return a[t];case 4:return s[t];case 3:return o[t]}else{if(Hn(l,t))return i[t]=1,l[t];if(a!==Ee&&Se(a,t))return i[t]=2,a[t];if(Se(o,t))return i[t]=3,o[t];if(s!==Ee&&Se(s,t))return i[t]=4,s[t];Un&&(i[t]=0)}}const g=ws[t];let v,m;if(g)return t==="$attrs"&&Ue(e.attrs,"get",""),g(e);if((v=r.__cssModules)&&(v=v[t]))return v;if(s!==Ee&&Se(s,t))return i[t]=4,s[t];if(m=c.config.globalProperties,Se(m,t))return m[t]},set({_:e},t,s){const{data:l,setupState:a,ctx:o}=e;return Hn(a,t)?(a[t]=s,!0):l!==Ee&&Se(l,t)?(l[t]=s,!0):Se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:a,props:o,type:i}},r){let c;return!!(s[r]||e!==Ee&&r[0]!=="$"&&Se(e,r)||Hn(t,r)||Se(o,r)||Se(l,r)||Se(ws,r)||Se(a.config.globalProperties,r)||(c=i.__cssModules)&&c[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Se(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function no(e){return ge(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Un=!0;function Mi(e){const t=ao(e),s=e.proxy,l=e.ctx;Un=!1,t.beforeCreate&&lo(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:i,watch:r,provide:c,inject:g,created:v,beforeMount:m,mounted:p,beforeUpdate:x,updated:$,activated:_,deactivated:E,beforeDestroy:R,beforeUnmount:M,destroyed:y,unmounted:k,render:C,renderTracked:J,renderTriggered:W,errorCaptured:X,serverPrefetch:L,expose:V,inheritAttrs:ne,components:_e,directives:Me,filters:Le}=t;if(g&&Ri(g,l,null),i)for(const fe in i){const T=i[fe];ye(T)&&(l[fe]=T.bind(s))}if(a){const fe=a.call(s,s);Ce(fe)&&(e.data=Jt(fe))}if(Un=!0,o)for(const fe in o){const T=o[fe],A=ye(T)?T.bind(s,s):ye(T.get)?T.get.bind(s,s):ft,S=!ye(T)&&ye(T.set)?T.set.bind(s):ft,H=q({get:A,set:S});Object.defineProperty(l,fe,{enumerable:!0,configurable:!0,get:()=>H.value,set:z=>H.value=z})}if(r)for(const fe in r)oo(r[fe],l,s,fe);if(c){const fe=ye(c)?c.call(s):c;Reflect.ownKeys(fe).forEach(T=>{ts(T,fe[T])})}v&&lo(v,e,"c");function pe(fe,T){ge(T)?T.forEach(A=>fe(A.bind(s))):T&&fe(T.bind(s))}if(pe(bi,m),pe(Lt,p),pe(_i,x),pe(xi,$),pe(gi,_),pe(yi,E),pe(Si,X),pe(ki,J),pe($i,W),pe(Zl,M),pe(Ot,k),pe(wi,L),ge(V))if(V.length){const fe=e.exposed||(e.exposed={});V.forEach(T=>{Object.defineProperty(fe,T,{get:()=>s[T],set:A=>s[T]=A,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===ft&&(e.render=C),ne!=null&&(e.inheritAttrs=ne),_e&&(e.components=_e),Me&&(e.directives=Me),L&&Bn(e)}function Ri(e,t,s=ft){ge(e)&&(e=qn(e));for(const l in e){const a=e[l];let o;Ce(a)?"default"in a?o=ue(a.from||l,a.default,!0):o=ue(a.from||l):o=ue(a),je(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[l]=o}}function lo(e,t,s){vt(ge(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function oo(e,t,s,l){let a=l.includes(".")?Jl(s,l):()=>s[l];if(Oe(e)){const o=t[e];ye(o)&&yt(a,o)}else if(ye(e))yt(a,e.bind(s));else if(Ce(e))if(ge(e))e.forEach(o=>oo(o,t,s,l));else{const o=ye(e.handler)?e.handler.bind(s):t[e.handler];ye(o)&&yt(a,o,e)}}function ao(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,r=o.get(t);let c;return r?c=r:!a.length&&!s&&!l?c=t:(c={},a.length&&a.forEach(g=>Ws(c,g,i,!0)),Ws(c,t,i)),Ce(t)&&o.set(t,c),c}function Ws(e,t,s,l=!1){const{mixins:a,extends:o}=t;o&&Ws(e,o,s,!0),a&&a.forEach(i=>Ws(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const r=Li[i]||s&&s[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const Li={data:io,props:ro,emits:ro,methods:$s,computed:$s,beforeCreate:We,created:We,beforeMount:We,mounted:We,beforeUpdate:We,updated:We,beforeDestroy:We,beforeUnmount:We,destroyed:We,unmounted:We,activated:We,deactivated:We,errorCaptured:We,serverPrefetch:We,components:$s,directives:$s,watch:Di,provide:io,inject:Oi};function io(e,t){return t?e?function(){return Ne(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return $s(qn(e),qn(t))}function qn(e){if(ge(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function We(e,t){return e?[...new Set([].concat(e,t))]:t}function $s(e,t){return e?Ne(Object.create(null),e,t):t}function ro(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:Ne(Object.create(null),no(e),no(t??{})):t}function Di(e,t){if(!e)return t;if(!t)return e;const s=Ne(Object.create(null),e);for(const l in t)s[l]=We(e[l],t[l]);return s}function uo(){return{app:null,config:{isNativeTag:ul,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 Fi=0;function Ii(e,t){return function(l,a=null){ye(l)||(l=Ne({},l)),a!=null&&!Ce(a)&&(a=null);const o=uo(),i=new WeakSet,r=[];let c=!1;const g=o.app={_uid:Fi++,_component:l,_props:a,_container:null,_context:o,_instance:null,version:$r,get config(){return o.config},set config(v){},use(v,...m){return i.has(v)||(v&&ye(v.install)?(i.add(v),v.install(g,...m)):ye(v)&&(i.add(v),v(g,...m))),g},mixin(v){return o.mixins.includes(v)||o.mixins.push(v),g},component(v,m){return m?(o.components[v]=m,g):o.components[v]},directive(v,m){return m?(o.directives[v]=m,g):o.directives[v]},mount(v,m,p){if(!c){const x=g._ceVNode||be(l,a);return x.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),e(x,v,p),c=!0,g._container=v,v.__vue_app__=g,Zn(x.component)}},onUnmount(v){r.push(v)},unmount(){c&&(vt(r,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(v,m){return o.provides[v]=m,g},runWithContext(v){const m=ns;ns=g;try{return v()}finally{ns=m}}};return g}}let ns=null;const Bi=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${Et(t)}Modifiers`];function Ni(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Ee;let a=s;const o=t.startsWith("update:"),i=o&&Bi(l,t.slice(7));i&&(i.trim&&(a=s.map(v=>Oe(v)?v.trim():v)),i.number&&(a=s.map(_a)));let r,c=l[r=yn(t)]||l[r=yn(st(t))];!c&&o&&(c=l[r=yn(Et(t))]),c&&vt(c,e,6,a);const g=l[r+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,vt(g,e,6,a)}}const ji=new WeakMap;function co(e,t,s=!1){const l=s?ji:t.emitsCache,a=l.get(e);if(a!==void 0)return a;const o=e.emits;let i={},r=!1;if(!ye(e)){const c=g=>{const v=co(g,t,!0);v&&(r=!0,Ne(i,v))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!r?(Ce(e)&&l.set(e,null),null):(ge(o)?o.forEach(c=>i[c]=null):Ne(i,o),Ce(e)&&l.set(e,i),i)}function Js(e,t){return!e||!Ms(t)?!1:(t=t.slice(2).replace(/Once$/,""),Se(e,t[0].toLowerCase()+t.slice(1))||Se(e,Et(t))||Se(e,t))}function w1(){}function fo(e){const{type:t,vnode:s,proxy:l,withProxy:a,propsOptions:[o],slots:i,attrs:r,emit:c,render:g,renderCache:v,props:m,data:p,setupState:x,ctx:$,inheritAttrs:_}=e,E=qs(e);let R,M;try{if(s.shapeFlag&4){const k=a||l,C=k;R=dt(g.call(C,k,v,m,x,p,$)),M=r}else{const k=t;R=dt(k.length>1?k(m,{attrs:r,slots:i,emit:c}):k(m,null)),M=t.props?r:Ui(r)}}catch(k){Ss.length=0,Yt(k,e,1),R=be(ct)}let y=R;if(M&&_!==!1){const k=Object.keys(M),{shapeFlag:C}=y;k.length&&C&7&&(o&&k.some(pn)&&(M=qi(M,o)),y=is(y,M,!1,!0))}return s.dirs&&(y=is(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(s.dirs):s.dirs),s.transition&&In(y,s.transition),R=y,qs(E),R}function Hi(e,t=!0){let s;for(let l=0;l<e.length;l++){const a=e[l];if(as(a)){if(a.type!==ct||a.children==="v-if"){if(s)return;s=a}}else return}return s}const Ui=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ms(s))&&((t||(t={}))[s]=e[s]);return t},qi=(e,t)=>{const s={};for(const l in e)(!pn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Ki(e,t,s){const{props:l,children:a,component:o}=e,{props:i,children:r,patchFlag:c}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return l?ho(l,i,g):!!i;if(c&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const p=v[m];if(po(i,l,p)&&!Js(g,p))return!0}}}else return(a||r)&&(!r||!r.$stable)?!0:l===i?!1:l?i?ho(l,i,g):!0:!!i;return!1}function ho(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let a=0;a<l.length;a++){const o=l[a];if(po(t,e,o)&&!Js(s,o))return!0}return!1}function po(e,t,s){const l=e[s],a=t[s];return s==="style"&&Ce(l)&&Ce(a)?!bn(l,a):l!==a}function Kn({vnode:e,parent:t},s){for(;t;){const l=t.subTree;if(l.suspense&&l.suspense.activeBranch===e&&(l.el=e.el),l===e)(e=t.vnode).el=s,t=t.parent;else break}}const vo={},go=()=>Object.create(vo),yo=e=>Object.getPrototypeOf(e)===vo;function Vi(e,t,s,l=!1){const a={},o=go();e.propsDefaults=Object.create(null),mo(e,t,a,o);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);s?e.props=l?a:Ja(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function zi(e,t,s,l){const{props:a,attrs:o,vnode:{patchFlag:i}}=e,r=$e(a),[c]=e.propsOptions;let g=!1;if((l||i>0)&&!(i&16)){if(i&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let p=v[m];if(Js(e.emitsOptions,p))continue;const x=t[p];if(c)if(Se(o,p))x!==o[p]&&(o[p]=x,g=!0);else{const $=st(p);a[$]=Vn(c,r,$,x,e,!1)}else x!==o[p]&&(o[p]=x,g=!0)}}}else{mo(e,t,a,o)&&(g=!0);let v;for(const m in r)(!t||!Se(t,m)&&((v=Et(m))===m||!Se(t,v)))&&(c?s&&(s[m]!==void 0||s[v]!==void 0)&&(a[m]=Vn(c,r,m,void 0,e,!0)):delete a[m]);if(o!==r)for(const m in o)(!t||!Se(t,m))&&(delete o[m],g=!0)}g&&_t(e.attrs,"set","")}function mo(e,t,s,l){const[a,o]=e.propsOptions;let i=!1,r;if(t)for(let c in t){if(hs(c))continue;const g=t[c];let v;a&&Se(a,v=st(c))?!o||!o.includes(v)?s[v]=g:(r||(r={}))[v]=g:Js(e.emitsOptions,c)||(!(c in l)||g!==l[c])&&(l[c]=g,i=!0)}if(o){const c=$e(s),g=r||Ee;for(let v=0;v<o.length;v++){const m=o[v];s[m]=Vn(a,c,m,g[m],e,!Se(g,m))}}return i}function Vn(e,t,s,l,a,o){const i=e[s];if(i!=null){const r=Se(i,"default");if(r&&l===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&ye(c)){const{propsDefaults:g}=a;if(s in g)l=g[s];else{const v=Cs(a);l=g[s]=c.call(null,t),v()}}else l=c;a.ce&&a.ce._setProp(s,l)}i[0]&&(o&&!r?l=!1:i[1]&&(l===""||l===Et(s))&&(l=!0))}return l}const Wi=new WeakMap;function bo(e,t,s=!1){const l=s?Wi:t.propsCache,a=l.get(e);if(a)return a;const o=e.props,i={},r=[];let c=!1;if(!ye(e)){const v=m=>{c=!0;const[p,x]=bo(m,t,!0);Ne(i,p),x&&r.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!o&&!c)return Ce(e)&&l.set(e,Vt),Vt;if(ge(o))for(let v=0;v<o.length;v++){const m=st(o[v]);_o(m)&&(i[m]=Ee)}else if(o)for(const v in o){const m=st(v);if(_o(m)){const p=o[v],x=i[m]=ge(p)||ye(p)?{type:p}:Ne({},p),$=x.type;let _=!1,E=!0;if(ge($))for(let R=0;R<$.length;++R){const M=$[R],y=ye(M)&&M.name;if(y==="Boolean"){_=!0;break}else y==="String"&&(E=!1)}else _=ye($)&&$.name==="Boolean";x[0]=_,x[1]=E,(_||Se(x,"default"))&&r.push(m)}}const g=[i,r];return Ce(e)&&l.set(e,g),g}function _o(e){return e[0]!=="$"&&!hs(e)}const zn=e=>e==="_"||e==="_ctx"||e==="$stable",Wn=e=>ge(e)?e.map(dt):[dt(e)],Ji=(e,t,s)=>{if(t._n)return t;const l=es((...a)=>Wn(t(...a)),s);return l._c=!1,l},xo=(e,t,s)=>{const l=e._ctx;for(const a in e){if(zn(a))continue;const o=e[a];if(ye(o))t[a]=Ji(a,o,l);else if(o!=null){const i=Wn(o);t[a]=()=>i}}},wo=(e,t)=>{const s=Wn(t);e.slots.default=()=>s},$o=(e,t,s)=>{for(const l in t)(s||!zn(l))&&(e[l]=t[l])},Qi=(e,t,s)=>{const l=e.slots=go();if(e.vnode.shapeFlag&32){const a=t._;a?($o(l,t,s),s&&vl(l,"_",a,!0)):xo(t,l)}else t&&wo(e,t)},Gi=(e,t,s)=>{const{vnode:l,slots:a}=e;let o=!0,i=Ee;if(l.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:$o(a,t,s):(o=!t.$stable,xo(t,a)),i=t}else t&&(wo(e,t),i={default:1});if(o)for(const r in a)!zn(r)&&i[r]==null&&delete a[r]},Je=ar;function Yi(e){return Xi(e)}function Xi(e,t){const s=Os();s.__VUE__=!0;const{insert:l,remove:a,patchProp:o,createElement:i,createText:r,createComment:c,setText:g,setElementText:v,parentNode:m,nextSibling:p,setScopeId:x=ft,insertStaticContent:$}=e,_=(h,b,P,j=null,F=null,I=null,Z=void 0,Y=null,B=!!b.dynamicChildren)=>{if(h===b)return;h&&!Dt(h,b)&&(j=ie(h),z(h,F,I,!0),h=null),b.patchFlag===-2&&(B=!1,b.dynamicChildren=null);const{type:N,ref:de,shapeFlag:se}=b;switch(N){case Qs:E(h,b,P,j);break;case ct:R(h,b,P,j);break;case Gs:h==null&&M(b,P,j,Z);break;case U:_e(h,b,P,j,F,I,Z,Y,B);break;default:se&1?C(h,b,P,j,F,I,Z,Y,B):se&6?Me(h,b,P,j,F,I,Z,Y,B):(se&64||se&128)&&N.process(h,b,P,j,F,I,Z,Y,B,Tt)}de!=null&&F?xs(de,h&&h.ref,I,b||h,!b):de==null&&h&&h.ref!=null&&xs(h.ref,null,I,h,!0)},E=(h,b,P,j)=>{if(h==null)l(b.el=r(b.children),P,j);else{const F=b.el=h.el;b.children!==h.children&&g(F,b.children)}},R=(h,b,P,j)=>{h==null?l(b.el=c(b.children||""),P,j):b.el=h.el},M=(h,b,P,j)=>{[h.el,h.anchor]=$(h.children,b,P,j,h.el,h.anchor)},y=({el:h,anchor:b},P,j)=>{let F;for(;h&&h!==b;)F=p(h),l(h,P,j),h=F;l(b,P,j)},k=({el:h,anchor:b})=>{let P;for(;h&&h!==b;)P=p(h),a(h),h=P;a(b)},C=(h,b,P,j,F,I,Z,Y,B)=>{if(b.type==="svg"?Z="svg":b.type==="math"&&(Z="mathml"),h==null)J(b,P,j,F,I,Z,Y,B);else{const N=h.el&&h.el._isVueCE?h.el:null;try{N&&N._beginPatch(),L(h,b,F,I,Z,Y,B)}finally{N&&N._endPatch()}}},J=(h,b,P,j,F,I,Z,Y)=>{let B,N;const{props:de,shapeFlag:se,transition:re,dirs:ve}=h;if(B=h.el=i(h.type,I,de&&de.is,de),se&8?v(B,h.children):se&16&&X(h.children,B,null,j,F,Jn(h,I),Z,Y),ve&&Ut(h,null,j,"created"),W(B,h,h.scopeId,Z,j),de){for(const Te in de)Te!=="value"&&!hs(Te)&&o(B,Te,null,de[Te],I,j);"value"in de&&o(B,"value",null,de.value,I),(N=de.onVnodeBeforeMount)&&mt(N,j,h)}ve&&Ut(h,null,j,"beforeMount");const we=Zi(F,re);we&&re.beforeEnter(B),l(B,b,P),((N=de&&de.onVnodeMounted)||we||ve)&&Je(()=>{N&&mt(N,j,h),we&&re.enter(B),ve&&Ut(h,null,j,"mounted")},F)},W=(h,b,P,j,F)=>{if(P&&x(h,P),j)for(let I=0;I<j.length;I++)x(h,j[I]);if(F){let I=F.subTree;if(b===I||Eo(I.type)&&(I.ssContent===b||I.ssFallback===b)){const Z=F.vnode;W(h,Z,Z.scopeId,Z.slotScopeIds,F.parent)}}},X=(h,b,P,j,F,I,Z,Y,B=0)=>{for(let N=B;N<h.length;N++){const de=h[N]=Y?kt(h[N]):dt(h[N]);_(null,de,b,P,j,F,I,Z,Y)}},L=(h,b,P,j,F,I,Z)=>{const Y=b.el=h.el;let{patchFlag:B,dynamicChildren:N,dirs:de}=b;B|=h.patchFlag&16;const se=h.props||Ee,re=b.props||Ee;let ve;if(P&&qt(P,!1),(ve=re.onVnodeBeforeUpdate)&&mt(ve,P,b,h),de&&Ut(b,h,P,"beforeUpdate"),P&&qt(P,!0),(se.innerHTML&&re.innerHTML==null||se.textContent&&re.textContent==null)&&v(Y,""),N?V(h.dynamicChildren,N,Y,P,j,Jn(b,F),I):Z||T(h,b,Y,null,P,j,Jn(b,F),I,!1),B>0){if(B&16)ne(Y,se,re,P,F);else if(B&2&&se.class!==re.class&&o(Y,"class",null,re.class,F),B&4&&o(Y,"style",se.style,re.style,F),B&8){const we=b.dynamicProps;for(let Te=0;Te<we.length;Te++){const ke=we[Te],qe=se[ke],Be=re[ke];(Be!==qe||ke==="value")&&o(Y,ke,qe,Be,F,P)}}B&1&&h.children!==b.children&&v(Y,b.children)}else!Z&&N==null&&ne(Y,se,re,P,F);((ve=re.onVnodeUpdated)||de)&&Je(()=>{ve&&mt(ve,P,b,h),de&&Ut(b,h,P,"updated")},j)},V=(h,b,P,j,F,I,Z)=>{for(let Y=0;Y<b.length;Y++){const B=h[Y],N=b[Y],de=B.el&&(B.type===U||!Dt(B,N)||B.shapeFlag&198)?m(B.el):P;_(B,N,de,null,j,F,I,Z,!0)}},ne=(h,b,P,j,F)=>{if(b!==P){if(b!==Ee)for(const I in b)!hs(I)&&!(I in P)&&o(h,I,b[I],null,F,j);for(const I in P){if(hs(I))continue;const Z=P[I],Y=b[I];Z!==Y&&I!=="value"&&o(h,I,Y,Z,F,j)}"value"in P&&o(h,"value",b.value,P.value,F)}},_e=(h,b,P,j,F,I,Z,Y,B)=>{const N=b.el=h?h.el:r(""),de=b.anchor=h?h.anchor:r("");let{patchFlag:se,dynamicChildren:re,slotScopeIds:ve}=b;ve&&(Y=Y?Y.concat(ve):ve),h==null?(l(N,P,j),l(de,P,j),X(b.children||[],P,de,F,I,Z,Y,B)):se>0&&se&64&&re&&h.dynamicChildren&&h.dynamicChildren.length===re.length?(V(h.dynamicChildren,re,P,F,I,Z,Y),(b.key!=null||F&&b===F.subTree)&&ko(h,b,!0)):T(h,b,P,de,F,I,Z,Y,B)},Me=(h,b,P,j,F,I,Z,Y,B)=>{b.slotScopeIds=Y,h==null?b.shapeFlag&512?F.ctx.activate(b,P,j,Z,B):Le(b,P,j,F,I,Z,B):Re(h,b,B)},Le=(h,b,P,j,F,I,Z)=>{const Y=h.component=pr(h,j,F);if(Nn(h)&&(Y.ctx.renderer=Tt),gr(Y,!1,Z),Y.asyncDep){if(F&&F.registerDep(Y,pe,Z),!h.el){const B=Y.subTree=be(ct);R(null,B,b,P),h.placeholder=B.el}}else pe(Y,h,b,P,F,I,Z)},Re=(h,b,P)=>{const j=b.component=h.component;if(Ki(h,b,P))if(j.asyncDep&&!j.asyncResolved){fe(j,b,P);return}else j.next=b,j.update();else b.el=h.el,j.vnode=b},pe=(h,b,P,j,F,I,Z)=>{const Y=()=>{if(h.isMounted){let{next:se,bu:re,u:ve,parent:we,vnode:Te}=h;{const Ye=So(h);if(Ye){se&&(se.el=Te.el,fe(h,se,Z)),Ye.asyncDep.then(()=>{Je(()=>{h.isUnmounted||N()},F)});return}}let ke=se,qe;qt(h,!1),se?(se.el=Te.el,fe(h,se,Z)):se=Te,re&&mn(re),(qe=se.props&&se.props.onVnodeBeforeUpdate)&&mt(qe,we,se,Te),qt(h,!0);const Be=fo(h),et=h.subTree;h.subTree=Be,_(et,Be,m(et.el),ie(et),h,F,I),se.el=Be.el,ke===null&&Kn(h,Be.el),ve&&Je(ve,F),(qe=se.props&&se.props.onVnodeUpdated)&&Je(()=>mt(qe,we,se,Te),F)}else{let se;const{el:re,props:ve}=b,{bm:we,m:Te,parent:ke,root:qe,type:Be}=h,et=ss(b);qt(h,!1),we&&mn(we),!et&&(se=ve&&ve.onVnodeBeforeMount)&&mt(se,ke,b),qt(h,!0);{qe.ce&&qe.ce._hasShadowRoot()&&qe.ce._injectChildStyle(Be);const Ye=h.subTree=fo(h);_(null,Ye,P,j,h,F,I),b.el=Ye.el}if(Te&&Je(Te,F),!et&&(se=ve&&ve.onVnodeMounted)){const Ye=b;Je(()=>mt(se,ke,Ye),F)}(b.shapeFlag&256||ke&&ss(ke.vnode)&&ke.vnode.shapeFlag&256)&&h.a&&Je(h.a,F),h.isMounted=!0,b=P=j=null}};h.scope.on();const B=h.effect=new _l(Y);h.scope.off();const N=h.update=B.run.bind(B),de=h.job=B.runIfDirty.bind(B);de.i=h,de.id=h.uid,B.scheduler=()=>Dn(de),qt(h,!0),N()},fe=(h,b,P)=>{b.component=h;const j=h.vnode.props;h.vnode=b,h.next=null,zi(h,b.props,j,P),Gi(h,b.children,P),ht(),ql(h),pt()},T=(h,b,P,j,F,I,Z,Y,B=!1)=>{const N=h&&h.children,de=h?h.shapeFlag:0,se=b.children,{patchFlag:re,shapeFlag:ve}=b;if(re>0){if(re&128){S(N,se,P,j,F,I,Z,Y,B);return}else if(re&256){A(N,se,P,j,F,I,Z,Y,B);return}}ve&8?(de&16&&G(N,F,I),se!==N&&v(P,se)):de&16?ve&16?S(N,se,P,j,F,I,Z,Y,B):G(N,F,I,!0):(de&8&&v(P,""),ve&16&&X(se,P,j,F,I,Z,Y,B))},A=(h,b,P,j,F,I,Z,Y,B)=>{h=h||Vt,b=b||Vt;const N=h.length,de=b.length,se=Math.min(N,de);let re;for(re=0;re<se;re++){const ve=b[re]=B?kt(b[re]):dt(b[re]);_(h[re],ve,P,null,F,I,Z,Y,B)}N>de?G(h,F,I,!0,!1,se):X(b,P,j,F,I,Z,Y,B,se)},S=(h,b,P,j,F,I,Z,Y,B)=>{let N=0;const de=b.length;let se=h.length-1,re=de-1;for(;N<=se&&N<=re;){const ve=h[N],we=b[N]=B?kt(b[N]):dt(b[N]);if(Dt(ve,we))_(ve,we,P,null,F,I,Z,Y,B);else break;N++}for(;N<=se&&N<=re;){const ve=h[se],we=b[re]=B?kt(b[re]):dt(b[re]);if(Dt(ve,we))_(ve,we,P,null,F,I,Z,Y,B);else break;se--,re--}if(N>se){if(N<=re){const ve=re+1,we=ve<de?b[ve].el:j;for(;N<=re;)_(null,b[N]=B?kt(b[N]):dt(b[N]),P,we,F,I,Z,Y,B),N++}}else if(N>re)for(;N<=se;)z(h[N],F,I,!0),N++;else{const ve=N,we=N,Te=new Map;for(N=we;N<=re;N++){const oe=b[N]=B?kt(b[N]):dt(b[N]);oe.key!=null&&Te.set(oe.key,N)}let ke,qe=0;const Be=re-we+1;let et=!1,Ye=0;const ee=new Array(Be);for(N=0;N<Be;N++)ee[N]=0;for(N=ve;N<=se;N++){const oe=h[N];if(qe>=Be){z(oe,F,I,!0);continue}let he;if(oe.key!=null)he=Te.get(oe.key);else for(ke=we;ke<=re;ke++)if(ee[ke-we]===0&&Dt(oe,b[ke])){he=ke;break}he===void 0?z(oe,F,I,!0):(ee[he-we]=N+1,he>=Ye?Ye=he:et=!0,_(oe,b[he],P,null,F,I,Z,Y,B),qe++)}const O=et?er(ee):Vt;for(ke=O.length-1,N=Be-1;N>=0;N--){const oe=we+N,he=b[oe],at=b[oe+1],tt=oe+1<de?at.el||To(at):j;ee[N]===0?_(null,he,P,tt,F,I,Z,Y,B):et&&(ke<0||N!==O[ke]?H(he,P,tt,2):ke--)}}},H=(h,b,P,j,F=null)=>{const{el:I,type:Z,transition:Y,children:B,shapeFlag:N}=h;if(N&6){H(h.component.subTree,b,P,j);return}if(N&128){h.suspense.move(b,P,j);return}if(N&64){Z.move(h,b,P,Tt);return}if(Z===U){l(I,b,P);for(let se=0;se<B.length;se++)H(B[se],b,P,j);l(h.anchor,b,P);return}if(Z===Gs){y(h,b,P);return}if(j!==2&&N&1&&Y)if(j===0)Y.beforeEnter(I),l(I,b,P),Je(()=>Y.enter(I),F);else{const{leave:se,delayLeave:re,afterLeave:ve}=Y,we=()=>{h.ctx.isUnmounted?a(I):l(I,b,P)},Te=()=>{I._isLeaving&&I[pi](!0),se(I,()=>{we(),ve&&ve()})};re?re(I,we,Te):Te()}else l(I,b,P)},z=(h,b,P,j=!1,F=!1)=>{const{type:I,props:Z,ref:Y,children:B,dynamicChildren:N,shapeFlag:de,patchFlag:se,dirs:re,cacheIndex:ve}=h;if(se===-2&&(F=!1),Y!=null&&(ht(),xs(Y,null,P,h,!0),pt()),ve!=null&&(b.renderCache[ve]=void 0),de&256){b.ctx.deactivate(h);return}const we=de&1&&re,Te=!ss(h);let ke;if(Te&&(ke=Z&&Z.onVnodeBeforeUnmount)&&mt(ke,b,h),de&6)ae(h.component,P,j);else{if(de&128){h.suspense.unmount(P,j);return}we&&Ut(h,null,b,"beforeUnmount"),de&64?h.type.remove(h,b,P,Tt,j):N&&!N.hasOnce&&(I!==U||se>0&&se&64)?G(N,b,P,!1,!0):(I===U&&se&384||!F&&de&16)&&G(B,b,P),j&&le(h)}(Te&&(ke=Z&&Z.onVnodeUnmounted)||we)&&Je(()=>{ke&&mt(ke,b,h),we&&Ut(h,null,b,"unmounted")},P)},le=h=>{const{type:b,el:P,anchor:j,transition:F}=h;if(b===U){K(P,j);return}if(b===Gs){k(h);return}const I=()=>{a(P),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(h.shapeFlag&1&&F&&!F.persisted){const{leave:Z,delayLeave:Y}=F,B=()=>Z(P,I);Y?Y(h.el,I,B):B()}else I()},K=(h,b)=>{let P;for(;h!==b;)P=p(h),a(h),h=P;a(b)},ae=(h,b,P)=>{const{bum:j,scope:F,job:I,subTree:Z,um:Y,m:B,a:N}=h;Co(B),Co(N),j&&mn(j),F.stop(),I&&(I.flags|=8,z(Z,h,b,P)),Y&&Je(Y,b),Je(()=>{h.isUnmounted=!0},b)},G=(h,b,P,j=!1,F=!1,I=0)=>{for(let Z=I;Z<h.length;Z++)z(h[Z],b,P,j,F)},ie=h=>{if(h.shapeFlag&6)return ie(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const b=p(h.anchor||h.el),P=b&&b[fi];return P?p(P):b};let Ie=!1;const dn=(h,b,P)=>{let j;h==null?b._vnode&&(z(b._vnode,null,null,!0),j=b._vnode.component):_(b._vnode||null,h,b,null,null,null,P),b._vnode=h,Ie||(Ie=!0,ql(j),Kl(),Ie=!1)},Tt={p:_,um:z,m:H,r:le,mt:Le,mc:X,pc:T,pbc:V,n:ie,o:e};return{render:dn,hydrate:void 0,createApp:Ii(dn)}}function Jn({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 qt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ko(e,t,s=!1){const l=e.children,a=t.children;if(ge(l)&&ge(a))for(let o=0;o<l.length;o++){const i=l[o];let r=a[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=a[o]=kt(a[o]),r.el=i.el),!s&&r.patchFlag!==-2&&ko(i,r)),r.type===Qs&&(r.patchFlag===-1&&(r=a[o]=kt(r)),r.el=i.el),r.type===ct&&!r.el&&(r.el=i.el)}}function er(e){const t=e.slice(),s=[0];let l,a,o,i,r;const c=e.length;for(l=0;l<c;l++){const g=e[l];if(g!==0){if(a=s[s.length-1],e[a]<g){t[l]=a,s.push(l);continue}for(o=0,i=s.length-1;o<i;)r=o+i>>1,e[s[r]]<g?o=r+1:i=r;g<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,i=s[o-1];o-- >0;)s[o]=i,i=t[i];return s}function So(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:So(t)}function Co(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function To(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?To(t.subTree):null}const Eo=e=>e.__isSuspense;let Qn=0;const tr={name:"Suspense",__isSuspense:!0,process(e,t,s,l,a,o,i,r,c,g){if(e==null)sr(t,s,l,a,o,i,r,c,g);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}nr(e,t,s,l,a,i,r,c,g)}},hydrate:lr,normalize:or};function ks(e,t){const s=e.props&&e.props[t];ye(s)&&s()}function sr(e,t,s,l,a,o,i,r,c){const{p:g,o:{createElement:v}}=c,m=v("div"),p=e.suspense=Po(e,a,l,t,m,s,o,i,r,c);g(null,p.pendingBranch=e.ssContent,m,null,l,p,o,i),p.deps>0?(ks(e,"onPending"),ks(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,o,i),ls(p,e.ssFallback)):p.resolve(!1,!0)}function nr(e,t,s,l,a,o,i,r,{p:c,um:g,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const p=t.ssContent,x=t.ssFallback,{activeBranch:$,pendingBranch:_,isInFallback:E,isHydrating:R}=m;if(_)m.pendingBranch=p,Dt(_,p)?(c(_,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0?m.resolve():E&&(R||(c($,x,s,l,a,null,o,i,r),ls(m,x)))):(m.pendingId=Qn++,R?(m.isHydrating=!1,m.activeBranch=_):g(_,a,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),E?(c(null,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0?m.resolve():(c($,x,s,l,a,null,o,i,r),ls(m,x))):$&&Dt($,p)?(c($,p,s,l,a,m,o,i,r),m.resolve(!0)):(c(null,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0&&m.resolve()));else if($&&Dt($,p))c($,p,s,l,a,m,o,i,r),ls(m,p);else if(ks(t,"onPending"),m.pendingBranch=p,p.shapeFlag&512?m.pendingId=p.component.suspenseId:m.pendingId=Qn++,c(null,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0)m.resolve();else{const{timeout:M,pendingId:y}=m;M>0?setTimeout(()=>{m.pendingId===y&&m.fallback(x)},M):M===0&&m.fallback(x)}}function Po(e,t,s,l,a,o,i,r,c,g,v=!1){const{p:m,m:p,um:x,n:$,o:{parentNode:_,remove:E}}=g;let R;const M=ir(e);M&&t&&t.pendingBranch&&(R=t.pendingId,t.deps++);const y=e.props?xa(e.props.timeout):void 0,k=o,C={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:a,deps:0,pendingId:Qn++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(J=!1,W=!1){const{vnode:X,activeBranch:L,pendingBranch:V,pendingId:ne,effects:_e,parentComponent:Me,container:Le,isInFallback:Re}=C;let pe=!1;C.isHydrating?C.isHydrating=!1:J||(pe=L&&V.transition&&V.transition.mode==="out-in",pe&&(L.transition.afterLeave=()=>{ne===C.pendingId&&(p(V,Le,o===k?$(L):o,0),Fn(_e),Re&&X.ssFallback&&(X.ssFallback.el=null))}),L&&(_(L.el)===Le&&(o=$(L)),x(L,Me,C,!0),!pe&&Re&&X.ssFallback&&Je(()=>X.ssFallback.el=null,C)),pe||p(V,Le,o,0)),ls(C,V),C.pendingBranch=null,C.isInFallback=!1;let fe=C.parent,T=!1;for(;fe;){if(fe.pendingBranch){fe.effects.push(..._e),T=!0;break}fe=fe.parent}!T&&!pe&&Fn(_e),C.effects=[],M&&t&&t.pendingBranch&&R===t.pendingId&&(t.deps--,t.deps===0&&!W&&t.resolve()),ks(X,"onResolve")},fallback(J){if(!C.pendingBranch)return;const{vnode:W,activeBranch:X,parentComponent:L,container:V,namespace:ne}=C;ks(W,"onFallback");const _e=$(X),Me=()=>{C.isInFallback&&(m(null,J,V,_e,L,null,ne,r,c),ls(C,J))},Le=J.transition&&J.transition.mode==="out-in";Le&&(X.transition.afterLeave=Me),C.isInFallback=!0,x(X,L,null,!0),Le||Me()},move(J,W,X){C.activeBranch&&p(C.activeBranch,J,W,X),C.container=J},next(){return C.activeBranch&&$(C.activeBranch)},registerDep(J,W,X){const L=!!C.pendingBranch;L&&C.deps++;const V=J.vnode.el;J.asyncDep.catch(ne=>{Yt(ne,J,0)}).then(ne=>{if(J.isUnmounted||C.isUnmounted||C.pendingId!==J.suspenseId)return;J.asyncResolved=!0;const{vnode:_e}=J;Xn(J,ne),V&&(_e.el=V);const Me=!V&&J.subTree.el;W(J,_e,_(V||J.subTree.el),V?null:$(J.subTree),C,i,X),Me&&(_e.placeholder=null,E(Me)),Kn(J,_e.el),L&&--C.deps===0&&C.resolve()})},unmount(J,W){C.isUnmounted=!0,C.activeBranch&&x(C.activeBranch,s,J,W),C.pendingBranch&&x(C.pendingBranch,s,J,W)}};return C}function lr(e,t,s,l,a,o,i,r,c){const g=t.suspense=Po(t,l,s,e.parentNode,document.createElement("div"),null,a,o,i,r,!0),v=c(e,g.pendingBranch=t.ssContent,s,g,o,i);return g.deps===0&&g.resolve(!1,!0),v}function or(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Ao(l?s.default:s),e.ssFallback=l?Ao(s.fallback):be(ct)}function Ao(e){let t;if(ye(e)){const s=os&&e._c;s&&(e._d=!1,u()),e=e(),s&&(e._d=!0,t=Ge,Mo())}return ge(e)&&(e=Hi(e)),e=dt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function ar(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):Fn(e)}function ls(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let a=t.el;for(;!a&&t.component;)t=t.component.subTree,a=t.el;s.el=a,l&&l.subTree===s&&(l.vnode.el=a,Kn(l,a))}function ir(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const U=Symbol.for("v-fgt"),Qs=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),Gs=Symbol.for("v-stc"),Ss=[];let Ge=null;function u(e=!1){Ss.push(Ge=e?null:[])}function Mo(){Ss.pop(),Ge=Ss[Ss.length-1]||null}let os=1;function Ys(e,t=!1){os+=e,e<0&&Ge&&t&&(Ge.hasOnce=!0)}function Ro(e){return e.dynamicChildren=os>0?Ge||Vt:null,Mo(),os>0&&Ge&&Ge.push(e),e}function d(e,t,s,l,a,o){return Ro(n(e,t,s,l,a,o,!0))}function Xe(e,t,s,l,a){return Ro(be(e,t,s,l,a,!0))}function as(e){return e?e.__v_isVNode===!0:!1}function Dt(e,t){return e.type===t.type&&e.key===t.key}const Lo=({key:e})=>e??null,Xs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Oe(e)||je(e)||ye(e)?{i:ze,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,a=null,o=e===U?0:1,i=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lo(t),ref:t&&Xs(t),scopeId:zl,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:o,patchFlag:l,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:ze};return r?(Gn(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=Oe(s)?8:16),os>0&&!i&&Ge&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ge.push(c),c}const be=rr;function rr(e,t=null,s=null,l=0,a=null,o=!1){if((!e||e===eo)&&(e=ct),as(e)){const r=is(e,t,!0);return s&&Gn(r,s),os>0&&!o&&Ge&&(r.shapeFlag&6?Ge[Ge.indexOf(e)]=r:Ge.push(r)),r.patchFlag=-2,r}if(wr(e)&&(e=e.__vccOpts),t){t=ur(t);let{class:r,style:c}=t;r&&!Oe(r)&&(t.class=D(r)),Ce(c)&&(Ln(c)&&!ge(c)&&(c=Ne({},c)),t.style=Ke(c))}const i=Oe(e)?1:Eo(e)?128:hi(e)?64:Ce(e)?4:ye(e)?2:0;return n(e,t,s,l,a,i,o,!0)}function ur(e){return e?Ln(e)||yo(e)?Ne({},e):e:null}function is(e,t,s=!1,l=!1){const{props:a,ref:o,patchFlag:i,children:r,transition:c}=e,g=t?dr(a||{},t):a,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Lo(g),ref:t&&t.ref?s&&o?ge(o)?o.concat(Xs(t)):[o,Xs(t)]:Xs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==U?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&is(e.ssContent),ssFallback:e.ssFallback&&is(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&In(v,c.clone(v)),v}function xe(e=" ",t=0){return be(Qs,null,e,t)}function cr(e,t){const s=be(Gs,null,e);return s.staticCount=t,s}function te(e="",t=!1){return t?(u(),Xe(ct,null,e)):be(ct,null,e)}function dt(e){return e==null||typeof e=="boolean"?be(ct):ge(e)?be(U,null,e.slice()):as(e)?kt(e):be(Qs,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:is(e)}function Gn(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(ge(t))s=16;else if(typeof t=="object")if(l&65){const a=t.default;a&&(a._c&&(a._d=!1),Gn(e,a()),a._c&&(a._d=!0));return}else{s=32;const a=t._;!a&&!yo(t)?t._ctx=ze:a===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:ze},s=32):(t=String(t),l&64?(s=16,t=[xe(t)]):s=8);e.children=t,e.shapeFlag|=s}function dr(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const a in l)if(a==="class")t.class!==l.class&&(t.class=D([t.class,l.class]));else if(a==="style")t.style=Ke([t.style,l.style]);else if(Ms(a)){const o=t[a],i=l[a];i&&o!==i&&!(ge(o)&&o.includes(i))&&(t[a]=o?[].concat(o,i):i)}else a!==""&&(t[a]=l[a])}return t}function mt(e,t,s,l=null){vt(e,t,7,[s,l])}const fr=uo();let hr=0;function pr(e,t,s){const l=e.type,a=(t?t.appContext:e.appContext)||fr,o={uid:hr++,vnode:e,type:l,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ea(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bo(l,a),emitsOptions:co(l,a),emit:null,emitted:null,propsDefaults:Ee,inheritAttrs:l.inheritAttrs,ctx:Ee,data:Ee,props:Ee,attrs:Ee,slots:Ee,refs:Ee,setupState:Ee,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Ni.bind(null,o),e.ce&&e.ce(o),o}let He=null;const vr=()=>He||ze;let Zs,Yn;{const e=Os(),t=(s,l)=>{let a;return(a=e[s])||(a=e[s]=[]),a.push(l),o=>{a.length>1?a.forEach(i=>i(o)):a[0](o)}};Zs=t("__VUE_INSTANCE_SETTERS__",s=>He=s),Yn=t("__VUE_SSR_SETTERS__",s=>rs=s)}const Cs=e=>{const t=He;return Zs(e),e.scope.on(),()=>{e.scope.off(),Zs(t)}},Oo=()=>{He&&He.scope.off(),Zs(null)};function Do(e){return e.vnode.shapeFlag&4}let rs=!1;function gr(e,t=!1,s=!1){t&&Yn(t);const{props:l,children:a}=e.vnode,o=Do(e);Vi(e,l,o,t),Qi(e,a,s||t);const i=o?yr(e,t):void 0;return t&&Yn(!1),i}function yr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ai);const{setup:l}=s;if(l){ht();const a=e.setupContext=l.length>1?br(e):null,o=Cs(e),i=Gt(l,e,0,[e.props,a]),r=fl(i);if(pt(),o(),(r||e.sp)&&!ss(e)&&Bn(e),r){if(i.then(Oo,Oo),t)return i.then(c=>{Xn(e,c)}).catch(c=>{Yt(c,e,0)});e.asyncDep=i}else Xn(e,i)}else Fo(e)}function Xn(e,t,s){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ce(t)&&(e.setupState=Bl(t)),Fo(e)}function Fo(e,t,s){const l=e.type;e.render||(e.render=l.render||ft);{const a=Cs(e);ht();try{Mi(e)}finally{pt(),a()}}}const mr={get(e,t){return Ue(e,"get",""),e[t]}};function br(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,mr),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bl(Qa(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in ws)return ws[s](e)},has(t,s){return s in t||s in ws}})):e.proxy}const _r=/(?:^|[-_])\w/g,xr=e=>e.replace(_r,t=>t.toUpperCase()).replace(/[-_]/g,"");function Io(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Bo(e,t,s=!1){let l=Io(t);if(!l&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(l=a[1])}if(!l&&e){const a=o=>{for(const i in o)if(o[i]===t)return i};l=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return l?xr(l):s?"App":"Anonymous"}function wr(e){return ye(e)&&"__vccOpts"in e}const q=(e,t)=>ei(e,t,rs);function us(e,t,s){try{Ys(-1);const l=arguments.length;return l===2?Ce(t)&&!ge(t)?as(t)?be(e,null,[t]):be(e,t):be(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&as(s)&&(s=[s]),be(e,t,s))}finally{Ys(1)}}const $r="3.5.29";let el;const No=typeof window<"u"&&window.trustedTypes;if(No)try{el=No.createPolicy("vue",{createHTML:e=>e})}catch{}const jo=el?e=>el.createHTML(e):e=>e,kr="http://www.w3.org/2000/svg",Sr="http://www.w3.org/1998/Math/MathML",St=typeof document<"u"?document:null,Ho=St&&St.createElement("template"),Cr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,l)=>{const a=t==="svg"?St.createElementNS(kr,e):t==="mathml"?St.createElementNS(Sr,e):s?St.createElement(e,{is:s}):St.createElement(e);return e==="select"&&l&&l.multiple!=null&&a.setAttribute("multiple",l.multiple),a},createText:e=>St.createTextNode(e),createComment:e=>St.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>St.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,a,o){const i=s?s.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),s),!(a===o||!(a=a.nextSibling)););else{Ho.innerHTML=jo(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=Ho.content;if(l==="svg"||l==="mathml"){const c=r.firstChild;for(;c.firstChild;)r.appendChild(c.firstChild);r.removeChild(c)}t.insertBefore(r,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Tr=Symbol("_vtc");function Er(e,t,s){const l=e[Tr];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Uo=Symbol("_vod"),Pr=Symbol("_vsh"),Ar=Symbol(""),Mr=/(?:^|;)\s*display\s*:/;function Rr(e,t,s){const l=e.style,a=Oe(s);let o=!1;if(s&&!a){if(t)if(Oe(t))for(const i of t.split(";")){const r=i.slice(0,i.indexOf(":")).trim();s[r]==null&&en(l,r,"")}else for(const i in t)s[i]==null&&en(l,i,"");for(const i in s)i==="display"&&(o=!0),en(l,i,s[i])}else if(a){if(t!==s){const i=l[Ar];i&&(s+=";"+i),l.cssText=s,o=Mr.test(s)}}else t&&e.removeAttribute("style");Uo in e&&(e[Uo]=o?l.display:"",e[Pr]&&(l.display="none"))}const qo=/\s*!important$/;function en(e,t,s){if(ge(s))s.forEach(l=>en(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=Lr(e,t);qo.test(s)?e.setProperty(Et(l),s.replace(qo,""),"important"):e[l]=s}}const Ko=["Webkit","Moz","ms"],tl={};function Lr(e,t){const s=tl[t];if(s)return s;let l=st(t);if(l!=="filter"&&l in e)return tl[t]=l;l=Ls(l);for(let a=0;a<Ko.length;a++){const o=Ko[a]+l;if(o in e)return tl[t]=o}return t}const Vo="http://www.w3.org/1999/xlink";function zo(e,t,s,l,a,o=Ca(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Vo,t.slice(6,t.length)):e.setAttributeNS(Vo,t,s):s==null||o&&!yl(s)?e.removeAttribute(t):e.setAttribute(t,o?"":it(s)?String(s):s)}function Wo(e,t,s,l,a){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?jo(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(r!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const r=typeof e[t];r==="boolean"?s=yl(s):s==null&&r==="string"?(s="",i=!0):r==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(a||t)}function Or(e,t,s,l){e.addEventListener(t,s,l)}function Dr(e,t,s,l){e.removeEventListener(t,s,l)}const Jo=Symbol("_vei");function Fr(e,t,s,l,a=null){const o=e[Jo]||(e[Jo]={}),i=o[t];if(l&&i)i.value=l;else{const[r,c]=Ir(t);if(l){const g=o[t]=jr(l,a);Or(e,r,g,c)}else i&&(Dr(e,r,i,c),o[t]=void 0)}}const Qo=/(?:Once|Passive|Capture)$/;function Ir(e){let t;if(Qo.test(e)){t={};let l;for(;l=e.match(Qo);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Et(e.slice(2)),t]}let sl=0;const Br=Promise.resolve(),Nr=()=>sl||(Br.then(()=>sl=0),sl=Date.now());function jr(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;vt(Hr(l,s.value),t,5,[l])};return s.value=e,s.attached=Nr(),s}function Hr(e,t){if(ge(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>a=>!a._stopped&&l&&l(a))}else return t}const Go=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ur=(e,t,s,l,a,o)=>{const i=a==="svg";t==="class"?Er(e,l,i):t==="style"?Rr(e,s,l):Ms(t)?pn(t)||Fr(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qr(e,t,l,i))?(Wo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zo(e,t,l,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Oe(l))?Wo(e,st(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),zo(e,t,l,i))};function qr(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Go(t)&&ye(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 a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Go(t)&&Oe(s)?!1:t in e}const Kr=["ctrl","shift","alt","meta"],Vr={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)=>Kr.some(s=>e[`${s}Key`]&&!t.includes(s))},ot=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((a,...o)=>{for(let i=0;i<t.length;i++){const r=Vr[t[i]];if(r&&r(a,t))return}return e(a,...o)}))},zr={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ts=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(a=>{if(!("key"in a))return;const o=Et(a.key);if(t.some(i=>i===o||zr[i]===o))return e(a)}))},Wr=Ne({patchProp:Ur},Cr);let Yo;function Jr(){return Yo||(Yo=Yi(Wr))}const Qr=((...e)=>{const t=Jr().createApp(...e),{mount:s}=t;return t.mount=l=>{const a=Yr(l);if(!a)return;const o=t._component;!ye(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const i=s(a,!1,Gr(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),i},t});function Gr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yr(e){return Oe(e)?document.querySelector(e):e}async function Xr(){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 Zr(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const i=await Xr();if(!i)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new i({baseUrl:e.baseUrl||window.location.origin,...e.authToken?{beforeSubscribe(r){return{headers:{Authorization:`Bearer ${e.authToken}`}}},beforeUnsubscribe(r){return{headers:{Authorization:`Bearer ${e.authToken}`}}}}:{}}),s=t.subscription(e.channelName),s.onMessage(r=>{l||e.onMessage(r)}),await s.create()}catch(i){e.onError&&e.onError(i)}},unsubscribe:async()=>{l=!0;try{s&&(await s.delete(),s=null),t&&(t=null)}catch{}}}}function eu(e){let t=!1;const s=Zr({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:l=>{t=!0,e.onError?.(l),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(l=>{e.onError?.(l),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class tn extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class tu extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class nl{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const a={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:a,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(o.status===401||o.status===403)throw new tn(o.status);if(!o.ok){const i=await o.text().catch(()=>"");throw new tu(o.status,i)}return o.json()}async get(t,s){const l=s?`${t}?${s}`:t;return this.fetch(l)}async post(t,s){const l={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,l)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const sn="ss-dash-theme",ll="ss-theme-change";function Es(){if(typeof window>"u")return"light";const e=localStorage.getItem(sn);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function su(e){typeof window>"u"||(localStorage.setItem(sn,e),window.dispatchEvent(new CustomEvent(ll,{detail:e})))}function nu(){const t=Es()==="dark"?"light":"dark";return su(t),t}function Xo(e){if(typeof window>"u")return()=>{};const t=o=>{const i=o.detail;(i==="dark"||i==="light")&&e(i)},s=o=>{if(o.key===sn){const i=o.newValue;e(i==="dark"||i==="light"?i:Es())}},l=window.matchMedia("(prefers-color-scheme: dark)"),a=o=>{localStorage.getItem(sn)||e(o.matches?"dark":"light")};return window.addEventListener(ll,t),window.addEventListener("storage",s),l.addEventListener("change",a),()=>{window.removeEventListener(ll,t),window.removeEventListener("storage",s),l.removeEventListener("change",a)}}const lu={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function ou(e){return{...lu,...e}}let au=0;function iu(){return`ss-grad-${au++}`}function ru(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let a=1;a<e.length;a++){const o=e[a];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function uu(e,t){if(e.length<2)return null;const s=ou(t),l=ru(e),a=l.max-l.min||1,o=s.width-s.padding*2,i=s.height-s.padding*2,r=s.padding,c=e.length,g=Array.from({length:c});for(let _=0;_<c;_++){const E=r+_/(c-1)*o,R=r+i-(e[_]-l.min)/a*i;g[_]=`${E.toFixed(1)},${R.toFixed(1)}`}const v=g.join(" "),m=(r+o).toFixed(1),p=(r+i).toFixed(1),x=r.toFixed(1),$=`M${g[0]} `+g.slice(1).map(_=>`L${_}`).join(" ")+` L${m},${p} L${x},${p} Z`;return{points:v,areaPath:$,gradientId:iu(),options:s,stats:l}}const cu=5e3,Zo=1e4,ea=100,du=500;function fu(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),a=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${a}m`:a>0?`${a}m ${t%60}s`:`${t}s`}function Ft(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function ta(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function It(e){if(!e)return"-";const t=typeof e=="string"?new Date(ta(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function bt(e){if(!e)return"-";const t=typeof e=="string"?new Date(ta(e)).getTime():e,s=Math.floor((Date.now()-t)/1e3);return s<0?"just now":s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}function nn(e){return e>du?"very-slow":e>ea?"slow":"normal"}function ln(e,t=100){if(e===null)return"null";if(e===void 0)return"-";if(typeof e=="string")return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"';if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const l="["+e.slice(0,3).map(a=>ln(a,30)).join(", ")+(e.length>3?", ..."+e.length+" items":"")+"]";return l.length>t?"["+e.length+" items]":l}if(typeof e=="object"){const s=Object.keys(e);if(s.length===0)return"{}";const l=[];for(let o=0;o<Math.min(s.length,4);o++)l.push(s[o]+": "+ln(e[s[o]],30));const a="{ "+l.join(", ")+(s.length>4?", ...+"+(s.length-4):"")+" }";return a.length>t?"{ "+s.slice(0,6).join(", ")+(s.length>6?", ...":"")+" }":a}return String(e)}function hu(e){return e<0?"no expiry":e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m`:e<86400?`${Math.floor(e/3600)}h`:`${Math.floor(e/86400)}d`}function pu(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}function vu(e){const t=new URLSearchParams;if(e.page!==null&&e.page!==void 0&&t.set("page",String(e.page)),e.perPage!==null&&e.perPage!==void 0&&t.set("perPage",String(e.perPage)),e.search&&t.set("search",e.search),e.sort&&t.set("sort",e.sort),e.sortDir&&t.set("direction",e.sortDir),e.timeRange&&t.set("range",e.timeRange),e.filters)for(const[s,l]of Object.entries(e.filters))l&&t.set(s,l);return t.toString()}function gu(e,t,s=2){if(t<=1)return[1];const l=[],a=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),a>2&&l.push("...");for(let i=a;i<=o;i++)l.push(i);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const sa="/admin/api/debug",na={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 yu(e){return{tracing:e.features?.tracing??!1,process:e.features?.process??!1,system:e.features?.system??!1,http:e.features?.http??!1,db:e.features?.db??!1,redis:e.features?.redis??!1,queues:e.features?.queues??!1,cache:e.features?.cache??!1,app:e.features?.app??!1,log:e.features?.log??!1,emails:e.features?.emails??!1,dashboard:e.features?.dashboard??!1,customPanes:e.customPanes??[]}}async function mu(e,t=sa){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function bu(e){const{baseUrl:t="",debugEndpoint:s=sa,authToken:l}=e,a=new nl({baseUrl:t,authToken:l});try{const o=await mu(a,s);return yu(o)}catch{return na}}const _u={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function xu(e){return _u[e]||`/${e}`}class la{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const a=xu(t),o=s?`${this.basePath}${a}?${s}`:`${this.basePath}${a}`;return this.client.fetch(o,l)}async fetchChart(t){return this.client.fetch(`${this.basePath}/overview/chart?range=${t}`)}async fetchGroupedQueries(){return this.client.fetch(`${this.basePath}/queries/grouped`)}async explainQuery(t){return this.client.fetch(`${this.basePath}/queries/${t}/explain`)}async retryJob(t){return this.client.fetch(`${this.basePath}/jobs/${t}/retry`,{method:"POST"})}async fetchCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`)}async deleteCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,{method:"DELETE"})}async fetchEmailPreview(t){return this.client.fetch(`${this.basePath}/emails/${t}/preview`)}}class wu{client;api;callbacks;endpoint;perPage;section;page=1;search;sort;sortDir;filters;timeRange;timer=null;fetchId=0;explicitFetchPending=!1;hasFetched=!1;stopped=!1;abortController=null;constructor(t){this.client=new nl({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new la(this.client,t.endpoint),this.endpoint=t.endpoint,this.section=t.section,this.perPage=t.perPage,this.callbacks=t.callbacks}start(){this.stopped=!1,this.fetch(!1),this.startRefreshTimer()}stop(){this.stopped=!0,this.stopRefreshTimer(),this.abortController?.abort(),this.abortController=null}async fetch(t=!0){if(t&&this.explicitFetchPending)return;this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId,a=this.section;if(!a)return;const o=this.filters,i=this.sort?this.sort.replace(/[A-Z]/g,c=>"_"+c.toLowerCase()):void 0,r=vu({page:this.page,perPage:this.perPage,search:this.search,sort:i,sortDir:this.sort?this.sortDir:void 0,filters:o&&Object.keys(o).length>0?o:void 0,timeRange:a.startsWith("overview")?this.timeRange:void 0});t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0);try{const c=await this.api.fetchSection(a,r||void 0,{signal:s.signal});if(l!==this.fetchId||this.stopped)return;if(c&&typeof c=="object"&&c.data!==void 0&&c.meta!==void 0){const g=c;this.callbacks.onData(g.data),this.callbacks.onPagination(g.meta)}else this.callbacks.onData(c),this.callbacks.onPagination(null);this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}catch(c){if(c instanceof DOMException&&c.name==="AbortError"||s.signal.aborted||l!==this.fetchId||this.stopped)return;if(c instanceof tn){this.callbacks.onError(c),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}t||(this.callbacks.onError(c instanceof Error?c:new Error(String(c))),this.callbacks.onLoading(!1))}finally{t||(this.explicitFetchPending=!1)}}setSection(t){this.section!==t&&(this.section=t,this.page=1,this.search=void 0,this.sort=void 0,this.sortDir=void 0,this.filters=void 0,this.hasFetched=!1,this.callbacks.onData(null),this.callbacks.onPagination(null),this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetch(!1),this.startRefreshTimer())}setPage(t){this.page=t,this.fetch(!1)}setSearch(t){this.search=t||void 0,this.page=1,this.fetch(!1)}setFilter(t,s){this.filters||(this.filters={}),this.filters[t]=String(s),this.page=1,this.fetch(!1)}setSort(t,s){this.sort===t&&!s?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sort=t,this.sortDir=s||"desc"),this.fetch(!1)}setTimeRange(t){this.timeRange=t,this.fetch(!1)}async mutate(t,s="post",l){const a=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(a,l):await this.client.delete(a);return await this.fetch(!0),o}catch(o){throw o instanceof Error?o:new Error(String(o))}}configure(t){t.page!==void 0&&(this.page=t.page),t.perPage!==void 0&&(this.perPage=t.perPage),this.search=t.search,this.sort=t.sort,this.sortDir=t.sortDir,this.filters=t.filters,this.timeRange=t.timeRange}hasData(){return this.hasFetched}handleRefreshSignal(){this.hasFetched&&this.fetch(!0)}getApi(){return this.api}getClient(){return this.client}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?cu:Zo;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const Ae={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"/>']}},$u="ss-col-resize",oa="ss-resizing";function ku(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function a(){if(!l){l=!0;for(const o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let i=function(c){c.preventDefault(),c.stopPropagation(),a();const g=c.clientX,v=o.offsetWidth;r.classList.add(oa),r.setPointerCapture(c.pointerId);function m(x){const $=x.clientX-g,_=Math.max(30,v+$);o.style.width=_+"px"}function p(){r.classList.remove(oa),r.removeEventListener("pointermove",m),r.removeEventListener("pointerup",p)}r.addEventListener("pointermove",m),r.addEventListener("pointerup",p)};if(!o.textContent?.trim())continue;const r=document.createElement("div");r.className=$u,o.appendChild(r),r.addEventListener("pointerdown",i),s.push(()=>{r.removeEventListener("pointerdown",i),r.remove()})}return()=>{for(const o of s)o()}}const Su=["all","error","warn","info","debug"];function aa(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function Cu(e){return e.msg||e.message||JSON.stringify(e)}function on(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Ps(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function Tu(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}const ia=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function As(e){if(e.data){let s=null;if(typeof e.data=="string")try{s=JSON.parse(e.data)}catch{}else typeof e.data=="object"&&!Array.isArray(e.data)&&(s=e.data);if(s){const l={};for(const[a,o]of Object.entries(s))ia.has(a)||(l[a]=o);if(Object.keys(l).length>0)return l}}const t={};for(const[s,l]of Object.entries(e))ia.has(s)||(t[s]=l);return Object.keys(t).length>0?t:null}const Eu=["all","active","waiting","delayed","completed","failed"];function Pu(e){switch(e){case"active":return"blue";case"waiting":return"amber";case"delayed":return"purple";case"completed":return"green";case"failed":return"red";default:return"muted"}}function Au(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function Mu(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function ol(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function ra(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function al(e,t,s,l=0){return e[t]??e[s]??l}function Ru(e){return{method:e.method||"",url:e.url||"",statusCode:al(e,"status_code","statusCode"),totalDuration:al(e,"total_duration","totalDuration")||e.duration||0,spanCount:al(e,"span_count","spanCount"),spans:ol(e.spans),warnings:ra(e.warnings)}}const Lu=["password","secret","token","key","credential","auth"];function Ou(e){const t=e.toLowerCase();return Lu.some(s=>t.includes(s))}function Du(e){if(e==null)return"-";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e))return e.join(", ")||"-";try{return JSON.stringify(e)}catch{return String(e)}}const Fu={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Iu(e){return Fu[e]||e}const Bu={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function Nu(e){return Bu[e]||e}function ju(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function Hu(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function Uu(e){return Object.entries(e).map(([t,s])=>({key:t,value:Du(s),secret:Ou(t)}))}function qu(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const Ku=["healthy","active","connected","available","ready"],Vu=["errored","unavailable"];function zu(e){return Ku.includes(e)?"ok":Vu.includes(e)?"err":""}function Fe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function an(e,t=""){if(typeof e!="object"||e===null||e===void 0)return[{path:t,value:e}];if(Array.isArray(e)||Fe(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const a=t?`${t}.${l}`:l,o=e[l];typeof o=="object"&&o!==null&&!Array.isArray(o)&&!Fe(o)?s.push(...an(o,a)):s.push({path:a,value:o})}return s}function Wu(e){return e==null?{text:"null",color:"var(--ss-dim)"}:typeof e=="boolean"?{text:String(e),color:e?"var(--ss-green-fg)":"var(--ss-red-fg)"}:typeof e=="number"?{text:String(e),color:"var(--ss-amber-fg)"}:Array.isArray(e)?{text:`[${e.map(s=>s==null?"null":typeof s=="object"?JSON.stringify(s):String(s)).join(", ")}]`,color:"var(--ss-purple-fg)"}:typeof e=="object"?{text:JSON.stringify(e),color:"var(--ss-dim)"}:{text:String(e)}}function ua(e){if(e==null||typeof e!="object"||Array.isArray(e)||Fe(e))return 1;let t=0;for(const s of Object.keys(e))t+=ua(e[s]);return t}function Ju(e){if(e==null||typeof e!="object"||Array.isArray(e)||Fe(e))return[];const t=[];for(const s of Object.keys(e)){const l=e[s];l!==null&&typeof l=="object"&&!Array.isArray(l)&&!Fe(l)&&t.push(s)}return t}function Qu(e,t,s){t&&navigator.clipboard.writeText(e).then(()=>{const l=t.textContent;t.textContent="✓",t.classList.add(`${s}-copy-row-ok`),setTimeout(()=>{t.textContent=l,t.classList.remove(`${s}-copy-row-ok`)},1200)}).catch(()=>{})}function Gu(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,a=Q({...na}),o=Q(!0);return Lt(async()=>{a.value=await bu({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:a,loading:o}}function ca(){const e=Q(Es());let t=null;function s(a){e.value=a}function l(){const a=nu();return e.value=a,a}return Lt(()=>{e.value=Es(),t=Xo(s)}),Ot(()=>{t?.()}),{theme:e,toggleTheme:l}}function Ze(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:a,perPage:o=50,refreshKey:i}=t,r=Q(null),c=Q(!1),g=Q(null),v=Q(!1),m=Q("1h"),p=Jt({page:1,perPage:o,total:0,totalPages:1}),x=Jt({search:""}),$=Jt({column:"",direction:"desc"}),_=new wu({baseUrl:s,endpoint:l,authToken:a,section:e(),perPage:o,callbacks:{onData:S=>{E=S},onPagination:S=>{S?(p.total=S.total,p.totalPages=S.lastPage??(Math.ceil(S.total/p.perPage)||1),r.value={data:E,meta:S}):r.value=E},onLoading:S=>{c.value=S},onError:S=>{g.value=S},onUnauthorized:()=>{v.value=!0}}});let E=null;const R=_.getApi();async function M(S){try{return await R.fetchChart(S)}catch(H){return H instanceof tn&&(v.value=!0),null}}async function y(){try{return await R.fetchGroupedQueries()}catch{return null}}async function k(S){try{return await R.explainQuery(S)}catch{return null}}async function C(S){try{return await R.retryJob(S),!0}catch{return!1}}async function J(S){try{return await R.deleteCacheKey(S),!0}catch{return!1}}async function W(S){try{return(await R.fetchEmailPreview(S))?.html||null}catch{return null}}function X(S){p.page=S,A()}function L(S){x.search=S,p.page=1,A()}function V(S,H){x[S]=H,p.page=1,A()}function ne(S,H){$.column===S&&!H?$.direction=$.direction==="asc"?"desc":"asc":($.column=S,$.direction=H||"desc"),A()}function _e(S){m.value=S,A()}async function Me(S,H="post",z){return _.mutate(S,H,z)}function Le(){T(),_.fetch(!0)}function Re(){_.start()}function pe(){_.stop()}function fe(){const S={};for(const[H,z]of Object.entries(x))H!=="search"&&z!==""&&z!==void 0&&z!==null&&(S[H]=String(z));return S}function T(){const S=e(),H=fe();_.configure({page:p.page,perPage:p.perPage,search:x.search||void 0,sort:$.column||void 0,sortDir:$.column?$.direction:void 0,filters:Object.keys(H).length>0?H:void 0,timeRange:S.startsWith("overview")?m.value:void 0})}function A(){T(),_.fetch(!1)}return yt(e,()=>{p.page=1;for(const S of Object.keys(x))S==="search"?x.search="":delete x[S];$.column="",r.value=null,_.setSection(e()),T()}),i&&yt(i,()=>{T(),_.handleRefreshSignal()}),Lt(()=>{T(),_.start()}),Ot(()=>{_.stop()}),{data:r,loading:c,error:g,isUnauthorized:v,pagination:p,filter:x,sort:$,timeRange:m,goToPage:X,setSearch:L,setFilter:V,setSort:ne,setTimeRange:_e,refresh:Le,startRefresh:Re,stopRefresh:pe,mutate:Me,fetchChart:M,fetchGroupedQueries:y,explainQuery:k,retryJob:C,deleteCacheKey:J,fetchEmailPreview:W}}const Yu=["title","aria-label"],Xu=["viewBox","innerHTML"],Zu=["viewBox","innerHTML"],ec=De({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=ca(),a=q(()=>s.value==="dark"),o=q(()=>a.value?"Switch to light theme":"Switch to dark theme"),i=q(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(r,c)=>(u(),d("button",{type:"button",class:D(i.value),title:o.value,"aria-label":o.value,onClick:c[0]||(c[0]=(...g)=>w(l)&&w(l)(...g))},[a.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:w(Ae).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Ae).sun.elements.join("")},null,8,Xu)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:w(Ae).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Ae).moon.elements.join("")},null,8,Zu))],10,Yu))}}),tc=["data-theme"],sc={class:"ss-dash-header"},nc={class:"ss-dash-header-center"},lc={class:"ss-dash-header-right"},oc=["href"],ac={class:"ss-dash-body"},ic={class:"ss-dash-nav"},rc=["data-ss-section","onClick","title"],uc={class:"ss-dash-nav-icon"},cc=["viewBox","innerHTML"],dc={class:"ss-dash-nav-label"},fc={key:0,class:"ss-dash-nav-sep"},hc=["onClick","title"],pc={class:"ss-dash-nav-icon"},vc=["viewBox","innerHTML"],gc={class:"ss-dash-nav-label"},yc=["title"],mc=["viewBox","innerHTML"],bc=["viewBox","innerHTML"],_c={class:"ss-dash-main"},xc=["id"],wc={class:"ss-dash-pane-inner"},$c={key:1,class:"ss-dash-empty"},kc=De({__name:"DashboardPage",props:{baseUrl:{default:""},dashboardEndpoint:{default:"/__stats/api"},debugEndpoint:{default:void 0},authToken:{default:void 0},backUrl:{default:"/"},channelName:{default:"server-stats/dashboard"}},setup(e){const t=lt(()=>Promise.resolve().then(()=>Rf)),s=lt(()=>Promise.resolve().then(()=>_h)),l=lt(()=>Promise.resolve().then(()=>tp)),a=lt(()=>Promise.resolve().then(()=>rp)),o=lt(()=>Promise.resolve().then(()=>yp)),i=lt(()=>Promise.resolve().then(()=>jp)),r=lt(()=>Promise.resolve().then(()=>nv)),c=lt(()=>Promise.resolve().then(()=>yv)),g=lt(()=>Promise.resolve().then(()=>Bv)),v=lt(()=>Promise.resolve().then(()=>rg)),m=lt(()=>Promise.resolve().then(()=>Ig)),p=lt(()=>Promise.resolve().then(()=>m1)),x=["overview","requests","queries","events","routes","logs","emails","timeline","cache","jobs","config","internals"],$=e,{theme:_}=ca(),{features:E}=Gu({baseUrl:$.baseUrl,debugEndpoint:$.debugEndpoint,authToken:$.authToken}),R=Q("overview"),M=Q(!1),y=Q(!1),k=Q(0);ts("ss-refresh-key",k),ts("ss-base-url",$.baseUrl),ts("ss-dashboard-endpoint",$.dashboardEndpoint),ts("ss-debug-endpoint",$.debugEndpoint),ts("ss-auth-token",$.authToken),typeof window<"u"&&(M.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let C=null;function J(){if(C&&(C(),C=null),!$.channelName)return;C=eu({baseUrl:$.baseUrl,channelName:$.channelName,authToken:$.authToken,onMessage:()=>{k.value+=1},onConnect:()=>{y.value=!0},onDisconnect:()=>{y.value=!1},onError:()=>{y.value=!1}}).unsubscribe}Lt(()=>{J()}),Ot(()=>{C&&(C(),C=null)});const W=q(()=>E.value.customPanes||[]);function X(S){const H=S.replace("#","").split("?")[0];return H&&[...x,...W.value.map(le=>le.id)].includes(H)?H:"overview"}function L(){const S=X(window.location.hash);S!==R.value&&(R.value=S)}Lt(()=>{if(typeof window>"u")return;const S=X(window.location.hash);(S!=="overview"||window.location.hash)&&(R.value=S),window.addEventListener("hashchange",L)}),Ot(()=>{window.removeEventListener("hashchange",L)}),yt(R,S=>{typeof window<"u"&&(window.location.hash=S)});function V(){M.value=!M.value,localStorage.setItem("ss-dash-sidebar",M.value?"collapsed":"expanded")}function ne(S){S!==R.value&&(R.value=S)}const _e=q(()=>[{id:"overview",label:"Overview",visible:!0},{id:"requests",label:"Requests",visible:!0},{id:"queries",label:"Queries",visible:!0},{id:"events",label:"Events",visible:!0},{id:"routes",label:"Routes",visible:!0},{id:"logs",label:"Logs",visible:!0},{id:"emails",label:"Emails",visible:!0},{id:"timeline",label:"Timeline",visible:E.value.tracing},{id:"cache",label:"Cache",visible:E.value.cache},{id:"jobs",label:"Jobs",visible:E.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),Me=q(()=>_e.value.filter(S=>S.visible)),{data:Le}=Ze(()=>"overview",{baseUrl:$.baseUrl,dashboardEndpoint:$.dashboardEndpoint,authToken:$.authToken,refreshKey:k}),Re=q(()=>Le.value),pe=q(()=>{const S={};if(!Re.value)return S;if(Re.value.totalRequests>0&&(S.requests={count:Re.value.totalRequests}),Re.value.queryStats?.total>0&&(S.queries={count:Re.value.queryStats.total}),Re.value.logLevelBreakdown){const H=Re.value.logLevelBreakdown,z=H.error+H.warn+H.info+H.debug;z>0&&(S.logs={count:z})}return S}),fe={overview:t,requests:s,queries:l,events:a,routes:o,logs:i,emails:r,timeline:c,cache:g,jobs:v,config:m,internals:p},T=q(()=>fe[R.value]||null);function A(S){return S==="timeline"?"dashboard-timeline":S}return(S,H)=>(u(),d("div",{class:"ss-dash","data-theme":w(_),id:"ss-dash"},[n("div",sc,[H[0]||(H[0]=n("div",{class:"ss-dash-header-left"},[n("span",{class:"ss-dash-logo"},"Server Stats"),n("span",{class:"ss-dash-logo-sub"},"Dashboard")],-1)),n("div",nc,[n("span",{class:D(["ss-dash-live-dot",{"ss-dash-connected":y.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:D(["ss-dash-live-label",{"ss-dash-connected":y.value}]),id:"ss-dash-live-label"},f(y.value?"Live":"Polling"),3)]),n("div",lc,[be(ec,{"class-prefix":"ss-dash"}),e.backUrl?(u(),d("a",{key:0,href:e.backUrl,class:"ss-dash-back-link",title:"Back to app"}," ← App ",8,oc)):te("",!0)])]),n("div",ac,[n("div",{class:D(["ss-dash-sidebar",{"ss-dash-collapsed":M.value}]),id:"ss-dash-sidebar"},[n("nav",ic,[(u(!0),d(U,null,me(Me.value,z=>(u(),d("button",{key:z.id,type:"button",class:D(["ss-dash-nav-item",{"ss-dash-active":R.value===z.id}]),"data-ss-section":z.id,onClick:le=>ne(z.id),title:M.value?z.label:void 0},[n("span",uc,[(u(),d("svg",{width:"20",height:"20",viewBox:(w(Ae)[A(z.id)]||w(Ae).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(w(Ae)[A(z.id)]||w(Ae).config).elements.join("")},null,8,cc))]),n("span",dc,f(z.label),1),pe.value[z.id]&&pe.value[z.id].count>0?(u(),d("span",{key:0,class:D(["ss-dash-nav-badge",pe.value[z.id].variant||""])},f(pe.value[z.id].count),3)):te("",!0)],10,rc))),128)),W.value.length>0?(u(),d("div",fc)):te("",!0),(u(!0),d(U,null,me(W.value,z=>(u(),d("button",{key:z.id,type:"button",class:D(["ss-dash-nav-item",{"ss-dash-active":R.value===z.id}]),onClick:le=>ne(z.id),title:M.value?z.label:void 0},[n("span",pc,[(u(),d("svg",{width:"20",height:"20",viewBox:w(Ae)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Ae)["custom-pane"].elements.join("")},null,8,vc))]),n("span",gc,f(z.label),1)],10,hc))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:V,title:M.value?"Expand sidebar":"Collapse sidebar"},[M.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:w(Ae)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(Ae)["chevron-right"].elements.join("")},null,8,mc)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:w(Ae)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(Ae)["chevron-left"].elements.join("")},null,8,bc))],8,yc)],2),n("div",_c,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${R.value}`},[n("div",wc,[(u(),Xe(tr,null,{fallback:es(()=>[...H[1]||(H[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:es(()=>[T.value?(u(),Xe(Ti(T.value),{key:0})):(u(),d("div",$c,"Unknown section"))]),_:1}))])],8,xc)])])],8,tc))}});function Sc(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function Cc(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(Es()),Xo(e)}const cs=Sc("ss-dash-config");Cc();const da=document.getElementById("ss-dash");da&&Qr(kc,{baseUrl:cs.baseUrl,dashboardEndpoint:cs.dashboardEndpoint,debugEndpoint:cs.debugEndpoint,authToken:cs.authToken,backUrl:cs.backUrl,channelName:cs.channelName}).mount(da);const Tc=["width","height","viewBox"],Ec=["id"],Pc=["stop-color"],Ac=["stop-color"],Mc=["d","fill"],Rc=["d","stroke"],Lc=["x","y"],rn=De({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=q(()=>uu(t.data,{width:t.width,height:t.height,color:t.color})),l=q(()=>s.value!==null),a=q(()=>`sg-${t.color.replace("#","")}`);return(o,i)=>(u(),d("div",{class:"ss-dash-sparkline",style:Ke({"--ss-accent":e.color})},[(u(),d("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[l.value&&s.value?(u(),d(U,{key:0},[n("defs",null,[n("linearGradient",{id:a.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,Pc),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,Ac)],8,Ec)]),n("path",{d:s.value.areaPath,fill:`url(#${a.value})`},null,8,Mc),n("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,Rc)],64)):(u(),d("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,Lc))],8,Tc))],4))}}),Oc={class:"ss-dash-btn-group"},Dc=["onClick"],Fc=De({__name:"TimeRangeSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,l=[{value:"5m",label:"5m"},{value:"15m",label:"15m"},{value:"30m",label:"30m"},{value:"1h",label:"1h"},{value:"6h",label:"6h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"}];return(a,o)=>(u(),d("div",Oc,[(u(),d(U,null,me(l,i=>n("button",{key:i.value,type:"button",class:D(`ss-dash-btn ${e.modelValue===i.value?"ss-dash-active":""}`),onClick:r=>s("update:modelValue",i.value)},f(i.label),11,Dc)),64))]))}}),Ic={class:"ss-dash-overview"},Bc={key:0,class:"ss-dash-empty"},Nc={class:"ss-dash-cards"},jc={class:"ss-dash-card"},Hc={class:"ss-dash-sparkline"},Uc={class:"ss-dash-card"},qc={class:"ss-dash-sparkline"},Kc={class:"ss-dash-card"},Vc={class:"ss-dash-sparkline"},zc={class:"ss-dash-card"},Wc={class:"ss-dash-sparkline"},Jc={class:"ss-dash-chart-container"},Qc={class:"ss-dash-chart-header"},Gc={class:"ss-dash-chart",id:"ss-dash-chart-area"},Yc={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},Xc=["viewBox"],Zc=["id"],ed=["id"],td=["x1","y1","x2","y2"],sd=["x","y"],nd=["d","fill"],ld=["d"],od=["d","fill"],ad=["d"],id=["x","y","width","height","data-idx","onMouseenter"],rd=["cx","cy","r","data-idx","opacity"],ud=["cx","cy","r","data-idx","opacity"],cd=["x","y"],dd={key:0,style:{color:"var(--ss-red-fg)"}},fd={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},hd={key:0,class:"ss-dash-chart-legend-item"},pd={class:"ss-dash-secondary-cards"},vd={class:"ss-dash-secondary-card"},gd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},yd={key:1,class:"ss-dash-secondary-list"},md=["href"],bd=["title"],_d={class:"ss-dash-secondary-card"},xd={class:"ss-dash-secondary-list"},wd={class:"ss-dash-secondary-list-value"},$d={class:"ss-dash-secondary-list-value"},kd={class:"ss-dash-secondary-list-value"},Sd={class:"ss-dash-secondary-card"},Cd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Td={key:1,class:"ss-dash-secondary-list"},Ed=["href"],Pd=["title"],Ad=["title"],Md={class:"ss-dash-secondary-card"},Rd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Ld={key:1,class:"ss-dash-secondary-list"},Od=["href"],Dd={class:"ss-dash-secondary-list-value"},Fd={class:"ss-dash-secondary-card"},Id={class:"ss-dash-secondary-list"},Bd={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},Nd={class:"ss-dash-secondary-list-value"},jd={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},Hd={class:"ss-dash-secondary-list-value"},Ud={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},qd={class:"ss-dash-secondary-card"},Kd={class:"ss-dash-secondary-list"},Vd={href:"#logs?level=error",class:"ss-dash-widget-row-link"},zd={class:"ss-dash-secondary-list-value"},Wd={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},Jd={class:"ss-dash-secondary-list-value"},Qd={href:"#logs?level=info",class:"ss-dash-widget-row-link"},Gd={class:"ss-dash-secondary-list-value"},Yd={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},Xd={class:"ss-dash-secondary-list-value"},Zd={key:0,class:"ss-dash-secondary-card"},ef={class:"ss-dash-secondary-list"},tf={href:"#cache",class:"ss-dash-widget-row-link"},sf={class:"ss-dash-secondary-list-value"},nf={href:"#cache",class:"ss-dash-widget-row-link"},lf={class:"ss-dash-secondary-list-value"},of={href:"#cache",class:"ss-dash-widget-row-link"},af={class:"ss-dash-secondary-list-value"},rf={key:1,class:"ss-dash-secondary-card"},uf={class:"ss-dash-secondary-list"},cf={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},df={class:"ss-dash-secondary-list-value"},ff={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},hf={class:"ss-dash-secondary-list-value"},pf={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},vf={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},gf={class:"ss-dash-secondary-list-value"},yf={class:"ss-dash-secondary-card"},mf={class:"ss-dash-secondary-list"},bf={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},_f={class:"ss-dash-secondary-list-value"},xf={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},wf={class:"ss-dash-secondary-list-value"},$f={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},kf={class:"ss-dash-secondary-list-value"},Sf={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},Cf={class:"ss-dash-secondary-list-value"},Tf={class:"ss-dash-secondary-card"},Ef={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Pf={key:1,class:"ss-dash-secondary-list"},Af=["href"],Mf=["title"],il=220,fa=120,Rf=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,a]of t)s[l]=a;return s})(De({__name:"OverviewSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-base-url",""),l=ue("ss-dashboard-endpoint","/__stats/api"),a=ue("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),i=Q("1h"),{data:r,loading:c}=Ze(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t}),{data:g,setTimeRange:v}=Ze(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t});yt(i,ee=>{v(ee)});const m=q(()=>r.value),p=q(()=>m.value||{avgResponseTime:0,p95ResponseTime:0,requestsPerMinute:0,errorRate:0,totalRequests:0,slowestEndpoints:[],queryStats:{total:0,avgDuration:0,perRequest:0},recentErrors:[],topEvents:[],emailActivity:{sent:0,queued:0,failed:0},logLevelBreakdown:{error:0,warn:0,info:0,debug:0},cacheStats:null,jobQueueStatus:null,statusDistribution:{"2xx":0,"3xx":0,"4xx":0,"5xx":0},slowestQueries:[]}),x=q(()=>p.value),$=q(()=>p.value.avgResponseTime||Number(x.value.avg_response_time)||0),_=q(()=>p.value.p95ResponseTime||Number(x.value.p95_response_time)||0),E=q(()=>p.value.requestsPerMinute||Number(x.value.requests_per_minute)||0),R=q(()=>p.value.errorRate||Number(x.value.error_rate)||0),M=q(()=>p.value.totalRequests||Number(x.value.total_requests)||0),y=q(()=>M.value>0),k=q(()=>g.value?.buckets||[]),C=q(()=>p.value.sparklines?.avgResponseTime??k.value.map(ee=>ee.avgDuration??0)),J=q(()=>p.value.sparklines?.p95ResponseTime??k.value.map(ee=>ee.p95Duration??0)),W=q(()=>p.value.sparklines?.requestsPerMinute??k.value.map(ee=>ee.requestCount??0)),X=q(()=>p.value.sparklines?.errorRate??k.value.map(ee=>ee.errorCount??0)),L=q(()=>`ss-cg-total-${o}`),V=q(()=>`ss-cg-error-${o}`);function ne(ee,O){if(ee<=0)return[0];const oe=ee/O,he=Math.pow(10,Math.floor(Math.log10(oe))),at=oe/he;let tt;at<=1?tt=he:at<=2?tt=2*he:at<=5?tt=5*he:tt=10*he;const fn=[];for(let rl=tt;rl<=ee+tt*.5;rl+=tt)fn.push(Math.round(rl));return fn.length===0&&fn.push(Math.ceil(ee)),fn}function _e(ee){try{return new Date(ee).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function Me(ee){if(ee.length===0)return"";if(ee.length===1)return`M${ee[0].x},${ee[0].y}`;let O=`M${ee[0].x.toFixed(1)},${ee[0].y.toFixed(1)}`;for(let oe=0;oe<ee.length-1;oe++){const he=ee[oe],at=ee[oe+1],tt=(he.x+at.x)/2;O+=` C${tt.toFixed(1)},${he.y.toFixed(1)} ${tt.toFixed(1)},${at.y.toFixed(1)} ${at.x.toFixed(1)},${at.y.toFixed(1)}`}return O}function Le(ee){const O=nn(ee);return O==="very-slow"?"ss-dash-very-slow":O==="slow"?"ss-dash-slow":""}const Re=Q(null),pe=Q(0);let fe=null;yt(Re,ee=>{fe?.disconnect(),fe=null,ee&&(pe.value=ee.clientWidth,fe=new ResizeObserver(O=>{for(const oe of O)pe.value=oe.contentRect.width}),fe.observe(ee))}),Ot(()=>{fe?.disconnect()});const T={top:12,right:12,bottom:28,left:38},A=q(()=>pe.value||600),S=q(()=>A.value-T.left-T.right),H=q(()=>il-T.top-T.bottom),z=q(()=>T.top+H.value),le=q(()=>k.value.map(ee=>{const O=ee;return(ee.requestCount??0)+(Number(O.request_count)||0)||ee.total||0})),K=q(()=>k.value.map(ee=>{const O=ee;return(ee.errorCount??0)+(Number(O.error_count)||0)})),ae=q(()=>Math.max(...le.value,1)),G=q(()=>Math.ceil(ae.value*1.1)),ie=q(()=>K.value.some(ee=>ee>0)),Ie=q(()=>ne(G.value,4)),dn=q(()=>Ie.value.length>0?Ie.value[Ie.value.length-1]:G.value);function Tt(ee){return T.left+ee/Math.max(k.value.length-1,1)*S.value}function ds(ee){return T.top+H.value-ee/(dn.value||1)*H.value}const h=q(()=>k.value.map((ee,O)=>({x:Tt(O),y:ds(le.value[O])}))),b=q(()=>k.value.map((ee,O)=>({x:Tt(O),y:ds(K.value[O])}))),P=q(()=>Me(h.value)),j=q(()=>ie.value?Me(b.value):""),F=q(()=>h.value.length>1?`${P.value} L${h.value[h.value.length-1].x.toFixed(1)},${z.value} L${h.value[0].x.toFixed(1)},${z.value} Z`:""),I=q(()=>ie.value&&b.value.length>1?`${j.value} L${b.value[b.value.length-1].x.toFixed(1)},${z.value} L${b.value[0].x.toFixed(1)},${z.value} Z`:""),Z=q(()=>Math.min(10,k.value.length)),Y=q(()=>Math.max(1,Math.ceil(k.value.length/Z.value))),B=Q({visible:!1,x:0,idx:-1});function N(ee){const O=h.value[ee].x;B.value={visible:!0,x:O,idx:ee}}function de(){B.value={visible:!1,x:0,idx:-1}}const se=q(()=>B.value.visible?Math.max(fa/2,Math.min(B.value.x,A.value-fa/2)):0),re=q(()=>S.value/(k.value.length||1));function ve(ee){return ee%Y.value===0||ee===k.value.length-1}function we(){return y.value?$.value>500?"ss-dash-red":$.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Te(){return y.value?_.value>500?"ss-dash-red":_.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function ke(){return y.value?"ss-dash-accent":"ss-dash-dim"}function qe(){return y.value?R.value>5?"ss-dash-red":R.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Be(ee){return ee.url||ee.pattern||"-"}function et(ee){return ee.name||ee.eventName||ee.event_name||ee.event||""}function Ye(ee){return ee.sqlNormalized||ee.normalizedSql||ee.sql_normalized||ee.sql||"-"}return(ee,O)=>(u(),d("div",Ic,[w(c)&&!m.value?(u(),d("div",Bc,"Loading overview...")):(u(),d(U,{key:1},[n("div",Nc,[n("div",jc,[O[1]||(O[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:D(["ss-dash-card-value",we()])},f(y.value?w(Ft)($.value):"-"),3),n("div",Hc,[be(rn,{data:C.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",Uc,[O[2]||(O[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:D(["ss-dash-card-value",Te()])},f(y.value?w(Ft)(_.value):"-"),3),n("div",qc,[be(rn,{data:J.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",Kc,[O[3]||(O[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:D(["ss-dash-card-value",ke()])},f(y.value?E.value.toFixed(1):"-"),3),n("div",Vc,[be(rn,{data:W.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",zc,[O[4]||(O[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:D(["ss-dash-card-value",qe()])},f(y.value?`${R.value.toFixed(1)}%`:"-"),3),n("div",Wc,[be(rn,{data:X.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",Jc,[n("div",Qc,[O[5]||(O[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),be(Fc,{"model-value":i.value,"onUpdate:modelValue":O[0]||(O[0]=oe=>i.value=oe)},null,8,["model-value"])]),n("div",Gc,[k.value.length===0?(u(),d("div",Yc," No data for this range ")):(u(),d("div",{key:1,ref_key:"chartContainerRef",ref:Re,style:{position:"relative"}},[(u(),d("svg",{viewBox:`0 0 ${A.value} ${il}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:L.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...O[6]||(O[6]=[n("stop",{offset:"0%","stop-color":"var(--ss-accent)","stop-opacity":"0.3"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-accent)","stop-opacity":"0.02"},null,-1)])],8,Zc),n("linearGradient",{id:V.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...O[7]||(O[7]=[n("stop",{offset:"0%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.35"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.02"},null,-1)])],8,ed)]),(u(!0),d(U,null,me(Ie.value,oe=>(u(),d("g",{key:`ytick-${oe}`},[n("line",{x1:T.left,y1:ds(oe),x2:A.value-T.right,y2:ds(oe),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,td),n("text",{x:T.left-6,y:ds(oe),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},f(oe),9,sd)]))),128)),F.value?(u(),d("path",{key:0,d:F.value,fill:`url(#${L.value})`},null,8,nd)):te("",!0),P.value?(u(),d("path",{key:1,d:P.value,fill:"none",stroke:"var(--ss-accent)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,ld)):te("",!0),I.value?(u(),d("path",{key:2,d:I.value,fill:`url(#${V.value})`},null,8,od)):te("",!0),j.value?(u(),d("path",{key:3,d:j.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,ad)):te("",!0),(u(!0),d(U,null,me(k.value,(oe,he)=>(u(),d("g",{key:he},[n("rect",{x:h.value[he].x-re.value/2,y:T.top,width:re.value,height:H.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":he,onMouseenter:at=>N(he),onMouseleave:de},null,40,id),le.value[he]>0?(u(),d("circle",{key:0,cx:h.value[he].x,cy:h.value[he].y,r:B.value.visible&&B.value.idx===he?4:2.5,fill:"var(--ss-accent)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot","data-idx":he,opacity:B.value.visible&&B.value.idx!==he?.3:1},null,8,rd)):te("",!0),K.value[he]>0?(u(),d("circle",{key:1,cx:h.value[he].x,cy:b.value[he].y,r:B.value.visible&&B.value.idx===he?3.5:2,fill:"var(--ss-red-fg)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot ss-dash-chart-dot-err","data-idx":he,opacity:B.value.visible&&B.value.idx!==he?.3:1},null,8,ud)):te("",!0)]))),128)),(u(!0),d(U,null,me(k.value,(oe,he)=>(u(),d(U,{key:`xlabel-${he}`},[ve(he)&&_e(oe.bucket)?(u(),d("text",{key:0,x:Tt(he),y:il-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},f(_e(oe.bucket)),9,cd)):te("",!0)],64))),128))],8,Xc)),B.value.visible&&B.value.idx>=0?(u(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:Ke({left:se.value+"px",top:T.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,f(_e(k.value[B.value.idx].bucket)),1),n("div",null,"Requests: "+f(le.value[B.value.idx]),1),K.value[B.value.idx]>0?(u(),d("div",dd," Errors: "+f(K.value[B.value.idx]),1)):te("",!0)],4)):te("",!0)],512))]),n("div",fd,[O[9]||(O[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),xe(" Requests ")],-1)),k.value.some(oe=>(oe.errorCount??0)>0)?(u(),d("span",hd,[...O[8]||(O[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),xe(" Errors ",-1)])])):te("",!0)])]),n("div",pd,[n("div",vd,[O[10]||(O[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),p.value.slowestEndpoints.length===0?(u(),d("div",gd," No data yet ")):(u(),d("ul",yd,[(u(!0),d(U,null,me(p.value.slowestEndpoints.slice(0,5),(oe,he)=>(u(),d("li",{key:he},[n("a",{href:`#requests?url=${encodeURIComponent(Be(oe))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Be(oe)},f(Be(oe)),9,bd),n("span",{class:D(["ss-dash-secondary-list-value","ss-dash-duration",Le(oe.avgDuration)])},f(w(Ft)(oe.avgDuration)),3)],8,md)]))),128))]))]),n("div",_d,[O[14]||(O[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",xd,[n("li",null,[O[11]||(O[11]=n("span",null,"Total Queries",-1)),n("span",wd,f(p.value.queryStats.total),1)]),n("li",null,[O[12]||(O[12]=n("span",null,"Avg Duration",-1)),n("span",$d,f(w(Ft)(p.value.queryStats.avgDuration)),1)]),n("li",null,[O[13]||(O[13]=n("span",null,"Queries / Request",-1)),n("span",kd,f(p.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",Sd,[O[15]||(O[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),p.value.recentErrors.length===0?(u(),d("div",Cd," No recent errors ")):(u(),d("ul",Td,[(u(!0),d(U,null,me(p.value.recentErrors,(oe,he)=>(u(),d("li",{key:he},[n("a",{href:`#logs?id=${oe.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:oe.message},f(oe.message),9,Pd),oe.timestamp?(u(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:w(It)(oe.timestamp)},f(w(bt)(oe.timestamp)),9,Ad)):te("",!0)],8,Ed)]))),128))]))]),n("div",Md,[O[16]||(O[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),p.value.topEvents.length===0?(u(),d("div",Rd," No events yet ")):(u(),d("ul",Ld,[(u(!0),d(U,null,me(p.value.topEvents.slice(0,5),(oe,he)=>(u(),d("li",{key:he},[n("a",{href:`#events?event_name=${encodeURIComponent(et(oe))}`,class:"ss-dash-widget-row-link"},[n("span",null,f(et(oe)),1),n("span",Dd,f(oe.count),1)],8,Od)]))),128))]))]),n("div",Fd,[O[20]||(O[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",Id,[n("li",null,[n("a",Bd,[O[17]||(O[17]=n("span",null,"Sent",-1)),n("span",Nd,f(p.value.emailActivity.sent),1)])]),n("li",null,[n("a",jd,[O[18]||(O[18]=n("span",null,"Queued",-1)),n("span",Hd,f(p.value.emailActivity.queued),1)])]),n("li",null,[n("a",Ud,[O[19]||(O[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(p.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},f(p.value.emailActivity.failed),5)])])])]),n("div",qd,[O[25]||(O[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",Kd,[n("li",null,[n("a",Vd,[O[21]||(O[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",zd,f(p.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",Wd,[O[22]||(O[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",Jd,f(p.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",Qd,[O[23]||(O[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",Gd,f(p.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",Yd,[O[24]||(O[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",Xd,f(p.value.logLevelBreakdown.debug),1)])])])]),p.value.cacheStats&&p.value.cacheStats.available?(u(),d("div",Zd,[O[29]||(O[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",ef,[n("li",null,[n("a",tf,[O[26]||(O[26]=n("span",null,"Keys",-1)),n("span",sf,f(p.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",nf,[O[27]||(O[27]=n("span",null,"Hit Rate",-1)),n("span",lf,f(p.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",of,[O[28]||(O[28]=n("span",null,"Memory",-1)),n("span",af,f(p.value.cacheStats.memoryUsedHuman),1)])])])])):te("",!0),p.value.jobQueueStatus&&p.value.jobQueueStatus.available?(u(),d("div",rf,[O[34]||(O[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",uf,[n("li",null,[n("a",cf,[O[30]||(O[30]=n("span",null,"Active",-1)),n("span",df,f(p.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",ff,[O[31]||(O[31]=n("span",null,"Waiting",-1)),n("span",hf,f(p.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",pf,[O[32]||(O[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(p.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},f(p.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",vf,[O[33]||(O[33]=n("span",null,"Completed",-1)),n("span",gf,f(p.value.jobQueueStatus.completed),1)])])])])):te("",!0),n("div",yf,[O[39]||(O[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",mf,[n("li",null,[n("a",bf,[O[35]||(O[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",_f,f(p.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",xf,[O[36]||(O[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",wf,f(p.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",$f,[O[37]||(O[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",kf,f(p.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",Sf,[O[38]||(O[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",Cf,f(p.value.statusDistribution["5xx"]),1)])])])]),n("div",Tf,[O[40]||(O[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),p.value.slowestQueries.length===0?(u(),d("div",Ef," No query data yet ")):(u(),d("ul",Pf,[(u(!0),d(U,null,me(p.value.slowestQueries.slice(0,5),(oe,he)=>(u(),d("li",{key:he},[n("a",{href:`#queries?pattern=${encodeURIComponent(Ye(oe))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Ye(oe)},f(Ye(oe)),9,Mf),n("span",{class:D(["ss-dash-secondary-list-value","ss-dash-duration",Le(oe.avgDuration)])},f(w(Ft)(oe.avgDuration)),3)],8,Af)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-1e96b18b"]])},Symbol.toStringTag,{value:"Module"}));function un(e="",t){let s=null;return function(){return s||(s=new nl({baseUrl:e,authToken:t})),s}}function Bt(e){const t=Q(null);let s=null;function l(){s&&s(),s=null,Hl(()=>{t.value&&(s=ku(t.value))})}return e&&yt(e,l),Lt(l),Zl(()=>{s&&s(),s=null}),{tableRef:t}}const Lf={class:"ss-dash-filter-bar"},Of={key:0,class:"ss-dash-summary"},Df={class:"ss-dash-search-wrapper"},Ff=["viewBox","innerHTML"],If=["value","placeholder"],Bf={key:1,class:"ss-dash-filter-controls"},Ct=De({__name:"FilterBar",props:{modelValue:{},placeholder:{},summary:{}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const s=t;function l(o){s("update:modelValue",o.target.value)}function a(){s("update:modelValue",""),s("clear")}return(o,i)=>(u(),d("div",Lf,[e.summary?(u(),d("span",Of,f(e.summary),1)):te("",!0),n("div",Df,[(u(),d("svg",{class:"ss-dash-search-icon",viewBox:w(Ae).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Ae).search.elements.join("")},null,8,Ff)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,If),e.modelValue?(u(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:a}," × ")):te("",!0)]),o.$slots.default?(u(),d("div",Bf,[Pi(o.$slots,"default")])):te("",!0)]))}}),Nf={key:0,class:"ss-dash-pagination"},jf={class:"ss-dash-page-info"},Hf={class:"ss-dash-pagination-controls"},Uf=["disabled"],qf={key:0,class:"ss-dash-page-ellipsis"},Kf=["onClick"],Vf=["disabled"],Kt=De({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,a=q(()=>gu(s.page,s.lastPage));return(o,i)=>e.lastPage>1?(u(),d("div",Nf,[n("span",jf," Page "+f(e.page)+" of "+f(e.lastPage)+" ("+f(e.total)+" total) ",1),n("div",Hf,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:i[0]||(i[0]=r=>l("pageChange",e.page-1))}," « Prev ",8,Uf),(u(!0),d(U,null,me(a.value,(r,c)=>(u(),d(U,{key:r==="..."?`ellipsis-${c}`:r},[r==="..."?(u(),d("span",qf,"...")):(u(),d("button",{key:1,type:"button",class:D(`ss-dash-page-btn ${r===e.page?"ss-dash-active":""}`),onClick:g=>l("pageChange",r)},f(r),11,Kf))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:i[1]||(i[1]=r=>l("pageChange",e.page+1))}," Next » ",8,Vf)])])):te("",!0)}}),zf={key:0,class:"ss-dash-empty"},Wf={class:"ss-dash-tl-legend"},Jf=["title"],Qf={class:"ss-dash-tl-track"},Gf=["title"],Yf={class:"ss-dash-tl-dur"},Xf={key:0,class:"ss-dash-tl-warnings"},Zf={class:"ss-dash-tl-warnings-title"},ha=De({__name:"WaterfallChart",props:{spans:{},totalDuration:{},className:{},warnings:{}},setup(e){const t=e,s={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"var(--ss-dim)"},l={request:"Request",middleware:"Middleware",db:"DB",mail:"Mail",event:"Event",view:"View",custom:"Custom"},a=q(()=>t.spans||[]),o=q(()=>[...a.value].sort((x,$)=>x.startOffset-$.startOffset)),i=q(()=>{const x={};for(const $ of o.value)x[$.id]=$.parentId?(x[$.parentId]||0)+1:0;return x});function r(x){const $=t.totalDuration||1;return`${x.startOffset/$*100}%`}function c(x){const $=t.totalDuration||1;return`${Math.max(x.duration/$*100,.5)}%`}function g(x){return x.length>50?x.slice(0,50)+"...":x}function v(x){return x==="db"?"DB":x}function m(x){return x==="db"?"purple":x==="mail"?"green":x==="event"?"amber":x==="view"?"blue":"muted"}function p(x){const $=x.metadata?Object.entries(x.metadata).filter(([,_])=>_!=null).map(([_,E])=>`${_}=${E}`).join(", "):"";return $?`${x.label} (${x.duration.toFixed(2)}ms)
|
|
5
|
-
${$}`:`${x.label} (${x.duration.toFixed(2)}ms)`}return(x,$)=>a.value.length===0?(u(),d("div",zf,"No spans recorded")):(u(),d("div",{key:1,class:D(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",Wf,[(u(),d(U,null,me(l,(_,E)=>n("div",{key:E,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:Ke({background:s[E]||s.custom})},null,4),n("span",null,f(_),1)])),64))]),(u(!0),d(U,null,me(o.value,_=>(u(),d("div",{key:_.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:p(_),style:Ke({paddingLeft:8+(i.value[_.id]||0)*16+"px"})},[n("span",{class:D(`ss-dash-badge ss-dash-badge-${m(_.category)}`),style:{"font-size":"9px","margin-right":"4px"}},f(v(_.category)),3),xe(" "+f(g(_.label)),1)],12,Jf),n("div",Qf,[n("div",{class:D(`ss-dash-tl-bar ss-dash-tl-bar-${_.category||"custom"}`),style:Ke({left:r(_),width:c(_)}),title:p(_)},null,14,Gf)]),n("span",Yf,f(_.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(u(),d("div",Xf,[n("div",Zf,"Warnings ("+f(e.warnings.length)+")",1),(u(!0),d(U,null,me(e.warnings,(_,E)=>(u(),d("div",{key:E,class:"ss-dash-tl-warning"},f(_),1))),128))])):te("",!0)],2))}}),eh={class:"ss-dash-tl-detail-header"},th={style:{color:"var(--ss-text)"}},sh={class:"ss-dash-tl-meta"},nh={class:"ss-dash-tl-detail-header"},lh={key:0,class:"ss-dash-empty"},oh={key:1,class:"ss-dash-empty"},ah={class:"ss-dash-table-wrap"},ih={key:0,class:"ss-dash-sort-arrow"},rh={key:0,class:"ss-dash-sort-arrow"},uh={key:0,class:"ss-dash-sort-arrow"},ch={key:0,class:"ss-dash-sort-arrow"},dh={key:0,class:"ss-dash-sort-arrow"},fh=["onClick"],hh={style:{color:"var(--ss-dim)"}},ph=["title"],vh={style:{color:"var(--ss-muted)","text-align":"center"}},gh={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},yh={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},mh=["title"],bh={key:1,class:"ss-dash-empty"},_h=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"RequestsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,error:r,pagination:c,sort:g,goToPage:v,setSearch:m,setSort:p}=Ze(()=>"requests",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),x=Q(""),$=Q(null),_=Q(!1),E=Q(null),R=q(()=>{if(!o.value)return[];const L=o.value;return L.data||L.requests||o.value||[]}),M=un(a,l);async function y(L){const V=L.id;_.value=!0;try{const ne=s||"/__stats/api",_e=await M().fetch(`${ne}/requests/${V}`);E.value=Ru(_e),$.value=L}catch{}finally{_.value=!1}}function k(){$.value=null,E.value=null}function C(L){x.value=L,m(L)}function J(L){p(L)}function W(L){const V=nn(L);return V==="very-slow"?"ss-dash-very-slow":V==="slow"?"ss-dash-slow":""}const{tableRef:X}=Bt(()=>R.value);return(L,V)=>(u(),d("div",null,[E.value&&$.value?(u(),d(U,{key:0},[n("div",eh,[n("button",{type:"button",class:"ss-dash-btn",onClick:k}," ← Back to Requests "),n("span",{class:D(`ss-dash-method ss-dash-method-${(E.value.method||"").toLowerCase()}`)},f(E.value.method),3),n("span",th,f(E.value.url),1),n("span",{class:D(`ss-dash-status ss-dash-status-${Math.floor((E.value.statusCode||200)/100)}xx`)},f(E.value.statusCode),3),n("span",sh,f(E.value.totalDuration.toFixed(1))+"ms · "+f(E.value.spanCount)+" spans ",1)]),be(ha,{spans:E.value.spans,"total-duration":E.value.totalDuration,warnings:E.value.warnings},null,8,["spans","total-duration","warnings"])],64)):_.value?(u(),d(U,{key:1},[n("div",nh,[n("button",{type:"button",class:"ss-dash-btn",onClick:V[0]||(V[0]=ne=>_.value=!1)}," ← Back to Requests ")]),V[6]||(V[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(u(),d(U,{key:2},[be(Ct,{"model-value":x.value,placeholder:"Filter requests...",summary:`${w(c).total??0} requests`,"onUpdate:modelValue":C},null,8,["model-value","summary"]),w(r)?(u(),d("div",lh,"Failed to load requests")):te("",!0),w(i)&&!w(o)?(u(),d("div",oh,"Loading requests...")):(u(),d(U,{key:2},[n("div",ah,[R.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:X,class:"ss-dash-table"},[V[15]||(V[15]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"60px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"50px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"80px"}})],-1)),n("thead",null,[n("tr",null,[V[12]||(V[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:V[1]||(V[1]=ne=>J("method"))},[V[7]||(V[7]=xe(" Method ",-1)),w(g).column==="method"?(u(),d("span",ih,f(w(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[2]||(V[2]=ne=>J("url"))},[V[8]||(V[8]=xe(" URL ",-1)),w(g).column==="url"?(u(),d("span",rh,f(w(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[3]||(V[3]=ne=>J("statusCode"))},[V[9]||(V[9]=xe(" Status ",-1)),w(g).column==="statusCode"?(u(),d("span",uh,f(w(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[4]||(V[4]=ne=>J("duration"))},[V[10]||(V[10]=xe(" Duration ",-1)),w(g).column==="duration"?(u(),d("span",ch,f(w(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),V[13]||(V[13]=n("th",null,"Spans",-1)),V[14]||(V[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:V[5]||(V[5]=ne=>J("createdAt"))},[V[11]||(V[11]=xe(" Time ",-1)),w(g).column==="createdAt"?(u(),d("span",dh,f(w(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)])])]),n("tbody",null,[(u(!0),d(U,null,me(R.value,ne=>(u(),d("tr",{key:ne.id,class:"ss-dash-clickable",onClick:_e=>y(ne)},[n("td",null,[n("span",hh,f(ne.id),1)]),n("td",null,[n("span",{class:D(`ss-dash-method ss-dash-method-${(ne.method||"").toLowerCase()}`)},f(ne.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:ne.url},f(ne.url),9,ph)]),n("td",null,[n("span",{class:D(`ss-dash-status ss-dash-status-${Math.floor((ne.status_code||ne.statusCode||200)/100)}xx`)},f(ne.status_code||ne.statusCode),3)]),n("td",null,[n("span",{class:D(`ss-dash-duration ${W(ne.total_duration||ne.totalDuration||ne.duration||0)}`)},f((ne.total_duration||ne.totalDuration||ne.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",vh,f(ne.span_count||ne.spanCount||0),1)]),n("td",null,[(ne.warning_count||ne.warningCount||0)>0?(u(),d("span",gh,f(ne.warning_count||ne.warningCount||0),1)):(u(),d("span",yh,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(ne.createdAt||ne.created_at||ne.timestamp||"")},f(w(bt)(ne.createdAt||ne.created_at||ne.timestamp||"")),9,mh)])],8,fh))),128))])],512)):(u(),d("div",bh,"No requests recorded yet"))]),w(c).totalPages>1?(u(),Xe(Kt,{key:0,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),xh={class:"ss-dash-btn-group"},wh={key:0,class:"ss-dash-empty"},$h={key:1,class:"ss-dash-table-wrap"},kh={key:0,class:"ss-dash-sort-arrow"},Sh={key:0,class:"ss-dash-sort-arrow"},Ch={key:0,class:"ss-dash-sort-arrow"},Th=["onClick","onKeydown"],Eh={key:0,class:"ss-dash-dup"},Ph={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Ah={class:"ss-dash-duration"},Mh={class:"ss-dash-duration"},Rh={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Lh={key:1,class:"ss-dash-empty"},Oh={class:"ss-dash-table-wrap"},Dh={key:0,class:"ss-dash-sort-arrow"},Fh={key:0,class:"ss-dash-sort-arrow"},Ih={style:{color:"var(--ss-dim)"}},Bh=["onClick","onKeydown"],Nh={key:0,class:"ss-dash-dup"},jh=["title"],Hh={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Uh=["title"],qh=["disabled","onClick"],Kh={key:0,class:"ss-dash-explain-row"},Vh={colspan:"8",class:"ss-dash-explain"},zh={style:{display:"flex","justify-content":"space-between","align-items":"start"}},Wh={style:{flex:"1"}},Jh={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},Qh={key:0},Gh={key:1,class:"ss-dash-explain-result"},Yh={key:2,class:"ss-dash-explain-result"},Xh={key:3,class:"ss-dash-explain-result"},Zh={key:1,class:"ss-dash-empty"};function pa(e,t){if(!e)return null;const s=t*20,l=e["Node Type"]||"Unknown",a=e["Relation Name"]||"",o=e.Alias&&e.Alias!==e["Relation Name"]?` (${e.Alias})`:"",i=e["Index Name"]||"",r=[];if(e["Startup Cost"]!==null&&e["Startup Cost"]!==void 0&&r.push(`cost=${e["Startup Cost"]}..${e["Total Cost"]}`),e["Plan Rows"]!==null&&e["Plan Rows"]!==void 0&&r.push(`rows=${e["Plan Rows"]}`),e["Plan Width"]!==null&&e["Plan Width"]!==void 0&&r.push(`width=${e["Plan Width"]}`),e.Filter&&r.push(`filter: ${e.Filter}`),e["Index Cond"]&&r.push(`cond: ${e["Index Cond"]}`),e["Hash Cond"]&&r.push(`hash: ${e["Hash Cond"]}`),e["Join Type"]&&r.push(`join: ${e["Join Type"]}`),e["Sort Key"]){const g=Array.isArray(e["Sort Key"])?e["Sort Key"].join(", "):e["Sort Key"];r.push(`sort: ${g}`)}const c=e.Plans||[];return us("div",{class:"ss-dash-explain-node",style:{marginLeft:`${s}px`}},[us("div",{class:"ss-dash-explain-node-header"},[us("span",{class:"ss-dash-explain-node-type"},l),a?[" on ",us("strong",null,a)]:null,o||null,i?[" using ",us("em",null,i)]:null]),r.length>0?us("div",{class:"ss-dash-explain-metrics"},r.join(" · ")):null,...c.map((g,v)=>pa(g,t+1))])}const va=De({name:"ExplainPlanNode",props:{node:{type:Object,required:!0},depth:{type:Number,default:0}},setup(e){return()=>pa(e.node,e.depth)}}),ep=De({...{components:{ExplainPlanNode:va}},__name:"QueriesSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),o=Q("list"),i=Q(null),r=Q(null),c=Q(null),g=q(()=>o.value==="grouped"?"queries/grouped":"queries"),{data:v,loading:m,pagination:p,sort:x,goToPage:$,setSearch:_,setSort:E,explainQuery:R}=Ze(()=>g.value,{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),M=Q(""),y=q(()=>v.value?o.value==="grouped"?v.value.groups||[]:v.value.data||v.value||[]:[]),k=q(()=>o.value!=="grouped"?y.value:y.value.map(T=>{const A={...T};return(A.sqlNormalized===null||A.sqlNormalized===void 0&&(T.sql_normalized||T.pattern))&&(A.sqlNormalized=T.sql_normalized||T.pattern||""),(A.count===null||A.count===void 0)&&T.total_count!==null&&T.total_count!==void 0&&(A.count=T.total_count),(A.avgDuration===null||A.avgDuration===void 0)&&T.avg_duration!==null&&T.avg_duration!==void 0&&(A.avgDuration=T.avg_duration),(A.maxDuration===null||A.maxDuration===void 0)&&T.max_duration!==null&&T.max_duration!==void 0&&(A.maxDuration=T.max_duration),(A.minDuration===null||A.minDuration===void 0)&&T.min_duration!==null&&T.min_duration!==void 0&&(A.minDuration=T.min_duration),(A.totalDuration===null||A.totalDuration===void 0)&&T.total_duration!==null&&T.total_duration!==void 0&&(A.totalDuration=T.total_duration),(A.percentOfTotal===null||A.percentOfTotal===void 0)&&T.pct_time!==null&&T.pct_time!==void 0&&(A.percentOfTotal=T.pct_time),A})),C=q(()=>{const T=new Map;for(const A of k.value){const S=A.sqlNormalized||A.sql||A.sql_text||"";T.set(S,(T.get(S)||0)+1)}return T}),J=q(()=>{const T=p.total??k.value.length;let A=0,S=0,H=0,z=0;for(const le of k.value){const K=le.duration||0;H+=K,z++,K>ea&&A++}for(const le of C.value.values())le>1&&(S+=le);return{total:T,slow:A,duplicates:S,avgDuration:z>0?H/z:0}}),W=q(()=>{if(o.value==="grouped")return`${k.value.length} query patterns`;const T=[`${J.value.total} queries`];return J.value.slow>0&&T.push(`${J.value.slow} slow`),J.value.duplicates>0&&T.push(`${J.value.duplicates} dup`),T.push(`avg ${(J.value.avgDuration||0).toFixed(1)}ms`),T.join(", ")});function X(T){M.value=T,_(T)}function L(T){T!==o.value&&(o.value=T,i.value=null,r.value=null,c.value=null)}function V(T){E(T)}async function ne(T){if(r.value&&r.value.queryId===T){r.value=null;return}c.value=T;try{const A=await R(T);A&&A.error?r.value={queryId:T,plan:[],error:A.error,message:A.message}:r.value={queryId:T,plan:A?.plan||A?.rows||[]}}catch(A){r.value={queryId:T,plan:[],error:A instanceof Error?A.message:String(A)}}finally{c.value=null}}function _e(T){const A=nn(T);return A==="very-slow"?"ss-dash-very-slow":A==="slow"?"ss-dash-slow":""}function Me(){const T=r.value?.plan;return!T||T.length===0||typeof T[0]!="object"||!T[0]?[]:Object.keys(T[0])}function Le(T,A){if(!T||typeof T!="object")return"-";const S=T[A];return S!=null?String(S):"-"}function Re(){const T=r.value?.plan;return!T||T.length===0||typeof T[0]!="object"||!T[0]?!1:"Plan"in T[0]}function pe(){const T=r.value?.plan;return!T||T.length===0||typeof T[0]!="object"||!T[0]?{}:T[0].Plan}const{tableRef:fe}=Bt(()=>k.value);return(T,A)=>(u(),d("div",null,[be(Ct,{"model-value":M.value,placeholder:"Filter queries...",summary:W.value,"onUpdate:modelValue":X},{default:es(()=>[n("div",xh,[n("button",{type:"button",class:D(`ss-dash-btn ${o.value==="list"?"ss-dash-active":""}`),onClick:A[0]||(A[0]=S=>L("list"))}," List ",2),n("button",{type:"button",class:D(`ss-dash-btn ${o.value==="grouped"?"ss-dash-active":""}`),onClick:A[1]||(A[1]=S=>L("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),w(m)&&!w(v)?(u(),d("div",wh,"Loading queries...")):o.value==="grouped"?(u(),d("div",$h,[k.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:fe,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[A[11]||(A[11]=n("th",null,"Pattern",-1)),n("th",{class:"ss-dash-sortable",onClick:A[2]||(A[2]=S=>V("count"))},[A[8]||(A[8]=xe(" Count ",-1)),w(x).column==="count"?(u(),d("span",kh,f(w(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:A[3]||(A[3]=S=>V("avgDuration"))},[A[9]||(A[9]=xe(" Avg ",-1)),w(x).column==="avgDuration"?(u(),d("span",Sh,f(w(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),A[12]||(A[12]=n("th",null,"Min",-1)),A[13]||(A[13]=n("th",null,"Max",-1)),n("th",{class:"ss-dash-sortable",onClick:A[4]||(A[4]=S=>V("totalDuration"))},[A[10]||(A[10]=xe(" Total ",-1)),w(x).column==="totalDuration"?(u(),d("span",Ch,f(w(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),A[14]||(A[14]=n("th",null,"% Time",-1))])]),n("tbody",null,[(u(!0),d(U,null,me(k.value,(S,H)=>(u(),d("tr",{key:H},[n("td",null,[n("span",{class:D(`ss-dash-sql ${i.value===S.sqlNormalized?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:ot(z=>i.value=i.value===S.sqlNormalized?null:S.sqlNormalized,["stop"]),onKeydown:Ts(z=>i.value=i.value===S.sqlNormalized?null:S.sqlNormalized,["enter"])},f(S.sqlNormalized),43,Th),(S.count||0)>=3?(u(),d("span",Eh,"DUP")):te("",!0)]),n("td",null,[n("span",Ph,f(S.count||0),1)]),n("td",null,[n("span",{class:D(`ss-dash-duration ${_e(S.avgDuration||0)}`)},f((S.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Ah,f((S.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:D(`ss-dash-duration ${_e(S.maxDuration||0)}`)},f((S.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Mh,f((S.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",Rh,f((S.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(u(),d("div",Lh,"No queries recorded"))])):(u(),d(U,{key:2},[n("div",Oh,[k.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:fe,class:"ss-dash-table"},[A[24]||(A[24]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"70px"}}),n("col",{style:{width:"60px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"70px"}})],-1)),n("thead",null,[n("tr",null,[A[17]||(A[17]=n("th",null,"#",-1)),A[18]||(A[18]=n("th",null,"SQL",-1)),n("th",{class:"ss-dash-sortable",onClick:A[5]||(A[5]=S=>V("duration"))},[A[15]||(A[15]=xe(" Duration ",-1)),w(x).column==="duration"?(u(),d("span",Dh,f(w(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),A[19]||(A[19]=n("th",null,"Method",-1)),A[20]||(A[20]=n("th",null,"Model",-1)),A[21]||(A[21]=n("th",null,"Connection",-1)),n("th",{class:"ss-dash-sortable",onClick:A[6]||(A[6]=S=>V("createdAt"))},[A[16]||(A[16]=xe(" Time ",-1)),w(x).column==="createdAt"?(u(),d("span",Fh,f(w(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),A[22]||(A[22]=n("th",null,null,-1))])]),n("tbody",null,[(u(!0),d(U,null,me(k.value,S=>(u(),d(U,{key:S.id},[n("tr",null,[n("td",null,[n("span",Ih,f(S.id),1)]),n("td",null,[n("div",null,[n("span",{class:D(`ss-dash-sql ${i.value===S.id?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:ot(H=>i.value=i.value===S.id?null:S.id,["stop"]),onKeydown:Ts(H=>i.value=i.value===S.id?null:S.id,["enter"])},f(S.sql||S.sql_text||""),43,Bh),(C.value.get((S.sqlNormalized||S.sql||S.sql_text)??"")??0)>1?(u(),d("span",Nh," ×"+f(C.value.get((S.sqlNormalized||S.sql||S.sql_text)??"")),1)):te("",!0)])]),n("td",null,[n("span",{class:D(`ss-dash-duration ${_e(S.duration||0)}`)},f((S.duration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:D(`ss-dash-method ss-dash-method-${(S.method||S.sql_method||"").toLowerCase()}`)},f(S.method||S.sql_method||""),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:S.model},f(S.model||"-"),9,jh)]),n("td",null,[n("span",Hh,f(S.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(S.createdAt||S.created_at||S.timestamp||"")},f(w(bt)(S.createdAt||S.created_at||S.timestamp||"")),9,Uh)]),n("td",null,[(S.method||S.sql_method||"")==="select"?(u(),d("button",{key:0,type:"button",class:D(`ss-dash-explain-btn${r.value?.queryId===S.id&&!r.value?.error?" ss-dash-explain-btn-active":""}`),disabled:c.value===S.id,onClick:ot(H=>ne(S.id),["stop"])},f(c.value===S.id?"...":"EXPLAIN"),11,qh)):te("",!0)])]),r.value&&r.value.queryId===S.id?(u(),d("tr",Kh,[n("td",Vh,[n("div",zh,[n("div",Wh,[r.value.error?(u(),d("div",Jh,[A[23]||(A[23]=n("strong",null,"Error:",-1)),xe(" "+f(r.value.error)+" ",1),r.value.message?(u(),d("br",Qh)):te("",!0),xe(" "+f(r.value.message),1)])):Re()?(u(),d("div",Gh,[be(w(va),{node:pe(),depth:0},null,8,["node"])])):r.value.plan&&r.value.plan.length>0&&typeof r.value.plan[0]=="object"?(u(),d("div",Yh,[n("table",null,[n("thead",null,[n("tr",null,[(u(!0),d(U,null,me(Me(),H=>(u(),d("th",{key:H},f(H),1))),128))])]),n("tbody",null,[(u(!0),d(U,null,me(r.value.plan,(H,z)=>(u(),d("tr",{key:z},[(u(!0),d(U,null,me(Me(),le=>(u(),d("td",{key:le},f(Le(H,le)),1))),128))]))),128))])])])):(u(),d("div",Xh,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:A[7]||(A[7]=H=>r.value=null)}," Close ")])])])):te("",!0)],64))),128))])],512)):(u(),d("div",Zh,"No queries recorded"))]),w(p).totalPages>1?(u(),Xe(Kt,{key:0,page:w(p).page,"last-page":w(p).totalPages,total:w(p).total,onPageChange:w($)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))]))}}),tp=Object.freeze(Object.defineProperty({__proto__:null,default:ep},Symbol.toStringTag,{value:"Module"})),cn=De({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=Q(t.defaultExpanded),l=q(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return ln(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return ln(t.value,t.maxLen||100)}),a=q(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function i(){navigator.clipboard?.writeText(a.value)}return(r,c)=>e.value===null||e.value===void 0?(u(),d("span",{key:0,class:D(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(u(),d("div",{key:1,class:D(`${t.classPrefix}-data-cell`)},[s.value?te("",!0):(u(),d("span",{key:0,class:D(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:c[0]||(c[0]=g=>g.key==="Enter"&&o())},f(l.value),35)),s.value?(u(),d("div",{key:1,class:D(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:D(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:ot(i,["stop"])}," Copy ",2),n("pre",null,f(a.value),1)],2)):te("",!0)],2))}}),sp={key:0,class:"ss-dash-empty"},np={class:"ss-dash-table-wrap"},lp={style:{color:"var(--ss-dim)"}},op=["title"],ap=["title"],ip={key:1,class:"ss-dash-empty"},rp=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"EventsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,pagination:r,goToPage:c,setSearch:g}=Ze(()=>"events",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),v=Q(""),m=q(()=>{if(!o.value)return[];const $=o.value;return $.data||$.events||o.value||[]});function p($){v.value=$,g($)}const{tableRef:x}=Bt(()=>m.value);return($,_)=>(u(),d("div",null,[be(Ct,{"model-value":v.value,placeholder:"Filter events...",summary:`${w(r).total??0} events`,"onUpdate:modelValue":p},null,8,["model-value","summary"]),w(i)&&!w(o)?(u(),d("div",sp,"Loading events...")):(u(),d(U,{key:1},[n("div",np,[m.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:x,class:"ss-dash-table"},[_[0]||(_[0]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col"),n("col",{style:{width:"80px"}})],-1)),_[1]||(_[1]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Event"),n("th",null,"Data"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(U,null,me(m.value,E=>(u(),d("tr",{key:E.id},[n("td",null,[n("span",lp,f(E.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:E.event_name||E.eventName||E.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(E.event_name||E.eventName||E.event||""),9,op)]),n("td",null,[be(cn,{value:E.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(E.createdAt||E.created_at||E.timestamp)},f(w(bt)(E.createdAt||E.created_at||E.timestamp)),9,ap)])]))),128))])],512)):(u(),d("div",ip,"No events recorded yet"))]),w(r).totalPages>1?(u(),Xe(Kt,{key:0,page:w(r).page,"last-page":w(r).totalPages,total:w(r).total,onPageChange:w(c)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),up={key:0,class:"ss-dash-empty"},cp={key:1,class:"ss-dash-empty"},dp={key:2,class:"ss-dash-table-wrap"},fp=["title"],hp=["title"],pp=["title"],vp=["title"],gp={key:1,class:"ss-dash-empty"},yp=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"RoutesSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,error:r,setSearch:c}=Ze(()=>"routes",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=Q(""),v=q(()=>{if(!o.value)return[];const x=o.value;return Array.isArray(x)?x:Array.isArray(x.routes)?x.routes:Array.isArray(x.data)?x.data:[]});function m(x){g.value=x,c(x)}const{tableRef:p}=Bt(()=>v.value);return(x,$)=>(u(),d("div",null,[be(Ct,{"model-value":g.value,placeholder:"Filter routes...",summary:`${v.value.length} routes`,"onUpdate:modelValue":m},null,8,["model-value","summary"]),w(r)?(u(),d("div",up,"Failed to load routes")):w(i)&&!w(o)?(u(),d("div",cp,"Loading routes...")):(u(),d("div",dp,[v.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:p,class:"ss-dash-table"},[$[0]||($[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),$[1]||($[1]=n("thead",null,[n("tr",null,[n("th",null,"Method"),n("th",null,"Pattern"),n("th",null,"Name"),n("th",null,"Handler"),n("th",null,"Middleware")])],-1)),n("tbody",null,[(u(!0),d(U,null,me(v.value,(_,E)=>(u(),d("tr",{key:_.pattern||E},[n("td",null,[n("span",{class:D(`ss-dash-method ss-dash-method-${(_.method||"").toLowerCase()}`)},f(_.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.pattern},f(_.pattern),9,fp)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.name||"-"},f(_.name||"-"),9,hp)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.handler},f(_.handler),9,pp)]),n("td",null,[n("span",{style:{color:"var(--ss-dim)","font-size":"10px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.middleware?.length?_.middleware.join(", "):"-"},f(_.middleware?.length?_.middleware.join(", "):"-"),9,vp)])]))),128))])],512)):(u(),d("div",gp,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),mp={class:"ss-dash-log-filters"},bp=["onClick"],_p=["value"],xp={class:"ss-dash-structured-search"},wp=["value"],$p=["value"],kp=["value"],Sp={key:0,class:"ss-dash-filter-chips"},Cp={key:0,class:"ss-dash-filter-chip"},Tp={key:1,class:"ss-dash-filter-chip"},Ep=["onClick"],Pp={key:1,class:"ss-dash-empty"},Ap={key:2,class:"ss-dash-empty"},Mp={key:3,class:"ss-dash-empty"},Rp={key:4,class:"ss-dash-log-entries"},Lp=["onClick"],Op=["title"],Dp=["title","onClick","onKeydown"],Fp={key:1,class:"ss-dash-log-reqid-empty"},Ip={key:3,style:{width:"14px"}},Bp={class:"ss-dash-log-msg"},Np={key:0,class:"ss-dash-log-detail"},jp=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"LogsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,error:r,pagination:c,filter:g,goToPage:v,setSearch:m,setFilter:p,refresh:x}=Ze(()=>"logs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),$=Q(""),_=Q("all"),E=Q(""),R=Q(""),M=Q(null),y=Q([]),k=Q("level"),C=Q("equals"),J=Q(""),W=q(()=>{if(!o.value)return[];const H=o.value;return H.data||H.logs||o.value||[]}),X=q(()=>_.value!=="all"||E.value!==""||y.value.length>0);function L(H,z){z&&(M.value=M.value===H?null:H)}function V(H){$.value=H,m(H)}function ne(H){_.value=H,H==="all"?p("level",""):p("level",H)}function _e(H){E.value=H,R.value=H,p("request_id",H)}function Me(){const H=R.value.trim();E.value=H,p("request_id",H)}function Le(){E.value="",R.value="",p("request_id","")}function Re(){_.value="all",p("level","")}function pe(){const H=g;for(const z of Object.keys(H))(z.startsWith("filter_field_")||z.startsWith("filter_op_")||z.startsWith("filter_value_"))&&delete H[z];y.value.forEach((z,le)=>{H[`filter_field_${le}`]=z.field,H[`filter_op_${le}`]=z.operator,H[`filter_value_${le}`]=z.value}),c.page=1,x()}function fe(){const H=J.value.trim();H&&(y.value.push({field:k.value,operator:C.value,value:H}),J.value="",pe())}function T(H){y.value.splice(H,1),pe()}function A(H){return H.target.value}function S(H){return H.target.value}return(H,z)=>(u(),d("div",null,[be(Ct,{"model-value":$.value,placeholder:"Search logs...",summary:`${w(c).total??0} logs`,"onUpdate:modelValue":V},{default:es(()=>[n("div",mp,[(u(!0),d(U,null,me(w(Su),le=>(u(),d("button",{key:le,type:"button",class:D(`ss-dash-log-filter ${_.value===le?"ss-dash-active":""}`),onClick:K=>ne(le)},f(le),11,bp))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:R.value,onInput:z[0]||(z[0]=le=>R.value=A(le)),onKeydown:Ts(Me,["enter"])},null,40,_p),R.value||E.value?(u(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:Le}," Clear ")):te("",!0)])]),_:1},8,["model-value","summary"]),n("div",xp,[n("select",{class:"ss-dash-filter-select",value:k.value,onChange:z[1]||(z[1]=le=>k.value=S(le))},[...z[4]||(z[4]=[cr('<option value="level">level</option><option value="message">message</option><option value="request_id">request_id</option><option value="userId">userId</option><option value="email">email</option><option value="path">path</option>',6)])],40,wp),n("select",{class:"ss-dash-filter-select",value:C.value,onChange:z[2]||(z[2]=le=>C.value=S(le))},[...z[5]||(z[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,$p),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:J.value,onInput:z[3]||(z[3]=le=>J.value=A(le)),onKeydown:Ts(fe,["enter"])},null,40,kp),n("button",{type:"button",class:"ss-dash-btn",onClick:fe},"Add")]),X.value?(u(),d("div",Sp,[_.value!=="all"?(u(),d("span",Cp,[xe(" level: "+f(_.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Re}," × ")])):te("",!0),E.value?(u(),d("span",Tp,[xe(" requestId: "+f(E.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Le}," × ")])):te("",!0),(u(!0),d(U,null,me(y.value,(le,K)=>(u(),d("span",{key:K,class:"ss-dash-filter-chip"},[xe(f(le.field)+" "+f(le.operator)+' "'+f(le.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:ae=>T(K)}," × ",8,Ep)]))),128))])):te("",!0),w(r)?(u(),d("div",Pp,"Failed to load logs")):w(i)&&!w(o)?(u(),d("div",Ap,"Loading logs...")):W.value.length===0?(u(),d("div",Mp," No log entries"+f(E.value?` matching request ${E.value}`:_.value!=="all"?` for ${_.value}`:""),1)):(u(),d("div",Rp,[(u(!0),d(U,null,me(W.value,(le,K)=>(u(),d(U,{key:String(le.id||K)},[n("div",{class:D(["ss-dash-log-entry",{"ss-dash-log-entry-expandable":!!w(As)(le)}]),onClick:ae=>L(K,!!w(As)(le))},[n("span",{class:D(`ss-dash-log-level ${w(Tu)(w(aa)(le),"ss-dash-log-level")}`)},f(w(aa)(le).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:w(on)(le)?w(It)(w(on)(le)):""},f(w(on)(le)?w(bt)(w(on)(le)):"-"),9,Op),w(Ps)(le)?(u(),d("span",{key:0,class:"ss-dash-log-reqid",title:w(Ps)(le),role:"button",tabindex:"0",onClick:ot(ae=>_e(w(Ps)(le)),["stop"]),onKeydown:Ts(ot(ae=>_e(w(Ps)(le)),["stop"]),["enter"])},f(w(Ps)(le).slice(0,8)),41,Dp)):(u(),d("span",Fp,"--")),w(As)(le)?(u(),d("span",{key:2,class:D(["ss-dash-log-expand-icon",{"ss-dash-log-expand-icon-open":M.value===K}])},"▶",2)):(u(),d("span",Ip)),n("span",Bp,f(w(Cu)(le)),1)],10,Lp),M.value===K&&w(As)(le)?(u(),d("div",Np,[be(cn,{value:w(As)(le),"class-prefix":"ss-dash","default-expanded":""},null,8,["value"])])):te("",!0)],64))),128))])),w(c).totalPages>1?(u(),Xe(Kt,{key:5,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):te("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Hp={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},Up={class:"ss-dash-email-preview-header"},qp={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Kp=["srcdoc"],Vp={key:0,class:"ss-dash-empty"},zp={class:"ss-dash-table-wrap"},Wp=["onClick"],Jp={style:{color:"var(--ss-dim)"}},Qp=["title"],Gp=["title"],Yp=["title"],Xp={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Zp={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},ev=["title"],tv=["title"],sv={key:1,class:"ss-dash-empty"},nv=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"EmailsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,pagination:r,goToPage:c,setSearch:g,fetchEmailPreview:v}=Ze(()=>"emails",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),m=Q(""),p=Q(null),x=Q(null),$=q(()=>{if(!o.value)return[];const y=o.value;return y.data||y.emails||o.value||[]});function _(y){m.value=y,g(y)}async function E(y){if(y.html){p.value=y.id,x.value=y.html;return}const k=await v(y.id);p.value=y.id,x.value=k}function R(){p.value=null,x.value=null}const{tableRef:M}=Bt(()=>$.value);return(y,k)=>(u(),d("div",null,[p.value&&x.value?(u(),d("div",Hp,[n("div",Up,[n("div",qp,[$.value.find(C=>C.id===p.value)?(u(),d(U,{key:0},[k[4]||(k[4]=n("strong",null,"Subject:",-1)),xe(" "+f($.value.find(C=>C.id===p.value)?.subject)+" | ",1),k[5]||(k[5]=n("strong",null,"From:",-1)),xe(" "+f($.value.find(C=>C.id===p.value)?.from_addr||$.value.find(C=>C.id===p.value)?.from)+" | ",1),k[6]||(k[6]=n("strong",null,"To:",-1)),xe(" "+f($.value.find(C=>C.id===p.value)?.to_addr||$.value.find(C=>C.id===p.value)?.to)+" ",1),$.value.find(C=>C.id===p.value)?.cc||$.value.find(C=>C.id===p.value)?.cc_addr?(u(),d(U,{key:0},[k[0]||(k[0]=xe(" | ",-1)),k[1]||(k[1]=n("strong",null,"CC:",-1)),xe(" "+f($.value.find(C=>C.id===p.value)?.cc||$.value.find(C=>C.id===p.value)?.cc_addr),1)],64)):te("",!0),k[7]||(k[7]=xe(" | ",-1)),k[8]||(k[8]=n("strong",null,"Status:",-1)),n("span",{class:D(`ss-dash-badge ss-dash-email-status-${$.value.find(C=>C.id===p.value)?.status}`)},f($.value.find(C=>C.id===p.value)?.status),3),$.value.find(C=>C.id===p.value)?.mailer?(u(),d(U,{key:1},[k[2]||(k[2]=xe(" | ",-1)),k[3]||(k[3]=n("strong",null,"Mailer:",-1)),xe(" "+f($.value.find(C=>C.id===p.value)?.mailer),1)],64)):te("",!0)],64)):te("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:R}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:x.value,title:"Email preview",sandbox:""},null,8,Kp)])):(u(),d(U,{key:1},[be(Ct,{"model-value":m.value,placeholder:"Filter emails...",summary:`${w(r).total??0} emails`,"onUpdate:modelValue":_},null,8,["model-value","summary"]),w(i)&&!w(o)?(u(),d("div",Vp,"Loading emails...")):(u(),d(U,{key:1},[n("div",zp,[$.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:M,class:"ss-dash-table"},[k[9]||(k[9]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"150px"}}),n("col",{style:{width:"150px"}}),n("col"),n("col",{style:{width:"80px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"80px"}})],-1)),k[10]||(k[10]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"From"),n("th",null,"To"),n("th",null,"Subject"),n("th",null,"Status"),n("th",null,"ATT"),n("th",null,"Mailer"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(U,null,me($.value,C=>(u(),d("tr",{key:C.id,class:"ss-dash-clickable ss-dash-email-row",onClick:J=>E(C)},[n("td",null,[n("span",Jp,f(C.id),1)]),n("td",null,[n("span",{title:C.from_addr||C.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(C.from_addr||C.from||""),9,Qp)]),n("td",null,[n("span",{title:C.to_addr||C.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(C.to_addr||C.to||""),9,Gp)]),n("td",null,[n("span",{title:C.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(C.subject||""),9,Yp)]),n("td",null,[n("span",{class:D(`ss-dash-badge ss-dash-email-status-${C.status||""}`)},f(C.status),3)]),n("td",null,[(C.attachment_count||C.attachmentCount||0)>0?(u(),d("span",Xp,f(C.attachment_count||C.attachmentCount||0),1)):(u(),d("span",Zp,"-"))]),n("td",null,[n("span",{title:C.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(C.mailer||""),9,ev)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(It)(C.createdAt||C.created_at||C.timestamp)},f(w(bt)(C.createdAt||C.created_at||C.timestamp)),9,tv)])],8,Wp))),128))])],512)):(u(),d("div",sv,"No emails captured yet"))]),w(r).totalPages>1?(u(),Xe(Kt,{key:0,page:w(r).page,"last-page":w(r).totalPages,total:w(r).total,onPageChange:w(c)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),lv={key:0,class:"ss-dash-empty"},ov={class:"ss-dash-tl-detail-header"},av={style:{color:"var(--ss-text)"}},iv={class:"ss-dash-tl-meta"},rv={key:0,class:"ss-dash-empty"},uv={key:1,class:"ss-dash-empty"},cv={class:"ss-dash-table-wrap"},dv=["onClick"],fv={style:{color:"var(--ss-dim)"}},hv=["title"],pv={style:{color:"var(--ss-muted)","text-align":"center"}},vv=["title"],gv={key:1,class:"ss-dash-empty"},yv=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"TimelineSection",props:{tracingEnabled:{type:Boolean,default:!0}},setup(e){const t=e,s=ue("ss-refresh-key",Q(0)),l=ue("ss-dashboard-endpoint","/__stats/api"),a=ue("ss-auth-token",void 0),o=ue("ss-base-url",""),{data:i,loading:r,error:c,pagination:g,goToPage:v,setSearch:m}=Ze(()=>"traces",{baseUrl:o,dashboardEndpoint:l,authToken:a,refreshKey:s}),p=Q(""),x=Q(null),$=Q(null),_=Q(!1),E=q(()=>{if(!i.value)return[];const W=i.value;return W.data||W.traces||i.value||[]}),R=un(o,a);async function M(W){x.value=W,_.value=!0,$.value=null;try{const X=l||"/__stats/api",L=await R().fetch(`${X}/traces/${W}`);$.value=L}catch{}finally{_.value=!1}}function y(){x.value=null,$.value=null}function k(W){p.value=W,m(W)}function C(W){const X=nn(W);return X==="very-slow"?"ss-dash-very-slow":X==="slow"?"ss-dash-slow":""}const{tableRef:J}=Bt(()=>E.value);return(W,X)=>(u(),d("div",null,[t.tracingEnabled?x.value&&$.value?(u(),d(U,{key:1},[n("div",ov,[n("button",{type:"button",class:"ss-dash-btn",onClick:y},"← Back"),n("span",{class:D(`ss-dash-method ss-dash-method-${($.value.method||"").toLowerCase()}`)},f($.value.method),3),n("span",av,f($.value.url),1),n("span",{class:D(`ss-dash-status ss-dash-status-${Math.floor(($.value.status_code||$.value.statusCode||0)/100)}xx`)},f($.value.status_code||$.value.statusCode||0),3),n("span",iv,f(($.value.total_duration||$.value.totalDuration||0).toFixed(1))+"ms · "+f($.value.spanCount??w(ol)($.value.spans).length)+" spans ",1)]),be(ha,{spans:w(ol)($.value.spans),"total-duration":$.value.total_duration||$.value.totalDuration||0,warnings:w(ra)($.value.warnings)},null,8,["spans","total-duration","warnings"])],64)):x.value&&_.value?(u(),d(U,{key:2},[n("div",{class:"ss-dash-tl-detail-header"},[n("button",{type:"button",class:"ss-dash-btn",onClick:y},"← Back")]),X[0]||(X[0]=n("div",{class:"ss-dash-empty"},"Loading trace detail...",-1))],64)):(u(),d(U,{key:3},[be(Ct,{"model-value":p.value,placeholder:"Filter traces...",summary:`${w(g).total??0} traces`,"onUpdate:modelValue":k},null,8,["model-value","summary"]),w(c)?(u(),d("div",rv,"Failed to load traces")):te("",!0),w(r)&&!w(i)?(u(),d("div",uv,"Loading traces...")):(u(),d(U,{key:2},[n("div",cv,[E.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:J,class:"ss-dash-table"},[X[1]||(X[1]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"60px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"50px"}}),n("col",{style:{width:"80px"}})],-1)),X[2]||(X[2]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Method"),n("th",null,"URL"),n("th",null,"Status"),n("th",null,"Duration"),n("th",null,"Spans"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(U,null,me(E.value,L=>(u(),d("tr",{key:L.id,class:"ss-dash-clickable",onClick:V=>M(L.id)},[n("td",null,[n("span",fv,f(L.id),1)]),n("td",null,[n("span",{class:D(`ss-dash-method ss-dash-method-${(L.method||"").toLowerCase()}`)},f(L.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:L.url},f(L.url),9,hv)]),n("td",null,[n("span",{class:D(`ss-dash-status ss-dash-status-${Math.floor((L.statusCode||L.status_code||0)/100)}xx`)},f(L.statusCode||L.status_code||0),3)]),n("td",null,[n("span",{class:D(`ss-dash-duration ${C(L.totalDuration||L.total_duration||0)}`)},f((L.totalDuration||L.total_duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",pv,f(L.spanCount||L.span_count||0),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(L.createdAt||L.created_at||L.timestamp)},f(w(bt)(L.createdAt||L.created_at||L.timestamp)),9,vv)])],8,dv))),128))])],512)):(u(),d("div",gv,"No traces recorded"))]),w(g).totalPages>1?(u(),Xe(Kt,{key:0,page:w(g).page,"last-page":w(g).totalPages,total:w(g).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))],64)):(u(),d("div",lv," Tracing is not enabled. Enable tracing in your server-stats config to use the timeline. "))]))}})},Symbol.toStringTag,{value:"Module"})),mv={key:0,class:"ss-dash-cache-stats"},bv={class:"ss-dash-cache-stat"},_v={class:"ss-dash-cache-stat-value"},xv={class:"ss-dash-cache-stat"},wv={class:"ss-dash-cache-stat-value"},$v={class:"ss-dash-cache-stat"},kv={class:"ss-dash-cache-stat-value"},Sv={class:"ss-dash-cache-stat"},Cv={class:"ss-dash-cache-stat-value"},Tv={key:1,class:"ss-dash-empty"},Ev={key:2,class:"ss-dash-empty"},Pv={key:3,class:"ss-dash-table-wrap"},Av=["onClick"],Mv=["title"],Rv={style:{color:"var(--ss-muted)"}},Lv=["onClick"],Ov={key:1,class:"ss-dash-empty"},Dv={key:4,class:"ss-dash-cache-detail"},Fv={key:0,class:"ss-dash-empty"},Iv={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},Bv=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"CacheSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,setSearch:r,mutate:c}=Ze(()=>"cache",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=un(a||"",l),v=new la(g(),s||"/__stats/api"),m=Q(""),p=Q(null),x=Q(null),$=Q(!1),_=Q(null),E=q(()=>o.value),R=q(()=>E.value?.keys||E.value?.data||[]);function M(J){m.value=J,r(J)}async function y(J){if(confirm(`Delete cache key "${J}"?`))try{await c(`cache/${encodeURIComponent(J)}`,"delete"),p.value===J&&(p.value=null,x.value=null,_.value=null)}catch{}}const{tableRef:k}=Bt(()=>R.value);async function C(J){if(p.value===J){p.value=null,x.value=null,_.value=null;return}p.value=J,x.value=null,_.value=null,$.value=!0;try{const W=await v.fetchCacheKey(J);x.value=W.value!==void 0?W.value:W.data!==void 0?W.data:W,_.value=null}catch{x.value=null,_.value="Failed to fetch key value"}finally{$.value=!1}}return(J,W)=>(u(),d("div",null,[E.value?.available&&E.value?.stats?(u(),d("div",mv,[n("div",bv,[W[0]||(W[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",_v,f((E.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",xv,[W[1]||(W[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",wv,f(E.value.stats.hits??0),1)]),n("div",$v,[W[2]||(W[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",kv,f(E.value.stats.misses??0),1)]),n("div",Sv,[W[3]||(W[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",Cv,f(E.value.stats.totalKeys||E.value.stats.keyCount||R.value.length||0),1)])])):te("",!0),be(Ct,{"model-value":m.value,placeholder:"Filter cache keys...",summary:`${R.value.length} keys`,"onUpdate:modelValue":M},null,8,["model-value","summary"]),w(i)&&!w(o)?(u(),d("div",Tv,"Loading cache...")):!E.value||!E.value.available?(u(),d("div",Ev," Cache inspector not available ")):(u(),d("div",Pv,[R.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:k,class:"ss-dash-table"},[W[4]||(W[4]=n("thead",null,[n("tr",null,[n("th",null,"Key"),n("th",null,"Type"),n("th",null,"Size"),n("th",null,"TTL"),n("th")])],-1)),n("tbody",null,[(u(!0),d(U,null,me(R.value,X=>(u(),d("tr",{key:X.key,class:"ss-dash-clickable",onClick:L=>C(X.key)},[n("td",null,[n("span",{title:X.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(X.key),9,Mv)]),n("td",null,[n("span",Rv,f(X.type),1)]),n("td",null,f(X.size!==null&&X.size!==void 0&&X.size>0?w(pu)(X.size):"-"),1),n("td",null,f(X.ttl>0?w(hu)(X.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:ot(L=>y(X.key),["stop"])}," Delete ",8,Lv)])],8,Av))),128))])],512)):(u(),d("div",Ov,"No cache keys found"))])),p.value?(u(),d("div",Dv,[n("h4",null,"Key: "+f(p.value),1),$.value?(u(),d("div",Fv,"Loading value...")):_.value?(u(),d("div",Iv,f(_.value),1)):(u(),Xe(cn,{key:2,value:x.value},null,8,["value"]))])):te("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Nv={key:0,class:"ss-dash-job-stats"},jv={class:"ss-dash-job-stat"},Hv={class:"ss-dash-job-stat-value"},Uv={class:"ss-dash-job-stat"},qv={class:"ss-dash-job-stat-value"},Kv={class:"ss-dash-job-stat"},Vv={class:"ss-dash-job-stat-value"},zv={class:"ss-dash-job-stat"},Wv={class:"ss-dash-job-stat-value"},Jv={class:"ss-dash-job-stat"},Qv={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},Gv={class:"ss-dash-btn-group"},Yv=["onClick"],Xv={key:1,class:"ss-dash-empty"},Zv={key:2,class:"ss-dash-empty"},eg={class:"ss-dash-table-wrap"},tg={style:{color:"var(--ss-dim)"}},sg=["title"],ng={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},lg={class:"ss-dash-duration"},og=["title"],ag=["disabled","onClick"],ig={key:1,class:"ss-dash-empty"},rg=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"JobsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,error:r,pagination:c,goToPage:g,setSearch:v,setFilter:m,refresh:p,mutate:x}=Ze(()=>"jobs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),$=Q(""),_=Q("all"),E=Q({}),R=q(()=>Au(o.value)),M=q(()=>Mu(o.value));function y(W){$.value=W,v(W)}function k(W){_.value=W,W==="all"?m("status",""):m("status",W)}const{tableRef:C}=Bt(()=>R.value);async function J(W){E.value[W]="pending";try{await x(`jobs/${W}/retry`),E.value[W]="success",setTimeout(()=>{delete E.value[W],p()},1e3)}catch{delete E.value[W]}}return(W,X)=>(u(),d("div",null,[M.value?(u(),d("div",Nv,[n("div",jv,[X[0]||(X[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",Hv,f(M.value.active??0),1)]),n("div",Uv,[X[1]||(X[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",qv,f(M.value.waiting??0),1)]),n("div",Kv,[X[2]||(X[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",Vv,f(M.value.delayed??0),1)]),n("div",zv,[X[3]||(X[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",Wv,f(M.value.completed??0),1)]),n("div",Jv,[X[4]||(X[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",Qv,f(M.value.failed??0),1)])])):te("",!0),be(Ct,{"model-value":$.value,placeholder:"Filter jobs...",summary:`${w(c).total||R.value.length} jobs`,"onUpdate:modelValue":y},{default:es(()=>[n("div",Gv,[(u(!0),d(U,null,me(w(Eu),L=>(u(),d("button",{key:L,type:"button",class:D(`ss-dash-btn ${_.value===L?"ss-dash-active":""}`),onClick:V=>k(L)},f(L.charAt(0).toUpperCase()+L.slice(1)),11,Yv))),128))])]),_:1},8,["model-value","summary"]),w(i)&&!w(o)?(u(),d("div",Xv,"Loading jobs...")):w(r)?(u(),d("div",Zv,"Jobs/Queue not available")):(u(),d(U,{key:3},[n("div",eg,[R.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:C,class:"ss-dash-table"},[X[5]||(X[5]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"90px"}}),n("col"),n("col",{style:{width:"50px"}}),n("col",{style:{width:"75px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"50px"}})],-1)),X[6]||(X[6]=n("thead",null,[n("tr",null,[n("th",null,"ID"),n("th",null,"Name"),n("th",null,"Status"),n("th",null,"Payload"),n("th",null,"Tries"),n("th",null,"Duration"),n("th",null,"Time"),n("th")])],-1)),n("tbody",null,[(u(!0),d(U,null,me(R.value,L=>(u(),d("tr",{key:L.id},[n("td",null,[n("span",tg,f(L.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:L.name},f(L.name),9,sg)]),n("td",null,[n("span",{class:D(`ss-dash-badge ss-dash-badge-${w(Pu)(L.status)}`)},f(L.status),3)]),n("td",null,[be(cn,{value:L.payload||L.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",ng,f(L.attempts||L.attemptsMade||0),1)]),n("td",null,[n("span",lg,f(L.duration!==null&&L.duration!==void 0?w(Ft)(L.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(It)(L.timestamp||L.createdAt||L.processedAt||L.created_at)},f(w(bt)(L.timestamp||L.createdAt||L.processedAt||L.created_at)),9,og)]),n("td",null,[L.status==="failed"?(u(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:E.value[L.id]==="pending"||E.value[L.id]==="success",onClick:ot(V=>J(L.id),["stop"])},f(E.value[L.id]==="pending"?"...":E.value[L.id]==="success"?"OK":"Retry"),9,ag)):te("",!0)])]))),128))])],512)):(u(),d("div",ig,"No jobs found"))]),w(c).totalPages>1?(u(),Xe(Kt,{key:0,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(g)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),ug={style:{position:"relative",flex:1}},cg=["value"],dg=["title","onClick"],fg=["viewBox","innerHTML"],hg=["viewBox","innerHTML"],pg=["onClick"],vg={key:0},gg=["title","onClick"],yg=["viewBox","innerHTML"],mg=["viewBox","innerHTML"],bg=["onClick"],_g={key:0},xg={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},wg=["onClick"],$g=["title"],kg=["title"],Sg=["title","onClick"],Cg=["viewBox","innerHTML"],Tg=["viewBox","innerHTML"],Eg=["onClick"],Pg=["title","onClick"],Ag=["viewBox","innerHTML"],Mg=["viewBox","innerHTML"],Rg={key:1,style:{color:"var(--ss-dim)"}},Lg={key:3,style:{color:"var(--ss-amber-fg)"}},Og={key:4,style:{color:"var(--ss-purple-fg)"}},Dg={key:5},Fg=["onClick"],ce="ss-dash",Ig=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"ConfigSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-base-url",""),l=ue("ss-dashboard-endpoint","/__stats/api"),a=ue("ss-auth-token",void 0),{data:o,loading:i}=Ze(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t}),r=Q(""),c=Q(""),g=Q("app"),v=Q(new Set),m=Q("Copy JSON"),p=Q(new Set),x=Q(new Map);let $=null;function _(K){r.value=K,$&&clearTimeout($),$=setTimeout(()=>{c.value=K},200)}function E(K){return K.target.value}const R=q(()=>o.value??null),M=q(()=>{const K=R.value?.env??{},ae=c.value.toLowerCase();return Object.entries(K).filter(([G,ie])=>{if(!ae)return!0;const Ie=Fe(ie)?ie.display:ie==null?"":String(ie);return G.toLowerCase().includes(ae)||Ie.toLowerCase().includes(ae)})}),y=q(()=>{const K=R.value?.app??{},ae=c.value.toLowerCase();return an(K,"").filter(ie=>{const Ie=Fe(ie.value)?ie.value.display:ie.value===null||ie.value===void 0?"":String(ie.value);return ie.path.toLowerCase().includes(ae)||Ie.toLowerCase().includes(ae)})}),k=q(()=>{const K=R.value?.app??{};return an(K,"").length}),C=q(()=>{const K=R.value?.app;return!K||typeof K!="object"||Array.isArray(K)||Fe(K)?[]:Object.keys(K)});function J(K){const ae=new Set(v.value);ae.has(K)?ae.delete(K):ae.add(K),v.value=ae}function W(){if(!R.value)return;const K=g.value==="app"?R.value.app:R.value.env;if(!K)return;const ae=Ju(K);v.value=new Set(ae)}function X(){v.value=new Set}function L(){if(!R.value)return;const K=g.value==="app"?R.value.app:R.value.env;navigator.clipboard?.writeText(JSON.stringify(K,null,2)).then(()=>{m.value="Copied!",setTimeout(()=>{m.value="Copy JSON"},1500)}).catch(()=>{})}function V(K){const ae=new Set(p.value);ae.has(K)?ae.delete(K):ae.add(K),p.value=ae}function ne(K,ae){x.value.set(K,ae)}function _e(K,ae,G){G.stopPropagation(),Qu(K,x.value.get(ae)??null,ce)}function Me(K){return K!==null&&typeof K=="object"&&!Array.isArray(K)&&!Fe(K)}function Le(K,ae){return an(K,ae)}function Re(K,ae){return K.indexOf(ae+".")===0?K.slice(ae.length+1):K}function pe(K){return Wu(K)}function fe(K){return Fe(K)?K.display:K==null?"null":String(K)}function T(K){const ae=R.value?.app;return!ae||typeof ae!="object"?null:ae[K]??null}function A(K,ae){return Fe(K)?ae?K.value:K.display:""}function S(){r.value="",c.value=""}function H(K){return Fe(K)?K.display:""}const z=q(()=>Ae.eye.elements.join("")),le=q(()=>Ae["eye-off"].elements.join(""));return(K,ae)=>(u(),d("div",null,[n("div",{class:D(`${ce}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:D(`${ce}-config-tab${g.value==="app"?` ${ce}-active`:""}`),onClick:ae[0]||(ae[0]=G=>g.value="app")}," App Config ",2),n("button",{type:"button",class:D(`${ce}-config-tab${g.value==="env"?` ${ce}-active`:""}`),onClick:ae[1]||(ae[1]=G=>g.value="env")}," Env ",2),n("div",ug,[n("input",{type:"text",class:D(`${ce}-search`),placeholder:"Search keys and values...",value:r.value,style:{width:"100%"},onInput:ae[2]||(ae[2]=G=>_(E(G)))},null,42,cg),r.value?(u(),d("button",{key:0,type:"button",style:{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"var(--ss-dim)",padding:"0 2px",lineHeight:1},onClick:S}," × ")):te("",!0)]),g.value==="app"&&!c.value?(u(),d(U,{key:0},[n("button",{type:"button",class:D(`${ce}-btn`),onClick:W},"Expand All",2),n("button",{type:"button",class:D(`${ce}-btn`),onClick:X},"Collapse All",2)],64)):te("",!0),n("button",{type:"button",class:D(`${ce}-btn`),onClick:L},f(m.value),3)],2),w(i)&&!w(o)?(u(),d("div",{key:0,class:D(`${ce}-empty`)},"Loading config...",2)):R.value?g.value==="env"?(u(),d("div",{key:2,class:D(`${ce}-config-table-wrap`)},[n("table",{class:D(`${ce}-table ${ce}-config-env-table`)},[ae[4]||(ae[4]=n("thead",null,[n("tr",null,[n("th",null,"Variable"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(U,null,me(M.value,([G,ie])=>(u(),d("tr",{key:G},[n("td",{class:D(`${ce}-env-key`)},[n("span",{class:D(`${ce}-config-key`)},f(G),3)],2),n("td",{class:D(`${ce}-env-val`)},[w(Fe)(ie)?(u(),d("span",{key:0,class:D(`${ce}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(A(ie,p.value.has(G))),1),n("button",{type:"button",class:D(`${ce}-btn`),title:p.value.has(G)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:ot(Ie=>V(G),["stop"])},[p.value.has(G)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,fg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:z.value},null,8,hg))],10,dg)],2)):(u(),d("span",{key:1,class:D(`${ce}-config-val`)},f(fe(ie)),3))],2),n("td",null,[w(Fe)(ie)?te("",!0):(u(),d("button",{key:0,type:"button",class:D(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Ie=>ne(`env-${G}`,Ie),onClick:Ie=>_e(`${G}=${fe(ie)}`,`env-${G}`,Ie)}," ⎘ ",10,pg))])]))),128)),M.value.length===0?(u(),d("tr",vg,[...ae[3]||(ae[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):te("",!0)])],2)],2)):c.value?(u(),d("div",{key:3,class:D(`${ce}-config-table-wrap`)},[n("table",{class:D(`${ce}-table`)},[ae[6]||(ae[6]=n("thead",null,[n("tr",null,[n("th",null,"Path"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(U,null,me(y.value,G=>(u(),d("tr",{key:G.path},[n("td",null,[n("span",{class:D(`${ce}-config-key`),style:{whiteSpace:"nowrap"}},f(G.path),3)]),n("td",null,[w(Fe)(G.value)?(u(),d("span",{key:0,class:D(`${ce}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(A(G.value,p.value.has(G.path))),1),n("button",{type:"button",class:D(`${ce}-btn`),title:p.value.has(G.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:ot(ie=>V(G.path),["stop"])},[p.value.has(G.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,yg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:z.value},null,8,mg))],10,gg)],2)):(u(),d("span",{key:1,class:D(`${ce}-config-val`),style:Ke({wordBreak:"break-all",color:pe(G.value).color})},f(pe(G.value).text),7))]),n("td",null,[w(Fe)(G.value)?te("",!0):(u(),d("button",{key:0,type:"button",class:D(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:ie=>ne(`search-${G.path}`,ie),onClick:ie=>_e(`${G.path}: ${w(Fe)(G.value)?H(G.value):pe(G.value).text}`,`search-${G.path}`,ie)}," ⎘ ",10,bg))])]))),128)),y.value.length===0?(u(),d("tr",_g,[...ae[5]||(ae[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):te("",!0)])],2),n("div",xg,f(y.value.length)+" of "+f(k.value)+" entries ",1)],2)):(u(),d("div",{key:4,class:D(`${ce}-config-table-wrap`)},[n("div",{class:D(`${ce}-config-sections`)},[(u(!0),d(U,null,me(C.value,G=>(u(),d("div",{key:G,class:D(`${ce}-config-section`)},[Me(T(G))?(u(),d(U,{key:0},[n("div",{class:D(`${ce}-config-section-header`),style:{cursor:"pointer"},onClick:ie=>J(G)},[n("span",{class:D(`${ce}-config-toggle`)},f(v.value.has(G)?"▼":"▶"),3),n("span",{class:D(`${ce}-config-key`)},f(G),3),n("span",{class:D(`${ce}-config-count`)},f(w(ua)(T(G)))+" entries ",3)],10,wg),v.value.has(G)?(u(),d("div",{key:0,class:D(`${ce}-config-section-body`)},[n("table",{class:D(`${ce}-table ${ce}-config-inner-table`)},[ae[7]||(ae[7]=n("thead",null,[n("tr",null,[n("th",{style:{width:"35%"}},"Key"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(U,null,me(Le(T(G),G),ie=>(u(),d("tr",{key:ie.path},[n("td",{title:Re(ie.path,G)},[n("span",{class:D(`${ce}-config-key`)},f(Re(ie.path,G)),3)],8,$g),n("td",{title:w(Fe)(ie.value)?H(ie.value):pe(ie.value).text},[w(Fe)(ie.value)?(u(),d("span",{key:0,class:D(`${ce}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(A(ie.value,p.value.has(ie.path))),1),n("button",{type:"button",class:D(`${ce}-btn`),title:p.value.has(ie.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:ot(Ie=>V(ie.path),["stop"])},[p.value.has(ie.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Cg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:z.value},null,8,Tg))],10,Sg)],2)):(u(),d("span",{key:1,class:D(`${ce}-config-val`),style:Ke({color:pe(ie.value).color})},f(pe(ie.value).text),7))],8,kg),n("td",null,[w(Fe)(ie.value)?te("",!0):(u(),d("button",{key:0,type:"button",class:D(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Ie=>ne(`inner-${ie.path}`,Ie),onClick:Ie=>_e(`${ie.path}: ${pe(ie.value).text}`,`inner-${ie.path}`,Ie)}," ⎘ ",10,Eg))])]))),128))])],2)],2)):te("",!0)],64)):(u(),d("div",{key:1,class:D(`${ce}-config-section-header ${ce}-config-leaf`),style:{cursor:"default"}},[n("span",{class:D(`${ce}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:D(`${ce}-config-key`)},f(G),3),n("span",{class:D(`${ce}-config-val`),style:{marginLeft:"8px"}},[w(Fe)(T(G))?(u(),d("span",{key:0,class:D(`${ce}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(A(T(G),p.value.has(G))),1),n("button",{type:"button",class:D(`${ce}-btn`),title:p.value.has(G)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:ot(ie=>V(G),["stop"])},[p.value.has(G)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Ag)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:z.value},null,8,Mg))],10,Pg)],2)):T(G)===null||T(G)===void 0?(u(),d("span",Rg,"null")):typeof T(G)=="boolean"?(u(),d("span",{key:2,style:Ke({color:T(G)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},f(String(T(G))),5)):typeof T(G)=="number"?(u(),d("span",Lg,f(String(T(G))),1)):Array.isArray(T(G))?(u(),d("span",Og,f(pe(T(G)).text),1)):(u(),d("span",Dg,f(String(T(G))),1))],2),w(Fe)(T(G))?te("",!0):(u(),d("button",{key:0,type:"button",class:D(`${ce}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:ie=>ne(`leaf-${G}`,ie),onClick:ie=>_e(`${G}: ${pe(T(G)).text}`,`leaf-${G}`,ie)}," ⎘ ",10,Fg))],2))],2))),128))],2)],2)):(u(),d("div",{key:1,class:D(`${ce}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),Bg={key:0,class:"ss-dash-empty"},Ng={key:1,class:"ss-dash-empty"},jg={key:2,class:"ss-dash-empty"},Hg={class:"ss-dash-info-cards"},Ug={class:"ss-dash-info-card-label"},qg={class:"ss-dash-info-card-value"},Kg={key:0,class:"ss-dash-empty"},Vg={key:1,class:"ss-dash-table"},zg={style:{"font-family":"monospace","font-size":"11px"}},Wg={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},Jg={style:{color:"var(--ss-dim)","margin-left":"4px"}},Qg={style:{"font-size":"11px"}},Gg=["onClick"],Yg=["onClick"],Xg={key:2,class:"ss-dash-empty"},Zg={key:3,class:"ss-dash-table"},e1={class:"ss-dash-bar"},t1={class:"ss-dash-bar-track",style:{"max-width":"120px"}},s1={key:4,class:"ss-dash-empty"},n1={key:5,class:"ss-dash-table"},l1={style:{color:"var(--ss-dim)"}},o1={key:6,class:"ss-dash-empty"},a1={key:7,class:"ss-dash-table"},i1={style:{color:"var(--ss-dim)","font-size":"11px"}},r1={class:"ss-dash-table"},u1={style:{"font-family":"monospace","font-size":"11px"}},c1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},d1={style:{"font-family":"monospace","font-size":"11px"}},f1={class:"ss-dash-table"},h1={class:"ss-dash-table"},p1={style:{"font-family":"monospace","font-size":"11px"}},v1={style:{"font-family":"monospace","font-size":"11px"}},g1={style:{"font-family":"monospace","font-size":"11px"}},y1={style:{"font-size":"11px"}},m1=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"InternalsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-base-url",""),l=ue("ss-debug-endpoint","/admin/api/debug"),a=ue("ss-auth-token",void 0),o=Q(null),i=Q(!0),r=Q(null),c=Q(new Set),g=un(s,a);let v=null;async function m(){try{const M=await g().fetch(`${l}/diagnostics`);o.value=M,r.value=null,i.value=!1}catch(M){if(M instanceof tn){r.value=M,i.value=!1,v&&(clearInterval(v),v=null);return}r.value=M instanceof Error?M:new Error(String(M)),i.value=!1}}Lt(()=>{i.value=!0,r.value=null,m(),v=setInterval(m,Zo)}),Ot(()=>{v&&clearInterval(v)}),yt(t,()=>{m()});function p(M){c.value.has(M)?c.value.delete(M):c.value.add(M)}function x(M){const y=zu(M);return y==="ok"?"ss-dash-dot-ok":y==="err"?"ss-dash-dot-err":""}function $(M){return M.debounceMs!==void 0?`${Ft(M.debounceMs)} (debounce)`:M.intervalMs!==void 0?Ft(M.intervalMs):"-"}const _=q(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([M,y])=>({name:M.charAt(0).toUpperCase()+M.slice(1),...y,percent:qu(y.current,y.max)})):[]),E=q(()=>o.value?.timers?Object.entries(o.value.timers).map(([M,y])=>({key:M,label:Iu(M),...y,interval:$(y)})):[]),R=q(()=>{if(!o.value)return[];const M=[];if(o.value.transmit&&M.push({key:"transmit",label:"Transmit (SSE)",status:o.value.transmit.available?"connected":"unavailable",details:o.value.transmit.available?`Channels: ${o.value.transmit.channels.join(", ")}`:"Not installed"}),o.value.integrations)for(const[y,k]of Object.entries(o.value.integrations))M.push({key:y,label:Nu(y),status:ju(k),details:Hu(y,k)});return M});return(M,y)=>(u(),d("div",null,[i.value&&!o.value?(u(),d("div",Bg,"Loading diagnostics...")):r.value&&!o.value?(u(),d("div",Ng,"Error: "+f(r.value.message),1)):o.value?(u(),d(U,{key:3},[y[41]||(y[41]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",Hg,[(u(!0),d(U,null,me([{label:"Version",value:o.value.package?.version||"-"},{label:"Node.js",value:o.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:o.value.package?.adonisVersion||"-"},{label:"Uptime",value:w(fu)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],k=>(u(),d("div",{key:k.label,class:"ss-dash-info-card"},[n("span",Ug,f(k.label),1),n("span",qg,f(k.value),1)]))),128))]),y[42]||(y[42]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(u(),d("table",Vg,[y[4]||(y[4]=n("thead",null,[n("tr",null,[n("th",null,"Collector"),n("th",null,"Status"),n("th",null,"Last Error"),n("th",null,"Config")])],-1)),n("tbody",null,[(u(!0),d(U,null,me(o.value.collectors,k=>(u(),d("tr",{key:k.name},[n("td",null,[n("span",zg,f(k.name),1),k.label&&k.label!==k.name?(u(),d("span",Wg,f(k.label),1)):te("",!0)]),n("td",null,[n("span",{class:D(["ss-dash-dot",x(k.status)])},null,2),xe(" "+f(k.status),1)]),n("td",{style:Ke(k.lastError?{color:"var(--ss-red-fg)"}:{})},[k.lastError?(u(),d(U,{key:0},[xe(f(k.lastError)+" ",1),n("span",Jg,f(w(bt)(k.lastErrorAt??0)),1)],64)):(u(),d(U,{key:1},[xe("-")],64))],4),n("td",Qg,[Object.keys(k.config||{}).length?(u(!0),d(U,{key:0},me(w(Uu)(k.config),C=>(u(),d("span",{key:C.key,style:{"margin-right":"8px"}},[xe(f(C.key)+"=",1),C.secret&&!c.value.has(`collector-${k.name}-${C.key}`)?(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:J=>p(`collector-${k.name}-${C.key}`)},"••••••••",8,Gg)):(u(),d(U,{key:1},[n("span",null,f(C.value),1),C.secret?(u(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:J=>p(`collector-${k.name}-${C.key}`)}," Hide ",8,Yg)):te("",!0)],64))]))),128)):(u(),d(U,{key:1},[xe("-")],64))])]))),128))])])):(u(),d("div",Kg,"No collectors")),y[43]||(y[43]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),_.value.length?(u(),d("table",Zg,[y[5]||(y[5]=n("thead",null,[n("tr",null,[n("th",null,"Buffer"),n("th",null,"Usage"),n("th",null,"Fill %")])],-1)),n("tbody",null,[(u(!0),d(U,null,me(_.value,k=>(u(),d("tr",{key:k.name},[n("td",null,f(k.name),1),n("td",null,f(k.current.toLocaleString())+" / "+f(k.max.toLocaleString()),1),n("td",null,[n("div",e1,[n("div",t1,[n("div",{class:D(["ss-dash-bar-fill",k.percent>=100?"ss-dash-bar-fill-warn":""]),style:Ke({width:k.percent+"%"})},null,6)]),n("span",{class:D(["ss-dash-bar-pct",k.percent>=100?"ss-dash-bar-pct-warn":""])},f(k.percent)+"%",3)])])]))),128))])])):(u(),d("div",Xg,"No buffer data")),y[44]||(y[44]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),E.value.length?(u(),d("table",n1,[y[6]||(y[6]=n("thead",null,[n("tr",null,[n("th",null,"Timer"),n("th",null,"Status"),n("th",null,"Interval")])],-1)),n("tbody",null,[(u(!0),d(U,null,me(E.value,k=>(u(),d("tr",{key:k.key},[n("td",null,f(k.label),1),n("td",null,[n("span",{class:D(["ss-dash-dot",x(k.active?"active":"inactive")])},null,2),xe(" "+f(k.active?"active":"inactive"),1)]),n("td",l1,f(k.interval),1)]))),128))])])):(u(),d("div",s1,"No timer data")),y[45]||(y[45]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),R.value.length?(u(),d("table",a1,[y[7]||(y[7]=n("thead",null,[n("tr",null,[n("th",null,"Integration"),n("th",null,"Status"),n("th",null,"Details")])],-1)),n("tbody",null,[(u(!0),d(U,null,me(R.value,k=>(u(),d("tr",{key:k.key},[n("td",null,f(k.label),1),n("td",null,[n("span",{class:D(["ss-dash-dot",x(k.status)])},null,2),xe(" "+f(k.status),1)]),n("td",i1,f(k.details),1)]))),128))])])):(u(),d("div",o1,"No integration data")),o.value.storage?(u(),d(U,{key:8},[y[16]||(y[16]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",r1,[y[14]||(y[14]=n("thead",null,[n("tr",null,[n("th",null,"Metric"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[8]||(y[8]=n("td",null,"Status",-1)),n("td",null,[n("span",{class:D(["ss-dash-dot",x(o.value.storage.ready?"ready":"unavailable")])},null,2),xe(" "+f(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[y[9]||(y[9]=n("td",null,"DB Path",-1)),n("td",u1,f(o.value.storage.dbPath),1)]),n("tr",null,[y[10]||(y[10]=n("td",null,"File Size",-1)),n("td",null,f(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[11]||(y[11]=n("td",null,"WAL Size",-1)),n("td",null,f(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[12]||(y[12]=n("td",null,"Retention",-1)),n("td",null,f(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[y[13]||(y[13]=n("td",null,"Last Cleanup",-1)),n("td",null,f(w(bt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(u(),d("table",c1,[y[15]||(y[15]=n("thead",null,[n("tr",null,[n("th",null,"Table"),n("th",null,"Rows")])],-1)),n("tbody",null,[(u(!0),d(U,null,me(o.value.storage.tables,k=>(u(),d("tr",{key:k.name},[n("td",d1,f(k.name),1),n("td",null,f(k.rowCount.toLocaleString()),1)]))),128))])])):te("",!0)],64)):te("",!0),y[46]||(y[46]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",f1,[y[24]||(y[24]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[17]||(y[17]=n("td",null,"intervalMs",-1)),n("td",null,f(o.value.config?.intervalMs),1)]),n("tr",null,[y[18]||(y[18]=n("td",null,"transport",-1)),n("td",null,f(o.value.config?.transport),1)]),n("tr",null,[y[19]||(y[19]=n("td",null,"channelName",-1)),n("td",null,f(o.value.config?.channelName),1)]),n("tr",null,[y[20]||(y[20]=n("td",null,"endpoint",-1)),n("td",null,f(o.value.config?.endpoint===!1?"false":o.value.config?.endpoint),1)]),n("tr",null,[y[21]||(y[21]=n("td",null,"skipInTest",-1)),n("td",null,f(o.value.config?.skipInTest),1)]),n("tr",null,[y[22]||(y[22]=n("td",null,"onStats callback",-1)),n("td",null,f(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[y[23]||(y[23]=n("td",null,"shouldShow callback",-1)),n("td",null,f(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),y[47]||(y[47]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",h1,[y[40]||(y[40]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[25]||(y[25]=n("td",null,"enabled",-1)),n("td",null,f(o.value.devToolbar?.enabled),1)]),n("tr",null,[y[26]||(y[26]=n("td",null,"tracing",-1)),n("td",null,f(o.value.devToolbar?.tracing),1)]),n("tr",null,[y[27]||(y[27]=n("td",null,"dashboard",-1)),n("td",null,f(o.value.devToolbar?.dashboard),1)]),n("tr",null,[y[28]||(y[28]=n("td",null,"dashboardPath",-1)),n("td",p1,f(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[y[29]||(y[29]=n("td",null,"debugEndpoint",-1)),n("td",v1,[c.value.has("cfg-debugEndpoint")?(u(),d(U,{key:1},[xe(f(o.value.devToolbar?.debugEndpoint)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[1]||(y[1]=k=>p("cfg-debugEndpoint"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[0]||(y[0]=k=>p("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[y[30]||(y[30]=n("td",null,"maxQueries",-1)),n("td",null,f(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[y[31]||(y[31]=n("td",null,"maxEvents",-1)),n("td",null,f(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[y[32]||(y[32]=n("td",null,"maxEmails",-1)),n("td",null,f(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[y[33]||(y[33]=n("td",null,"maxTraces",-1)),n("td",null,f(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[y[34]||(y[34]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,f(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[y[35]||(y[35]=n("td",null,"retentionDays",-1)),n("td",null,f(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[y[36]||(y[36]=n("td",null,"dbPath",-1)),n("td",g1,[c.value.has("cfg-dbPath")?(u(),d(U,{key:1},[xe(f(o.value.devToolbar?.dbPath)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[3]||(y[3]=k=>p("cfg-dbPath"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[2]||(y[2]=k=>p("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[y[37]||(y[37]=n("td",null,"persistDebugData",-1)),n("td",null,f(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[y[38]||(y[38]=n("td",null,"excludeFromTracing",-1)),n("td",y1,f(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[y[39]||(y[39]=n("td",null,"customPanes",-1)),n("td",null,f(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(u(),d("div",jg,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|
|
3
|
+
`,...li(a)),console.warn(...o)}vt(),Ln=!1}function ni(){let e=ws[ws.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 l=e.component&&e.component.parent;e=l&&l.vnode}return t}function li(e){const t=[];return e.forEach((s,l)=>{t.push(...l===0?[]:[`
|
|
4
|
+
`],...oi(s))}),t}function oi({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,a=` at <${Bo(e.component,e.type,l)}`,o=">"+s;return e.props?[a,...ai(e.props),o]:[a+o]}function ai(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...jl(l,e[l]))}),s.length>3&&t.push(" ..."),t}function jl(e,t,s){return Oe(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:je(t)?(t=jl(e,ke(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):ge(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ke(t),s?t:[`${e}=`,t])}function Xt(e,t,s,l){try{return l?e(...l):e()}catch(a){Zt(a,t,s)}}function gt(e,t,s,l){if(ge(e)){const a=Xt(e,t,s,l);return a&&hl(a)&&a.catch(o=>{Zt(o,t,s)}),a}if(ve(e)){const a=[];for(let o=0;o<e.length;o++)a.push(gt(e[o],t,s,l));return a}}function Zt(e,t,s,l=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ae;if(t){let r=t.parent;const u=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const p=r.ec;if(p){for(let m=0;m<p.length;m++)if(p[m](e,u,g)===!1)return}r=r.parent}if(o){pt(),Xt(o,null,10,[e,u,g]),vt();return}}ii(e,s,a,l,i)}function ii(e,t,s,l=!0,a=!1){if(a)throw e;console.error(e)}const Ve=[];let yt=-1;const es=[];let Lt=null,ts=0;const Hl=Promise.resolve();let Ks=null;function On(e){const t=Ks||Hl;return e?t.then(this?e.bind(this):e):t}function ri(e){let t=yt+1,s=Ve.length;for(;t<s;){const l=t+s>>>1,a=Ve[l],o=$s(a);o<e||o===e&&a.flags&2?t=l+1:s=l}return t}function Fn(e){if(!(e.flags&1)){const t=$s(e),s=Ve[Ve.length-1];!s||!(e.flags&2)&&t>=$s(s)?Ve.push(e):Ve.splice(ri(t),0,e),e.flags|=1,ql()}}function ql(){Ks||(Ks=Hl.then(Vl))}function Dn(e){ve(e)?es.push(...e):Lt&&e.id===-1?Lt.splice(ts+1,0,e):e.flags&1||(es.push(e),e.flags|=1),ql()}function Ul(e,t,s=yt+1){for(;s<Ve.length;s++){const l=Ve[s];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;Ve.splice(s,1),s--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function Kl(e){if(es.length){const t=[...new Set(es)].sort((s,l)=>$s(s)-$s(l));if(es.length=0,Lt){Lt.push(...t);return}for(Lt=t,ts=0;ts<Lt.length;ts++){const s=Lt[ts];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Lt=null,ts=0}}const $s=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Vl(e){try{for(yt=0;yt<Ve.length;yt++){const t=Ve[yt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;yt<Ve.length;yt++){const t=Ve[yt];t&&(t.flags&=-2)}yt=-1,Ve.length=0,Kl(),Ks=null,(Ve.length||es.length)&&Vl()}}let ze=null,zl=null;function Vs(e){const t=ze;return ze=e,zl=e&&e.type.__scopeId||null,t}function ss(e,t=ze,s){if(!t||e._n)return e;const l=(...a)=>{l._d&&Zs(-1);const o=Vs(t);let i;try{i=e(...a)}finally{Vs(o),l._d&&Zs(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function Kt(e,t,s,l){const a=e.dirs,o=t&&t.dirs;for(let i=0;i<a.length;i++){const r=a[i];o&&(r.oldValue=o[i].value);let u=r.dir[l];u&&(pt(),gt(u,s,8,[e.el,r,e,t]),vt())}}function ns(e,t){if(He){let s=He.provides;const l=He.parent&&He.parent.provides;l===s&&(s=He.provides=Object.create(l)),s[e]=t}}function de(e,t,s=!1){const l=vr();if(l||os){let a=os?os._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return s&&ge(t)?t.call(l&&l.proxy):t}}const ui=Symbol.for("v-scx"),ci=()=>de(ui);function ut(e,t,s){return Wl(e,t,s)}function Wl(e,t,s=Ae){const{immediate:l,deep:a,flush:o,once:i}=s,r=Ne({},s),u=t&&l||!t&&o!=="post";let g;if(cs){if(o==="sync"){const b=ci();g=b.__watcherHandles||(b.__watcherHandles=[])}else if(!u){const b=()=>{};return b.stop=ht,b.resume=ht,b.pause=ht,b}}const p=He;r.call=(b,C,x)=>gt(b,p,C,x);let m=!1;o==="post"?r.scheduler=b=>{Je(b,p&&p.suspense)}:o!=="sync"&&(m=!0,r.scheduler=(b,C)=>{C?b():Fn(b)}),r.augmentJob=b=>{t&&(b.flags|=4),m&&(b.flags|=2,p&&(b.id=p.uid,b.i=p))};const v=si(e,t,r);return cs&&(g?g.push(v):u&&v()),v}function di(e,t,s){const l=this.proxy,a=Oe(e)?e.includes(".")?Jl(l,e):()=>l[e]:e.bind(l,l);let o;ge(t)?o=t:(o=t.handler,s=t);const i=Ps(this),r=Wl(a,o.bind(l),s);return i(),r}function Jl(e,t){const s=t.split(".");return()=>{let l=e;for(let a=0;a<s.length&&l;a++)l=l[s[a]];return l}}const fi=Symbol("_vte"),hi=e=>e.__isTeleport,pi=Symbol("_leaveCb");function In(e,t){e.shapeFlag&6&&e.component?(e.transition=t,In(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 Fe(e,t){return ge(e)?Ne({name:e.name},t,{setup:e}):e}function Bn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ql(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const zs=new WeakMap;function ks(e,t,s,l,a=!1){if(ve(e)){e.forEach((x,P)=>ks(x,t&&(ve(t)?t[P]:t),s,l,a));return}if(ls(l)&&!a){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&ks(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?Zn(l.component):l.el,i=a?null:o,{i:r,r:u}=e,g=t&&t.r,p=r.refs===Ae?r.refs={}:r.refs,m=r.setupState,v=ke(m),b=m===Ae?cl:x=>Ql(p,x)?!1:Ee(v,x),C=(x,P)=>!(P&&Ql(p,P));if(g!=null&&g!==u){if(Gl(t),Oe(g))p[g]=null,b(g)&&(m[g]=null);else if(je(g)){const x=t;C(g,x.k)&&(g.value=null),x.k&&(p[x.k]=null)}}if(ge(u))Xt(u,r,12,[i,p]);else{const x=Oe(u),P=je(u);if(x||P){const L=()=>{if(e.f){const A=x?b(u)?m[u]:p[u]:C()||!e.k?u.value:p[e.k];if(a)ve(A)&&pn(A,o);else if(ve(A))A.includes(o)||A.push(o);else if(x)p[u]=[o],b(u)&&(m[u]=p[u]);else{const y=[o];C(u,e.k)&&(u.value=y),e.k&&(p[e.k]=y)}}else x?(p[u]=i,b(u)&&(m[u]=i)):P&&(C(u,e.k)&&(u.value=i),e.k&&(p[e.k]=i))};if(i){const A=()=>{L(),zs.delete(e)};A.id=-1,zs.set(e,A),Je(A,s)}else Gl(e),L()}}}function Gl(e){const t=zs.get(e);t&&(t.flags|=8,zs.delete(e))}const Yl=e=>e.nodeType===8;Ds().requestIdleCallback,Ds().cancelIdleCallback;function vi(e,t){if(Yl(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(Yl(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const ls=e=>!!e.type.__asyncLoader;function ct(e){ge(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:a=200,hydrate:o,timeout:i,suspensible:r=!0,onError:u}=e;let g=null,p,m=0;const v=()=>(m++,g=null,b()),b=()=>{let C;return g||(C=g=t().catch(x=>{if(x=x instanceof Error?x:new Error(String(x)),u)return new Promise((P,L)=>{u(x,()=>P(v()),()=>L(x),m+1)});throw x}).then(x=>C!==g&&g?g:(x&&(x.__esModule||x[Symbol.toStringTag]==="Module")&&(x=x.default),p=x,x)))};return Fe({name:"AsyncComponentWrapper",__asyncLoader:b,__asyncHydrate(C,x,P){let L=!1;(x.bu||(x.bu=[])).push(()=>L=!0);const A=()=>{L||P()},y=o?()=>{const $=o(A,T=>vi(C,T));$&&(x.bum||(x.bum=[])).push($)}:A;p?y():b().then(()=>!x.isUnmounted&&y())},get __asyncResolved(){return p},setup(){const C=He;if(Bn(C),p)return()=>Ws(p,C);const x=y=>{g=null,Zt(y,C,13,!l)};if(r&&C.suspense||cs)return b().then(y=>()=>Ws(y,C)).catch(y=>(x(y),()=>l?me(l,{error:y}):null));const P=W(!1),L=W(),A=W(!!a);return a&&setTimeout(()=>{A.value=!1},a),i!=null&&setTimeout(()=>{if(!P.value&&!L.value){const y=new Error(`Async component timed out after ${i}ms.`);x(y),L.value=y}},i),b().then(()=>{P.value=!0,C.parent&&Nn(C.parent.vnode)&&C.parent.update()}).catch(y=>{x(y),L.value=y}),()=>{if(P.value&&p)return Ws(p,C);if(L.value&&l)return me(l,{error:L.value});if(s&&!A.value)return Ws(s,C)}}})}function Ws(e,t){const{ref:s,props:l,children:a,ce:o}=t.vnode,i=me(e,l,a);return i.ref=s,i.ce=o,delete t.vnode.ce,i}const Nn=e=>e.type.__isKeepAlive;function gi(e,t){Xl(e,"a",t)}function yi(e,t){Xl(e,"da",t)}function Xl(e,t,s=He){const l=e.__wdc||(e.__wdc=()=>{let a=s;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Js(t,l,s),s){let a=s.parent;for(;a&&a.parent;)Nn(a.parent.vnode)&&mi(l,t,s,a),a=a.parent}}function mi(e,t,s,l){const a=Js(t,e,l,!0);St(()=>{pn(l[t],a)},s)}function Js(e,t,s=He,l=!1){if(s){const a=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{pt();const r=Ps(s),u=gt(t,s,e,i);return r(),vt(),u});return l?a.unshift(o):a.push(o),o}}const kt=e=>(t,s=He)=>{(!cs||e==="sp")&&Js(e,(...l)=>t(...l),s)},bi=kt("bm"),Ot=kt("m"),_i=kt("bu"),xi=kt("u"),Zl=kt("bum"),St=kt("um"),wi=kt("sp"),$i=kt("rtg"),ki=kt("rtc");function Si(e,t=He){Js("ec",e,t)}const Ci="components",eo=Symbol.for("v-ndc");function Ti(e){return Oe(e)?Ei(Ci,e,!1)||e:e||eo}function Ei(e,t,s=!0,l=!1){const a=ze||He;if(a){const o=a.type;{const r=Io(o,!1);if(r&&(r===t||r===tt(t)||r===Fs(tt(t))))return o}const i=to(a[e]||o[e],t)||to(a.appContext[e],t);return!i&&l?o:i}}function to(e,t){return e&&(e[t]||e[tt(t)]||e[Fs(tt(t))])}function ye(e,t,s,l){let a;const o=s,i=ve(e);if(i||Oe(e)){const r=i&&qt(e);let u=!1,g=!1;r&&(u=!st(e),g=$t(e),e=Is(e)),a=new Array(e.length);for(let p=0,m=e.length;p<m;p++)a[p]=t(u?g?Yt(rt(e[p])):rt(e[p]):e[p],p,void 0,o)}else if(typeof e=="number"){a=new Array(e);for(let r=0;r<e;r++)a[r]=t(r+1,r,void 0,o)}else if(Pe(e))if(e[Symbol.iterator])a=Array.from(e,(r,u)=>t(r,u,void 0,o));else{const r=Object.keys(e);a=new Array(r.length);for(let u=0,g=r.length;u<g;u++){const p=r[u];a[u]=t(e[p],p,u,o)}}else a=[];return a}function Pi(e,t,s={},l,a){if(ze.ce||ze.parent&&ls(ze.parent)&&ze.parent.ce){const g=Object.keys(s).length>0;return c(),Xe(K,null,[me("slot",s,l)],g?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),c();const i=o&&so(o(s)),r=s.key||i&&i.key,u=Xe(K,{key:(r&&!at(r)?r:`_${t}`)+(!i&&l?"_fb":"")},i||[],i&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function so(e){return e.some(t=>rs(t)?!(t.type===dt||t.type===K&&!so(t.children)):!0)?e:null}const jn=e=>e?Fo(e)?Zn(e):jn(e.parent):null,Ss=Ne(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=>jn(e.parent),$root:e=>jn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ao(e),$forceUpdate:e=>e.f||(e.f=()=>{Fn(e.update)}),$nextTick:e=>e.n||(e.n=On.bind(e.proxy)),$watch:e=>di.bind(e)}),Hn=(e,t)=>e!==Ae&&!e.__isScriptSetup&&Ee(e,t),Ri={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:a,props:o,accessCache:i,type:r,appContext:u}=e;if(t[0]!=="$"){const v=i[t];if(v!==void 0)switch(v){case 1:return l[t];case 2:return a[t];case 4:return s[t];case 3:return o[t]}else{if(Hn(l,t))return i[t]=1,l[t];if(a!==Ae&&Ee(a,t))return i[t]=2,a[t];if(Ee(o,t))return i[t]=3,o[t];if(s!==Ae&&Ee(s,t))return i[t]=4,s[t];qn&&(i[t]=0)}}const g=Ss[t];let p,m;if(g)return t==="$attrs"&&qe(e.attrs,"get",""),g(e);if((p=r.__cssModules)&&(p=p[t]))return p;if(s!==Ae&&Ee(s,t))return i[t]=4,s[t];if(m=u.config.globalProperties,Ee(m,t))return m[t]},set({_:e},t,s){const{data:l,setupState:a,ctx:o}=e;return Hn(a,t)?(a[t]=s,!0):l!==Ae&&Ee(l,t)?(l[t]=s,!0):Ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:a,props:o,type:i}},r){let u;return!!(s[r]||e!==Ae&&r[0]!=="$"&&Ee(e,r)||Hn(t,r)||Ee(o,r)||Ee(l,r)||Ee(Ss,r)||Ee(a.config.globalProperties,r)||(u=i.__cssModules)&&u[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Ee(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function no(e){return ve(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let qn=!0;function Ai(e){const t=ao(e),s=e.proxy,l=e.ctx;qn=!1,t.beforeCreate&&lo(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:i,watch:r,provide:u,inject:g,created:p,beforeMount:m,mounted:v,beforeUpdate:b,updated:C,activated:x,deactivated:P,beforeDestroy:L,beforeUnmount:A,destroyed:y,unmounted:$,render:T,renderTracked:z,renderTriggered:te,errorCaptured:se,serverPrefetch:Z,expose:fe,inheritAttrs:Se,components:be,directives:Ce,filters:$e}=t;if(g&&Mi(g,l,null),i)for(const j in i){const k=i[j];ge(k)&&(l[j]=k.bind(s))}if(a){const j=a.call(s,s);Pe(j)&&(e.data=Gt(j))}if(qn=!0,o)for(const j in o){const k=o[j],E=ge(k)?k.bind(s,s):ge(k.get)?k.get.bind(s,s):ht,S=!ge(k)&&ge(k.set)?k.set.bind(s):ht,H=q({get:E,set:S});Object.defineProperty(l,j,{enumerable:!0,configurable:!0,get:()=>H.value,set:oe=>H.value=oe})}if(r)for(const j in r)oo(r[j],l,s,j);if(u){const j=ge(u)?u.call(s):u;Reflect.ownKeys(j).forEach(k=>{ns(k,j[k])})}p&&lo(p,e,"c");function V(j,k){ve(k)?k.forEach(E=>j(E.bind(s))):k&&j(k.bind(s))}if(V(bi,m),V(Ot,v),V(_i,b),V(xi,C),V(gi,x),V(yi,P),V(Si,se),V(ki,z),V($i,te),V(Zl,A),V(St,$),V(wi,Z),ve(fe))if(fe.length){const j=e.exposed||(e.exposed={});fe.forEach(k=>{Object.defineProperty(j,k,{get:()=>s[k],set:E=>s[k]=E,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===ht&&(e.render=T),Se!=null&&(e.inheritAttrs=Se),be&&(e.components=be),Ce&&(e.directives=Ce),Z&&Bn(e)}function Mi(e,t,s=ht){ve(e)&&(e=Un(e));for(const l in e){const a=e[l];let o;Pe(a)?"default"in a?o=de(a.from||l,a.default,!0):o=de(a.from||l):o=de(a),je(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[l]=o}}function lo(e,t,s){gt(ve(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function oo(e,t,s,l){let a=l.includes(".")?Jl(s,l):()=>s[l];if(Oe(e)){const o=t[e];ge(o)&&ut(a,o)}else if(ge(e))ut(a,e.bind(s));else if(Pe(e))if(ve(e))e.forEach(o=>oo(o,t,s,l));else{const o=ge(e.handler)?e.handler.bind(s):t[e.handler];ge(o)&&ut(a,o,e)}}function ao(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,r=o.get(t);let u;return r?u=r:!a.length&&!s&&!l?u=t:(u={},a.length&&a.forEach(g=>Qs(u,g,i,!0)),Qs(u,t,i)),Pe(t)&&o.set(t,u),u}function Qs(e,t,s,l=!1){const{mixins:a,extends:o}=t;o&&Qs(e,o,s,!0),a&&a.forEach(i=>Qs(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const r=Li[i]||s&&s[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const Li={data:io,props:ro,emits:ro,methods:Cs,computed:Cs,beforeCreate:We,created:We,beforeMount:We,mounted:We,beforeUpdate:We,updated:We,beforeDestroy:We,beforeUnmount:We,destroyed:We,unmounted:We,activated:We,deactivated:We,errorCaptured:We,serverPrefetch:We,components:Cs,directives:Cs,watch:Fi,provide:io,inject:Oi};function io(e,t){return t?e?function(){return Ne(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return Cs(Un(e),Un(t))}function Un(e){if(ve(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function We(e,t){return e?[...new Set([].concat(e,t))]:t}function Cs(e,t){return e?Ne(Object.create(null),e,t):t}function ro(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:Ne(Object.create(null),no(e),no(t??{})):t}function Fi(e,t){if(!e)return t;if(!t)return e;const s=Ne(Object.create(null),e);for(const l in t)s[l]=We(e[l],t[l]);return s}function uo(){return{app:null,config:{isNativeTag:cl,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 Di=0;function Ii(e,t){return function(l,a=null){ge(l)||(l=Ne({},l)),a!=null&&!Pe(a)&&(a=null);const o=uo(),i=new WeakSet,r=[];let u=!1;const g=o.app={_uid:Di++,_component:l,_props:a,_container:null,_context:o,_instance:null,version:$r,get config(){return o.config},set config(p){},use(p,...m){return i.has(p)||(p&&ge(p.install)?(i.add(p),p.install(g,...m)):ge(p)&&(i.add(p),p(g,...m))),g},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),g},component(p,m){return m?(o.components[p]=m,g):o.components[p]},directive(p,m){return m?(o.directives[p]=m,g):o.directives[p]},mount(p,m,v){if(!u){const b=g._ceVNode||me(l,a);return b.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),e(b,p,v),u=!0,g._container=p,p.__vue_app__=g,Zn(b.component)}},onUnmount(p){r.push(p)},unmount(){u&&(gt(r,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(p,m){return o.provides[p]=m,g},runWithContext(p){const m=os;os=g;try{return p()}finally{os=m}}};return g}}let os=null;const Bi=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function Ni(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Ae;let a=s;const o=t.startsWith("update:"),i=o&&Bi(l,t.slice(7));i&&(i.trim&&(a=s.map(p=>Oe(p)?p.trim():p)),i.number&&(a=s.map(_a)));let r,u=l[r=gn(t)]||l[r=gn(tt(t))];!u&&o&&(u=l[r=gn(Pt(t))]),u&>(u,e,6,a);const g=l[r+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,gt(g,e,6,a)}}const ji=new WeakMap;function co(e,t,s=!1){const l=s?ji:t.emitsCache,a=l.get(e);if(a!==void 0)return a;const o=e.emits;let i={},r=!1;if(!ge(e)){const u=g=>{const p=co(g,t,!0);p&&(r=!0,Ne(i,p))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!r?(Pe(e)&&l.set(e,null),null):(ve(o)?o.forEach(u=>i[u]=null):Ne(i,o),Pe(e)&&l.set(e,i),i)}function Gs(e,t){return!e||!Ls(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ee(e,t[0].toLowerCase()+t.slice(1))||Ee(e,Pt(t))||Ee(e,t))}function g1(){}function fo(e){const{type:t,vnode:s,proxy:l,withProxy:a,propsOptions:[o],slots:i,attrs:r,emit:u,render:g,renderCache:p,props:m,data:v,setupState:b,ctx:C,inheritAttrs:x}=e,P=Vs(e);let L,A;try{if(s.shapeFlag&4){const $=a||l,T=$;L=ft(g.call(T,$,p,m,b,v,C)),A=r}else{const $=t;L=ft($.length>1?$(m,{attrs:r,slots:i,emit:u}):$(m,null)),A=t.props?r:qi(r)}}catch($){Es.length=0,Zt($,e,1),L=me(dt)}let y=L;if(A&&x!==!1){const $=Object.keys(A),{shapeFlag:T}=y;$.length&&T&7&&(o&&$.some(hn)&&(A=Ui(A,o)),y=us(y,A,!1,!0))}return s.dirs&&(y=us(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(s.dirs):s.dirs),s.transition&&In(y,s.transition),L=y,Vs(P),L}function Hi(e,t=!0){let s;for(let l=0;l<e.length;l++){const a=e[l];if(rs(a)){if(a.type!==dt||a.children==="v-if"){if(s)return;s=a}}else return}return s}const qi=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ls(s))&&((t||(t={}))[s]=e[s]);return t},Ui=(e,t)=>{const s={};for(const l in e)(!hn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Ki(e,t,s){const{props:l,children:a,component:o}=e,{props:i,children:r,patchFlag:u}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return l?ho(l,i,g):!!i;if(u&8){const p=t.dynamicProps;for(let m=0;m<p.length;m++){const v=p[m];if(po(i,l,v)&&!Gs(g,v))return!0}}}else return(a||r)&&(!r||!r.$stable)?!0:l===i?!1:l?i?ho(l,i,g):!0:!!i;return!1}function ho(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let a=0;a<l.length;a++){const o=l[a];if(po(t,e,o)&&!Gs(s,o))return!0}return!1}function po(e,t,s){const l=e[s],a=t[s];return s==="style"&&Pe(l)&&Pe(a)?!mn(l,a):l!==a}function Kn({vnode:e,parent:t},s){for(;t;){const l=t.subTree;if(l.suspense&&l.suspense.activeBranch===e&&(l.el=e.el),l===e)(e=t.vnode).el=s,t=t.parent;else break}}const vo={},go=()=>Object.create(vo),yo=e=>Object.getPrototypeOf(e)===vo;function Vi(e,t,s,l=!1){const a={},o=go();e.propsDefaults=Object.create(null),mo(e,t,a,o);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);s?e.props=l?a:Ja(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function zi(e,t,s,l){const{props:a,attrs:o,vnode:{patchFlag:i}}=e,r=ke(a),[u]=e.propsOptions;let g=!1;if((l||i>0)&&!(i&16)){if(i&8){const p=e.vnode.dynamicProps;for(let m=0;m<p.length;m++){let v=p[m];if(Gs(e.emitsOptions,v))continue;const b=t[v];if(u)if(Ee(o,v))b!==o[v]&&(o[v]=b,g=!0);else{const C=tt(v);a[C]=Vn(u,r,C,b,e,!1)}else b!==o[v]&&(o[v]=b,g=!0)}}}else{mo(e,t,a,o)&&(g=!0);let p;for(const m in r)(!t||!Ee(t,m)&&((p=Pt(m))===m||!Ee(t,p)))&&(u?s&&(s[m]!==void 0||s[p]!==void 0)&&(a[m]=Vn(u,r,m,void 0,e,!0)):delete a[m]);if(o!==r)for(const m in o)(!t||!Ee(t,m))&&(delete o[m],g=!0)}g&&xt(e.attrs,"set","")}function mo(e,t,s,l){const[a,o]=e.propsOptions;let i=!1,r;if(t)for(let u in t){if(gs(u))continue;const g=t[u];let p;a&&Ee(a,p=tt(u))?!o||!o.includes(p)?s[p]=g:(r||(r={}))[p]=g:Gs(e.emitsOptions,u)||(!(u in l)||g!==l[u])&&(l[u]=g,i=!0)}if(o){const u=ke(s),g=r||Ae;for(let p=0;p<o.length;p++){const m=o[p];s[m]=Vn(a,u,m,g[m],e,!Ee(g,m))}}return i}function Vn(e,t,s,l,a,o){const i=e[s];if(i!=null){const r=Ee(i,"default");if(r&&l===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&ge(u)){const{propsDefaults:g}=a;if(s in g)l=g[s];else{const p=Ps(a);l=g[s]=u.call(null,t),p()}}else l=u;a.ce&&a.ce._setProp(s,l)}i[0]&&(o&&!r?l=!1:i[1]&&(l===""||l===Pt(s))&&(l=!0))}return l}const Wi=new WeakMap;function bo(e,t,s=!1){const l=s?Wi:t.propsCache,a=l.get(e);if(a)return a;const o=e.props,i={},r=[];let u=!1;if(!ge(e)){const p=m=>{u=!0;const[v,b]=bo(m,t,!0);Ne(i,v),b&&r.push(...b)};!s&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!u)return Pe(e)&&l.set(e,Wt),Wt;if(ve(o))for(let p=0;p<o.length;p++){const m=tt(o[p]);_o(m)&&(i[m]=Ae)}else if(o)for(const p in o){const m=tt(p);if(_o(m)){const v=o[p],b=i[m]=ve(v)||ge(v)?{type:v}:Ne({},v),C=b.type;let x=!1,P=!0;if(ve(C))for(let L=0;L<C.length;++L){const A=C[L],y=ge(A)&&A.name;if(y==="Boolean"){x=!0;break}else y==="String"&&(P=!1)}else x=ge(C)&&C.name==="Boolean";b[0]=x,b[1]=P,(x||Ee(b,"default"))&&r.push(m)}}const g=[i,r];return Pe(e)&&l.set(e,g),g}function _o(e){return e[0]!=="$"&&!gs(e)}const zn=e=>e==="_"||e==="_ctx"||e==="$stable",Wn=e=>ve(e)?e.map(ft):[ft(e)],Ji=(e,t,s)=>{if(t._n)return t;const l=ss((...a)=>Wn(t(...a)),s);return l._c=!1,l},xo=(e,t,s)=>{const l=e._ctx;for(const a in e){if(zn(a))continue;const o=e[a];if(ge(o))t[a]=Ji(a,o,l);else if(o!=null){const i=Wn(o);t[a]=()=>i}}},wo=(e,t)=>{const s=Wn(t);e.slots.default=()=>s},$o=(e,t,s)=>{for(const l in t)(s||!zn(l))&&(e[l]=t[l])},Qi=(e,t,s)=>{const l=e.slots=go();if(e.vnode.shapeFlag&32){const a=t._;a?($o(l,t,s),s&&gl(l,"_",a,!0)):xo(t,l)}else t&&wo(e,t)},Gi=(e,t,s)=>{const{vnode:l,slots:a}=e;let o=!0,i=Ae;if(l.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:$o(a,t,s):(o=!t.$stable,xo(t,a)),i=t}else t&&(wo(e,t),i={default:1});if(o)for(const r in a)!zn(r)&&i[r]==null&&delete a[r]},Je=ar;function Yi(e){return Xi(e)}function Xi(e,t){const s=Ds();s.__VUE__=!0;const{insert:l,remove:a,patchProp:o,createElement:i,createText:r,createComment:u,setText:g,setElementText:p,parentNode:m,nextSibling:v,setScopeId:b=ht,insertStaticContent:C}=e,x=(f,_,R,N=null,F=null,D=null,G=void 0,Q=null,I=!!_.dynamicChildren)=>{if(f===_)return;f&&!Ft(f,_)&&(N=ie(f),oe(f,F,D,!0),f=null),_.patchFlag===-2&&(I=!1,_.dynamicChildren=null);const{type:B,ref:ce,shapeFlag:ee}=_;switch(B){case Ys:P(f,_,R,N);break;case dt:L(f,_,R,N);break;case Xs:f==null&&A(_,R,N,G);break;case K:be(f,_,R,N,F,D,G,Q,I);break;default:ee&1?T(f,_,R,N,F,D,G,Q,I):ee&6?Ce(f,_,R,N,F,D,G,Q,I):(ee&64||ee&128)&&B.process(f,_,R,N,F,D,G,Q,I,Et)}ce!=null&&F?ks(ce,f&&f.ref,D,_||f,!_):ce==null&&f&&f.ref!=null&&ks(f.ref,null,D,f,!0)},P=(f,_,R,N)=>{if(f==null)l(_.el=r(_.children),R,N);else{const F=_.el=f.el;_.children!==f.children&&g(F,_.children)}},L=(f,_,R,N)=>{f==null?l(_.el=u(_.children||""),R,N):_.el=f.el},A=(f,_,R,N)=>{[f.el,f.anchor]=C(f.children,_,R,N,f.el,f.anchor)},y=({el:f,anchor:_},R,N)=>{let F;for(;f&&f!==_;)F=v(f),l(f,R,N),f=F;l(_,R,N)},$=({el:f,anchor:_})=>{let R;for(;f&&f!==_;)R=v(f),a(f),f=R;a(_)},T=(f,_,R,N,F,D,G,Q,I)=>{if(_.type==="svg"?G="svg":_.type==="math"&&(G="mathml"),f==null)z(_,R,N,F,D,G,Q,I);else{const B=f.el&&f.el._isVueCE?f.el:null;try{B&&B._beginPatch(),Z(f,_,F,D,G,Q,I)}finally{B&&B._endPatch()}}},z=(f,_,R,N,F,D,G,Q)=>{let I,B;const{props:ce,shapeFlag:ee,transition:re,dirs:pe}=f;if(I=f.el=i(f.type,D,ce&&ce.is,ce),ee&8?p(I,f.children):ee&16&&se(f.children,I,null,N,F,Jn(f,D),G,Q),pe&&Kt(f,null,N,"created"),te(I,f,f.scopeId,G,N),ce){for(const Re in ce)Re!=="value"&&!gs(Re)&&o(I,Re,null,ce[Re],D,N);"value"in ce&&o(I,"value",null,ce.value,D),(B=ce.onVnodeBeforeMount)&&mt(B,N,f)}pe&&Kt(f,null,N,"beforeMount");const we=Zi(F,re);we&&re.beforeEnter(I),l(I,_,R),((B=ce&&ce.onVnodeMounted)||we||pe)&&Je(()=>{B&&mt(B,N,f),we&&re.enter(I),pe&&Kt(f,null,N,"mounted")},F)},te=(f,_,R,N,F)=>{if(R&&b(f,R),N)for(let D=0;D<N.length;D++)b(f,N[D]);if(F){let D=F.subTree;if(_===D||Eo(D.type)&&(D.ssContent===_||D.ssFallback===_)){const G=F.vnode;te(f,G,G.scopeId,G.slotScopeIds,F.parent)}}},se=(f,_,R,N,F,D,G,Q,I=0)=>{for(let B=I;B<f.length;B++){const ce=f[B]=Q?Ct(f[B]):ft(f[B]);x(null,ce,_,R,N,F,D,G,Q)}},Z=(f,_,R,N,F,D,G)=>{const Q=_.el=f.el;let{patchFlag:I,dynamicChildren:B,dirs:ce}=_;I|=f.patchFlag&16;const ee=f.props||Ae,re=_.props||Ae;let pe;if(R&&Vt(R,!1),(pe=re.onVnodeBeforeUpdate)&&mt(pe,R,_,f),ce&&Kt(_,f,R,"beforeUpdate"),R&&Vt(R,!0),(ee.innerHTML&&re.innerHTML==null||ee.textContent&&re.textContent==null)&&p(Q,""),B?fe(f.dynamicChildren,B,Q,R,N,Jn(_,F),D):G||k(f,_,Q,null,R,N,Jn(_,F),D,!1),I>0){if(I&16)Se(Q,ee,re,R,F);else if(I&2&&ee.class!==re.class&&o(Q,"class",null,re.class,F),I&4&&o(Q,"style",ee.style,re.style,F),I&8){const we=_.dynamicProps;for(let Re=0;Re<we.length;Re++){const Te=we[Re],Ue=ee[Te],Be=re[Te];(Be!==Ue||Te==="value")&&o(Q,Te,Ue,Be,F,R)}}I&1&&f.children!==_.children&&p(Q,_.children)}else!G&&B==null&&Se(Q,ee,re,R,F);((pe=re.onVnodeUpdated)||ce)&&Je(()=>{pe&&mt(pe,R,_,f),ce&&Kt(_,f,R,"updated")},N)},fe=(f,_,R,N,F,D,G)=>{for(let Q=0;Q<_.length;Q++){const I=f[Q],B=_[Q],ce=I.el&&(I.type===K||!Ft(I,B)||I.shapeFlag&198)?m(I.el):R;x(I,B,ce,null,N,F,D,G,!0)}},Se=(f,_,R,N,F)=>{if(_!==R){if(_!==Ae)for(const D in _)!gs(D)&&!(D in R)&&o(f,D,_[D],null,F,N);for(const D in R){if(gs(D))continue;const G=R[D],Q=_[D];G!==Q&&D!=="value"&&o(f,D,Q,G,F,N)}"value"in R&&o(f,"value",_.value,R.value,F)}},be=(f,_,R,N,F,D,G,Q,I)=>{const B=_.el=f?f.el:r(""),ce=_.anchor=f?f.anchor:r("");let{patchFlag:ee,dynamicChildren:re,slotScopeIds:pe}=_;pe&&(Q=Q?Q.concat(pe):pe),f==null?(l(B,R,N),l(ce,R,N),se(_.children||[],R,ce,F,D,G,Q,I)):ee>0&&ee&64&&re&&f.dynamicChildren&&f.dynamicChildren.length===re.length?(fe(f.dynamicChildren,re,R,F,D,G,Q),(_.key!=null||F&&_===F.subTree)&&ko(f,_,!0)):k(f,_,R,ce,F,D,G,Q,I)},Ce=(f,_,R,N,F,D,G,Q,I)=>{_.slotScopeIds=Q,f==null?_.shapeFlag&512?F.ctx.activate(_,R,N,G,I):$e(_,R,N,F,D,G,I):xe(f,_,I)},$e=(f,_,R,N,F,D,G)=>{const Q=f.component=pr(f,N,F);if(Nn(f)&&(Q.ctx.renderer=Et),gr(Q,!1,G),Q.asyncDep){if(F&&F.registerDep(Q,V,G),!f.el){const I=Q.subTree=me(dt);L(null,I,_,R),f.placeholder=I.el}}else V(Q,f,_,R,F,D,G)},xe=(f,_,R)=>{const N=_.component=f.component;if(Ki(f,_,R))if(N.asyncDep&&!N.asyncResolved){j(N,_,R);return}else N.next=_,N.update();else _.el=f.el,N.vnode=_},V=(f,_,R,N,F,D,G)=>{const Q=()=>{if(f.isMounted){let{next:ee,bu:re,u:pe,parent:we,vnode:Re}=f;{const Ye=So(f);if(Ye){ee&&(ee.el=Re.el,j(f,ee,G)),Ye.asyncDep.then(()=>{Je(()=>{f.isUnmounted||B()},F)});return}}let Te=ee,Ue;Vt(f,!1),ee?(ee.el=Re.el,j(f,ee,G)):ee=Re,re&&yn(re),(Ue=ee.props&&ee.props.onVnodeBeforeUpdate)&&mt(Ue,we,ee,Re),Vt(f,!0);const Be=fo(f),Ze=f.subTree;f.subTree=Be,x(Ze,Be,m(Ze.el),ie(Ze),f,F,D),ee.el=Be.el,Te===null&&Kn(f,Be.el),pe&&Je(pe,F),(Ue=ee.props&&ee.props.onVnodeUpdated)&&Je(()=>mt(Ue,we,ee,Re),F)}else{let ee;const{el:re,props:pe}=_,{bm:we,m:Re,parent:Te,root:Ue,type:Be}=f,Ze=ls(_);Vt(f,!1),we&&yn(we),!Ze&&(ee=pe&&pe.onVnodeBeforeMount)&&mt(ee,Te,_),Vt(f,!0);{Ue.ce&&Ue.ce._hasShadowRoot()&&Ue.ce._injectChildStyle(Be);const Ye=f.subTree=fo(f);x(null,Ye,R,N,f,F,D),_.el=Ye.el}if(Re&&Je(Re,F),!Ze&&(ee=pe&&pe.onVnodeMounted)){const Ye=_;Je(()=>mt(ee,Te,Ye),F)}(_.shapeFlag&256||Te&&ls(Te.vnode)&&Te.vnode.shapeFlag&256)&&f.a&&Je(f.a,F),f.isMounted=!0,_=R=N=null}};f.scope.on();const I=f.effect=new xl(Q);f.scope.off();const B=f.update=I.run.bind(I),ce=f.job=I.runIfDirty.bind(I);ce.i=f,ce.id=f.uid,I.scheduler=()=>Fn(ce),Vt(f,!0),B()},j=(f,_,R)=>{_.component=f;const N=f.vnode.props;f.vnode=_,f.next=null,zi(f,_.props,N,R),Gi(f,_.children,R),pt(),Ul(f),vt()},k=(f,_,R,N,F,D,G,Q,I=!1)=>{const B=f&&f.children,ce=f?f.shapeFlag:0,ee=_.children,{patchFlag:re,shapeFlag:pe}=_;if(re>0){if(re&128){S(B,ee,R,N,F,D,G,Q,I);return}else if(re&256){E(B,ee,R,N,F,D,G,Q,I);return}}pe&8?(ce&16&&J(B,F,D),ee!==B&&p(R,ee)):ce&16?pe&16?S(B,ee,R,N,F,D,G,Q,I):J(B,F,D,!0):(ce&8&&p(R,""),pe&16&&se(ee,R,N,F,D,G,Q,I))},E=(f,_,R,N,F,D,G,Q,I)=>{f=f||Wt,_=_||Wt;const B=f.length,ce=_.length,ee=Math.min(B,ce);let re;for(re=0;re<ee;re++){const pe=_[re]=I?Ct(_[re]):ft(_[re]);x(f[re],pe,R,null,F,D,G,Q,I)}B>ce?J(f,F,D,!0,!1,ee):se(_,R,N,F,D,G,Q,I,ee)},S=(f,_,R,N,F,D,G,Q,I)=>{let B=0;const ce=_.length;let ee=f.length-1,re=ce-1;for(;B<=ee&&B<=re;){const pe=f[B],we=_[B]=I?Ct(_[B]):ft(_[B]);if(Ft(pe,we))x(pe,we,R,null,F,D,G,Q,I);else break;B++}for(;B<=ee&&B<=re;){const pe=f[ee],we=_[re]=I?Ct(_[re]):ft(_[re]);if(Ft(pe,we))x(pe,we,R,null,F,D,G,Q,I);else break;ee--,re--}if(B>ee){if(B<=re){const pe=re+1,we=pe<ce?_[pe].el:N;for(;B<=re;)x(null,_[B]=I?Ct(_[B]):ft(_[B]),R,we,F,D,G,Q,I),B++}}else if(B>re)for(;B<=ee;)oe(f[B],F,D,!0),B++;else{const pe=B,we=B,Re=new Map;for(B=we;B<=re;B++){const ne=_[B]=I?Ct(_[B]):ft(_[B]);ne.key!=null&&Re.set(ne.key,B)}let Te,Ue=0;const Be=re-we+1;let Ze=!1,Ye=0;const Y=new Array(Be);for(B=0;B<Be;B++)Y[B]=0;for(B=pe;B<=ee;B++){const ne=f[B];if(Ue>=Be){oe(ne,F,D,!0);continue}let he;if(ne.key!=null)he=Re.get(ne.key);else for(Te=we;Te<=re;Te++)if(Y[Te-we]===0&&Ft(ne,_[Te])){he=Te;break}he===void 0?oe(ne,F,D,!0):(Y[he-we]=B+1,he>=Ye?Ye=he:Ze=!0,x(ne,_[he],R,null,F,D,G,Q,I),Ue++)}const O=Ze?er(Y):Wt;for(Te=O.length-1,B=Be-1;B>=0;B--){const ne=we+B,he=_[ne],ot=_[ne+1],et=ne+1<ce?ot.el||To(ot):N;Y[B]===0?x(null,he,R,et,F,D,G,Q,I):Ze&&(Te<0||B!==O[Te]?H(he,R,et,2):Te--)}}},H=(f,_,R,N,F=null)=>{const{el:D,type:G,transition:Q,children:I,shapeFlag:B}=f;if(B&6){H(f.component.subTree,_,R,N);return}if(B&128){f.suspense.move(_,R,N);return}if(B&64){G.move(f,_,R,Et);return}if(G===K){l(D,_,R);for(let ee=0;ee<I.length;ee++)H(I[ee],_,R,N);l(f.anchor,_,R);return}if(G===Xs){y(f,_,R);return}if(N!==2&&B&1&&Q)if(N===0)Q.beforeEnter(D),l(D,_,R),Je(()=>Q.enter(D),F);else{const{leave:ee,delayLeave:re,afterLeave:pe}=Q,we=()=>{f.ctx.isUnmounted?a(D):l(D,_,R)},Re=()=>{D._isLeaving&&D[pi](!0),ee(D,()=>{we(),pe&&pe()})};re?re(D,we,Re):Re()}else l(D,_,R)},oe=(f,_,R,N=!1,F=!1)=>{const{type:D,props:G,ref:Q,children:I,dynamicChildren:B,shapeFlag:ce,patchFlag:ee,dirs:re,cacheIndex:pe}=f;if(ee===-2&&(F=!1),Q!=null&&(pt(),ks(Q,null,R,f,!0),vt()),pe!=null&&(_.renderCache[pe]=void 0),ce&256){_.ctx.deactivate(f);return}const we=ce&1&&re,Re=!ls(f);let Te;if(Re&&(Te=G&&G.onVnodeBeforeUnmount)&&mt(Te,_,f),ce&6)ae(f.component,R,N);else{if(ce&128){f.suspense.unmount(R,N);return}we&&Kt(f,null,_,"beforeUnmount"),ce&64?f.type.remove(f,_,R,Et,N):B&&!B.hasOnce&&(D!==K||ee>0&&ee&64)?J(B,_,R,!1,!0):(D===K&&ee&384||!F&&ce&16)&&J(I,_,R),N&&le(f)}(Re&&(Te=G&&G.onVnodeUnmounted)||we)&&Je(()=>{Te&&mt(Te,_,f),we&&Kt(f,null,_,"unmounted")},R)},le=f=>{const{type:_,el:R,anchor:N,transition:F}=f;if(_===K){U(R,N);return}if(_===Xs){$(f);return}const D=()=>{a(R),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(f.shapeFlag&1&&F&&!F.persisted){const{leave:G,delayLeave:Q}=F,I=()=>G(R,D);Q?Q(f.el,D,I):I()}else D()},U=(f,_)=>{let R;for(;f!==_;)R=v(f),a(f),f=R;a(_)},ae=(f,_,R)=>{const{bum:N,scope:F,job:D,subTree:G,um:Q,m:I,a:B}=f;Co(I),Co(B),N&&yn(N),F.stop(),D&&(D.flags|=8,oe(G,f,_,R)),Q&&Je(Q,_),Je(()=>{f.isUnmounted=!0},_)},J=(f,_,R,N=!1,F=!1,D=0)=>{for(let G=D;G<f.length;G++)oe(f[G],_,R,N,F)},ie=f=>{if(f.shapeFlag&6)return ie(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const _=v(f.anchor||f.el),R=_&&_[fi];return R?v(R):_};let Ie=!1;const cn=(f,_,R)=>{let N;f==null?_._vnode&&(oe(_._vnode,null,null,!0),N=_._vnode.component):x(_._vnode||null,f,_,null,null,null,R),_._vnode=f,Ie||(Ie=!0,Ul(N),Kl(),Ie=!1)},Et={p:x,um:oe,m:H,r:le,mt:$e,mc:se,pc:k,pbc:fe,n:ie,o:e};return{render:cn,hydrate:void 0,createApp:Ii(cn)}}function Jn({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 Vt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ko(e,t,s=!1){const l=e.children,a=t.children;if(ve(l)&&ve(a))for(let o=0;o<l.length;o++){const i=l[o];let r=a[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=a[o]=Ct(a[o]),r.el=i.el),!s&&r.patchFlag!==-2&&ko(i,r)),r.type===Ys&&(r.patchFlag===-1&&(r=a[o]=Ct(r)),r.el=i.el),r.type===dt&&!r.el&&(r.el=i.el)}}function er(e){const t=e.slice(),s=[0];let l,a,o,i,r;const u=e.length;for(l=0;l<u;l++){const g=e[l];if(g!==0){if(a=s[s.length-1],e[a]<g){t[l]=a,s.push(l);continue}for(o=0,i=s.length-1;o<i;)r=o+i>>1,e[s[r]]<g?o=r+1:i=r;g<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,i=s[o-1];o-- >0;)s[o]=i,i=t[i];return s}function So(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:So(t)}function Co(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function To(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?To(t.subTree):null}const Eo=e=>e.__isSuspense;let Qn=0;const tr={name:"Suspense",__isSuspense:!0,process(e,t,s,l,a,o,i,r,u,g){if(e==null)sr(t,s,l,a,o,i,r,u,g);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}nr(e,t,s,l,a,i,r,u,g)}},hydrate:lr,normalize:or};function Ts(e,t){const s=e.props&&e.props[t];ge(s)&&s()}function sr(e,t,s,l,a,o,i,r,u){const{p:g,o:{createElement:p}}=u,m=p("div"),v=e.suspense=Po(e,a,l,t,m,s,o,i,r,u);g(null,v.pendingBranch=e.ssContent,m,null,l,v,o,i),v.deps>0?(Ts(e,"onPending"),Ts(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,o,i),as(v,e.ssFallback)):v.resolve(!1,!0)}function nr(e,t,s,l,a,o,i,r,{p:u,um:g,o:{createElement:p}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const v=t.ssContent,b=t.ssFallback,{activeBranch:C,pendingBranch:x,isInFallback:P,isHydrating:L}=m;if(x)m.pendingBranch=v,Ft(x,v)?(u(x,v,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0?m.resolve():P&&(L||(u(C,b,s,l,a,null,o,i,r),as(m,b)))):(m.pendingId=Qn++,L?(m.isHydrating=!1,m.activeBranch=x):g(x,a,m),m.deps=0,m.effects.length=0,m.hiddenContainer=p("div"),P?(u(null,v,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0?m.resolve():(u(C,b,s,l,a,null,o,i,r),as(m,b))):C&&Ft(C,v)?(u(C,v,s,l,a,m,o,i,r),m.resolve(!0)):(u(null,v,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0&&m.resolve()));else if(C&&Ft(C,v))u(C,v,s,l,a,m,o,i,r),as(m,v);else if(Ts(t,"onPending"),m.pendingBranch=v,v.shapeFlag&512?m.pendingId=v.component.suspenseId:m.pendingId=Qn++,u(null,v,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0)m.resolve();else{const{timeout:A,pendingId:y}=m;A>0?setTimeout(()=>{m.pendingId===y&&m.fallback(b)},A):A===0&&m.fallback(b)}}function Po(e,t,s,l,a,o,i,r,u,g,p=!1){const{p:m,m:v,um:b,n:C,o:{parentNode:x,remove:P}}=g;let L;const A=ir(e);A&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const y=e.props?xa(e.props.timeout):void 0,$=o,T={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:a,deps:0,pendingId:Qn++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(z=!1,te=!1){const{vnode:se,activeBranch:Z,pendingBranch:fe,pendingId:Se,effects:be,parentComponent:Ce,container:$e,isInFallback:xe}=T;let V=!1;T.isHydrating?T.isHydrating=!1:z||(V=Z&&fe.transition&&fe.transition.mode==="out-in",V&&(Z.transition.afterLeave=()=>{Se===T.pendingId&&(v(fe,$e,o===$?C(Z):o,0),Dn(be),xe&&se.ssFallback&&(se.ssFallback.el=null))}),Z&&(x(Z.el)===$e&&(o=C(Z)),b(Z,Ce,T,!0),!V&&xe&&se.ssFallback&&Je(()=>se.ssFallback.el=null,T)),V||v(fe,$e,o,0)),as(T,fe),T.pendingBranch=null,T.isInFallback=!1;let j=T.parent,k=!1;for(;j;){if(j.pendingBranch){j.effects.push(...be),k=!0;break}j=j.parent}!k&&!V&&Dn(be),T.effects=[],A&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!te&&t.resolve()),Ts(se,"onResolve")},fallback(z){if(!T.pendingBranch)return;const{vnode:te,activeBranch:se,parentComponent:Z,container:fe,namespace:Se}=T;Ts(te,"onFallback");const be=C(se),Ce=()=>{T.isInFallback&&(m(null,z,fe,be,Z,null,Se,r,u),as(T,z))},$e=z.transition&&z.transition.mode==="out-in";$e&&(se.transition.afterLeave=Ce),T.isInFallback=!0,b(se,Z,null,!0),$e||Ce()},move(z,te,se){T.activeBranch&&v(T.activeBranch,z,te,se),T.container=z},next(){return T.activeBranch&&C(T.activeBranch)},registerDep(z,te,se){const Z=!!T.pendingBranch;Z&&T.deps++;const fe=z.vnode.el;z.asyncDep.catch(Se=>{Zt(Se,z,0)}).then(Se=>{if(z.isUnmounted||T.isUnmounted||T.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:be}=z;Xn(z,Se),fe&&(be.el=fe);const Ce=!fe&&z.subTree.el;te(z,be,x(fe||z.subTree.el),fe?null:C(z.subTree),T,i,se),Ce&&(be.placeholder=null,P(Ce)),Kn(z,be.el),Z&&--T.deps===0&&T.resolve()})},unmount(z,te){T.isUnmounted=!0,T.activeBranch&&b(T.activeBranch,s,z,te),T.pendingBranch&&b(T.pendingBranch,s,z,te)}};return T}function lr(e,t,s,l,a,o,i,r,u){const g=t.suspense=Po(t,l,s,e.parentNode,document.createElement("div"),null,a,o,i,r,!0),p=u(e,g.pendingBranch=t.ssContent,s,g,o,i);return g.deps===0&&g.resolve(!1,!0),p}function or(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Ro(l?s.default:s),e.ssFallback=l?Ro(s.fallback):me(dt)}function Ro(e){let t;if(ge(e)){const s=is&&e._c;s&&(e._d=!1,c()),e=e(),s&&(e._d=!0,t=Ge,Ao())}return ve(e)&&(e=Hi(e)),e=ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function ar(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):Dn(e)}function as(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let a=t.el;for(;!a&&t.component;)t=t.component.subTree,a=t.el;s.el=a,l&&l.subTree===s&&(l.vnode.el=a,Kn(l,a))}function ir(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const K=Symbol.for("v-fgt"),Ys=Symbol.for("v-txt"),dt=Symbol.for("v-cmt"),Xs=Symbol.for("v-stc"),Es=[];let Ge=null;function c(e=!1){Es.push(Ge=e?null:[])}function Ao(){Es.pop(),Ge=Es[Es.length-1]||null}let is=1;function Zs(e,t=!1){is+=e,e<0&&Ge&&t&&(Ge.hasOnce=!0)}function Mo(e){return e.dynamicChildren=is>0?Ge||Wt:null,Ao(),is>0&&Ge&&Ge.push(e),e}function d(e,t,s,l,a,o){return Mo(n(e,t,s,l,a,o,!0))}function Xe(e,t,s,l,a){return Mo(me(e,t,s,l,a,!0))}function rs(e){return e?e.__v_isVNode===!0:!1}function Ft(e,t){return e.type===t.type&&e.key===t.key}const Lo=({key:e})=>e??null,en=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Oe(e)||je(e)||ge(e)?{i:ze,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,a=null,o=e===K?0:1,i=!1,r=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lo(t),ref:t&&en(t),scopeId:zl,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:o,patchFlag:l,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:ze};return r?(Gn(u,s),o&128&&e.normalize(u)):s&&(u.shapeFlag|=Oe(s)?8:16),is>0&&!i&&Ge&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&Ge.push(u),u}const me=rr;function rr(e,t=null,s=null,l=0,a=null,o=!1){if((!e||e===eo)&&(e=dt),rs(e)){const r=us(e,t,!0);return s&&Gn(r,s),is>0&&!o&&Ge&&(r.shapeFlag&6?Ge[Ge.indexOf(e)]=r:Ge.push(r)),r.patchFlag=-2,r}if(wr(e)&&(e=e.__vccOpts),t){t=ur(t);let{class:r,style:u}=t;r&&!Oe(r)&&(t.class=M(r)),Pe(u)&&(Mn(u)&&!ve(u)&&(u=Ne({},u)),t.style=Ke(u))}const i=Oe(e)?1:Eo(e)?128:hi(e)?64:Pe(e)?4:ge(e)?2:0;return n(e,t,s,l,a,i,o,!0)}function ur(e){return e?Mn(e)||yo(e)?Ne({},e):e:null}function us(e,t,s=!1,l=!1){const{props:a,ref:o,patchFlag:i,children:r,transition:u}=e,g=t?dr(a||{},t):a,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Lo(g),ref:t&&t.ref?s&&o?ve(o)?o.concat(en(t)):[o,en(t)]:en(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&In(p,u.clone(p)),p}function _e(e=" ",t=0){return me(Ys,null,e,t)}function cr(e,t){const s=me(Xs,null,e);return s.staticCount=t,s}function X(e="",t=!1){return t?(c(),Xe(dt,null,e)):me(dt,null,e)}function ft(e){return e==null||typeof e=="boolean"?me(dt):ve(e)?me(K,null,e.slice()):rs(e)?Ct(e):me(Ys,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:us(e)}function Gn(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(ve(t))s=16;else if(typeof t=="object")if(l&65){const a=t.default;a&&(a._c&&(a._d=!1),Gn(e,a()),a._c&&(a._d=!0));return}else{s=32;const a=t._;!a&&!yo(t)?t._ctx=ze:a===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:ze},s=32):(t=String(t),l&64?(s=16,t=[_e(t)]):s=8);e.children=t,e.shapeFlag|=s}function dr(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const a in l)if(a==="class")t.class!==l.class&&(t.class=M([t.class,l.class]));else if(a==="style")t.style=Ke([t.style,l.style]);else if(Ls(a)){const o=t[a],i=l[a];i&&o!==i&&!(ve(o)&&o.includes(i))&&(t[a]=o?[].concat(o,i):i)}else a!==""&&(t[a]=l[a])}return t}function mt(e,t,s,l=null){gt(e,t,7,[s,l])}const fr=uo();let hr=0;function pr(e,t,s){const l=e.type,a=(t?t.appContext:e.appContext)||fr,o={uid:hr++,vnode:e,type:l,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ea(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bo(l,a),emitsOptions:co(l,a),emit:null,emitted:null,propsDefaults:Ae,inheritAttrs:l.inheritAttrs,ctx:Ae,data:Ae,props:Ae,attrs:Ae,slots:Ae,refs:Ae,setupState:Ae,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Ni.bind(null,o),e.ce&&e.ce(o),o}let He=null;const vr=()=>He||ze;let tn,Yn;{const e=Ds(),t=(s,l)=>{let a;return(a=e[s])||(a=e[s]=[]),a.push(l),o=>{a.length>1?a.forEach(i=>i(o)):a[0](o)}};tn=t("__VUE_INSTANCE_SETTERS__",s=>He=s),Yn=t("__VUE_SSR_SETTERS__",s=>cs=s)}const Ps=e=>{const t=He;return tn(e),e.scope.on(),()=>{e.scope.off(),tn(t)}},Oo=()=>{He&&He.scope.off(),tn(null)};function Fo(e){return e.vnode.shapeFlag&4}let cs=!1;function gr(e,t=!1,s=!1){t&&Yn(t);const{props:l,children:a}=e.vnode,o=Fo(e);Vi(e,l,o,t),Qi(e,a,s||t);const i=o?yr(e,t):void 0;return t&&Yn(!1),i}function yr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ri);const{setup:l}=s;if(l){pt();const a=e.setupContext=l.length>1?br(e):null,o=Ps(e),i=Xt(l,e,0,[e.props,a]),r=hl(i);if(vt(),o(),(r||e.sp)&&!ls(e)&&Bn(e),r){if(i.then(Oo,Oo),t)return i.then(u=>{Xn(e,u)}).catch(u=>{Zt(u,e,0)});e.asyncDep=i}else Xn(e,i)}else Do(e)}function Xn(e,t,s){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pe(t)&&(e.setupState=Nl(t)),Do(e)}function Do(e,t,s){const l=e.type;e.render||(e.render=l.render||ht);{const a=Ps(e);pt();try{Ai(e)}finally{vt(),a()}}}const mr={get(e,t){return qe(e,"get",""),e[t]}};function br(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,mr),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Nl(Qa(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ss)return Ss[s](e)},has(t,s){return s in t||s in Ss}})):e.proxy}const _r=/(?:^|[-_])\w/g,xr=e=>e.replace(_r,t=>t.toUpperCase()).replace(/[-_]/g,"");function Io(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function Bo(e,t,s=!1){let l=Io(t);if(!l&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(l=a[1])}if(!l&&e){const a=o=>{for(const i in o)if(o[i]===t)return i};l=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return l?xr(l):s?"App":"Anonymous"}function wr(e){return ge(e)&&"__vccOpts"in e}const q=(e,t)=>ei(e,t,cs);function ds(e,t,s){try{Zs(-1);const l=arguments.length;return l===2?Pe(t)&&!ve(t)?rs(t)?me(e,null,[t]):me(e,t):me(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&rs(s)&&(s=[s]),me(e,t,s))}finally{Zs(1)}}const $r="3.5.29";let el;const No=typeof window<"u"&&window.trustedTypes;if(No)try{el=No.createPolicy("vue",{createHTML:e=>e})}catch{}const jo=el?e=>el.createHTML(e):e=>e,kr="http://www.w3.org/2000/svg",Sr="http://www.w3.org/1998/Math/MathML",Tt=typeof document<"u"?document:null,Ho=Tt&&Tt.createElement("template"),Cr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,l)=>{const a=t==="svg"?Tt.createElementNS(kr,e):t==="mathml"?Tt.createElementNS(Sr,e):s?Tt.createElement(e,{is:s}):Tt.createElement(e);return e==="select"&&l&&l.multiple!=null&&a.setAttribute("multiple",l.multiple),a},createText:e=>Tt.createTextNode(e),createComment:e=>Tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,a,o){const i=s?s.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),s),!(a===o||!(a=a.nextSibling)););else{Ho.innerHTML=jo(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=Ho.content;if(l==="svg"||l==="mathml"){const u=r.firstChild;for(;u.firstChild;)r.appendChild(u.firstChild);r.removeChild(u)}t.insertBefore(r,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Tr=Symbol("_vtc");function Er(e,t,s){const l=e[Tr];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const qo=Symbol("_vod"),Pr=Symbol("_vsh"),Rr=Symbol(""),Ar=/(?:^|;)\s*display\s*:/;function Mr(e,t,s){const l=e.style,a=Oe(s);let o=!1;if(s&&!a){if(t)if(Oe(t))for(const i of t.split(";")){const r=i.slice(0,i.indexOf(":")).trim();s[r]==null&&sn(l,r,"")}else for(const i in t)s[i]==null&&sn(l,i,"");for(const i in s)i==="display"&&(o=!0),sn(l,i,s[i])}else if(a){if(t!==s){const i=l[Rr];i&&(s+=";"+i),l.cssText=s,o=Ar.test(s)}}else t&&e.removeAttribute("style");qo in e&&(e[qo]=o?l.display:"",e[Pr]&&(l.display="none"))}const Uo=/\s*!important$/;function sn(e,t,s){if(ve(s))s.forEach(l=>sn(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=Lr(e,t);Uo.test(s)?e.setProperty(Pt(l),s.replace(Uo,""),"important"):e[l]=s}}const Ko=["Webkit","Moz","ms"],tl={};function Lr(e,t){const s=tl[t];if(s)return s;let l=tt(t);if(l!=="filter"&&l in e)return tl[t]=l;l=Fs(l);for(let a=0;a<Ko.length;a++){const o=Ko[a]+l;if(o in e)return tl[t]=o}return t}const Vo="http://www.w3.org/1999/xlink";function zo(e,t,s,l,a,o=Ca(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Vo,t.slice(6,t.length)):e.setAttributeNS(Vo,t,s):s==null||o&&!ml(s)?e.removeAttribute(t):e.setAttribute(t,o?"":at(s)?String(s):s)}function Wo(e,t,s,l,a){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?jo(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(r!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const r=typeof e[t];r==="boolean"?s=ml(s):s==null&&r==="string"?(s="",i=!0):r==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(a||t)}function Or(e,t,s,l){e.addEventListener(t,s,l)}function Fr(e,t,s,l){e.removeEventListener(t,s,l)}const Jo=Symbol("_vei");function Dr(e,t,s,l,a=null){const o=e[Jo]||(e[Jo]={}),i=o[t];if(l&&i)i.value=l;else{const[r,u]=Ir(t);if(l){const g=o[t]=jr(l,a);Or(e,r,g,u)}else i&&(Fr(e,r,i,u),o[t]=void 0)}}const Qo=/(?:Once|Passive|Capture)$/;function Ir(e){let t;if(Qo.test(e)){t={};let l;for(;l=e.match(Qo);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let sl=0;const Br=Promise.resolve(),Nr=()=>sl||(Br.then(()=>sl=0),sl=Date.now());function jr(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;gt(Hr(l,s.value),t,5,[l])};return s.value=e,s.attached=Nr(),s}function Hr(e,t){if(ve(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>a=>!a._stopped&&l&&l(a))}else return t}const Go=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qr=(e,t,s,l,a,o)=>{const i=a==="svg";t==="class"?Er(e,l,i):t==="style"?Mr(e,s,l):Ls(t)?hn(t)||Dr(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ur(e,t,l,i))?(Wo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zo(e,t,l,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Oe(l))?Wo(e,tt(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),zo(e,t,l,i))};function Ur(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Go(t)&&ge(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 a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Go(t)&&Oe(s)?!1:t in e}const Kr=["ctrl","shift","alt","meta"],Vr={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)=>Kr.some(s=>e[`${s}Key`]&&!t.includes(s))},nt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((a,...o)=>{for(let i=0;i<t.length;i++){const r=Vr[t[i]];if(r&&r(a,t))return}return e(a,...o)}))},zr={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Rs=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(a=>{if(!("key"in a))return;const o=Pt(a.key);if(t.some(i=>i===o||zr[i]===o))return e(a)}))},Wr=Ne({patchProp:qr},Cr);let Yo;function Jr(){return Yo||(Yo=Yi(Wr))}const Qr=((...e)=>{const t=Jr().createApp(...e),{mount:s}=t;return t.mount=l=>{const a=Yr(l);if(!a)return;const o=t._component;!ge(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const i=s(a,!1,Gr(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),i},t});function Gr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yr(e){return Oe(e)?document.querySelector(e):e}async function Xr(){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 Zr(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const i=await Xr();if(!i)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new i({baseUrl:e.baseUrl||window.location.origin,...e.authToken?{beforeSubscribe(r){return{headers:{Authorization:`Bearer ${e.authToken}`}}},beforeUnsubscribe(r){return{headers:{Authorization:`Bearer ${e.authToken}`}}}}:{}}),s=t.subscription(e.channelName),s.onMessage(r=>{l||e.onMessage(r)}),await s.create()}catch(i){e.onError&&e.onError(i)}},unsubscribe:async()=>{l=!0;try{s&&(await s.delete(),s=null),t&&(t=null)}catch{}}}}function eu(e){let t=!1;const s=Zr({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:l=>{t=!0,e.onError?.(l),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(l=>{e.onError?.(l),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class nn extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class tu extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class nl{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const a={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:a,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(o.status===401||o.status===403)throw new nn(o.status);if(!o.ok){const i=await o.text().catch(()=>"");throw new tu(o.status,i)}return o.json()}async get(t,s){const l=s?`${t}?${s}`:t;return this.fetch(l)}async post(t,s){const l={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,l)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const ln="ss-dash-theme",ll="ss-theme-change";function As(){if(typeof window>"u")return"light";const e=localStorage.getItem(ln);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function su(e){typeof window>"u"||(localStorage.setItem(ln,e),window.dispatchEvent(new CustomEvent(ll,{detail:e})))}function nu(){const t=As()==="dark"?"light":"dark";return su(t),t}function Xo(e){if(typeof window>"u")return()=>{};const t=o=>{const i=o.detail;(i==="dark"||i==="light")&&e(i)},s=o=>{if(o.key===ln){const i=o.newValue;e(i==="dark"||i==="light"?i:As())}},l=window.matchMedia("(prefers-color-scheme: dark)"),a=o=>{localStorage.getItem(ln)||e(o.matches?"dark":"light")};return window.addEventListener(ll,t),window.addEventListener("storage",s),l.addEventListener("change",a),()=>{window.removeEventListener(ll,t),window.removeEventListener("storage",s),l.removeEventListener("change",a)}}const lu={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function ou(e){return{...lu,...e}}let au=0;function iu(){return`ss-grad-${au++}`}function ru(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let a=1;a<e.length;a++){const o=e[a];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function uu(e,t){if(e.length<2)return null;const s=ou(t),l=ru(e),a=l.max-l.min||1,o=s.width-s.padding*2,i=s.height-s.padding*2,r=s.padding,u=e.length,g=Array.from({length:u});for(let x=0;x<u;x++){const P=r+x/(u-1)*o,L=r+i-(e[x]-l.min)/a*i;g[x]=`${P.toFixed(1)},${L.toFixed(1)}`}const p=g.join(" "),m=(r+o).toFixed(1),v=(r+i).toFixed(1),b=r.toFixed(1),C=`M${g[0]} `+g.slice(1).map(x=>`L${x}`).join(" ")+` L${m},${v} L${b},${v} Z`;return{points:p,areaPath:C,gradientId:iu(),options:s,stats:l}}const cu=5e3,Zo=1e4,ea=100,du=500;function fu(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),a=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${a}m`:a>0?`${a}m ${t%60}s`:`${t}s`}function Dt(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function ta(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function It(e){if(!e)return"-";const t=typeof e=="string"?new Date(ta(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function bt(e){if(!e)return"-";const t=typeof e=="string"?new Date(ta(e)).getTime():e,s=Math.floor((Date.now()-t)/1e3);return s<0?"just now":s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}function ol(e){return e>du?"very-slow":e>ea?"slow":"normal"}function on(e,t=100){if(e===null)return"null";if(e===void 0)return"-";if(typeof e=="string")return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"';if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const l="["+e.slice(0,3).map(a=>on(a,30)).join(", ")+(e.length>3?", ..."+e.length+" items":"")+"]";return l.length>t?"["+e.length+" items]":l}if(typeof e=="object"){const s=Object.keys(e);if(s.length===0)return"{}";const l=[];for(let o=0;o<Math.min(s.length,4);o++)l.push(s[o]+": "+on(e[s[o]],30));const a="{ "+l.join(", ")+(s.length>4?", ...+"+(s.length-4):"")+" }";return a.length>t?"{ "+s.slice(0,6).join(", ")+(s.length>6?", ...":"")+" }":a}return String(e)}function hu(e){return e<0?"no expiry":e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m`:e<86400?`${Math.floor(e/3600)}h`:`${Math.floor(e/86400)}d`}function pu(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}function vu(e){const t=new URLSearchParams;if(e.page!==null&&e.page!==void 0&&t.set("page",String(e.page)),e.perPage!==null&&e.perPage!==void 0&&t.set("perPage",String(e.perPage)),e.search&&t.set("search",e.search),e.sort&&t.set("sort",e.sort),e.sortDir&&t.set("direction",e.sortDir),e.timeRange&&t.set("range",e.timeRange),e.filters)for(const[s,l]of Object.entries(e.filters))l&&t.set(s,l);return t.toString()}function gu(e,t,s=2){if(t<=1)return[1];const l=[],a=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),a>2&&l.push("...");for(let i=a;i<=o;i++)l.push(i);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const sa="/admin/api/debug",na={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 yu(e){return{tracing:e.features?.tracing??!1,process:e.features?.process??!1,system:e.features?.system??!1,http:e.features?.http??!1,db:e.features?.db??!1,redis:e.features?.redis??!1,queues:e.features?.queues??!1,cache:e.features?.cache??!1,app:e.features?.app??!1,log:e.features?.log??!1,emails:e.features?.emails??!1,dashboard:e.features?.dashboard??!1,customPanes:e.customPanes??[]}}async function mu(e,t=sa){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function bu(e){const{baseUrl:t="",debugEndpoint:s=sa,authToken:l}=e,a=new nl({baseUrl:t,authToken:l});try{const o=await mu(a,s);return yu(o)}catch{return na}}const _u={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function xu(e){return _u[e]||`/${e}`}class la{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const a=xu(t),o=s?`${this.basePath}${a}?${s}`:`${this.basePath}${a}`;return this.client.fetch(o,l)}async fetchChart(t){return this.client.fetch(`${this.basePath}/overview/chart?range=${t}`)}async fetchGroupedQueries(){return this.client.fetch(`${this.basePath}/queries/grouped`)}async explainQuery(t){return this.client.fetch(`${this.basePath}/queries/${t}/explain`)}async retryJob(t){return this.client.fetch(`${this.basePath}/jobs/${t}/retry`,{method:"POST"})}async fetchCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`)}async deleteCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,{method:"DELETE"})}async fetchEmailPreview(t){return this.client.fetch(`${this.basePath}/emails/${t}/preview`)}}class wu{client;api;callbacks;endpoint;perPage;section;page=1;search;sort;sortDir;filters;timeRange;timer=null;fetchId=0;explicitFetchPending=!1;hasFetched=!1;stopped=!1;abortController=null;constructor(t){this.client=new nl({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new la(this.client,t.endpoint),this.endpoint=t.endpoint,this.section=t.section,this.perPage=t.perPage,this.callbacks=t.callbacks}start(){this.stopped=!1,this.fetch(!1),this.startRefreshTimer()}stop(){this.stopped=!0,this.stopRefreshTimer(),this.abortController?.abort(),this.abortController=null}async fetch(t=!0){if(t&&this.explicitFetchPending)return;this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId,a=this.section;if(!a)return;const o=this.filters,i=this.sort?this.sort.replace(/[A-Z]/g,u=>"_"+u.toLowerCase()):void 0,r=vu({page:this.page,perPage:this.perPage,search:this.search,sort:i,sortDir:this.sort?this.sortDir:void 0,filters:o&&Object.keys(o).length>0?o:void 0,timeRange:a.startsWith("overview")?this.timeRange:void 0});t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0);try{const u=await this.api.fetchSection(a,r||void 0,{signal:s.signal});if(l!==this.fetchId||this.stopped)return;if(u&&typeof u=="object"&&u.data!==void 0&&u.meta!==void 0){const g=u;this.callbacks.onData(g.data),this.callbacks.onPagination(g.meta)}else this.callbacks.onData(u),this.callbacks.onPagination(null);this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}catch(u){if(u instanceof DOMException&&u.name==="AbortError"||s.signal.aborted||l!==this.fetchId||this.stopped)return;if(u instanceof nn){this.callbacks.onError(u),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}t||(this.callbacks.onError(u instanceof Error?u:new Error(String(u))),this.callbacks.onLoading(!1))}finally{t||(this.explicitFetchPending=!1)}}setSection(t){this.section!==t&&(this.section=t,this.page=1,this.search=void 0,this.sort=void 0,this.sortDir=void 0,this.filters=void 0,this.hasFetched=!1,this.callbacks.onData(null),this.callbacks.onPagination(null),this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetch(!1),this.startRefreshTimer())}setPage(t){this.page=t,this.fetch(!1)}setSearch(t){this.search=t||void 0,this.page=1,this.fetch(!1)}setFilter(t,s){this.filters||(this.filters={}),this.filters[t]=String(s),this.page=1,this.fetch(!1)}setSort(t,s){this.sort===t&&!s?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sort=t,this.sortDir=s||"desc"),this.fetch(!1)}setTimeRange(t){this.timeRange=t,this.fetch(!1)}async mutate(t,s="post",l){const a=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(a,l):await this.client.delete(a);return await this.fetch(!0),o}catch(o){throw o instanceof Error?o:new Error(String(o))}}configure(t){t.page!==void 0&&(this.page=t.page),t.perPage!==void 0&&(this.perPage=t.perPage),this.search=t.search,this.sort=t.sort,this.sortDir=t.sortDir,this.filters=t.filters,this.timeRange=t.timeRange}hasData(){return this.hasFetched}handleRefreshSignal(){this.hasFetched&&this.fetch(!0)}getApi(){return this.api}getClient(){return this.client}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?cu:Zo;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const Le={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"/>']}},$u="ss-col-resize",oa="ss-resizing";function ku(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function a(){if(!l){l=!0;for(const o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let i=function(u){u.preventDefault(),u.stopPropagation(),a();const g=u.clientX,p=o.offsetWidth;r.classList.add(oa),r.setPointerCapture(u.pointerId);function m(b){const C=b.clientX-g,x=Math.max(30,p+C);o.style.width=x+"px"}function v(){r.classList.remove(oa),r.removeEventListener("pointermove",m),r.removeEventListener("pointerup",v)}r.addEventListener("pointermove",m),r.addEventListener("pointerup",v)};if(!o.textContent?.trim())continue;const r=document.createElement("div");r.className=$u,o.appendChild(r),r.addEventListener("pointerdown",i),s.push(()=>{r.removeEventListener("pointerdown",i),r.remove()})}return()=>{for(const o of s)o()}}const Su=["all","error","warn","info","debug"];function an(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function aa(e){return e.msg||e.message||JSON.stringify(e)}function Bt(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Nt(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function ia(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}const ra=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function _t(e){if(e.data){let s=null;if(typeof e.data=="string")try{s=JSON.parse(e.data)}catch{}else typeof e.data=="object"&&!Array.isArray(e.data)&&(s=e.data);if(s){const l={};for(const[a,o]of Object.entries(s))ra.has(a)||(l[a]=o);if(Object.keys(l).length>0)return l}}const t={};for(const[s,l]of Object.entries(e))ra.has(s)||(t[s]=l);return Object.keys(t).length>0?t:null}const Cu=["all","active","waiting","delayed","completed","failed"];function Tu(e){switch(e){case"active":return"blue";case"waiting":return"amber";case"delayed":return"purple";case"completed":return"green";case"failed":return"red";default:return"muted"}}function Eu(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function Pu(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function Ru(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function Au(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function al(e,t,s,l=0){return e[t]??e[s]??l}function Mu(e){return{method:e.method||"",url:e.url||"",statusCode:al(e,"status_code","statusCode"),totalDuration:al(e,"total_duration","totalDuration")||e.duration||0,spanCount:al(e,"span_count","spanCount"),spans:Ru(e.spans),warnings:Au(e.warnings),logs:e.logs||[],httpRequestId:e.httpRequestId||e.http_request_id||void 0}}const Lu=["password","secret","token","key","credential","auth"];function Ou(e){const t=e.toLowerCase();return Lu.some(s=>t.includes(s))}function Fu(e){if(e==null)return"-";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e))return e.join(", ")||"-";try{return JSON.stringify(e)}catch{return String(e)}}const Du={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Iu(e){return Du[e]||e}const Bu={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function Nu(e){return Bu[e]||e}function ju(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function Hu(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function qu(e){return Object.entries(e).map(([t,s])=>({key:t,value:Fu(s),secret:Ou(t)}))}function Uu(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const Ku=["healthy","active","connected","available","ready"],Vu=["errored","unavailable"];function zu(e){return Ku.includes(e)?"ok":Vu.includes(e)?"err":""}function De(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function rn(e,t=""){if(typeof e!="object"||e===null||e===void 0)return[{path:t,value:e}];if(Array.isArray(e)||De(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const a=t?`${t}.${l}`:l,o=e[l];typeof o=="object"&&o!==null&&!Array.isArray(o)&&!De(o)?s.push(...rn(o,a)):s.push({path:a,value:o})}return s}function Wu(e){return e==null?{text:"null",color:"var(--ss-dim)"}:typeof e=="boolean"?{text:String(e),color:e?"var(--ss-green-fg)":"var(--ss-red-fg)"}:typeof e=="number"?{text:String(e),color:"var(--ss-amber-fg)"}:Array.isArray(e)?{text:`[${e.map(s=>s==null?"null":typeof s=="object"?JSON.stringify(s):String(s)).join(", ")}]`,color:"var(--ss-purple-fg)"}:typeof e=="object"?{text:JSON.stringify(e),color:"var(--ss-dim)"}:{text:String(e)}}function ua(e){if(e==null||typeof e!="object"||Array.isArray(e)||De(e))return 1;let t=0;for(const s of Object.keys(e))t+=ua(e[s]);return t}function Ju(e){if(e==null||typeof e!="object"||Array.isArray(e)||De(e))return[];const t=[];for(const s of Object.keys(e)){const l=e[s];l!==null&&typeof l=="object"&&!Array.isArray(l)&&!De(l)&&t.push(s)}return t}function Qu(e,t,s){t&&navigator.clipboard.writeText(e).then(()=>{const l=t.textContent;t.textContent="✓",t.classList.add(`${s}-copy-row-ok`),setTimeout(()=>{t.textContent=l,t.classList.remove(`${s}-copy-row-ok`)},1200)}).catch(()=>{})}function Gu(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,a=W({...na}),o=W(!0);return Ot(async()=>{a.value=await bu({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:a,loading:o}}function ca(){const e=W(As());let t=null;function s(a){e.value=a}function l(){const a=nu();return e.value=a,a}return Ot(()=>{e.value=As(),t=Xo(s)}),St(()=>{t?.()}),{theme:e,toggleTheme:l}}function lt(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:a,perPage:o=50,refreshKey:i}=t,r=W(null),u=W(!1),g=W(null),p=W(!1),m=W("1h"),v=Gt({page:1,perPage:o,total:0,totalPages:1}),b=Gt({search:""}),C=Gt({column:"",direction:"desc"}),x=new wu({baseUrl:s,endpoint:l,authToken:a,section:e(),perPage:o,callbacks:{onData:S=>{P=S},onPagination:S=>{S?(v.total=S.total,v.totalPages=S.lastPage??(Math.ceil(S.total/v.perPage)||1),r.value={data:P,meta:S}):r.value=P},onLoading:S=>{u.value=S},onError:S=>{g.value=S},onUnauthorized:()=>{p.value=!0}}});let P=null;const L=x.getApi();async function A(S){try{return await L.fetchChart(S)}catch(H){return H instanceof nn&&(p.value=!0),null}}async function y(){try{return await L.fetchGroupedQueries()}catch{return null}}async function $(S){try{return await L.explainQuery(S)}catch{return null}}async function T(S){try{return await L.retryJob(S),!0}catch{return!1}}async function z(S){try{return await L.deleteCacheKey(S),!0}catch{return!1}}async function te(S){try{return(await L.fetchEmailPreview(S))?.html||null}catch{return null}}function se(S){v.page=S,E()}function Z(S){b.search=S,v.page=1,E()}function fe(S,H){b[S]=H,v.page=1,E()}function Se(S,H){C.column===S&&!H?C.direction=C.direction==="asc"?"desc":"asc":(C.column=S,C.direction=H||"desc"),E()}function be(S){m.value=S,E()}async function Ce(S,H="post",oe){return x.mutate(S,H,oe)}function $e(){k(),x.fetch(!0)}function xe(){x.start()}function V(){x.stop()}function j(){const S={};for(const[H,oe]of Object.entries(b))H!=="search"&&oe!==""&&oe!==void 0&&oe!==null&&(S[H]=String(oe));return S}function k(){const S=e(),H=j();x.configure({page:v.page,perPage:v.perPage,search:b.search||void 0,sort:C.column||void 0,sortDir:C.column?C.direction:void 0,filters:Object.keys(H).length>0?H:void 0,timeRange:S.startsWith("overview")?m.value:void 0})}function E(){k(),x.fetch(!1)}return ut(e,()=>{v.page=1;for(const S of Object.keys(b))S==="search"?b.search="":delete b[S];C.column="",r.value=null,x.setSection(e()),k()}),i&&ut(i,()=>{k(),x.handleRefreshSignal()}),Ot(()=>{k(),x.start()}),St(()=>{x.stop()}),{data:r,loading:u,error:g,isUnauthorized:p,pagination:v,filter:b,sort:C,timeRange:m,goToPage:se,setSearch:Z,setFilter:fe,setSort:Se,setTimeRange:be,refresh:$e,startRefresh:xe,stopRefresh:V,mutate:Ce,fetchChart:A,fetchGroupedQueries:y,explainQuery:$,retryJob:T,deleteCacheKey:z,fetchEmailPreview:te}}const Yu=["title","aria-label"],Xu=["viewBox","innerHTML"],Zu=["viewBox","innerHTML"],ec=Fe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=ca(),a=q(()=>s.value==="dark"),o=q(()=>a.value?"Switch to light theme":"Switch to dark theme"),i=q(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(r,u)=>(c(),d("button",{type:"button",class:M(i.value),title:o.value,"aria-label":o.value,onClick:u[0]||(u[0]=(...g)=>w(l)&&w(l)(...g))},[a.value?(c(),d("svg",{key:0,width:"16",height:"16",viewBox:w(Le).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Le).sun.elements.join("")},null,8,Xu)):(c(),d("svg",{key:1,width:"16",height:"16",viewBox:w(Le).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Le).moon.elements.join("")},null,8,Zu))],10,Yu))}}),tc=["data-theme"],sc={class:"ss-dash-header"},nc={class:"ss-dash-header-center"},lc={class:"ss-dash-header-right"},oc=["href"],ac={class:"ss-dash-body"},ic={class:"ss-dash-nav"},rc=["data-ss-section","onClick","title"],uc={class:"ss-dash-nav-icon"},cc=["viewBox","innerHTML"],dc={class:"ss-dash-nav-label"},fc={key:0,class:"ss-dash-nav-sep"},hc=["onClick","title"],pc={class:"ss-dash-nav-icon"},vc=["viewBox","innerHTML"],gc={class:"ss-dash-nav-label"},yc=["title"],mc=["viewBox","innerHTML"],bc=["viewBox","innerHTML"],_c={class:"ss-dash-main"},xc=["id"],wc={class:"ss-dash-pane-inner"},$c={key:1,class:"ss-dash-empty"},kc=Fe({__name:"DashboardPage",props:{baseUrl:{default:""},dashboardEndpoint:{default:"/__stats/api"},debugEndpoint:{default:void 0},authToken:{default:void 0},backUrl:{default:"/"},channelName:{default:"server-stats/dashboard"}},setup(e){const t=ct(()=>Promise.resolve().then(()=>Mf)),s=ct(()=>Promise.resolve().then(()=>Eh)),l=ct(()=>Promise.resolve().then(()=>up)),a=ct(()=>Promise.resolve().then(()=>gp)),o=ct(()=>Promise.resolve().then(()=>Sp)),i=ct(()=>Promise.resolve().then(()=>Jp)),r=ct(()=>Promise.resolve().then(()=>dv)),u=ct(()=>Promise.resolve().then(()=>Mv)),g=ct(()=>Promise.resolve().then(()=>sg)),p=ct(()=>Promise.resolve().then(()=>Ag)),m=ct(()=>Promise.resolve().then(()=>f1)),v=["overview","requests","queries","events","routes","logs","emails","cache","jobs","config","internals"],b=e,{theme:C}=ca(),{features:x}=Gu({baseUrl:b.baseUrl,debugEndpoint:b.debugEndpoint,authToken:b.authToken}),P=W("overview"),L=W(!1),A=W(!1),y=W(0);ns("ss-refresh-key",y),ns("ss-base-url",b.baseUrl),ns("ss-dashboard-endpoint",b.dashboardEndpoint),ns("ss-debug-endpoint",b.debugEndpoint),ns("ss-auth-token",b.authToken),typeof window<"u"&&(L.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let $=null;function T(){if($&&($(),$=null),!b.channelName)return;$=eu({baseUrl:b.baseUrl,channelName:b.channelName,authToken:b.authToken,onMessage:()=>{y.value+=1},onConnect:()=>{A.value=!0},onDisconnect:()=>{A.value=!1},onError:()=>{A.value=!1}}).unsubscribe}Ot(()=>{T()}),St(()=>{$&&($(),$=null)});const z=q(()=>x.value.customPanes||[]);function te(k){const E=k.replace("#","").split("?")[0];return E&&[...v,...z.value.map(H=>H.id)].includes(E)?E:"overview"}function se(){const k=te(window.location.hash);k!==P.value&&(P.value=k)}Ot(()=>{if(typeof window>"u")return;const k=te(window.location.hash);(k!=="overview"||window.location.hash)&&(P.value=k),window.addEventListener("hashchange",se)}),St(()=>{window.removeEventListener("hashchange",se)}),ut(P,k=>{typeof window<"u"&&(window.location.hash=k)});function Z(){L.value=!L.value,localStorage.setItem("ss-dash-sidebar",L.value?"collapsed":"expanded")}function fe(k){k!==P.value&&(P.value=k)}const Se=q(()=>[{id:"overview",label:"Overview",visible:!0},{id:"requests",label:"Requests",visible:!0},{id:"queries",label:"Queries",visible:!0},{id:"events",label:"Events",visible:!0},{id:"routes",label:"Routes",visible:!0},{id:"logs",label:"Logs",visible:!0},{id:"emails",label:"Emails",visible:!0},{id:"cache",label:"Cache",visible:x.value.cache},{id:"jobs",label:"Jobs",visible:x.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),be=q(()=>Se.value.filter(k=>k.visible)),{data:Ce}=lt(()=>"overview",{baseUrl:b.baseUrl,dashboardEndpoint:b.dashboardEndpoint,authToken:b.authToken,refreshKey:y}),$e=q(()=>Ce.value),xe=q(()=>{const k={};if(!$e.value)return k;if($e.value.totalRequests>0&&(k.requests={count:$e.value.totalRequests}),$e.value.queryStats?.total>0&&(k.queries={count:$e.value.queryStats.total}),$e.value.logLevelBreakdown){const E=$e.value.logLevelBreakdown,S=E.error+E.warn+E.info+E.debug;S>0&&(k.logs={count:S})}return k}),V={overview:t,requests:s,queries:l,events:a,routes:o,logs:i,emails:r,cache:u,jobs:g,config:p,internals:m},j=q(()=>V[P.value]||null);return(k,E)=>(c(),d("div",{class:"ss-dash","data-theme":w(C),id:"ss-dash"},[n("div",sc,[E[0]||(E[0]=n("div",{class:"ss-dash-header-left"},[n("span",{class:"ss-dash-logo"},"Server Stats"),n("span",{class:"ss-dash-logo-sub"},"Dashboard")],-1)),n("div",nc,[n("span",{class:M(["ss-dash-live-dot",{"ss-dash-connected":A.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:M(["ss-dash-live-label",{"ss-dash-connected":A.value}]),id:"ss-dash-live-label"},h(A.value?"Live":"Polling"),3)]),n("div",lc,[me(ec,{"class-prefix":"ss-dash"}),e.backUrl?(c(),d("a",{key:0,href:e.backUrl,class:"ss-dash-back-link",title:"Back to app"}," ← App ",8,oc)):X("",!0)])]),n("div",ac,[n("div",{class:M(["ss-dash-sidebar",{"ss-dash-collapsed":L.value}]),id:"ss-dash-sidebar"},[n("nav",ic,[(c(!0),d(K,null,ye(be.value,S=>(c(),d("button",{key:S.id,type:"button",class:M(["ss-dash-nav-item",{"ss-dash-active":P.value===S.id}]),"data-ss-section":S.id,onClick:H=>fe(S.id),title:L.value?S.label:void 0},[n("span",uc,[(c(),d("svg",{width:"20",height:"20",viewBox:(w(Le)[S.id]||w(Le).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(w(Le)[S.id]||w(Le).config).elements.join("")},null,8,cc))]),n("span",dc,h(S.label),1),xe.value[S.id]&&xe.value[S.id].count>0?(c(),d("span",{key:0,class:M(["ss-dash-nav-badge",xe.value[S.id].variant||""])},h(xe.value[S.id].count),3)):X("",!0)],10,rc))),128)),z.value.length>0?(c(),d("div",fc)):X("",!0),(c(!0),d(K,null,ye(z.value,S=>(c(),d("button",{key:S.id,type:"button",class:M(["ss-dash-nav-item",{"ss-dash-active":P.value===S.id}]),onClick:H=>fe(S.id),title:L.value?S.label:void 0},[n("span",pc,[(c(),d("svg",{width:"20",height:"20",viewBox:w(Le)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Le)["custom-pane"].elements.join("")},null,8,vc))]),n("span",gc,h(S.label),1)],10,hc))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:Z,title:L.value?"Expand sidebar":"Collapse sidebar"},[L.value?(c(),d("svg",{key:0,width:"16",height:"16",viewBox:w(Le)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(Le)["chevron-right"].elements.join("")},null,8,mc)):(c(),d("svg",{key:1,width:"16",height:"16",viewBox:w(Le)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(Le)["chevron-left"].elements.join("")},null,8,bc))],8,yc)],2),n("div",_c,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${P.value}`},[n("div",wc,[(c(),Xe(tr,null,{fallback:ss(()=>[...E[1]||(E[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:ss(()=>[j.value?(c(),Xe(Ti(j.value),{key:0})):(c(),d("div",$c,"Unknown section"))]),_:1}))])],8,xc)])])],8,tc))}});function Sc(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function Cc(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(As()),Xo(e)}const fs=Sc("ss-dash-config");Cc();const da=document.getElementById("ss-dash");da&&Qr(kc,{baseUrl:fs.baseUrl,dashboardEndpoint:fs.dashboardEndpoint,debugEndpoint:fs.debugEndpoint,authToken:fs.authToken,backUrl:fs.backUrl,channelName:fs.channelName}).mount(da);const Tc=["width","height","viewBox"],Ec=["id"],Pc=["stop-color"],Rc=["stop-color"],Ac=["d","fill"],Mc=["d","stroke"],Lc=["x","y"],un=Fe({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=q(()=>uu(t.data,{width:t.width,height:t.height,color:t.color})),l=q(()=>s.value!==null),a=q(()=>`sg-${t.color.replace("#","")}`);return(o,i)=>(c(),d("div",{class:"ss-dash-sparkline",style:Ke({"--ss-accent":e.color})},[(c(),d("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[l.value&&s.value?(c(),d(K,{key:0},[n("defs",null,[n("linearGradient",{id:a.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,Pc),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,Rc)],8,Ec)]),n("path",{d:s.value.areaPath,fill:`url(#${a.value})`},null,8,Ac),n("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,Mc)],64)):(c(),d("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,Lc))],8,Tc))],4))}}),Oc={class:"ss-dash-btn-group"},Fc=["onClick"],Dc=Fe({__name:"TimeRangeSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,l=[{value:"5m",label:"5m"},{value:"15m",label:"15m"},{value:"30m",label:"30m"},{value:"1h",label:"1h"},{value:"6h",label:"6h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"}];return(a,o)=>(c(),d("div",Oc,[(c(),d(K,null,ye(l,i=>n("button",{key:i.value,type:"button",class:M(`ss-dash-btn ${e.modelValue===i.value?"ss-dash-active":""}`),onClick:r=>s("update:modelValue",i.value)},h(i.label),11,Fc)),64))]))}}),Ic={class:"ss-dash-overview"},Bc={key:0,class:"ss-dash-empty"},Nc={class:"ss-dash-cards"},jc={class:"ss-dash-card"},Hc={class:"ss-dash-sparkline"},qc={class:"ss-dash-card"},Uc={class:"ss-dash-sparkline"},Kc={class:"ss-dash-card"},Vc={class:"ss-dash-sparkline"},zc={class:"ss-dash-card"},Wc={class:"ss-dash-sparkline"},Jc={class:"ss-dash-chart-container"},Qc={class:"ss-dash-chart-header"},Gc={class:"ss-dash-chart",id:"ss-dash-chart-area"},Yc={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},Xc=["viewBox"],Zc=["id"],ed=["id"],td=["x1","y1","x2","y2"],sd=["x","y"],nd=["d","fill"],ld=["d"],od=["d","fill"],ad=["d"],id=["x","y","width","height","data-idx","onMouseenter"],rd=["cx","cy","r","data-idx","opacity"],ud=["cx","cy","r","data-idx","opacity"],cd=["x","y"],dd={key:0,style:{color:"var(--ss-red-fg)"}},fd={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},hd={key:0,class:"ss-dash-chart-legend-item"},pd={class:"ss-dash-secondary-cards"},vd={class:"ss-dash-secondary-card"},gd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},yd={key:1,class:"ss-dash-secondary-list"},md=["href"],bd=["title"],_d={class:"ss-dash-secondary-card"},xd={class:"ss-dash-secondary-list"},wd={class:"ss-dash-secondary-list-value"},$d={class:"ss-dash-secondary-list-value"},kd={class:"ss-dash-secondary-list-value"},Sd={class:"ss-dash-secondary-card"},Cd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Td={key:1,class:"ss-dash-secondary-list"},Ed=["href"],Pd=["title"],Rd=["title"],Ad={class:"ss-dash-secondary-card"},Md={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Ld={key:1,class:"ss-dash-secondary-list"},Od=["href"],Fd={class:"ss-dash-secondary-list-value"},Dd={class:"ss-dash-secondary-card"},Id={class:"ss-dash-secondary-list"},Bd={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},Nd={class:"ss-dash-secondary-list-value"},jd={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},Hd={class:"ss-dash-secondary-list-value"},qd={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},Ud={class:"ss-dash-secondary-card"},Kd={class:"ss-dash-secondary-list"},Vd={href:"#logs?level=error",class:"ss-dash-widget-row-link"},zd={class:"ss-dash-secondary-list-value"},Wd={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},Jd={class:"ss-dash-secondary-list-value"},Qd={href:"#logs?level=info",class:"ss-dash-widget-row-link"},Gd={class:"ss-dash-secondary-list-value"},Yd={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},Xd={class:"ss-dash-secondary-list-value"},Zd={key:0,class:"ss-dash-secondary-card"},ef={class:"ss-dash-secondary-list"},tf={href:"#cache",class:"ss-dash-widget-row-link"},sf={class:"ss-dash-secondary-list-value"},nf={href:"#cache",class:"ss-dash-widget-row-link"},lf={class:"ss-dash-secondary-list-value"},of={href:"#cache",class:"ss-dash-widget-row-link"},af={class:"ss-dash-secondary-list-value"},rf={key:1,class:"ss-dash-secondary-card"},uf={class:"ss-dash-secondary-list"},cf={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},df={class:"ss-dash-secondary-list-value"},ff={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},hf={class:"ss-dash-secondary-list-value"},pf={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},vf={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},gf={class:"ss-dash-secondary-list-value"},yf={class:"ss-dash-secondary-card"},mf={class:"ss-dash-secondary-list"},bf={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},_f={class:"ss-dash-secondary-list-value"},xf={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},wf={class:"ss-dash-secondary-list-value"},$f={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},kf={class:"ss-dash-secondary-list-value"},Sf={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},Cf={class:"ss-dash-secondary-list-value"},Tf={class:"ss-dash-secondary-card"},Ef={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Pf={key:1,class:"ss-dash-secondary-list"},Rf=["href"],Af=["title"],il=220,fa=120,Mf=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,a]of t)s[l]=a;return s})(Fe({__name:"OverviewSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),a=de("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),i=W("1h"),{data:r,loading:u}=lt(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t}),{data:g,setTimeRange:p}=lt(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t});ut(i,Y=>{p(Y)});const m=q(()=>r.value),v=q(()=>m.value||{avgResponseTime:0,p95ResponseTime:0,requestsPerMinute:0,errorRate:0,totalRequests:0,slowestEndpoints:[],queryStats:{total:0,avgDuration:0,perRequest:0},recentErrors:[],topEvents:[],emailActivity:{sent:0,queued:0,failed:0},logLevelBreakdown:{error:0,warn:0,info:0,debug:0},cacheStats:null,jobQueueStatus:null,statusDistribution:{"2xx":0,"3xx":0,"4xx":0,"5xx":0},slowestQueries:[]}),b=q(()=>v.value),C=q(()=>v.value.avgResponseTime||Number(b.value.avg_response_time)||0),x=q(()=>v.value.p95ResponseTime||Number(b.value.p95_response_time)||0),P=q(()=>v.value.requestsPerMinute||Number(b.value.requests_per_minute)||0),L=q(()=>v.value.errorRate||Number(b.value.error_rate)||0),A=q(()=>v.value.totalRequests||Number(b.value.total_requests)||0),y=q(()=>A.value>0),$=q(()=>g.value?.buckets||[]),T=q(()=>v.value.sparklines?.avgResponseTime??$.value.map(Y=>Y.avgDuration??0)),z=q(()=>v.value.sparklines?.p95ResponseTime??$.value.map(Y=>Y.p95Duration??0)),te=q(()=>v.value.sparklines?.requestsPerMinute??$.value.map(Y=>Y.requestCount??0)),se=q(()=>v.value.sparklines?.errorRate??$.value.map(Y=>Y.errorCount??0)),Z=q(()=>`ss-cg-total-${o}`),fe=q(()=>`ss-cg-error-${o}`);function Se(Y,O){if(Y<=0)return[0];const ne=Y/O,he=Math.pow(10,Math.floor(Math.log10(ne))),ot=ne/he;let et;ot<=1?et=he:ot<=2?et=2*he:ot<=5?et=5*he:et=10*he;const dn=[];for(let ul=et;ul<=Y+et*.5;ul+=et)dn.push(Math.round(ul));return dn.length===0&&dn.push(Math.ceil(Y)),dn}function be(Y){try{return new Date(Y).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function Ce(Y){if(Y.length===0)return"";if(Y.length===1)return`M${Y[0].x},${Y[0].y}`;let O=`M${Y[0].x.toFixed(1)},${Y[0].y.toFixed(1)}`;for(let ne=0;ne<Y.length-1;ne++){const he=Y[ne],ot=Y[ne+1],et=(he.x+ot.x)/2;O+=` C${et.toFixed(1)},${he.y.toFixed(1)} ${et.toFixed(1)},${ot.y.toFixed(1)} ${ot.x.toFixed(1)},${ot.y.toFixed(1)}`}return O}function $e(Y){const O=ol(Y);return O==="very-slow"?"ss-dash-very-slow":O==="slow"?"ss-dash-slow":""}const xe=W(null),V=W(0);let j=null;ut(xe,Y=>{j?.disconnect(),j=null,Y&&(V.value=Y.clientWidth,j=new ResizeObserver(O=>{for(const ne of O)V.value=ne.contentRect.width}),j.observe(Y))}),St(()=>{j?.disconnect()});const k={top:12,right:12,bottom:28,left:38},E=q(()=>V.value||600),S=q(()=>E.value-k.left-k.right),H=q(()=>il-k.top-k.bottom),oe=q(()=>k.top+H.value),le=q(()=>$.value.map(Y=>{const O=Y;return(Y.requestCount??0)+(Number(O.request_count)||0)||Y.total||0})),U=q(()=>$.value.map(Y=>{const O=Y;return(Y.errorCount??0)+(Number(O.error_count)||0)})),ae=q(()=>Math.max(...le.value,1)),J=q(()=>Math.ceil(ae.value*1.1)),ie=q(()=>U.value.some(Y=>Y>0)),Ie=q(()=>Se(J.value,4)),cn=q(()=>Ie.value.length>0?Ie.value[Ie.value.length-1]:J.value);function Et(Y){return k.left+Y/Math.max($.value.length-1,1)*S.value}function ps(Y){return k.top+H.value-Y/(cn.value||1)*H.value}const f=q(()=>$.value.map((Y,O)=>({x:Et(O),y:ps(le.value[O])}))),_=q(()=>$.value.map((Y,O)=>({x:Et(O),y:ps(U.value[O])}))),R=q(()=>Ce(f.value)),N=q(()=>ie.value?Ce(_.value):""),F=q(()=>f.value.length>1?`${R.value} L${f.value[f.value.length-1].x.toFixed(1)},${oe.value} L${f.value[0].x.toFixed(1)},${oe.value} Z`:""),D=q(()=>ie.value&&_.value.length>1?`${N.value} L${_.value[_.value.length-1].x.toFixed(1)},${oe.value} L${_.value[0].x.toFixed(1)},${oe.value} Z`:""),G=q(()=>Math.min(10,$.value.length)),Q=q(()=>Math.max(1,Math.ceil($.value.length/G.value))),I=W({visible:!1,x:0,idx:-1});function B(Y){const O=f.value[Y].x;I.value={visible:!0,x:O,idx:Y}}function ce(){I.value={visible:!1,x:0,idx:-1}}const ee=q(()=>I.value.visible?Math.max(fa/2,Math.min(I.value.x,E.value-fa/2)):0),re=q(()=>S.value/($.value.length||1));function pe(Y){return Y%Q.value===0||Y===$.value.length-1}function we(){return y.value?C.value>500?"ss-dash-red":C.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Re(){return y.value?x.value>500?"ss-dash-red":x.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Te(){return y.value?"ss-dash-accent":"ss-dash-dim"}function Ue(){return y.value?L.value>5?"ss-dash-red":L.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Be(Y){return Y.url||Y.pattern||"-"}function Ze(Y){return Y.name||Y.eventName||Y.event_name||Y.event||""}function Ye(Y){return Y.sqlNormalized||Y.normalizedSql||Y.sql_normalized||Y.sql||"-"}return(Y,O)=>(c(),d("div",Ic,[w(u)&&!m.value?(c(),d("div",Bc,"Loading overview...")):(c(),d(K,{key:1},[n("div",Nc,[n("div",jc,[O[1]||(O[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:M(["ss-dash-card-value",we()])},h(y.value?w(Dt)(C.value):"-"),3),n("div",Hc,[me(un,{data:T.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",qc,[O[2]||(O[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:M(["ss-dash-card-value",Re()])},h(y.value?w(Dt)(x.value):"-"),3),n("div",Uc,[me(un,{data:z.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",Kc,[O[3]||(O[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:M(["ss-dash-card-value",Te()])},h(y.value?P.value.toFixed(1):"-"),3),n("div",Vc,[me(un,{data:te.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",zc,[O[4]||(O[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:M(["ss-dash-card-value",Ue()])},h(y.value?`${L.value.toFixed(1)}%`:"-"),3),n("div",Wc,[me(un,{data:se.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",Jc,[n("div",Qc,[O[5]||(O[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),me(Dc,{"model-value":i.value,"onUpdate:modelValue":O[0]||(O[0]=ne=>i.value=ne)},null,8,["model-value"])]),n("div",Gc,[$.value.length===0?(c(),d("div",Yc," No data for this range ")):(c(),d("div",{key:1,ref_key:"chartContainerRef",ref:xe,style:{position:"relative"}},[(c(),d("svg",{viewBox:`0 0 ${E.value} ${il}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:Z.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...O[6]||(O[6]=[n("stop",{offset:"0%","stop-color":"var(--ss-accent)","stop-opacity":"0.3"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-accent)","stop-opacity":"0.02"},null,-1)])],8,Zc),n("linearGradient",{id:fe.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...O[7]||(O[7]=[n("stop",{offset:"0%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.35"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.02"},null,-1)])],8,ed)]),(c(!0),d(K,null,ye(Ie.value,ne=>(c(),d("g",{key:`ytick-${ne}`},[n("line",{x1:k.left,y1:ps(ne),x2:E.value-k.right,y2:ps(ne),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,td),n("text",{x:k.left-6,y:ps(ne),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},h(ne),9,sd)]))),128)),F.value?(c(),d("path",{key:0,d:F.value,fill:`url(#${Z.value})`},null,8,nd)):X("",!0),R.value?(c(),d("path",{key:1,d:R.value,fill:"none",stroke:"var(--ss-accent)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,ld)):X("",!0),D.value?(c(),d("path",{key:2,d:D.value,fill:`url(#${fe.value})`},null,8,od)):X("",!0),N.value?(c(),d("path",{key:3,d:N.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,ad)):X("",!0),(c(!0),d(K,null,ye($.value,(ne,he)=>(c(),d("g",{key:he},[n("rect",{x:f.value[he].x-re.value/2,y:k.top,width:re.value,height:H.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":he,onMouseenter:ot=>B(he),onMouseleave:ce},null,40,id),le.value[he]>0?(c(),d("circle",{key:0,cx:f.value[he].x,cy:f.value[he].y,r:I.value.visible&&I.value.idx===he?4:2.5,fill:"var(--ss-accent)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot","data-idx":he,opacity:I.value.visible&&I.value.idx!==he?.3:1},null,8,rd)):X("",!0),U.value[he]>0?(c(),d("circle",{key:1,cx:f.value[he].x,cy:_.value[he].y,r:I.value.visible&&I.value.idx===he?3.5:2,fill:"var(--ss-red-fg)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot ss-dash-chart-dot-err","data-idx":he,opacity:I.value.visible&&I.value.idx!==he?.3:1},null,8,ud)):X("",!0)]))),128)),(c(!0),d(K,null,ye($.value,(ne,he)=>(c(),d(K,{key:`xlabel-${he}`},[pe(he)&&be(ne.bucket)?(c(),d("text",{key:0,x:Et(he),y:il-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},h(be(ne.bucket)),9,cd)):X("",!0)],64))),128))],8,Xc)),I.value.visible&&I.value.idx>=0?(c(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:Ke({left:ee.value+"px",top:k.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,h(be($.value[I.value.idx].bucket)),1),n("div",null,"Requests: "+h(le.value[I.value.idx]),1),U.value[I.value.idx]>0?(c(),d("div",dd," Errors: "+h(U.value[I.value.idx]),1)):X("",!0)],4)):X("",!0)],512))]),n("div",fd,[O[9]||(O[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),_e(" Requests ")],-1)),$.value.some(ne=>(ne.errorCount??0)>0)?(c(),d("span",hd,[...O[8]||(O[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),_e(" Errors ",-1)])])):X("",!0)])]),n("div",pd,[n("div",vd,[O[10]||(O[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),v.value.slowestEndpoints.length===0?(c(),d("div",gd," No data yet ")):(c(),d("ul",yd,[(c(!0),d(K,null,ye(v.value.slowestEndpoints.slice(0,5),(ne,he)=>(c(),d("li",{key:he},[n("a",{href:`#requests?url=${encodeURIComponent(Be(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Be(ne)},h(Be(ne)),9,bd),n("span",{class:M(["ss-dash-secondary-list-value","ss-dash-duration",$e(ne.avgDuration)])},h(w(Dt)(ne.avgDuration)),3)],8,md)]))),128))]))]),n("div",_d,[O[14]||(O[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",xd,[n("li",null,[O[11]||(O[11]=n("span",null,"Total Queries",-1)),n("span",wd,h(v.value.queryStats.total),1)]),n("li",null,[O[12]||(O[12]=n("span",null,"Avg Duration",-1)),n("span",$d,h(w(Dt)(v.value.queryStats.avgDuration)),1)]),n("li",null,[O[13]||(O[13]=n("span",null,"Queries / Request",-1)),n("span",kd,h(v.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",Sd,[O[15]||(O[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),v.value.recentErrors.length===0?(c(),d("div",Cd," No recent errors ")):(c(),d("ul",Td,[(c(!0),d(K,null,ye(v.value.recentErrors,(ne,he)=>(c(),d("li",{key:he},[n("a",{href:`#logs?id=${ne.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:ne.message},h(ne.message),9,Pd),ne.timestamp?(c(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:w(It)(ne.timestamp)},h(w(bt)(ne.timestamp)),9,Rd)):X("",!0)],8,Ed)]))),128))]))]),n("div",Ad,[O[16]||(O[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),v.value.topEvents.length===0?(c(),d("div",Md," No events yet ")):(c(),d("ul",Ld,[(c(!0),d(K,null,ye(v.value.topEvents.slice(0,5),(ne,he)=>(c(),d("li",{key:he},[n("a",{href:`#events?event_name=${encodeURIComponent(Ze(ne))}`,class:"ss-dash-widget-row-link"},[n("span",null,h(Ze(ne)),1),n("span",Fd,h(ne.count),1)],8,Od)]))),128))]))]),n("div",Dd,[O[20]||(O[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",Id,[n("li",null,[n("a",Bd,[O[17]||(O[17]=n("span",null,"Sent",-1)),n("span",Nd,h(v.value.emailActivity.sent),1)])]),n("li",null,[n("a",jd,[O[18]||(O[18]=n("span",null,"Queued",-1)),n("span",Hd,h(v.value.emailActivity.queued),1)])]),n("li",null,[n("a",qd,[O[19]||(O[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(v.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.emailActivity.failed),5)])])])]),n("div",Ud,[O[25]||(O[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",Kd,[n("li",null,[n("a",Vd,[O[21]||(O[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",zd,h(v.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",Wd,[O[22]||(O[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",Jd,h(v.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",Qd,[O[23]||(O[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",Gd,h(v.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",Yd,[O[24]||(O[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",Xd,h(v.value.logLevelBreakdown.debug),1)])])])]),v.value.cacheStats&&v.value.cacheStats.available?(c(),d("div",Zd,[O[29]||(O[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",ef,[n("li",null,[n("a",tf,[O[26]||(O[26]=n("span",null,"Keys",-1)),n("span",sf,h(v.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",nf,[O[27]||(O[27]=n("span",null,"Hit Rate",-1)),n("span",lf,h(v.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",of,[O[28]||(O[28]=n("span",null,"Memory",-1)),n("span",af,h(v.value.cacheStats.memoryUsedHuman),1)])])])])):X("",!0),v.value.jobQueueStatus&&v.value.jobQueueStatus.available?(c(),d("div",rf,[O[34]||(O[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",uf,[n("li",null,[n("a",cf,[O[30]||(O[30]=n("span",null,"Active",-1)),n("span",df,h(v.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",ff,[O[31]||(O[31]=n("span",null,"Waiting",-1)),n("span",hf,h(v.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",pf,[O[32]||(O[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(v.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",vf,[O[33]||(O[33]=n("span",null,"Completed",-1)),n("span",gf,h(v.value.jobQueueStatus.completed),1)])])])])):X("",!0),n("div",yf,[O[39]||(O[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",mf,[n("li",null,[n("a",bf,[O[35]||(O[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",_f,h(v.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",xf,[O[36]||(O[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",wf,h(v.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",$f,[O[37]||(O[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",kf,h(v.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",Sf,[O[38]||(O[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",Cf,h(v.value.statusDistribution["5xx"]),1)])])])]),n("div",Tf,[O[40]||(O[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),v.value.slowestQueries.length===0?(c(),d("div",Ef," No query data yet ")):(c(),d("ul",Pf,[(c(!0),d(K,null,ye(v.value.slowestQueries.slice(0,5),(ne,he)=>(c(),d("li",{key:he},[n("a",{href:`#queries?pattern=${encodeURIComponent(Ye(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Ye(ne)},h(Ye(ne)),9,Af),n("span",{class:M(["ss-dash-secondary-list-value","ss-dash-duration",$e(ne.avgDuration)])},h(w(Dt)(ne.avgDuration)),3)],8,Rf)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-1e96b18b"]])},Symbol.toStringTag,{value:"Module"}));function rl(e="",t){let s=null;return function(){return s||(s=new nl({baseUrl:e,authToken:t})),s}}function zt(e){const t=W(null);let s=null;function l(){s&&s(),s=null,On(()=>{t.value&&(s=ku(t.value))})}return e&&ut(e,l),Ot(l),Zl(()=>{s&&s(),s=null}),{tableRef:t}}const Lf={class:"ss-dash-filter-bar"},Of={key:0,class:"ss-dash-summary"},Ff={class:"ss-dash-search-wrapper"},Df=["viewBox","innerHTML"],If=["value","placeholder"],Bf={key:1,class:"ss-dash-filter-controls"},jt=Fe({__name:"FilterBar",props:{modelValue:{},placeholder:{},summary:{}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const s=t;function l(o){s("update:modelValue",o.target.value)}function a(){s("update:modelValue",""),s("clear")}return(o,i)=>(c(),d("div",Lf,[e.summary?(c(),d("span",Of,h(e.summary),1)):X("",!0),n("div",Ff,[(c(),d("svg",{class:"ss-dash-search-icon",viewBox:w(Le).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Le).search.elements.join("")},null,8,Df)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,If),e.modelValue?(c(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:a}," × ")):X("",!0)]),o.$slots.default?(c(),d("div",Bf,[Pi(o.$slots,"default")])):X("",!0)]))}}),Nf={key:0,class:"ss-dash-pagination"},jf={class:"ss-dash-page-info"},Hf={class:"ss-dash-pagination-controls"},qf=["disabled"],Uf={key:0,class:"ss-dash-page-ellipsis"},Kf=["onClick"],Vf=["disabled"],hs=Fe({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,a=q(()=>gu(s.page,s.lastPage));return(o,i)=>e.lastPage>1?(c(),d("div",Nf,[n("span",jf," Page "+h(e.page)+" of "+h(e.lastPage)+" ("+h(e.total)+" total) ",1),n("div",Hf,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:i[0]||(i[0]=r=>l("pageChange",e.page-1))}," « Prev ",8,qf),(c(!0),d(K,null,ye(a.value,(r,u)=>(c(),d(K,{key:r==="..."?`ellipsis-${u}`:r},[r==="..."?(c(),d("span",Uf,"...")):(c(),d("button",{key:1,type:"button",class:M(`ss-dash-page-btn ${r===e.page?"ss-dash-active":""}`),onClick:g=>l("pageChange",r)},h(r),11,Kf))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:i[1]||(i[1]=r=>l("pageChange",e.page+1))}," Next » ",8,Vf)])])):X("",!0)}}),zf={key:0,class:"ss-dash-empty"},Wf={class:"ss-dash-tl-legend"},Jf=["title"],Qf={class:"ss-dash-tl-track"},Gf=["title"],Yf={class:"ss-dash-tl-dur"},Xf={key:0,class:"ss-dash-tl-warnings"},Zf={class:"ss-dash-tl-warnings-title"},ha=Fe({__name:"WaterfallChart",props:{spans:{},totalDuration:{},className:{},warnings:{}},setup(e){const t=e,s={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"var(--ss-dim)"},l={request:"Request",middleware:"Middleware",db:"DB",mail:"Mail",event:"Event",view:"View",custom:"Custom"},a=q(()=>t.spans||[]),o=q(()=>[...a.value].sort((b,C)=>b.startOffset-C.startOffset)),i=q(()=>{const b={};for(const C of o.value)b[C.id]=C.parentId?(b[C.parentId]||0)+1:0;return b});function r(b){const C=t.totalDuration||1;return`${b.startOffset/C*100}%`}function u(b){const C=t.totalDuration||1;return`${Math.max(b.duration/C*100,.5)}%`}function g(b){return b.length>50?b.slice(0,50)+"...":b}function p(b){return b==="db"?"DB":b}function m(b){return b==="db"?"purple":b==="mail"?"green":b==="event"?"amber":b==="view"?"blue":"muted"}function v(b){const C=b.metadata?Object.entries(b.metadata).filter(([,x])=>x!=null).map(([x,P])=>`${x}=${P}`).join(", "):"";return C?`${b.label} (${b.duration.toFixed(2)}ms)
|
|
5
|
+
${C}`:`${b.label} (${b.duration.toFixed(2)}ms)`}return(b,C)=>a.value.length===0?(c(),d("div",zf,"No spans recorded")):(c(),d("div",{key:1,class:M(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",Wf,[(c(),d(K,null,ye(l,(x,P)=>n("div",{key:P,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:Ke({background:s[P]||s.custom})},null,4),n("span",null,h(x),1)])),64))]),(c(!0),d(K,null,ye(o.value,x=>(c(),d("div",{key:x.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:v(x),style:Ke({paddingLeft:8+(i.value[x.id]||0)*16+"px"})},[n("span",{class:M(`ss-dash-badge ss-dash-badge-${m(x.category)}`),style:{"font-size":"9px","margin-right":"4px"}},h(p(x.category)),3),_e(" "+h(g(x.label)),1)],12,Jf),n("div",Qf,[n("div",{class:M(`ss-dash-tl-bar ss-dash-tl-bar-${x.category||"custom"}`),style:Ke({left:r(x),width:u(x)}),title:v(x)},null,14,Gf)]),n("span",Yf,h(x.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(c(),d("div",Xf,[n("div",Zf,"Warnings ("+h(e.warnings.length)+")",1),(c(!0),d(K,null,ye(e.warnings,(x,P)=>(c(),d("div",{key:P,class:"ss-dash-tl-warning"},h(x),1))),128))])):X("",!0)],2))}}),Ms=Fe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=W(t.defaultExpanded),l=q(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return on(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return on(t.value,t.maxLen||100)}),a=q(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function i(){navigator.clipboard?.writeText(a.value)}return(r,u)=>e.value===null||e.value===void 0?(c(),d("span",{key:0,class:M(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(c(),d("div",{key:1,class:M(`${t.classPrefix}-data-cell`)},[s.value?X("",!0):(c(),d("span",{key:0,class:M(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:u[0]||(u[0]=g=>g.key==="Enter"&&o())},h(l.value),35)),s.value?(c(),d("div",{key:1,class:M(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:M(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:nt(i,["stop"])}," Copy ",2),n("pre",null,h(a.value),1)],2)):X("",!0)],2))}}),eh={key:0},th={style:{overflow:"auto"}},sh=["onClick"],nh=["title"],lh=["title"],oh={key:3,style:{width:"14px"}},ah=Fe({__name:"RelatedLogs",props:{logs:{},classPrefix:{default:"ss-dash"}},setup(e){const t=W(null);function s(l,a){a&&(t.value=t.value===l?null:l)}return(l,a)=>e.logs.length>0?(c(),d("div",eh,[n("div",{class:M(`${e.classPrefix}-related-logs-title`)},[a[0]||(a[0]=_e(" Related Logs ",-1)),n("span",{class:M(`${e.classPrefix}-related-logs-count`)},"("+h(e.logs.length)+")",3)],2),n("div",th,[(c(!0),d(K,null,ye(e.logs,(o,i)=>(c(),d(K,{key:o.id||i},[n("div",{class:M([`${e.classPrefix}-log-entry`,w(_t)(o)?`${e.classPrefix}-log-entry-expandable`:""]),onClick:r=>s(i,!!w(_t)(o))},[n("span",{class:M([`${e.classPrefix}-log-level`,w(ia)(w(an)(o),`${e.classPrefix}-log-level`)])},h(w(an)(o).toUpperCase()),3),n("span",{class:M(`${e.classPrefix}-log-time`),title:w(Bt)(o)?w(It)(w(Bt)(o)):""},h(w(Bt)(o)?w(bt)(w(Bt)(o)):"-"),11,nh),w(Nt)(o)?(c(),d("span",{key:0,class:M(`${e.classPrefix}-log-reqid`),title:w(Nt)(o)},h(w(Nt)(o).slice(0,8)),11,lh)):(c(),d("span",{key:1,class:M(`${e.classPrefix}-log-reqid-empty`)},"--",2)),w(_t)(o)?(c(),d("span",{key:2,class:M([`${e.classPrefix}-log-expand-icon`,t.value===i?`${e.classPrefix}-log-expand-icon-open`:""])},"▶",2)):(c(),d("span",oh)),n("span",{class:M(`${e.classPrefix}-log-msg`)},h(w(aa)(o)),3)],10,sh),t.value===i&&w(_t)(o)?(c(),d("div",{key:0,class:M(`${e.classPrefix}-log-detail`)},[me(Ms,{value:w(_t)(o),"class-prefix":e.classPrefix,"default-expanded":!0},null,8,["value","class-prefix"])],2)):X("",!0)],64))),128))])])):X("",!0)}});function ih(e){const{container:t,handle:s,topPane:l,bottomPane:a,storageKey:o,minHeight:i=60}=e;if(o){const u=localStorage.getItem(o);if(u){const g=parseFloat(u);g>0&&g<1&&(l.style.flex=`${g}`,a.style.flex=`${1-g}`)}}function r(u){u.preventDefault(),s.setPointerCapture(u.pointerId);const p=t.getBoundingClientRect().height,m=u.clientY,v=l.getBoundingClientRect().height;function b(x){const P=x.clientY-m;let L=v+P;const A=p-i-s.offsetHeight;L=Math.max(i,Math.min(L,A));const y=L/(p-s.offsetHeight);l.style.flex=`${y}`,a.style.flex=`${1-y}`}function C(){if(s.removeEventListener("pointermove",b),s.removeEventListener("pointerup",C),o){const x=t.getBoundingClientRect().height-s.offsetHeight;if(x>0){const P=l.getBoundingClientRect().height/x;localStorage.setItem(o,String(P))}}}s.addEventListener("pointermove",b),s.addEventListener("pointerup",C)}return s.addEventListener("pointerdown",r),()=>{s.removeEventListener("pointerdown",r)}}const rh={class:"ss-dash-tl-detail-header"},uh={style:{color:"var(--ss-text)"}},ch={class:"ss-dash-tl-meta"},dh={class:"ss-dash-tl-detail-header"},fh={key:0,class:"ss-dash-empty"},hh={key:1,class:"ss-dash-empty"},ph={class:"ss-dash-table-wrap"},vh={key:0,class:"ss-dash-sort-arrow"},gh={key:0,class:"ss-dash-sort-arrow"},yh={key:0,class:"ss-dash-sort-arrow"},mh={key:0,class:"ss-dash-sort-arrow"},bh={key:0,class:"ss-dash-sort-arrow"},_h=["onClick"],xh={style:{color:"var(--ss-dim)"}},wh=["title"],$h={style:{color:"var(--ss-muted)","text-align":"center"}},kh={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},Sh={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Ch=["title"],Th={key:1,class:"ss-dash-empty"},Eh=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"RequestsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,error:r,pagination:u,sort:g,goToPage:p,setSearch:m,setSort:v}=lt(()=>"requests",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),b=W(""),C=W(null),x=W(!1),P=W(null),L=q(()=>{if(!o.value)return[];const xe=o.value;return xe.data||xe.requests||o.value||[]}),A=rl(a,l);async function y(xe){const V=xe.id;x.value=!0;try{const j=s||"/__stats/api",E=await A().fetch(`${j}/requests/${V}`),S=E.trace,H=S?{...E,...S,logs:E.logs}:E;P.value=Mu(H),C.value=xe}catch{}finally{x.value=!1}}function $(){C.value=null,P.value=null}function T(xe){b.value=xe,m(xe)}function z(xe){v(xe)}function te(xe){const V=ol(xe);return V==="very-slow"?"ss-dash-very-slow":V==="slow"?"ss-dash-slow":""}const{tableRef:se}=zt(()=>L.value),Z=W(null),fe=W(null),Se=W(null),be=W(null);let Ce=null;const $e=q(()=>P.value?P.value.logs||[]:[]);return ut([()=>C.value,()=>P.value],async()=>{Ce?.(),Ce=null,P.value&&$e.value.length>0&&(await On(),Z.value&&fe.value&&Se.value&&be.value&&(Ce=ih({container:Z.value,handle:fe.value,topPane:Se.value,bottomPane:be.value,storageKey:"ss-requests-split"})))}),St(()=>{Ce?.()}),(xe,V)=>(c(),d("div",null,[P.value&&C.value?(c(),d(K,{key:0},[n("div",rh,[n("button",{type:"button",class:"ss-dash-btn",onClick:$}," ← Back to Requests "),n("span",{class:M(`ss-dash-method ss-dash-method-${(P.value.method||"").toLowerCase()}`)},h(P.value.method),3),n("span",uh,h(P.value.url),1),n("span",{class:M(`ss-dash-status ss-dash-status-${Math.floor((P.value.statusCode||200)/100)}xx`)},h(P.value.statusCode),3),n("span",ch,h(P.value.totalDuration.toFixed(1))+"ms · "+h(P.value.spanCount)+" spans ",1)]),$e.value.length>0?(c(),d("div",{key:0,ref_key:"splitContainerRef",ref:Z,class:"ss-dash-split-container"},[n("div",{ref_key:"splitTopRef",ref:Se,class:"ss-dash-split-top"},[me(ha,{spans:P.value.spans,"total-duration":P.value.totalDuration,warnings:P.value.warnings},null,8,["spans","total-duration","warnings"])],512),n("div",{ref_key:"splitHandleRef",ref:fe,class:"ss-dash-split-handle"},null,512),n("div",{ref_key:"splitBottomRef",ref:be,class:"ss-dash-split-bottom"},[me(ah,{logs:$e.value,"class-prefix":"ss-dash"},null,8,["logs"])],512)],512)):(c(),Xe(ha,{key:1,spans:P.value.spans,"total-duration":P.value.totalDuration,warnings:P.value.warnings},null,8,["spans","total-duration","warnings"]))],64)):x.value?(c(),d(K,{key:1},[n("div",dh,[n("button",{type:"button",class:"ss-dash-btn",onClick:V[0]||(V[0]=j=>x.value=!1)}," ← Back to Requests ")]),V[6]||(V[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(c(),d(K,{key:2},[me(jt,{"model-value":b.value,placeholder:"Filter requests...",summary:`${w(u).total??0} requests`,"onUpdate:modelValue":T},null,8,["model-value","summary"]),w(r)?(c(),d("div",fh,"Failed to load requests")):X("",!0),w(i)&&!w(o)?(c(),d("div",hh,"Loading requests...")):(c(),d(K,{key:2},[n("div",ph,[L.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:se,class:"ss-dash-table"},[V[15]||(V[15]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"60px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"50px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"80px"}})],-1)),n("thead",null,[n("tr",null,[V[12]||(V[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:V[1]||(V[1]=j=>z("method"))},[V[7]||(V[7]=_e(" Method ",-1)),w(g).column==="method"?(c(),d("span",vh,h(w(g).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[2]||(V[2]=j=>z("url"))},[V[8]||(V[8]=_e(" URL ",-1)),w(g).column==="url"?(c(),d("span",gh,h(w(g).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[3]||(V[3]=j=>z("statusCode"))},[V[9]||(V[9]=_e(" Status ",-1)),w(g).column==="statusCode"?(c(),d("span",yh,h(w(g).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[4]||(V[4]=j=>z("duration"))},[V[10]||(V[10]=_e(" Duration ",-1)),w(g).column==="duration"?(c(),d("span",mh,h(w(g).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),V[13]||(V[13]=n("th",null,"Spans",-1)),V[14]||(V[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:V[5]||(V[5]=j=>z("createdAt"))},[V[11]||(V[11]=_e(" Time ",-1)),w(g).column==="createdAt"?(c(),d("span",bh,h(w(g).direction==="asc"?" ▲":" ▼"),1)):X("",!0)])])]),n("tbody",null,[(c(!0),d(K,null,ye(L.value,j=>(c(),d("tr",{key:j.id,class:"ss-dash-clickable",onClick:k=>y(j)},[n("td",null,[n("span",xh,h(j.id),1)]),n("td",null,[n("span",{class:M(`ss-dash-method ss-dash-method-${(j.method||"").toLowerCase()}`)},h(j.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:j.url},h(j.url),9,wh)]),n("td",null,[n("span",{class:M(`ss-dash-status ss-dash-status-${Math.floor((j.status_code||j.statusCode||200)/100)}xx`)},h(j.status_code||j.statusCode),3)]),n("td",null,[n("span",{class:M(`ss-dash-duration ${te(j.total_duration||j.totalDuration||j.duration||0)}`)},h((j.total_duration||j.totalDuration||j.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",$h,h(j.span_count||j.spanCount||0),1)]),n("td",null,[(j.warning_count||j.warningCount||0)>0?(c(),d("span",kh,h(j.warning_count||j.warningCount||0),1)):(c(),d("span",Sh,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(j.createdAt||j.created_at||j.timestamp||"")},h(w(bt)(j.createdAt||j.created_at||j.timestamp||"")),9,Ch)])],8,_h))),128))])],512)):(c(),d("div",Th,"No requests recorded yet"))]),w(u).totalPages>1?(c(),Xe(hs,{key:0,page:w(u).page,"last-page":w(u).totalPages,total:w(u).total,onPageChange:w(p)},null,8,["page","last-page","total","onPageChange"])):X("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),Ph={class:"ss-dash-btn-group"},Rh={key:0,class:"ss-dash-empty"},Ah={key:1,class:"ss-dash-table-wrap"},Mh={key:0,class:"ss-dash-sort-arrow"},Lh={key:0,class:"ss-dash-sort-arrow"},Oh={key:0,class:"ss-dash-sort-arrow"},Fh=["onClick","onKeydown"],Dh={key:0,class:"ss-dash-dup"},Ih={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Bh={class:"ss-dash-duration"},Nh={class:"ss-dash-duration"},jh={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Hh={key:1,class:"ss-dash-empty"},qh={class:"ss-dash-table-wrap"},Uh={key:0,class:"ss-dash-sort-arrow"},Kh={key:0,class:"ss-dash-sort-arrow"},Vh={style:{color:"var(--ss-dim)"}},zh=["onClick","onKeydown"],Wh={key:0,class:"ss-dash-dup"},Jh=["title"],Qh={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Gh=["title"],Yh=["disabled","onClick"],Xh={key:0,class:"ss-dash-explain-row"},Zh={colspan:"8",class:"ss-dash-explain"},ep={style:{display:"flex","justify-content":"space-between","align-items":"start"}},tp={style:{flex:"1"}},sp={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},np={key:0},lp={key:1,class:"ss-dash-explain-result"},op={key:2,class:"ss-dash-explain-result"},ap={key:3,class:"ss-dash-explain-result"},ip={key:1,class:"ss-dash-empty"};function pa(e,t){if(!e)return null;const s=t*20,l=e["Node Type"]||"Unknown",a=e["Relation Name"]||"",o=e.Alias&&e.Alias!==e["Relation Name"]?` (${e.Alias})`:"",i=e["Index Name"]||"",r=[];if(e["Startup Cost"]!==null&&e["Startup Cost"]!==void 0&&r.push(`cost=${e["Startup Cost"]}..${e["Total Cost"]}`),e["Plan Rows"]!==null&&e["Plan Rows"]!==void 0&&r.push(`rows=${e["Plan Rows"]}`),e["Plan Width"]!==null&&e["Plan Width"]!==void 0&&r.push(`width=${e["Plan Width"]}`),e.Filter&&r.push(`filter: ${e.Filter}`),e["Index Cond"]&&r.push(`cond: ${e["Index Cond"]}`),e["Hash Cond"]&&r.push(`hash: ${e["Hash Cond"]}`),e["Join Type"]&&r.push(`join: ${e["Join Type"]}`),e["Sort Key"]){const g=Array.isArray(e["Sort Key"])?e["Sort Key"].join(", "):e["Sort Key"];r.push(`sort: ${g}`)}const u=e.Plans||[];return ds("div",{class:"ss-dash-explain-node",style:{marginLeft:`${s}px`}},[ds("div",{class:"ss-dash-explain-node-header"},[ds("span",{class:"ss-dash-explain-node-type"},l),a?[" on ",ds("strong",null,a)]:null,o||null,i?[" using ",ds("em",null,i)]:null]),r.length>0?ds("div",{class:"ss-dash-explain-metrics"},r.join(" · ")):null,...u.map((g,p)=>pa(g,t+1))])}const va=Fe({name:"ExplainPlanNode",props:{node:{type:Object,required:!0},depth:{type:Number,default:0}},setup(e){return()=>pa(e.node,e.depth)}}),rp=Fe({...{components:{ExplainPlanNode:va}},__name:"QueriesSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),o=W("list"),i=W(null),r=W(null),u=W(null),g=q(()=>o.value==="grouped"?"queries/grouped":"queries"),{data:p,loading:m,pagination:v,sort:b,goToPage:C,setSearch:x,setSort:P,explainQuery:L}=lt(()=>g.value,{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),A=W(""),y=q(()=>p.value?o.value==="grouped"?p.value.groups||[]:p.value.data||p.value||[]:[]),$=q(()=>o.value!=="grouped"?y.value:y.value.map(k=>{const E={...k};return(E.sqlNormalized===null||E.sqlNormalized===void 0&&(k.sql_normalized||k.pattern))&&(E.sqlNormalized=k.sql_normalized||k.pattern||""),(E.count===null||E.count===void 0)&&k.total_count!==null&&k.total_count!==void 0&&(E.count=k.total_count),(E.avgDuration===null||E.avgDuration===void 0)&&k.avg_duration!==null&&k.avg_duration!==void 0&&(E.avgDuration=k.avg_duration),(E.maxDuration===null||E.maxDuration===void 0)&&k.max_duration!==null&&k.max_duration!==void 0&&(E.maxDuration=k.max_duration),(E.minDuration===null||E.minDuration===void 0)&&k.min_duration!==null&&k.min_duration!==void 0&&(E.minDuration=k.min_duration),(E.totalDuration===null||E.totalDuration===void 0)&&k.total_duration!==null&&k.total_duration!==void 0&&(E.totalDuration=k.total_duration),(E.percentOfTotal===null||E.percentOfTotal===void 0)&&k.pct_time!==null&&k.pct_time!==void 0&&(E.percentOfTotal=k.pct_time),E})),T=q(()=>{const k=new Map;for(const E of $.value){const S=E.sqlNormalized||E.sql||E.sql_text||"";k.set(S,(k.get(S)||0)+1)}return k}),z=q(()=>{const k=v.total??$.value.length;let E=0,S=0,H=0,oe=0;for(const le of $.value){const U=le.duration||0;H+=U,oe++,U>ea&&E++}for(const le of T.value.values())le>1&&(S+=le);return{total:k,slow:E,duplicates:S,avgDuration:oe>0?H/oe:0}}),te=q(()=>{if(o.value==="grouped")return`${$.value.length} query patterns`;const k=[`${z.value.total} queries`];return z.value.slow>0&&k.push(`${z.value.slow} slow`),z.value.duplicates>0&&k.push(`${z.value.duplicates} dup`),k.push(`avg ${(z.value.avgDuration||0).toFixed(1)}ms`),k.join(", ")});function se(k){A.value=k,x(k)}function Z(k){k!==o.value&&(o.value=k,i.value=null,r.value=null,u.value=null)}function fe(k){P(k)}async function Se(k){if(r.value&&r.value.queryId===k){r.value=null;return}u.value=k;try{const E=await L(k);E&&E.error?r.value={queryId:k,plan:[],error:E.error,message:E.message}:r.value={queryId:k,plan:E?.plan||E?.rows||[]}}catch(E){r.value={queryId:k,plan:[],error:E instanceof Error?E.message:String(E)}}finally{u.value=null}}function be(k){const E=ol(k);return E==="very-slow"?"ss-dash-very-slow":E==="slow"?"ss-dash-slow":""}function Ce(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?[]:Object.keys(k[0])}function $e(k,E){if(!k||typeof k!="object")return"-";const S=k[E];return S!=null?String(S):"-"}function xe(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?!1:"Plan"in k[0]}function V(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?{}:k[0].Plan}const{tableRef:j}=zt(()=>$.value);return(k,E)=>(c(),d("div",null,[me(jt,{"model-value":A.value,placeholder:"Filter queries...",summary:te.value,"onUpdate:modelValue":se},{default:ss(()=>[n("div",Ph,[n("button",{type:"button",class:M(`ss-dash-btn ${o.value==="list"?"ss-dash-active":""}`),onClick:E[0]||(E[0]=S=>Z("list"))}," List ",2),n("button",{type:"button",class:M(`ss-dash-btn ${o.value==="grouped"?"ss-dash-active":""}`),onClick:E[1]||(E[1]=S=>Z("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),w(m)&&!w(p)?(c(),d("div",Rh,"Loading queries...")):o.value==="grouped"?(c(),d("div",Ah,[$.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:j,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[E[11]||(E[11]=n("th",null,"Pattern",-1)),n("th",{class:"ss-dash-sortable",onClick:E[2]||(E[2]=S=>fe("count"))},[E[8]||(E[8]=_e(" Count ",-1)),w(b).column==="count"?(c(),d("span",Mh,h(w(b).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),n("th",{class:"ss-dash-sortable",onClick:E[3]||(E[3]=S=>fe("avgDuration"))},[E[9]||(E[9]=_e(" Avg ",-1)),w(b).column==="avgDuration"?(c(),d("span",Lh,h(w(b).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),E[12]||(E[12]=n("th",null,"Min",-1)),E[13]||(E[13]=n("th",null,"Max",-1)),n("th",{class:"ss-dash-sortable",onClick:E[4]||(E[4]=S=>fe("totalDuration"))},[E[10]||(E[10]=_e(" Total ",-1)),w(b).column==="totalDuration"?(c(),d("span",Oh,h(w(b).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),E[14]||(E[14]=n("th",null,"% Time",-1))])]),n("tbody",null,[(c(!0),d(K,null,ye($.value,(S,H)=>(c(),d("tr",{key:H},[n("td",null,[n("span",{class:M(`ss-dash-sql ${i.value===S.sqlNormalized?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:nt(oe=>i.value=i.value===S.sqlNormalized?null:S.sqlNormalized,["stop"]),onKeydown:Rs(oe=>i.value=i.value===S.sqlNormalized?null:S.sqlNormalized,["enter"])},h(S.sqlNormalized),43,Fh),(S.count||0)>=3?(c(),d("span",Dh,"DUP")):X("",!0)]),n("td",null,[n("span",Ih,h(S.count||0),1)]),n("td",null,[n("span",{class:M(`ss-dash-duration ${be(S.avgDuration||0)}`)},h((S.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Bh,h((S.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:M(`ss-dash-duration ${be(S.maxDuration||0)}`)},h((S.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Nh,h((S.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",jh,h((S.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(c(),d("div",Hh,"No queries recorded"))])):(c(),d(K,{key:2},[n("div",qh,[$.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:j,class:"ss-dash-table"},[E[24]||(E[24]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"70px"}}),n("col",{style:{width:"60px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"70px"}})],-1)),n("thead",null,[n("tr",null,[E[17]||(E[17]=n("th",null,"#",-1)),E[18]||(E[18]=n("th",null,"SQL",-1)),n("th",{class:"ss-dash-sortable",onClick:E[5]||(E[5]=S=>fe("duration"))},[E[15]||(E[15]=_e(" Duration ",-1)),w(b).column==="duration"?(c(),d("span",Uh,h(w(b).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),E[19]||(E[19]=n("th",null,"Method",-1)),E[20]||(E[20]=n("th",null,"Model",-1)),E[21]||(E[21]=n("th",null,"Connection",-1)),n("th",{class:"ss-dash-sortable",onClick:E[6]||(E[6]=S=>fe("createdAt"))},[E[16]||(E[16]=_e(" Time ",-1)),w(b).column==="createdAt"?(c(),d("span",Kh,h(w(b).direction==="asc"?" ▲":" ▼"),1)):X("",!0)]),E[22]||(E[22]=n("th",null,null,-1))])]),n("tbody",null,[(c(!0),d(K,null,ye($.value,S=>(c(),d(K,{key:S.id},[n("tr",null,[n("td",null,[n("span",Vh,h(S.id),1)]),n("td",null,[n("div",null,[n("span",{class:M(`ss-dash-sql ${i.value===S.id?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:nt(H=>i.value=i.value===S.id?null:S.id,["stop"]),onKeydown:Rs(H=>i.value=i.value===S.id?null:S.id,["enter"])},h(S.sql||S.sql_text||""),43,zh),(T.value.get((S.sqlNormalized||S.sql||S.sql_text)??"")??0)>1?(c(),d("span",Wh," ×"+h(T.value.get((S.sqlNormalized||S.sql||S.sql_text)??"")),1)):X("",!0)])]),n("td",null,[n("span",{class:M(`ss-dash-duration ${be(S.duration||0)}`)},h((S.duration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:M(`ss-dash-method ss-dash-method-${(S.method||S.sql_method||"").toLowerCase()}`)},h(S.method||S.sql_method||""),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:S.model},h(S.model||"-"),9,Jh)]),n("td",null,[n("span",Qh,h(S.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(S.createdAt||S.created_at||S.timestamp||"")},h(w(bt)(S.createdAt||S.created_at||S.timestamp||"")),9,Gh)]),n("td",null,[(S.method||S.sql_method||"")==="select"?(c(),d("button",{key:0,type:"button",class:M(`ss-dash-explain-btn${r.value?.queryId===S.id&&!r.value?.error?" ss-dash-explain-btn-active":""}`),disabled:u.value===S.id,onClick:nt(H=>Se(S.id),["stop"])},h(u.value===S.id?"...":"EXPLAIN"),11,Yh)):X("",!0)])]),r.value&&r.value.queryId===S.id?(c(),d("tr",Xh,[n("td",Zh,[n("div",ep,[n("div",tp,[r.value.error?(c(),d("div",sp,[E[23]||(E[23]=n("strong",null,"Error:",-1)),_e(" "+h(r.value.error)+" ",1),r.value.message?(c(),d("br",np)):X("",!0),_e(" "+h(r.value.message),1)])):xe()?(c(),d("div",lp,[me(w(va),{node:V(),depth:0},null,8,["node"])])):r.value.plan&&r.value.plan.length>0&&typeof r.value.plan[0]=="object"?(c(),d("div",op,[n("table",null,[n("thead",null,[n("tr",null,[(c(!0),d(K,null,ye(Ce(),H=>(c(),d("th",{key:H},h(H),1))),128))])]),n("tbody",null,[(c(!0),d(K,null,ye(r.value.plan,(H,oe)=>(c(),d("tr",{key:oe},[(c(!0),d(K,null,ye(Ce(),le=>(c(),d("td",{key:le},h($e(H,le)),1))),128))]))),128))])])])):(c(),d("div",ap,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:E[7]||(E[7]=H=>r.value=null)}," Close ")])])])):X("",!0)],64))),128))])],512)):(c(),d("div",ip,"No queries recorded"))]),w(v).totalPages>1?(c(),Xe(hs,{key:0,page:w(v).page,"last-page":w(v).totalPages,total:w(v).total,onPageChange:w(C)},null,8,["page","last-page","total","onPageChange"])):X("",!0)],64))]))}}),up=Object.freeze(Object.defineProperty({__proto__:null,default:rp},Symbol.toStringTag,{value:"Module"})),cp={key:0,class:"ss-dash-empty"},dp={class:"ss-dash-table-wrap"},fp={style:{color:"var(--ss-dim)"}},hp=["title"],pp=["title"],vp={key:1,class:"ss-dash-empty"},gp=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"EventsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,pagination:r,goToPage:u,setSearch:g}=lt(()=>"events",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),p=W(""),m=q(()=>{if(!o.value)return[];const C=o.value;return C.data||C.events||o.value||[]});function v(C){p.value=C,g(C)}const{tableRef:b}=zt(()=>m.value);return(C,x)=>(c(),d("div",null,[me(jt,{"model-value":p.value,placeholder:"Filter events...",summary:`${w(r).total??0} events`,"onUpdate:modelValue":v},null,8,["model-value","summary"]),w(i)&&!w(o)?(c(),d("div",cp,"Loading events...")):(c(),d(K,{key:1},[n("div",dp,[m.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:b,class:"ss-dash-table"},[x[0]||(x[0]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col"),n("col",{style:{width:"80px"}})],-1)),x[1]||(x[1]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Event"),n("th",null,"Data"),n("th",null,"Time")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(m.value,P=>(c(),d("tr",{key:P.id},[n("td",null,[n("span",fp,h(P.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:P.event_name||P.eventName||P.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(P.event_name||P.eventName||P.event||""),9,hp)]),n("td",null,[me(Ms,{value:P.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(P.createdAt||P.created_at||P.timestamp)},h(w(bt)(P.createdAt||P.created_at||P.timestamp)),9,pp)])]))),128))])],512)):(c(),d("div",vp,"No events recorded yet"))]),w(r).totalPages>1?(c(),Xe(hs,{key:0,page:w(r).page,"last-page":w(r).totalPages,total:w(r).total,onPageChange:w(u)},null,8,["page","last-page","total","onPageChange"])):X("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),yp={key:0,class:"ss-dash-empty"},mp={key:1,class:"ss-dash-empty"},bp={key:2,class:"ss-dash-table-wrap"},_p=["title"],xp=["title"],wp=["title"],$p=["title"],kp={key:1,class:"ss-dash-empty"},Sp=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"RoutesSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,error:r,setSearch:u}=lt(()=>"routes",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=W(""),p=q(()=>{if(!o.value)return[];const b=o.value;return Array.isArray(b)?b:Array.isArray(b.routes)?b.routes:Array.isArray(b.data)?b.data:[]});function m(b){g.value=b,u(b)}const{tableRef:v}=zt(()=>p.value);return(b,C)=>(c(),d("div",null,[me(jt,{"model-value":g.value,placeholder:"Filter routes...",summary:`${p.value.length} routes`,"onUpdate:modelValue":m},null,8,["model-value","summary"]),w(r)?(c(),d("div",yp,"Failed to load routes")):w(i)&&!w(o)?(c(),d("div",mp,"Loading routes...")):(c(),d("div",bp,[p.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:v,class:"ss-dash-table"},[C[0]||(C[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),C[1]||(C[1]=n("thead",null,[n("tr",null,[n("th",null,"Method"),n("th",null,"Pattern"),n("th",null,"Name"),n("th",null,"Handler"),n("th",null,"Middleware")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(p.value,(x,P)=>(c(),d("tr",{key:x.pattern||P},[n("td",null,[n("span",{class:M(`ss-dash-method ss-dash-method-${(x.method||"").toLowerCase()}`)},h(x.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:x.pattern},h(x.pattern),9,_p)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:x.name||"-"},h(x.name||"-"),9,xp)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:x.handler},h(x.handler),9,wp)]),n("td",null,[n("span",{style:{color:"var(--ss-dim)","font-size":"10px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:x.middleware?.length?x.middleware.join(", "):"-"},h(x.middleware?.length?x.middleware.join(", "):"-"),9,$p)])]))),128))])],512)):(c(),d("div",kp,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),Cp={class:"ss-dash-log-filters"},Tp=["onClick"],Ep=["value"],Pp={class:"ss-dash-structured-search"},Rp=["value"],Ap=["value"],Mp=["value"],Lp={key:0,class:"ss-dash-filter-chips"},Op={key:0,class:"ss-dash-filter-chip"},Fp={key:1,class:"ss-dash-filter-chip"},Dp=["onClick"],Ip={key:1,class:"ss-dash-empty"},Bp={key:2,class:"ss-dash-empty"},Np={key:3,class:"ss-dash-empty"},jp={key:4,class:"ss-dash-log-entries"},Hp=["onClick"],qp=["title"],Up=["title","onClick","onKeydown"],Kp={key:1,class:"ss-dash-log-reqid-empty"},Vp={key:3,style:{width:"14px"}},zp={class:"ss-dash-log-msg"},Wp={key:0,class:"ss-dash-log-detail"},Jp=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"LogsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,error:r,pagination:u,filter:g,goToPage:p,setSearch:m,setFilter:v,refresh:b}=lt(()=>"logs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),C=W(""),x=W("all"),P=W(""),L=W(""),A=W(null),y=W([]),$=W("level"),T=W("equals"),z=W(""),te=q(()=>{if(!o.value)return[];const H=o.value;return H.data||H.logs||o.value||[]}),se=q(()=>x.value!=="all"||P.value!==""||y.value.length>0);function Z(H,oe){oe&&(A.value=A.value===H?null:H)}function fe(H){C.value=H,m(H)}function Se(H){x.value=H,H==="all"?v("level",""):v("level",H)}function be(H){P.value=H,L.value=H,v("request_id",H)}function Ce(){const H=L.value.trim();P.value=H,v("request_id",H)}function $e(){P.value="",L.value="",v("request_id","")}function xe(){x.value="all",v("level","")}function V(){const H=g;for(const oe of Object.keys(H))(oe.startsWith("filter_field_")||oe.startsWith("filter_op_")||oe.startsWith("filter_value_"))&&delete H[oe];y.value.forEach((oe,le)=>{H[`filter_field_${le}`]=oe.field,H[`filter_op_${le}`]=oe.operator,H[`filter_value_${le}`]=oe.value}),u.page=1,b()}function j(){const H=z.value.trim();H&&(y.value.push({field:$.value,operator:T.value,value:H}),z.value="",V())}function k(H){y.value.splice(H,1),V()}function E(H){return H.target.value}function S(H){return H.target.value}return(H,oe)=>(c(),d("div",null,[me(jt,{"model-value":C.value,placeholder:"Search logs...",summary:`${w(u).total??0} logs`,"onUpdate:modelValue":fe},{default:ss(()=>[n("div",Cp,[(c(!0),d(K,null,ye(w(Su),le=>(c(),d("button",{key:le,type:"button",class:M(`ss-dash-log-filter ${x.value===le?"ss-dash-active":""}`),onClick:U=>Se(le)},h(le),11,Tp))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:L.value,onInput:oe[0]||(oe[0]=le=>L.value=E(le)),onKeydown:Rs(Ce,["enter"])},null,40,Ep),L.value||P.value?(c(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:$e}," Clear ")):X("",!0)])]),_:1},8,["model-value","summary"]),n("div",Pp,[n("select",{class:"ss-dash-filter-select",value:$.value,onChange:oe[1]||(oe[1]=le=>$.value=S(le))},[...oe[4]||(oe[4]=[cr('<option value="level">level</option><option value="message">message</option><option value="request_id">request_id</option><option value="userId">userId</option><option value="email">email</option><option value="path">path</option>',6)])],40,Rp),n("select",{class:"ss-dash-filter-select",value:T.value,onChange:oe[2]||(oe[2]=le=>T.value=S(le))},[...oe[5]||(oe[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,Ap),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:z.value,onInput:oe[3]||(oe[3]=le=>z.value=E(le)),onKeydown:Rs(j,["enter"])},null,40,Mp),n("button",{type:"button",class:"ss-dash-btn",onClick:j},"Add")]),se.value?(c(),d("div",Lp,[x.value!=="all"?(c(),d("span",Op,[_e(" level: "+h(x.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:xe}," × ")])):X("",!0),P.value?(c(),d("span",Fp,[_e(" requestId: "+h(P.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:$e}," × ")])):X("",!0),(c(!0),d(K,null,ye(y.value,(le,U)=>(c(),d("span",{key:U,class:"ss-dash-filter-chip"},[_e(h(le.field)+" "+h(le.operator)+' "'+h(le.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:ae=>k(U)}," × ",8,Dp)]))),128))])):X("",!0),w(r)?(c(),d("div",Ip,"Failed to load logs")):w(i)&&!w(o)?(c(),d("div",Bp,"Loading logs...")):te.value.length===0?(c(),d("div",Np," No log entries"+h(P.value?` matching request ${P.value}`:x.value!=="all"?` for ${x.value}`:""),1)):(c(),d("div",jp,[(c(!0),d(K,null,ye(te.value,(le,U)=>(c(),d(K,{key:String(le.id||U)},[n("div",{class:M(["ss-dash-log-entry",{"ss-dash-log-entry-expandable":!!w(_t)(le)}]),onClick:ae=>Z(U,!!w(_t)(le))},[n("span",{class:M(`ss-dash-log-level ${w(ia)(w(an)(le),"ss-dash-log-level")}`)},h(w(an)(le).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:w(Bt)(le)?w(It)(w(Bt)(le)):""},h(w(Bt)(le)?w(bt)(w(Bt)(le)):"-"),9,qp),w(Nt)(le)?(c(),d("span",{key:0,class:"ss-dash-log-reqid",title:w(Nt)(le),role:"button",tabindex:"0",onClick:nt(ae=>be(w(Nt)(le)),["stop"]),onKeydown:Rs(nt(ae=>be(w(Nt)(le)),["stop"]),["enter"])},h(w(Nt)(le).slice(0,8)),41,Up)):(c(),d("span",Kp,"--")),w(_t)(le)?(c(),d("span",{key:2,class:M(["ss-dash-log-expand-icon",{"ss-dash-log-expand-icon-open":A.value===U}])},"▶",2)):(c(),d("span",Vp)),n("span",zp,h(w(aa)(le)),1)],10,Hp),A.value===U&&w(_t)(le)?(c(),d("div",Wp,[me(Ms,{value:w(_t)(le),"class-prefix":"ss-dash","default-expanded":""},null,8,["value"])])):X("",!0)],64))),128))])),w(u).totalPages>1?(c(),Xe(hs,{key:5,page:w(u).page,"last-page":w(u).totalPages,total:w(u).total,onPageChange:w(p)},null,8,["page","last-page","total","onPageChange"])):X("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Qp={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},Gp={class:"ss-dash-email-preview-header"},Yp={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Xp=["srcdoc"],Zp={key:0,class:"ss-dash-empty"},ev={class:"ss-dash-table-wrap"},tv=["onClick"],sv={style:{color:"var(--ss-dim)"}},nv=["title"],lv=["title"],ov=["title"],av={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},iv={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},rv=["title"],uv=["title"],cv={key:1,class:"ss-dash-empty"},dv=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"EmailsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,pagination:r,goToPage:u,setSearch:g,fetchEmailPreview:p}=lt(()=>"emails",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),m=W(""),v=W(null),b=W(null),C=q(()=>{if(!o.value)return[];const y=o.value;return y.data||y.emails||o.value||[]});function x(y){m.value=y,g(y)}async function P(y){if(y.html){v.value=y.id,b.value=y.html;return}const $=await p(y.id);v.value=y.id,b.value=$}function L(){v.value=null,b.value=null}const{tableRef:A}=zt(()=>C.value);return(y,$)=>(c(),d("div",null,[v.value&&b.value?(c(),d("div",Qp,[n("div",Gp,[n("div",Yp,[C.value.find(T=>T.id===v.value)?(c(),d(K,{key:0},[$[4]||($[4]=n("strong",null,"Subject:",-1)),_e(" "+h(C.value.find(T=>T.id===v.value)?.subject)+" | ",1),$[5]||($[5]=n("strong",null,"From:",-1)),_e(" "+h(C.value.find(T=>T.id===v.value)?.from_addr||C.value.find(T=>T.id===v.value)?.from)+" | ",1),$[6]||($[6]=n("strong",null,"To:",-1)),_e(" "+h(C.value.find(T=>T.id===v.value)?.to_addr||C.value.find(T=>T.id===v.value)?.to)+" ",1),C.value.find(T=>T.id===v.value)?.cc||C.value.find(T=>T.id===v.value)?.cc_addr?(c(),d(K,{key:0},[$[0]||($[0]=_e(" | ",-1)),$[1]||($[1]=n("strong",null,"CC:",-1)),_e(" "+h(C.value.find(T=>T.id===v.value)?.cc||C.value.find(T=>T.id===v.value)?.cc_addr),1)],64)):X("",!0),$[7]||($[7]=_e(" | ",-1)),$[8]||($[8]=n("strong",null,"Status:",-1)),n("span",{class:M(`ss-dash-badge ss-dash-email-status-${C.value.find(T=>T.id===v.value)?.status}`)},h(C.value.find(T=>T.id===v.value)?.status),3),C.value.find(T=>T.id===v.value)?.mailer?(c(),d(K,{key:1},[$[2]||($[2]=_e(" | ",-1)),$[3]||($[3]=n("strong",null,"Mailer:",-1)),_e(" "+h(C.value.find(T=>T.id===v.value)?.mailer),1)],64)):X("",!0)],64)):X("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:L}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:b.value,title:"Email preview",sandbox:""},null,8,Xp)])):(c(),d(K,{key:1},[me(jt,{"model-value":m.value,placeholder:"Filter emails...",summary:`${w(r).total??0} emails`,"onUpdate:modelValue":x},null,8,["model-value","summary"]),w(i)&&!w(o)?(c(),d("div",Zp,"Loading emails...")):(c(),d(K,{key:1},[n("div",ev,[C.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:A,class:"ss-dash-table"},[$[9]||($[9]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"150px"}}),n("col",{style:{width:"150px"}}),n("col"),n("col",{style:{width:"80px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"80px"}})],-1)),$[10]||($[10]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"From"),n("th",null,"To"),n("th",null,"Subject"),n("th",null,"Status"),n("th",null,"ATT"),n("th",null,"Mailer"),n("th",null,"Time")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(C.value,T=>(c(),d("tr",{key:T.id,class:"ss-dash-clickable ss-dash-email-row",onClick:z=>P(T)},[n("td",null,[n("span",sv,h(T.id),1)]),n("td",null,[n("span",{title:T.from_addr||T.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(T.from_addr||T.from||""),9,nv)]),n("td",null,[n("span",{title:T.to_addr||T.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(T.to_addr||T.to||""),9,lv)]),n("td",null,[n("span",{title:T.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(T.subject||""),9,ov)]),n("td",null,[n("span",{class:M(`ss-dash-badge ss-dash-email-status-${T.status||""}`)},h(T.status),3)]),n("td",null,[(T.attachment_count||T.attachmentCount||0)>0?(c(),d("span",av,h(T.attachment_count||T.attachmentCount||0),1)):(c(),d("span",iv,"-"))]),n("td",null,[n("span",{title:T.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(T.mailer||""),9,rv)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(It)(T.createdAt||T.created_at||T.timestamp)},h(w(bt)(T.createdAt||T.created_at||T.timestamp)),9,uv)])],8,tv))),128))])],512)):(c(),d("div",cv,"No emails captured yet"))]),w(r).totalPages>1?(c(),Xe(hs,{key:0,page:w(r).page,"last-page":w(r).totalPages,total:w(r).total,onPageChange:w(u)},null,8,["page","last-page","total","onPageChange"])):X("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),fv={key:0,class:"ss-dash-cache-stats"},hv={class:"ss-dash-cache-stat"},pv={class:"ss-dash-cache-stat-value"},vv={class:"ss-dash-cache-stat"},gv={class:"ss-dash-cache-stat-value"},yv={class:"ss-dash-cache-stat"},mv={class:"ss-dash-cache-stat-value"},bv={class:"ss-dash-cache-stat"},_v={class:"ss-dash-cache-stat-value"},xv={key:1,class:"ss-dash-empty"},wv={key:2,class:"ss-dash-empty"},$v={key:3,class:"ss-dash-table-wrap"},kv=["onClick"],Sv=["title"],Cv={style:{color:"var(--ss-muted)"}},Tv=["onClick"],Ev={key:1,class:"ss-dash-empty"},Pv={key:4,class:"ss-dash-cache-detail"},Rv={key:0,class:"ss-dash-empty"},Av={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},Mv=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"CacheSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,setSearch:r,mutate:u}=lt(()=>"cache",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=rl(a||"",l),p=new la(g(),s||"/__stats/api"),m=W(""),v=W(null),b=W(null),C=W(!1),x=W(null),P=q(()=>o.value),L=q(()=>P.value?.keys||P.value?.data||[]);function A(z){m.value=z,r(z)}async function y(z){if(confirm(`Delete cache key "${z}"?`))try{await u(`cache/${encodeURIComponent(z)}`,"delete"),v.value===z&&(v.value=null,b.value=null,x.value=null)}catch{}}const{tableRef:$}=zt(()=>L.value);async function T(z){if(v.value===z){v.value=null,b.value=null,x.value=null;return}v.value=z,b.value=null,x.value=null,C.value=!0;try{const te=await p.fetchCacheKey(z);b.value=te.value!==void 0?te.value:te.data!==void 0?te.data:te,x.value=null}catch{b.value=null,x.value="Failed to fetch key value"}finally{C.value=!1}}return(z,te)=>(c(),d("div",null,[P.value?.available&&P.value?.stats?(c(),d("div",fv,[n("div",hv,[te[0]||(te[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",pv,h((P.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",vv,[te[1]||(te[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",gv,h(P.value.stats.hits??0),1)]),n("div",yv,[te[2]||(te[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",mv,h(P.value.stats.misses??0),1)]),n("div",bv,[te[3]||(te[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",_v,h(P.value.stats.totalKeys||P.value.stats.keyCount||L.value.length||0),1)])])):X("",!0),me(jt,{"model-value":m.value,placeholder:"Filter cache keys...",summary:`${L.value.length} keys`,"onUpdate:modelValue":A},null,8,["model-value","summary"]),w(i)&&!w(o)?(c(),d("div",xv,"Loading cache...")):!P.value||!P.value.available?(c(),d("div",wv," Cache inspector not available ")):(c(),d("div",$v,[L.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:$,class:"ss-dash-table"},[te[4]||(te[4]=n("thead",null,[n("tr",null,[n("th",null,"Key"),n("th",null,"Type"),n("th",null,"Size"),n("th",null,"TTL"),n("th")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(L.value,se=>(c(),d("tr",{key:se.key,class:"ss-dash-clickable",onClick:Z=>T(se.key)},[n("td",null,[n("span",{title:se.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(se.key),9,Sv)]),n("td",null,[n("span",Cv,h(se.type),1)]),n("td",null,h(se.size!==null&&se.size!==void 0&&se.size>0?w(pu)(se.size):"-"),1),n("td",null,h(se.ttl>0?w(hu)(se.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:nt(Z=>y(se.key),["stop"])}," Delete ",8,Tv)])],8,kv))),128))])],512)):(c(),d("div",Ev,"No cache keys found"))])),v.value?(c(),d("div",Pv,[n("h4",null,"Key: "+h(v.value),1),C.value?(c(),d("div",Rv,"Loading value...")):x.value?(c(),d("div",Av,h(x.value),1)):(c(),Xe(Ms,{key:2,value:b.value},null,8,["value"]))])):X("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Lv={key:0,class:"ss-dash-job-stats"},Ov={class:"ss-dash-job-stat"},Fv={class:"ss-dash-job-stat-value"},Dv={class:"ss-dash-job-stat"},Iv={class:"ss-dash-job-stat-value"},Bv={class:"ss-dash-job-stat"},Nv={class:"ss-dash-job-stat-value"},jv={class:"ss-dash-job-stat"},Hv={class:"ss-dash-job-stat-value"},qv={class:"ss-dash-job-stat"},Uv={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},Kv={class:"ss-dash-btn-group"},Vv=["onClick"],zv={key:1,class:"ss-dash-empty"},Wv={key:2,class:"ss-dash-empty"},Jv={class:"ss-dash-table-wrap"},Qv={style:{color:"var(--ss-dim)"}},Gv=["title"],Yv={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Xv={class:"ss-dash-duration"},Zv=["title"],eg=["disabled","onClick"],tg={key:1,class:"ss-dash-empty"},sg=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"JobsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),a=de("ss-base-url",""),{data:o,loading:i,error:r,pagination:u,goToPage:g,setSearch:p,setFilter:m,refresh:v,mutate:b}=lt(()=>"jobs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),C=W(""),x=W("all"),P=W({}),L=q(()=>Eu(o.value)),A=q(()=>Pu(o.value));function y(te){C.value=te,p(te)}function $(te){x.value=te,te==="all"?m("status",""):m("status",te)}const{tableRef:T}=zt(()=>L.value);async function z(te){P.value[te]="pending";try{await b(`jobs/${te}/retry`),P.value[te]="success",setTimeout(()=>{delete P.value[te],v()},1e3)}catch{delete P.value[te]}}return(te,se)=>(c(),d("div",null,[A.value?(c(),d("div",Lv,[n("div",Ov,[se[0]||(se[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",Fv,h(A.value.active??0),1)]),n("div",Dv,[se[1]||(se[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",Iv,h(A.value.waiting??0),1)]),n("div",Bv,[se[2]||(se[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",Nv,h(A.value.delayed??0),1)]),n("div",jv,[se[3]||(se[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",Hv,h(A.value.completed??0),1)]),n("div",qv,[se[4]||(se[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",Uv,h(A.value.failed??0),1)])])):X("",!0),me(jt,{"model-value":C.value,placeholder:"Filter jobs...",summary:`${w(u).total||L.value.length} jobs`,"onUpdate:modelValue":y},{default:ss(()=>[n("div",Kv,[(c(!0),d(K,null,ye(w(Cu),Z=>(c(),d("button",{key:Z,type:"button",class:M(`ss-dash-btn ${x.value===Z?"ss-dash-active":""}`),onClick:fe=>$(Z)},h(Z.charAt(0).toUpperCase()+Z.slice(1)),11,Vv))),128))])]),_:1},8,["model-value","summary"]),w(i)&&!w(o)?(c(),d("div",zv,"Loading jobs...")):w(r)?(c(),d("div",Wv,"Jobs/Queue not available")):(c(),d(K,{key:3},[n("div",Jv,[L.value.length>0?(c(),d("table",{key:0,ref_key:"tableRef",ref:T,class:"ss-dash-table"},[se[5]||(se[5]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"90px"}}),n("col"),n("col",{style:{width:"50px"}}),n("col",{style:{width:"75px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"50px"}})],-1)),se[6]||(se[6]=n("thead",null,[n("tr",null,[n("th",null,"ID"),n("th",null,"Name"),n("th",null,"Status"),n("th",null,"Payload"),n("th",null,"Tries"),n("th",null,"Duration"),n("th",null,"Time"),n("th")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(L.value,Z=>(c(),d("tr",{key:Z.id},[n("td",null,[n("span",Qv,h(Z.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:Z.name},h(Z.name),9,Gv)]),n("td",null,[n("span",{class:M(`ss-dash-badge ss-dash-badge-${w(Tu)(Z.status)}`)},h(Z.status),3)]),n("td",null,[me(Ms,{value:Z.payload||Z.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",Yv,h(Z.attempts||Z.attemptsMade||0),1)]),n("td",null,[n("span",Xv,h(Z.duration!==null&&Z.duration!==void 0?w(Dt)(Z.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(It)(Z.timestamp||Z.createdAt||Z.processedAt||Z.created_at)},h(w(bt)(Z.timestamp||Z.createdAt||Z.processedAt||Z.created_at)),9,Zv)]),n("td",null,[Z.status==="failed"?(c(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:P.value[Z.id]==="pending"||P.value[Z.id]==="success",onClick:nt(fe=>z(Z.id),["stop"])},h(P.value[Z.id]==="pending"?"...":P.value[Z.id]==="success"?"OK":"Retry"),9,eg)):X("",!0)])]))),128))])],512)):(c(),d("div",tg,"No jobs found"))]),w(u).totalPages>1?(c(),Xe(hs,{key:0,page:w(u).page,"last-page":w(u).totalPages,total:w(u).total,onPageChange:w(g)},null,8,["page","last-page","total","onPageChange"])):X("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),ng={style:{position:"relative",flex:1}},lg=["value"],og=["title","onClick"],ag=["viewBox","innerHTML"],ig=["viewBox","innerHTML"],rg=["onClick"],ug={key:0},cg=["title","onClick"],dg=["viewBox","innerHTML"],fg=["viewBox","innerHTML"],hg=["onClick"],pg={key:0},vg={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},gg=["onClick"],yg=["title"],mg=["title"],bg=["title","onClick"],_g=["viewBox","innerHTML"],xg=["viewBox","innerHTML"],wg=["onClick"],$g=["title","onClick"],kg=["viewBox","innerHTML"],Sg=["viewBox","innerHTML"],Cg={key:1,style:{color:"var(--ss-dim)"}},Tg={key:3,style:{color:"var(--ss-amber-fg)"}},Eg={key:4,style:{color:"var(--ss-purple-fg)"}},Pg={key:5},Rg=["onClick"],ue="ss-dash",Ag=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"ConfigSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),a=de("ss-auth-token",void 0),{data:o,loading:i}=lt(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t}),r=W(""),u=W(""),g=W("app"),p=W(new Set),m=W("Copy JSON"),v=W(new Set),b=W(new Map);let C=null;function x(U){r.value=U,C&&clearTimeout(C),C=setTimeout(()=>{u.value=U},200)}function P(U){return U.target.value}const L=q(()=>o.value??null),A=q(()=>{const U=L.value?.env??{},ae=u.value.toLowerCase();return Object.entries(U).filter(([J,ie])=>{if(!ae)return!0;const Ie=De(ie)?ie.display:ie==null?"":String(ie);return J.toLowerCase().includes(ae)||Ie.toLowerCase().includes(ae)})}),y=q(()=>{const U=L.value?.app??{},ae=u.value.toLowerCase();return rn(U,"").filter(ie=>{const Ie=De(ie.value)?ie.value.display:ie.value===null||ie.value===void 0?"":String(ie.value);return ie.path.toLowerCase().includes(ae)||Ie.toLowerCase().includes(ae)})}),$=q(()=>{const U=L.value?.app??{};return rn(U,"").length}),T=q(()=>{const U=L.value?.app;return!U||typeof U!="object"||Array.isArray(U)||De(U)?[]:Object.keys(U)});function z(U){const ae=new Set(p.value);ae.has(U)?ae.delete(U):ae.add(U),p.value=ae}function te(){if(!L.value)return;const U=g.value==="app"?L.value.app:L.value.env;if(!U)return;const ae=Ju(U);p.value=new Set(ae)}function se(){p.value=new Set}function Z(){if(!L.value)return;const U=g.value==="app"?L.value.app:L.value.env;navigator.clipboard?.writeText(JSON.stringify(U,null,2)).then(()=>{m.value="Copied!",setTimeout(()=>{m.value="Copy JSON"},1500)}).catch(()=>{})}function fe(U){const ae=new Set(v.value);ae.has(U)?ae.delete(U):ae.add(U),v.value=ae}function Se(U,ae){b.value.set(U,ae)}function be(U,ae,J){J.stopPropagation(),Qu(U,b.value.get(ae)??null,ue)}function Ce(U){return U!==null&&typeof U=="object"&&!Array.isArray(U)&&!De(U)}function $e(U,ae){return rn(U,ae)}function xe(U,ae){return U.indexOf(ae+".")===0?U.slice(ae.length+1):U}function V(U){return Wu(U)}function j(U){return De(U)?U.display:U==null?"null":String(U)}function k(U){const ae=L.value?.app;return!ae||typeof ae!="object"?null:ae[U]??null}function E(U,ae){return De(U)?ae?U.value:U.display:""}function S(){r.value="",u.value=""}function H(U){return De(U)?U.display:""}const oe=q(()=>Le.eye.elements.join("")),le=q(()=>Le["eye-off"].elements.join(""));return(U,ae)=>(c(),d("div",null,[n("div",{class:M(`${ue}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:M(`${ue}-config-tab${g.value==="app"?` ${ue}-active`:""}`),onClick:ae[0]||(ae[0]=J=>g.value="app")}," App Config ",2),n("button",{type:"button",class:M(`${ue}-config-tab${g.value==="env"?` ${ue}-active`:""}`),onClick:ae[1]||(ae[1]=J=>g.value="env")}," Env ",2),n("div",ng,[n("input",{type:"text",class:M(`${ue}-search`),placeholder:"Search keys and values...",value:r.value,style:{width:"100%"},onInput:ae[2]||(ae[2]=J=>x(P(J)))},null,42,lg),r.value?(c(),d("button",{key:0,type:"button",style:{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"var(--ss-dim)",padding:"0 2px",lineHeight:1},onClick:S}," × ")):X("",!0)]),g.value==="app"&&!u.value?(c(),d(K,{key:0},[n("button",{type:"button",class:M(`${ue}-btn`),onClick:te},"Expand All",2),n("button",{type:"button",class:M(`${ue}-btn`),onClick:se},"Collapse All",2)],64)):X("",!0),n("button",{type:"button",class:M(`${ue}-btn`),onClick:Z},h(m.value),3)],2),w(i)&&!w(o)?(c(),d("div",{key:0,class:M(`${ue}-empty`)},"Loading config...",2)):L.value?g.value==="env"?(c(),d("div",{key:2,class:M(`${ue}-config-table-wrap`)},[n("table",{class:M(`${ue}-table ${ue}-config-env-table`)},[ae[4]||(ae[4]=n("thead",null,[n("tr",null,[n("th",null,"Variable"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(A.value,([J,ie])=>(c(),d("tr",{key:J},[n("td",{class:M(`${ue}-env-key`)},[n("span",{class:M(`${ue}-config-key`)},h(J),3)],2),n("td",{class:M(`${ue}-env-val`)},[w(De)(ie)?(c(),d("span",{key:0,class:M(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(ie,v.value.has(J))),1),n("button",{type:"button",class:M(`${ue}-btn`),title:v.value.has(J)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(Ie=>fe(J),["stop"])},[v.value.has(J)?(c(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,ag)):(c(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:oe.value},null,8,ig))],10,og)],2)):(c(),d("span",{key:1,class:M(`${ue}-config-val`)},h(j(ie)),3))],2),n("td",null,[w(De)(ie)?X("",!0):(c(),d("button",{key:0,type:"button",class:M(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Ie=>Se(`env-${J}`,Ie),onClick:Ie=>be(`${J}=${j(ie)}`,`env-${J}`,Ie)}," ⎘ ",10,rg))])]))),128)),A.value.length===0?(c(),d("tr",ug,[...ae[3]||(ae[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):X("",!0)])],2)],2)):u.value?(c(),d("div",{key:3,class:M(`${ue}-config-table-wrap`)},[n("table",{class:M(`${ue}-table`)},[ae[6]||(ae[6]=n("thead",null,[n("tr",null,[n("th",null,"Path"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(y.value,J=>(c(),d("tr",{key:J.path},[n("td",null,[n("span",{class:M(`${ue}-config-key`),style:{whiteSpace:"nowrap"}},h(J.path),3)]),n("td",null,[w(De)(J.value)?(c(),d("span",{key:0,class:M(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(J.value,v.value.has(J.path))),1),n("button",{type:"button",class:M(`${ue}-btn`),title:v.value.has(J.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(ie=>fe(J.path),["stop"])},[v.value.has(J.path)?(c(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,dg)):(c(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:oe.value},null,8,fg))],10,cg)],2)):(c(),d("span",{key:1,class:M(`${ue}-config-val`),style:Ke({wordBreak:"break-all",color:V(J.value).color})},h(V(J.value).text),7))]),n("td",null,[w(De)(J.value)?X("",!0):(c(),d("button",{key:0,type:"button",class:M(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:ie=>Se(`search-${J.path}`,ie),onClick:ie=>be(`${J.path}: ${w(De)(J.value)?H(J.value):V(J.value).text}`,`search-${J.path}`,ie)}," ⎘ ",10,hg))])]))),128)),y.value.length===0?(c(),d("tr",pg,[...ae[5]||(ae[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):X("",!0)])],2),n("div",vg,h(y.value.length)+" of "+h($.value)+" entries ",1)],2)):(c(),d("div",{key:4,class:M(`${ue}-config-table-wrap`)},[n("div",{class:M(`${ue}-config-sections`)},[(c(!0),d(K,null,ye(T.value,J=>(c(),d("div",{key:J,class:M(`${ue}-config-section`)},[Ce(k(J))?(c(),d(K,{key:0},[n("div",{class:M(`${ue}-config-section-header`),style:{cursor:"pointer"},onClick:ie=>z(J)},[n("span",{class:M(`${ue}-config-toggle`)},h(p.value.has(J)?"▼":"▶"),3),n("span",{class:M(`${ue}-config-key`)},h(J),3),n("span",{class:M(`${ue}-config-count`)},h(w(ua)(k(J)))+" entries ",3)],10,gg),p.value.has(J)?(c(),d("div",{key:0,class:M(`${ue}-config-section-body`)},[n("table",{class:M(`${ue}-table ${ue}-config-inner-table`)},[ae[7]||(ae[7]=n("thead",null,[n("tr",null,[n("th",{style:{width:"35%"}},"Key"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(c(!0),d(K,null,ye($e(k(J),J),ie=>(c(),d("tr",{key:ie.path},[n("td",{title:xe(ie.path,J)},[n("span",{class:M(`${ue}-config-key`)},h(xe(ie.path,J)),3)],8,yg),n("td",{title:w(De)(ie.value)?H(ie.value):V(ie.value).text},[w(De)(ie.value)?(c(),d("span",{key:0,class:M(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(ie.value,v.value.has(ie.path))),1),n("button",{type:"button",class:M(`${ue}-btn`),title:v.value.has(ie.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(Ie=>fe(ie.path),["stop"])},[v.value.has(ie.path)?(c(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,_g)):(c(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:oe.value},null,8,xg))],10,bg)],2)):(c(),d("span",{key:1,class:M(`${ue}-config-val`),style:Ke({color:V(ie.value).color})},h(V(ie.value).text),7))],8,mg),n("td",null,[w(De)(ie.value)?X("",!0):(c(),d("button",{key:0,type:"button",class:M(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Ie=>Se(`inner-${ie.path}`,Ie),onClick:Ie=>be(`${ie.path}: ${V(ie.value).text}`,`inner-${ie.path}`,Ie)}," ⎘ ",10,wg))])]))),128))])],2)],2)):X("",!0)],64)):(c(),d("div",{key:1,class:M(`${ue}-config-section-header ${ue}-config-leaf`),style:{cursor:"default"}},[n("span",{class:M(`${ue}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:M(`${ue}-config-key`)},h(J),3),n("span",{class:M(`${ue}-config-val`),style:{marginLeft:"8px"}},[w(De)(k(J))?(c(),d("span",{key:0,class:M(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(k(J),v.value.has(J))),1),n("button",{type:"button",class:M(`${ue}-btn`),title:v.value.has(J)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(ie=>fe(J),["stop"])},[v.value.has(J)?(c(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,kg)):(c(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:oe.value},null,8,Sg))],10,$g)],2)):k(J)===null||k(J)===void 0?(c(),d("span",Cg,"null")):typeof k(J)=="boolean"?(c(),d("span",{key:2,style:Ke({color:k(J)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},h(String(k(J))),5)):typeof k(J)=="number"?(c(),d("span",Tg,h(String(k(J))),1)):Array.isArray(k(J))?(c(),d("span",Eg,h(V(k(J)).text),1)):(c(),d("span",Pg,h(String(k(J))),1))],2),w(De)(k(J))?X("",!0):(c(),d("button",{key:0,type:"button",class:M(`${ue}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:ie=>Se(`leaf-${J}`,ie),onClick:ie=>be(`${J}: ${V(k(J)).text}`,`leaf-${J}`,ie)}," ⎘ ",10,Rg))],2))],2))),128))],2)],2)):(c(),d("div",{key:1,class:M(`${ue}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),Mg={key:0,class:"ss-dash-empty"},Lg={key:1,class:"ss-dash-empty"},Og={key:2,class:"ss-dash-empty"},Fg={class:"ss-dash-info-cards"},Dg={class:"ss-dash-info-card-label"},Ig={class:"ss-dash-info-card-value"},Bg={key:0,class:"ss-dash-empty"},Ng={key:1,class:"ss-dash-table"},jg={style:{"font-family":"monospace","font-size":"11px"}},Hg={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},qg={style:{color:"var(--ss-dim)","margin-left":"4px"}},Ug={style:{"font-size":"11px"}},Kg=["onClick"],Vg=["onClick"],zg={key:2,class:"ss-dash-empty"},Wg={key:3,class:"ss-dash-table"},Jg={class:"ss-dash-bar"},Qg={class:"ss-dash-bar-track",style:{"max-width":"120px"}},Gg={key:4,class:"ss-dash-empty"},Yg={key:5,class:"ss-dash-table"},Xg={style:{color:"var(--ss-dim)"}},Zg={key:6,class:"ss-dash-empty"},e1={key:7,class:"ss-dash-table"},t1={style:{color:"var(--ss-dim)","font-size":"11px"}},s1={class:"ss-dash-table"},n1={style:{"font-family":"monospace","font-size":"11px"}},l1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},o1={style:{"font-family":"monospace","font-size":"11px"}},a1={class:"ss-dash-table"},i1={class:"ss-dash-table"},r1={style:{"font-family":"monospace","font-size":"11px"}},u1={style:{"font-family":"monospace","font-size":"11px"}},c1={style:{"font-family":"monospace","font-size":"11px"}},d1={style:{"font-size":"11px"}},f1=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"InternalsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-base-url",""),l=de("ss-debug-endpoint","/admin/api/debug"),a=de("ss-auth-token",void 0),o=W(null),i=W(!0),r=W(null),u=W(new Set),g=rl(s,a);let p=null;async function m(){try{const A=await g().fetch(`${l}/diagnostics`);o.value=A,r.value=null,i.value=!1}catch(A){if(A instanceof nn){r.value=A,i.value=!1,p&&(clearInterval(p),p=null);return}r.value=A instanceof Error?A:new Error(String(A)),i.value=!1}}Ot(()=>{i.value=!0,r.value=null,m(),p=setInterval(m,Zo)}),St(()=>{p&&clearInterval(p)}),ut(t,()=>{m()});function v(A){u.value.has(A)?u.value.delete(A):u.value.add(A)}function b(A){const y=zu(A);return y==="ok"?"ss-dash-dot-ok":y==="err"?"ss-dash-dot-err":""}function C(A){return A.debounceMs!==void 0?`${Dt(A.debounceMs)} (debounce)`:A.intervalMs!==void 0?Dt(A.intervalMs):"-"}const x=q(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([A,y])=>({name:A.charAt(0).toUpperCase()+A.slice(1),...y,percent:Uu(y.current,y.max)})):[]),P=q(()=>o.value?.timers?Object.entries(o.value.timers).map(([A,y])=>({key:A,label:Iu(A),...y,interval:C(y)})):[]),L=q(()=>{if(!o.value)return[];const A=[];if(o.value.transmit&&A.push({key:"transmit",label:"Transmit (SSE)",status:o.value.transmit.available?"connected":"unavailable",details:o.value.transmit.available?`Channels: ${o.value.transmit.channels.join(", ")}`:"Not installed"}),o.value.integrations)for(const[y,$]of Object.entries(o.value.integrations))A.push({key:y,label:Nu(y),status:ju($),details:Hu(y,$)});return A});return(A,y)=>(c(),d("div",null,[i.value&&!o.value?(c(),d("div",Mg,"Loading diagnostics...")):r.value&&!o.value?(c(),d("div",Lg,"Error: "+h(r.value.message),1)):o.value?(c(),d(K,{key:3},[y[41]||(y[41]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",Fg,[(c(!0),d(K,null,ye([{label:"Version",value:o.value.package?.version||"-"},{label:"Node.js",value:o.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:o.value.package?.adonisVersion||"-"},{label:"Uptime",value:w(fu)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],$=>(c(),d("div",{key:$.label,class:"ss-dash-info-card"},[n("span",Dg,h($.label),1),n("span",Ig,h($.value),1)]))),128))]),y[42]||(y[42]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(c(),d("table",Ng,[y[4]||(y[4]=n("thead",null,[n("tr",null,[n("th",null,"Collector"),n("th",null,"Status"),n("th",null,"Last Error"),n("th",null,"Config")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(o.value.collectors,$=>(c(),d("tr",{key:$.name},[n("td",null,[n("span",jg,h($.name),1),$.label&&$.label!==$.name?(c(),d("span",Hg,h($.label),1)):X("",!0)]),n("td",null,[n("span",{class:M(["ss-dash-dot",b($.status)])},null,2),_e(" "+h($.status),1)]),n("td",{style:Ke($.lastError?{color:"var(--ss-red-fg)"}:{})},[$.lastError?(c(),d(K,{key:0},[_e(h($.lastError)+" ",1),n("span",qg,h(w(bt)($.lastErrorAt??0)),1)],64)):(c(),d(K,{key:1},[_e("-")],64))],4),n("td",Ug,[Object.keys($.config||{}).length?(c(!0),d(K,{key:0},ye(w(qu)($.config),T=>(c(),d("span",{key:T.key,style:{"margin-right":"8px"}},[_e(h(T.key)+"=",1),T.secret&&!u.value.has(`collector-${$.name}-${T.key}`)?(c(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:z=>v(`collector-${$.name}-${T.key}`)},"••••••••",8,Kg)):(c(),d(K,{key:1},[n("span",null,h(T.value),1),T.secret?(c(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:z=>v(`collector-${$.name}-${T.key}`)}," Hide ",8,Vg)):X("",!0)],64))]))),128)):(c(),d(K,{key:1},[_e("-")],64))])]))),128))])])):(c(),d("div",Bg,"No collectors")),y[43]||(y[43]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),x.value.length?(c(),d("table",Wg,[y[5]||(y[5]=n("thead",null,[n("tr",null,[n("th",null,"Buffer"),n("th",null,"Usage"),n("th",null,"Fill %")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(x.value,$=>(c(),d("tr",{key:$.name},[n("td",null,h($.name),1),n("td",null,h($.current.toLocaleString())+" / "+h($.max.toLocaleString()),1),n("td",null,[n("div",Jg,[n("div",Qg,[n("div",{class:M(["ss-dash-bar-fill",$.percent>=100?"ss-dash-bar-fill-warn":""]),style:Ke({width:$.percent+"%"})},null,6)]),n("span",{class:M(["ss-dash-bar-pct",$.percent>=100?"ss-dash-bar-pct-warn":""])},h($.percent)+"%",3)])])]))),128))])])):(c(),d("div",zg,"No buffer data")),y[44]||(y[44]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),P.value.length?(c(),d("table",Yg,[y[6]||(y[6]=n("thead",null,[n("tr",null,[n("th",null,"Timer"),n("th",null,"Status"),n("th",null,"Interval")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(P.value,$=>(c(),d("tr",{key:$.key},[n("td",null,h($.label),1),n("td",null,[n("span",{class:M(["ss-dash-dot",b($.active?"active":"inactive")])},null,2),_e(" "+h($.active?"active":"inactive"),1)]),n("td",Xg,h($.interval),1)]))),128))])])):(c(),d("div",Gg,"No timer data")),y[45]||(y[45]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),L.value.length?(c(),d("table",e1,[y[7]||(y[7]=n("thead",null,[n("tr",null,[n("th",null,"Integration"),n("th",null,"Status"),n("th",null,"Details")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(L.value,$=>(c(),d("tr",{key:$.key},[n("td",null,h($.label),1),n("td",null,[n("span",{class:M(["ss-dash-dot",b($.status)])},null,2),_e(" "+h($.status),1)]),n("td",t1,h($.details),1)]))),128))])])):(c(),d("div",Zg,"No integration data")),o.value.storage?(c(),d(K,{key:8},[y[16]||(y[16]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",s1,[y[14]||(y[14]=n("thead",null,[n("tr",null,[n("th",null,"Metric"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[8]||(y[8]=n("td",null,"Status",-1)),n("td",null,[n("span",{class:M(["ss-dash-dot",b(o.value.storage.ready?"ready":"unavailable")])},null,2),_e(" "+h(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[y[9]||(y[9]=n("td",null,"DB Path",-1)),n("td",n1,h(o.value.storage.dbPath),1)]),n("tr",null,[y[10]||(y[10]=n("td",null,"File Size",-1)),n("td",null,h(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[11]||(y[11]=n("td",null,"WAL Size",-1)),n("td",null,h(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[12]||(y[12]=n("td",null,"Retention",-1)),n("td",null,h(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[y[13]||(y[13]=n("td",null,"Last Cleanup",-1)),n("td",null,h(w(bt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(c(),d("table",l1,[y[15]||(y[15]=n("thead",null,[n("tr",null,[n("th",null,"Table"),n("th",null,"Rows")])],-1)),n("tbody",null,[(c(!0),d(K,null,ye(o.value.storage.tables,$=>(c(),d("tr",{key:$.name},[n("td",o1,h($.name),1),n("td",null,h($.rowCount.toLocaleString()),1)]))),128))])])):X("",!0)],64)):X("",!0),y[46]||(y[46]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",a1,[y[24]||(y[24]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[17]||(y[17]=n("td",null,"intervalMs",-1)),n("td",null,h(o.value.config?.intervalMs),1)]),n("tr",null,[y[18]||(y[18]=n("td",null,"transport",-1)),n("td",null,h(o.value.config?.transport),1)]),n("tr",null,[y[19]||(y[19]=n("td",null,"channelName",-1)),n("td",null,h(o.value.config?.channelName),1)]),n("tr",null,[y[20]||(y[20]=n("td",null,"endpoint",-1)),n("td",null,h(o.value.config?.endpoint===!1?"false":o.value.config?.endpoint),1)]),n("tr",null,[y[21]||(y[21]=n("td",null,"skipInTest",-1)),n("td",null,h(o.value.config?.skipInTest),1)]),n("tr",null,[y[22]||(y[22]=n("td",null,"onStats callback",-1)),n("td",null,h(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[y[23]||(y[23]=n("td",null,"shouldShow callback",-1)),n("td",null,h(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),y[47]||(y[47]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",i1,[y[40]||(y[40]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[25]||(y[25]=n("td",null,"enabled",-1)),n("td",null,h(o.value.devToolbar?.enabled),1)]),n("tr",null,[y[26]||(y[26]=n("td",null,"tracing",-1)),n("td",null,h(o.value.devToolbar?.tracing),1)]),n("tr",null,[y[27]||(y[27]=n("td",null,"dashboard",-1)),n("td",null,h(o.value.devToolbar?.dashboard),1)]),n("tr",null,[y[28]||(y[28]=n("td",null,"dashboardPath",-1)),n("td",r1,h(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[y[29]||(y[29]=n("td",null,"debugEndpoint",-1)),n("td",u1,[u.value.has("cfg-debugEndpoint")?(c(),d(K,{key:1},[_e(h(o.value.devToolbar?.debugEndpoint)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[1]||(y[1]=$=>v("cfg-debugEndpoint"))}," Hide ")],64)):(c(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[0]||(y[0]=$=>v("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[y[30]||(y[30]=n("td",null,"maxQueries",-1)),n("td",null,h(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[y[31]||(y[31]=n("td",null,"maxEvents",-1)),n("td",null,h(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[y[32]||(y[32]=n("td",null,"maxEmails",-1)),n("td",null,h(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[y[33]||(y[33]=n("td",null,"maxTraces",-1)),n("td",null,h(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[y[34]||(y[34]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,h(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[y[35]||(y[35]=n("td",null,"retentionDays",-1)),n("td",null,h(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[y[36]||(y[36]=n("td",null,"dbPath",-1)),n("td",c1,[u.value.has("cfg-dbPath")?(c(),d(K,{key:1},[_e(h(o.value.devToolbar?.dbPath)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[3]||(y[3]=$=>v("cfg-dbPath"))}," Hide ")],64)):(c(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[2]||(y[2]=$=>v("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[y[37]||(y[37]=n("td",null,"persistDebugData",-1)),n("td",null,h(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[y[38]||(y[38]=n("td",null,"excludeFromTracing",-1)),n("td",d1,h(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[y[39]||(y[39]=n("td",null,"customPanes",-1)),n("td",null,h(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(c(),d("div",Og,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|