@gr8ful/spf 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +0,0 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=s(i);fetch(i.href,o)}})();function _n(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const pe={},Bt=[],at=()=>{},Ei=()=>!1,Ns=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fs=e=>e.startsWith("onUpdate:"),Te=Object.assign,bn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Wo=Object.prototype.hasOwnProperty,re=(e,t)=>Wo.call(e,t),z=Array.isArray,Dt=e=>as(e)==="[object Map]",Ci=e=>as(e)==="[object Set]",Yn=e=>as(e)==="[object Date]",X=e=>typeof e=="function",ge=e=>typeof e=="string",$e=e=>typeof e=="symbol",ae=e=>e!==null&&typeof e=="object",Ii=e=>(ae(e)||X(e))&&X(e.then)&&X(e.catch),Ti=Object.prototype.toString,as=e=>Ti.call(e),Yo=e=>as(e).slice(8,-1),Oi=e=>as(e)==="[object Object]",wn=e=>ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$t=_n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Ko=/-\w/g,Le=Rs(e=>e.replace(Ko,t=>t.slice(1).toUpperCase())),Qo=/\B([A-Z])/g,Pt=Rs(e=>e.replace(Qo,"-$1").toLowerCase()),Bs=Rs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ks=Rs(e=>e?`on${Bs(e)}`:""),rt=(e,t)=>!Object.is(e,t),Qs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Pi=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},zo=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Kn;const Ds=()=>Kn||(Kn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function De(e){if(z(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=ge(n)?Jo(n):De(n);if(i)for(const o in i)t[o]=i[o]}return t}else if(ge(e)||ae(e))return e}const qo=/;(?![^(]*\))/g,$o=/:([^]+)/,Xo=/\/\*[^]*?\*\//g;function Jo(e){const t={};return e.replace(Xo,"").split(qo).forEach(s=>{if(s){const n=s.split($o);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function he(e){let t="";if(ge(e))t=e;else if(z(e))for(let s=0;s<e.length;s++){const n=he(e[s]);n&&(t+=n+" ")}else if(ae(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Zo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",er=_n(Zo);function Ni(e){return!!e||e===""}function tr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=kn(e[n],t[n]);return s}function kn(e,t){if(e===t)return!0;let s=Yn(e),n=Yn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=$e(e),n=$e(t),s||n)return e===t;if(s=z(e),n=z(t),s||n)return s&&n?tr(e,t):!1;if(s=ae(e),n=ae(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const r in e){const l=e.hasOwnProperty(r),c=t.hasOwnProperty(r);if(l&&!c||!l&&c||!kn(e[r],t[r]))return!1}}return String(e)===String(t)}const Fi=e=>!!(e&&e.__v_isRef===!0),P=e=>ge(e)?e:e==null?"":z(e)||ae(e)&&(e.toString===Ti||!X(e.toString))?Fi(e)?P(e.value):JSON.stringify(e,Ri,2):String(e),Ri=(e,t)=>Fi(t)?Ri(e,t.value):Dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],o)=>(s[zs(n,o)+" =>"]=i,s),{})}:Ci(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>zs(s))}:$e(t)?zs(t):ae(t)&&!z(t)&&!Oi(t)?String(t):t,zs=(e,t="")=>{var s;return $e(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Ce;class sr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ce&&(Ce.active?(this.parent=Ce,this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[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){const i=this.scopes.slice();for(t=0,s=i.length;t<s;t++)i[t].resume()}const n=this.effects.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}}run(t){if(this._active){const s=Ce;try{return Ce=this,t()}finally{Ce=s}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){if(this._on>0&&--this._on===0){if(Ce===this)Ce=this.prevScope;else{let t=Ce;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.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){const i=this.scopes.slice();for(s=0,n=i.length;s<n;s++)i[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function nr(){return Ce}let de;const qs=new WeakSet;class Bi{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,Ce&&(Ce.active?Ce.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,qs.has(this)&&(qs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Hi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Qn(this),ji(this);const t=de,s=qe;de=this,qe=!0;try{return this.fn()}finally{Li(this),de=t,qe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Mn(t);this.deps=this.depsTail=void 0,Qn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?qs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){on(this)&&this.run()}get dirty(){return on(this)}}let Di=0,Xt,Jt;function Hi(e,t=!1){if(e.flags|=8,t){e.next=Jt,Jt=e;return}e.next=Xt,Xt=e}function xn(){Di++}function Sn(){if(--Di>0)return;if(Jt){let t=Jt;for(Jt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Xt;){let t=Xt;for(Xt=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 ji(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Li(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Mn(n),ir(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function on(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ui(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ui(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ts)||(e.globalVersion=ts,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!on(e))))return;e.flags|=2;const t=e.dep,s=de,n=qe;de=e,qe=!0;try{ji(e);const i=e.fn(e._value);(t.version===0||rt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{de=s,qe=n,Li(e),e.flags&=-3}}function Mn(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Mn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function ir(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let qe=!0;const Gi=[];function At(){Gi.push(qe),qe=!1}function gt(){const e=Gi.pop();qe=e===void 0?!0:e}function Qn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=de;de=void 0;try{t()}finally{de=s}}}let ts=0;class or{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 En{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(!de||!qe||de===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==de)s=this.activeLink=new or(de,this),de.deps?(s.prevDep=de.depsTail,de.depsTail.nextDep=s,de.depsTail=s):de.deps=de.depsTail=s,Vi(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=de.depsTail,s.nextDep=void 0,de.depsTail.nextDep=s,de.depsTail=s,de.deps===s&&(de.deps=n)}return s}trigger(t){this.version++,ts++,this.notify(t)}notify(t){xn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Sn()}}}function Vi(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)Vi(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const rn=new WeakMap,Tt=Symbol(""),ln=Symbol(""),ss=Symbol("");function Oe(e,t,s){if(qe&&de){let n=rn.get(e);n||rn.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new En),i.map=n,i.key=s),i.track()}}function ht(e,t,s,n,i,o){const r=rn.get(e);if(!r){ts++;return}const l=c=>{c&&c.trigger()};if(xn(),t==="clear")r.forEach(l);else{const c=z(e),d=c&&wn(s);if(c&&s==="length"){const u=Number(n);r.forEach((g,S)=>{(S==="length"||S===ss||!$e(S)&&S>=u)&&l(g)})}else switch((s!==void 0||r.has(void 0))&&l(r.get(s)),d&&l(r.get(ss)),t){case"add":c?d&&l(r.get("length")):(l(r.get(Tt)),Dt(e)&&l(r.get(ln)));break;case"delete":c||(l(r.get(Tt)),Dt(e)&&l(r.get(ln)));break;case"set":Dt(e)&&l(r.get(Tt));break}}Sn()}function Nt(e){const t=oe(e);return t===e?t:(Oe(t,"iterate",ss),Qe(e)?t:t.map(Xe))}function Hs(e){return Oe(e=oe(e),"iterate",ss),e}function it(e,t){return mt(e)?Gt(Ot(e)?Xe(t):t):Xe(t)}const rr={__proto__:null,[Symbol.iterator](){return $s(this,Symbol.iterator,e=>it(this,e))},concat(...e){return Nt(this).concat(...e.map(t=>z(t)?Nt(t):t))},entries(){return $s(this,"entries",e=>(e[1]=it(this,e[1]),e))},every(e,t){return ut(this,"every",e,t,void 0,arguments)},filter(e,t){return ut(this,"filter",e,t,s=>s.map(n=>it(this,n)),arguments)},find(e,t){return ut(this,"find",e,t,s=>it(this,s),arguments)},findIndex(e,t){return ut(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ut(this,"findLast",e,t,s=>it(this,s),arguments)},findLastIndex(e,t){return ut(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ut(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xs(this,"includes",e)},indexOf(...e){return Xs(this,"indexOf",e)},join(e){return Nt(this).join(e)},lastIndexOf(...e){return Xs(this,"lastIndexOf",e)},map(e,t){return ut(this,"map",e,t,void 0,arguments)},pop(){return Yt(this,"pop")},push(...e){return Yt(this,"push",e)},reduce(e,...t){return zn(this,"reduce",e,t)},reduceRight(e,...t){return zn(this,"reduceRight",e,t)},shift(){return Yt(this,"shift")},some(e,t){return ut(this,"some",e,t,void 0,arguments)},splice(...e){return Yt(this,"splice",e)},toReversed(){return Nt(this).toReversed()},toSorted(e){return Nt(this).toSorted(e)},toSpliced(...e){return Nt(this).toSpliced(...e)},unshift(...e){return Yt(this,"unshift",e)},values(){return $s(this,"values",e=>it(this,e))}};function $s(e,t,s){const n=Hs(e),i=n[t]();return n!==e&&!Qe(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=s(o.value)),o}),i}const lr=Array.prototype;function ut(e,t,s,n,i,o){const r=Hs(e),l=r!==e&&!Qe(e),c=r[t];if(c!==lr[t]){const g=c.apply(e,o);return l?Xe(g):g}let d=s;r!==e&&(l?d=function(g,S){return s.call(this,it(e,g),S,e)}:s.length>2&&(d=function(g,S){return s.call(this,g,S,e)}));const u=c.call(r,d,n);return l&&i?i(u):u}function zn(e,t,s,n){const i=Hs(e),o=i!==e&&!Qe(e);let r=s,l=!1;i!==e&&(o?(l=n.length===0,r=function(d,u,g){return l&&(l=!1,d=it(e,d)),s.call(this,d,it(e,u),g,e)}):s.length>3&&(r=function(d,u,g){return s.call(this,d,u,g,e)}));const c=i[t](r,...n);return l?it(e,c):c}function Xs(e,t,s){const n=oe(e);Oe(n,"iterate",ss);const i=n[t](...s);return(i===-1||i===!1)&&Tn(s[0])?(s[0]=oe(s[0]),n[t](...s)):i}function Yt(e,t,s=[]){At(),xn();const n=oe(e)[t].apply(e,s);return Sn(),gt(),n}const ar=_n("__proto__,__v_isRef,__isVue"),Wi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($e));function cr(e){$e(e)||(e=String(e));const t=oe(this);return Oe(t,"has",e),t.hasOwnProperty(e)}class Yi{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(i?o?yr:qi:o?zi:Qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=z(t);if(!i){let c;if(r&&(c=rr[s]))return c;if(s==="hasOwnProperty")return cr}const l=Reflect.get(t,s,Ne(t)?t:n);if(($e(s)?Wi.has(s):ar(s))||(i||Oe(t,"get",s),o))return l;if(Ne(l)){const c=r&&wn(s)?l:l.value;return i&&ae(c)?cn(c):c}return ae(l)?i?cn(l):xt(l):l}}class Ki extends Yi{constructor(t=!1){super(!1,t)}set(t,s,n,i){let o=t[s];const r=z(t)&&wn(s);if(!this._isShallow){const d=mt(o);if(!Qe(n)&&!mt(n)&&(o=oe(o),n=oe(n)),!r&&Ne(o)&&!Ne(n))return d||(o.value=n),!0}const l=r?Number(s)<t.length:re(t,s),c=Reflect.set(t,s,n,Ne(t)?t:i);return t===oe(i)&&c&&(l?rt(n,o)&&ht(t,"set",s,n):ht(t,"add",s,n)),c}deleteProperty(t,s){const n=re(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&n&&ht(t,"delete",s,void 0),i}has(t,s){const n=Reflect.has(t,s);return(!$e(s)||!Wi.has(s))&&Oe(t,"has",s),n}ownKeys(t){return Oe(t,"iterate",z(t)?"length":Tt),Reflect.ownKeys(t)}}class ur extends Yi{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const fr=new Ki,dr=new ur,hr=new Ki(!0);const an=e=>e,As=e=>Reflect.getPrototypeOf(e);function pr(e,t,s){return function(...n){const i=this.__v_raw,o=oe(i),r=Dt(o),l=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,d=i[e](...n),u=s?an:t?Gt:Xe;return!t&&Oe(o,"iterate",c?ln:Tt),Te(Object.create(d),{next(){const{value:g,done:S}=d.next();return S?{value:g,done:S}:{value:l?[u(g[0]),u(g[1])]:u(g),done:S}}})}}function gs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ar(e,t){const s={get(i){const o=this.__v_raw,r=oe(o),l=oe(i);e||(rt(i,l)&&Oe(r,"get",i),Oe(r,"get",l));const{has:c}=As(r),d=t?an:e?Gt:Xe;if(c.call(r,i))return d(o.get(i));if(c.call(r,l))return d(o.get(l));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!e&&Oe(oe(i),"iterate",Tt),i.size},has(i){const o=this.__v_raw,r=oe(o),l=oe(i);return e||(rt(i,l)&&Oe(r,"has",i),Oe(r,"has",l)),i===l?o.has(i):o.has(i)||o.has(l)},forEach(i,o){const r=this,l=r.__v_raw,c=oe(l),d=t?an:e?Gt:Xe;return!e&&Oe(c,"iterate",Tt),l.forEach((u,g)=>i.call(o,d(u),d(g),r))}};return Te(s,e?{add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear")}:{add(i){const o=oe(this),r=As(o),l=oe(i),c=!t&&!Qe(i)&&!mt(i)?l:i;return r.has.call(o,c)||rt(i,c)&&r.has.call(o,i)||rt(l,c)&&r.has.call(o,l)||(o.add(c),ht(o,"add",c,c)),this},set(i,o){!t&&!Qe(o)&&!mt(o)&&(o=oe(o));const r=oe(this),{has:l,get:c}=As(r);let d=l.call(r,i);d||(i=oe(i),d=l.call(r,i));const u=c.call(r,i);return r.set(i,o),d?rt(o,u)&&ht(r,"set",i,o):ht(r,"add",i,o),this},delete(i){const o=oe(this),{has:r,get:l}=As(o);let c=r.call(o,i);c||(i=oe(i),c=r.call(o,i)),l&&l.call(o,i);const d=o.delete(i);return c&&ht(o,"delete",i,void 0),d},clear(){const i=oe(this),o=i.size!==0,r=i.clear();return o&&ht(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=pr(i,e,t)}),s}function Cn(e,t){const s=Ar(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(re(s,i)&&i in n?s:n,i,o)}const gr={get:Cn(!1,!1)},mr={get:Cn(!1,!0)},vr={get:Cn(!0,!1)};const Qi=new WeakMap,zi=new WeakMap,qi=new WeakMap,yr=new WeakMap;function _r(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xt(e){return mt(e)?e:In(e,!1,fr,gr,Qi)}function br(e){return In(e,!1,hr,mr,zi)}function cn(e){return In(e,!0,dr,vr,qi)}function In(e,t,s,n,i){if(!ae(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=i.get(e);if(o)return o;const r=_r(Yo(e));if(r===0)return e;const l=new Proxy(e,r===2?n:s);return i.set(e,l),l}function Ot(e){return mt(e)?Ot(e.__v_raw):!!(e&&e.__v_isReactive)}function mt(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function Tn(e){return e?!!e.__v_raw:!1}function oe(e){const t=e&&e.__v_raw;return t?oe(t):e}function wr(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&Pi(e,"__v_skip",!0),e}const Xe=e=>ae(e)?xt(e):e,Gt=e=>ae(e)?cn(e):e;function Ne(e){return e?e.__v_isRef===!0:!1}function Ie(e){return Xi(e,!1)}function $i(e){return Xi(e,!0)}function Xi(e,t){return Ne(e)?e:new kr(e,t)}class kr{constructor(t,s){this.dep=new En,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:oe(t),this._value=s?t:Xe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Qe(t)||mt(t);t=n?t:oe(t),rt(t,s)&&(this._rawValue=t,this._value=n?t:Xe(t),this.dep.trigger())}}function L(e){return Ne(e)?e.value:e}const xr={get:(e,t,s)=>t==="__v_raw"?e:L(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return Ne(i)&&!Ne(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Ji(e){return Ot(e)?e:new Proxy(e,xr)}class Sr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new En(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ts-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&de!==this)return Hi(this,!0),!0}get value(){const t=this.dep.track();return Ui(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Mr(e,t,s=!1){let n,i;return X(e)?n=e:(n=e.get,i=e.set),new Sr(n,i,s)}const ms={},ks=new WeakMap;let It;function Er(e,t=!1,s=It){if(s){let n=ks.get(s);n||ks.set(s,n=[]),n.push(e)}}function Cr(e,t,s=pe){const{immediate:n,deep:i,once:o,scheduler:r,augmentJob:l,call:c}=s,d=N=>i?N:Qe(N)||i===!1||i===0?St(N,1):St(N);let u,g,S,R,G=!1,V=!1;if(Ne(e)?(g=()=>e.value,G=Qe(e)):Ot(e)?(g=()=>d(e),G=!0):z(e)?(V=!0,G=e.some(N=>Ot(N)||Qe(N)),g=()=>e.map(N=>{if(Ne(N))return N.value;if(Ot(N))return d(N);if(X(N))return c?c(N,2):N()})):X(e)?t?g=c?()=>c(e,2):e:g=()=>{if(S){At();try{S()}finally{gt()}}const N=It;It=u;try{return c?c(e,3,[R]):e(R)}finally{It=N}}:g=at,t&&i){const N=g,Y=i===!0?1/0:i;g=()=>St(N(),Y)}const le=nr(),ee=()=>{u.stop(),le&&le.active&&bn(le.effects,u)};if(o&&t){const N=t;t=(...Y)=>{const J=N(...Y);return ee(),J}}let Z=V?new Array(e.length).fill(ms):ms;const B=N=>{if(!(!(u.flags&1)||!u.dirty&&!N))if(t){const Y=u.run();if(N||i||G||(V?Y.some((J,Ae)=>rt(J,Z[Ae])):rt(Y,Z))){S&&S();const J=It;It=u;try{const Ae=[Y,Z===ms?void 0:V&&Z[0]===ms?[]:Z,R];Z=Y,c?c(t,3,Ae):t(...Ae)}finally{It=J}}}else u.run()};return l&&l(B),u=new Bi(g),u.scheduler=r?()=>r(B,!1):B,R=N=>Er(N,!1,u),S=u.onStop=()=>{const N=ks.get(u);if(N){if(c)c(N,4);else for(const Y of N)Y();ks.delete(u)}},t?n?B(!0):Z=u.run():r?r(B.bind(null,!0),!0):u.run(),ee.pause=u.pause.bind(u),ee.resume=u.resume.bind(u),ee.stop=ee,ee}function St(e,t=1/0,s){if(t<=0||!ae(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Ne(e))St(e.value,t,s);else if(z(e))for(let n=0;n<e.length;n++)St(e[n],t,s);else if(Ci(e)||Dt(e))e.forEach(n=>{St(n,t,s)});else if(Oi(e)){for(const n in e)St(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&St(e[n],t,s)}return e}function cs(e,t,s,n){try{return n?e(...n):e()}catch(i){js(i,t,s)}}function Je(e,t,s,n){if(X(e)){const i=cs(e,t,s,n);return i&&Ii(i)&&i.catch(o=>{js(o,t,s)}),i}if(z(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Je(e[o],t,s,n));return i}}function js(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||pe;if(t){let l=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let g=0;g<u.length;g++)if(u[g](e,c,d)===!1)return}l=l.parent}if(o){At(),cs(o,null,10,[e,c,d]),gt();return}}Ir(e,s,i,n,r)}function Ir(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const He=[];let nt=-1;const Ht=[];let kt=null,Rt=0;const Zi=Promise.resolve();let xs=null;function Tr(e){const t=xs||Zi;return e?t.then(this?e.bind(this):e):t}function Or(e){let t=nt+1,s=He.length;for(;t<s;){const n=t+s>>>1,i=He[n],o=ns(i);o<e||o===e&&i.flags&2?t=n+1:s=n}return t}function On(e){if(!(e.flags&1)){const t=ns(e),s=He[He.length-1];!s||!(e.flags&2)&&t>=ns(s)?He.push(e):He.splice(Or(t),0,e),e.flags|=1,eo()}}function eo(){xs||(xs=Zi.then(so))}function Pr(e){if(!z(e))kt&&e.id===-1?kt.splice(Rt+1,0,e):e.flags&1||(Ht.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Ht.push(e[t]);eo()}function qn(e,t,s=nt+1){for(;s<He.length;s++){const n=He[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;He.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function to(e){if(Ht.length){const t=[...new Set(Ht)].sort((s,n)=>ns(s)-ns(n));if(Ht.length=0,kt){for(let s=0;s<t.length;s++)kt.push(t[s]);return}for(kt=t,Rt=0;Rt<kt.length;Rt++){const s=kt[Rt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}kt=null,Rt=0}}const ns=e=>e.id==null?e.flags&2?-1:1/0:e.id;function so(e){try{for(nt=0;nt<He.length;nt++){const t=He[nt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),cs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;nt<He.length;nt++){const t=He[nt];t&&(t.flags&=-2)}nt=-1,He.length=0,to(),xs=null,(He.length||Ht.length)&&so()}}let je=null,no=null;function Ss(e){const t=je;return je=e,no=e&&e.type.__scopeId||null,t}function wt(e,t=je,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&Cs(-1);const o=Ss(t),r=pt.length;let l;try{l=e(...i)}finally{for(let c=pt.length;c>r;c--)Dn();Ss(o),n._d&&Cs(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Mt(e,t,s,n){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const l=i[r];o&&(l.oldValue=o[r].value);let c=l.dir[n];c&&(At(),Je(c,s,8,[e.el,l,e,t]),gt())}}function Nr(e,t){if(Pe){let s=Pe.provides;const n=Pe.parent&&Pe.parent.provides;n===s&&(s=Pe.provides=Object.create(n)),s[e]=t}}function ys(e,t,s=!1){const n=Nl();if(n||Ut){let i=Ut?Ut._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&X(t)?t.call(n&&n.proxy):t}}const Fr=Symbol.for("v-scx"),Rr=()=>ys(Fr);function Br(e,t){return Pn(e,null,t)}function jt(e,t,s){return Pn(e,t,s)}function Pn(e,t,s=pe){const{immediate:n,deep:i,flush:o,once:r}=s,l=Te({},s),c=t&&n||!t&&o!=="post";let d;if(ls){if(o==="sync"){const R=Rr();d=R.__watcherHandles||(R.__watcherHandles=[])}else if(!c){const R=()=>{};return R.stop=at,R.resume=at,R.pause=at,R}}const u=Pe;l.call=(R,G,V)=>Je(R,u,G,V);let g=!1;o==="post"?l.scheduler=R=>{Ue(R,u&&u.suspense)}:o!=="sync"&&(g=!0,l.scheduler=(R,G)=>{G?R():On(R)}),l.augmentJob=R=>{t&&(R.flags|=4),g&&(R.flags|=2,u&&(R.id=u.uid,R.i=u))};const S=Cr(e,t,l);return ls&&(d?d.push(S):c&&S()),S}function Dr(e,t,s){const n=this.proxy,i=ge(e)?e.includes(".")?io(n,e):()=>n[e]:e.bind(n,n);let o;X(t)?o=t:(o=t.handler,s=t);const r=fs(this),l=Pn(i,o.bind(n),s);return r(),l}function io(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const Hr=Symbol("_vte"),Ls=e=>e.__isTeleport,Js=Symbol("_leaveCb");function jr(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==ct){t=s;break}}return t}function oo(e){if(!Fn(e))return Ls(e.type)&&e.children?jr(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&&X(s.default))return s.default()}}function Nn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;Nn(Ls(s.type)&&oo(s)||s,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vt(e,t){return X(e)?Te({name:e.name},t,{setup:e}):e}function ro(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $n(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Ms=new WeakMap;function Zt(e,t,s,n,i=!1){if(z(e)){e.forEach((V,le)=>Zt(V,t&&(z(t)?t[le]:t),s,n,i));return}if(Lt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Zt(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?Hn(n.component):n.el,r=i?null:o,{i:l,r:c}=e,d=t&&t.r,u=l.refs===pe?l.refs={}:l.refs,g=l.setupState,S=oe(g),R=g===pe?Ei:V=>$n(u,V)?!1:re(S,V),G=(V,le)=>!(le&&$n(u,le));if(d!=null&&d!==c){if(Xn(t),ge(d))u[d]=null,R(d)&&(g[d]=null);else if(Ne(d)){const V=t;G(d,V.k)&&(d.value=null),V.k&&(u[V.k]=null)}}if(X(c))cs(c,l,12,[r,u]);else{const V=ge(c),le=Ne(c);if(V||le){const ee=()=>{if(e.f){const Z=V?R(c)?g[c]:u[c]:G()||!e.k?c.value:u[e.k];if(i)z(Z)&&bn(Z,o);else if(z(Z))Z.includes(o)||Z.push(o);else if(V)u[c]=[o],R(c)&&(g[c]=u[c]);else{const B=[o];G(c,e.k)&&(c.value=B),e.k&&(u[e.k]=B)}}else V?(u[c]=r,R(c)&&(g[c]=r)):le&&(G(c,e.k)&&(c.value=r),e.k&&(u[e.k]=r))};if(r){const Z=()=>{ee(),Ms.delete(e)};Z.id=-1,Ms.set(e,Z),Ue(Z,s)}else Xn(e),ee()}}}function Xn(e){const t=Ms.get(e);t&&(t.flags|=8,Ms.delete(e))}Ds().requestIdleCallback;Ds().cancelIdleCallback;const Lt=e=>!!e.type.__asyncLoader,Fn=e=>e.type.__isKeepAlive;function Lr(e,t){lo(e,"a",t)}function Ur(e,t){lo(e,"da",t)}function lo(e,t,s=Pe){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Us(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Fn(i.parent.vnode)&&Gr(n,t,s,i),i=i.parent}}function Gr(e,t,s,n){const i=Us(t,e,n,!0);us(()=>{bn(n[t],i)},s)}function Us(e,t,s=Pe,n=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...r)=>{At();const l=fs(s),c=Je(t,s,e,r);return l(),gt(),c});return n?i.unshift(o):i.push(o),o}}const yt=e=>(t,s=Pe)=>{(!ls||e==="sp")&&Us(e,(...n)=>t(...n),s)},Vr=yt("bm"),Gs=yt("m"),Wr=yt("bu"),Yr=yt("u"),Kr=yt("bum"),us=yt("um"),Qr=yt("sp"),zr=yt("rtg"),qr=yt("rtc");function $r(e,t=Pe){Us("ec",e,t)}const Xr="components",ao=Symbol.for("v-ndc");function Vs(e){return ge(e)?Jr(Xr,e,!1)||e:e||ao}function Jr(e,t,s=!0,n=!1){const i=je||Pe;if(i){const o=i.type;{const l=Hl(o,!1);if(l&&(l===t||l===Le(t)||l===Bs(Le(t))))return o}const r=Jn(i[e]||o[e],t)||Jn(i.appContext[e],t);return!r&&n?o:r}}function Jn(e,t){return e&&(e[t]||e[Le(t)]||e[Bs(Le(t))])}function _e(e,t,s,n){let i;const o=s,r=z(e);if(r||ge(e)){const l=r&&Ot(e);let c=!1,d=!1;l&&(c=!Qe(e),d=mt(e),e=Hs(e)),i=new Array(e.length);for(let u=0,g=e.length;u<g;u++)i[u]=t(c?d?Gt(Xe(e[u])):Xe(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let l=0;l<e;l++)i[l]=t(l+1,l,void 0,o)}else if(ae(e))if(e[Symbol.iterator])i=Array.from(e,(l,c)=>t(l,c,void 0,o));else{const l=Object.keys(e);i=new Array(l.length);for(let c=0,d=l.length;c<d;c++){const u=l[c];i[c]=t(e[u],u,c,o)}}else i=[];return i}function Zr(e,t,s,n,i,o){if(s==null&&(s={}),je.ce||je.parent&&Lt(je.parent)&&je.parent.ce){const d=s,u=Object.keys(d).length>0;return A(),ke(q,null,[ne("slot",d,n)],u?-2:64)}let r=e[t];r&&r._c&&(r._d=!1);const l=pt.length;A();let c;try{const d=r&&co(r(s)),u=s.key||o||d&&d.key;c=ke(q,{key:(u&&!$e(u)?u:`_${t}`)+(!d&&n?"_fb":"")},d||(n?n():[]),d&&e._===1?64:-2)}catch(d){for(let u=pt.length;u>l;u--)Dn();throw d}finally{r&&r._c&&(r._d=!0)}return c}function co(e){return e.some(t=>os(t)?!(t.type===ct||t.type===q&&!co(t.children)):!0)?e:null}const un=e=>e?To(e)?Hn(e):un(e.parent):null,es=Te(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=>un(e.parent),$root:e=>un(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>fo(e),$forceUpdate:e=>e.f||(e.f=()=>{On(e.update)}),$nextTick:e=>e.n||(e.n=Tr.bind(e.proxy)),$watch:e=>Dr.bind(e)}),Zs=(e,t)=>e!==pe&&!e.__isScriptSetup&&re(e,t),el={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:o,accessCache:r,type:l,appContext:c}=e;if(t[0]!=="$"){const S=r[t];if(S!==void 0)switch(S){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(Zs(n,t))return r[t]=1,n[t];if(i!==pe&&re(i,t))return r[t]=2,i[t];if(re(o,t))return r[t]=3,o[t];if(s!==pe&&re(s,t))return r[t]=4,s[t];fn&&(r[t]=0)}}const d=es[t];let u,g;if(d)return t==="$attrs"&&Oe(e.attrs,"get",""),d(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(s!==pe&&re(s,t))return r[t]=4,s[t];if(g=c.config.globalProperties,re(g,t))return g[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:o}=e;return Zs(i,t)?(i[t]=s,!0):n!==pe&&re(n,t)?(n[t]=s,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:o,type:r}},l){let c;return!!(s[l]||e!==pe&&l[0]!=="$"&&re(e,l)||Zs(t,l)||re(o,l)||re(n,l)||re(es,l)||re(i.config.globalProperties,l)||(c=r.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:re(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Zn(e){return z(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let fn=!0;function tl(e){const t=fo(e),s=e.proxy,n=e.ctx;fn=!1,t.beforeCreate&&ei(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:l,provide:c,inject:d,created:u,beforeMount:g,mounted:S,beforeUpdate:R,updated:G,activated:V,deactivated:le,beforeDestroy:ee,beforeUnmount:Z,destroyed:B,unmounted:N,render:Y,renderTracked:J,renderTriggered:Ae,errorCaptured:Me,serverPrefetch:Fe,expose:Q,inheritAttrs:me,components:we,directives:ve,filters:Ye}=t;if(d&&sl(d,n,null),r)for(const w in r){const v=r[w];X(v)&&(n[w]=v.bind(s))}if(i){const w=i.call(s,s);ae(w)&&(e.data=xt(w))}if(fn=!0,o)for(const w in o){const v=o[w],p=X(v)?v.bind(s,s):X(v.get)?v.get.bind(s,s):at,W=!X(v)&&X(v.set)?v.set.bind(s):at,ue=se({get:p,set:W});Object.defineProperty(n,w,{enumerable:!0,configurable:!0,get:()=>ue.value,set:Re=>ue.value=Re})}if(l)for(const w in l)uo(l[w],n,s,w);if(c){const w=X(c)?c.call(s):c;Reflect.ownKeys(w).forEach(v=>{Nr(v,w[v])})}u&&ei(u,e,"c");function xe(w,v){z(v)?v.forEach(p=>w(p.bind(s))):v&&w(v.bind(s))}if(xe(Vr,g),xe(Gs,S),xe(Wr,R),xe(Yr,G),xe(Lr,V),xe(Ur,le),xe($r,Me),xe(qr,J),xe(zr,Ae),xe(Kr,Z),xe(us,N),xe(Qr,Fe),z(Q))if(Q.length){const w=e.exposed||(e.exposed={});Q.forEach(v=>{Object.defineProperty(w,v,{get:()=>s[v],set:p=>s[v]=p,enumerable:!0})})}else e.exposed||(e.exposed={});Y&&e.render===at&&(e.render=Y),me!=null&&(e.inheritAttrs=me),we&&(e.components=we),ve&&(e.directives=ve),Fe&&ro(e)}function sl(e,t,s=at){z(e)&&(e=dn(e));for(const n in e){const i=e[n];let o;ae(i)?"default"in i?o=ys(i.from||n,i.default,!0):o=ys(i.from||n):o=ys(i),Ne(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[n]=o}}function ei(e,t,s){Je(z(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function uo(e,t,s,n){let i=n.includes(".")?io(s,n):()=>s[n];if(ge(e)){const o=t[e];X(o)&&jt(i,o)}else if(X(e))jt(i,e.bind(s));else if(ae(e))if(z(e))e.forEach(o=>uo(o,t,s,n));else{const o=X(e.handler)?e.handler.bind(s):t[e.handler];X(o)&&jt(i,o,e)}}function fo(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,l=o.get(t);let c;return l?c=l:!i.length&&!s&&!n?c=t:(c={},i.length&&i.forEach(d=>Es(c,d,r,!0)),Es(c,t,r)),ae(t)&&o.set(t,c),c}function Es(e,t,s,n=!1){const{mixins:i,extends:o}=t;o&&Es(e,o,s,!0),i&&i.forEach(r=>Es(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const l=nl[r]||s&&s[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const nl={data:ti,props:si,emits:si,methods:zt,computed:zt,beforeCreate:Be,created:Be,beforeMount:Be,mounted:Be,beforeUpdate:Be,updated:Be,beforeDestroy:Be,beforeUnmount:Be,destroyed:Be,unmounted:Be,activated:Be,deactivated:Be,errorCaptured:Be,serverPrefetch:Be,components:zt,directives:zt,watch:ol,provide:ti,inject:il};function ti(e,t){return t?e?function(){return Te(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function il(e,t){return zt(dn(e),dn(t))}function dn(e){if(z(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Be(e,t){return e?[...new Set([].concat(e,t))]:t}function zt(e,t){return e?Te(Object.create(null),e,t):t}function si(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Te(Object.create(null),Zn(e),Zn(t??{})):t}function ol(e,t){if(!e)return t;if(!t)return e;const s=Te(Object.create(null),e);for(const n in t)s[n]=Be(e[n],t[n]);return s}function ho(){return{app:null,config:{isNativeTag:Ei,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 rl=0;function ll(e,t){return function(n,i=null){X(n)||(n=Te({},n)),i!=null&&!ae(i)&&(i=null);const o=ho(),r=new WeakSet,l=[];let c=!1;const d=o.app={_uid:rl++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:Ll,get config(){return o.config},set config(u){},use(u,...g){return r.has(u)||(u&&X(u.install)?(r.add(u),u.install(d,...g)):X(u)&&(r.add(u),u(d,...g))),d},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),d},component(u,g){return g?(o.components[u]=g,d):o.components[u]},directive(u,g){return g?(o.directives[u]=g,d):o.directives[u]},mount(u,g,S){if(!c){const R=d._ceVNode||ne(n,i);return R.appContext=o,S===!0?S="svg":S===!1&&(S=void 0),e(R,u,S),c=!0,d._container=u,u.__vue_app__=d,Hn(R.component)}},onUnmount(u){l.push(u)},unmount(){c&&(Je(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(u,g){return o.provides[u]=g,d},runWithContext(u){const g=Ut;Ut=d;try{return u()}finally{Ut=g}}};return d}}let Ut=null;const al=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Le(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function cl(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||pe;let i=s;const o=t.startsWith("update:"),r=o&&al(n,t.slice(7));r&&(r.trim&&(i=s.map(u=>ge(u)?u.trim():u)),r.number&&(i=s.map(zo)));let l,c=n[l=Ks(t)]||n[l=Ks(Le(t))];!c&&o&&(c=n[l=Ks(Pt(t))]),c&&Je(c,e,6,i);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Je(d,e,6,i)}}const ul=new WeakMap;function po(e,t,s=!1){const n=s?ul:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let r={},l=!1;if(!X(e)){const c=d=>{const u=po(d,t,!0);u&&(l=!0,Te(r,u))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ae(e)&&n.set(e,null),null):(z(o)?o.forEach(c=>r[c]=null):Te(r,o),ae(e)&&n.set(e,r),r)}function Ws(e,t){return!e||!Ns(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Pt(t))||re(e,t))}function ni(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[o],slots:r,attrs:l,emit:c,render:d,renderCache:u,props:g,data:S,setupState:R,ctx:G,inheritAttrs:V}=e,le=Ss(e);let ee,Z;try{if(s.shapeFlag&4){const N=i||n,Y=N;ee=ot(d.call(Y,N,u,g,R,S,G)),Z=l}else{const N=t;ee=ot(N.length>1?N(g,{attrs:l,slots:r,emit:c}):N(g,null)),Z=t.props?l:fl(l)}}catch(N){pt.length=0,js(N,e,1),ee=ne(ct)}let B=ee;if(Z&&V!==!1){const N=Object.keys(Z),{shapeFlag:Y}=B;N.length&&Y&7&&(o&&N.some(Fs)&&(Z=dl(Z,o)),B=Vt(B,Z,!1,!0))}if(s.dirs&&(B=Vt(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(s.dirs):s.dirs),s.transition){const N=Ls(B.type)&&oo(B)||B;Nn(N,s.transition)}return ee=B,Ss(le),ee}const fl=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ns(s))&&((t||(t={}))[s]=e[s]);return t},dl=(e,t)=>{const s={};for(const n in e)(!Fs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function hl(e,t,s){const{props:n,children:i,component:o}=e,{props:r,children:l,patchFlag:c}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?ii(n,r,d):!!r;if(c&8){const u=t.dynamicProps;for(let g=0;g<u.length;g++){const S=u[g];if(Ao(r,n,S)&&!Ws(d,S))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:n===r?!1:n?r?ii(n,r,d):!0:!!r;return!1}function ii(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(Ao(t,e,o)&&!Ws(s,o))return!0}return!1}function Ao(e,t,s){const n=e[s],i=t[s];return s==="style"&&ae(n)&&ae(i)?!kn(n,i):n!==i}function pl({vnode:e,parent:t,suspense:s},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=n,e=i),i===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const go={},mo=()=>Object.create(go),vo=e=>Object.getPrototypeOf(e)===go;function Al(e,t,s,n=!1){const i={},o=mo();e.propsDefaults=Object.create(null),yo(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:br(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function gl(e,t,s,n){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,l=oe(i),[c]=e.propsOptions;let d=!1;if((n||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let g=0;g<u.length;g++){let S=u[g];if(Ws(e.emitsOptions,S))continue;const R=t[S];if(c)if(re(o,S))R!==o[S]&&(o[S]=R,d=!0);else{const G=Le(S);i[G]=hn(c,l,G,R,e,!1)}else R!==o[S]&&(o[S]=R,d=!0)}}}else{yo(e,t,i,o)&&(d=!0);let u;for(const g in l)(!t||!re(t,g)&&((u=Pt(g))===g||!re(t,u)))&&(c?s&&(s[g]!==void 0||s[u]!==void 0)&&(i[g]=hn(c,l,g,void 0,e,!0)):delete i[g]);if(o!==l)for(const g in o)(!t||!re(t,g))&&(delete o[g],d=!0)}d&&ht(e.attrs,"set","")}function yo(e,t,s,n){const[i,o]=e.propsOptions;let r=!1,l;if(t)for(let c in t){if($t(c))continue;const d=t[c];let u;i&&re(i,u=Le(c))?!o||!o.includes(u)?s[u]=d:(l||(l={}))[u]=d:Ws(e.emitsOptions,c)||(!(c in n)||d!==n[c])&&(n[c]=d,r=!0)}if(o){const c=oe(s),d=l||pe;for(let u=0;u<o.length;u++){const g=o[u];s[g]=hn(i,c,g,d[g],e,!re(d,g))}}return r}function hn(e,t,s,n,i,o){const r=e[s];if(r!=null){const l=re(r,"default");if(l&&n===void 0){const c=r.default;if(r.type!==Function&&!r.skipFactory&&X(c)){const{propsDefaults:d}=i;if(s in d)n=d[s];else{const u=fs(i);n=d[s]=c.call(null,t),u()}}else n=c;i.ce&&i.ce._setProp(s,n)}r[0]&&(o&&!l?n=!1:r[1]&&(n===""||n===Pt(s))&&(n=!0))}return n}const ml=new WeakMap;function _o(e,t,s=!1){const n=s?ml:t.propsCache,i=n.get(e);if(i)return i;const o=e.props,r={},l=[];let c=!1;if(!X(e)){const u=g=>{c=!0;const[S,R]=_o(g,t,!0);Te(r,S),R&&l.push(...R)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return ae(e)&&n.set(e,Bt),Bt;if(z(o))for(let u=0;u<o.length;u++){const g=Le(o[u]);oi(g)&&(r[g]=pe)}else if(o)for(const u in o){const g=Le(u);if(oi(g)){const S=o[u],R=r[g]=z(S)||X(S)?{type:S}:Te({},S),G=R.type;let V=!1,le=!0;if(z(G))for(let ee=0;ee<G.length;++ee){const Z=G[ee],B=X(Z)&&Z.name;if(B==="Boolean"){V=!0;break}else B==="String"&&(le=!1)}else V=X(G)&&G.name==="Boolean";R[0]=V,R[1]=le,(V||re(R,"default"))&&l.push(g)}}const d=[r,l];return ae(e)&&n.set(e,d),d}function oi(e){return e[0]!=="$"&&!$t(e)}const Rn=e=>e==="_"||e==="_ctx"||e==="$stable",Bn=e=>z(e)?e.map(ot):[ot(e)],vl=(e,t,s)=>{if(t._n)return t;const n=wt((...i)=>Bn(t(...i)),s);return n._c=!1,n},bo=(e,t,s)=>{const n=e._ctx;for(const i in e){if(Rn(i))continue;const o=e[i];if(X(o))t[i]=vl(i,o,n);else if(o!=null){const r=Bn(o);t[i]=()=>r}}},wo=(e,t)=>{const s=Bn(t);e.slots.default=()=>s},ko=(e,t,s)=>{for(const n in t)(s||!Rn(n))&&(e[n]=t[n])},yl=(e,t,s)=>{const n=e.slots=mo();if(e.vnode.shapeFlag&32){const i=t._;i?(ko(n,t,s),s&&Pi(n,"_",i,!0)):bo(t,n)}else t&&wo(e,t)},_l=(e,t,s)=>{const{vnode:n,slots:i}=e;let o=!0,r=pe;if(n.shapeFlag&32){const l=t._;l?s&&l===1?o=!1:ko(i,t,s):(o=!t.$stable,bo(t,i)),r=t}else t&&(wo(e,t),r={default:1});if(o)for(const l in i)!Rn(l)&&r[l]==null&&delete i[l]},Ue=Sl;function bl(e){return wl(e)}function wl(e,t){const s=Ds();s.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:r,createText:l,createComment:c,setText:d,setElementText:u,parentNode:g,nextSibling:S,setScopeId:R=at,insertStaticContent:G}=e,V=(a,f,m,x=null,y=null,_=null,C=void 0,O=null,I=!!f.dynamicChildren)=>{if(a===f)return;a&&!Kt(a,f)&&(x=T(a),Re(a,y,_,!0),a=null),f.patchFlag===-2&&(I=!1,f.dynamicChildren=null);const{type:k,ref:U,shapeFlag:F}=f;switch(k){case Ys:le(a,f,m,x);break;case ct:ee(a,f,m,x);break;case _s:a==null&&Z(f,m,x,C);break;case q:we(a,f,m,x,y,_,C,O,I);break;default:F&1?Y(a,f,m,x,y,_,C,O,I):F&6?ve(a,f,m,x,y,_,C,O,I):(F&64||F&128)&&k.process(a,f,m,x,y,_,C,O,I,ye)}U!=null&&y?Zt(U,a&&a.ref,_,f||a,!f):U==null&&a&&a.ref!=null&&Zt(a.ref,null,_,a,!0)},le=(a,f,m,x)=>{if(a==null)n(f.el=l(f.children),m,x);else{const y=f.el=a.el;f.children!==a.children&&d(y,f.children)}},ee=(a,f,m,x)=>{a==null?n(f.el=c(f.children||""),m,x):f.el=a.el},Z=(a,f,m,x)=>{[a.el,a.anchor]=G(a.children,f,m,x,a.el,a.anchor)},B=({el:a,anchor:f},m,x)=>{let y;for(;a&&a!==f;)y=S(a),n(a,m,x),a=y;n(f,m,x)},N=({el:a,anchor:f})=>{let m;for(;a&&a!==f;)m=S(a),i(a),a=m;i(f)},Y=(a,f,m,x,y,_,C,O,I)=>{if(f.type==="svg"?C="svg":f.type==="math"&&(C="mathml"),a==null)J(f,m,x,y,_,C,O,I);else{const k=a.el&&a.el._isVueCE?a.el:null;try{k&&k._beginPatch(),Fe(a,f,y,_,C,O,I)}finally{k&&k._endPatch()}}},J=(a,f,m,x,y,_,C,O)=>{let I,k;const{props:U,shapeFlag:F,transition:j,dirs:K}=a;if(I=a.el=r(a.type,_,U&&U.is,U),F&8?u(I,a.children):F&16&&Me(a.children,I,null,x,y,en(a,_),C,O),K&&Mt(a,null,x,"created"),Ae(I,a,a.scopeId,C,x),U){for(const fe in U)fe!=="value"&&!$t(fe)&&o(I,fe,null,U[fe],_,x);"value"in U&&o(I,"value",null,U.value,_),(k=U.onVnodeBeforeMount)&&st(k,x,a)}K&&Mt(a,null,x,"beforeMount");const te=kl(y,j);te&&j.beforeEnter(I),n(I,f,m),((k=U&&U.onVnodeMounted)||te||K)&&Ue(()=>{k&&st(k,x,a),te&&j.enter(I),K&&Mt(a,null,x,"mounted")},y)},Ae=(a,f,m,x,y)=>{if(m&&R(a,m),x)for(let _=0;_<x.length;_++)R(a,x[_]);if(y){let _=y.subTree;if(f===_||Eo(_.type)&&(_.ssContent===f||_.ssFallback===f)){const C=y.vnode;Ae(a,C,C.scopeId,C.slotScopeIds,y.parent)}}},Me=(a,f,m,x,y,_,C,O,I=0)=>{for(let k=I;k<a.length;k++){const U=a[k]=O?dt(a[k]):ot(a[k]);V(null,U,f,m,x,y,_,C,O)}},Fe=(a,f,m,x,y,_,C)=>{const O=f.el=a.el;let{patchFlag:I,dynamicChildren:k,dirs:U}=f;I|=a.patchFlag&16;const F=a.props||pe,j=f.props||pe;let K;if(m&&Et(m,!1),(K=j.onVnodeBeforeUpdate)&&st(K,m,f,a),U&&Mt(f,a,m,"beforeUpdate"),m&&Et(m,!0),k&&(!a.dynamicChildren||a.dynamicChildren.length!==k.length)&&(I=0,C=!1,k=null),(F.innerHTML&&j.innerHTML==null||F.textContent&&j.textContent==null)&&u(O,""),k?Q(a.dynamicChildren,k,O,m,x,en(f,y),_):C||v(a,f,O,null,m,x,en(f,y),_,!1),I>0){if(I&16)me(O,F,j,m,y);else if(I&2&&F.class!==j.class&&o(O,"class",null,j.class,y),I&4&&o(O,"style",F.style,j.style,y),I&8){const te=f.dynamicProps;for(let fe=0;fe<te.length;fe++){const ce=te[fe],Se=F[ce],Ee=j[ce];(Ee!==Se||ce==="value")&&o(O,ce,Se,Ee,y,m)}}I&1&&a.children!==f.children&&u(O,f.children)}else!C&&k==null&&me(O,F,j,m,y);((K=j.onVnodeUpdated)||U)&&Ue(()=>{K&&st(K,m,f,a),U&&Mt(f,a,m,"updated")},x)},Q=(a,f,m,x,y,_,C)=>{for(let O=0;O<f.length;O++){const I=a[O],k=f[O],U=I.el&&(I.type===q||!Kt(I,k)||I.shapeFlag&198)?g(I.el):m;V(I,k,U,null,x,y,_,C,!0)}},me=(a,f,m,x,y)=>{if(f!==m){if(f!==pe)for(const _ in f)!$t(_)&&!(_ in m)&&o(a,_,f[_],null,y,x);for(const _ in m){if($t(_))continue;const C=m[_],O=f[_];C!==O&&_!=="value"&&o(a,_,O,C,y,x)}"value"in m&&o(a,"value",f.value,m.value,y)}},we=(a,f,m,x,y,_,C,O,I)=>{const k=f.el=a?a.el:l(""),U=f.anchor=a?a.anchor:l("");let{patchFlag:F,dynamicChildren:j,slotScopeIds:K}=f;K&&(O=O?O.concat(K):K),a==null?(n(k,m,x),n(U,m,x),Me(f.children||[],m,U,y,_,C,O,I)):F>0&&F&64&&j&&a.dynamicChildren&&a.dynamicChildren.length===j.length?(Q(a.dynamicChildren,j,m,y,_,C,O),(f.key!=null||y&&f===y.subTree)&&xo(a,f,!0)):v(a,f,m,U,y,_,C,O,I)},ve=(a,f,m,x,y,_,C,O,I)=>{f.slotScopeIds=O,a==null?f.shapeFlag&512?y.ctx.activate(f,m,x,C,I):Ye(f,m,x,y,_,C,I):bt(a,f,I)},Ye=(a,f,m,x,y,_,C)=>{const O=a.component=Pl(a,x,y);if(Fn(a)&&(O.ctx.renderer=ye),Fl(O,!1,C),O.asyncDep){if(y&&y.registerDep(O,xe,C),!a.el){const I=O.subTree=ne(ct);ee(null,I,f,m),a.placeholder=I.el}}else xe(O,a,f,m,y,_,C)},bt=(a,f,m)=>{const x=f.component=a.component;if(hl(a,f,m))if(x.asyncDep&&!x.asyncResolved){w(x,f,m);return}else x.next=f,x.update();else f.el=a.el,x.vnode=f},xe=(a,f,m,x,y,_,C)=>{const O=()=>{if(a.isMounted){let{next:F,bu:j,u:K,parent:te,vnode:fe}=a;{const et=So(a);if(et){F&&(F.el=fe.el,w(a,F,C)),et.asyncDep.then(()=>{Ue(()=>{a.isUnmounted||k()},y)});return}}let ce=F,Se;Et(a,!1),F?(F.el=fe.el,w(a,F,C)):F=fe,j&&Qs(j),(Se=F.props&&F.props.onVnodeBeforeUpdate)&&st(Se,te,F,fe),Et(a,!0);const Ee=ni(a),Ze=a.subTree;a.subTree=Ee,V(Ze,Ee,g(Ze.el),T(Ze),a,y,_),F.el=Ee.el,ce===null&&pl(a,Ee.el),K&&Ue(K,y),(Se=F.props&&F.props.onVnodeUpdated)&&Ue(()=>st(Se,te,F,fe),y)}else{let F;const{el:j,props:K}=f,{bm:te,m:fe,parent:ce,root:Se,type:Ee}=a,Ze=Lt(f);Et(a,!1),te&&Qs(te),!Ze&&(F=K&&K.onVnodeBeforeMount)&&st(F,ce,f),Et(a,!0);{Se.ce&&Se.ce._hasShadowRoot()&&Se.ce._injectChildStyle(Ee,a.parent?a.parent.type:void 0);const et=a.subTree=ni(a);V(null,et,m,x,a,y,_),f.el=et.el}if(fe&&Ue(fe,y),!Ze&&(F=K&&K.onVnodeMounted)){const et=f;Ue(()=>st(F,ce,et),y)}(f.shapeFlag&256||ce&&Lt(ce.vnode)&&ce.vnode.shapeFlag&256)&&a.a&&Ue(a.a,y),a.isMounted=!0,f=m=x=null}};a.scope.on();const I=a.effect=new Bi(O);a.scope.off();const k=a.update=I.run.bind(I),U=a.job=I.runIfDirty.bind(I);U.i=a,U.id=a.uid,I.scheduler=()=>On(U),Et(a,!0),k()},w=(a,f,m)=>{f.component=a;const x=a.vnode.props;a.vnode=f,a.next=null,gl(a,f.props,x,m),_l(a,f.children,m),At(),qn(a),gt()},v=(a,f,m,x,y,_,C,O,I=!1)=>{const k=a&&a.children,U=a?a.shapeFlag:0,F=f.children,{patchFlag:j,shapeFlag:K}=f;if(j>0){if(j&128){W(k,F,m,x,y,_,C,O,I);return}else if(j&256){p(k,F,m,x,y,_,C,O,I);return}}K&8?(U&16&&M(k,y,_),F!==k&&u(m,F)):U&16?K&16?W(k,F,m,x,y,_,C,O,I):M(k,y,_,!0):(U&8&&u(m,""),K&16&&Me(F,m,x,y,_,C,O,I))},p=(a,f,m,x,y,_,C,O,I)=>{a=a||Bt,f=f||Bt;const k=a.length,U=f.length,F=Math.min(k,U);let j;for(j=0;j<F;j++){const K=f[j]=I?dt(f[j]):ot(f[j]);V(a[j],K,m,null,y,_,C,O,I)}k>U?M(a,y,_,!0,!1,F):Me(f,m,x,y,_,C,O,I,F)},W=(a,f,m,x,y,_,C,O,I)=>{let k=0;const U=f.length;let F=a.length-1,j=U-1;for(;k<=F&&k<=j;){const K=a[k],te=f[k]=I?dt(f[k]):ot(f[k]);if(Kt(K,te))V(K,te,m,null,y,_,C,O,I);else break;k++}for(;k<=F&&k<=j;){const K=a[F],te=f[j]=I?dt(f[j]):ot(f[j]);if(Kt(K,te))V(K,te,m,null,y,_,C,O,I);else break;F--,j--}if(k>F){if(k<=j){const K=j+1,te=K<U?f[K].el:x;for(;k<=j;)V(null,f[k]=I?dt(f[k]):ot(f[k]),m,te,y,_,C,O,I),k++}}else if(k>j)for(;k<=F;)Re(a[k],y,_,!0),k++;else{const K=k,te=k,fe=new Map;for(k=te;k<=j;k++){const Ge=f[k]=I?dt(f[k]):ot(f[k]);Ge.key!=null&&fe.set(Ge.key,k)}let ce,Se=0;const Ee=j-te+1;let Ze=!1,et=0;const Wt=new Array(Ee);for(k=0;k<Ee;k++)Wt[k]=0;for(k=K;k<=F;k++){const Ge=a[k];if(Se>=Ee){Re(Ge,y,_,!0);continue}let tt;if(Ge.key!=null)tt=fe.get(Ge.key);else for(ce=te;ce<=j;ce++)if(Wt[ce-te]===0&&Kt(Ge,f[ce])){tt=ce;break}tt===void 0?Re(Ge,y,_,!0):(Wt[tt-te]=k+1,tt>=et?et=tt:Ze=!0,V(Ge,f[tt],m,null,y,_,C,O,I),Se++)}const Gn=Ze?xl(Wt):Bt;for(ce=Gn.length-1,k=Ee-1;k>=0;k--){const Ge=te+k,tt=f[Ge],Vn=f[Ge+1],Wn=Ge+1<U?Vn.el||Mo(Vn):x;Wt[k]===0?V(null,tt,m,Wn,y,_,C,O,I):Ze&&(ce<0||k!==Gn[ce]?ue(tt,m,Wn,2):ce--)}}},ue=(a,f,m,x,y=null)=>{const{el:_,type:C,transition:O,children:I,shapeFlag:k}=a;if(k&6){ue(a.component.subTree,f,m,x);return}if(k&128){a.suspense.move(f,m,x);return}if(k&64){C.move(a,f,m,ye);return}if(C===q){n(_,f,m);for(let F=0;F<I.length;F++)ue(I[F],f,m,x);n(a.anchor,f,m);return}if(C===_s){B(a,f,m);return}if(x!==2&&k&1&&O)if(x===0)O.persisted&&!_[Js]?n(_,f,m):(O.beforeEnter(_),n(_,f,m),Ue(()=>O.enter(_),y));else{const{leave:F,delayLeave:j,afterLeave:K}=O,te=()=>{a.ctx.isUnmounted?i(_):n(_,f,m)},fe=()=>{const ce=_._isLeaving||!!_[Js];_._isLeaving&&_[Js](!0),O.persisted&&!ce?te():F(_,()=>{te(),K&&K()})};j?j(_,te,fe):fe()}else n(_,f,m)},Re=(a,f,m,x=!1,y=!1)=>{const{type:_,props:C,ref:O,children:I,dynamicChildren:k,shapeFlag:U,patchFlag:F,dirs:j,cacheIndex:K,memo:te}=a;if(F===-2&&(y=!1),O!=null&&(At(),Zt(O,null,m,a,!0),gt()),K!=null&&(f.renderCache[K]=void 0),U&256){f.ctx.deactivate(a);return}const fe=U&1&&j,ce=!Lt(a);let Se;if(ce&&(Se=C&&C.onVnodeBeforeUnmount)&&st(Se,f,a),U&6)E(a.component,m,x);else{if(U&128){a.suspense.unmount(m,x);return}fe&&Mt(a,null,f,"beforeUnmount"),U&64?a.type.remove(a,f,m,ye,x):k&&!k.hasOnce&&(_!==q||F>0&&F&64)?M(k,f,m,!1,!0):(_===q&&F&384||!y&&U&16)&&M(I,f,m),x&&hs(a)}const Ee=te!=null&&K==null;(ce&&(Se=C&&C.onVnodeUnmounted)||fe||Ee)&&Ue(()=>{Se&&st(Se,f,a),fe&&Mt(a,null,f,"unmounted"),Ee&&(a.el=null)},m)},hs=a=>{const{type:f,el:m,anchor:x,transition:y}=a;if(f===q){ps(m,x);return}if(f===_s){N(a);return}const _=()=>{i(m),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(a.shapeFlag&1&&y&&!y.persisted){const{leave:C,delayLeave:O}=y,I=()=>C(m,_);O?O(a.el,_,I):I()}else _()},ps=(a,f)=>{let m;for(;a!==f;)m=S(a),i(a),a=m;i(f)},E=(a,f,m)=>{const{bum:x,scope:y,job:_,subTree:C,um:O,m:I,a:k}=a;ri(I),ri(k),x&&Qs(x),y.stop(),_&&(_.flags|=8,Re(C,a,f,m)),O&&Ue(O,f),Ue(()=>{a.isUnmounted=!0},f)},M=(a,f,m,x=!1,y=!1,_=0)=>{for(let C=_;C<a.length;C++)Re(a[C],f,m,x,y)},T=a=>{if(a.shapeFlag&6)return T(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const f=S(a.anchor||a.el),m=f&&f[Hr];return m?S(m):f};let D=!1;const $=(a,f,m)=>{let x;a==null?f._vnode&&(Re(f._vnode,null,null,!0),x=f._vnode.component):V(f._vnode||null,a,f,null,null,null,m),f._vnode=a,D||(D=!0,qn(x),to(),D=!1)},ye={p:V,um:Re,m:ue,r:hs,mt:Ye,mc:Me,pc:v,pbc:Q,n:T,o:e};return{render:$,hydrate:void 0,createApp:ll($)}}function en({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 Et({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function kl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function xo(e,t,s=!1){const n=e.children,i=t.children;if(z(n)&&z(i))for(let o=0;o<n.length;o++){const r=n[o];let l=i[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[o]=dt(i[o]),l.el=r.el),!s&&l.patchFlag!==-2&&xo(r,l)),l.type===Ys&&(l.patchFlag===-1&&(l=i[o]=dt(l)),l.el=r.el),l.type===ct&&!l.el&&(l.el=r.el)}}function xl(e){const t=e.slice(),s=[0];let n,i,o,r,l;const c=e.length;for(n=0;n<c;n++){const d=e[n];if(d!==0){if(i=s[s.length-1],e[i]<d){t[n]=i,s.push(n);continue}for(o=0,r=s.length-1;o<r;)l=o+r>>1,e[s[l]]<d?o=l+1:r=l;d<e[s[o]]&&(o>0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=t[r];return s}function So(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:So(t)}function ri(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Mo(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Mo(t.subTree):null}const Eo=e=>e.__isSuspense;function Sl(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):Pr(e)}const q=Symbol.for("v-fgt"),Ys=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),_s=Symbol.for("v-stc"),pt=[];let We=null;function A(e=!1){pt.push(We=e?null:[])}function Dn(){pt.pop(),We=pt[pt.length-1]||null}let is=1;function Cs(e,t=!1){is+=e,e<0&&We&&t&&(We.hasOnce=!0)}function Co(e){return e.dynamicChildren=is>0?We||Bt:null,Dn(),is>0&&We&&We.push(e),e}function b(e,t,s,n,i,o){return Co(h(e,t,s,n,i,o,!0))}function ke(e,t,s,n,i){return Co(ne(e,t,s,n,i,!0))}function os(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const Io=({key:e})=>e??null,bs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ge(e)||Ne(e)||X(e)?{i:je,r:e,k:t,f:!!s}:e:null);function h(e,t=null,s=null,n=0,i=null,o=e===q?0:1,r=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Io(t),ref:t&&bs(t),scopeId:no,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:je};return l?(Is(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=ge(s)?8:16),is>0&&!r&&We&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&We.push(c),c}const ne=Ml;function Ml(e,t=null,s=null,n=0,i=null,o=!1){if((!e||e===ao)&&(e=ct),os(e)){const l=Vt(e,t,!0);return s&&Is(l,s),is>0&&!o&&We&&(l.shapeFlag&6?We[We.indexOf(e)]=l:We.push(l)),l.patchFlag=-2,l}if(jl(e)&&(e=e.__vccOpts),t){t=El(t);let{class:l,style:c}=t;l&&!ge(l)&&(t.class=he(l)),ae(c)&&(Tn(c)&&!z(c)&&(c=Te({},c)),t.style=De(c))}const r=ge(e)?1:Eo(e)?128:Ls(e)?64:ae(e)?4:X(e)?2:0;return h(e,t,s,n,i,r,o,!0)}function El(e){return e?Tn(e)||vo(e)?Te({},e):e:null}function Vt(e,t,s=!1,n=!1){const{props:i,ref:o,patchFlag:r,children:l,transition:c}=e,d=t?Il(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Io(d),ref:t&&t.ref?s&&o?z(o)?o.concat(bs(t)):[o,bs(t)]:bs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==q?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vt(e.ssContent),ssFallback:e.ssFallback&&Vt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Nn(u,c.clone(u)),u}function lt(e=" ",t=0){return ne(Ys,null,e,t)}function Cl(e,t){const s=ne(_s,null,e);return s.staticCount=t,s}function H(e="",t=!1){return t?(A(),ke(ct,null,e)):ne(ct,null,e)}function ot(e){return e==null||typeof e=="boolean"?ne(ct):z(e)?ne(q,null,e.slice()):os(e)?dt(e):ne(Ys,null,String(e))}function dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vt(e)}function Is(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(z(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Is(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!vo(t)?t._ctx=je:i===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(X(t)){if(n&65){Is(e,{default:t});return}t={default:t,_ctx:je},s=32}else t=String(t),n&64?(s=16,t=[lt(t)]):s=8;e.children=t,e.shapeFlag|=s}function Il(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=he([t.class,n.class]));else if(i==="style")t.style=De([t.style,n.style]);else if(Ns(i)){const o=t[i],r=n[i];r&&o!==r&&!(z(o)&&o.includes(r))?t[i]=o?[].concat(o,r):r:r==null&&o==null&&!Fs(i)&&(t[i]=r)}else i!==""&&(t[i]=n[i])}return t}function st(e,t,s,n=null){Je(e,t,7,[s,n])}const Tl=ho();let Ol=0;function Pl(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||Tl,o={uid:Ol++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new sr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_o(n,i),emitsOptions:po(n,i),emit:null,emitted:null,propsDefaults:pe,inheritAttrs:n.inheritAttrs,ctx:pe,data:pe,props:pe,attrs:pe,slots:pe,refs:pe,setupState:pe,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=cl.bind(null,o),e.ce&&e.ce(o),o}let Pe=null;const Nl=()=>Pe||je;let Ts,rs;{const e=Ds(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Ts=t("__VUE_INSTANCE_SETTERS__",s=>Pe=s),rs=t("__VUE_SSR_SETTERS__",s=>ls=s)}const fs=e=>{const t=Pe;return Ts(e),e.scope.on(),()=>{e.scope.off(),Ts(t)}},li=()=>{Pe&&Pe.scope.off(),Ts(null)};function To(e){return e.vnode.shapeFlag&4}let ls=!1;function Fl(e,t=!1,s=!1){t&&rs(t);const{props:n,children:i}=e.vnode,o=To(e);Al(e,n,o,t),yl(e,i,s||t);const r=o?Rl(e,t):void 0;return t&&rs(!1),r}function Rl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,el);const{setup:n}=s;if(n){At();const i=e.setupContext=n.length>1?Dl(e):null,o=fs(e),r=cs(n,e,0,[e.props,i]),l=Ii(r);if(gt(),o(),(l||e.sp)&&!Lt(e)&&ro(e),l){if(r.then(li,li),t)return r.then(c=>{rs(!0);try{ai(e,c,t)}finally{rs(!1)}}).catch(c=>{js(c,e,0)});e.asyncDep=r}else ai(e,r)}else Oo(e)}function ai(e,t,s){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=Ji(t)),Oo(e)}function Oo(e,t,s){const n=e.type;e.render||(e.render=n.render||at);{const i=fs(e);At();try{tl(e)}finally{gt(),i()}}}const Bl={get(e,t){return Oe(e,"get",""),e[t]}};function Dl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Bl),slots:e.slots,emit:e.emit,expose:t}}function Hn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ji(wr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in es)return es[s](e)},has(t,s){return s in t||s in es}})):e.proxy}function Hl(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function jl(e){return X(e)&&"__vccOpts"in e}const se=(e,t)=>Mr(e,t,ls);function pn(e,t,s){try{Cs(-1);const n=arguments.length;return n===2?ae(t)&&!z(t)?os(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&os(s)&&(s=[s]),ne(e,t,s))}finally{Cs(1)}}const Ll="3.5.41";let An;const ci=typeof window<"u"&&window.trustedTypes;if(ci)try{An=ci.createPolicy("vue",{createHTML:e=>e})}catch{}const Po=An?e=>An.createHTML(e):e=>e,Ul="http://www.w3.org/2000/svg",Gl="http://www.w3.org/1998/Math/MathML",ft=typeof document<"u"?document:null,ui=ft&&ft.createElement("template"),Vl={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 i=t==="svg"?ft.createElementNS(Ul,e):t==="mathml"?ft.createElementNS(Gl,e):s?ft.createElement(e,{is:s}):ft.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ft.createTextNode(e),createComment:e=>ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,o){const r=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{ui.innerHTML=Po(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=ui.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Wl=Symbol("_vtc");function Yl(e,t,s){const n=e[Wl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const fi=Symbol("_vod"),Kl=Symbol("_vsh"),Ql=Symbol(""),zl=/(?:^|;)\s*display\s*:/;function ql(e,t,s){const n=e.style,i=ge(s);let o=!1;if(s&&!i){if(t)if(ge(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();s[l]==null&&qt(n,l,"")}else for(const r in t)s[r]==null&&qt(n,r,"");for(const r in s){r==="display"&&(o=!0);const l=s[r];l!=null?Xl(e,r,!ge(t)&&t?t[r]:void 0,l)||qt(n,r,l):qt(n,r,"")}}else if(i){if(t!==s){const r=n[Ql];r&&(s+=";"+r),n.cssText=s,o=zl.test(s)}}else t&&e.removeAttribute("style");fi in e&&(e[fi]=o?n.display:"",e[Kl]&&(n.display="none"))}const di=/\s*!important$/;function qt(e,t,s){if(z(s))s.forEach(n=>qt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=$l(e,t);di.test(s)?e.setProperty(Pt(n),s.replace(di,""),"important"):e[n]=s}}const hi=["Webkit","Moz","ms"],tn={};function $l(e,t){const s=tn[t];if(s)return s;let n=Le(t);if(n!=="filter"&&n in e)return tn[t]=n;n=Bs(n);for(let i=0;i<hi.length;i++){const o=hi[i]+n;if(o in e)return tn[t]=o}return t}function Xl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ge(n)&&s===n}const pi="http://www.w3.org/1999/xlink";function Ai(e,t,s,n,i,o=er(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(pi,t.slice(6,t.length)):e.setAttributeNS(pi,t,s):s==null||o&&!Ni(s)?e.removeAttribute(t):e.setAttribute(t,o?"":$e(s)?String(s):s)}function gi(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Po(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Ni(s):s==null&&l==="string"?(s="",r=!0):l==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(i||t)}function Jl(e,t,s,n){e.addEventListener(t,s,n)}function Zl(e,t,s,n){e.removeEventListener(t,s,n)}const mi=Symbol("_vei");function ea(e,t,s,n,i=null){const o=e[mi]||(e[mi]={}),r=o[t];if(n&&r)r.value=n;else{const[l,c]=na(t);if(n){const d=o[t]=ra(n,i);Jl(e,l,d,c)}else r&&(Zl(e,l,r,c),o[t]=void 0)}}const ta=/(Once|Passive|Capture)$/,sa=/^on:?(?:Once|Passive|Capture)$/;function na(e){let t,s;for(;(s=e.match(ta))&&!sa.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let sn=0;const ia=Promise.resolve(),oa=()=>sn||(ia.then(()=>sn=0),sn=Date.now());function ra(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const i=s.value;if(z(i)){const o=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{o.call(n),n._stopped=!0};const r=i.slice(),l=[n];for(let c=0;c<r.length&&!n._stopped;c++){const d=r[c];d&&Je(d,t,5,l)}}else Je(i,t,5,[n])};return s.value=e,s.attached=oa(),s}const vi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,la=(e,t,s,n,i,o)=>{const r=i==="svg";t==="class"?Yl(e,n,r):t==="style"?ql(e,s,n):Ns(t)?Fs(t)||ea(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):aa(e,t,n,r))?(gi(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ai(e,t,n,r,o,t!=="value")):e._isVueCE&&(ca(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ge(n)))?gi(e,Le(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ai(e,t,n,r))};function aa(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&vi(t)&&X(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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return vi(t)&&ge(s)?!1:t in e}function ca(e,t){const s=e._def.props;if(!s)return!1;const n=Le(t);return Array.isArray(s)?s.some(i=>Le(i)===n):Object.keys(s).some(i=>Le(i)===n)}const ua=Te({patchProp:la},Vl);let yi;function fa(){return yi||(yi=bl(ua))}const da=((...e)=>{const t=fa().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=pa(n);if(!i)return;const o=t._component;!X(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,ha(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function ha(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pa(e){return ge(e)?document.querySelector(e):e}function No(){const e=window.location.hash.replace(/^#\/?/,"").split("/").filter(Boolean).map(decodeURIComponent);return{adwId:e[0]??null,phaseId:e[1]??null}}const Fo=Ie(No());window.addEventListener("hashchange",()=>{Fo.value=No()});function Aa(){return Fo}const gn=Ie(null);function Os(e,t){let s="#/";return e&&(s+=encodeURIComponent(e)),e&&t&&(s+=`/${encodeURIComponent(t)}`),s}function _i(e,t){window.location.hash=Os(e,t)}async function ds(e){const t=await fetch(e);if(!t.ok)throw new Error(`GET ${e} → ${t.status}`);return t.json()}function ga(){return ds("/api/sessions")}async function ma(e){const t=await ds(`/api/sessions/${encodeURIComponent(e)}`);return{session:t.session,usage:t.usage??{read:0,written:0},phases:t.phases??[],agents:t.agents??[]}}async function Ro(e,t,s=500){const n=await ds(`/api/sessions/${encodeURIComponent(e)}/events?after=${t}&limit=${s}`);if(Array.isArray(n)){const i=n.reduce((o,r)=>Math.max(o,r.rowid),t);return{events:n,cursor:i,has_more:n.length===s}}return{events:n.events??[],cursor:n.cursor??t,has_more:n.has_more??!1}}async function va(e,t=!0){const s=`/api/sessions/${encodeURIComponent(e)}/archive`,n=await fetch(s,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({archived:t})});if(!n.ok)throw new Error(`POST ${s} → ${n.status}`)}async function ya(e,t){const s=await fetch(`/api/sessions/${encodeURIComponent(e)}/agents/${encodeURIComponent(t)}/prompts`);if(s.status===404)return{system:null,user:null};if(!s.ok)throw new Error(`GET prompts → ${s.status}`);const n=await s.json();return{system:n.system??null,user:n.user??null}}function _a(e){return ds(`/api/sessions/${encodeURIComponent(e)}/envelopes`)}function ba(e){return ds(`/api/sessions/${encodeURIComponent(e)}/gates`)}function ie(e){return e?new Date(e).getTime():NaN}function wa(e){if(!Number.isFinite(e)||e<0)return"—";if(e<1e3)return`${(e/1e3).toFixed(2)}s`;const t=e/1e3;if(t<60)return`${t.toFixed(1)}s`;const s=Math.floor(t/60),n=Math.round(t%60);return s<60?`${s}m ${String(n).padStart(2,"0")}s`:`${Math.floor(s/60)}h ${String(s%60).padStart(2,"0")}m`}function ws(e){const t=ie(e);return Number.isFinite(t)?new Date(t).toLocaleTimeString([],{hour12:!1}):"—"}function Bo(e){const t=ie(e);return Number.isFinite(t)?`${new Date(t).toLocaleDateString([],{month:"short",day:"numeric"})} ${ws(e)}`:"—"}function ka(e){return e==null?"—":e<1e3?String(e):e<1e6?`${(e/1e3).toFixed(1)}k`:`${(e/1e6).toFixed(2)}M`}function xa(e){return e==null?"—":e>=1?`$${e.toFixed(2)}`:`$${e.toFixed(4)}`}function Do(e){const t=Math.round(e/1e3);if(t<60)return`${t}s`;const s=Math.floor(t/60);if(s<60){const o=t%60;return o?`${s}m${String(o).padStart(2,"0")}s`:`${s}m`}const n=Math.floor(s/60),i=s%60;return i?`${n}h${String(i).padStart(2,"0")}m`:`${n}h`}const Sa=[1,2,5,10,15,30,60,120,300,600,1200,1800,3600].map(e=>e*1e3);function Ho(e,t=8){const s=Math.max(e,1),n=Sa.find(o=>s/o<=t)??36e5,i=[];for(let o=0;o<=s;o+=n)i.push({pct:o/s*100,label:Do(o)});return i}function jo(e){if(!e)return!0;try{const t=JSON.parse(e);if(t&&typeof t=="object"&&"ok"in t)return t.ok!==!1}catch{}return!0}const Ma={agent_start:"#c89bff",tool_call:"#5ad2dd",handoff:"#94a3ff",agent_end:"#4ade80",error:"#ff6f67",gate_fail:"#ff6f67"};function Ea(e){return e?Ma[e]??null:null}const bi=["#c89bff","#5ad2dd","#94a3ff","#e8b64a","#f2a2c4"];function Lo(e,t,s){return e??t??bi[s%bi.length]??"#c89bff"}function Ft(e,t){const s=/^#?([0-9a-f]{6})$/i.exec(e.trim());if(!s||!s[1])return"transparent";const n=Number.parseInt(s[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${n&255}, ${t})`}function jn(e){if(!e)return null;try{const t=JSON.parse(e);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}return null}function mn(e){const t=jn(e.payload_json);return!t||typeof t.tool!="string"?null:t}function Uo(e){return jn(e.payload_json)}const Ca=["command","cmd","file_path","path","pattern","query","url","prompt","description"],wi=160;function vn(e){const t=e.replaceAll(/\s+/g," ").trim();return t.length>wi?`${t.slice(0,wi)}…`:t}function Ia(e){if(!e)return"";for(const s of Ca){const n=e[s];if(typeof n=="string"&&n.trim()!=="")return vn(n)}const t=[];for(const[s,n]of Object.entries(e))n!=null&&t.push(`${s}=${typeof n=="string"?n:JSON.stringify(n)}`);return vn(t.join(" "))}function yn(e){if(e.type==="tool_call"){const t=mn(e);if(t?.tool){if(e.name?.startsWith(t.tool))return vn(e.name);const n=Ia(t.args);return n?`${t.tool}: ${n}`:t.tool}const s=jn(e.payload_json);if(s&&typeof s.pi_event=="string")return`${e.name??"tool"} ${s.pi_event}`}return e.name??e.type??""}const Ta=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const ki=e=>e==="";const Oa=(...e)=>e.filter((t,s,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===s).join(" ").trim();const xi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Pa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,s,n)=>n?n.toUpperCase():s.toLowerCase());const Na=e=>{const t=Pa(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Qt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const Fa=({name:e,iconNode:t,absoluteStrokeWidth:s,"absolute-stroke-width":n,strokeWidth:i,"stroke-width":o,size:r=Qt.width,color:l=Qt.stroke,...c},{slots:d})=>pn("svg",{...Qt,...c,width:r,height:r,stroke:l,"stroke-width":ki(s)||ki(n)||s===!0||n===!0?Number(i||o||Qt["stroke-width"])*24/Number(r):i||o||Qt["stroke-width"],class:Oa("lucide",c.class,...e?[`lucide-${xi(Na(e))}-icon`,`lucide-${xi(e)}`]:["lucide-icon"]),...!d.default&&!Ta(c)&&{"aria-hidden":"true"}},[...t.map(u=>pn(...u)),...d.default?[d.default()]:[]]);const be=(e,t)=>(s,{slots:n,attrs:i})=>pn(Fa,{...i,...s,iconNode:t,name:e},n);const Ra=be("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);const Ba=be("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);const Da=be("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);const Ha=be("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);const ja=be("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const La=be("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);const Si=be("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Ua=be("coins",[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]);const Ga=be("fingerprint-pattern",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]]);const Va=be("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);const Wa=be("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const Ya=be("messages-square",[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]]);const Ka=be("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);const Qa=be("pen-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);const za=be("receipt",[["path",{d:"M12 17V7",key:"pyj7ub"}],["path",{d:"M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8",key:"1elt7d"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",key:"ycz6yz"}]]);const qa=be("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const $a=be("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);const Go=be("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);const Xa=be("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]);const Ja=be("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);const Za=be("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);const ec=be("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),tc=vt({__name:"StatusChip",props:{status:{}},setup(e){const t={success:ja,fail:ec,running:Wa,queued:Si};return(s,n)=>(A(),b("span",{class:he(["chip",e.status])},[(A(),ke(Vs(t[e.status]??L(Si)),{class:"chip-icon",size:18,"stroke-width":2.5})),lt(" "+P(e.status),1)],2))}}),_t=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},Ln=_t(tc,[["__scopeId","data-v-2a944f45"]]),sc=["title"],nc={class:"stat-value"},ic=vt({__name:"StatChip",props:{kind:{},value:{},compact:{type:Boolean}},setup(e){const t=e,s={cost:La,tokens:Ua,runtime:Ja,read:Ba,written:Qa},n={cost:"Cost — dollars billed for this run, all agents combined.",tokens:"Tokens exchanged (billed) — everything sent or generated, counted once per turn. Each turn re-sends the whole conversation, so this is far larger than the conversation itself: it is spend, not size. The gap between it and read + written is cached context re-read on later turns.",runtime:"Duration — wall-clock from the first phase starting to the last one ending.",read:"Read — raw tokens the models took in: prompts, file contents and tool results, counted the first time they enter the context. Excludes cached re-reads of material already counted here.",written:"Written — tokens the models actually generated. Each one produced exactly once, so this is a true count of output."},i=se(()=>t.kind==="cost"?xa(t.value):t.kind==="runtime"?wa(t.value??NaN):ka(t.value));return(o,r)=>(A(),b("span",{class:he(["stat",{compact:e.compact}]),title:n[e.kind]},[(A(),ke(Vs(s[e.kind]),{class:"stat-icon",size:e.compact?17:19,"stroke-width":2},null,8,["size"])),h("span",nc,P(i.value),1)],10,sc))}}),Ve=_t(ic,[["__scopeId","data-v-fa161459"]]),oc={class:"dots"},rc=["title"],lc={key:0,class:"faint"},ac=vt({__name:"PhaseDots",props:{phases:{}},setup(e){const t=e,s=se(()=>t.phases.toSorted((i,o)=>(i.seq??0)-(o.seq??0))),n={success:"●",running:"◐",queued:"○",fail:"✗"};return(i,o)=>(A(),b("span",oc,[(A(!0),b(q,null,_e(s.value,r=>(A(),b("span",{key:r.phase_id,class:he(["d",r.status]),title:`${r.name} — ${r.status}`},P(n[r.status??""]??"○"),11,rc))),128)),s.value.length?H("",!0):(A(),b("span",lc,"—"))]))}}),cc=_t(ac,[["__scopeId","data-v-14dd8bbd"]]),uc=["href"],fc={class:"card-id"},dc=["title"],hc=["title"],pc={key:0,class:"tl"},Ac={class:"tl-axis"},gc={class:"tl-scale"},mc=["title"],vc={class:"tl-track"},yc=["title"],_c={key:0,class:"tl-more dim"},bc={key:1,class:"tl tl-empty faint"},wc={class:"card-foot"},kc={class:"foot-status"},xc={class:"dim"},Sc={class:"card-stats"},Mc=4,Mi=3,Ec=vt({__name:"SessionCard",props:{session:{},nowMs:{}},emits:["archived"],setup(e,{emit:t}){const s=e,n=t;async function i(B){B.preventDefault(),B.stopPropagation(),n("archived",s.session.adw_id);try{await va(s.session.adw_id)}catch{n("archived","")}}const o=$i([]);let r=0,l=!1,c;function d(){clearInterval(c),c=void 0}async function u(){if(!l){l=!0;try{const B=[];let N;do N=await Ro(s.session.adw_id,r,1e3),r=Math.max(r,N.cursor),B.push(...N.events);while(N.has_more);B.length&&(o.value=[...o.value,...B]),s.session.status!=="running"&&d()}catch{}finally{l=!1}}}Gs(()=>{u(),s.session.status==="running"&&(c=setInterval(()=>{u()},500))}),us(d),jt(()=>s.session.status,B=>{B==="running"&&!c?c=setInterval(()=>{u()},500):B!=="running"&&u()});const g=se(()=>s.session.status==="running"),S=se(()=>{const B=s.session;let N=ie(B.started_at);Number.isFinite(N)||(N=Math.min(...o.value.map(J=>ie(J.started_at)).filter(Number.isFinite))),Number.isFinite(N)||(N=s.nowMs);let Y=g.value?s.nowMs:ie(B.ended_at);return Number.isFinite(Y)||(Y=Math.max(...o.value.map(J=>ie(J.started_at)).filter(Number.isFinite))),Number.isFinite(Y)||(Y=N+1e3),{t0:N,span:Math.max(Y-N,1e3)}}),R=se(()=>Ho(S.value.span,5)),G=se(()=>{const B=[],N=new Map;for(const Q of s.session.phases??[])Q.kind!=="agent"||!Q.owner||(N.set(Q.phase_id,Q.owner),B.includes(Q.owner)||B.push(Q.owner));if(!B.length)return[];const{t0:Y,span:J}=S.value,Ae=new Map(B.map(Q=>[Q,[]]));let Me=null,Fe=-1/0;for(const Q of o.value){const me=Q.phase_id?N.get(Q.phase_id):void 0,we=Ea(Q.type);if(!me||!we)continue;const ve=ie(Q.started_at);if(!Number.isFinite(ve))continue;const Ye={id:Q.event_id,xPct:Math.min(Math.max((ve-Y)/J*100,0),100),color:we,title:`${Q.type} ${yn(Q)} at ${Do(ve-Y)}`,latest:!1};Ae.get(me)?.push(Ye),ve>=Fe&&(Fe=ve,Me=Ye)}return g.value&&Me&&(Me.latest=!0),B.map((Q,me)=>{const we=(s.session.agents??[]).find(ve=>ve.agent===Q);return{owner:Q,color:Lo(we?.color,null,me),title:we?.model?`${Q} ${we.model}`:Q,dots:Ae.get(Q)??[]}})}),V=se(()=>{const B=s.session,N=ie(B.started_at);if(!Number.isFinite(N))return NaN;const Y=g.value?s.nowMs:ie(B.ended_at);return(Number.isFinite(Y)?Y:s.nowMs)-N}),le=se(()=>G.value.length>Mc),ee=se(()=>le.value?G.value.slice(0,Mi):G.value),Z=se(()=>le.value?G.value.length-Mi:0);return(B,N)=>(A(),b("a",{class:he(["card",e.session.status]),href:L(Os)(e.session.adw_id)},[h("button",{class:"card-archive",type:"button",title:"Archive — remove this run from review","aria-label":"Archive run",onClick:i}," × "),h("span",fc,P(e.session.adw_id),1),h("span",{class:"card-adw",title:e.session.adw_name??""},P(e.session.adw_name??"—"),9,dc),h("span",{class:"card-req",title:e.session.request??""},P(e.session.request),9,hc),G.value.length?(A(),b("div",pc,[h("div",Ac,[N[0]||(N[0]=h("span",{class:"tl-gutter"},null,-1)),h("span",gc,[(A(!0),b(q,null,_e(R.value,(Y,J)=>(A(),b("span",{key:J,class:he(["tl-tick",{edge:Y.pct===0}]),style:De({left:`${Y.pct}%`})},P(Y.label),7))),128))])]),(A(!0),b(q,null,_e(ee.value,Y=>(A(),b("div",{key:Y.owner,class:"tl-row"},[h("span",{class:"tl-agent",style:De({color:Y.color}),title:Y.title},P(Y.owner),13,mc),h("span",vc,[(A(!0),b(q,null,_e(Y.dots,J=>(A(),b("span",{key:J.id,class:he(["tl-dot",{latest:J.latest}]),style:De({left:`${J.xPct}%`,background:J.color}),title:J.title},null,14,yc))),128))])]))),128)),Z.value?(A(),b("div",_c,"+"+P(Z.value)+" more agents",1)):H("",!0)])):(A(),b("div",bc,"no agent activity yet")),h("div",wc,[h("span",kc,[ne(Ln,{status:e.session.status??"fail"},null,8,["status"]),ne(cc,{phases:e.session.phases??[]},null,8,["phases"])]),h("span",xc,P(L(Bo)(e.session.started_at)),1)]),h("div",Sc,[ne(Ve,{kind:"cost",value:e.session.total_cost},null,8,["value"]),ne(Ve,{kind:"runtime",value:V.value},null,8,["value"]),ne(Ve,{kind:"tokens",value:e.session.total_tokens},null,8,["value"])])],10,uc))}}),Cc=_t(Ec,[["__scopeId","data-v-4de2ceae"]]),Ic={class:"sessions"},Tc={key:0,class:"error-bar"},Oc={key:1,class:"list-head dim"},Pc={key:2,class:"cards"},Nc={key:3,class:"empty-state"},Fc={key:4,class:"empty-state"},Rc=vt({__name:"SessionsList",setup(e){const t=$i([]),s=Ie(null),n=Ie(!1),i=Ie(Date.now());let o,r=!1;async function l(){if(!r){r=!0;try{t.value=await ga(),i.value=Date.now(),s.value=null,n.value=!0}catch(u){s.value=u instanceof Error?u.message:String(u)}finally{r=!1}}}Gs(()=>{l(),o=setInterval(()=>{l()},500)}),us(()=>clearInterval(o));function c(u){if(!u){l();return}t.value=t.value.filter(g=>g.adw_id!==u)}const d=se(()=>t.value.toSorted((u,g)=>(ie(g.started_at)||0)-(ie(u.started_at)||0)));return(u,g)=>(A(),b("div",Ic,[s.value?(A(),b("div",Tc,"api unreachable — retrying "+P(s.value),1)):H("",!0),d.value.length?(A(),b("div",Oc,P(d.value.length)+" runs",1)):H("",!0),d.value.length?(A(),b("div",Pc,[(A(!0),b(q,null,_e(d.value,S=>(A(),ke(Cc,{key:S.adw_id,session:S,"now-ms":i.value,onArchived:c},null,8,["session","now-ms"]))),128))])):n.value?(A(),b("div",Nc,"no sessions yet — run an ADW to see it here")):s.value?H("",!0):(A(),b("div",Fc,"loading sessions…"))]))}}),Bc=_t(Rc,[["__scopeId","data-v-59eaca8a"]]),Dc="data:image/png;base64,iVBORw0KGgoAAAAN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/cLx79y6DZ79Xza4mAQxiEuH88yOHuNiDgwNvnh3WZ3GYmj1NOVaXIxj+YtrHFubOv7KtWa1BupGwcnv+yXfIwO2z3Fqz8/zueQaeZ+B5Bp5n4HkGnnoG/gXrcEcwdvhKqAAAAABJRU5ErkJggg==",Gc=[[["claude","opus","sonnet","haiku"],Dc],[["gemini"],Hc],[["kimi","moonshot"],jc],[["gpt","openai","codex","o3","o4"],Lc],[["glm","zai","z.ai"],Uc]];function Ps(e){if(!e)return null;const t=e.toLowerCase();for(const[s,n]of Gc)if(s.some(i=>t.includes(i)))return n;return null}function Vo(e){return e?e.split("/").filter(Boolean).at(-1)??e:""}function ze(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}const Vc=/("(?:\\.|[^"\\])*")(\s*:)?|\b(true|false)\b|\b(null)\b|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g;function Un(e){let t="",s=0;for(const n of e.matchAll(Vc)){t+=ze(e.slice(s,n.index));const[i,o,r,l,c,d]=n;o!==void 0?t+=`<span class="${r!==void 0?"j-key":"j-str"}">${ze(o)}</span>${ze(r??"")}`:l!==void 0?t+=`<span class="j-bool">${l}</span>`:c!==void 0?t+='<span class="j-null">null</span>':t+=`<span class="j-num">${ze(d??i)}</span>`,s=(n.index??0)+i.length}return t+=ze(e.slice(s)),t}function nn(e){if(!e)return"";try{return Un(JSON.stringify(JSON.parse(e),null,2))}catch{return ze(e)}}function vs(e){return e.split(/(`[^`\n]+`)/g).map((s,n)=>n%2===1?`<code>${s.slice(1,-1)}</code>`:s.replaceAll(/\*\*([^*\n]+)\*\*/g,"<strong>$1</strong>").replaceAll(/\[([^\]\n]+)\]\((https?:\/\/[^)\s]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')).join("")}function Wc(e){const t=e.replaceAll(`\r
2
- `,`
3
- `).split(`
4
- `),s=[];let n=0;const i=[];function o(){i.length&&(s.push(`<p>${i.map(vs).join(`
5
- `)}</p>`),i.length=0)}for(;n<t.length;){const r=t[n]??"",l=ze(r),c=/^\s*```(\w*)/.exec(r);if(c){o();const S=[];for(n+=1;n<t.length&&!/^\s*```/.test(t[n]??"");)S.push(t[n]??""),n+=1;n+=1;const R=S.join(`
6
- `),G=(c[1]??"").toLowerCase()==="json"?Un(R):ze(R);s.push(`<pre class="md-code"><code>${G}</code></pre>`);continue}const d=/^(#{1,4})\s+(.*)$/.exec(r);if(d?.[1]&&d[2]!==void 0){o();const S=d[1].length;s.push(`<h${S}>${vs(ze(d[2]))}</h${S}>`),n+=1;continue}if(/^\s*(---+|\*\*\*+)\s*$/.test(r)){o(),s.push("<hr>"),n+=1;continue}if(/^\s*&gt;\s?/.test(l)){o();const S=[];for(;n<t.length&&/^\s*>\s?/.test(t[n]??"");)S.push(vs(ze((t[n]??"").replace(/^\s*>\s?/,"")))),n+=1;s.push(`<blockquote>${S.join(`
7
- `)}</blockquote>`);continue}const u=/^\s*[-*]\s+/.test(r),g=/^\s*\d+\.\s+/.test(r);if(u||g){o();const S=u?"ul":"ol",R=u?/^\s*[-*]\s+/:/^\s*\d+\.\s+/,G=[];for(;n<t.length&&R.test(t[n]??"");)G.push(`<li>${vs(ze((t[n]??"").replace(R,"")))}</li>`),n+=1;s.push(`<${S}>${G.join("")}</${S}>`);continue}if(r.trim()===""){o(),n+=1;continue}i.push(l),n+=1}return o(),s.join(`
8
- `)}const Yc={class:"dsec"},Kc={class:"chev"},Qc={class:"dsec-title"},zc={key:1,class:"dsec-count dim"},qc={key:0,class:"dsec-body"},$c=vt({__name:"DetailSection",props:{title:{},icon:{},count:{},open:{type:Boolean}},emits:["toggle"],setup(e){return(t,s)=>(A(),b("section",Yc,[h("button",{class:"dsec-head",onClick:s[0]||(s[0]=n=>t.$emit("toggle"))},[h("span",Kc,P(e.open?"▾":"▸"),1),e.icon?(A(),ke(Vs(e.icon),{key:0,class:"dsec-icon",size:19,"stroke-width":2})):H("",!0),h("span",Qc,P(e.title),1),e.count!=null?(A(),b("span",zc,"("+P(e.count)+")",1)):H("",!0)]),e.open?(A(),b("div",qc,[Zr(t.$slots,"default",{},void 0)])):H("",!0)]))}}),Ct=_t($c,[["__scopeId","data-v-ab91d33b"]]),Xc={class:"detail"},Jc={class:"d-head"},Zc={class:"d-main"},eu={class:"d-name"},tu={class:"d-tags"},su={class:"tag"},nu={class:"tag-v"},iu={class:"tag"},ou={class:"tag-v"},ru={class:"tag"},lu={class:"tag-v"},au={key:0,class:"error-bar d-error"},cu={class:"d-grid"},uu={class:"d-col"},fu={class:"d-request"},du={class:"cfg"},hu={key:0,class:"cfg-row"},pu={class:"cfg-chip"},Au={key:1,class:"cfg-row"},gu=["title"],mu=["src"],vu={key:2,class:"cfg-row"},yu={class:"cfg-chip"},_u={key:3,class:"cfg-row"},bu={key:0,class:"cfg-v"},wu={key:1,class:"cfg-chips"},ku={key:4,class:"cfg-row"},xu={key:0,class:"cfg-v dim"},Su={key:1,class:"cfg-chips"},Mu={key:5,class:"cfg-row"},Eu={class:"cfg-v"},Cu={key:6,class:"cfg-row"},Iu={class:"cfg-chip"},Tu={class:"d-desc"},Ou={key:0,class:"faint"},Pu={key:1,class:"faint"},Nu={key:0,class:"faint"},Fu=["onClick"],Ru={class:"chev"},Bu={class:"prompt-title"},Du={class:"dim"},Hu={key:0,class:"prompt-body"},ju={class:"prompt-tools"},Lu=["onClick"],Uu=["onClick"],Gu={key:0,class:"prompt-raw"},Vu=["innerHTML"],Wu={key:0,class:"faint"},Yu=["onClick"],Ku={class:"chev"},Qu={class:"gate-mark"},zu={class:"gate-name"},qu={class:"tag-v"},$u={class:"tag"},Xu={class:"tag-v"},Ju={class:"dim gate-time"},Zu={key:0,class:"gate-checks"},ef={key:0,class:"faint"},tf={class:"check-mark"},sf={class:"check-item"},nf={key:0,class:"check-note dim"},of={key:1,class:"check-note-block"},rf={key:1,class:"violations"},lf={class:"gate-line"},af={class:"gate-mark"},cf={class:"gate-name"},uf={class:"tag"},ff={class:"tag-v"},df={class:"dim gate-time"},hf={key:0,class:"violations"},pf={class:"usage"},Af=["title"],gf={class:"u-k"},mf={class:"u-n"},vf={class:"u-c"},yf={key:0,class:"faint u-note"},_f={key:0,class:"faint"},bf={class:"output-line"},wf={class:"output-type"},kf={class:"tag"},xf={class:"tag-v"},Sf={class:"tag"},Mf={class:"tag-v"},Ef=["innerHTML"],Cf={class:"d-col"},If={key:0,class:"faint"},Tf=["onClick"],Of={class:"e-time dim"},Pf=["title"],Nf={class:"e-extra"},Ff={key:0,class:"payload-panel"},Rf={class:"p-meta"},Bf={class:"p-tool"},Df={key:0,class:"t-red"},Hf=["innerHTML"],jf={class:"p-pre"},Lf=["innerHTML"],Uf=["innerHTML"],Gf={key:3,class:"faint"},Vf=vt({__name:"PhaseDetail",props:{phase:{},events:{},envelopes:{},gates:{}},emits:["close"],setup(e){const t=e,s=se(()=>t.events.filter(w=>w.phase_id===t.phase.phase_id).sort((w,v)=>w.rowid-v.rowid)),n=se(()=>t.gates.filter(w=>w.phase_id===t.phase.phase_id).sort((w,v)=>(w.attempt??0)-(v.attempt??0)||w.id-v.id)),i=se(()=>t.envelopes.filter(w=>w.phase_id===t.phase.phase_id).sort((w,v)=>(w.attempt??0)-(v.attempt??0))),o=se(()=>{if(t.phase.kind!=="agent")return null;const w=s.value.find(v=>v.type==="agent_start");return w?Uo(w):null}),r=se(()=>{if(t.phase.kind!=="agent")return null;const w=s.value.find(ue=>ue.type==="agent_end");if(!w)return null;let v={};try{v=JSON.parse(w.payload_json??"{}")}catch{}const p=v.usage;if(!p)return{partial:!0,rows:[{label:"total",tokens:w.tokens??0,cost:v.cost??0,kind:"total"}]};const W=[{label:"input",tokens:p.input_tokens,cost:p.input_cost},{label:"output",tokens:p.output_tokens,cost:p.output_cost}];if(p.reasoning_tokens){const ue=p.output_tokens?p.output_cost*p.reasoning_tokens/p.output_tokens:0;W.push({label:"thinking",tokens:p.reasoning_tokens,cost:ue,kind:"nested",title:"Thinking tokens — part of output above, billed at the output rate. Not added to the total."})}return W.push({label:"cache read",tokens:p.cache_read_tokens,cost:p.cache_read_cost},{label:"cache write",tokens:p.cache_write_tokens,cost:p.cache_write_cost},{label:"total",tokens:p.total_tokens,cost:p.total_cost,kind:"total"}),{rows:W,partial:!1}}),l=new Intl.NumberFormat("en-US");function c(w){return w?w<1e-4?"<$0.0001":`$${w.toFixed(4)}`:"$0"}const d=se(()=>{if(t.phase.kind!=="engineer")return null;for(const w of s.value)if(!(w.type!=="log"||!w.payload_json))try{const v=JSON.parse(w.payload_json);if(v&&typeof v=="object"&&"input"in v){const p=v.input;if(typeof p=="string"&&p.trim())return p}}catch{}return null}),u=se(()=>{const w=ie(t.phase.started_at);if(!Number.isFinite(w))return NaN;const v=t.phase.status==="running"?Date.now():ie(t.phase.ended_at);return Number.isFinite(v)?v-w:NaN});function g(w){try{const v=JSON.parse(w.violations_json??"[]");if(Array.isArray(v))return v.map(p=>typeof p=="string"?p:JSON.stringify(p))}catch{}return w.violations_json?[w.violations_json]:[]}function S(w){const v=w.checks_json;if(v==null)return null;try{const p=JSON.parse(v);return Array.isArray(p)?p.filter(W=>W!==null&&typeof W=="object").map(W=>({item:typeof W.item=="string"?W.item:"",ok:W.ok===!0,note:typeof W.note=="string"?W.note:""})):null}catch{return null}}function R(w){const v=w.filter(p=>!p.ok).length;return v>0?`${v} of ${w.length} failed`:String(w.length)}const G=xt(new Set);function V(w){G.has(w)?G.delete(w):G.add(w)}function le(w){const v=ie(w.started_at),p=ie(w.ended_at);if(Number.isFinite(v)&&Number.isFinite(p))return p-v;if(w.type==="tool_call"){const W=mn(w);if(W?.duration_ms!=null)return W.duration_ms}return NaN}const ee=xt(new Set);function Z(w){ee.has(w.event_id)?ee.delete(w.event_id):ee.add(w.event_id)}function B(w){return w.type==="tool_call"?mn(w):null}function N(w){return Un(JSON.stringify(w?.args??{},null,2))}const Y=[],J=xt(new Set(Y));jt(()=>t.phase.phase_id,()=>{J.clear();for(const w of Y)J.add(w);G.clear()});function Ae(w){J.has(w)?J.delete(w):J.add(w)}const Me={gate_fail:"t-red",error:"t-red",gate_pass:"t-green",tool_call:"t-cyan",handoff:"t-violet",agent_start:"t-purple",agent_end:"t-green"},Fe=Ie(null),Q=Ie("idle"),me=new Map,we=xt(new Set),ve=xt(new Set);let Ye;jt(()=>[t.phase.adw_id,t.phase.owner,t.phase.kind],async([w,v,p])=>{const W=p==="agent"&&v?`${w}:${v}`:null;if(W===Ye)return;if(Ye=W,we.clear(),ve.clear(),W===null||!v){Fe.value=null,Q.value="idle";return}const ue=me.get(W);if(ue){Fe.value=ue,Q.value="ready";return}Q.value="loading";try{const Re=await ya(w,v);me.set(W,Re),Fe.value=Re,Q.value="ready"}catch{Q.value="error"}},{immediate:!0});const bt=se(()=>{const w=Fe.value;if(!w)return[];const v=[];for(const[p,W,ue]of[["system","system prompt",w.system],["user","user prompt",w.user]])ue!=null&&v.push({id:p,title:W,text:ue,html:Wc(ue),lines:ue.split(`
9
- `).length});return v});function xe(w){we.has(w)?we.delete(w):we.add(w)}return(w,v)=>(A(),b("section",Xc,[h("header",Jc,[h("div",Zc,[h("span",eu,P(e.phase.name),1),ne(Ln,{status:e.phase.status??"queued"},null,8,["status"]),Number.isFinite(u.value)?(A(),ke(Ve,{key:0,kind:"runtime",value:u.value},null,8,["value"])):H("",!0)]),h("div",tu,[h("span",su,[v[8]||(v[8]=h("span",{class:"tag-k"},"owner",-1)),h("span",nu,P(e.phase.owner??"—"),1)]),h("span",iu,[v[9]||(v[9]=h("span",{class:"tag-k"},"kind",-1)),h("span",ou,P(e.phase.kind??"—"),1)]),h("span",ru,[v[10]||(v[10]=h("span",{class:"tag-k"},"attempt",-1)),h("span",lu,P(e.phase.attempt??0)+"/"+P(e.phase.retries??0),1)])]),h("button",{class:"close",title:"close",onClick:v[0]||(v[0]=p=>w.$emit("close"))},"✕")]),e.phase.error?(A(),b("div",au,P(e.phase.error),1)):H("",!0),h("div",cu,[h("div",uu,[d.value?(A(),ke(Ct,{key:0,title:"request",icon:L(Va),open:J.has("request"),onToggle:v[1]||(v[1]=p=>Ae("request"))},{default:wt(()=>[h("p",fu,P(d.value),1)]),_:1},8,["icon","open"])):H("",!0),o.value?(A(),ke(Ct,{key:1,title:"agent config",icon:L($a),open:J.has("config"),onToggle:v[2]||(v[2]=p=>Ae("config"))},{default:wt(()=>[h("div",du,[o.value.coding_agent?(A(),b("div",hu,[v[11]||(v[11]=h("span",{class:"cfg-k"},"coding agent",-1)),h("span",pu,[ne(L(Go),{class:"cfg-icon",size:18,"stroke-width":2}),lt(" "+P(o.value.coding_agent),1)])])):H("",!0),o.value.model?(A(),b("div",Au,[v[12]||(v[12]=h("span",{class:"cfg-k"},"model",-1)),h("span",{class:"cfg-chip",title:o.value.model},[L(Ps)(o.value.model)?(A(),b("img",{key:0,class:"cfg-model-icon",src:L(Ps)(o.value.model),alt:""},null,8,mu)):H("",!0),lt(" "+P(L(Vo)(o.value.model)),1)],8,gu)])):H("",!0),o.value.thinking?(A(),b("div",vu,[v[13]||(v[13]=h("span",{class:"cfg-k"},"thinking",-1)),h("span",yu,[ne(L(Ha),{class:"cfg-icon",size:18,"stroke-width":2}),lt(" "+P(o.value.thinking),1)])])):H("",!0),o.value.tools!==void 0?(A(),b("div",_u,[v[14]||(v[14]=h("span",{class:"cfg-k"},"tools",-1)),o.value.tools===null?(A(),b("span",bu,"all tools")):(A(),b("span",wu,[(A(!0),b(q,null,_e(o.value.tools,p=>(A(),b("span",{key:p,class:"cfg-chip"},P(p),1))),128))]))])):H("",!0),o.value.harness_engineering!==void 0?(A(),b("div",ku,[v[15]||(v[15]=h("span",{class:"cfg-k"},"harness",-1)),o.value.harness_engineering?.length?(A(),b("span",Su,[(A(!0),b(q,null,_e(o.value.harness_engineering,p=>(A(),b("span",{key:p,class:"cfg-chip"},P(p),1))),128))])):(A(),b("span",xu,"none"))])):H("",!0),o.value.purpose?(A(),b("div",Mu,[v[16]||(v[16]=h("span",{class:"cfg-k"},"purpose",-1)),h("span",Eu,P(o.value.purpose),1)])):H("",!0),o.value.session_id?(A(),b("div",Cu,[v[17]||(v[17]=h("span",{class:"cfg-k"},"session",-1)),h("span",Iu,[ne(L(Ga),{class:"cfg-icon",size:18,"stroke-width":2}),lt(" "+P(o.value.session_id),1)])])):H("",!0)])]),_:1},8,["icon","open"])):H("",!0),e.phase.description?(A(),ke(Ct,{key:2,title:"description",icon:L(Xa),open:J.has("description"),onToggle:v[3]||(v[3]=p=>Ae("description"))},{default:wt(()=>[h("p",Tu,P(e.phase.description),1)]),_:1},8,["icon","open"])):H("",!0),e.phase.kind==="agent"?(A(),ke(Ct,{key:3,title:"compiled prompts",icon:L(Ya),count:Q.value==="ready"?bt.value.length:null,open:J.has("prompts"),onToggle:v[4]||(v[4]=p=>Ae("prompts"))},{default:wt(()=>[Q.value==="loading"?(A(),b("div",Ou,"loading prompts…")):Q.value==="error"?(A(),b("div",Pu,"prompts unavailable")):Q.value==="ready"?(A(),b(q,{key:2},[bt.value.length?H("",!0):(A(),b("div",Nu,"no compiled prompts recorded")),(A(!0),b(q,null,_e(bt.value,p=>(A(),b("div",{key:p.id,class:"prompt-panel"},[h("button",{class:"prompt-head",onClick:W=>xe(p.id)},[h("span",Ru,P(we.has(p.id)?"▾":"▸"),1),h("span",Bu,P(p.title),1),h("span",Du,P(p.lines)+" lines",1)],8,Fu),we.has(p.id)?(A(),b("div",Hu,[h("div",ju,[h("button",{class:he({active:!ve.has(p.id)}),onClick:W=>ve.delete(p.id)}," rendered ",10,Lu),h("button",{class:he({active:ve.has(p.id)}),onClick:W=>ve.add(p.id)}," raw ",10,Uu)]),ve.has(p.id)?(A(),b("pre",Gu,P(p.text),1)):(A(),b("div",{key:1,class:"md",innerHTML:p.html},null,8,Vu))])):H("",!0)]))),128))],64)):H("",!0)]),_:1},8,["icon","count","open"])):H("",!0),ne(Ct,{title:"gates",icon:L(qa),count:n.value.length,open:J.has("gates"),onToggle:v[5]||(v[5]=p=>Ae("gates"))},{default:wt(()=>[n.value.length?H("",!0):(A(),b("div",Wu,"no gate results")),(A(!0),b(q,null,_e(n.value,p=>(A(),b("div",{key:p.id,class:he(["gate",p.passed?"pass":"fail"])},[S(p)?(A(),b(q,{key:0},[h("button",{class:"gate-line gate-toggle",onClick:W=>V(p.id)},[h("span",Ku,P(G.has(p.id)?"▾":"▸"),1),h("span",Qu,P(p.passed?"✓":"✗"),1),h("span",zu,P(p.gate),1),h("span",{class:he(["tag",{"tag-fail":!p.passed}])},[v[18]||(v[18]=h("span",{class:"tag-k"},"checks",-1)),h("span",qu,P(R(S(p)??[])),1)],2),h("span",$u,[v[19]||(v[19]=h("span",{class:"tag-k"},"attempt",-1)),h("span",Xu,P(p.attempt??0),1)]),h("span",Ju,P(L(ws)(p.created_at)),1)],8,Yu),G.has(p.id)?(A(),b("div",Zu,[S(p)?.length?H("",!0):(A(),b("div",ef," nothing to check — the gate inspected no items ")),(A(!0),b(q,null,_e(S(p),(W,ue)=>(A(),b("div",{key:ue,class:he(["gate-check",W.ok?"pass":"fail"])},[h("span",tf,P(W.ok?"✓":"✗"),1),h("span",sf,P(W.item),1),W.note&&!W.note.includes(`
10
- `)?(A(),b("span",nf,P(W.note),1)):W.note?(A(),b("pre",of,P(W.note),1)):H("",!0)],2))),128)),!p.passed&&g(p).length?(A(),b("ul",rf,[(A(!0),b(q,null,_e(g(p),(W,ue)=>(A(),b("li",{key:ue},P(W),1))),128))])):H("",!0)])):H("",!0)],64)):(A(),b(q,{key:1},[h("div",lf,[h("span",af,P(p.passed?"✓":"✗"),1),h("span",cf,P(p.gate),1),h("span",uf,[v[20]||(v[20]=h("span",{class:"tag-k"},"attempt",-1)),h("span",ff,P(p.attempt??0),1)]),h("span",df,P(L(ws)(p.created_at)),1)]),g(p).length?(A(),b("ul",hf,[(A(!0),b(q,null,_e(g(p),(W,ue)=>(A(),b("li",{key:ue},P(W),1))),128))])):H("",!0)],64))],2))),128))]),_:1},8,["icon","count","open"]),r.value?(A(),ke(Ct,{key:4,title:"cost",icon:L(za),open:J.has("cost"),onToggle:v[6]||(v[6]=p=>Ae("cost"))},{default:wt(()=>[h("table",pf,[v[21]||(v[21]=h("thead",null,[h("tr",null,[h("th",{class:"u-k"}),h("th",{class:"u-n"},"tokens"),h("th",{class:"u-c"},"cost")])],-1)),h("tbody",null,[(A(!0),b(q,null,_e(r.value.rows,p=>(A(),b("tr",{key:p.label,class:he(p.kind?`u-${p.kind}`:void 0),title:p.title},[h("td",gf,P(p.label),1),h("td",mf,P(L(l).format(p.tokens)),1),h("td",vf,P(c(p.cost)),1)],10,Af))),128))])]),r.value.partial?(A(),b("p",yf," this run predates the per-component breakdown — only the total was recorded ")):H("",!0)]),_:1},8,["icon","open"])):H("",!0),ne(Ct,{title:"outputs",icon:L(Ka),count:i.value.length,open:J.has("outputs"),onToggle:v[7]||(v[7]=p=>Ae("outputs"))},{default:wt(()=>[i.value.length?H("",!0):(A(),b("div",_f,"no outputs")),(A(!0),b(q,null,_e(i.value,p=>(A(),b("div",{key:p.envelope_id,class:"output"},[h("div",bf,[h("span",wf,P(p.output_type),1),h("span",kf,[v[22]||(v[22]=h("span",{class:"tag-k"},"agent",-1)),h("span",xf,P(p.agent??"—"),1)]),h("span",Sf,[v[23]||(v[23]=h("span",{class:"tag-k"},"attempt",-1)),h("span",Mf,P(p.attempt??0),1)]),h("span",{class:he(["output-valid",p.valid?"pass":"fail"])},P(p.valid?"valid":"invalid"),3)]),h("pre",{innerHTML:L(nn)(p.payload_json)},null,8,Ef)]))),128))]),_:1},8,["icon","count","open"])]),h("div",Cf,[h("h3",null,[ne(L(Ra),{class:"h3-icon",size:19,"stroke-width":2}),lt(" events ("+P(s.value.length)+")",1)]),s.value.length?H("",!0):(A(),b("div",If,"no events")),(A(!0),b(q,null,_e(s.value,p=>(A(),b("div",{key:p.event_id,class:"event"},[h("button",{class:he(["event-row",{open:ee.has(p.event_id)}]),onClick:W=>Z(p)},[h("span",Of,P(L(ws)(p.started_at)),1),h("span",{class:he(["e-type",Me[p.type??""]])},P(p.type),3),h("span",{class:he(["e-name",{"t-red":p.type==="tool_call"&&!L(jo)(p.payload_json)}]),title:L(yn)(p)},P(L(yn)(p)),11,Pf),h("span",Nf,[Number.isFinite(le(p))?(A(),ke(Ve,{key:0,kind:"runtime",compact:"",value:le(p)},null,8,["value"])):H("",!0),p.tokens?(A(),ke(Ve,{key:1,kind:"tokens",compact:"",value:p.tokens},null,8,["value"])):H("",!0)])],10,Tf),ee.has(p.event_id)?(A(),b("div",Ff,[B(p)?(A(),b(q,{key:0},[h("div",Rf,[h("span",Bf,P(B(p)?.tool),1),B(p)?.ok===!1?(A(),b("span",Df,"failed")):H("",!0),B(p)?.duration_ms!=null?(A(),ke(Ve,{key:1,kind:"runtime",compact:"",value:B(p)?.duration_ms},null,8,["value"])):H("",!0)]),v[25]||(v[25]=h("h4",null,"args",-1)),h("pre",{class:"p-pre",innerHTML:N(B(p))},null,8,Hf),B(p)?.result_snippet?(A(),b(q,{key:0},[v[24]||(v[24]=h("h4",null,"result",-1)),h("pre",jf,P(B(p)?.result_snippet),1)],64)):H("",!0)],64)):p.type==="tool_call"&&p.payload_json?(A(),b(q,{key:1},[v[26]||(v[26]=h("div",{class:"faint"},"no detail available — legacy event payload",-1)),h("pre",{class:"p-pre",innerHTML:L(nn)(p.payload_json)},null,8,Lf)],64)):p.payload_json?(A(),b(q,{key:2},[v[27]||(v[27]=h("h4",null,"payload",-1)),h("pre",{class:"p-pre",innerHTML:L(nn)(p.payload_json)},null,8,Uf)],64)):(A(),b("div",Gf,"no payload"))])):H("",!0)]))),128))])])]))}}),Wf=_t(Vf,[["__scopeId","data-v-567985aa"]]),Yf={class:"trace"},Kf={key:0,class:"error-bar"},Qf={key:1,class:"run-strip"},zf=["title"],qf={class:"dim"},$f={class:"run-stats"},Xf={key:2,class:"waterfall"},Jf={class:"row axis-row"},Zf={class:"track"},ed={class:"label"},td=["title"],sd=["src"],nd=["title"],id={class:"ctx-head"},od={class:"ctx-pct"},rd={class:"ctx-bar"},ld={class:"track"},ad=["title","onClick"],cd={class:"b-top"},ud={class:"b-name"},fd={class:"b-desc"},dd=["title","onClick"],hd={class:"b-top"},pd={class:"b-name"},Ad={key:3,class:"empty-state"},gd={key:4,class:"empty-state"},md="#e8b64a",vd="#5ad2dd",yd=16,_d=3.5,bd=vt({__name:"SessionTrace",props:{adwId:{},phaseId:{}},setup(e){const t=e,s=Ie(null),n=Ie([]),i=Ie([]),o=Ie({read:0,written:0}),r=Ie([]),l=Ie([]),c=Ie([]),d=Ie(null),u=Ie(!1),g=Ie(Date.now());let S=0,R=!1,G;const V=new Set(["gate_pass","gate_fail","handoff","agent_end","phase_end","error"]);async function le(){if(!R){R=!0;try{const E=await ma(t.adwId);s.value=E.session,n.value=E.phases.toSorted((D,$)=>(D.seq??0)-($.seq??0)),i.value=E.agents,o.value=E.usage;const M=[];let T;do T=await Ro(t.adwId,S,1e3),S=Math.max(S,T.cursor),M.push(...T.events);while(T.has_more);if(M.length&&(r.value=[...r.value,...M]),!u.value||M.some(D=>D.type!==null&&V.has(D.type))){const[D,$]=await Promise.all([_a(t.adwId),ba(t.adwId)]);l.value=D,c.value=$}g.value=Date.now(),d.value=null,u.value=!0}catch(E){d.value=E instanceof Error?E.message:String(E)}finally{R=!1}}}Gs(()=>{le(),G=setInterval(()=>{le()},500)}),us(()=>{clearInterval(G),gn.value=null});const ee=se(()=>n.value.find(E=>E.phase_id===t.phaseId)??null);Br(()=>{gn.value=ee.value?.name??null});const Z={engineer:Za,code:Go,agent:Da};function B(E){const M=E?.context_tokens??0,T=E?.context_window??0;return!M||!T?null:{used:M,window:T,pct:Math.min(100,M/T*100)}}function N(E){return E.pct<1?`${E.pct.toFixed(1)}%`:`${Math.round(E.pct)}%`}function Y(E){return`${Math.max(E.pct,2)}%`}const J=new Intl.NumberFormat("en-US"),Ae=se(()=>{const E=new Map(n.value.map(T=>[T.phase_id,T.owner])),M={};for(const T of r.value){if(T.type!=="agent_start")continue;const D=(T.phase_id?E.get(T.phase_id):null)??T.name;if(!D||M[D])continue;const $=Uo(T);$&&(M[D]=$)}return M}),Me=se(()=>{const E=n.value,M=[];for(const $ of E)$.kind==="agent"&&$.owner&&!M.includes($.owner)&&M.push($.owner);const T=E.filter($=>$.kind==="code"),D=[{id:"engineer",label:s.value?.engineer??"engineer",model:null,context:null,metaLines:["engineer"],color:md,kind:"engineer",phases:E.filter($=>$.kind==="engineer")}];T.length&&D.push({id:"code",label:"code",model:null,context:null,metaLines:["workspace"],color:vd,kind:"code",phases:T});for(const[$,ye]of M.entries()){const Ke=i.value.find(f=>f.agent===ye),a=Ae.value[ye];D.push({id:`agent:${ye}`,label:ye,model:Ke?.model??a?.model??null,context:B(Ke),metaLines:[],color:Lo(Ke?.color,a?.color,$),kind:"agent",phases:E.filter(f=>f.kind==="agent"&&f.owner===ye)})}return D}),Fe=se(()=>{let E=1/0,M=-1/0;const T=s.value,D=ie(T?.started_at),$=ie(T?.ended_at);Number.isFinite(D)&&(E=Math.min(E,D)),Number.isFinite($)&&(M=Math.max(M,$));for(const ye of n.value){const Ke=ie(ye.started_at),a=ie(ye.ended_at);Number.isFinite(Ke)&&(E=Math.min(E,Ke),M=Math.max(M,Ke)),Number.isFinite(a)&&(M=Math.max(M,a))}return T?.status==="running"&&(M=Math.max(M,g.value)),Number.isFinite(E)||(E=g.value,M=E+1e3),M-E<1e3&&(M=E+1e3),{t0:E,t1:M,span:M-E}}),Q=se(()=>n.value.find(E=>E.kind==="engineer"&&E.started_at)??null),me=se(()=>Q.value?yd:0),we=se(()=>{const{t0:E}=Fe.value,M=Q.value;if(!M)return E;let T=1/0;for(const $ of n.value){if($.kind==="engineer")continue;const ye=ie($.started_at);Number.isFinite(ye)&&(T=Math.min(T,ye))}if(Number.isFinite(T))return Math.max(T,E);const D=ie(M.ended_at??M.started_at);return Number.isFinite(D)?Math.max(D,E):E}),ve=se(()=>Math.max(Fe.value.t1-we.value,1e3)),Ye=se(()=>{const E=me.value;return Ho(ve.value,7).map(M=>({pct:E+M.pct*(100-E)/100,label:M.label}))}),bt=se(()=>{const E=me.value,M=100-E-.4,T=we.value,D=ve.value,$=Q.value?.phase_id,ye=n.value.filter(y=>y.phase_id!==$&&Number.isFinite(ie(y.started_at))).map(y=>{const _=ie(y.started_at);let C=ie(y.ended_at);return Number.isFinite(C)||(C=y.status==="running"?g.value:_),{id:y.phase_id,start:_,left:(_-T)/D*M,width:(Math.max(C,_)-_)/D*M}}).toSorted((y,_)=>y.start-_.start);let Ke=0,a=0;const f=[];for(const y of ye){let _=y.left+Ke;_<a&&(Ke+=a-_,_=a);const C=Math.max(y.width,_d);Ke+=C-y.width,a=_+C,f.push({id:y.id,left:_,width:C})}const m=M/Math.max(a,M),x={};for(const y of f)x[y.id]={left:E+y.left*m,width:y.width*m};return x});function xe(E){if(E.phase_id===Q.value?.phase_id&&me.value>0)return{left:"0.4%",width:`${me.value-.8}%`};const M=bt.value[E.phase_id];return M?{left:`${M.left}%`,width:`${M.width}%`}:null}function w(E,M){const T=xe(E);if(T)return{left:T.left,width:T.width,background:`linear-gradient(180deg, ${Ft(M.color,.2)}, ${Ft(M.color,.05)})`,borderColor:E.status==="fail"?"rgba(255, 111, 103, 0.8)":Ft(M.color,.55),"--lane-glow":Ft(M.color,.28)}}function v(E){const M=ie(E.started_at);if(!Number.isFinite(M))return NaN;const T=E.status==="running"?g.value:ie(E.ended_at);return Number.isFinite(T)?T-M:NaN}const p={success:"✓",fail:"✗",running:"●",queued:"○"},W=se(()=>{const E={};for(const M of r.value)M.type!=="tool_call"||!M.phase_id||(E[M.phase_id]??=[],E[M.phase_id]?.push({t:ie(M.started_at),ok:jo(M.payload_json)}));return E});function ue(E){const M=ie(E.started_at);if(!Number.isFinite(M))return[];let T=ie(E.ended_at);Number.isFinite(T)||(T=E.status==="running"?g.value:M);const D=Math.max(T-M,1);return(W.value[E.phase_id]??[]).filter($=>Number.isFinite($.t)).map($=>({x:Math.min(Math.max(($.t-M)/D*100,1),99),ok:$.ok}))}const Re=se(()=>{const E={};for(const M of Me.value)E[M.id]=M.phases.filter(T=>!T.started_at);return E}),hs=se(()=>{const E=s.value;if(!E)return NaN;const M=ie(E.started_at);if(!Number.isFinite(M))return NaN;const T=E.status==="running"?g.value:ie(E.ended_at);return(Number.isFinite(T)?T:g.value)-M});function ps(E){_i(t.adwId,E.phase_id===t.phaseId?null:E.phase_id)}return(E,M)=>(A(),b("div",Yf,[d.value?(A(),b("div",Kf,"api unreachable — retrying "+P(d.value),1)):H("",!0),s.value?(A(),b("div",Qf,[h("span",{class:"request",title:s.value.request??""},P(s.value.request),9,zf),ne(Ln,{status:s.value.status??"fail"},null,8,["status"]),h("span",qf,"started "+P(L(Bo)(s.value.started_at)),1),h("span",$f,[ne(Ve,{kind:"cost",value:s.value.total_cost},null,8,["value"]),ne(Ve,{kind:"runtime",value:hs.value},null,8,["value"]),ne(Ve,{kind:"tokens",value:s.value.total_tokens},null,8,["value"]),ne(Ve,{kind:"read",value:o.value.read},null,8,["value"]),ne(Ve,{kind:"written",value:o.value.written},null,8,["value"])])])):H("",!0),n.value.length?(A(),b("div",Xf,[h("div",Jf,[M[1]||(M[1]=h("div",{class:"label"},null,-1)),h("div",Zf,[me.value?(A(),b("span",{key:0,class:"zone-head",style:De({width:`${me.value}%`})},"request",4)):H("",!0),(A(!0),b(q,null,_e(Ye.value,(T,D)=>(A(),b("span",{key:D,class:"axis-label",style:De({left:`${T.pct}%`})},P(T.label),5))),128))])]),(A(!0),b(q,null,_e(Me.value,T=>(A(),b("div",{key:T.id,class:he(["row lane",`kind-${T.kind}`])},[h("div",ed,[h("span",{class:"lane-name",style:De({color:T.color})},[(A(),ke(Vs(Z[T.kind]),{class:"lane-icon",size:22,"stroke-width":2})),lt(" "+P(T.label),1)],4),T.model?(A(),b("span",{key:0,class:"lane-meta lane-model",title:T.model},[L(Ps)(T.model)?(A(),b("img",{key:0,class:"model-icon",src:L(Ps)(T.model),alt:""},null,8,sd)):H("",!0),lt(" "+P(L(Vo)(T.model)),1)],8,td)):H("",!0),T.context?(A(),b("span",{key:1,class:"lane-ctx",title:`${L(J).format(T.context.used)} / ${L(J).format(T.context.window)} tokens used · ${L(J).format(T.context.window-T.context.used)} remaining`},[h("span",id,[M[2]||(M[2]=h("span",{class:"ctx-label"},"Context",-1)),h("span",od,P(N(T.context)),1)]),h("span",rd,[h("span",{class:"ctx-fill",style:De({width:Y(T.context),background:`linear-gradient(90deg, ${L(Ft)(T.color,.55)}, ${T.color})`,boxShadow:`0 0 10px ${L(Ft)(T.color,.45)}`})},null,4)])],8,nd)):H("",!0),(A(!0),b(q,null,_e(T.metaLines,(D,$)=>(A(),b("span",{key:$,class:"lane-meta"},P(D),1))),128))]),h("div",ld,[me.value?(A(),b("span",{key:0,class:"zone-divider",style:De({left:`${me.value}%`})},null,4)):H("",!0),(A(!0),b(q,null,_e(Ye.value,(D,$)=>(A(),b("span",{key:$,class:"gridline",style:De({left:`${D.pct}%`})},null,4))),128)),(A(!0),b(q,null,_e(T.phases,D=>(A(),b(q,{key:D.phase_id},[xe(D)?(A(),b("button",{key:0,class:he(["block",[D.status,{selected:D.phase_id===e.phaseId}]]),style:De(w(D,T)),title:`${D.name} — ${D.status}${D.description?`
11
- ${D.description}`:""}`,onClick:$=>ps(D)},[h("span",cd,[h("span",{class:he(["b-status",D.status])},P(p[D.status??""]??"○"),3),h("span",ud,P(D.name),1),Number.isFinite(v(D))?(A(),ke(Ve,{key:0,class:"b-dur",kind:"runtime",compact:"",value:v(D)},null,8,["value"])):H("",!0)]),h("span",fd,P(D.description),1),(A(!0),b(q,null,_e(ue(D),($,ye)=>(A(),b("span",{key:ye,class:he(["tool-tick",{err:!$.ok}]),style:De({left:`${$.x}%`})},null,6))),128))],14,ad)):H("",!0)],64))),128)),(A(!0),b(q,null,_e(Re.value[T.id],(D,$)=>(A(),b("button",{key:D.phase_id,class:he(["block queued",{selected:D.phase_id===e.phaseId}]),style:De({right:`${10+$*5}px`,width:"170px"}),title:`${D.name} — queued`,onClick:ye=>ps(D)},[h("span",hd,[M[3]||(M[3]=h("span",{class:"b-status queued"},"○",-1)),h("span",pd,P(D.name),1)]),M[4]||(M[4]=h("span",{class:"b-desc"},"queued",-1))],14,dd))),128))])],2))),128))])):u.value?(A(),b("div",Ad,"no phases recorded for this session")):d.value?H("",!0):(A(),b("div",gd,"loading trace…")),ee.value?(A(),ke(Wf,{key:5,phase:ee.value,events:r.value,envelopes:l.value,gates:c.value,onClose:M[0]||(M[0]=T=>L(_i)(t.adwId))},null,8,["phase","events","envelopes","gates"])):H("",!0)]))}}),wd=_t(bd,[["__scopeId","data-v-aaa51626"]]),kd={class:"app"},xd={class:"topbar"},Sd={class:"crumbs"},Md=["href"],Ed=["href"],Cd={class:"current"},Id=vt({__name:"App",setup(e){const t=Aa();return(s,n)=>(A(),b("div",kd,[h("header",xd,[h("nav",Sd,[n[2]||(n[2]=Cl('<svg class="logo" viewBox="0 0 32 32" aria-hidden="true" data-v-af109a43><rect x="4" y="6" width="17" height="5" rx="2.5" fill="#e8b64a" data-v-af109a43></rect><rect x="8" y="13.5" width="20" height="5" rx="2.5" fill="#c89bff" data-v-af109a43></rect><rect x="4" y="21" width="13" height="5" rx="2.5" fill="#5ad2dd" data-v-af109a43></rect></svg><span class="brand" data-v-af109a43>Super Portable Software Factory</span><span class="sep" data-v-af109a43>›</span>',3)),h("a",{href:L(Os)(),class:he({current:!L(t).adwId})},"sessions",10,Md),L(t).adwId?(A(),b(q,{key:0},[n[0]||(n[0]=h("span",{class:"sep"},"›",-1)),h("a",{href:L(Os)(L(t).adwId),class:he({current:!L(t).phaseId})},P(L(t).adwId),11,Ed)],64)):H("",!0),L(t).adwId&&L(t).phaseId?(A(),b(q,{key:1},[n[1]||(n[1]=h("span",{class:"sep"},"›",-1)),h("span",Cd,P(L(gn)??L(t).phaseId),1)],64)):H("",!0)]),n[3]||(n[3]=h("span",{class:"live-hint"},[h("span",{class:"live-dot"}),lt(" live")],-1))]),h("main",null,[L(t).adwId?(A(),ke(wd,{key:L(t).adwId,"adw-id":L(t).adwId,"phase-id":L(t).phaseId},null,8,["adw-id","phase-id"])):(A(),ke(Bc,{key:0}))])]))}}),Td=_t(Id,[["__scopeId","data-v-af109a43"]]);da(Td).mount("#app");