nuxt-devtools-observatory 0.1.32 → 0.1.33
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/README.md +5 -0
- package/client/.env.example +1 -0
- package/client/dist/assets/index-BqKYgjVB.js +20 -0
- package/client/dist/assets/index-bs1JBJ2u.css +1 -0
- package/client/dist/index.html +2 -2
- package/client/src/App.vue +4 -0
- package/client/src/components/Flamegraph.vue +4 -4
- package/client/src/components/SpanInspector.vue +1 -1
- package/client/src/composables/composable-search.ts +3 -0
- package/client/src/composables/trace-render-aggregation.ts +11 -2
- package/client/src/composables/useVirtualizationConfig.ts +40 -0
- package/client/src/composables/useVirtualizationFlags.ts +129 -0
- package/client/src/views/ComposableTracker.vue +212 -71
- package/client/src/views/FetchDashboard.vue +181 -16
- package/client/src/views/ProvideInjectGraph.vue +41 -18
- package/client/src/views/RenderHeatmap.vue +329 -75
- package/client/src/views/TraceViewer.vue +190 -20
- package/client/src/views/TransitionTimeline.vue +112 -19
- package/dist/module.d.mts +5 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +11 -22
- package/dist/runtime/composables/render-registry.js +6 -4
- package/dist/runtime/instrumentation/asyncData.d.ts +1 -1
- package/dist/runtime/instrumentation/fetch.d.ts +7 -1
- package/dist/runtime/instrumentation/fetch.js +22 -1
- package/dist/runtime/plugin.js +4 -1
- package/dist/runtime/test-bridge.d.ts +18 -0
- package/dist/runtime/test-bridge.js +86 -0
- package/package.json +14 -3
- package/client/dist/assets/index-5Wl1XYRH.js +0 -17
- package/client/dist/assets/index-DT_QUiIh.css +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function s(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=s(o);fetch(o.href,i)}})();/**
|
|
2
|
-
* @vue/shared v3.5.30
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/function zn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Ce={},rs=[],_t=()=>{},sr=()=>!1,on=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jn=e=>e.startsWith("onUpdate:"),Ne=Object.assign,Gn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Ci=Object.prototype.hasOwnProperty,$e=(e,t)=>Ci.call(e,t),ue=Array.isArray,is=e=>Os(e)==="[object Map]",rn=e=>Os(e)==="[object Set]",mo=e=>Os(e)==="[object Date]",pe=e=>typeof e=="function",Ee=e=>typeof e=="string",ht=e=>typeof e=="symbol",we=e=>e!==null&&typeof e=="object",nr=e=>(we(e)||pe(e))&&pe(e.then)&&pe(e.catch),or=Object.prototype.toString,Os=e=>or.call(e),Si=e=>Os(e).slice(8,-1),rr=e=>Os(e)==="[object Object]",qn=e=>Ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hs=zn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ln=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Ti=/-\w/g,ot=ln(e=>e.replace(Ti,t=>t.slice(1).toUpperCase())),Mi=/\B([A-Z])/g,Xt=ln(e=>e.replace(Mi,"-$1").toLowerCase()),ir=ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),bn=ln(e=>e?`on${ir(e)}`:""),vt=(e,t)=>!Object.is(e,t),js=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},lr=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},an=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ei=e=>{const t=Ee(e)?Number(e):NaN;return isNaN(t)?e:t};let vo;const cn=()=>vo||(vo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Te(e){if(ue(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],o=Ee(n)?Ri(n):Te(n);if(o)for(const i in o)t[i]=o[i]}return t}else if(Ee(e)||we(e))return e}const Ii=/;(?![^(]*\))/g,Ni=/:([^]+)/,Oi=/\/\*[^]*?\*\//g;function Ri(e){const t={};return e.replace(Oi,"").split(Ii).forEach(s=>{if(s){const n=s.split(Ni);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ee(e){let t="";if(Ee(e))t=e;else if(ue(e))for(let s=0;s<e.length;s++){const n=ee(e[s]);n&&(t+=n+" ")}else if(we(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Ai="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Fi=zn(Ai);function ar(e){return!!e||e===""}function Li(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Rs(e[n],t[n]);return s}function Rs(e,t){if(e===t)return!0;let s=mo(e),n=mo(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=ht(e),n=ht(t),s||n)return e===t;if(s=ue(e),n=ue(t),s||n)return s&&n?Li(e,t):!1;if(s=we(e),n=we(t),s||n){if(!s||!n)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!Rs(e[l],t[l]))return!1}}return String(e)===String(t)}function Pi(e,t){return e.findIndex(s=>Rs(s,t))}const cr=e=>!!(e&&e.__v_isRef===!0),p=e=>Ee(e)?e:e==null?"":ue(e)||we(e)&&(e.toString===or||!pe(e.toString))?cr(e)?p(e.value):JSON.stringify(e,ur,2):String(e),ur=(e,t)=>cr(t)?ur(e,t.value):is(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o],i)=>(s[yn(n,i)+" =>"]=o,s),{})}:rn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>yn(s))}:ht(t)?yn(t):we(t)&&!ue(t)&&!rr(t)?String(t):t,yn=(e,t="")=>{var s;return ht(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.30
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let Qe;class Di{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,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function ji(){return Qe}let Se;const $n=new WeakSet;class dr{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||pr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_o(this),mr(this);const t=Se,s=rt;Se=this,rt=!0;try{return this.fn()}finally{vr(this),Se=t,rt=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Yn(t);this.deps=this.depsTail=void 0,_o(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?$n.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){In(this)&&this.run()}get dirty(){return In(this)}}let fr=0,gs,bs;function pr(e,t=!1){if(e.flags|=8,t){e.next=bs,bs=e;return}e.next=gs,gs=e}function Xn(){fr++}function Qn(){if(--fr>0)return;if(bs){let t=bs;for(bs=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;gs;){let t=gs;for(gs=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function mr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vr(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),Yn(n),Vi(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function In(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(_r(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _r(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xs)||(e.globalVersion=xs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!In(e))))return;e.flags|=2;const t=e.dep,s=Se,n=rt;Se=e,rt=!0;try{mr(e);const o=e.fn(e._value);(t.version===0||vt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Se=s,rt=n,vr(e),e.flags&=-3}}function Yn(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Yn(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Vi(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 hr=[];function Ct(){hr.push(rt),rt=!1}function St(){const e=hr.pop();rt=e===void 0?!0:e}function _o(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Se;Se=void 0;try{t()}finally{Se=s}}}let xs=0;class Hi{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 Zn{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(!Se||!rt||Se===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Se)s=this.activeLink=new Hi(Se,this),Se.deps?(s.prevDep=Se.depsTail,Se.depsTail.nextDep=s,Se.depsTail=s):Se.deps=Se.depsTail=s,gr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Se.depsTail,s.nextDep=void 0,Se.depsTail.nextDep=s,Se.depsTail=s,Se.deps===s&&(Se.deps=n)}return s}trigger(t){this.version++,xs++,this.notify(t)}notify(t){Xn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Qn()}}}function gr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)gr(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Nn=new WeakMap,Jt=Symbol(""),On=Symbol(""),Cs=Symbol("");function Ue(e,t,s){if(rt&&Se){let n=Nn.get(e);n||Nn.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new Zn),o.map=n,o.key=s),o.track()}}function kt(e,t,s,n,o,i){const l=Nn.get(e);if(!l){xs++;return}const a=c=>{c&&c.trigger()};if(Xn(),t==="clear")l.forEach(a);else{const c=ue(e),m=c&&qn(s);if(c&&s==="length"){const u=Number(n);l.forEach((_,C)=>{(C==="length"||C===Cs||!ht(C)&&C>=u)&&a(_)})}else switch((s!==void 0||l.has(void 0))&&a(l.get(s)),m&&a(l.get(Cs)),t){case"add":c?m&&a(l.get("length")):(a(l.get(Jt)),is(e)&&a(l.get(On)));break;case"delete":c||(a(l.get(Jt)),is(e)&&a(l.get(On)));break;case"set":is(e)&&a(l.get(Jt));break}}Qn()}function Yt(e){const t=be(e);return t===e?t:(Ue(t,"iterate",Cs),st(e)?t:t.map(it))}function un(e){return Ue(e=be(e),"iterate",Cs),e}function pt(e,t){return Tt(e)?us(Gt(e)?it(t):t):it(t)}const Ui={__proto__:null,[Symbol.iterator](){return wn(this,Symbol.iterator,e=>pt(this,e))},concat(...e){return Yt(this).concat(...e.map(t=>ue(t)?Yt(t):t))},entries(){return wn(this,"entries",e=>(e[1]=pt(this,e[1]),e))},every(e,t){return gt(this,"every",e,t,void 0,arguments)},filter(e,t){return gt(this,"filter",e,t,s=>s.map(n=>pt(this,n)),arguments)},find(e,t){return gt(this,"find",e,t,s=>pt(this,s),arguments)},findIndex(e,t){return gt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return gt(this,"findLast",e,t,s=>pt(this,s),arguments)},findLastIndex(e,t){return gt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return gt(this,"forEach",e,t,void 0,arguments)},includes(...e){return kn(this,"includes",e)},indexOf(...e){return kn(this,"indexOf",e)},join(e){return Yt(this).join(e)},lastIndexOf(...e){return kn(this,"lastIndexOf",e)},map(e,t){return gt(this,"map",e,t,void 0,arguments)},pop(){return fs(this,"pop")},push(...e){return fs(this,"push",e)},reduce(e,...t){return ho(this,"reduce",e,t)},reduceRight(e,...t){return ho(this,"reduceRight",e,t)},shift(){return fs(this,"shift")},some(e,t){return gt(this,"some",e,t,void 0,arguments)},splice(...e){return fs(this,"splice",e)},toReversed(){return Yt(this).toReversed()},toSorted(e){return Yt(this).toSorted(e)},toSpliced(...e){return Yt(this).toSpliced(...e)},unshift(...e){return fs(this,"unshift",e)},values(){return wn(this,"values",e=>pt(this,e))}};function wn(e,t,s){const n=un(e),o=n[t]();return n!==e&&!st(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=s(i.value)),i}),o}const Bi=Array.prototype;function gt(e,t,s,n,o,i){const l=un(e),a=l!==e&&!st(e),c=l[t];if(c!==Bi[t]){const _=c.apply(e,i);return a?it(_):_}let m=s;l!==e&&(a?m=function(_,C){return s.call(this,pt(e,_),C,e)}:s.length>2&&(m=function(_,C){return s.call(this,_,C,e)}));const u=c.call(l,m,n);return a&&o?o(u):u}function ho(e,t,s,n){const o=un(e),i=o!==e&&!st(e);let l=s,a=!1;o!==e&&(i?(a=n.length===0,l=function(m,u,_){return a&&(a=!1,m=pt(e,m)),s.call(this,m,pt(e,u),_,e)}):s.length>3&&(l=function(m,u,_){return s.call(this,m,u,_,e)}));const c=o[t](l,...n);return a?pt(e,c):c}function kn(e,t,s){const n=be(e);Ue(n,"iterate",Cs);const o=n[t](...s);return(o===-1||o===!1)&&no(s[0])?(s[0]=be(s[0]),n[t](...s)):o}function fs(e,t,s=[]){Ct(),Xn();const n=be(e)[t].apply(e,s);return Qn(),St(),n}const Ki=zn("__proto__,__v_isRef,__isVue"),br=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ht));function Wi(e){ht(e)||(e=String(e));const t=be(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class yr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(o?i?tl:xr:i?kr:wr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const l=ue(t);if(!o){let c;if(l&&(c=Ui[s]))return c;if(s==="hasOwnProperty")return Wi}const a=Reflect.get(t,s,Be(t)?t:n);if((ht(s)?br.has(s):Ki(s))||(o||Ue(t,"get",s),i))return a;if(Be(a)){const c=l&&qn(s)?a:a.value;return o&&we(c)?An(c):c}return we(a)?o?An(a):to(a):a}}class $r extends yr{constructor(t=!1){super(!1,t)}set(t,s,n,o){let i=t[s];const l=ue(t)&&qn(s);if(!this._isShallow){const m=Tt(i);if(!st(n)&&!Tt(n)&&(i=be(i),n=be(n)),!l&&Be(i)&&!Be(n))return m||(i.value=n),!0}const a=l?Number(s)<t.length:$e(t,s),c=Reflect.set(t,s,n,Be(t)?t:o);return t===be(o)&&(a?vt(n,i)&&kt(t,"set",s,n):kt(t,"add",s,n)),c}deleteProperty(t,s){const n=$e(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&kt(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!ht(s)||!br.has(s))&&Ue(t,"has",s),n}ownKeys(t){return Ue(t,"iterate",ue(t)?"length":Jt),Reflect.ownKeys(t)}}class zi extends yr{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Ji=new $r,Gi=new zi,qi=new $r(!0);const Rn=e=>e,Ls=e=>Reflect.getPrototypeOf(e);function Xi(e,t,s){return function(...n){const o=this.__v_raw,i=be(o),l=is(i),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,m=o[e](...n),u=s?Rn:t?us:it;return!t&&Ue(i,"iterate",c?On:Jt),Ne(Object.create(m),{next(){const{value:_,done:C}=m.next();return C?{value:_,done:C}:{value:a?[u(_[0]),u(_[1])]:u(_),done:C}}})}}function Ps(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qi(e,t){const s={get(o){const i=this.__v_raw,l=be(i),a=be(o);e||(vt(o,a)&&Ue(l,"get",o),Ue(l,"get",a));const{has:c}=Ls(l),m=t?Rn:e?us:it;if(c.call(l,o))return m(i.get(o));if(c.call(l,a))return m(i.get(a));i!==l&&i.get(o)},get size(){const o=this.__v_raw;return!e&&Ue(be(o),"iterate",Jt),o.size},has(o){const i=this.__v_raw,l=be(i),a=be(o);return e||(vt(o,a)&&Ue(l,"has",o),Ue(l,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)},forEach(o,i){const l=this,a=l.__v_raw,c=be(a),m=t?Rn:e?us:it;return!e&&Ue(c,"iterate",Jt),a.forEach((u,_)=>o.call(i,m(u),m(_),l))}};return Ne(s,e?{add:Ps("add"),set:Ps("set"),delete:Ps("delete"),clear:Ps("clear")}:{add(o){const i=be(this),l=Ls(i),a=be(o),c=!t&&!st(o)&&!Tt(o)?a:o;return l.has.call(i,c)||vt(o,c)&&l.has.call(i,o)||vt(a,c)&&l.has.call(i,a)||(i.add(c),kt(i,"add",c,c)),this},set(o,i){!t&&!st(i)&&!Tt(i)&&(i=be(i));const l=be(this),{has:a,get:c}=Ls(l);let m=a.call(l,o);m||(o=be(o),m=a.call(l,o));const u=c.call(l,o);return l.set(o,i),m?vt(i,u)&&kt(l,"set",o,i):kt(l,"add",o,i),this},delete(o){const i=be(this),{has:l,get:a}=Ls(i);let c=l.call(i,o);c||(o=be(o),c=l.call(i,o)),a&&a.call(i,o);const m=i.delete(o);return c&&kt(i,"delete",o,void 0),m},clear(){const o=be(this),i=o.size!==0,l=o.clear();return i&&kt(o,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Xi(o,e,t)}),s}function eo(e,t){const s=Qi(e,t);return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get($e(s,o)&&o in n?s:n,o,i)}const Yi={get:eo(!1,!1)},Zi={get:eo(!1,!0)},el={get:eo(!0,!1)};const wr=new WeakMap,kr=new WeakMap,xr=new WeakMap,tl=new WeakMap;function sl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nl(e){return e.__v_skip||!Object.isExtensible(e)?0:sl(Si(e))}function to(e){return Tt(e)?e:so(e,!1,Ji,Yi,wr)}function ol(e){return so(e,!1,qi,Zi,kr)}function An(e){return so(e,!0,Gi,el,xr)}function so(e,t,s,n,o){if(!we(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=nl(e);if(i===0)return e;const l=o.get(e);if(l)return l;const a=new Proxy(e,i===2?n:s);return o.set(e,a),a}function Gt(e){return Tt(e)?Gt(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function st(e){return!!(e&&e.__v_isShallow)}function no(e){return e?!!e.__v_raw:!1}function be(e){const t=e&&e.__v_raw;return t?be(t):e}function rl(e){return!$e(e,"__v_skip")&&Object.isExtensible(e)&&lr(e,"__v_skip",!0),e}const it=e=>we(e)?to(e):e,us=e=>we(e)?An(e):e;function Be(e){return e?e.__v_isRef===!0:!1}function ne(e){return Cr(e,!1)}function il(e){return Cr(e,!0)}function Cr(e,t){return Be(e)?e:new ll(e,t)}class ll{constructor(t,s){this.dep=new Zn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:be(t),this._value=s?t:it(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||st(t)||Tt(t);t=n?t:be(t),vt(t,s)&&(this._rawValue=t,this._value=n?t:it(t),this.dep.trigger())}}function al(e){e.dep&&e.dep.trigger()}function xe(e){return Be(e)?e.value:e}const cl={get:(e,t,s)=>t==="__v_raw"?e:xe(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return Be(o)&&!Be(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Sr(e){return Gt(e)?e:new Proxy(e,cl)}class ul{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Zn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Se!==this)return pr(this,!0),!0}get value(){const t=this.dep.track();return _r(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function dl(e,t,s=!1){let n,o;return pe(e)?n=e:(n=e.get,o=e.set),new ul(n,o,s)}const Ds={},zs=new WeakMap;let Ut;function fl(e,t=!1,s=Ut){if(s){let n=zs.get(s);n||zs.set(s,n=[]),n.push(e)}}function pl(e,t,s=Ce){const{immediate:n,deep:o,once:i,scheduler:l,augmentJob:a,call:c}=s,m=I=>o?I:st(I)||o===!1||o===0?xt(I,1):xt(I);let u,_,C,w,M=!1,h=!1;if(Be(e)?(_=()=>e.value,M=st(e)):Gt(e)?(_=()=>m(e),M=!0):ue(e)?(h=!0,M=e.some(I=>Gt(I)||st(I)),_=()=>e.map(I=>{if(Be(I))return I.value;if(Gt(I))return m(I);if(pe(I))return c?c(I,2):I()})):pe(e)?t?_=c?()=>c(e,2):e:_=()=>{if(C){Ct();try{C()}finally{St()}}const I=Ut;Ut=u;try{return c?c(e,3,[w]):e(w)}finally{Ut=I}}:_=_t,t&&o){const I=_,W=o===!0?1/0:o;_=()=>xt(I(),W)}const b=ji(),P=()=>{u.stop(),b&&b.active&&Gn(b.effects,u)};if(i&&t){const I=t;t=(...W)=>{I(...W),P()}}let K=h?new Array(e.length).fill(Ds):Ds;const F=I=>{if(!(!(u.flags&1)||!u.dirty&&!I))if(t){const W=u.run();if(o||M||(h?W.some((j,z)=>vt(j,K[z])):vt(W,K))){C&&C();const j=Ut;Ut=u;try{const z=[W,K===Ds?void 0:h&&K[0]===Ds?[]:K,w];K=W,c?c(t,3,z):t(...z)}finally{Ut=j}}}else u.run()};return a&&a(F),u=new dr(_),u.scheduler=l?()=>l(F,!1):F,w=I=>fl(I,!1,u),C=u.onStop=()=>{const I=zs.get(u);if(I){if(c)c(I,4);else for(const W of I)W();zs.delete(u)}},t?n?F(!0):K=u.run():l?l(F.bind(null,!0),!0):u.run(),P.pause=u.pause.bind(u),P.resume=u.resume.bind(u),P.stop=P,P}function xt(e,t=1/0,s){if(t<=0||!we(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Be(e))xt(e.value,t,s);else if(ue(e))for(let n=0;n<e.length;n++)xt(e[n],t,s);else if(rn(e)||is(e))e.forEach(n=>{xt(n,t,s)});else if(rr(e)){for(const n in e)xt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&xt(e[n],t,s)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.30
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function As(e,t,s,n){try{return n?e(...n):e()}catch(o){dn(o,t,s)}}function lt(e,t,s,n){if(pe(e)){const o=As(e,t,s,n);return o&&nr(o)&&o.catch(i=>{dn(i,t,s)}),o}if(ue(e)){const o=[];for(let i=0;i<e.length;i++)o.push(lt(e[i],t,s,n));return o}}function dn(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Ce;if(t){let a=t.parent;const c=t.proxy,m=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const u=a.ec;if(u){for(let _=0;_<u.length;_++)if(u[_](e,c,m)===!1)return}a=a.parent}if(i){Ct(),As(i,null,10,[e,c,m]),St();return}}ml(e,s,o,n,l)}function ml(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const ze=[];let dt=-1;const ls=[];let Ot=null,ns=0;const Tr=Promise.resolve();let Js=null;function Mr(e){const t=Js||Tr;return e?t.then(this?e.bind(this):e):t}function vl(e){let t=dt+1,s=ze.length;for(;t<s;){const n=t+s>>>1,o=ze[n],i=Ss(o);i<e||i===e&&o.flags&2?t=n+1:s=n}return t}function oo(e){if(!(e.flags&1)){const t=Ss(e),s=ze[ze.length-1];!s||!(e.flags&2)&&t>=Ss(s)?ze.push(e):ze.splice(vl(t),0,e),e.flags|=1,Er()}}function Er(){Js||(Js=Tr.then(Nr))}function _l(e){ue(e)?ls.push(...e):Ot&&e.id===-1?Ot.splice(ns+1,0,e):e.flags&1||(ls.push(e),e.flags|=1),Er()}function go(e,t,s=dt+1){for(;s<ze.length;s++){const n=ze[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ze.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ir(e){if(ls.length){const t=[...new Set(ls)].sort((s,n)=>Ss(s)-Ss(n));if(ls.length=0,Ot){Ot.push(...t);return}for(Ot=t,ns=0;ns<Ot.length;ns++){const s=Ot[ns];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ot=null,ns=0}}const Ss=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Nr(e){try{for(dt=0;dt<ze.length;dt++){const t=ze[dt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),As(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;dt<ze.length;dt++){const t=ze[dt];t&&(t.flags&=-2)}dt=-1,ze.length=0,Ir(),Js=null,(ze.length||ls.length)&&Nr()}}let tt=null,Or=null;function Gs(e){const t=tt;return tt=e,Or=e&&e.type.__scopeId||null,t}function Ts(e,t=tt,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Qs(-1);const i=Gs(t);let l;try{l=e(...o)}finally{Gs(i),n._d&&Qs(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Ft(e,t){if(tt===null)return e;const s=_n(tt),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,l,a,c=Ce]=t[o];i&&(pe(i)&&(i={mounted:i,updated:i}),i.deep&&xt(l),n.push({dir:i,instance:s,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function Dt(e,t,s,n){const o=e.dirs,i=t&&t.dirs;for(let l=0;l<o.length;l++){const a=o[l];i&&(a.oldValue=i[l].value);let c=a.dir[n];c&&(Ct(),lt(c,s,8,[e.el,a,e,t]),St())}}function hl(e,t){if(Ge){let s=Ge.provides;const n=Ge.parent&&Ge.parent.provides;n===s&&(s=Ge.provides=Object.create(n)),s[e]=t}}function Vs(e,t,s=!1){const n=ui();if(n||as){let o=as?as._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&pe(t)?t.call(n&&n.proxy):t}}const gl=Symbol.for("v-scx"),bl=()=>Vs(gl);function At(e,t,s){return Rr(e,t,s)}function Rr(e,t,s=Ce){const{immediate:n,deep:o,flush:i,once:l}=s,a=Ne({},s),c=t&&n||!t&&i!=="post";let m;if(Is){if(i==="sync"){const w=bl();m=w.__watcherHandles||(w.__watcherHandles=[])}else if(!c){const w=()=>{};return w.stop=_t,w.resume=_t,w.pause=_t,w}}const u=Ge;a.call=(w,M,h)=>lt(w,u,M,h);let _=!1;i==="post"?a.scheduler=w=>{Xe(w,u&&u.suspense)}:i!=="sync"&&(_=!0,a.scheduler=(w,M)=>{M?w():oo(w)}),a.augmentJob=w=>{t&&(w.flags|=4),_&&(w.flags|=2,u&&(w.id=u.uid,w.i=u))};const C=pl(e,t,a);return Is&&(m?m.push(C):c&&C()),C}function yl(e,t,s){const n=this.proxy,o=Ee(e)?e.includes(".")?Ar(n,e):()=>n[e]:e.bind(n,n);let i;pe(t)?i=t:(i=t.handler,s=t);const l=Fs(this),a=Rr(o,i.bind(n),s);return l(),a}function Ar(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const $l=Symbol("_vte"),Fr=e=>e.__isTeleport,ft=Symbol("_leaveCb"),ps=Symbol("_enterCb");function wl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Br(()=>{e.isMounted=!0}),ro(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],Lr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},Pr=e=>{const t=e.subTree;return t.component?Pr(t.component):t},kl={name:"BaseTransition",props:Lr,setup(e,{slots:t}){const s=ui(),n=wl();return()=>{const o=t.default&&Vr(t.default(),!0);if(!o||!o.length)return;const i=Dr(o),l=be(e),{mode:a}=l;if(n.isLeaving)return xn(i);const c=bo(i);if(!c)return xn(i);let m=Fn(c,l,n,s,_=>m=_);c.type!==Je&&Ms(c,m);let u=s.subTree&&bo(s.subTree);if(u&&u.type!==Je&&!Kt(u,c)&&Pr(s).type!==Je){let _=Fn(u,l,n,s);if(Ms(u,_),a==="out-in"&&c.type!==Je)return n.isLeaving=!0,_.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete _.afterLeave,u=void 0},xn(i);a==="in-out"&&c.type!==Je?_.delayLeave=(C,w,M)=>{const h=jr(n,u);h[String(u.key)]=u,C[ft]=()=>{w(),C[ft]=void 0,delete m.delayedLeave,u=void 0},m.delayedLeave=()=>{M(),delete m.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function Dr(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Je){t=s;break}}return t}const xl=kl;function jr(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function Fn(e,t,s,n,o){const{appear:i,mode:l,persisted:a=!1,onBeforeEnter:c,onEnter:m,onAfterEnter:u,onEnterCancelled:_,onBeforeLeave:C,onLeave:w,onAfterLeave:M,onLeaveCancelled:h,onBeforeAppear:b,onAppear:P,onAfterAppear:K,onAppearCancelled:F}=t,I=String(e.key),W=jr(s,e),j=(G,le)=>{G&<(G,n,9,le)},z=(G,le)=>{const me=le[1];j(G,le),ue(G)?G.every(X=>X.length<=1)&&me():G.length<=1&&me()},J={mode:l,persisted:a,beforeEnter(G){let le=c;if(!s.isMounted)if(i)le=b||c;else return;G[ft]&&G[ft](!0);const me=W[I];me&&Kt(e,me)&&me.el[ft]&&me.el[ft](),j(le,[G])},enter(G){if(W[I]===e)return;let le=m,me=u,X=_;if(!s.isMounted)if(i)le=P||m,me=K||u,X=F||_;else return;let R=!1;G[ps]=L=>{R||(R=!0,L?j(X,[G]):j(me,[G]),J.delayedLeave&&J.delayedLeave(),G[ps]=void 0)};const V=G[ps].bind(null,!1);le?z(le,[G,V]):V()},leave(G,le){const me=String(e.key);if(G[ps]&&G[ps](!0),s.isUnmounting)return le();j(C,[G]);let X=!1;G[ft]=V=>{X||(X=!0,le(),V?j(h,[G]):j(M,[G]),G[ft]=void 0,W[me]===e&&delete W[me])};const R=G[ft].bind(null,!1);W[me]=e,w?z(w,[G,R]):R()},clone(G){const le=Fn(G,t,s,n,o);return o&&o(le),le}};return J}function xn(e){if(fn(e))return e=Lt(e),e.children=null,e}function bo(e){if(!fn(e))return Fr(e.type)&&e.children?Dr(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&pe(s.default))return s.default()}}function Ms(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ms(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 Vr(e,t=!1,s){let n=[],o=0;for(let i=0;i<e.length;i++){let l=e[i];const a=s==null?l.key:String(s)+String(l.key!=null?l.key:i);l.type===fe?(l.patchFlag&128&&o++,n=n.concat(Vr(l.children,t,a))):(t||l.type!==Je)&&n.push(a!=null?Lt(l,{key:a}):l)}if(o>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function nt(e,t){return pe(e)?Ne({name:e.name},t,{setup:e}):e}function Hr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function yo(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const qs=new WeakMap;function ys(e,t,s,n,o=!1){if(ue(e)){e.forEach((h,b)=>ys(h,t&&(ue(t)?t[b]:t),s,n,o));return}if($s(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&ys(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?_n(n.component):n.el,l=o?null:i,{i:a,r:c}=e,m=t&&t.r,u=a.refs===Ce?a.refs={}:a.refs,_=a.setupState,C=be(_),w=_===Ce?sr:h=>yo(u,h)?!1:$e(C,h),M=(h,b)=>!(b&&yo(u,b));if(m!=null&&m!==c){if($o(t),Ee(m))u[m]=null,w(m)&&(_[m]=null);else if(Be(m)){const h=t;M(m,h.k)&&(m.value=null),h.k&&(u[h.k]=null)}}if(pe(c))As(c,a,12,[l,u]);else{const h=Ee(c),b=Be(c);if(h||b){const P=()=>{if(e.f){const K=h?w(c)?_[c]:u[c]:M()||!e.k?c.value:u[e.k];if(o)ue(K)&&Gn(K,i);else if(ue(K))K.includes(i)||K.push(i);else if(h)u[c]=[i],w(c)&&(_[c]=u[c]);else{const F=[i];M(c,e.k)&&(c.value=F),e.k&&(u[e.k]=F)}}else h?(u[c]=l,w(c)&&(_[c]=l)):b&&(M(c,e.k)&&(c.value=l),e.k&&(u[e.k]=l))};if(l){const K=()=>{P(),qs.delete(e)};K.id=-1,qs.set(e,K),Xe(K,s)}else $o(e),P()}}}function $o(e){const t=qs.get(e);t&&(t.flags|=8,qs.delete(e))}cn().requestIdleCallback;cn().cancelIdleCallback;const $s=e=>!!e.type.__asyncLoader,fn=e=>e.type.__isKeepAlive;function Cl(e,t){Ur(e,"a",t)}function Sl(e,t){Ur(e,"da",t)}function Ur(e,t,s=Ge){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(pn(t,n,s),s){let o=s.parent;for(;o&&o.parent;)fn(o.parent.vnode)&&Tl(n,t,s,o),o=o.parent}}function Tl(e,t,s,n){const o=pn(t,e,n,!0);Kr(()=>{Gn(n[t],o)},s)}function pn(e,t,s=Ge,n=!1){if(s){const o=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...l)=>{Ct();const a=Fs(s),c=lt(t,s,e,l);return a(),St(),c});return n?o.unshift(i):o.push(i),i}}const Mt=e=>(t,s=Ge)=>{(!Is||e==="sp")&&pn(e,(...n)=>t(...n),s)},Ml=Mt("bm"),Br=Mt("m"),El=Mt("bu"),Il=Mt("u"),ro=Mt("bum"),Kr=Mt("um"),Nl=Mt("sp"),Ol=Mt("rtg"),Rl=Mt("rtc");function Al(e,t=Ge){pn("ec",e,t)}const Fl=Symbol.for("v-ndc");function he(e,t,s,n){let o;const i=s,l=ue(e);if(l||Ee(e)){const a=l&&Gt(e);let c=!1,m=!1;a&&(c=!st(e),m=Tt(e),e=un(e)),o=new Array(e.length);for(let u=0,_=e.length;u<_;u++)o[u]=t(c?m?us(it(e[u])):it(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i)}else if(we(e))if(e[Symbol.iterator])o=Array.from(e,(a,c)=>t(a,c,void 0,i));else{const a=Object.keys(e);o=new Array(a.length);for(let c=0,m=a.length;c<m;c++){const u=a[c];o[c]=t(e[u],u,c,i)}}else o=[];return o}const Ln=e=>e?di(e)?_n(e):Ln(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=>Ln(e.parent),$root:e=>Ln(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zr(e),$forceUpdate:e=>e.f||(e.f=()=>{oo(e.update)}),$nextTick:e=>e.n||(e.n=Mr.bind(e.proxy)),$watch:e=>yl.bind(e)}),Cn=(e,t)=>e!==Ce&&!e.__isScriptSetup&&$e(e,t),Ll={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:i,accessCache:l,type:a,appContext:c}=e;if(t[0]!=="$"){const C=l[t];if(C!==void 0)switch(C){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return i[t]}else{if(Cn(n,t))return l[t]=1,n[t];if(o!==Ce&&$e(o,t))return l[t]=2,o[t];if($e(i,t))return l[t]=3,i[t];if(s!==Ce&&$e(s,t))return l[t]=4,s[t];Pn&&(l[t]=0)}}const m=ws[t];let u,_;if(m)return t==="$attrs"&&Ue(e.attrs,"get",""),m(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(s!==Ce&&$e(s,t))return l[t]=4,s[t];if(_=c.config.globalProperties,$e(_,t))return _[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:i}=e;return Cn(o,t)?(o[t]=s,!0):n!==Ce&&$e(n,t)?(n[t]=s,!0):$e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:i,type:l}},a){let c;return!!(s[a]||e!==Ce&&a[0]!=="$"&&$e(e,a)||Cn(t,a)||$e(i,a)||$e(n,a)||$e(ws,a)||$e(o.config.globalProperties,a)||(c=l.__cssModules)&&c[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:$e(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function wo(e){return ue(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Pn=!0;function Pl(e){const t=zr(e),s=e.proxy,n=e.ctx;Pn=!1,t.beforeCreate&&ko(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:l,watch:a,provide:c,inject:m,created:u,beforeMount:_,mounted:C,beforeUpdate:w,updated:M,activated:h,deactivated:b,beforeDestroy:P,beforeUnmount:K,destroyed:F,unmounted:I,render:W,renderTracked:j,renderTriggered:z,errorCaptured:J,serverPrefetch:G,expose:le,inheritAttrs:me,components:X,directives:R,filters:V}=t;if(m&&Dl(m,n,null),l)for(const A in l){const N=l[A];pe(N)&&(n[A]=N.bind(s))}if(o){const A=o.call(s,s);we(A)&&(e.data=to(A))}if(Pn=!0,i)for(const A in i){const N=i[A],x=pe(N)?N.bind(s,s):pe(N.get)?N.get.bind(s,s):_t,ae=!pe(N)&&pe(N.set)?N.set.bind(s):_t,Y=oe({get:x,set:ae});Object.defineProperty(n,A,{enumerable:!0,configurable:!0,get:()=>Y.value,set:ce=>Y.value=ce})}if(a)for(const A in a)Wr(a[A],n,s,A);if(c){const A=pe(c)?c.call(s):c;Reflect.ownKeys(A).forEach(N=>{hl(N,A[N])})}u&&ko(u,e,"c");function se(A,N){ue(N)?N.forEach(x=>A(x.bind(s))):N&&A(N.bind(s))}if(se(Ml,_),se(Br,C),se(El,w),se(Il,M),se(Cl,h),se(Sl,b),se(Al,J),se(Rl,j),se(Ol,z),se(ro,K),se(Kr,I),se(Nl,G),ue(le))if(le.length){const A=e.exposed||(e.exposed={});le.forEach(N=>{Object.defineProperty(A,N,{get:()=>s[N],set:x=>s[N]=x,enumerable:!0})})}else e.exposed||(e.exposed={});W&&e.render===_t&&(e.render=W),me!=null&&(e.inheritAttrs=me),X&&(e.components=X),R&&(e.directives=R),G&&Hr(e)}function Dl(e,t,s=_t){ue(e)&&(e=Dn(e));for(const n in e){const o=e[n];let i;we(o)?"default"in o?i=Vs(o.from||n,o.default,!0):i=Vs(o.from||n):i=Vs(o),Be(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[n]=i}}function ko(e,t,s){lt(ue(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Wr(e,t,s,n){let o=n.includes(".")?Ar(s,n):()=>s[n];if(Ee(e)){const i=t[e];pe(i)&&At(o,i)}else if(pe(e))At(o,e.bind(s));else if(we(e))if(ue(e))e.forEach(i=>Wr(i,t,s,n));else{const i=pe(e.handler)?e.handler.bind(s):t[e.handler];pe(i)&&At(o,i,e)}}function zr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let c;return a?c=a:!o.length&&!s&&!n?c=t:(c={},o.length&&o.forEach(m=>Xs(c,m,l,!0)),Xs(c,t,l)),we(t)&&i.set(t,c),c}function Xs(e,t,s,n=!1){const{mixins:o,extends:i}=t;i&&Xs(e,i,s,!0),o&&o.forEach(l=>Xs(e,l,s,!0));for(const l in t)if(!(n&&l==="expose")){const a=jl[l]||s&&s[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const jl={data:xo,props:Co,emits:Co,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:Hl,provide:xo,inject:Vl};function xo(e,t){return t?e?function(){return Ne(pe(e)?e.call(this,this):e,pe(t)?t.call(this,this):t)}:t:e}function Vl(e,t){return _s(Dn(e),Dn(t))}function Dn(e){if(ue(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 Co(e,t){return e?ue(e)&&ue(t)?[...new Set([...e,...t])]:Ne(Object.create(null),wo(e),wo(t??{})):t}function Hl(e,t){if(!e)return t;if(!t)return e;const s=Ne(Object.create(null),e);for(const n in t)s[n]=We(e[n],t[n]);return s}function Jr(){return{app:null,config:{isNativeTag:sr,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 Ul=0;function Bl(e,t){return function(n,o=null){pe(n)||(n=Ne({},n)),o!=null&&!we(o)&&(o=null);const i=Jr(),l=new WeakSet,a=[];let c=!1;const m=i.app={_uid:Ul++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:$a,get config(){return i.config},set config(u){},use(u,..._){return l.has(u)||(u&&pe(u.install)?(l.add(u),u.install(m,..._)):pe(u)&&(l.add(u),u(m,..._))),m},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),m},component(u,_){return _?(i.components[u]=_,m):i.components[u]},directive(u,_){return _?(i.directives[u]=_,m):i.directives[u]},mount(u,_,C){if(!c){const w=m._ceVNode||Me(n,o);return w.appContext=i,C===!0?C="svg":C===!1&&(C=void 0),e(w,u,C),c=!0,m._container=u,u.__vue_app__=m,_n(w.component)}},onUnmount(u){a.push(u)},unmount(){c&&(lt(a,m._instance,16),e(null,m._container),delete m._container.__vue_app__)},provide(u,_){return i.provides[u]=_,m},runWithContext(u){const _=as;as=m;try{return u()}finally{as=_}}};return m}}let as=null;const Kl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ot(t)}Modifiers`]||e[`${Xt(t)}Modifiers`];function Wl(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||Ce;let o=s;const i=t.startsWith("update:"),l=i&&Kl(n,t.slice(7));l&&(l.trim&&(o=s.map(u=>Ee(u)?u.trim():u)),l.number&&(o=s.map(an)));let a,c=n[a=bn(t)]||n[a=bn(ot(t))];!c&&i&&(c=n[a=bn(Xt(t))]),c&<(c,e,6,o);const m=n[a+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,lt(m,e,6,o)}}const zl=new WeakMap;function Gr(e,t,s=!1){const n=s?zl:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const i=e.emits;let l={},a=!1;if(!pe(e)){const c=m=>{const u=Gr(m,t,!0);u&&(a=!0,Ne(l,u))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(we(e)&&n.set(e,null),null):(ue(i)?i.forEach(c=>l[c]=null):Ne(l,i),we(e)&&n.set(e,l),l)}function mn(e,t){return!e||!on(t)?!1:(t=t.slice(2).replace(/Once$/,""),$e(e,t[0].toLowerCase()+t.slice(1))||$e(e,Xt(t))||$e(e,t))}function So(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[i],slots:l,attrs:a,emit:c,render:m,renderCache:u,props:_,data:C,setupState:w,ctx:M,inheritAttrs:h}=e,b=Gs(e);let P,K;try{if(s.shapeFlag&4){const I=o||n,W=I;P=mt(m.call(W,I,u,_,w,C,M)),K=a}else{const I=t;P=mt(I.length>1?I(_,{attrs:a,slots:l,emit:c}):I(_,null)),K=t.props?a:Jl(a)}}catch(I){ks.length=0,dn(I,e,1),P=Me(Je)}let F=P;if(K&&h!==!1){const I=Object.keys(K),{shapeFlag:W}=F;I.length&&W&7&&(i&&I.some(Jn)&&(K=Gl(K,i)),F=Lt(F,K,!1,!0))}return s.dirs&&(F=Lt(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(s.dirs):s.dirs),s.transition&&Ms(F,s.transition),P=F,Gs(b),P}const Jl=e=>{let t;for(const s in e)(s==="class"||s==="style"||on(s))&&((t||(t={}))[s]=e[s]);return t},Gl=(e,t)=>{const s={};for(const n in e)(!Jn(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function ql(e,t,s){const{props:n,children:o,component:i}=e,{props:l,children:a,patchFlag:c}=t,m=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?To(n,l,m):!!l;if(c&8){const u=t.dynamicProps;for(let _=0;_<u.length;_++){const C=u[_];if(qr(l,n,C)&&!mn(m,C))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:n===l?!1:n?l?To(n,l,m):!0:!!l;return!1}function To(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const i=n[o];if(qr(t,e,i)&&!mn(s,i))return!0}return!1}function qr(e,t,s){const n=e[s],o=t[s];return s==="style"&&we(n)&&we(o)?!Rs(n,o):n!==o}function Xl({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const Xr={},Qr=()=>Object.create(Xr),Yr=e=>Object.getPrototypeOf(e)===Xr;function Ql(e,t,s,n=!1){const o={},i=Qr();e.propsDefaults=Object.create(null),Zr(e,t,o,i);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);s?e.props=n?o:ol(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Yl(e,t,s,n){const{props:o,attrs:i,vnode:{patchFlag:l}}=e,a=be(o),[c]=e.propsOptions;let m=!1;if((n||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let _=0;_<u.length;_++){let C=u[_];if(mn(e.emitsOptions,C))continue;const w=t[C];if(c)if($e(i,C))w!==i[C]&&(i[C]=w,m=!0);else{const M=ot(C);o[M]=jn(c,a,M,w,e,!1)}else w!==i[C]&&(i[C]=w,m=!0)}}}else{Zr(e,t,o,i)&&(m=!0);let u;for(const _ in a)(!t||!$e(t,_)&&((u=Xt(_))===_||!$e(t,u)))&&(c?s&&(s[_]!==void 0||s[u]!==void 0)&&(o[_]=jn(c,a,_,void 0,e,!0)):delete o[_]);if(i!==a)for(const _ in i)(!t||!$e(t,_))&&(delete i[_],m=!0)}m&&kt(e.attrs,"set","")}function Zr(e,t,s,n){const[o,i]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(hs(c))continue;const m=t[c];let u;o&&$e(o,u=ot(c))?!i||!i.includes(u)?s[u]=m:(a||(a={}))[u]=m:mn(e.emitsOptions,c)||(!(c in n)||m!==n[c])&&(n[c]=m,l=!0)}if(i){const c=be(s),m=a||Ce;for(let u=0;u<i.length;u++){const _=i[u];s[_]=jn(o,c,_,m[_],e,!$e(m,_))}}return l}function jn(e,t,s,n,o,i){const l=e[s];if(l!=null){const a=$e(l,"default");if(a&&n===void 0){const c=l.default;if(l.type!==Function&&!l.skipFactory&&pe(c)){const{propsDefaults:m}=o;if(s in m)n=m[s];else{const u=Fs(o);n=m[s]=c.call(null,t),u()}}else n=c;o.ce&&o.ce._setProp(s,n)}l[0]&&(i&&!a?n=!1:l[1]&&(n===""||n===Xt(s))&&(n=!0))}return n}const Zl=new WeakMap;function ei(e,t,s=!1){const n=s?Zl:t.propsCache,o=n.get(e);if(o)return o;const i=e.props,l={},a=[];let c=!1;if(!pe(e)){const u=_=>{c=!0;const[C,w]=ei(_,t,!0);Ne(l,C),w&&a.push(...w)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return we(e)&&n.set(e,rs),rs;if(ue(i))for(let u=0;u<i.length;u++){const _=ot(i[u]);Mo(_)&&(l[_]=Ce)}else if(i)for(const u in i){const _=ot(u);if(Mo(_)){const C=i[u],w=l[_]=ue(C)||pe(C)?{type:C}:Ne({},C),M=w.type;let h=!1,b=!0;if(ue(M))for(let P=0;P<M.length;++P){const K=M[P],F=pe(K)&&K.name;if(F==="Boolean"){h=!0;break}else F==="String"&&(b=!1)}else h=pe(M)&&M.name==="Boolean";w[0]=h,w[1]=b,(h||$e(w,"default"))&&a.push(_)}}const m=[l,a];return we(e)&&n.set(e,m),m}function Mo(e){return e[0]!=="$"&&!hs(e)}const io=e=>e==="_"||e==="_ctx"||e==="$stable",lo=e=>ue(e)?e.map(mt):[mt(e)],ea=(e,t,s)=>{if(t._n)return t;const n=Ts((...o)=>lo(t(...o)),s);return n._c=!1,n},ti=(e,t,s)=>{const n=e._ctx;for(const o in e){if(io(o))continue;const i=e[o];if(pe(i))t[o]=ea(o,i,n);else if(i!=null){const l=lo(i);t[o]=()=>l}}},si=(e,t)=>{const s=lo(t);e.slots.default=()=>s},ni=(e,t,s)=>{for(const n in t)(s||!io(n))&&(e[n]=t[n])},ta=(e,t,s)=>{const n=e.slots=Qr();if(e.vnode.shapeFlag&32){const o=t._;o?(ni(n,t,s),s&&lr(n,"_",o,!0)):ti(t,n)}else t&&si(e,t)},sa=(e,t,s)=>{const{vnode:n,slots:o}=e;let i=!0,l=Ce;if(n.shapeFlag&32){const a=t._;a?s&&a===1?i=!1:ni(o,t,s):(i=!t.$stable,ti(t,o)),l=t}else t&&(si(e,t),l={default:1});if(i)for(const a in o)!io(a)&&l[a]==null&&delete o[a]},Xe=la;function na(e){return oa(e)}function oa(e,t){const s=cn();s.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:l,createText:a,createComment:c,setText:m,setElementText:u,parentNode:_,nextSibling:C,setScopeId:w=_t,insertStaticContent:M}=e,h=(d,g,O,v=null,f=null,E=null,T=void 0,H=null,U=!!g.dynamicChildren)=>{if(d===g)return;d&&!Kt(d,g)&&(v=Ke(d),ce(d,f,E,!0),d=null),g.patchFlag===-2&&(U=!1,g.dynamicChildren=null);const{type:D,ref:re,shapeFlag:Q}=g;switch(D){case vn:b(d,g,O,v);break;case Je:P(d,g,O,v);break;case Hs:d==null&&K(g,O,v,T);break;case fe:X(d,g,O,v,f,E,T,H,U);break;default:Q&1?W(d,g,O,v,f,E,T,H,U):Q&6?R(d,g,O,v,f,E,T,H,U):(Q&64||Q&128)&&D.process(d,g,O,v,f,E,T,H,U,Re)}re!=null&&f?ys(re,d&&d.ref,E,g||d,!g):re==null&&d&&d.ref!=null&&ys(d.ref,null,E,d,!0)},b=(d,g,O,v)=>{if(d==null)n(g.el=a(g.children),O,v);else{const f=g.el=d.el;g.children!==d.children&&m(f,g.children)}},P=(d,g,O,v)=>{d==null?n(g.el=c(g.children||""),O,v):g.el=d.el},K=(d,g,O,v)=>{[d.el,d.anchor]=M(d.children,g,O,v,d.el,d.anchor)},F=({el:d,anchor:g},O,v)=>{let f;for(;d&&d!==g;)f=C(d),n(d,O,v),d=f;n(g,O,v)},I=({el:d,anchor:g})=>{let O;for(;d&&d!==g;)O=C(d),o(d),d=O;o(g)},W=(d,g,O,v,f,E,T,H,U)=>{if(g.type==="svg"?T="svg":g.type==="math"&&(T="mathml"),d==null)j(g,O,v,f,E,T,H,U);else{const D=d.el&&d.el._isVueCE?d.el:null;try{D&&D._beginPatch(),G(d,g,f,E,T,H,U)}finally{D&&D._endPatch()}}},j=(d,g,O,v,f,E,T,H)=>{let U,D;const{props:re,shapeFlag:Q,transition:ie,dirs:de}=d;if(U=d.el=l(d.type,E,re&&re.is,re),Q&8?u(U,d.children):Q&16&&J(d.children,U,null,v,f,Sn(d,E),T,H),de&&Dt(d,null,v,"created"),z(U,d,d.scopeId,T,v),re){for(const ke in re)ke!=="value"&&!hs(ke)&&i(U,ke,null,re[ke],E,v);"value"in re&&i(U,"value",null,re.value,E),(D=re.onVnodeBeforeMount)&&ut(D,v,d)}de&&Dt(d,null,v,"beforeMount");const _e=ra(f,ie);_e&&ie.beforeEnter(U),n(U,g,O),((D=re&&re.onVnodeMounted)||_e||de)&&Xe(()=>{D&&ut(D,v,d),_e&&ie.enter(U),de&&Dt(d,null,v,"mounted")},f)},z=(d,g,O,v,f)=>{if(O&&w(d,O),v)for(let E=0;E<v.length;E++)w(d,v[E]);if(f){let E=f.subTree;if(g===E||li(E.type)&&(E.ssContent===g||E.ssFallback===g)){const T=f.vnode;z(d,T,T.scopeId,T.slotScopeIds,f.parent)}}},J=(d,g,O,v,f,E,T,H,U=0)=>{for(let D=U;D<d.length;D++){const re=d[D]=H?wt(d[D]):mt(d[D]);h(null,re,g,O,v,f,E,T,H)}},G=(d,g,O,v,f,E,T)=>{const H=g.el=d.el;let{patchFlag:U,dynamicChildren:D,dirs:re}=g;U|=d.patchFlag&16;const Q=d.props||Ce,ie=g.props||Ce;let de;if(O&&jt(O,!1),(de=ie.onVnodeBeforeUpdate)&&ut(de,O,g,d),re&&Dt(g,d,O,"beforeUpdate"),O&&jt(O,!0),(Q.innerHTML&&ie.innerHTML==null||Q.textContent&&ie.textContent==null)&&u(H,""),D?le(d.dynamicChildren,D,H,O,v,Sn(g,f),E):T||N(d,g,H,null,O,v,Sn(g,f),E,!1),U>0){if(U&16)me(H,Q,ie,O,f);else if(U&2&&Q.class!==ie.class&&i(H,"class",null,ie.class,f),U&4&&i(H,"style",Q.style,ie.style,f),U&8){const _e=g.dynamicProps;for(let ke=0;ke<_e.length;ke++){const ge=_e[ke],je=Q[ge],Ve=ie[ge];(Ve!==je||ge==="value")&&i(H,ge,je,Ve,f,O)}}U&1&&d.children!==g.children&&u(H,g.children)}else!T&&D==null&&me(H,Q,ie,O,f);((de=ie.onVnodeUpdated)||re)&&Xe(()=>{de&&ut(de,O,g,d),re&&Dt(g,d,O,"updated")},v)},le=(d,g,O,v,f,E,T)=>{for(let H=0;H<g.length;H++){const U=d[H],D=g[H],re=U.el&&(U.type===fe||!Kt(U,D)||U.shapeFlag&198)?_(U.el):O;h(U,D,re,null,v,f,E,T,!0)}},me=(d,g,O,v,f)=>{if(g!==O){if(g!==Ce)for(const E in g)!hs(E)&&!(E in O)&&i(d,E,g[E],null,f,v);for(const E in O){if(hs(E))continue;const T=O[E],H=g[E];T!==H&&E!=="value"&&i(d,E,H,T,f,v)}"value"in O&&i(d,"value",g.value,O.value,f)}},X=(d,g,O,v,f,E,T,H,U)=>{const D=g.el=d?d.el:a(""),re=g.anchor=d?d.anchor:a("");let{patchFlag:Q,dynamicChildren:ie,slotScopeIds:de}=g;de&&(H=H?H.concat(de):de),d==null?(n(D,O,v),n(re,O,v),J(g.children||[],O,re,f,E,T,H,U)):Q>0&&Q&64&&ie&&d.dynamicChildren&&d.dynamicChildren.length===ie.length?(le(d.dynamicChildren,ie,O,f,E,T,H),(g.key!=null||f&&g===f.subTree)&&oi(d,g,!0)):N(d,g,O,re,f,E,T,H,U)},R=(d,g,O,v,f,E,T,H,U)=>{g.slotScopeIds=H,d==null?g.shapeFlag&512?f.ctx.activate(g,O,v,T,U):V(g,O,v,f,E,T,U):L(d,g,U)},V=(d,g,O,v,f,E,T)=>{const H=d.component=va(d,v,f);if(fn(d)&&(H.ctx.renderer=Re),_a(H,!1,T),H.asyncDep){if(f&&f.registerDep(H,se,T),!d.el){const U=H.subTree=Me(Je);P(null,U,g,O),d.placeholder=U.el}}else se(H,d,g,O,f,E,T)},L=(d,g,O)=>{const v=g.component=d.component;if(ql(d,g,O))if(v.asyncDep&&!v.asyncResolved){A(v,g,O);return}else v.next=g,v.update();else g.el=d.el,v.vnode=g},se=(d,g,O,v,f,E,T)=>{const H=()=>{if(d.isMounted){let{next:Q,bu:ie,u:de,parent:_e,vnode:ke}=d;{const y=ri(d);if(y){Q&&(Q.el=ke.el,A(d,Q,T)),y.asyncDep.then(()=>{Xe(()=>{d.isUnmounted||D()},f)});return}}let ge=Q,je;jt(d,!1),Q?(Q.el=ke.el,A(d,Q,T)):Q=ke,ie&&js(ie),(je=Q.props&&Q.props.onVnodeBeforeUpdate)&&ut(je,_e,Q,ke),jt(d,!0);const Ve=So(d),S=d.subTree;d.subTree=Ve,h(S,Ve,_(S.el),Ke(S),d,f,E),Q.el=Ve.el,ge===null&&Xl(d,Ve.el),de&&Xe(de,f),(je=Q.props&&Q.props.onVnodeUpdated)&&Xe(()=>ut(je,_e,Q,ke),f)}else{let Q;const{el:ie,props:de}=g,{bm:_e,m:ke,parent:ge,root:je,type:Ve}=d,S=$s(g);jt(d,!1),_e&&js(_e),!S&&(Q=de&&de.onVnodeBeforeMount)&&ut(Q,ge,g),jt(d,!0);{je.ce&&je.ce._hasShadowRoot()&&je.ce._injectChildStyle(Ve,d.parent?d.parent.type:void 0);const y=d.subTree=So(d);h(null,y,O,v,d,f,E),g.el=y.el}if(ke&&Xe(ke,f),!S&&(Q=de&&de.onVnodeMounted)){const y=g;Xe(()=>ut(Q,ge,y),f)}(g.shapeFlag&256||ge&&$s(ge.vnode)&&ge.vnode.shapeFlag&256)&&d.a&&Xe(d.a,f),d.isMounted=!0,g=O=v=null}};d.scope.on();const U=d.effect=new dr(H);d.scope.off();const D=d.update=U.run.bind(U),re=d.job=U.runIfDirty.bind(U);re.i=d,re.id=d.uid,U.scheduler=()=>oo(re),jt(d,!0),D()},A=(d,g,O)=>{g.component=d;const v=d.vnode.props;d.vnode=g,d.next=null,Yl(d,g.props,v,O),sa(d,g.children,O),Ct(),go(d),St()},N=(d,g,O,v,f,E,T,H,U=!1)=>{const D=d&&d.children,re=d?d.shapeFlag:0,Q=g.children,{patchFlag:ie,shapeFlag:de}=g;if(ie>0){if(ie&128){ae(D,Q,O,v,f,E,T,H,U);return}else if(ie&256){x(D,Q,O,v,f,E,T,H,U);return}}de&8?(re&16&&Oe(D,f,E),Q!==D&&u(O,Q)):re&16?de&16?ae(D,Q,O,v,f,E,T,H,U):Oe(D,f,E,!0):(re&8&&u(O,""),de&16&&J(Q,O,v,f,E,T,H,U))},x=(d,g,O,v,f,E,T,H,U)=>{d=d||rs,g=g||rs;const D=d.length,re=g.length,Q=Math.min(D,re);let ie;for(ie=0;ie<Q;ie++){const de=g[ie]=U?wt(g[ie]):mt(g[ie]);h(d[ie],de,O,null,f,E,T,H,U)}D>re?Oe(d,f,E,!0,!1,Q):J(g,O,v,f,E,T,H,U,Q)},ae=(d,g,O,v,f,E,T,H,U)=>{let D=0;const re=g.length;let Q=d.length-1,ie=re-1;for(;D<=Q&&D<=ie;){const de=d[D],_e=g[D]=U?wt(g[D]):mt(g[D]);if(Kt(de,_e))h(de,_e,O,null,f,E,T,H,U);else break;D++}for(;D<=Q&&D<=ie;){const de=d[Q],_e=g[ie]=U?wt(g[ie]):mt(g[ie]);if(Kt(de,_e))h(de,_e,O,null,f,E,T,H,U);else break;Q--,ie--}if(D>Q){if(D<=ie){const de=ie+1,_e=de<re?g[de].el:v;for(;D<=ie;)h(null,g[D]=U?wt(g[D]):mt(g[D]),O,_e,f,E,T,H,U),D++}}else if(D>ie)for(;D<=Q;)ce(d[D],f,E,!0),D++;else{const de=D,_e=D,ke=new Map;for(D=_e;D<=ie;D++){const te=g[D]=U?wt(g[D]):mt(g[D]);te.key!=null&&ke.set(te.key,D)}let ge,je=0;const Ve=ie-_e+1;let S=!1,y=0;const B=new Array(Ve);for(D=0;D<Ve;D++)B[D]=0;for(D=de;D<=Q;D++){const te=d[D];if(je>=Ve){ce(te,f,E,!0);continue}let Z;if(te.key!=null)Z=ke.get(te.key);else for(ge=_e;ge<=ie;ge++)if(B[ge-_e]===0&&Kt(te,g[ge])){Z=ge;break}Z===void 0?ce(te,f,E,!0):(B[Z-_e]=D+1,Z>=y?y=Z:S=!0,h(te,g[Z],O,null,f,E,T,H,U),je++)}const ve=S?ia(B):rs;for(ge=ve.length-1,D=Ve-1;D>=0;D--){const te=_e+D,Z=g[te],Ae=g[te+1],Ze=te+1<re?Ae.el||ii(Ae):v;B[D]===0?h(null,Z,O,Ze,f,E,T,H,U):S&&(ge<0||D!==ve[ge]?Y(Z,O,Ze,2):ge--)}}},Y=(d,g,O,v,f=null)=>{const{el:E,type:T,transition:H,children:U,shapeFlag:D}=d;if(D&6){Y(d.component.subTree,g,O,v);return}if(D&128){d.suspense.move(g,O,v);return}if(D&64){T.move(d,g,O,Re);return}if(T===fe){n(E,g,O);for(let Q=0;Q<U.length;Q++)Y(U[Q],g,O,v);n(d.anchor,g,O);return}if(T===Hs){F(d,g,O);return}if(v!==2&&D&1&&H)if(v===0)H.beforeEnter(E),n(E,g,O),Xe(()=>H.enter(E),f);else{const{leave:Q,delayLeave:ie,afterLeave:de}=H,_e=()=>{d.ctx.isUnmounted?o(E):n(E,g,O)},ke=()=>{E._isLeaving&&E[ft](!0),Q(E,()=>{_e(),de&&de()})};ie?ie(E,_e,ke):ke()}else n(E,g,O)},ce=(d,g,O,v=!1,f=!1)=>{const{type:E,props:T,ref:H,children:U,dynamicChildren:D,shapeFlag:re,patchFlag:Q,dirs:ie,cacheIndex:de}=d;if(Q===-2&&(f=!1),H!=null&&(Ct(),ys(H,null,O,d,!0),St()),de!=null&&(g.renderCache[de]=void 0),re&256){g.ctx.deactivate(d);return}const _e=re&1&&ie,ke=!$s(d);let ge;if(ke&&(ge=T&&T.onVnodeBeforeUnmount)&&ut(ge,g,d),re&6)Pe(d.component,O,v);else{if(re&128){d.suspense.unmount(O,v);return}_e&&Dt(d,null,g,"beforeUnmount"),re&64?d.type.remove(d,g,O,Re,v):D&&!D.hasOnce&&(E!==fe||Q>0&&Q&64)?Oe(D,g,O,!1,!0):(E===fe&&Q&384||!f&&re&16)&&Oe(U,g,O),v&&Le(d)}(ke&&(ge=T&&T.onVnodeUnmounted)||_e)&&Xe(()=>{ge&&ut(ge,g,d),_e&&Dt(d,null,g,"unmounted")},O)},Le=d=>{const{type:g,el:O,anchor:v,transition:f}=d;if(g===fe){Fe(O,v);return}if(g===Hs){I(d);return}const E=()=>{o(O),f&&!f.persisted&&f.afterLeave&&f.afterLeave()};if(d.shapeFlag&1&&f&&!f.persisted){const{leave:T,delayLeave:H}=f,U=()=>T(O,E);H?H(d.el,E,U):U()}else E()},Fe=(d,g)=>{let O;for(;d!==g;)O=C(d),o(d),d=O;o(g)},Pe=(d,g,O)=>{const{bum:v,scope:f,job:E,subTree:T,um:H,m:U,a:D}=d;Eo(U),Eo(D),v&&js(v),f.stop(),E&&(E.flags|=8,ce(T,d,g,O)),H&&Xe(H,g),Xe(()=>{d.isUnmounted=!0},g)},Oe=(d,g,O,v=!1,f=!1,E=0)=>{for(let T=E;T<d.length;T++)ce(d[T],g,O,v,f)},Ke=d=>{if(d.shapeFlag&6)return Ke(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const g=C(d.anchor||d.el),O=g&&g[$l];return O?C(O):g};let De=!1;const ct=(d,g,O)=>{let v;d==null?g._vnode&&(ce(g._vnode,null,null,!0),v=g._vnode.component):h(g._vnode||null,d,g,null,null,null,O),g._vnode=d,De||(De=!0,go(v),Ir(),De=!1)},Re={p:h,um:ce,m:Y,r:Le,mt:V,mc:J,pc:N,pbc:le,n:Ke,o:e};return{render:ct,hydrate:void 0,createApp:Bl(ct)}}function Sn({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 jt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ra(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function oi(e,t,s=!1){const n=e.children,o=t.children;if(ue(n)&&ue(o))for(let i=0;i<n.length;i++){const l=n[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=wt(o[i]),a.el=l.el),!s&&a.patchFlag!==-2&&oi(l,a)),a.type===vn&&(a.patchFlag===-1&&(a=o[i]=wt(a)),a.el=l.el),a.type===Je&&!a.el&&(a.el=l.el)}}function ia(e){const t=e.slice(),s=[0];let n,o,i,l,a;const c=e.length;for(n=0;n<c;n++){const m=e[n];if(m!==0){if(o=s[s.length-1],e[o]<m){t[n]=o,s.push(n);continue}for(i=0,l=s.length-1;i<l;)a=i+l>>1,e[s[a]]<m?i=a+1:l=a;m<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,l=s[i-1];i-- >0;)s[i]=l,l=t[l];return s}function ri(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ri(t)}function Eo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ii(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ii(t.subTree):null}const li=e=>e.__isSuspense;function la(e,t){t&&t.pendingBranch?ue(e)?t.effects.push(...e):t.effects.push(e):_l(e)}const fe=Symbol.for("v-fgt"),vn=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),Hs=Symbol.for("v-stc"),ks=[];let Ye=null;function $(e=!1){ks.push(Ye=e?null:[])}function aa(){ks.pop(),Ye=ks[ks.length-1]||null}let Es=1;function Qs(e,t=!1){Es+=e,e<0&&Ye&&t&&(Ye.hasOnce=!0)}function ai(e){return e.dynamicChildren=Es>0?Ye||rs:null,aa(),Es>0&&Ye&&Ye.push(e),e}function k(e,t,s,n,o,i){return ai(r(e,t,s,n,o,i,!0))}function $t(e,t,s,n,o){return ai(Me(e,t,s,n,o,!0))}function Ys(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const ci=({key:e})=>e??null,Us=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Ee(e)||Be(e)||pe(e)?{i:tt,r:e,k:t,f:!!s}:e:null);function r(e,t=null,s=null,n=0,o=null,i=e===fe?0:1,l=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ci(t),ref:t&&Us(t),scopeId:Or,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:tt};return a?(ao(c,s),i&128&&e.normalize(c)):s&&(c.shapeFlag|=Ee(s)?8:16),Es>0&&!l&&Ye&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ye.push(c),c}const Me=ca;function ca(e,t=null,s=null,n=0,o=null,i=!1){if((!e||e===Fl)&&(e=Je),Ys(e)){const a=Lt(e,t,!0);return s&&ao(a,s),Es>0&&!i&&Ye&&(a.shapeFlag&6?Ye[Ye.indexOf(e)]=a:Ye.push(a)),a.patchFlag=-2,a}if(ya(e)&&(e=e.__vccOpts),t){t=ua(t);let{class:a,style:c}=t;a&&!Ee(a)&&(t.class=ee(a)),we(c)&&(no(c)&&!ue(c)&&(c=Ne({},c)),t.style=Te(c))}const l=Ee(e)?1:li(e)?128:Fr(e)?64:we(e)?4:pe(e)?2:0;return r(e,t,s,n,o,l,i,!0)}function ua(e){return e?no(e)||Yr(e)?Ne({},e):e:null}function Lt(e,t,s=!1,n=!1){const{props:o,ref:i,patchFlag:l,children:a,transition:c}=e,m=t?fa(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&ci(m),ref:t&&t.ref?s&&i?ue(i)?i.concat(Us(t)):[i,Us(t)]:Us(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==fe?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Lt(e.ssContent),ssFallback:e.ssFallback&&Lt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Ms(u,c.clone(u)),u}function Ie(e=" ",t=0){return Me(vn,null,e,t)}function da(e,t){const s=Me(Hs,null,e);return s.staticCount=t,s}function q(e="",t=!1){return t?($(),$t(Je,null,e)):Me(Je,null,e)}function mt(e){return e==null||typeof e=="boolean"?Me(Je):ue(e)?Me(fe,null,e.slice()):Ys(e)?wt(e):Me(vn,null,String(e))}function wt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Lt(e)}function ao(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ue(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),ao(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Yr(t)?t._ctx=tt:o===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pe(t)?(t={default:t,_ctx:tt},s=32):(t=String(t),n&64?(s=16,t=[Ie(t)]):s=8);e.children=t,e.shapeFlag|=s}function fa(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=ee([t.class,n.class]));else if(o==="style")t.style=Te([t.style,n.style]);else if(on(o)){const i=t[o],l=n[o];l&&i!==l&&!(ue(i)&&i.includes(l))&&(t[o]=i?[].concat(i,l):l)}else o!==""&&(t[o]=n[o])}return t}function ut(e,t,s,n=null){lt(e,t,7,[s,n])}const pa=Jr();let ma=0;function va(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||pa,i={uid:ma++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Di(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ei(n,o),emitsOptions:Gr(n,o),emit:null,emitted:null,propsDefaults:Ce,inheritAttrs:n.inheritAttrs,ctx:Ce,data:Ce,props:Ce,attrs:Ce,slots:Ce,refs:Ce,setupState:Ce,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Wl.bind(null,i),e.ce&&e.ce(i),i}let Ge=null;const ui=()=>Ge||tt;let Zs,Vn;{const e=cn(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),i=>{o.length>1?o.forEach(l=>l(i)):o[0](i)}};Zs=t("__VUE_INSTANCE_SETTERS__",s=>Ge=s),Vn=t("__VUE_SSR_SETTERS__",s=>Is=s)}const Fs=e=>{const t=Ge;return Zs(e),e.scope.on(),()=>{e.scope.off(),Zs(t)}},Io=()=>{Ge&&Ge.scope.off(),Zs(null)};function di(e){return e.vnode.shapeFlag&4}let Is=!1;function _a(e,t=!1,s=!1){t&&Vn(t);const{props:n,children:o}=e.vnode,i=di(e);Ql(e,n,i,t),ta(e,o,s||t);const l=i?ha(e,t):void 0;return t&&Vn(!1),l}function ha(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ll);const{setup:n}=s;if(n){Ct();const o=e.setupContext=n.length>1?ba(e):null,i=Fs(e),l=As(n,e,0,[e.props,o]),a=nr(l);if(St(),i(),(a||e.sp)&&!$s(e)&&Hr(e),a){if(l.then(Io,Io),t)return l.then(c=>{No(e,c)}).catch(c=>{dn(c,e,0)});e.asyncDep=l}else No(e,l)}else fi(e)}function No(e,t,s){pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:we(t)&&(e.setupState=Sr(t)),fi(e)}function fi(e,t,s){const n=e.type;e.render||(e.render=n.render||_t);{const o=Fs(e);Ct();try{Pl(e)}finally{St(),o()}}}const ga={get(e,t){return Ue(e,"get",""),e[t]}};function ba(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ga),slots:e.slots,emit:e.emit,expose:t}}function _n(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Sr(rl(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}function ya(e){return pe(e)&&"__vccOpts"in e}const oe=(e,t)=>dl(e,t,Is);function He(e,t,s){try{Qs(-1);const n=arguments.length;return n===2?we(t)&&!ue(t)?Ys(t)?Me(e,null,[t]):Me(e,t):Me(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Ys(s)&&(s=[s]),Me(e,t,s))}finally{Qs(1)}}const $a="3.5.30";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.30
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let Hn;const Oo=typeof window<"u"&&window.trustedTypes;if(Oo)try{Hn=Oo.createPolicy("vue",{createHTML:e=>e})}catch{}const pi=Hn?e=>Hn.createHTML(e):e=>e,wa="http://www.w3.org/2000/svg",ka="http://www.w3.org/1998/Math/MathML",yt=typeof document<"u"?document:null,Ro=yt&&yt.createElement("template"),xa={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?yt.createElementNS(wa,e):t==="mathml"?yt.createElementNS(ka,e):s?yt.createElement(e,{is:s}):yt.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>yt.createTextNode(e),createComment:e=>yt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,i){const l=s?s.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===i||!(o=o.nextSibling)););else{Ro.innerHTML=pi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=Ro.content;if(n==="svg"||n==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},It="transition",ms="animation",Ns=Symbol("_vtc"),mi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ca=Ne({},Lr,mi),Sa=e=>(e.displayName="Transition",e.props=Ca,e),en=Sa((e,{slots:t})=>He(xl,Ta(e),t)),Vt=(e,t=[])=>{ue(e)?e.forEach(s=>s(...t)):e&&e(...t)},Ao=e=>e?ue(e)?e.some(t=>t.length>1):e.length>1:!1;function Ta(e){const t={};for(const X in e)X in mi||(t[X]=e[X]);if(e.css===!1)return t;const{name:s="v",type:n,duration:o,enterFromClass:i=`${s}-enter-from`,enterActiveClass:l=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:c=i,appearActiveClass:m=l,appearToClass:u=a,leaveFromClass:_=`${s}-leave-from`,leaveActiveClass:C=`${s}-leave-active`,leaveToClass:w=`${s}-leave-to`}=e,M=Ma(o),h=M&&M[0],b=M&&M[1],{onBeforeEnter:P,onEnter:K,onEnterCancelled:F,onLeave:I,onLeaveCancelled:W,onBeforeAppear:j=P,onAppear:z=K,onAppearCancelled:J=F}=t,G=(X,R,V,L)=>{X._enterCancelled=L,Ht(X,R?u:a),Ht(X,R?m:l),V&&V()},le=(X,R)=>{X._isLeaving=!1,Ht(X,_),Ht(X,w),Ht(X,C),R&&R()},me=X=>(R,V)=>{const L=X?z:K,se=()=>G(R,X,V);Vt(L,[R,se]),Fo(()=>{Ht(R,X?c:i),bt(R,X?u:a),Ao(L)||Lo(R,n,h,se)})};return Ne(t,{onBeforeEnter(X){Vt(P,[X]),bt(X,i),bt(X,l)},onBeforeAppear(X){Vt(j,[X]),bt(X,c),bt(X,m)},onEnter:me(!1),onAppear:me(!0),onLeave(X,R){X._isLeaving=!0;const V=()=>le(X,R);bt(X,_),X._enterCancelled?(bt(X,C),jo(X)):(jo(X),bt(X,C)),Fo(()=>{X._isLeaving&&(Ht(X,_),bt(X,w),Ao(I)||Lo(X,n,b,V))}),Vt(I,[X,V])},onEnterCancelled(X){G(X,!1,void 0,!0),Vt(F,[X])},onAppearCancelled(X){G(X,!0,void 0,!0),Vt(J,[X])},onLeaveCancelled(X){le(X),Vt(W,[X])}})}function Ma(e){if(e==null)return null;if(we(e))return[Tn(e.enter),Tn(e.leave)];{const t=Tn(e);return[t,t]}}function Tn(e){return Ei(e)}function bt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[Ns]||(e[Ns]=new Set)).add(t)}function Ht(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[Ns];s&&(s.delete(t),s.size||(e[Ns]=void 0))}function Fo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ea=0;function Lo(e,t,s,n){const o=e._endId=++Ea,i=()=>{o===e._endId&&n()};if(s!=null)return setTimeout(i,s);const{type:l,timeout:a,propCount:c}=Ia(e,t);if(!l)return n();const m=l+"end";let u=0;const _=()=>{e.removeEventListener(m,C),i()},C=w=>{w.target===e&&++u>=c&&_()};setTimeout(()=>{u<c&&_()},a+1),e.addEventListener(m,C)}function Ia(e,t){const s=window.getComputedStyle(e),n=M=>(s[M]||"").split(", "),o=n(`${It}Delay`),i=n(`${It}Duration`),l=Po(o,i),a=n(`${ms}Delay`),c=n(`${ms}Duration`),m=Po(a,c);let u=null,_=0,C=0;t===It?l>0&&(u=It,_=l,C=i.length):t===ms?m>0&&(u=ms,_=m,C=c.length):(_=Math.max(l,m),u=_>0?l>m?It:ms:null,C=u?u===It?i.length:c.length:0);const w=u===It&&/\b(?:transform|all)(?:,|$)/.test(n(`${It}Property`).toString());return{type:u,timeout:_,propCount:C,hasTransform:w}}function Po(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>Do(s)+Do(e[n])))}function Do(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function jo(e){return(e?e.ownerDocument:document).body.offsetHeight}function Na(e,t,s){const n=e[Ns];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Vo=Symbol("_vod"),Oa=Symbol("_vsh"),Ra=Symbol(""),Aa=/(?:^|;)\s*display\s*:/;function Fa(e,t,s){const n=e.style,o=Ee(s);let i=!1;if(s&&!o){if(t)if(Ee(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();s[a]==null&&Bs(n,a,"")}else for(const l in t)s[l]==null&&Bs(n,l,"");for(const l in s)l==="display"&&(i=!0),Bs(n,l,s[l])}else if(o){if(t!==s){const l=n[Ra];l&&(s+=";"+l),n.cssText=s,i=Aa.test(s)}}else t&&e.removeAttribute("style");Vo in e&&(e[Vo]=i?n.display:"",e[Oa]&&(n.display="none"))}const Ho=/\s*!important$/;function Bs(e,t,s){if(ue(s))s.forEach(n=>Bs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=La(e,t);Ho.test(s)?e.setProperty(Xt(n),s.replace(Ho,""),"important"):e[n]=s}}const Uo=["Webkit","Moz","ms"],Mn={};function La(e,t){const s=Mn[t];if(s)return s;let n=ot(t);if(n!=="filter"&&n in e)return Mn[t]=n;n=ir(n);for(let o=0;o<Uo.length;o++){const i=Uo[o]+n;if(i in e)return Mn[t]=i}return t}const Bo="http://www.w3.org/1999/xlink";function Ko(e,t,s,n,o,i=Fi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Bo,t.slice(6,t.length)):e.setAttributeNS(Bo,t,s):s==null||i&&!ar(s)?e.removeAttribute(t):e.setAttribute(t,i?"":ht(s)?String(s):s)}function Wo(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?pi(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(a!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let l=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=ar(s):s==null&&a==="string"?(s="",l=!0):a==="number"&&(s=0,l=!0)}try{e[t]=s}catch{}l&&e.removeAttribute(o||t)}function Wt(e,t,s,n){e.addEventListener(t,s,n)}function Pa(e,t,s,n){e.removeEventListener(t,s,n)}const zo=Symbol("_vei");function Da(e,t,s,n,o=null){const i=e[zo]||(e[zo]={}),l=i[t];if(n&&l)l.value=n;else{const[a,c]=ja(t);if(n){const m=i[t]=Ua(n,o);Wt(e,a,m,c)}else l&&(Pa(e,a,l,c),i[t]=void 0)}}const Jo=/(?:Once|Passive|Capture)$/;function ja(e){let t;if(Jo.test(e)){t={};let n;for(;n=e.match(Jo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Xt(e.slice(2)),t]}let En=0;const Va=Promise.resolve(),Ha=()=>En||(Va.then(()=>En=0),En=Date.now());function Ua(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;lt(Ba(n,s.value),t,5,[n])};return s.value=e,s.attached=Ha(),s}function Ba(e,t){if(ue(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const Go=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ka=(e,t,s,n,o,i)=>{const l=o==="svg";t==="class"?Na(e,n,l):t==="style"?Fa(e,s,n):on(t)?Jn(t)||Da(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wa(e,t,n,l))?(Wo(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ko(e,t,n,l,i,t!=="value")):e._isVueCE&&(za(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ee(n)))?Wo(e,ot(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ko(e,t,n,l))};function Wa(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Go(t)&&pe(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Go(t)&&Ee(s)?!1:t in e}function za(e,t){const s=e._def.props;if(!s)return!1;const n=ot(t);return Array.isArray(s)?s.some(o=>ot(o)===n):Object.keys(s).some(o=>ot(o)===n)}const tn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ue(t)?s=>js(t,s):t};function Ja(e){e.target.composing=!0}function qo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cs=Symbol("_assign");function Xo(e,t,s){return t&&(e=e.trim()),s&&(e=an(e)),e}const qt={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[cs]=tn(o);const i=n||o.props&&o.props.type==="number";Wt(e,t?"change":"input",l=>{l.target.composing||e[cs](Xo(e.value,s,i))}),(s||i)&&Wt(e,"change",()=>{e.value=Xo(e.value,s,i)}),t||(Wt(e,"compositionstart",Ja),Wt(e,"compositionend",qo),Wt(e,"change",qo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:i}},l){if(e[cs]=tn(l),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?an(e.value):e.value,c=t??"";a!==c&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===c)||(e.value=c))}},Ga={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=rn(t);Wt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>s?an(sn(l)):sn(l));e[cs](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,Mr(()=>{e._assigning=!1})}),e[cs]=tn(n)},mounted(e,{value:t}){Qo(e,t)},beforeUpdate(e,t,s){e[cs]=tn(s)},updated(e,{value:t}){e._assigning||Qo(e,t)}};function Qo(e,t){const s=e.multiple,n=ue(t);if(!(s&&!n&&!rn(t))){for(let o=0,i=e.options.length;o<i;o++){const l=e.options[o],a=sn(l);if(s)if(n){const c=typeof a;c==="string"||c==="number"?l.selected=t.some(m=>String(m)===String(a)):l.selected=Pi(t,a)>-1}else l.selected=t.has(a);else if(Rs(sn(l),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function sn(e){return"_value"in e?e._value:e.value}const qa=["ctrl","shift","alt","meta"],Xa={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)=>qa.some(s=>e[`${s}Key`]&&!t.includes(s))},Rt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((o,...i)=>{for(let l=0;l<t.length;l++){const a=Xa[t[l]];if(a&&a(o,t))return}return e(o,...i)}))},Qa=Ne({patchProp:Ka},xa);let Yo;function Ya(){return Yo||(Yo=na(Qa))}const Za=((...e)=>{const t=Ya().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=tc(n);if(!o)return;const i=t._component;!pe(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const l=s(o,!1,ec(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t});function ec(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function tc(e){return Ee(e)?document.querySelector(e):e}let Bt;const vs=[];function vi(e){if(vs.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&vs.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&vs.forEach(s=>s(t))},get(){return Bt.value},configurable:!0}),()=>{vs.splice(vs.indexOf(e),1)}}function _i(){Bt||(Bt=il(),vi(t));function e(){Bt&&al(Bt)}function t(s){Bt.value=s,s.host&&s.host.hooks.hook("host:update:reactivity",e)}return Bt}const Un=ne([]),hi=ne({provides:[],injects:[]}),nn=ne([]),Bn=ne([]),Kn=ne([]),Wn=ne([]),gi=ne(!1),zt=ne({}),sc=typeof window<"u"&&new URLSearchParams(window.location.search).has("debugRpc");let Zo=!1,ye=null,er=!1,Ks=null,Nt=null;function Pt(...e){sc&&console.info("[observatory][rpc][iframe]",...e)}function Zt(e){return e?e.map(t=>({...t})):[]}function nc(e){return e?e.map(t=>({...t})):[]}function Ws(e){var s;Un.value=Zt(e.fetch),hi.value=e.provideInject?{provides:Zt(e.provideInject.provides),injects:Zt(e.provideInject.injects)}:{provides:[],injects:[]},nn.value=Zt(e.composables),Bn.value=nc(e.renders),Kn.value=Zt(e.transitions),Wn.value=Zt(e.traces),zt.value=e.features||{};const t=(s=zt.value)==null?void 0:s.composableNavigationMode;Nt&&t!==Nt&&(zt.value={...zt.value||{},composableNavigationMode:Nt},ye==null||ye.setComposableMode(Nt).then(()=>ye==null?void 0:ye.requestSnapshot()).catch(n=>{Pt("setComposableMode reconcile failed",n)})),Nt&&t===Nt&&(Nt=null),gi.value=!0,er||(er=!0,Pt("first snapshot received",{fetch:Un.value.length,composables:nn.value.length,renders:Bn.value.length,transitions:Kn.value.length,traces:Wn.value.length}))}function oc(){if(Zo)return;Zo=!0,typeof window<"u"&&window.addEventListener("message",s=>{s.data&&s.data.type==="observatory:snapshot"&&Ws(s.data.data)});const e=_i(),t=()=>{if(!(!e.value||ye)){if(ye=e.value.devtools.extendClientRpc("observatory",{onSnapshot(s){Ws(s)}}),Pt("RPC connected"),Ks){const s=Ks;Ks=null,ye.setComposableMode(s).catch(n=>{Pt("setComposableMode failed (queued)",n)})}ye.getSnapshot().then(s=>{s&&Ws(s)}).catch(()=>{}),ye.requestSnapshot().catch(()=>{})}};t(),vi(()=>{t()})}function rc(){nn.value=[],ye==null||ye.clearComposables().then(()=>ye==null?void 0:ye.requestSnapshot()).catch(e=>{Pt("clearComposables failed",e)})}function ic(e){if(Nt=e,zt.value={...zt.value||{},composableNavigationMode:e},!ye){Ks=e,Pt("setComposableMode queued",e);return}ye.setComposableMode(e).then(()=>ye==null?void 0:ye.requestSnapshot()).catch(t=>{Pt("setComposableMode failed",t)})}function lc(e,t,s){ye==null||ye.editComposableValue(e,t,s).catch(n=>{Pt("editComposableValue failed",n)})}function co(e){var s,n;if(!e||e==="unknown")return;const t=(n=(s=_i().value)==null?void 0:s.devtools)==null?void 0:n.rpc;t!=null&&t.openInEditor&&t.openInEditor(e)}function Qt(){return oc(),{fetch:Un,provideInject:hi,composables:nn,renders:Bn,transitions:Kn,traces:Wn,features:zt,connected:gi,refresh:()=>{ye==null||ye.getSnapshot().then(t=>{t&&Ws(t)}).catch(()=>{}),ye==null||ye.requestSnapshot().catch(()=>{})},clearComposables:rc}}function hn(e,t){const s=t&&Number(localStorage.getItem(t))||e,n=ne(Math.max(160,Math.min(600,s)));let o=!1,i=0,l=0;function a(u){if(!o)return;const _=i-u.clientX;n.value=Math.max(160,Math.min(600,l+_)),t&&localStorage.setItem(t,String(n.value))}function c(){o&&(o=!1,document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect="")}function m(u){u.preventDefault(),o=!0,i=u.clientX,l=n.value,document.addEventListener("mousemove",a),document.addEventListener("mouseup",c),document.body.style.cursor="col-resize",document.body.style.userSelect="none"}return ro(()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect=""}),{paneWidth:n,onHandleMouseDown:m}}const ac={class:"fetch-dashboard tracker-view"},cc={class:"fetch-dashboard__stats tracker-stats-row"},uc={class:"stat-card"},dc={class:"stat-val"},fc={class:"stat-card"},pc={class:"stat-val stat-val--ok"},mc={class:"stat-card"},vc={class:"stat-val stat-val--pending"},_c={class:"stat-card"},hc={class:"stat-val stat-val--error"},gc={class:"fetch-dashboard__toolbar tracker-toolbar"},bc={class:"fetch-dashboard__split tracker-split"},yc={class:"fetch-dashboard__table tracker-table-wrap"},$c={class:"data-table"},wc=["onClick"],kc={class:"fetch-dashboard__key mono tracker-mono-secondary"},xc=["title"],Cc={class:"muted text-sm"},Sc={class:"mono text-sm"},Tc={class:"fetch-dashboard__bar-track tracker-progress-bar"},Mc={key:0},Ec={colspan:"7",class:"tracker-empty-cell"},Ic={class:"fetch-dashboard__detail-header"},Nc={class:"fetch-dashboard__detail-title mono bold"},Oc={class:"flex gap-2"},Rc={class:"fetch-dashboard__meta-grid"},Ac={class:"muted text-sm"},Fc={class:"fetch-dashboard__meta-value mono text-sm"},Lc={class:"fetch-dashboard__payload-box"},Pc={class:"mono text-sm muted"},Dc={key:2,class:"tracker-detail-empty"},jc={class:"fetch-dashboard__waterfall"},Vc={class:"fetch-dashboard__waterfall-header"},Hc={key:0,class:"fetch-dashboard__waterfall-body"},Uc={class:"fetch-dashboard__waterfall-key mono muted text-sm"},Bc={class:"fetch-dashboard__waterfall-track"},Kc={class:"fetch-dashboard__waterfall-time mono muted text-sm"},Wc=nt({__name:"FetchDashboard",setup(e){const{fetch:t,connected:s}=Qt(),{paneWidth:n,onHandleMouseDown:o}=hn(280,"observatory:fetch:detailWidth"),i=ne("all"),l=ne(""),a=ne(null),c=ne(!0),m=oe(()=>{const j=[...t.value].sort((J,G)=>J.startTime-G.startTime),z=j.length>0?j[0].startTime:0;return j.map(J=>({...J,startOffset:Math.max(0,J.startTime-z)}))}),u=oe(()=>m.value.find(j=>j.id===a.value)??null),_=oe(()=>({ok:m.value.filter(j=>j.status==="ok"||j.status==="cached").length,pending:m.value.filter(j=>j.status==="pending").length,error:m.value.filter(j=>j.status==="error").length})),C=oe(()=>m.value.filter(j=>{if(i.value!=="all"&&j.status!==i.value)return!1;const z=l.value.toLowerCase();return!(z&&!j.key.toLowerCase().includes(z)&&!j.url.toLowerCase().includes(z))})),w=oe(()=>{if(!u.value)return[];const j=u.value;return[["url",j.url],["status",j.status],["origin",j.origin],["duration",j.ms!=null?`${j.ms}ms`:"—"],["size",j.size?W(j.size):"—"],["cached",j.cached?"yes":"no"]]}),M=oe(()=>{if(!u.value)return"";const j=u.value.payload;if(j===void 0)return"(no payload captured yet)";try{return JSON.stringify(j,null,2)}catch{return String(j)}});function h(j){return{ok:"badge-ok",error:"badge-err",pending:"badge-warn",cached:"badge-gray"}[j]??"badge-gray"}function b(j){return{ok:"var(--teal)",error:"var(--red)",pending:"var(--amber)",cached:"var(--border)"}[j]??"var(--border)"}function P(j){const z=m.value.filter(G=>G.ms!=null).map(G=>G.ms),J=z.length>0?Math.max(...z,1):1;return j.ms!=null?Math.max(4,Math.round(j.ms/J*100)):4}function K(){const j=m.value.filter(J=>J.ms!=null);return j.length>0?Math.max(...j.map(J=>J.startOffset+J.ms),1):1}function F(j){const z=K();return Math.min(98,Math.round(j.startOffset/z*100))}function I(j){if(j.ms==null)return 2;const z=K(),J=F(j);return Math.min(100-J,Math.max(2,Math.round(j.ms/z*100)))}function W(j){return j<1024?`${j}B`:`${(j/1024).toFixed(1)}KB`}return(j,z)=>($(),k("div",ac,[r("div",cc,[r("div",uc,[z[8]||(z[8]=r("div",{class:"stat-label"},"total",-1)),r("div",dc,p(m.value.length),1)]),r("div",fc,[z[9]||(z[9]=r("div",{class:"stat-label"},"success",-1)),r("div",pc,p(_.value.ok),1)]),r("div",mc,[z[10]||(z[10]=r("div",{class:"stat-label"},"pending",-1)),r("div",vc,p(_.value.pending),1)]),r("div",_c,[z[11]||(z[11]=r("div",{class:"stat-label"},"error",-1)),r("div",hc,p(_.value.error),1)])]),r("div",gc,[r("button",{class:ee({active:i.value==="all"}),onClick:z[0]||(z[0]=J=>i.value="all")},"all",2),r("button",{class:ee({"danger-active":i.value==="error"}),onClick:z[1]||(z[1]=J=>i.value="error")},"errors",2),r("button",{class:ee({active:i.value==="pending"}),onClick:z[2]||(z[2]=J=>i.value="pending")},"pending",2),r("button",{class:ee({active:i.value==="cached"}),onClick:z[3]||(z[3]=J=>i.value="cached")},"cached",2),Ft(r("input",{"onUpdate:modelValue":z[4]||(z[4]=J=>l.value=J),type:"search",class:"fetch-dashboard__search tracker-toolbar__spacer",placeholder:"search key or url…"},null,512),[[qt,l.value]])]),r("div",bc,[r("div",yc,[r("table",$c,[z[12]||(z[12]=r("thead",null,[r("tr",null,[r("th",null,"key"),r("th",null,"url"),r("th",null,"status"),r("th",null,"origin"),r("th",null,"size"),r("th",null,"time"),r("th",{class:"fetch-dashboard__bar-column"},"bar")])],-1)),r("tbody",null,[($(!0),k(fe,null,he(C.value,J=>{var G;return $(),k("tr",{key:J.id,class:ee({selected:((G=u.value)==null?void 0:G.id)===J.id}),onClick:le=>a.value=J.id},[r("td",null,[r("span",kc,p(J.key),1)]),r("td",null,[r("span",{class:"fetch-dashboard__url mono tracker-mono-secondary tracker-truncate",title:J.url},p(J.url),9,xc)]),r("td",null,[r("span",{class:ee(["badge",h(J.status)])},p(J.status),3)]),r("td",null,[r("span",{class:ee(["badge",J.origin==="ssr"?"badge-info":"badge-gray"])},p(J.origin),3)]),r("td",Cc,p(J.size?W(J.size):"—"),1),r("td",Sc,p(J.ms!=null?`${J.ms}ms`:"—"),1),r("td",null,[r("div",Tc,[r("div",{class:"fetch-dashboard__bar-fill tracker-progress-bar__fill",style:Te({width:`${P(J)}%`,background:b(J.status)})},null,4)])])],10,wc)}),128)),C.value.length?q("",!0):($(),k("tr",Mc,[r("td",Ec,p(xe(s)?"No fetches recorded yet.":"Waiting for connection to the Nuxt app…"),1)]))])])]),u.value?($(),k("div",{key:0,class:"tracker-resize-handle",onMousedown:z[5]||(z[5]=(...J)=>xe(o)&&xe(o)(...J))},null,32)):q("",!0),u.value?($(),k("div",{key:1,class:"fetch-dashboard__detail tracker-detail-panel",style:Te({width:xe(n)+"px"})},[r("div",Ic,[r("span",Nc,p(u.value.key),1),r("div",Oc,[r("button",{onClick:z[6]||(z[6]=J=>a.value=null)},"×")])]),r("div",Rc,[($(!0),k(fe,null,he(w.value,([J,G])=>($(),k(fe,{key:J},[r("span",Ac,p(J),1),r("span",Fc,p(G),1)],64))),128))]),z[13]||(z[13]=r("div",{class:"tracker-section-label fetch-dashboard__section-label"},"payload",-1)),r("pre",Lc,p(M.value),1),z[14]||(z[14]=r("div",{class:"tracker-section-label fetch-dashboard__section-label fetch-dashboard__section-label--source"},"source",-1)),r("div",Pc,p(u.value.file)+":"+p(u.value.line),1)],4)):($(),k("div",Dc,"select a call to inspect"))]),r("div",jc,[r("div",Vc,[z[15]||(z[15]=r("div",{class:"tracker-section-label fetch-dashboard__waterfall-label"},"waterfall",-1)),r("button",{class:ee({active:c.value}),onClick:z[7]||(z[7]=J=>c.value=!c.value)},p(c.value?"hide":"show"),3)]),c.value?($(),k("div",Hc,[($(!0),k(fe,null,he(m.value,J=>($(),k("div",{key:J.id,class:"fetch-dashboard__waterfall-row"},[r("span",Uc,p(J.key),1),r("div",Bc,[r("div",{class:"fetch-dashboard__waterfall-bar",style:Te({left:`${F(J)}%`,width:`${Math.max(2,I(J))}%`,background:b(J.status)})},null,4)]),r("span",Kc,p(J.ms!=null?`${J.ms}ms`:"—"),1)]))),128))])):q("",!0)])]))}}),at=(e,t)=>{const s=e.__vccOpts||e;for(const[n,o]of t)s[n]=o;return s},zc=at(Wc,[["__scopeId","data-v-2d842102"]]),Jc={class:"provide-graph tracker-view"},Gc={class:"provide-graph__toolbar tracker-toolbar"},qc=["onClick"],Xc={class:"provide-graph__split tracker-split"},Qc={class:"provide-graph__graph-area"},Yc={key:0,class:"provide-graph__canvas-stage"},Zc=["width","height","viewBox"],eu=["d"],tu=["onClick"],su={class:"mono provide-graph__node-label"},nu={key:0,class:"badge badge-ok badge-xs"},ou={key:1,class:"badge badge-err badge-xs"},ru={key:1,class:"provide-graph__graph-empty"},iu={class:"provide-graph__detail-header"},lu={class:"provide-graph__detail-title mono bold"},au={key:0,class:"detail-section"},cu={class:"tracker-section-label provide-graph__section-label"},uu={class:"detail-list"},du={class:"row-main"},fu={class:"mono text-sm row-key"},pu=["title"],mu=["onClick"],vu={key:0,class:"row-warning"},_u={key:1,class:"row-consumers"},hu={key:0,class:"muted text-sm"},gu={key:2,class:"provide-graph__compact-muted muted text-sm"},bu={key:3,class:"value-box"},yu={class:"tracker-section-label provide-graph__section-label"},$u={class:"detail-list"},wu={class:"mono text-sm row-key"},ku={key:0,class:"badge badge-ok"},xu={key:1,class:"badge badge-err"},Cu=["title"],Su={key:2,class:"provide-graph__empty-detail muted text-sm"},Tu={key:2,class:"tracker-detail-empty"},es=140,ts=32,Mu=72,ss=18,Eu=nt({__name:"ProvideInjectGraph",setup(e){const{provideInject:t,connected:s}=Qt(),{paneWidth:n,onHandleMouseDown:o}=hn(280,"observatory:provide:detailWidth");function i(R){return R.injects.some(V=>!V.ok)?"var(--red)":R.type==="both"?"var(--blue)":R.type==="provider"?"var(--teal)":"var(--text3)"}function l(R,V){return V==="all"?!0:V==="warn"?R.injects.some(L=>!L.ok):V==="shadow"?R.provides.some(L=>L.isShadowing):R.provides.some(L=>L.key===V)||R.injects.some(L=>L.key===V)}function a(R,V){if(!V)return!0;const L=V.toLowerCase();return R.label.toLowerCase().includes(L)||R.componentName.toLowerCase().includes(L)||R.provides.some(se=>se.key.toLowerCase().includes(L))||R.injects.some(se=>se.key.toLowerCase().includes(L))}function c(R){let V=0;const L=[R];for(;L.length;){const se=L.pop();se.children.length===0?V++:L.push(...se.children)}return V}function m(R){if(typeof R=="string")return R;try{return JSON.stringify(R)}catch{return String(R)}}function u(R){return typeof R=="object"&&R!==null}function _(R){if(R===null)return"null";if(Array.isArray(R))return`Array(${R.length})`;if(typeof R=="object"){const V=Object.keys(R);return V.length?`{ ${V.join(", ")} }`:"{}"}return m(R)}function C(R){if(!u(R))return m(R);try{return JSON.stringify(R,null,2)}catch{return m(R)}}function w(R,V,L){return`${R}:${V}:${L}`}function M(R){return R.split("/").pop()??R}function h(R){co(R)}function b(R){return String(R.componentUid)}const P=oe(()=>{const R=new Map,V=new Map;function L(x){const ae=b(x),Y=R.get(ae);if(Y)return Y;const ce={id:ae,label:M(x.componentFile),componentName:x.componentName??M(x.componentFile),componentFile:x.componentFile,type:"consumer",provides:[],injects:[],children:[]};return R.set(ae,ce),V.set(ae,x.parentUid!==void 0?String(x.parentUid):null),ce}const se=new Map;for(const x of t.value.injects){const ae=se.get(x.key)??[];ae.push(x),se.set(x.key,ae)}const A=new Map;for(const x of t.value.provides)A.set(x.componentUid,x.componentName);for(const x of t.value.injects)A.set(x.componentUid,x.componentName);for(const x of t.value.provides){const ae=L(x),Y=se.get(x.key)??[];ae.provides.push({key:x.key,val:_(x.valueSnapshot),raw:x.valueSnapshot,reactive:x.isReactive,complex:u(x.valueSnapshot),scope:x.scope??"component",isShadowing:x.isShadowing??!1,consumerUids:Y.map(ce=>ce.componentUid),consumerNames:Y.map(ce=>ce.componentName)})}for(const x of t.value.injects)L(x).injects.push({key:x.key,from:x.resolvedFromFile??null,fromName:x.resolvedFromUid!==void 0?A.get(x.resolvedFromUid)??null:null,ok:x.resolved});for(const x of R.values())x.injects.some(ae=>!ae.ok)?x.type="error":x.provides.length&&x.injects.length?x.type="both":x.provides.length?x.type="provider":x.type="consumer";const N=[];for(const[x,ae]of R.entries()){const Y=V.get(x),ce=Y?R.get(Y):void 0;ce?ce.children.push(ae):N.push(ae)}return N}),K=ne("all"),F=ne(""),I=ne(null),W=ne(new Set);At(I,()=>{W.value=new Set});function j(R){const V=new Set(W.value);V.has(R)?V.delete(R):V.add(R),W.value=V}const z=oe(()=>{const R=new Set,V=[...P.value];for(;V.length;){const L=V.pop();L.provides.forEach(se=>R.add(se.key)),L.injects.forEach(se=>R.add(se.key)),V.push(...L.children)}return[...R]}),J=oe(()=>{function R(V){const L=[],se=[V];for(;se.length;){const N=se.pop();L.push(N);for(let x=N.children.length-1;x>=0;x--)se.push(N.children[x])}const A=new Map;for(let N=L.length-1;N>=0;N--){const x=L[N],ae=x.children.map(ce=>A.get(ce)??null).filter(ce=>ce!==null);!(l(x,K.value)&&a(x,F.value))&&!ae.length?A.set(x,null):A.set(x,{...x,children:ae})}return A.get(V)??null}return P.value.map(R).filter(Boolean)});At([J,I],([R,V])=>{if(!V)return;const L=new Set,se=[...R];for(;se.length;){const A=se.pop();L.add(A.id),se.push(...A.children)}L.has(V.id)||(I.value=null)});const G=oe(()=>{const R=[],V=ss;let L=V;for(const se of J.value){const A=[{node:se,depth:0,slotLeft:L,parentId:null}];for(;A.length;){const{node:x,depth:ae,slotLeft:Y,parentId:ce}=A.pop(),Fe=c(x)*(es+ss)-ss;R.push({data:x,parentId:ce,x:Math.round(Y+Fe/2),y:Math.round(V+ae*(ts+Mu)+ts/2)});let Pe=Y;const Oe=[];for(const Ke of x.children){const De=c(Ke);Oe.push({node:Ke,depth:ae+1,slotLeft:Pe,parentId:x.id}),Pe+=De*(es+ss)}for(let Ke=Oe.length-1;Ke>=0;Ke--)A.push(Oe[Ke])}const N=c(se);L+=N*(es+ss)+ss*2}return R}),le=oe(()=>G.value.reduce((R,V)=>Math.max(R,V.x+es/2+20),520)),me=oe(()=>G.value.reduce((R,V)=>Math.max(R,V.y+ts/2+20),200)),X=oe(()=>{const R=new Map(G.value.map(V=>[V.data.id,V]));return G.value.filter(V=>V.parentId!==null).map(V=>{const L=R.get(V.parentId);return{id:`${L.data.id}--${V.data.id}`,x1:L.x,y1:L.y+ts/2,x2:V.x,y2:V.y-ts/2}})});return(R,V)=>($(),k("div",Jc,[r("div",Gc,[r("button",{class:ee({active:K.value==="all"}),onClick:V[0]||(V[0]=L=>K.value="all")},"all keys",2),($(!0),k(fe,null,he(z.value,L=>($(),k("button",{key:L,class:ee(["provide-graph__key-filter mono",{active:K.value===L}]),onClick:se=>K.value=L},p(L),11,qc))),128)),r("button",{class:ee(["provide-graph__toolbar-spacer",{"danger-active":K.value==="shadow"}]),onClick:V[1]||(V[1]=L=>K.value=K.value==="shadow"?"all":"shadow")}," shadowed ",2),r("button",{class:ee({"danger-active":K.value==="warn"}),onClick:V[2]||(V[2]=L=>K.value=K.value==="warn"?"all":"warn")}," warnings ",2),Ft(r("input",{"onUpdate:modelValue":V[3]||(V[3]=L=>F.value=L),type:"search",class:"provide-graph__search",placeholder:"search component or key…"},null,512),[[qt,F.value]])]),r("div",Xc,[r("div",Qc,[V[7]||(V[7]=da('<div class="provide-graph__legend" data-v-f19461a8><span class="provide-graph__legend-dot provide-graph__legend-dot--provides" data-v-f19461a8></span><span data-v-f19461a8>provides</span><span class="provide-graph__legend-dot provide-graph__legend-dot--both" data-v-f19461a8></span><span data-v-f19461a8>both</span><span class="provide-graph__legend-dot provide-graph__legend-dot--injects" data-v-f19461a8></span><span data-v-f19461a8>injects</span><span class="provide-graph__legend-dot provide-graph__legend-dot--missing" data-v-f19461a8></span><span data-v-f19461a8>missing provider</span></div>',1)),G.value.length?($(),k("div",Yc,[r("div",{class:"provide-graph__canvas-wrap",style:Te({width:`${le.value}px`,height:`${me.value}px`})},[($(),k("svg",{class:"provide-graph__edges-svg",width:le.value,height:me.value,viewBox:`0 0 ${le.value} ${me.value}`},[($(!0),k(fe,null,he(X.value,L=>($(),k("path",{key:L.id,d:`M ${L.x1},${L.y1} C ${L.x1},${(L.y1+L.y2)/2} ${L.x2},${(L.y1+L.y2)/2} ${L.x2},${L.y2}`,class:"provide-graph__edge",fill:"none"},null,8,eu))),128))],8,Zc)),($(!0),k(fe,null,he(G.value,L=>{var se;return $(),k("div",{key:L.data.id,class:ee(["provide-graph__node",{"provide-graph__node--selected":((se=I.value)==null?void 0:se.id)===L.data.id}]),style:Te({left:`${L.x-es/2}px`,top:`${L.y-ts/2}px`,width:`${es}px`,"--node-color":i(L.data)}),onClick:A=>I.value=L.data},[r("span",{class:"provide-graph__node-dot",style:Te({background:i(L.data)})},null,4),r("span",su,p(L.data.label),1),L.data.provides.length?($(),k("span",nu," +"+p(L.data.provides.length),1)):q("",!0),L.data.injects.some(A=>!A.ok)?($(),k("span",ou,"!")):q("",!0)],14,tu)}),128))],4)])):($(),k("div",ru,p(xe(s)?"No components match the current provide/inject filter.":"Waiting for connection to the Nuxt app…"),1))]),I.value?($(),k("div",{key:0,class:"tracker-resize-handle",onMousedown:V[4]||(V[4]=(...L)=>xe(o)&&xe(o)(...L))},null,32)):q("",!0),I.value?($(),k("div",{key:1,class:"provide-graph__detail tracker-detail-panel",style:Te({width:xe(n)+"px"})},[r("div",iu,[r("span",lu,p(I.value.label),1),I.value.componentFile&&I.value.componentFile!=="unknown"?($(),k("button",{key:0,class:"jump-btn",title:"Open in editor",onClick:V[5]||(V[5]=L=>h(I.value.componentFile))}," open ↗ ")):q("",!0),r("button",{onClick:V[6]||(V[6]=L=>I.value=null)},"×")]),I.value.provides.length?($(),k("div",au,[r("div",cu,"provides ("+p(I.value.provides.length)+")",1),r("div",uu,[($(!0),k(fe,null,he(I.value.provides,(L,se)=>($(),k("div",{key:w(I.value.id,L.key,se),class:"provide-row"},[r("div",du,[r("span",fu,p(L.key),1),r("span",{class:"mono text-sm muted row-value-preview",title:L.val},p(L.val),9,pu),r("span",{class:ee(["badge scope-badge",`scope-${L.scope}`])},p(L.scope),3),r("span",{class:ee(["badge",L.reactive?"badge-ok":"badge-gray"])},p(L.reactive?"reactive":"static"),3),L.complex?($(),k("button",{key:0,class:"row-toggle mono",onClick:A=>j(w(I.value.id,L.key,se))},p(W.value.has(w(I.value.id,L.key,se))?"hide":"view"),9,mu)):q("",!0)]),L.isShadowing?($(),k("div",vu,"shadows a parent provide with the same key")):q("",!0),L.consumerNames.length?($(),k("div",_u,[V[8]||(V[8]=r("span",{class:"muted text-sm"},"used by:",-1)),($(!0),k(fe,null,he(L.consumerNames,A=>($(),k("span",{key:A,class:"consumer-chip mono"},p(A),1))),128)),L.consumerNames.length?q("",!0):($(),k("span",hu,"no consumers"))])):($(),k("div",gu,"no consumers detected")),L.complex&&W.value.has(w(I.value.id,L.key,se))?($(),k("pre",bu,p(C(L.raw)),1)):q("",!0)]))),128))])])):q("",!0),I.value.injects.length?($(),k("div",{key:1,class:"detail-section",style:Te({marginTop:I.value.provides.length?"10px":"0"})},[r("div",yu,"injects ("+p(I.value.injects.length)+")",1),r("div",$u,[($(!0),k(fe,null,he(I.value.injects,L=>($(),k("div",{key:L.key,class:ee(["inject-row",{"inject-miss":!L.ok}])},[r("span",wu,p(L.key),1),L.ok?($(),k("span",ku,"resolved")):($(),k("span",xu,"no provider")),r("span",{class:ee(["mono text-sm row-from",L.fromName?"":"muted"]),title:L.from??"undefined"},p(L.fromName??L.from??"undefined"),11,Cu)],2))),128))])],4)):q("",!0),!I.value.provides.length&&!I.value.injects.length?($(),k("div",Su," no provide/inject in this component ")):q("",!0)],4)):($(),k("div",Tu,p(xe(s)?"Click a node to inspect.":"Waiting for connection to the Nuxt app…"),1))])]))}}),Iu=at(Eu,[["__scopeId","data-v-f19461a8"]]),Nu=6,Ou=1500;function os(e,t,s,n,o=0){if(n.nodes>=Ou||(n.nodes++,e==null))return!1;const i=typeof e;if(i==="string"||i==="number"||i==="boolean"||i==="bigint")return String(e).toLowerCase().includes(t);if(i!=="object"||o>=Nu)return!1;const l=e;if(s.has(l))return!1;if(s.add(l),Array.isArray(e))return e.some(a=>os(a,t,s,n,o+1));if(e instanceof Map){for(const[a,c]of e.entries())if(os(a,t,s,n,o+1)||os(c,t,s,n,o+1))return!0;return!1}if(e instanceof Set){for(const a of e.values())if(os(a,t,s,n,o+1))return!0;return!1}try{const a=Object.entries(e);for(const[c,m]of a)if(c.toLowerCase().includes(t)||os(m,t,s,n,o+1))return!0}catch{return!1}return!1}function Ru(e,t){const s=t.trim().toLowerCase();if(!s||e.name.toLowerCase().includes(s)||e.componentFile.toLowerCase().includes(s))return!0;const n=new WeakSet,o={nodes:0};for(const[i,l]of Object.entries(e.refs))if(i.toLowerCase().includes(s)||os(l.value,s,n,o))return!0;return!1}const Au={class:"composable-tracker tracker-view"},Fu={class:"composable-tracker__stats tracker-stats-row"},Lu={class:"stat-card"},Pu={class:"stat-val"},Du={class:"stat-card"},ju={class:"stat-val stat-val--active"},Vu={class:"stat-card"},Hu={class:"stat-val stat-val--error"},Uu={class:"stat-card"},Bu={class:"stat-val"},Ku={class:"composable-tracker__toolbar tracker-toolbar"},Wu=["title"],zu={class:"composable-tracker__list"},Ju=["onClick"],Gu={class:"composable-tracker__card-header"},qu={class:"composable-tracker__identity"},Xu={class:"composable-tracker__name mono"},Qu={class:"composable-tracker__file muted mono"},Yu={class:"composable-tracker__meta"},Zu={key:0,class:"badge badge-warn"},ed={key:1,class:"badge badge-warn"},td={key:2,class:"badge badge-err"},sd={key:3,class:"badge badge-ok"},nd={key:4,class:"badge badge-gray"},od={key:0,class:"composable-tracker__refs-preview"},rd=["title"],id={class:"composable-tracker__ref-chip-key"},ld={class:"composable-tracker__ref-chip-val"},ad={key:0,class:"composable-tracker__ref-chip-shared-dot",title:"global"},cd={key:0,class:"muted text-sm"},ud={key:0,class:"composable-tracker__leak-banner"},dd={key:1,class:"composable-tracker__global-banner"},fd={key:2,class:"composable-tracker__compact-muted muted text-sm"},pd=["title","onClick"],md={class:"composable-tracker__ref-row-actions"},vd=["title","onClick"],_d={key:1,class:"badge badge-amber text-xs"},hd=["onClick"],gd={class:"composable-tracker__section-label composable-tracker__section-label--spaced tracker-section-label"},bd={class:"composable-tracker__section-label-meta muted"},yd={class:"composable-tracker__history-list"},$d={class:"composable-tracker__history-time mono muted"},wd={class:"composable-tracker__history-key mono"},kd={class:"composable-tracker__history-val mono"},xd={key:0,class:"composable-tracker__compact-muted muted text-sm"},Cd={class:"composable-tracker__context-label muted text-sm"},Sd={class:"composable-tracker__lifecycle-row"},Td={class:"composable-tracker__context-value mono text-sm"},Md={class:"composable-tracker__lifecycle-row"},Ed={class:"composable-tracker__context-value composable-tracker__context-value--muted mono text-sm muted"},Id={class:"composable-tracker__lifecycle-row"},Nd={class:"composable-tracker__context-value composable-tracker__context-value--row composable-tracker__context-value--muted mono text-sm muted"},Od=["onClick"],Rd={class:"composable-tracker__lifecycle-row"},Ad={class:"composable-tracker__context-value composable-tracker__context-value--muted mono text-sm muted"},Fd={class:"composable-tracker__lifecycle-row"},Ld={class:"composable-tracker__context-value mono text-sm"},Pd={class:"composable-tracker__lifecycle-row"},Dd={class:"composable-tracker__context-value mono text-sm"},jd={key:0,class:"composable-tracker__empty muted text-sm"},Vd={key:0,class:"composable-tracker__lookup-panel"},Hd={class:"composable-tracker__lookup-header"},Ud={class:"mono text-sm"},Bd={class:"muted text-sm"},Kd={key:0,class:"composable-tracker__lookup-empty muted text-sm"},Wd={class:"mono text-sm"},zd={class:"muted text-sm"},Jd={class:"composable-tracker__lookup-route muted text-sm"},Gd={class:"composable-tracker__edit-dialog"},qd={class:"composable-tracker__edit-dialog-header"},Xd={class:"mono"},Qd={key:0,class:"composable-tracker__edit-error text-sm"},Yd={class:"composable-tracker__edit-actions"},Zd=nt({__name:"ComposableTracker",setup(e){const{composables:t,connected:s,features:n,clearComposables:o}=Qt(),i=oe(()=>{var A;return((A=n.value)==null?void 0:A.composableNavigationMode)==="session"?"session":"route"});function l(){const A=i.value==="route"?"session":"route";ic(A)}function a(){o()}function c(A){if(A===null)return"null";if(A===void 0)return"undefined";if(typeof A=="string")return`"${A}"`;if(typeof A=="object")try{const N=JSON.stringify(A);return N.length>80?N.slice(0,80)+"…":N}catch{return String(A)}return String(A)}function m(A){if(A===null)return"null";if(A===void 0)return"undefined";if(typeof A=="string")return`"${A}"`;if(typeof A=="object")try{return JSON.stringify(A,null,2)}catch{return String(A)}return String(A)}function u(A){return A.split("/").pop()??A}function _(A){co(A)}const C=ne("all"),w=ne(""),M=ne(null),h=oe(()=>t.value),b=oe(()=>({mounted:h.value.filter(A=>A.status==="mounted").length,leaks:h.value.filter(A=>A.leak).length})),P=oe(()=>{const N=[...h.value].reverse().filter(Y=>!(C.value==="leak"&&!Y.leak||C.value==="mounted"&&Y.status!=="mounted"||C.value==="unmounted"&&Y.status!=="unmounted"||w.value.trim()&&!Ru(Y,w.value))),x=[],ae=[];for(const Y of N)Y.isLayoutComposable?x.push(Y):ae.push(Y);return[...x,...ae]});function K(A){return[{label:"onMounted",ok:A.lifecycle.hasOnMounted,status:A.lifecycle.hasOnMounted?"registered":"not used"},{label:"onUnmounted",ok:A.lifecycle.hasOnUnmounted,status:A.lifecycle.hasOnUnmounted?"registered":"missing"},{label:"watchers cleaned",ok:A.lifecycle.watchersCleaned,status:A.lifecycle.watchersCleaned?"all stopped":"NOT stopped"},{label:"intervals cleared",ok:A.lifecycle.intervalsCleaned,status:A.lifecycle.intervalsCleaned?"all cleared":"NOT cleared"}]}function F(A){return A==="computed"?"badge-info":A==="reactive"?"badge-purple":"badge-gray"}const I=ne(new Set);function W(A,N){return`${A}:${N}`}function j(A){if(A==null||typeof A!="object")return!1;try{return JSON.stringify(A).length>60}catch{return!1}}function z(A,N){return I.value.has(W(A,N))}function J(A,N){const x=W(A,N),ae=new Set(I.value);ae.has(x)?ae.delete(x):ae.add(x),I.value=ae}const G=ne(null),le=oe(()=>{if(!G.value)return[];const A=G.value;return A.identityGroup?h.value.filter(N=>{var x;return N.name===A.composableName&&((x=N.sharedKeyGroups)==null?void 0:x[A.key])===A.identityGroup&&A.key in N.refs}):h.value.filter(N=>A.key in N.refs)}),me=oe(()=>G.value?G.value.identityGroup?`${G.value.key} (shared identity)`:G.value.key:"");function X(A,N){var Y,ce,Le,Fe;const x=(Y=A.sharedKeyGroups)==null?void 0:Y[N],ae={key:N,composableName:A.name,identityGroup:x};if(((ce=G.value)==null?void 0:ce.key)===ae.key&&((Le=G.value)==null?void 0:Le.composableName)===ae.composableName&&((Fe=G.value)==null?void 0:Fe.identityGroup)===ae.identityGroup){G.value=null;return}G.value=ae}const R=ne(null),V=ne("");function L(A,N,x){V.value="",R.value={id:A,key:N,rawValue:JSON.stringify(x,null,2)}}function se(){if(!R.value)return;let A;try{A=JSON.parse(R.value.rawValue),V.value=""}catch(N){V.value=`Invalid JSON: ${N.message}`;return}lc(R.value.id,R.value.key,A),R.value=null}return(A,N)=>($(),k("div",Au,[r("div",Fu,[r("div",Lu,[N[11]||(N[11]=r("div",{class:"stat-label"},"total",-1)),r("div",Pu,p(h.value.length),1)]),r("div",Du,[N[12]||(N[12]=r("div",{class:"stat-label"},"mounted",-1)),r("div",ju,p(b.value.mounted),1)]),r("div",Vu,[N[13]||(N[13]=r("div",{class:"stat-label"},"leaks",-1)),r("div",Hu,p(b.value.leaks),1)]),r("div",Uu,[N[14]||(N[14]=r("div",{class:"stat-label"},"instances",-1)),r("div",Bu,p(h.value.length),1)])]),r("div",Ku,[r("button",{class:ee({active:C.value==="all"}),onClick:N[0]||(N[0]=x=>C.value="all")},"all",2),r("button",{class:ee({active:C.value==="mounted"}),onClick:N[1]||(N[1]=x=>C.value="mounted")},"mounted",2),r("button",{class:ee({"danger-active":C.value==="leak"}),onClick:N[2]||(N[2]=x=>C.value="leak")},"leaks only",2),r("button",{class:ee({active:C.value==="unmounted"}),onClick:N[3]||(N[3]=x=>C.value="unmounted")},"unmounted",2),r("button",{class:"composable-tracker__mode-btn",title:`switch to ${i.value==="route"?"session":"route"} mode`,onClick:l}," mode: "+p(i.value),9,Wu),N[15]||(N[15]=r("span",{class:"tracker-toolbar__spacer"},null,-1)),Ft(r("input",{"onUpdate:modelValue":N[4]||(N[4]=x=>w.value=x),class:"composable-tracker__search",type:"search",placeholder:"search name, file, or ref…"},null,512),[[qt,w.value]]),i.value==="session"?($(),k("button",{key:0,class:"composable-tracker__clear-btn",title:"Clear session history",onClick:a}," clear session ")):q("",!0)]),r("div",zu,[($(!0),k(fe,null,he(P.value,x=>{var ae;return $(),k("div",{key:x.id,class:ee(["composable-tracker__card",{"composable-tracker__card--leak":x.leak,"composable-tracker__card--expanded":M.value===x.id}]),onClick:Y=>M.value=M.value===x.id?null:x.id},[r("div",Gu,[r("div",qu,[r("span",Xu,p(x.name),1),r("span",Qu,p(u(x.componentFile)),1)]),r("div",Yu,[x.watcherCount>0&&!x.leak?($(),k("span",Zu,p(x.watcherCount)+"w",1)):q("",!0),x.intervalCount>0&&!x.leak?($(),k("span",ed,p(x.intervalCount)+"t",1)):q("",!0),x.leak?($(),k("span",td,"leak")):x.status==="mounted"?($(),k("span",sd,"mounted")):($(),k("span",nd,"unmounted"))])]),Object.keys(x.refs).length?($(),k("div",od,[($(!0),k(fe,null,he(Object.entries(x.refs).slice(0,3),([Y,ce])=>{var Le,Fe,Pe;return $(),k("span",{key:Y,class:ee(["composable-tracker__ref-chip",{"composable-tracker__ref-chip--reactive":ce.type==="reactive","composable-tracker__ref-chip--computed":ce.type==="computed","composable-tracker__ref-chip--shared":(Le=x.sharedKeys)==null?void 0:Le.includes(Y)}]),title:(Fe=x.sharedKeys)!=null&&Fe.includes(Y)?"shared global state":""},[r("span",id,p(Y),1),r("span",ld,p(c(ce.value)),1),(Pe=x.sharedKeys)!=null&&Pe.includes(Y)?($(),k("span",ad)):q("",!0)],10,rd)}),128)),Object.keys(x.refs).length>3?($(),k("span",cd," +"+p(Object.keys(x.refs).length-3)+" more ",1)):q("",!0)])):q("",!0),M.value===x.id?($(),k("div",{key:1,class:"composable-tracker__detail",onClick:N[5]||(N[5]=Rt(()=>{},["stop"]))},[x.leak?($(),k("div",ud,p(x.leakReason),1)):q("",!0),(ae=x.sharedKeys)!=null&&ae.length?($(),k("div",dd,[N[17]||(N[17]=r("span",{class:"composable-tracker__global-dot"},null,-1)),r("span",null,[N[16]||(N[16]=r("strong",null,"global state",-1)),Ie(" — "+p(x.sharedKeys.join(", "))+" "+p(x.sharedKeys.length===1?"is":"are")+" shared across all instances of "+p(x.name),1)])])):q("",!0),N[25]||(N[25]=r("div",{class:"composable-tracker__section-label tracker-section-label"},"reactive state",-1)),Object.keys(x.refs).length?q("",!0):($(),k("div",fd," no tracked state returned ")),($(!0),k(fe,null,he(Object.entries(x.refs),([Y,ce])=>{var Le,Fe;return $(),k("div",{key:Y,class:"composable-tracker__ref-row"},[r("span",{class:"composable-tracker__ref-key composable-tracker__ref-key--clickable mono text-sm",title:(Le=x.sharedKeyGroups)!=null&&Le[Y]?`click to see instances sharing this exact '${Y}' state`:`click to see all instances exposing '${Y}'`,onClick:Rt(Pe=>X(x,Y),["stop"])},p(Y),9,pd),r("span",{class:ee(["composable-tracker__ref-val mono text-sm",{"composable-tracker__ref-val--full":j(ce.value)&&z(x.id,Y),"composable-tracker__ref-val--collapsed":j(ce.value)&&!z(x.id,Y)}])},p(j(ce.value)&&!z(x.id,Y)?c(ce.value):m(ce.value)),3),r("div",md,[j(ce.value)?($(),k("button",{key:0,class:"composable-tracker__expand-btn",title:z(x.id,Y)?"Collapse":"Expand",onClick:Rt(Pe=>J(x.id,Y),["stop"])},p(z(x.id,Y)?"▲":"▼"),9,vd)):q("",!0),r("span",{class:ee(["badge text-xs",F(ce.type)])},p(ce.type),3),(Fe=x.sharedKeys)!=null&&Fe.includes(Y)?($(),k("span",_d,"global")):q("",!0),ce.type==="ref"?($(),k("button",{key:2,class:"composable-tracker__edit-btn",title:"Edit value",onClick:Rt(Pe=>L(x.id,Y,ce.value),["stop"])}," edit ",8,hd)):q("",!0)])])}),128)),x.history&&x.history.length?($(),k(fe,{key:3},[r("div",gd,[N[18]||(N[18]=Ie(" change history ",-1)),r("span",bd,"("+p(x.history.length)+" events)",1)]),r("div",yd,[($(!0),k(fe,null,he([...x.history].reverse().slice(0,20),(Y,ce)=>($(),k("div",{key:ce,class:"composable-tracker__history-row"},[r("span",$d,"+"+p((Y.t/1e3).toFixed(2))+"s",1),r("span",wd,p(Y.key),1),r("span",kd,p(c(Y.value)),1)]))),128)),x.history.length>20?($(),k("div",xd," … "+p(x.history.length-20)+" earlier events ",1)):q("",!0)])],64)):q("",!0),N[26]||(N[26]=r("div",{class:"composable-tracker__section-label composable-tracker__section-label--spaced tracker-section-label"}," lifecycle ",-1)),($(!0),k(fe,null,he(K(x),Y=>($(),k("div",{key:Y.label,class:"composable-tracker__lifecycle-row"},[r("span",{class:ee(["composable-tracker__lifecycle-dot",Y.ok?"composable-tracker__lifecycle-dot--ok":"composable-tracker__lifecycle-dot--error"])},null,2),r("span",Cd,p(Y.label),1),r("span",{class:ee(["composable-tracker__lifecycle-status text-sm",Y.ok?"composable-tracker__lifecycle-status--ok":"composable-tracker__lifecycle-status--error"])},p(Y.status),3)]))),128)),N[27]||(N[27]=r("div",{class:"composable-tracker__section-label composable-tracker__section-label--spaced tracker-section-label"}," context ",-1)),r("div",Sd,[N[19]||(N[19]=r("span",{class:"composable-tracker__context-label muted text-sm"},"component",-1)),r("span",Td,p(u(x.componentFile)),1)]),r("div",Md,[N[20]||(N[20]=r("span",{class:"composable-tracker__context-label muted text-sm"},"uid",-1)),r("span",Ed,p(x.componentUid),1)]),r("div",Id,[N[21]||(N[21]=r("span",{class:"composable-tracker__context-label muted text-sm"},"defined in",-1)),r("span",Nd,[Ie(p(x.file)+":"+p(x.line)+" ",1),r("button",{class:"composable-tracker__jump-btn",title:"Open in editor",onClick:Rt(Y=>_(x.file),["stop"])}," open ↗ ",8,Od)])]),r("div",Rd,[N[22]||(N[22]=r("span",{class:"composable-tracker__context-label muted text-sm"},"route",-1)),r("span",Ad,p(x.route),1)]),r("div",Fd,[N[23]||(N[23]=r("span",{class:"composable-tracker__context-label muted text-sm"},"watchers",-1)),r("span",Ld,p(x.watcherCount),1)]),r("div",Pd,[N[24]||(N[24]=r("span",{class:"composable-tracker__context-label muted text-sm"},"intervals",-1)),r("span",Dd,p(x.intervalCount),1)])])):q("",!0)],10,Ju)}),128)),P.value.length?q("",!0):($(),k("div",jd,p(xe(s)?"No composables recorded yet.":"Waiting for connection to the Nuxt app…"),1))]),Me(en,{name:"slide"},{default:Ts(()=>[G.value?($(),k("div",Vd,[r("div",Hd,[r("span",Ud,p(me.value),1),r("span",Bd,"— "+p(le.value.length)+" instance"+p(le.value.length!==1?"s":""),1),r("button",{class:"composable-tracker__clear-btn composable-tracker__lookup-close",onClick:N[6]||(N[6]=x=>G.value=null)},"✕")]),le.value.length?q("",!0):($(),k("div",Kd," No instances matched this lookup. ")),($(!0),k(fe,null,he(le.value,x=>($(),k("div",{key:x.id,class:"composable-tracker__lookup-row"},[r("span",Wd,p(x.name),1),r("span",zd,p(u(x.componentFile)),1),r("span",Jd,p(x.route),1)]))),128))])):q("",!0)]),_:1}),Me(en,{name:"fade"},{default:Ts(()=>[R.value?($(),k("div",{key:0,class:"composable-tracker__edit-overlay",onClick:N[10]||(N[10]=Rt(x=>R.value=null,["self"]))},[r("div",Gd,[r("div",qd,[N[28]||(N[28]=Ie(" edit ",-1)),r("span",Xd,p(R.value.key),1),r("button",{class:"composable-tracker__clear-btn composable-tracker__dialog-close",onClick:N[7]||(N[7]=x=>R.value=null)},"✕")]),N[29]||(N[29]=r("p",{class:"composable-tracker__edit-help muted text-sm"},[Ie(" Value applied immediately to the live ref. Only "),r("span",{class:"mono"},"ref"),Ie(" values are writable. ")],-1)),Ft(r("textarea",{"onUpdate:modelValue":N[8]||(N[8]=x=>R.value.rawValue=x),class:"composable-tracker__edit-textarea",rows:"6",spellcheck:"false"},null,512),[[qt,R.value.rawValue]]),V.value?($(),k("div",Qd,p(V.value),1)):q("",!0),r("div",Yd,[r("button",{onClick:se},"apply"),r("button",{class:"composable-tracker__clear-btn",onClick:N[9]||(N[9]=x=>R.value=null)},"cancel")])])])):q("",!0)]),_:1})]))}}),ef=at(Zd,[["__scopeId","data-v-74211d4e"]]);function bi(e,t){const s=JSON.stringify(t,null,2),n=new Blob([s],{type:"application/json"}),o=URL.createObjectURL(n),i=document.createElement("a");i.href=o,i.download=e,i.click(),URL.revokeObjectURL(o)}function yi(){return new Promise((e,t)=>{const s=document.createElement("input");s.type="file",s.accept=".json,application/json",s.addEventListener("change",()=>{var i;const n=(i=s.files)==null?void 0:i[0];if(!n){t(new Error("No file selected"));return}const o=new FileReader;o.addEventListener("load",()=>{try{e(JSON.parse(o.result))}catch{t(new Error("Invalid JSON file"))}}),o.addEventListener("error",()=>t(new Error("Failed to read file"))),o.readAsText(n)}),window.addEventListener("focus",()=>{setTimeout(()=>{var n;(n=s.files)!=null&&n.length||t(new Error("cancelled"))},300)},{once:!0}),s.click()})}const tf={class:"render-heatmap tracker-view"},sf={class:"render-heatmap__controls tracker-toolbar"},nf={class:"render-heatmap__mode-group"},of={class:"render-heatmap__threshold-group"},rf=["min","max","step"],lf={class:"mono text-sm"},af=["value"],cf={class:"render-heatmap__stats tracker-stats-row"},uf={class:"stat-card"},df={class:"stat-val"},ff={class:"stat-card"},pf={class:"stat-val"},mf={class:"stat-card"},vf={class:"stat-val stat-val--error"},_f={class:"stat-card"},hf={class:"stat-val"},gf={class:"render-heatmap__inspector"},bf={class:"render-heatmap__roots-panel"},yf=["onClick"],$f={class:"render-heatmap__root-copy"},wf={class:"render-heatmap__root-label mono"},kf={class:"render-heatmap__root-sub muted mono"},xf={class:"render-heatmap__root-meta mono"},Cf={key:0,class:"render-heatmap__detail-empty"},Sf={class:"render-heatmap__tree-panel"},Tf={class:"render-heatmap__tree-toolbar"},Mf=["value"],Ef={class:"render-heatmap__tree-frame"},If={class:"render-heatmap__tree-canvas tree-canvas"},Nf={key:0,class:"render-heatmap__detail-empty"},Of={class:"render-heatmap__detail-header"},Rf={class:"render-heatmap__detail-title mono bold"},Af={class:"render-heatmap__detail-pill-row"},Ff={class:"render-heatmap__detail-pill mono"},Lf={class:"render-heatmap__detail-pill render-heatmap__detail-pill--muted mono muted"},Pf={key:0,class:"render-heatmap__detail-pill mono"},Df={key:1,class:"render-heatmap__detail-pill render-heatmap__detail-pill--persistent mono"},jf={key:2,class:"render-heatmap__detail-pill render-heatmap__detail-pill--hydrated mono"},Vf={class:"render-heatmap__detail-pill mono"},Hf={class:"render-heatmap__meta-grid"},Uf={class:"mono text-sm"},Bf={class:"mono text-sm"},Kf={class:"render-heatmap__file-row mono text-sm muted"},Wf={class:"mono text-sm"},zf={class:"mono text-sm"},Jf={class:"mono text-sm"},Gf={class:"render-heatmap__meta-grid"},qf={class:"mono text-sm"},Xf={class:"mono text-sm"},Qf={class:"mono text-sm"},Yf={class:"mono text-sm"},Zf={class:"mono text-sm"},ep={class:"mono text-sm"},tp={class:"mono text-sm"},sp={key:0,class:"muted text-sm"},np={class:"tracker-section-label render-heatmap__section-label render-heatmap__section-label--timeline"},op={class:"render-heatmap__section-label-meta muted"},rp={key:1,class:"muted text-sm"},ip={key:2,class:"render-heatmap__timeline-list"},lp={class:"render-heatmap__timeline-time mono muted"},ap={class:"render-heatmap__timeline-dur mono"},cp={key:0,class:"render-heatmap__timeline-trigger mono muted"},up={class:"render-heatmap__timeline-route mono muted"},dp={key:0,class:"render-heatmap__compact-muted muted text-sm"},fp={key:1,class:"render-heatmap__detail-empty"},pp=nt({__name:"RenderHeatmap",setup(e){const t=nt({name:"TreeNode",props:{node:Object,mode:String,threshold:Number,selected:String,expandedIds:Object},emits:["select","toggle"],setup(S,{emit:y}){function B(Z){return S.mode==="count"?Z.rerenders+Z.mountCount:Z.avgMs}function ve(Z){return B(Z)>=S.threshold}function te(Z){return{selected:S.selected===Z.id,hot:ve(Z)}}return()=>{var uo,fo,po;const Z=S.node,Ae=((uo=S.expandedIds)==null?void 0:uo.has(Z.id))??!1,Ze=Z.children.length>0,wi=S.mode==="count"?`${Z.rerenders+Z.mountCount}`:`${Z.avgMs.toFixed(1)}ms`,ki=S.mode==="count"?"renders":"avg",ds=[],xi=(fo=Z.element)==null?void 0:fo.toLowerCase();if(Z.element&&Z.element!==Z.label&&!["div","span","p"].includes(xi??"")&&ds.push(Z.element),Z.file!=="unknown"){const qe=((po=Z.file.split("/").pop())==null?void 0:po.replace(/\.vue$/i,""))??Z.file;qe!==Z.label&&!ds.includes(qe)&&ds.push(qe)}return He("div",{class:"tree-node"},[He("div",{class:["tree-row",te(Z)],style:{"--tree-depth":String(Z.depth)},onClick:qe=>{qe.stopPropagation(),y("select",Z)}},[He("span",{class:"tree-rail","aria-hidden":"true"}),He("button",{class:["tree-toggle",{empty:!Ze}],disabled:!Ze,onClick:qe=>{qe.stopPropagation(),Ze&&y("toggle",Z.id)}},Ze?Ae?"⌄":"›":""),He("div",{class:"tree-copy"},[He("span",{class:"tree-name mono",title:Z.label},Z.label),ds.length?He("div",{class:"tree-badges"},ds.slice(0,1).map(qe=>He("span",{class:"tree-badge mono",title:qe},qe))):null]),He("div",{class:"tree-metrics mono"},[Z.isPersistent?He("span",{class:"tree-persistent-pill",title:"Layout / persistent component — survives navigation"},"persistent"):null,Z.isHydrationMount?He("span",{class:"tree-hydration-pill",title:"First mount was SSR hydration — not a user-triggered render"},"hydrated"):null,He("span",{class:"tree-metric-pill"},`${wi} ${ki}`),Z.file&&Z.file!=="unknown"?He("button",{class:"tree-jump-btn",title:`Open ${Z.file} in editor`,onClick:qe=>{qe.stopPropagation(),ke(Z.file)}},"↗"):null])]),Ae&&Ze?He("div",{class:"tree-children"},Z.children.map(qe=>He(t,{node:qe,mode:S.mode,threshold:S.threshold,selected:S.selected,expandedIds:S.expandedIds,onSelect:gn=>y("select",gn),onToggle:gn=>y("toggle",gn)}))):null])}}}),{renders:s,connected:n}=Qt(),{paneWidth:o,onHandleMouseDown:i}=hn(280,"observatory:heatmap:detailWidth"),l=ne("count"),a=ne(""),c=3,m=1600,u=ne(Number(c)),_=ne(Number(m)),C=oe({get:()=>l.value==="count"?u.value:_.value,set:S=>{l.value==="count"?u.value=S:_.value=S}}),w=ne(!1),M=ne(!1),h=ne(!1),b=ne(""),P=ne(null),K=ne(null),F=ne(new Set),I=ne([]),W=ne(!1);function j(S){var B;if(S.name&&S.name!=="unknown"&&!/^Component#\d+$/.test(S.name))return S.name;if(S.element)return S.element;const y=(B=S.file.split("/").pop())==null?void 0:B.replace(/\.vue$/i,"");return y&&y!=="unknown"?y:S.name&&S.name!=="unknown"?S.name:`Component#${S.uid}`}function z(S){return`${S.type}: ${S.key}`}function J(S){const y=new Map;for(const te of S)y.set(String(te.uid),{id:String(te.uid),label:j(te),file:te.file,element:te.element,depth:0,path:[],rerenders:te.rerenders??0,mountCount:te.mountCount??1,avgMs:te.avgMs,triggers:te.triggers.map(z),timeline:te.timeline??[],children:[],parentId:te.parentUid!==void 0?String(te.parentUid):void 0,isPersistent:!!te.isPersistent,isHydrationMount:!!te.isHydrationMount,route:te.route??"/"});const B=[];for(const te of S){const Z=y.get(String(te.uid));if(!Z)continue;const Ae=te.parentUid!==void 0?y.get(String(te.parentUid)):void 0;Ae?(Z.parentLabel=Ae.label,Ae.children.push(Z)):B.push(Z)}function ve(te,Z=[],Ae=0){te.depth=Ae,te.path=[...Z,te.label],te.children.forEach(Ze=>ve(Ze,te.path,Ae+1))}return B.forEach(te=>ve(te)),B}function G(S){const y=[];function B(ve){y.push(ve),ve.children.forEach(B)}return S.forEach(B),y}function le(S){return 1+S.children.reduce((y,B)=>y+le(B),0)}function me(S,y=new Set){return y.add(S.id),S.children.forEach(B=>me(B,y)),y}function X(S,y,B=[]){const ve=[...B,S.id];if(S.id===y)return ve;for(const te of S.children){const Z=X(te,y,ve);if(Z)return Z}return null}function R(S){if(A(S))return S;for(const y of S.children){const B=R(y);if(B)return B}return null}function V(S){if(!S)return new Set;const y=new Set;function B(ve){ve.children.length>0&&(y.add(ve.id),ve.children.forEach(B))}return B(S),y}function L(S,y){const B=V(S);if(!S||!y)return B;function ve(te){const Z=te.children.some(Ze=>ve(Ze)),Ae=N(te,y);return Z&&B.add(te.id),Ae||Z}return ve(S),B}function se(S){return l.value==="count"?S.rerenders+S.mountCount:S.avgMs}function A(S){return se(S)>=C.value}function N(S,y){if(!y)return!0;const B=y.toLowerCase();return S.label.toLowerCase().includes(B)||S.file.toLowerCase().includes(B)||S.path.some(ve=>ve.toLowerCase().includes(B))||S.triggers.some(ve=>ve.toLowerCase().includes(B))}function x(S,y){return y?N(S,y)||S.children.some(B=>x(B,y)):!0}function ae(S){return A(S)||S.children.some(y=>ae(y))}function Y(S){return!a.value||S.route===a.value?!0:S.timeline.some(y=>y.route===a.value)}function ce(S){return Y(S)||S.children.some(y=>ce(y))}function Le(S,y){const B=x(S,y),ve=!w.value||ae(S),te=!a.value||ce(S);return B&&ve&&te}function Fe(S,y){const B=S.children.map(Ae=>Fe(Ae,y)).filter(Ae=>Ae!==null),ve=!y||N(S,y)||B.length>0,te=!w.value||A(S)||B.length>0,Z=!a.value||Y(S)||B.length>0;return!ve||!te||!Z?null:{...S,children:B}}const Pe=oe(()=>M.value?I.value:s.value),Oe=oe(()=>J(Pe.value)),Ke=oe(()=>new Map(Oe.value.map(S=>[S.id,S]))),De=oe(()=>G(Oe.value)),ct=oe(()=>{const S=b.value.trim();return Oe.value.filter(y=>Le(y,S))}),Re=oe(()=>K.value?ct.value.find(S=>S.id===K.value)??Ke.value.get(K.value)??null:ct.value[0]??Oe.value[0]??null),Et=oe(()=>{const S=b.value.trim();return Re.value?Fe(Re.value,S):null}),d=oe(()=>Et.value?[Et.value]:[]),g=oe(()=>ct.value.map((S,y)=>({id:S.id,label:`App ${y+1}`,meta:`${le(S)} nodes`,root:S}))),O=oe(()=>{const S=new Set;for(const y of De.value){y.route&&S.add(y.route);for(const B of y.timeline)B.route&&S.add(B.route)}return[...S].sort()}),v=oe(()=>De.value.find(S=>S.id===P.value)??null),f=oe(()=>De.value.reduce((S,y)=>S+y.rerenders+y.mountCount,0)),E=oe(()=>De.value.filter(S=>A(S)).length),T=oe(()=>{const S=De.value.filter(y=>y.avgMs>0);return S.length?(S.reduce((y,B)=>y+B.avgMs,0)/S.length).toFixed(1):"0.0"});At(Oe,S=>{if(!S.length){K.value=null,P.value=null,F.value=new Set,W.value=!1;return}const y=new Set(S.map(te=>te.id));(!K.value||!y.has(K.value))&&(K.value=S[0].id),P.value&&!De.value.some(te=>te.id===P.value)&&(P.value=null);const B=new Set(De.value.map(te=>te.id)),ve=new Set([...F.value].filter(te=>B.has(te)));if(!W.value){F.value=V(Re.value),W.value=!0;return}!b.value.trim()&&P.value&&Re.value&&(X(Re.value,P.value)??[]).forEach(Z=>ve.add(Z)),F.value=ve},{immediate:!0}),At(b,S=>{if(!Re.value)return;const y=S.trim();if(y){F.value=L(Re.value,y);return}if(P.value){const B=X(Re.value,P.value);F.value=B?new Set(B):V(Re.value);return}F.value=V(Re.value)}),At([w,C,l,ct],()=>{if(!w.value)return;const S=ct.value[0]??null;if(!S){P.value=null;return}const y=R(S);if(!y){P.value=null;return}K.value=S.id,P.value!==y.id&&(P.value=y.id),F.value=new Set(X(S,y.id)??[S.id])});function H(S){P.value=S.id;const y=Oe.value.find(B=>me(B).has(S.id));y&&(K.value=y.id,F.value=new Set(X(y,S.id)??[y.id]))}function U(S){const y=new Set(F.value);y.has(S)?y.delete(S):y.add(S),F.value=y}function D(S){K.value=S.id,F.value=V(S),W.value=!0}function re(S){const y=S.target;b.value=(y==null?void 0:y.value)??""}function Q(){if(M.value){M.value=!1,h.value=!1,I.value=[];return}I.value=JSON.parse(JSON.stringify(s.value)),M.value=!0}function ie(){bi(`observatory-renders-${Date.now()}.json`,{type:"observatory-renders",version:"1",exportedAt:Date.now(),count:Pe.value.length,data:Pe.value})}async function de(){var B,ve,te;let S;try{S=await yi()}catch(Z){Z instanceof Error&&Z.message!=="cancelled"&&alert(`Import failed: ${Z.message}`);return}const y=S;if((y==null?void 0:y.type)!=="observatory-renders"||(y==null?void 0:y.version)!=="1"||!Array.isArray(y==null?void 0:y.data)||y.data.length>0&&(((B=y.data[0])==null?void 0:B.uid)===void 0||!((ve=y.data[0])!=null&&ve.name)||!((te=y.data[0])!=null&&te.file))){alert("Invalid observatory renders file.");return}I.value=y.data,M.value=!0,h.value=!0}function _e(S){var y;return((y=S.split("/").pop())==null?void 0:y.replace(/\.vue$/i,""))??S}function ke(S){co(S)}function ge(S){return S.path.join(" / ")}function je(S){return S<1?"<1ms":`${S.toFixed(1)}ms`}function Ve(S){return`+${(S/1e3).toFixed(2)}s`}return(S,y)=>($(),k("div",tf,[r("div",sf,[r("div",nf,[r("button",{class:ee({active:l.value==="count"}),onClick:y[0]||(y[0]=B=>l.value="count")},"render count",2),r("button",{class:ee({active:l.value==="time"}),onClick:y[1]||(y[1]=B=>l.value="time")},"render time",2)]),r("div",of,[y[8]||(y[8]=r("span",{class:"muted text-sm"},"threshold",-1)),Ft(r("input",{"onUpdate:modelValue":y[2]||(y[2]=B=>C.value=B),type:"range",min:l.value==="count"?2:4,max:l.value==="count"?20:100,step:l.value==="count"?1:4,class:"render-heatmap__threshold-range"},null,8,rf),[[qt,C.value,void 0,{number:!0}]]),r("span",lf,p(C.value)+p(l.value==="count"?"+ renders":"ms+"),1)]),r("button",{class:ee({active:w.value}),onClick:y[3]||(y[3]=B=>w.value=!w.value)},"hot only",2),Ft(r("select",{"onUpdate:modelValue":y[4]||(y[4]=B=>a.value=B),class:"route-select mono text-sm",title:"Filter by route"},[y[9]||(y[9]=r("option",{value:""},"all routes",-1)),($(!0),k(fe,null,he(O.value,B=>($(),k("option",{key:B,value:B},p(B),9,af))),128))],512),[[Ga,a.value]]),r("button",{class:ee([{active:M.value},"render-heatmap__freeze tracker-toolbar__spacer"]),onClick:Q},p(M.value&&h.value?"unfreeze (imported)":M.value?"unfreeze":"freeze snapshot"),3),r("button",{class:"render-heatmap__action-btn",title:"Export render data as JSON",onClick:ie},"↓ export"),r("button",{class:"render-heatmap__action-btn",title:"Import render data from JSON file",onClick:de},"↑ import")]),r("div",cf,[r("div",uf,[y[10]||(y[10]=r("div",{class:"stat-label"},"components",-1)),r("div",df,p(De.value.length),1)]),r("div",ff,[y[11]||(y[11]=r("div",{class:"stat-label"},"total renders",-1)),r("div",pf,p(f.value),1)]),r("div",mf,[y[12]||(y[12]=r("div",{class:"stat-label"},"hot",-1)),r("div",vf,p(E.value),1)]),r("div",_f,[y[13]||(y[13]=r("div",{class:"stat-label"},"avg time",-1)),r("div",hf,p(T.value)+"ms",1)])]),r("div",gf,[r("aside",bf,[y[14]||(y[14]=r("div",{class:"render-heatmap__panel-title tracker-section-label"},"apps",-1)),($(!0),k(fe,null,he(g.value,B=>($(),k("button",{key:B.id,class:ee(["render-heatmap__root-item",{active:K.value===B.id}]),onClick:ve=>D(B.root)},[r("div",$f,[r("span",wf,p(B.label),1),r("span",kf,p(B.root.label),1)]),r("span",xf,p(B.meta),1)],10,yf))),128)),g.value.length?q("",!0):($(),k("div",Cf,"no apps match"))]),r("section",Sf,[r("div",Tf,[r("input",{value:b.value,class:"render-heatmap__search-input mono",placeholder:"Find components...",onInput:re},null,40,Mf)]),r("div",Ef,[r("div",If,[($(!0),k(fe,null,he(d.value,B=>{var ve;return $(),$t(xe(t),{key:B.id,node:B,mode:l.value,threshold:C.value,selected:(ve=v.value)==null?void 0:ve.id,"expanded-ids":F.value,onSelect:H,onToggle:U},null,8,["node","mode","threshold","selected","expanded-ids"])}),128))]),d.value.length?q("",!0):($(),k("div",Nf,p(xe(n)?"No render activity recorded yet.":"Waiting for connection to the Nuxt app…"),1))])]),r("div",{class:"tracker-resize-handle",onMousedown:y[5]||(y[5]=(...B)=>xe(i)&&xe(i)(...B))},null,32),r("aside",{class:"render-heatmap__detail-panel tracker-detail-panel",style:Te({width:xe(o)+"px"})},[v.value?($(),k(fe,{key:0},[r("div",Of,[r("span",Rf,p(v.value.label),1),r("button",{onClick:y[6]||(y[6]=B=>P.value=null)},"×")]),r("div",Af,[r("span",Ff,p(v.value.rerenders+v.value.mountCount)+" render"+p(v.value.rerenders+v.value.mountCount!==1?"s":""),1),r("span",Lf,p(v.value.mountCount)+" mount"+p(v.value.mountCount!==1?"s":""),1),v.value.rerenders?($(),k("span",Pf,p(v.value.rerenders)+" re-render"+p(v.value.rerenders!==1?"s":""),1)):q("",!0),v.value.isPersistent?($(),k("span",Df," persistent ")):q("",!0),v.value.isHydrationMount?($(),k("span",jf," hydrated ")):q("",!0),r("span",Vf,p(v.value.avgMs.toFixed(1))+"ms avg",1),r("span",{class:ee(["render-heatmap__detail-pill mono",{"render-heatmap__detail-pill--hot":A(v.value)}])},p(A(v.value)?"hot":"cool"),3)]),y[30]||(y[30]=r("div",{class:"tracker-section-label render-heatmap__section-label"},"identity",-1)),r("div",Hf,[y[15]||(y[15]=r("span",{class:"muted text-sm"},"label",-1)),r("span",Uf,p(v.value.label),1),y[16]||(y[16]=r("span",{class:"muted text-sm"},"path",-1)),r("span",Bf,p(ge(v.value)),1),y[17]||(y[17]=r("span",{class:"muted text-sm"},"file",-1)),r("span",Kf,[Ie(p(v.value.file)+" ",1),v.value.file&&v.value.file!=="unknown"?($(),k("button",{key:0,class:"jump-btn",title:"Open in editor",onClick:y[7]||(y[7]=B=>ke(v.value.file))}," open ↗ ")):q("",!0)]),y[18]||(y[18]=r("span",{class:"muted text-sm"},"file name",-1)),r("span",Wf,p(_e(v.value.file)),1),y[19]||(y[19]=r("span",{class:"muted text-sm"},"parent",-1)),r("span",zf,p(v.value.parentLabel??"none"),1),y[20]||(y[20]=r("span",{class:"muted text-sm"},"children",-1)),r("span",Jf,p(v.value.children.length),1)]),y[31]||(y[31]=r("div",{class:"tracker-section-label render-heatmap__section-label"},"rendering",-1)),r("div",Gf,[y[21]||(y[21]=r("span",{class:"muted text-sm"},"total renders",-1)),r("span",qf,p(v.value.rerenders+v.value.mountCount),1),y[22]||(y[22]=r("span",{class:"muted text-sm"},"re-renders",-1)),r("span",Xf,p(v.value.rerenders),1),y[23]||(y[23]=r("span",{class:"muted text-sm"},"mounts",-1)),r("span",Qf,p(v.value.mountCount),1),y[24]||(y[24]=r("span",{class:"muted text-sm"},"persistent",-1)),r("span",{class:ee(["mono text-sm",{"render-heatmap__persistent-value":v.value.isPersistent}])},p(v.value.isPersistent?"yes — survives navigation":"no"),3),y[25]||(y[25]=r("span",{class:"muted text-sm"},"hydration mount",-1)),r("span",Yf,p(v.value.isHydrationMount?"yes — SSR hydrated":"no"),1),y[26]||(y[26]=r("span",{class:"muted text-sm"},"avg render time",-1)),r("span",Zf,p(v.value.avgMs.toFixed(1))+"ms",1),y[27]||(y[27]=r("span",{class:"muted text-sm"},"threshold",-1)),r("span",ep,p(C.value)+p(l.value==="count"?"+ renders":"ms+"),1),y[28]||(y[28]=r("span",{class:"muted text-sm"},"mode",-1)),r("span",tp,p(l.value==="count"?"re-render count":"render time"),1)]),y[32]||(y[32]=r("div",{class:"tracker-section-label render-heatmap__section-label"},"triggers",-1)),($(!0),k(fe,null,he(v.value.triggers,B=>($(),k("div",{key:B,class:"render-heatmap__trigger-item mono text-sm"},p(B),1))),128)),v.value.triggers.length?q("",!0):($(),k("div",sp,"no triggers recorded")),r("div",np,[y[29]||(y[29]=Ie(" render timeline ",-1)),r("span",op,"("+p(v.value.timeline.length)+")",1)]),v.value.timeline.length?($(),k("div",ip,[($(!0),k(fe,null,he([...v.value.timeline].reverse().slice(0,30),(B,ve)=>($(),k("div",{key:ve,class:"render-heatmap__timeline-row"},[r("span",{class:ee(["render-heatmap__timeline-kind mono",B.kind])},p(B.kind),3),r("span",lp,p(Ve(B.t)),1),r("span",ap,p(je(B.durationMs)),1),B.triggerKey?($(),k("span",cp,p(B.triggerKey),1)):q("",!0),r("span",up,p(B.route),1)]))),128)),v.value.timeline.length>30?($(),k("div",dp," … "+p(v.value.timeline.length-30)+" earlier events ",1)):q("",!0)])):($(),k("div",rp,"no timeline events yet"))],64)):($(),k("div",fp,"click a component to inspect"))],4)])]))}}),mp=at(pp,[["__scopeId","data-v-40125eee"]]),vp={class:"transition-timeline tracker-view"},_p={class:"transition-timeline__stats tracker-stats-row"},hp={class:"stat-card"},gp={class:"stat-val"},bp={class:"stat-card"},yp={class:"stat-val stat-val--active"},$p={class:"stat-card"},wp={class:"stat-val stat-val--error"},kp={class:"stat-card"},xp={class:"stat-val"},Cp={class:"transition-timeline__toolbar tracker-toolbar"},Sp={class:"transition-timeline__filters"},Tp={class:"transition-timeline__content tracker-split"},Mp={class:"transition-timeline__table tracker-table-wrap"},Ep={class:"data-table"},Ip=["onClick"],Np={class:"transition-timeline__name mono"},Op={class:"transition-timeline__duration mono"},Rp={class:"transition-timeline__component muted"},Ap={class:"transition-timeline__bar-cell"},Fp={class:"transition-timeline__bar-track"},Lp={key:0},Pp={colspan:"6",class:"tracker-empty-cell"},Dp={class:"transition-timeline__detail-header"},jp={class:"transition-timeline__detail-title"},Vp={class:"transition-timeline__detail-section"},Hp={class:"transition-timeline__detail-row"},Up={class:"transition-timeline__detail-row"},Bp={class:"transition-timeline__detail-row"},Kp={class:"transition-timeline__detail-val transition-timeline__detail-val--mono mono"},Wp={key:0,class:"transition-timeline__detail-row"},zp={class:"transition-timeline__detail-val transition-timeline__detail-val--mono mono"},Jp={class:"transition-timeline__detail-section"},Gp={class:"transition-timeline__detail-row"},qp={class:"transition-timeline__detail-val transition-timeline__detail-val--mono mono"},Xp={class:"transition-timeline__detail-row"},Qp={class:"transition-timeline__detail-val transition-timeline__detail-val--mono mono"},Yp={class:"transition-timeline__detail-row"},Zp={class:"transition-timeline__detail-val transition-timeline__detail-val--mono transition-timeline__detail-val--strong mono"},em={class:"transition-timeline__detail-section"},tm={class:"transition-timeline__detail-row"},sm={class:"transition-timeline__detail-row"},nm={key:0,class:"transition-timeline__notice transition-timeline__notice--cancelled"},om={key:1,class:"transition-timeline__notice transition-timeline__notice--active"},rm=nt({__name:"TransitionTimeline",setup(e){const{transitions:t,connected:s}=Qt(),{paneWidth:n,onHandleMouseDown:o}=hn(260,"observatory:transitions:detailWidth"),i=ne("all"),l=ne(""),a=ne(null),c=oe(()=>{let h=[...t.value];if(l.value){const b=l.value.toLowerCase();h=h.filter(P=>P.transitionName.toLowerCase().includes(b)||P.parentComponent.toLowerCase().includes(b))}return i.value==="cancelled"?h=h.filter(b=>b.cancelled||b.phase==="interrupted"):i.value==="active"?h=h.filter(b=>b.phase==="entering"||b.phase==="leaving"):i.value==="completed"&&(h=h.filter(b=>b.phase==="entered"||b.phase==="left")),h.sort((b,P)=>b.startTime-P.startTime)}),m=oe(()=>({total:t.value.length,active:t.value.filter(h=>h.phase==="entering"||h.phase==="leaving").length,cancelled:t.value.filter(h=>h.cancelled||h.phase==="interrupted").length,avgMs:(()=>{const h=t.value.filter(b=>b.durationMs!==void 0);return h.length?Math.round(h.reduce((b,P)=>b+(P.durationMs??0),0)/h.length):0})()})),u=oe(()=>{const h=c.value;if(!h.length)return[];const b=h.reduce((F,I)=>Math.min(F,I.startTime),h[0].startTime),P=h.reduce((F,I)=>Math.max(F,I.endTime??I.startTime+400),0),K=Math.max(P-b,1);return h.map(F=>({left:(F.startTime-b)/K*100,width:((F.endTime??F.startTime+80)-F.startTime)/K*100}))});function _(h){return h==="entering"||h==="leaving"?"#7f77dd":h==="entered"?"#1d9e75":h==="left"?"#378add":h==="enter-cancelled"||h==="leave-cancelled"?"#e24b4a":h==="interrupted"?"#e09a3a":"#888"}function C(h){return h==="entering"||h==="leaving"?"badge-purple":h==="entered"||h==="left"?"badge-ok":h.includes("cancelled")?"badge-err":h==="interrupted"?"badge-warn":"badge-gray"}function w(h){return h.appear?"✦ appear":h.direction==="enter"?"→ enter":"← leave"}function M(h){return h.appear?"var(--amber)":h.direction==="enter"?"var(--teal)":"var(--blue)"}return(h,b)=>($(),k("div",vp,[r("div",_p,[r("div",hp,[r("div",gp,p(m.value.total),1),b[7]||(b[7]=r("div",{class:"stat-label"},"total",-1))]),r("div",bp,[r("div",yp,p(m.value.active),1),b[8]||(b[8]=r("div",{class:"stat-label"},"active",-1))]),r("div",$p,[r("div",wp,p(m.value.cancelled),1),b[9]||(b[9]=r("div",{class:"stat-label"},"cancelled",-1))]),r("div",kp,[r("div",xp,[Ie(p(m.value.avgMs)+" ",1),b[10]||(b[10]=r("span",{class:"stat-unit"},"ms",-1))]),b[11]||(b[11]=r("div",{class:"stat-label"},"avg duration",-1))])]),r("div",Cp,[Ft(r("input",{"onUpdate:modelValue":b[0]||(b[0]=P=>l.value=P),type:"search",placeholder:"filter by name or component…",class:"transition-timeline__search"},null,512),[[qt,l.value]]),r("div",Sp,[r("button",{class:ee({active:i.value==="all"}),onClick:b[1]||(b[1]=P=>i.value="all")},"All",2),r("button",{class:ee({active:i.value==="active"}),onClick:b[2]||(b[2]=P=>i.value="active")},"Active",2),r("button",{class:ee({active:i.value==="completed"}),onClick:b[3]||(b[3]=P=>i.value="completed")},"Completed",2),r("button",{class:ee({active:i.value==="cancelled","danger-active":i.value==="cancelled"}),onClick:b[4]||(b[4]=P=>i.value="cancelled")}," Cancelled ",2)])]),r("div",Tp,[r("div",Mp,[r("table",Ep,[b[12]||(b[12]=r("thead",null,[r("tr",null,[r("th",{class:"transition-timeline__col-name"},"NAME"),r("th",{class:"transition-timeline__col-dir"},"DIR"),r("th",{class:"transition-timeline__col-phase"},"PHASE"),r("th",{class:"transition-timeline__col-duration"},"DURATION"),r("th",null,"COMPONENT"),r("th",null,"TIMELINE")])],-1)),r("tbody",null,[($(!0),k(fe,null,he(c.value,(P,K)=>{var F,I,W;return $(),k("tr",{key:P.id,class:ee({selected:((F=a.value)==null?void 0:F.id)===P.id}),onClick:j=>{var z;return a.value=((z=a.value)==null?void 0:z.id)===P.id?null:P}},[r("td",null,[r("span",Np,p(P.transitionName),1)]),r("td",null,[r("span",{class:"transition-timeline__direction mono",style:Te({color:M(P)})},p(w(P)),5)]),r("td",null,[r("span",{class:ee(["badge",C(P.phase)])},p(P.phase),3)]),r("td",Op,p(P.durationMs!==void 0?P.durationMs+"ms":"—"),1),r("td",Rp,p(P.parentComponent),1),r("td",Ap,[r("div",Fp,[r("div",{class:"transition-timeline__bar-fill",style:Te({left:((I=u.value[K])==null?void 0:I.left)+"%",width:Math.max(((W=u.value[K])==null?void 0:W.width)??1,1)+"%",background:_(P.phase),opacity:P.phase==="entering"||P.phase==="leaving"?"0.55":"1"})},null,4)])])],10,Ip)}),128)),c.value.length?q("",!0):($(),k("tr",Lp,[r("td",Pp,p(xe(s)?"No transitions recorded yet — trigger one on the page.":"Waiting for connection to the Nuxt app…"),1)]))])])]),Me(en,{name:"panel-slide"},{default:Ts(()=>[a.value?($(),k("div",{key:0,class:"tracker-resize-handle",onMousedown:b[5]||(b[5]=(...P)=>xe(o)&&xe(o)(...P))},null,32)):q("",!0)]),_:1}),Me(en,{name:"panel-slide"},{default:Ts(()=>[a.value?($(),k("aside",{key:0,class:"transition-timeline__detail",style:Te({width:xe(n)+"px"})},[r("div",Dp,[r("span",jp,p(a.value.transitionName),1),r("button",{class:"transition-timeline__close-btn",onClick:b[6]||(b[6]=P=>a.value=null)},"✕")]),r("div",Vp,[r("div",Hp,[b[13]||(b[13]=r("span",{class:"transition-timeline__detail-key"},"Direction",-1)),r("span",{class:"transition-timeline__detail-val",style:Te({color:M(a.value)})},p(w(a.value)),5)]),r("div",Up,[b[14]||(b[14]=r("span",{class:"transition-timeline__detail-key"},"Phase",-1)),r("span",{class:ee(["badge",C(a.value.phase)])},p(a.value.phase),3)]),r("div",Bp,[b[15]||(b[15]=r("span",{class:"transition-timeline__detail-key"},"Component",-1)),r("span",Kp,p(a.value.parentComponent),1)]),a.value.mode?($(),k("div",Wp,[b[16]||(b[16]=r("span",{class:"transition-timeline__detail-key"},"Mode",-1)),r("span",zp,p(a.value.mode),1)])):q("",!0)]),r("div",Jp,[b[20]||(b[20]=r("div",{class:"tracker-section-label transition-timeline__section-title"},"Timing",-1)),r("div",Gp,[b[17]||(b[17]=r("span",{class:"transition-timeline__detail-key"},"Start",-1)),r("span",qp,p(a.value.startTime.toFixed(2))+"ms ",1)]),r("div",Xp,[b[18]||(b[18]=r("span",{class:"transition-timeline__detail-key"},"End",-1)),r("span",Qp,p(a.value.endTime!==void 0?a.value.endTime.toFixed(2)+"ms":"—"),1)]),r("div",Yp,[b[19]||(b[19]=r("span",{class:"transition-timeline__detail-key"},"Duration",-1)),r("span",Zp,p(a.value.durationMs!==void 0?a.value.durationMs+"ms":a.value.phase==="interrupted"?"interrupted":"in progress"),1)])]),r("div",em,[b[23]||(b[23]=r("div",{class:"tracker-section-label transition-timeline__section-title"},"Flags",-1)),r("div",tm,[b[21]||(b[21]=r("span",{class:"transition-timeline__detail-key"},"Appear",-1)),r("span",{class:"transition-timeline__detail-val",style:Te({color:a.value.appear?"var(--amber)":"var(--text3)"})},p(a.value.appear?"yes":"no"),5)]),r("div",sm,[b[22]||(b[22]=r("span",{class:"transition-timeline__detail-key"},"Cancelled",-1)),r("span",{class:"transition-timeline__detail-val",style:Te({color:a.value.cancelled?"var(--red)":"var(--text3)"})},p(a.value.cancelled?"yes":"no"),5)])]),a.value.cancelled?($(),k("div",nm,[...b[24]||(b[24]=[Ie(" This transition was cancelled mid-flight. The element may be stuck in a partial animation state if the interruption was not handled with ",-1),r("code",null,"onEnterCancelled",-1),Ie(" / ",-1),r("code",null,"onLeaveCancelled",-1),Ie(" . ",-1)])])):q("",!0),a.value.phase==="entering"||a.value.phase==="leaving"?($(),k("div",om,[...b[25]||(b[25]=[Ie(" Transition is currently in progress. If it stays in this state longer than expected, the ",-1),r("code",null,"done()",-1),Ie(" callback may not be getting called (JS-mode transition stall). ",-1)])])):q("",!0)],4)):q("",!0)]),_:1})])]))}}),im=at(rm,[["__scopeId","data-v-0bb51bcf"]]),lm={class:"flamegraph"},am={class:"flamegraph__timeline-header"},cm={class:"flamegraph__time-label"},um={class:"flamegraph__time-label"},dm={class:"flamegraph__rows"},fm=["onClick"],pm=["onClick"],mm={class:"flamegraph__span-name"},vm={class:"flamegraph__span-type"},_m={class:"flamegraph__bar-container"},hm=["title","onClick"],gm={key:0,class:"flamegraph__bar-label"},bm={key:0,class:"flamegraph__empty"},ym=nt({__name:"Flamegraph",props:{trace:{},selectedSpanId:{}},emits:["select-span"],setup(e,{emit:t}){const s=e,n=t,o=ne(new Set);function i(F){o.value.has(F)?o.value.delete(F):o.value.add(F)}function l(F,I=void 0,W=0){return F.filter(j=>j.parentSpanId===I).map(j=>({...j,children:l(F,j.id,W+1),level:W}))}const a=oe(()=>l(s.trace.spans,void 0,0)),c=oe(()=>{if(s.trace.durationMs&&s.trace.durationMs>0)return s.trace.durationMs;if(s.trace.endTime&&s.trace.endTime>s.trace.startTime)return s.trace.endTime-s.trace.startTime;let F=0;for(const I of s.trace.spans){const j=(I.endTime??I.startTime+(I.durationMs??0))-s.trace.startTime;j>F&&(F=j)}return F>0?F*1.1:1});function m(F){const I=s.trace.startTime,W=(F.startTime-I)/c.value*100,j=(F.durationMs||0)/c.value*100;return{left:`${Math.min(100,Math.max(0,W))}%`,width:`${Math.max(.5,Math.min(100-Math.max(0,W),j))}%`}}function u(F){return(F.durationMs||0)/c.value*100<5}function _(F){return F?F<1?`${(F*1e3).toFixed(1)}μs`:F<1e3?`${F.toFixed(1)}ms`:`${(F/1e3).toFixed(2)}s`:"0ms"}function C(F){return typeof F=="string"&&F.length>0?F:void 0}function w(F){return typeof F=="number"?F:void 0}function M(F){const I=F.metadata??{},W=C(I.lifecycle),j=C(I.componentName),z=w(I.uid),J=C(I.route)??C(I.path),G=C(I.method),le=C(I.url);return j&&W?z!==void 0?`${j}.${W} #${z}`:`${j}.${W}`:j?z!==void 0?`${j} #${z}`:j:G&&le?`${G} ${le}`:le||(J?`${F.name} (${J})`:F.name)}function h(F){const I=F.metadata??{},W=M(F),j=F.status,z=_(F.durationMs),J=C(I.route)??C(I.path);return J?`${W} - ${z} (${j}) [${J}]`:`${W} - ${z} (${j})`}function b(F){return{fetch:"bg-blue-500",composable:"bg-purple-500",component:"bg-green-500",navigation:"bg-yellow-500",render:"bg-orange-500",transition:"bg-pink-500"}[F]||"bg-gray-500"}function P(F){const I=[F];if(o.value.has(F.id)&&F.children.length>0)for(const W of F.children)I.push(...P(W));return I}const K=oe(()=>{const F=[];for(const I of a.value)for(const W of P(I)){const j=W.level+(W.parentSpanId?1:0);F.push({node:W,displayDepth:j})}return F});return(F,I)=>($(),k("div",lm,[r("div",am,[I[0]||(I[0]=r("div",{class:"flamegraph__time-label"},"0ms",-1)),r("div",cm,p(_(c.value/2)),1),r("div",um,p(_(c.value)),1)]),r("div",dm,[($(!0),k(fe,null,he(K.value,({node:W,displayDepth:j})=>($(),k("div",{key:W.id,class:ee([{"flamegraph__row--selected":W.id===s.selectedSpanId},"flamegraph__row"])},[r("div",{class:"flamegraph__label",style:Te({paddingLeft:`calc(8px + ${j*16}px)`})},[W.children.length>0?($(),k("button",{key:0,class:ee({"flamegraph__expand-btn":!0,"flamegraph__expand-btn--expanded":o.value.has(W.id)}),onClick:z=>i(W.id)}," ▶ ",10,fm)):q("",!0),r("button",{class:"flamegraph__node-button",onClick:z=>n("select-span",W)},[r("span",mm,p(M(W)),1),r("span",vm,p(W.type),1)],8,pm)],4),r("div",_m,[r("div",{class:ee(["flamegraph__bar",b(W.type)]),style:Te(m(W)),title:h(W),onClick:z=>n("select-span",W)},[u(W)?q("",!0):($(),k("span",gm,p(_(W.durationMs)),1))],14,hm),u(W)?($(),k("span",{key:0,class:"flamegraph__bar-label-outside",style:Te({left:m(W).left})},p(_(W.durationMs)),5)):q("",!0)])],2))),128)),K.value.length===0?($(),k("div",bm,"No spans in this trace")):q("",!0)])]))}}),$m=at(ym,[["__scopeId","data-v-36b70ed1"]]),wm={class:"waterfall"},km={class:"waterfall__timeline-header"},xm={class:"waterfall__timeline-col"},Cm={class:"waterfall__time-markers"},Sm={class:"waterfall__time-marker"},Tm={class:"waterfall__time-marker"},Mm={class:"waterfall__time-marker"},Em={class:"waterfall__time-marker"},Im={class:"waterfall__groups"},Nm={class:"waterfall__group-header"},Om={class:"waterfall__group-type"},Rm={class:"waterfall__group-count"},Am={class:"waterfall__group-spans"},Fm={class:"waterfall__span-label"},Lm=["title"],Pm={class:"waterfall__span-bar-container"},Dm=["title"],jm={key:0,class:"waterfall__bar-duration"},Vm={key:0,class:"waterfall__empty"},Hm=nt({__name:"WaterfallView",props:{trace:{}},setup(e){const t=e,s=oe(()=>{const w={};for(const M of t.trace.spans)w[M.type]||(w[M.type]=[]),w[M.type].push(M);return Object.entries(w).map(([M,h])=>({type:M,spans:h.sort((b,P)=>b.startTime-P.startTime)})).sort((M,h)=>{const b={navigation:0,fetch:1,composable:2,component:3,render:4,transition:5};return(b[M.type]??999)-(b[h.type]??999)})}),n=oe(()=>{if(t.trace.durationMs&&t.trace.durationMs>0)return t.trace.durationMs;if(t.trace.endTime&&t.trace.endTime>t.trace.startTime)return t.trace.endTime-t.trace.startTime;let w=0;for(const M of t.trace.spans){const b=(M.endTime??M.startTime+(M.durationMs??0))-t.trace.startTime;b>w&&(w=b)}return w||1});function o(w){const M=(w.startTime-t.trace.startTime)/n.value*100;return Math.min(100,Math.max(0,M))}function i(w){const M=o(w),h=(w.durationMs||0)/n.value*100;return Math.max(2,Math.min(100-M,h))}function l(w){return(w.durationMs||0)/n.value*100<5}function a(w){return w?w<1?`${(w*1e3).toFixed(1)}μs`:w<1e3?`${w.toFixed(1)}ms`:`${(w/1e3).toFixed(2)}s`:"0ms"}function c(w){return{fetch:"bg-blue-500",composable:"bg-purple-500",component:"bg-green-500",navigation:"bg-yellow-500",render:"bg-orange-500",transition:"bg-pink-500"}[w]||"bg-gray-500"}function m(w){return{ok:"border-green-400",error:"border-red-400",cancelled:"border-gray-400",active:"border-yellow-400"}[w]||"border-gray-400"}function u(w){return typeof w=="string"?w:""}function _(w){const M=w.metadata;if(!M)return w.name;const h=u(M.componentName),b=u(M.lifecycle),P=M.uid!==void 0?String(M.uid):"",K=u(M.method),F=u(M.url),I=u(M.route)||u(M.path);return h&&b?P?`${h}.${b} #${P}`:`${h}.${b}`:h?P?`${h} #${P}`:h:K&&F?`${K} ${F}`:F||(I?`${w.name} (${I})`:w.name)}function C(w){const M=_(w),h=a(w.durationMs),b=w.metadata,P=b?u(b.route)||u(b.path):"";let K=`${M} — ${h} (${w.status})`;return P&&!M.includes(P)&&(K+=` [${P}]`),K}return(w,M)=>($(),k("div",wm,[r("div",km,[M[1]||(M[1]=r("div",{class:"waterfall__type-col"},"Type",-1)),r("div",xm,[r("div",Cm,[M[0]||(M[0]=r("div",{class:"waterfall__time-marker"},"0ms",-1)),r("div",Sm,p(a(n.value/4)),1),r("div",Tm,p(a(n.value/2)),1),r("div",Mm,p(a(n.value*3/4)),1),r("div",Em,p(a(n.value)),1)])])]),r("div",Im,[($(!0),k(fe,null,he(s.value,h=>($(),k("div",{key:h.type,class:"waterfall__group"},[r("div",Nm,[r("span",Om,[r("span",{class:ee(["waterfall__color-dot",c(h.type)])},null,2),Ie(" "+p(h.type),1)]),r("span",Rm,p(h.spans.length),1)]),r("div",Am,[($(!0),k(fe,null,he(h.spans,b=>($(),k("div",{key:b.id,class:"waterfall__span-row"},[r("div",Fm,[r("span",{title:C(b)},p(_(b)),9,Lm)]),r("div",Pm,[r("div",{class:ee(["waterfall__span-bar",[c(b.type),m(b.status)]]),style:Te({left:`${o(b)}%`,width:`${Math.max(1,i(b))}%`}),title:C(b)},[l(b)?q("",!0):($(),k("span",jm,p(a(b.durationMs)),1))],14,Dm),l(b)?($(),k("span",{key:0,class:"waterfall__bar-duration-outside",style:Te({left:`calc(${o(b)}% + 4px)`})},p(a(b.durationMs)),5)):q("",!0)])]))),128))])]))),128)),s.value.length===0?($(),k("div",Vm,"No spans in this trace")):q("",!0)])]))}}),Um=at(Hm,[["__scopeId","data-v-a606e7cf"]]),Bm={class:"span-inspector"},Km={key:0,class:"span-inspector__empty"},Wm={key:1,class:"span-inspector__content"},zm={class:"span-inspector__header"},Jm={class:"span-inspector__title"},Gm={class:"span-inspector__section"},qm={class:"span-inspector__property-grid"},Xm={class:"span-inspector__property"},Qm={class:"span-inspector__value mono"},Ym={class:"span-inspector__property"},Zm={class:"span-inspector__value mono"},ev={class:"span-inspector__property"},tv={class:"span-inspector__value mono"},sv={class:"span-inspector__section"},nv={class:"span-inspector__property-grid"},ov={class:"span-inspector__property"},rv={class:"span-inspector__value mono text-xs"},iv={class:"span-inspector__property"},lv={class:"span-inspector__value mono"},av={class:"span-inspector__property"},cv={class:"span-inspector__value mono text-xs"},uv={key:0,class:"span-inspector__section"},dv={key:1,class:"span-inspector__section"},fv={class:"span-inspector__section-title"},pv={class:"span-inspector__child-list"},mv=["onClick"],vv={class:"span-inspector__child-name"},_v={class:"span-inspector__child-duration"},hv={key:2,class:"span-inspector__section"},gv={class:"span-inspector__metadata"},bv={class:"span-inspector__metadata-key"},yv={class:"span-inspector__metadata-value"},$v={key:0,class:"span-inspector__code"},wv={key:1,class:"span-inspector__code"},kv=nt({__name:"SpanInspector",props:{trace:{},span:{}},emits:["select-span"],setup(e,{emit:t}){const s=e,n=t,o=oe(()=>!s.span||!s.span.parentSpanId?null:s.trace.spans.find(_=>_.id===s.span.parentSpanId)),i=oe(()=>s.span?s.trace.spans.filter(_=>_.parentSpanId===s.span.id).sort((_,C)=>_.startTime-C.startTime):[]);function l(_){return _?_<1?`${(_*1e3).toFixed(1)}μs`:_<1e3?`${_.toFixed(1)}ms`:`${(_/1e3).toFixed(2)}s`:"0ms"}function a(_){const C=_-s.trace.startTime;return Math.abs(C)<1?`+${(C*1e3).toFixed(1)}μs`:Math.abs(C)<1e3?`+${C.toFixed(3)}ms`:`+${(C/1e3).toFixed(3)}s`}function c(_){return _.endTime!==void 0?_.endTime:_.durationMs!==void 0?_.startTime+_.durationMs:_.startTime}function m(_){return{ok:"#22c55e",error:"#ef4444",cancelled:"#6b7280",active:"#eab308"}[_]||"#6b7280"}function u(_){return{fetch:"bg-blue-500",composable:"bg-purple-500",component:"bg-green-500",navigation:"bg-yellow-500",render:"bg-orange-500",transition:"bg-pink-500"}[_]||"bg-gray-500"}return(_,C)=>($(),k("div",Bm,[e.span?($(),k("div",Wm,[r("div",zm,[r("div",Jm,[r("span",{class:ee([u(e.span.type),"span-inspector__type-badge"])},null,2),Ie(" "+p(e.span.name),1)]),r("div",{class:"span-inspector__status",style:Te({color:m(e.span.status)})},p(e.span.status),5)]),r("div",Gm,[C[5]||(C[5]=r("div",{class:"span-inspector__section-title"},"Timing",-1)),r("div",qm,[r("div",Xm,[C[2]||(C[2]=r("span",{class:"span-inspector__label"},"Duration",-1)),r("span",Qm,p(l(e.span.durationMs)),1)]),r("div",Ym,[C[3]||(C[3]=r("span",{class:"span-inspector__label"},"Start Time",-1)),r("span",Zm,p(a(e.span.startTime)),1)]),r("div",ev,[C[4]||(C[4]=r("span",{class:"span-inspector__label"},"End Time",-1)),r("span",tv,p(a(c(e.span))),1)])])]),r("div",sv,[C[9]||(C[9]=r("div",{class:"span-inspector__section-title"},"Properties",-1)),r("div",nv,[r("div",ov,[C[6]||(C[6]=r("span",{class:"span-inspector__label"},"ID",-1)),r("span",rv,p(e.span.id),1)]),r("div",iv,[C[7]||(C[7]=r("span",{class:"span-inspector__label"},"Type",-1)),r("span",lv,p(e.span.type),1)]),r("div",av,[C[8]||(C[8]=r("span",{class:"span-inspector__label"},"Trace ID",-1)),r("span",cv,p(e.span.traceId),1)])])]),o.value?($(),k("div",uv,[C[10]||(C[10]=r("div",{class:"span-inspector__section-title"},"Parent Span",-1)),r("div",{class:"span-inspector__link",onClick:C[0]||(C[0]=w=>n("select-span",o.value))},[r("span",{class:ee([u(o.value.type),"span-inspector__link-badge"])},null,2),Ie(" "+p(o.value.name),1)])])):q("",!0),i.value.length>0?($(),k("div",dv,[r("div",fv,"Child Spans ("+p(i.value.length)+")",1),r("div",pv,[($(!0),k(fe,null,he(i.value,w=>($(),k("div",{key:w.id,class:"span-inspector__child-item",onClick:M=>n("select-span",w)},[r("span",{class:ee([u(w.type),"span-inspector__child-badge"])},null,2),r("span",vv,p(w.name),1),r("span",_v,p(l(w.durationMs)),1)],8,mv))),128))])])):q("",!0),e.span.metadata&&Object.keys(e.span.metadata).length>0?($(),k("div",hv,[C[11]||(C[11]=r("div",{class:"span-inspector__section-title"},"Metadata",-1)),r("div",gv,[($(!0),k(fe,null,he(e.span.metadata,(w,M)=>($(),k("div",{key:M,class:"span-inspector__metadata-item"},[r("span",bv,p(M)+":",1),r("span",yv,[typeof w=="object"?($(),k("code",$v,p(JSON.stringify(w,null,2)),1)):($(),k("span",wv,p(w),1))])]))),128))])])):q("",!0)])):($(),k("div",Km,[...C[1]||(C[1]=[r("div",{class:"span-inspector__empty-icon"},"📊",-1),r("p",null,"Select a span to view details",-1)])]))]))}}),xv=at(kv,[["__scopeId","data-v-294b5334"]]);function Cv(e){const t=new Set;for(const s of e)for(const n of s.spans)t.add(n.type);return Array.from(t).sort()}function Sv(){const e=ne(""),t=ne(new Set),s=ne(0),n=ne(1/0),o=ne("");function i(w,M){if(!M)return!0;const h=M.toLowerCase();if(w.name.toLowerCase().includes(h))return!0;for(const b of w.spans)if(b.name.toLowerCase().includes(h))return!0;for(const b of w.spans)if(b.metadata){for(const P of Object.values(b.metadata))if(typeof P=="string"&&P.toLowerCase().includes(h))return!0}return!1}function l(w,M){if(M.size===0)return!0;for(const h of w.spans)if(M.has(h.type))return!0;return!1}function a(w,M,h){const b=M>0||h<1/0;return w.durationMs===void 0?!b:w.durationMs>=M&&w.durationMs<=h}function c(w,M){var h,b,P;if(!M||(h=w.metadata)!=null&&h.route&&typeof w.metadata.route=="string"&&w.metadata.route.toLowerCase().includes(M.toLowerCase()))return!0;for(const K of w.spans)if((b=K.metadata)!=null&&b.route&&String(K.metadata.route).toLowerCase().includes(M.toLowerCase())||(P=K.metadata)!=null&&P.path&&String(K.metadata.path).toLowerCase().includes(M.toLowerCase()))return!0;return!1}function m(w){return w.filter(M=>i(M,e.value)&&l(M,t.value)&&a(M,s.value,n.value)&&c(M,o.value))}function u(w){t.value.has(w)?t.value.delete(w):t.value.add(w)}function _(){e.value="",t.value.clear(),s.value=0,n.value=1/0,o.value=""}const C=oe(()=>e.value.length>0||t.value.size>0||s.value>0||n.value<1/0||o.value.length>0);return{searchQuery:e,selectedSpanTypes:t,minDuration:s,maxDuration:n,routeFilter:o,filterTraces:m,toggleSpanType:u,clearFilters:_,hasActiveFilters:C}}const Tv={class:"trace-filter"},Mv={class:"trace-filter__section"},Ev=["value"],Iv={key:0,class:"trace-filter__section"},Nv={class:"trace-filter__type-filters"},Ov=["title","onClick"],Rv={class:"trace-filter__section"},Av={class:"trace-filter__duration-inputs"},Fv=["value"],Lv=["value","min","max"],Pv=["value","max"],Dv={class:"trace-filter__section"},jv=["value"],Vv=nt({__name:"TraceFilter",props:{traces:{},searchQuery:{},selectedSpanTypes:{},minDuration:{},maxDuration:{},routeFilter:{},hasActiveFilters:{type:Boolean}},emits:["update:search","update:types","update:min-duration","update:max-duration","update:route","clear-filters"],setup(e,{emit:t}){const s=e,n=t,o=oe(()=>Cv(s.traces)),i=oe(()=>{let M=0;for(const h of s.traces)h.durationMs&&h.durationMs>M&&(M=h.durationMs);return Math.ceil(M/10)*10||1e3});function l(M){n("update:search",M)}function a(M){return M.target.value}function c(M){const h=new Set(s.selectedSpanTypes);h.has(M)?h.delete(M):h.add(M),n("update:types",h)}function m(M){const h=Math.max(0,parseInt(M)||0);n("update:min-duration",h)}function u(M){const h=Math.max(0,parseInt(M)||1/0);n("update:max-duration",h)}function _(M){n("update:route",M)}function C(){n("clear-filters")}function w(M){return{fetch:"#3b82f6",composable:"#a855f7",component:"#22c55e",navigation:"#eab308",render:"#f97316",transition:"#ec4899"}[M]||"#6b7280"}return(M,h)=>($(),k("div",Tv,[r("div",Mv,[h[5]||(h[5]=r("label",{class:"trace-filter__label"},"Search",-1)),r("input",{value:s.searchQuery,type:"text",class:"trace-filter__search-input",placeholder:"Search traces, spans, endpoints…",onInput:h[0]||(h[0]=b=>l(a(b)))},null,40,Ev)]),o.value.length>0?($(),k("div",Iv,[h[6]||(h[6]=r("label",{class:"trace-filter__label"},"Span Type",-1)),r("div",Nv,[($(!0),k(fe,null,he(o.value,b=>($(),k("button",{key:b,class:ee([{"trace-filter__type-badge--selected":s.selectedSpanTypes.has(b)},"trace-filter__type-badge"]),title:`Filter by ${b} spans`,onClick:P=>c(b)},[r("span",{class:"trace-filter__type-dot",style:Te({backgroundColor:w(b)})},null,4),Ie(" "+p(b),1)],10,Ov))),128))])])):q("",!0),r("div",Rv,[h[8]||(h[8]=r("label",{class:"trace-filter__label"},"Duration (ms)",-1)),r("div",Av,[r("input",{value:s.minDuration,type:"number",min:"0",class:"trace-filter__duration-input",placeholder:"Min",onInput:h[1]||(h[1]=b=>m(a(b)))},null,40,Fv),h[7]||(h[7]=r("span",{class:"trace-filter__duration-separator"},"–",-1)),r("input",{value:s.maxDuration===1/0?"":s.maxDuration,type:"number",min:s.minDuration,max:i.value,class:"trace-filter__duration-input",placeholder:"Max",onInput:h[2]||(h[2]=b=>u(a(b)))},null,40,Lv)]),i.value?($(),k("input",{key:0,value:s.maxDuration===1/0?i.value:s.maxDuration,type:"range",min:0,max:i.value,class:"trace-filter__duration-slider",onInput:h[3]||(h[3]=b=>u(a(b)))},null,40,Pv)):q("",!0)]),r("div",Dv,[h[9]||(h[9]=r("label",{class:"trace-filter__label"},"Route",-1)),r("input",{value:s.routeFilter,type:"text",class:"trace-filter__search-input",placeholder:"Filter by route…",onInput:h[4]||(h[4]=b=>_(a(b)))},null,40,jv)]),s.hasActiveFilters?($(),k("button",{key:1,class:"trace-filter__clear-btn",onClick:C},"Clear Filters")):q("",!0)]))}}),Hv=at(Vv,[["__scopeId","data-v-f5ab93b2"]]);function tr(e){return e.metadata??{}}function Uv(e){return Number.isFinite(e)?e:0}function Bv(e,t){const s=String(e.componentName??"").trim(),n=String(e.file??"").trim();return s&&n?{key:`${n}::${s}`,name:s,file:n}:s?{key:`name::${s}`,name:s,file:n}:{key:`unknown::${t}`,name:t,file:n}}function $i(e){if(!e)return[];const t=new Map;for(const n of e.spans){if(n.type!=="render")continue;const o=tr(n),i=o.uid??n.id,l=Bv(o,String(i));t.has(i)||t.set(i,{key:l.key,name:l.name,file:l.file,spans:[]}),t.get(i).spans.push(n)}const s=[];for(const[n,{key:o,name:i,file:l,spans:a}]of t){let c=0,m=0,u=0;for(const C of a){const w=String(tr(C).lifecycle??""),M=Uv(C.durationMs);w==="render:mount"?c++:m++,u+=M}const _=c+m;s.push({componentKey:o,componentName:i||String(n),file:l,uid:n,mountCount:c,rerenderCount:m,totalMs:u,avgMs:_>0?u/_:0})}return s.sort((n,o)=>o.rerenderCount-n.rerenderCount||o.totalMs-n.totalMs),s}function Kv(e,t){if(e.length===0)return[];const s=new Map;for(const o of e){const i=$i(o),l=new Map;for(const a of i){const c=l.get(a.componentKey);if(!c){l.set(a.componentKey,{name:a.componentName,file:a.file,rerenders:a.rerenderCount,renders:a.mountCount+a.rerenderCount,ms:a.totalMs,uid:a.uid,peakUidRerenders:a.rerenderCount});continue}c.rerenders+=a.rerenderCount,c.renders+=a.mountCount+a.rerenderCount,c.ms+=a.totalMs,a.rerenderCount>c.peakUidRerenders&&(c.uid=a.uid,c.peakUidRerenders=a.rerenderCount)}for(const[a,c]of l){s.has(a)||s.set(a,{componentName:c.name,file:c.file,tracesSeen:0,totalRerenders:0,totalRenders:0,totalMs:0});const m=s.get(a);m.tracesSeen+=1,m.totalRerenders+=c.rerenders,m.totalRenders+=c.renders,m.totalMs+=c.ms,t&&o.id===t&&(m.selectedUid=c.uid,m.selectedRerenders=c.rerenders)}}const n=[];for(const[o,i]of s){const l=i.tracesSeen>0?i.totalRerenders/i.tracesSeen:0,a=i.totalRenders>0?i.totalMs/i.totalRenders:0;let c,m;if(i.selectedRerenders!==void 0&&i.tracesSeen>1){const u=i.tracesSeen-1,_=i.totalRerenders-i.selectedRerenders;c=u>0?_/u:0,m=i.selectedRerenders-c}n.push({componentKey:o,componentName:i.componentName,file:i.file,tracesSeen:i.tracesSeen,avgRerendersPerTrace:l,totalRerenders:i.totalRerenders,totalMs:i.totalMs,avgMsPerRender:a,selectedUid:i.selectedUid,selectedRerenders:i.selectedRerenders,baselineRerenders:c,deltaVsBaseline:m})}return n.sort((o,i)=>i.avgRerendersPerTrace-o.avgRerendersPerTrace||i.totalMs-o.totalMs),n}const Wv={class:"trace-viewer tracker-view"},zv={class:"trace-viewer__header tracker-toolbar"},Jv={class:"trace-viewer__header-actions"},Gv={class:"trace-viewer__count muted text-sm"},qv=["disabled"],Xv={class:"trace-viewer__container"},Qv={class:"trace-viewer__list"},Yv={class:"trace-viewer__table-wrap tracker-table-wrap"},Zv={class:"data-table"},e_=["onClick"],t_={class:"mono"},s_={class:"mono"},n_={class:"mono"},o_={key:0},r_={colspan:"3",class:"tracker-empty-cell"},i_={key:0,class:"trace-viewer__detail"},l_={class:"trace-viewer__detail-content"},a_={class:"trace-viewer__tabs"},c_={class:"trace-viewer__visualization"},u_={key:0,class:"trace-viewer__overview"},d_={class:"trace-viewer__overview-header"},f_={class:"trace-viewer__overview-value"},p_={class:"trace-viewer__overview-value"},m_={class:"trace-viewer__overview-value"},v_={class:"trace-viewer__overview-value"},__={class:"trace-viewer__span-list"},h_=["onClick"],g_={class:"trace-viewer__span-name"},b_={class:"trace-viewer__span-meta"},y_={class:"trace-viewer__span-type"},$_={class:"trace-viewer__span-duration"},w_={class:"trace-viewer__render-summary-toggle"},k_={class:"trace-viewer__render-summary-count muted"},x_={key:0,class:"trace-viewer__render-summary-table-wrap"},C_={class:"data-table trace-viewer__render-summary-table"},S_=["title","onClick"],T_={class:"mono"},M_={class:"mono"},E_={class:"mono"},I_={class:"mono"},N_={class:"trace-viewer__render-summary-toggle"},O_={class:"trace-viewer__render-summary-count muted"},R_={class:"trace-viewer__render-summary-count muted"},A_={key:0,class:"trace-viewer__render-summary-table-wrap"},F_={class:"trace-viewer__comparison-toolbar"},L_={class:"data-table trace-viewer__render-summary-table"},P_=["title","onClick"],D_={class:"mono"},j_={class:"mono trace-viewer__col-desktop"},V_={class:"mono"},H_={class:"mono trace-viewer__col-desktop"},U_={class:"mono"},B_={class:"mono trace-viewer__col-desktop"},K_={class:"mono"},W_={key:0},z_={key:1,class:"trace-viewer__flamegraph"},J_={key:2,class:"trace-viewer__waterfall"},G_={class:"trace-viewer__inspector"},q_=nt({__name:"TraceViewer",setup(e){const{traces:t,connected:s}=Qt(),n=ne([]),o=oe(()=>n.value.length>0),i=ne(null),l=ne(void 0),a=ne("overview"),c=ne(!1),m=ne(!0),u=ne(!0),_=ne("avgRerendersPerTrace"),C=ne("desc"),w=ne(!1),M=ne(!1),h=ne(""),b=ne(void 0),P=ne(void 0),{searchQuery:K,selectedSpanTypes:F,minDuration:I,maxDuration:W,routeFilter:j,filterTraces:z,clearFilters:J,hasActiveFilters:G}=Sv(),le=oe(()=>[...o.value?n.value:t.value].sort((f,E)=>E.startTime-f.startTime)),me=oe(()=>z(le.value)),X=oe(()=>{const v=o.value?" (imported)":"";return G.value?`Showing ${me.value.length} of ${le.value.length} traces${v}`:`${le.value.length} traces${v}`}),R=oe(()=>i.value?me.value.find(v=>v.id===i.value):me.value[0]),V=oe(()=>$i(R.value)),L=oe(()=>{var v;return Kv(me.value,(v=R.value)==null?void 0:v.id)}),se=oe(()=>{const v=h.value.trim().toLowerCase();let f=L.value.filter(E=>{if(w.value&&(E.deltaVsBaseline??0)<=0||M.value&&E.selectedRerenders===void 0)return!1;if(v){const T=E.componentName.toLowerCase().includes(v),H=E.file.toLowerCase().includes(v);if(!T&&!H)return!1}return!0});return f=[...f].sort((E,T)=>{const H=_.value,U=C.value==="asc"?1:-1;if(H==="componentName")return E.componentName.localeCompare(T.componentName)*U;if(H==="deltaVsBaseline"){const D=E.deltaVsBaseline??Number.NEGATIVE_INFINITY,re=T.deltaVsBaseline??Number.NEGATIVE_INFINITY;return(D-re)*U}return(E[H]-T[H])*U}),f}),A=oe(()=>L.value.filter(v=>(v.deltaVsBaseline??0)>0).length);function N(v){if(!v.spans.length)return;let f=0;for(const E of v.spans){const H=(E.endTime??E.startTime+(E.durationMs??0))-v.startTime;H>f&&(f=H)}return f>0?f:void 0}function x(v,f){if(v!==void 0)return`${Math.round(v*10)/10}ms`;if(f){const E=N(f);if(E!==void 0)return`~${Math.round(E*10)/10}ms`}return"active"}function ae(v){return typeof v=="string"?v:""}function Y(v){const f=v.metadata;if(!f)return v.name;const E=ae(f.componentName),T=ae(f.lifecycle),H=f.uid!==void 0?String(f.uid):"",U=ae(f.method),D=ae(f.url),re=ae(f.route)||ae(f.path);return E&&T?H?`${E}.${T} #${H}`:`${E}.${T}`:E?H?`${E} #${H}`:E:U&&D?`${U} ${D}`:D||(re?`${v.name} (${re})`:v.name)}function ce(v){i.value=v.id,l.value=void 0,b.value=void 0,P.value=void 0}function Le(){J(),l.value=void 0,b.value=void 0,P.value=void 0}function Fe(v){F.value=v}function Pe(){bi(`observatory-traces-${Date.now()}.json`,{type:"observatory-traces",version:"1",exportedAt:Date.now(),count:t.value.length,data:t.value})}async function Oe(){var E,T,H;let v;try{v=await yi()}catch(U){U instanceof Error&&U.message!=="cancelled"&&alert(`Import failed: ${U.message}`);return}const f=v;if((f==null?void 0:f.type)!=="observatory-traces"||(f==null?void 0:f.version)!=="1"||!Array.isArray(f==null?void 0:f.data)||f.data.length>0&&(!((E=f.data[0])!=null&&E.id)||!((T=f.data[0])!=null&&T.name)||!Array.isArray((H=f.data[0])==null?void 0:H.spans))){alert("Invalid observatory traces file.");return}n.value=f.data,i.value=null,l.value=void 0}function Ke(){n.value=[],i.value=null,l.value=void 0,b.value=void 0,P.value=void 0}function De(v){b.value=b.value===v?void 0:v,P.value=void 0,l.value=void 0}function ct(v){if(v===void 0)return"n/a";const f=Math.round(v*10)/10;return f>0?`+${f}`:`${f}`}function Re(v){return v===void 0?"trace-viewer__delta--na":v>0?"trace-viewer__delta--regression":v<0?"trace-viewer__delta--improvement":"trace-viewer__delta--neutral"}function Et(v){if(_.value===v){C.value=C.value==="desc"?"asc":"desc";return}_.value=v,C.value=v==="componentName"?"asc":"desc"}function d(v){return _.value!==v?"":C.value==="desc"?" ↓":" ↑"}function g(){P.value=void 0,b.value=void 0}function O(v){const f=se.value.find(E=>E.componentKey===v);if(!f||f.selectedUid===void 0){b.value=void 0,P.value=void 0,l.value=void 0;return}if(P.value===v){P.value=void 0,b.value=void 0,l.value=void 0;return}P.value=v,b.value=f.selectedUid,l.value=void 0}return(v,f)=>{var E;return $(),k("div",Wv,[r("div",zv,[f[20]||(f[20]=r("div",{class:"trace-viewer__title"},"Trace Viewer",-1)),r("div",Jv,[r("div",Gv,p(X.value),1),o.value?($(),k("button",{key:0,class:"trace-viewer__import-mode-btn",title:"Return to live data",onClick:Ke}," ← live ")):q("",!0),r("button",{class:"trace-viewer__action-btn",title:"Export traces as JSON",disabled:xe(t).length===0&&!o.value,onClick:Pe}," ↓ export ",8,qv),r("button",{class:"trace-viewer__action-btn",title:"Import traces from JSON file",onClick:Oe},"↑ import"),r("button",{class:ee([{"trace-viewer__filter-btn--active":c.value},"trace-viewer__filter-btn"]),title:"Toggle filters",onClick:f[0]||(f[0]=T=>c.value=!c.value)}," 🔍 ",2)])]),c.value?($(),$t(Hv,{key:0,traces:le.value,"search-query":xe(K),"selected-span-types":xe(F),"min-duration":xe(I),"max-duration":xe(W),"route-filter":xe(j),"has-active-filters":xe(G),"onUpdate:search":f[1]||(f[1]=T=>K.value=T),"onUpdate:types":Fe,"onUpdate:minDuration":f[2]||(f[2]=T=>I.value=T),"onUpdate:maxDuration":f[3]||(f[3]=T=>W.value=T),"onUpdate:route":f[4]||(f[4]=T=>j.value=T),onClearFilters:Le},null,8,["traces","search-query","selected-span-types","min-duration","max-duration","route-filter","has-active-filters"])):q("",!0),r("div",Xv,[r("div",Qv,[f[22]||(f[22]=r("div",{class:"trace-viewer__list-header"},[r("span",{class:"trace-viewer__list-title"},"Traces")],-1)),r("div",Yv,[r("table",Zv,[f[21]||(f[21]=r("thead",null,[r("tr",null,[r("th",null,"Trace Name"),r("th",null,"Duration"),r("th",null,"Spans")])],-1)),r("tbody",null,[($(!0),k(fe,null,he(me.value,T=>{var H;return $(),k("tr",{key:T.id,class:ee([{"trace-viewer__trace-row--selected":((H=R.value)==null?void 0:H.id)===T.id},"trace-viewer__trace-row"]),onClick:U=>ce(T)},[r("td",t_,p(T.name),1),r("td",s_,p(x(T.durationMs,T)),1),r("td",n_,p(T.spans.length),1)],10,e_)}),128)),me.value.length?q("",!0):($(),k("tr",o_,[r("td",r_,p(le.value.length===0?xe(s)?"No traces recorded yet.":"Waiting for connection to the Nuxt app…":"No traces match applied filters."),1)]))])])])]),R.value?($(),k("div",i_,[r("div",l_,[r("div",a_,[r("button",{class:ee([{"trace-viewer__tab--active":a.value==="overview"},"trace-viewer__tab"]),onClick:f[5]||(f[5]=T=>a.value="overview")}," Overview ",2),r("button",{class:ee([{"trace-viewer__tab--active":a.value==="flamegraph"},"trace-viewer__tab"]),onClick:f[6]||(f[6]=T=>a.value="flamegraph")}," Flamegraph ",2),r("button",{class:ee([{"trace-viewer__tab--active":a.value==="waterfall"},"trace-viewer__tab"]),onClick:f[7]||(f[7]=T=>a.value="waterfall")}," Waterfall ",2)]),r("div",c_,[a.value==="overview"?($(),k("div",u_,[r("div",d_,[r("div",null,[f[23]||(f[23]=r("div",{class:"trace-viewer__overview-label"},"Trace",-1)),r("div",f_,p(R.value.name),1)]),r("div",null,[f[24]||(f[24]=r("div",{class:"trace-viewer__overview-label"},"Duration",-1)),r("div",p_,p(x(R.value.durationMs,R.value)),1)]),r("div",null,[f[25]||(f[25]=r("div",{class:"trace-viewer__overview-label"},"Spans",-1)),r("div",m_,p(R.value.spans.length),1)]),r("div",null,[f[26]||(f[26]=r("div",{class:"trace-viewer__overview-label"},"Status",-1)),r("div",v_,p(R.value.status),1)])]),r("div",__,[($(!0),k(fe,null,he(R.value.spans,T=>{var H,U;return $(),k("div",{key:T.id,class:ee([{"trace-viewer__span-item--selected":((H=l.value)==null?void 0:H.id)===T.id,"trace-viewer__span-item--highlighted":b.value!==void 0&&((U=T.metadata)==null?void 0:U.uid)===b.value},"trace-viewer__span-item"]),onClick:D=>l.value=T},[r("div",g_,p(Y(T)),1),r("div",b_,[r("span",y_,p(T.type),1),r("span",$_,p(x(T.durationMs)),1)])],10,h_)}),128))]),V.value.length>0?($(),k(fe,{key:0},[r("div",{class:"trace-viewer__render-summary-header",onClick:f[9]||(f[9]=T=>m.value=!m.value)},[r("span",w_,p(m.value?"▾":"▸"),1),f[27]||(f[27]=r("span",{class:"trace-viewer__render-summary-title"},"Render Summary",-1)),r("span",k_,p(V.value.length)+" components",1),b.value!==void 0?($(),k("span",{key:0,class:"trace-viewer__render-summary-clear",onClick:f[8]||(f[8]=Rt(T=>b.value=void 0,["stop"]))}," ✕ clear ")):q("",!0)]),m.value?($(),k("div",x_,[r("table",C_,[f[28]||(f[28]=r("thead",null,[r("tr",null,[r("th",null,"Component"),r("th",{title:"Times the component was mounted"},"Mounts"),r("th",{title:"Reactive re-renders after initial mount"},"Re-renders"),r("th",{title:"Average render duration"},"Avg"),r("th",{title:"Sum of all render durations"},"Total")])],-1)),r("tbody",null,[($(!0),k(fe,null,he(V.value,T=>($(),k("tr",{key:T.uid,class:ee([{"trace-viewer__render-summary-row--active":b.value===T.uid},"trace-viewer__render-summary-row"]),title:T.file,onClick:H=>De(T.uid)},[r("td",T_,p(T.componentName),1),r("td",M_,p(T.mountCount),1),r("td",{class:ee(["mono",{"trace-viewer__render-hot":T.rerenderCount>3}])},p(T.rerenderCount),3),r("td",E_,p(x(T.avgMs)),1),r("td",I_,p(x(T.totalMs)),1)],10,S_))),128))])])])):q("",!0)],64)):q("",!0),L.value.length>0?($(),k(fe,{key:1},[r("div",{class:"trace-viewer__render-summary-header",onClick:f[10]||(f[10]=T=>u.value=!u.value)},[r("span",N_,p(u.value?"▾":"▸"),1),f[29]||(f[29]=r("span",{class:"trace-viewer__render-summary-title"},"Cross-Trace Render Comparison",-1)),r("span",O_,p(L.value.length)+" components · "+p(me.value.length)+" traces ",1),r("span",R_,p(A.value)+" regressions ",1),f[30]||(f[30]=r("span",{class:"trace-viewer__mobile-hint muted"},"mobile mode: condensed columns",-1)),P.value!==void 0?($(),k("span",{key:0,class:"trace-viewer__render-summary-clear",onClick:Rt(g,["stop"])}," ✕ clear ")):q("",!0)]),u.value?($(),k("div",A_,[r("div",F_,[r("button",{class:ee([{"trace-viewer__comparison-chip--active":w.value},"trace-viewer__comparison-chip"]),onClick:f[11]||(f[11]=T=>w.value=!w.value)}," regressions only ",2),r("button",{class:ee([{"trace-viewer__comparison-chip--active":M.value},"trace-viewer__comparison-chip"]),onClick:f[12]||(f[12]=T=>M.value=!M.value)}," selected trace only ",2),f[31]||(f[31]=r("span",{class:"trace-viewer__comparison-spacer"},null,-1)),Ft(r("input",{"onUpdate:modelValue":f[13]||(f[13]=T=>h.value=T),class:"trace-viewer__comparison-search mono",type:"search",placeholder:"filter component..."},null,512),[[qt,h.value]])]),r("table",L_,[r("thead",null,[r("tr",null,[r("th",{class:"trace-viewer__sortable",onClick:f[14]||(f[14]=T=>Et("componentName"))}," Component"+p(d("componentName")),1),f[32]||(f[32]=r("th",{class:"trace-viewer__col-desktop",title:"How many traces include this component"}," Traces ",-1)),r("th",{class:"trace-viewer__sortable",title:"Average re-renders per trace",onClick:f[15]||(f[15]=T=>Et("avgRerendersPerTrace"))}," Avg Re-renders"+p(d("avgRerendersPerTrace")),1),f[33]||(f[33]=r("th",{class:"trace-viewer__col-desktop",title:"Re-renders in selected trace"},"Selected",-1)),r("th",{class:"trace-viewer__sortable",title:"Selected trace vs other traces baseline",onClick:f[16]||(f[16]=T=>Et("deltaVsBaseline"))}," Delta"+p(d("deltaVsBaseline")),1),f[34]||(f[34]=r("th",{class:"trace-viewer__col-desktop",title:"Average render duration across all renders"}," Avg ms ",-1)),r("th",{class:"trace-viewer__sortable",title:"Sum of all render duration across filtered traces",onClick:f[17]||(f[17]=T=>Et("totalMs"))}," Total ms"+p(d("totalMs")),1)])]),r("tbody",null,[($(!0),k(fe,null,he(se.value,T=>($(),k("tr",{key:T.componentKey,class:ee([{"trace-viewer__render-summary-row--active":P.value===T.componentKey},"trace-viewer__render-summary-row"]),title:T.file,onClick:H=>O(T.componentKey)},[r("td",D_,p(T.componentName),1),r("td",j_,p(T.tracesSeen),1),r("td",V_,p((Math.round(T.avgRerendersPerTrace*10)/10).toFixed(1)),1),r("td",H_,p(T.selectedRerenders??"n/a"),1),r("td",U_,[r("span",{class:ee(["trace-viewer__delta",Re(T.deltaVsBaseline)])},p(ct(T.deltaVsBaseline)),3)]),r("td",B_,p(x(T.avgMsPerRender)),1),r("td",K_,p(x(T.totalMs)),1)],10,P_))),128)),se.value.length?q("",!0):($(),k("tr",W_,[...f[35]||(f[35]=[r("td",{colspan:"7",class:"tracker-empty-cell"},"No components match the comparison filters.",-1)])]))])])])):q("",!0)],64)):q("",!0)])):q("",!0),a.value==="flamegraph"?($(),k("div",z_,[Me($m,{trace:R.value,"selected-span-id":(E=l.value)==null?void 0:E.id,onSelectSpan:f[18]||(f[18]=T=>l.value=T)},null,8,["trace","selected-span-id"])])):q("",!0),a.value==="waterfall"?($(),k("div",J_,[Me(Um,{trace:R.value},null,8,["trace"])])):q("",!0)])]),r("div",G_,[Me(xv,{trace:R.value,span:l.value,onSelectSpan:f[19]||(f[19]=T=>l.value=T)},null,8,["trace","span"])])])):q("",!0)])])}}}),X_=at(q_,[["__scopeId","data-v-66a73dca"]]),Q_={id:"app-root"},Y_={class:"tabbar"},Z_=["onClick"],eh={class:"tab-icon"},th={class:"tab-content"},sh=nt({__name:"App",setup(e){const t={fetch:"fetch",provide:"provide",composables:"composable",heatmap:"heatmap",transitions:"transitions",traces:"traces"},s=window.location.pathname.split("/").filter(Boolean).pop()??"",n=ne(t[s]??"fetch"),{features:o}=Qt(),i=oe(()=>{const l=o.value||{};return[l.fetchDashboard&&{id:"fetch",label:"useFetch",icon:"⬡"},l.provideInjectGraph&&{id:"provide",label:"provide/inject",icon:"⬡"},l.composableTracker&&{id:"composable",label:"Composables",icon:"⬡"},l.renderHeatmap&&{id:"heatmap",label:"Heatmap",icon:"⬡"},l.transitionTracker&&{id:"transitions",label:"Transitions",icon:"⬡"},l.traceViewer&&{id:"traces",label:"Traces",icon:"⬡"}].filter(a=>!!a)});return(l,a)=>($(),k("div",Q_,[r("nav",Y_,[a[0]||(a[0]=r("div",{class:"tabbar-brand"},"observatory",-1)),($(!0),k(fe,null,he(i.value,c=>($(),k("button",{key:c.id,class:ee(["tab-btn",{active:n.value===c.id}]),onClick:m=>n.value=c.id},[r("span",eh,p(c.icon),1),Ie(" "+p(c.label),1)],10,Z_))),128))]),r("main",th,[n.value==="fetch"?($(),$t(zc,{key:0})):n.value==="provide"?($(),$t(Iu,{key:1})):n.value==="composable"?($(),$t(ef,{key:2})):n.value==="heatmap"?($(),$t(mp,{key:3})):n.value==="transitions"?($(),$t(im,{key:4})):n.value==="traces"?($(),$t(X_,{key:5})):q("",!0)])]))}}),nh=at(sh,[["__scopeId","data-v-fa5d152b"]]);Za(nh).mount("#app");
|