@opencode-trace/viewer 0.0.3 → 0.0.4

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.
@@ -0,0 +1,91 @@
1
+ var Yl=Object.defineProperty;var Xl=(e,t,s)=>t in e?Yl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var _e=(e,t,s)=>Xl(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function s(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(r){if(r.ep)return;r.ep=!0;const o=s(r);fetch(r.href,o)}})();/**
2
+ * @vue/shared v3.5.34
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function Tr(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const xe={},fs=[],Rt=()=>{},gi=()=>!1,Tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Cn=e=>e.startsWith("onUpdate:"),Ue=Object.assign,Cr=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ea=Object.prototype.hasOwnProperty,me=(e,t)=>ea.call(e,t),Y=Array.isArray,ds=e=>Js(e)==="[object Map]",$n=e=>Js(e)==="[object Set]",lo=e=>Js(e)==="[object Date]",ne=e=>typeof e=="function",Ae=e=>typeof e=="string",dt=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",mi=e=>(ye(e)||ne(e))&&ne(e.then)&&ne(e.catch),vi=Object.prototype.toString,Js=e=>vi.call(e),ta=e=>Js(e).slice(8,-1),bi=e=>Js(e)==="[object Object]",$r=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ms=Tr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},sa=/-\w/g,tt=An(e=>e.replace(sa,t=>t.slice(1).toUpperCase())),na=/\B([A-Z])/g,qt=An(e=>e.replace(na,"-$1").toLowerCase()),En=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gn=An(e=>e?`on${En(e)}`:""),xt=(e,t)=>!Object.is(e,t),cn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},yi=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},In=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ao;const On=()=>ao||(ao=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ar(e){if(Y(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=Ae(n)?la(n):Ar(n);if(r)for(const o in r)t[o]=r[o]}return t}else if(Ae(e)||ye(e))return e}const ra=/;(?![^(]*\))/g,oa=/:([^]+)/,ia=/\/\*[^]*?\*\//g;function la(e){const t={};return e.replace(ia,"").split(ra).forEach(s=>{if(s){const n=s.split(oa);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Se(e){let t="";if(Ae(e))t=e;else if(Y(e))for(let s=0;s<e.length;s++){const n=Se(e[s]);n&&(t+=n+" ")}else if(ye(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const aa="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ca=Tr(aa);function ki(e){return!!e||e===""}function ua(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Ys(e[n],t[n]);return s}function Ys(e,t){if(e===t)return!0;let s=lo(e),n=lo(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=dt(e),n=dt(t),s||n)return e===t;if(s=Y(e),n=Y(t),s||n)return s&&n?ua(e,t):!1;if(s=ye(e),n=ye(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!Ys(e[i],t[i]))return!1}}return String(e)===String(t)}function fa(e,t){return e.findIndex(s=>Ys(s,t))}const _i=e=>!!(e&&e.__v_isRef===!0),G=e=>Ae(e)?e:e==null?"":Y(e)||ye(e)&&(e.toString===vi||!ne(e.toString))?_i(e)?G(e.value):JSON.stringify(e,wi,2):String(e),wi=(e,t)=>_i(t)?wi(e,t.value):ds(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],o)=>(s[Kn(n,o)+" =>"]=r,s),{})}:$n(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Kn(s))}:dt(t)?Kn(t):ye(t)&&!Y(t)&&!bi(t)?String(t):t,Kn=(e,t="")=>{var s;return dt(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
6
+ * @vue/reactivity v3.5.34
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let Fe;class da{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&&Fe&&(Fe.active?(this.parent=Fe,this.index=(Fe.scopes||(Fe.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)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Fe;try{return Fe=this,t()}finally{Fe=s}}}on(){++this._on===1&&(this.prevScope=Fe,Fe=this)}off(){if(this._on>0&&--this._on===0){if(Fe===this)Fe=this.prevScope;else{let t=Fe;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){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function ha(){return Fe}let Te;const Wn=new WeakSet;class xi{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,Fe&&(Fe.active?Fe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Wn.has(this)&&(Wn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ri(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,co(this),Ti(this);const t=Te,s=ft;Te=this,ft=!0;try{return this.fn()}finally{Ci(this),Te=t,ft=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Or(t);this.deps=this.depsTail=void 0,co(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Wn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ir(this)&&this.run()}get dirty(){return ir(this)}}let Si=0,Ns,Ds;function Ri(e,t=!1){if(e.flags|=8,t){e.next=Ds,Ds=e;return}e.next=Ns,Ns=e}function Er(){Si++}function Ir(){if(--Si>0)return;if(Ds){let t=Ds;for(Ds=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ns;){let t=Ns;for(Ns=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 Ti(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ci(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Or(n),pa(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function ir(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($i(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $i(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Us)||(e.globalVersion=Us,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ir(e))))return;e.flags|=2;const t=e.dep,s=Te,n=ft;Te=e,ft=!0;try{Ti(e);const r=e.fn(e._value);(t.version===0||xt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Te=s,ft=n,Ci(e),e.flags&=-3}}function Or(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Or(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function pa(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ft=!0;const Ai=[];function Mt(){Ai.push(ft),ft=!1}function Nt(){const e=Ai.pop();ft=e===void 0?!0:e}function co(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Te;Te=void 0;try{t()}finally{Te=s}}}let Us=0;class ga{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 Pr{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(!Te||!ft||Te===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Te)s=this.activeLink=new ga(Te,this),Te.deps?(s.prevDep=Te.depsTail,Te.depsTail.nextDep=s,Te.depsTail=s):Te.deps=Te.depsTail=s,Ei(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=Te.depsTail,s.nextDep=void 0,Te.depsTail.nextDep=s,Te.depsTail=s,Te.deps===s&&(Te.deps=n)}return s}trigger(t){this.version++,Us++,this.notify(t)}notify(t){Er();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ir()}}}function Ei(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)Ei(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const lr=new WeakMap,ts=Symbol(""),ar=Symbol(""),qs=Symbol("");function ze(e,t,s){if(ft&&Te){let n=lr.get(e);n||lr.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Pr),r.map=n,r.key=s),r.track()}}function Ot(e,t,s,n,r,o){const i=lr.get(e);if(!i){Us++;return}const a=l=>{l&&l.trigger()};if(Er(),t==="clear")i.forEach(a);else{const l=Y(e),u=l&&$r(s);if(l&&s==="length"){const c=Number(n);i.forEach((f,h)=>{(h==="length"||h===qs||!dt(h)&&h>=c)&&a(f)})}else switch((s!==void 0||i.has(void 0))&&a(i.get(s)),u&&a(i.get(qs)),t){case"add":l?u&&a(i.get("length")):(a(i.get(ts)),ds(e)&&a(i.get(ar)));break;case"delete":l||(a(i.get(ts)),ds(e)&&a(i.get(ar)));break;case"set":ds(e)&&a(i.get(ts));break}}Ir()}function os(e){const t=ge(e);return t===e?t:(ze(t,"iterate",qs),at(e)?t:t.map(ht))}function Pn(e){return ze(e=ge(e),"iterate",qs),e}function _t(e,t){return Dt(e)?bs(ss(e)?ht(t):t):ht(t)}const ma={__proto__:null,[Symbol.iterator](){return Zn(this,Symbol.iterator,e=>_t(this,e))},concat(...e){return os(this).concat(...e.map(t=>Y(t)?os(t):t))},entries(){return Zn(this,"entries",e=>(e[1]=_t(this,e[1]),e))},every(e,t){return Ct(this,"every",e,t,void 0,arguments)},filter(e,t){return Ct(this,"filter",e,t,s=>s.map(n=>_t(this,n)),arguments)},find(e,t){return Ct(this,"find",e,t,s=>_t(this,s),arguments)},findIndex(e,t){return Ct(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ct(this,"findLast",e,t,s=>_t(this,s),arguments)},findLastIndex(e,t){return Ct(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ct(this,"forEach",e,t,void 0,arguments)},includes(...e){return Qn(this,"includes",e)},indexOf(...e){return Qn(this,"indexOf",e)},join(e){return os(this).join(e)},lastIndexOf(...e){return Qn(this,"lastIndexOf",e)},map(e,t){return Ct(this,"map",e,t,void 0,arguments)},pop(){return Rs(this,"pop")},push(...e){return Rs(this,"push",e)},reduce(e,...t){return uo(this,"reduce",e,t)},reduceRight(e,...t){return uo(this,"reduceRight",e,t)},shift(){return Rs(this,"shift")},some(e,t){return Ct(this,"some",e,t,void 0,arguments)},splice(...e){return Rs(this,"splice",e)},toReversed(){return os(this).toReversed()},toSorted(e){return os(this).toSorted(e)},toSpliced(...e){return os(this).toSpliced(...e)},unshift(...e){return Rs(this,"unshift",e)},values(){return Zn(this,"values",e=>_t(this,e))}};function Zn(e,t,s){const n=Pn(e),r=n[t]();return n!==e&&!at(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=s(o.value)),o}),r}const va=Array.prototype;function Ct(e,t,s,n,r,o){const i=Pn(e),a=i!==e&&!at(e),l=i[t];if(l!==va[t]){const f=l.apply(e,o);return a?ht(f):f}let u=s;i!==e&&(a?u=function(f,h){return s.call(this,_t(e,f),h,e)}:s.length>2&&(u=function(f,h){return s.call(this,f,h,e)}));const c=l.call(i,u,n);return a&&r?r(c):c}function uo(e,t,s,n){const r=Pn(e),o=r!==e&&!at(e);let i=s,a=!1;r!==e&&(o?(a=n.length===0,i=function(u,c,f){return a&&(a=!1,u=_t(e,u)),s.call(this,u,_t(e,c),f,e)}):s.length>3&&(i=function(u,c,f){return s.call(this,u,c,f,e)}));const l=r[t](i,...n);return a?_t(e,l):l}function Qn(e,t,s){const n=ge(e);ze(n,"iterate",qs);const r=n[t](...s);return(r===-1||r===!1)&&Dr(s[0])?(s[0]=ge(s[0]),n[t](...s)):r}function Rs(e,t,s=[]){Mt(),Er();const n=ge(e)[t].apply(e,s);return Ir(),Nt(),n}const ba=Tr("__proto__,__v_isRef,__isVue"),Ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dt));function ya(e){dt(e)||(e=String(e));const t=ge(this);return ze(t,"has",e),t.hasOwnProperty(e)}class Oi{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(r?o?Aa:Di:o?Ni:Mi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=Y(t);if(!r){let l;if(i&&(l=ma[s]))return l;if(s==="hasOwnProperty")return ya}const a=Reflect.get(t,s,Ze(t)?t:n);if((dt(s)?Ii.has(s):ba(s))||(r||ze(t,"get",s),o))return a;if(Ze(a)){const l=i&&$r(s)?a:a.value;return r&&ye(l)?ur(l):l}return ye(a)?r?ur(a):zt(a):a}}class Pi extends Oi{constructor(t=!1){super(!1,t)}set(t,s,n,r){let o=t[s];const i=Y(t)&&$r(s);if(!this._isShallow){const u=Dt(o);if(!at(n)&&!Dt(n)&&(o=ge(o),n=ge(n)),!i&&Ze(o)&&!Ze(n))return u||(o.value=n),!0}const a=i?Number(s)<t.length:me(t,s),l=Reflect.set(t,s,n,Ze(t)?t:r);return t===ge(r)&&(a?xt(n,o)&&Ot(t,"set",s,n):Ot(t,"add",s,n)),l}deleteProperty(t,s){const n=me(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&Ot(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!dt(s)||!Ii.has(s))&&ze(t,"has",s),n}ownKeys(t){return ze(t,"iterate",Y(t)?"length":ts),Reflect.ownKeys(t)}}class ka extends Oi{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const _a=new Pi,wa=new ka,xa=new Pi(!0);const cr=e=>e,sn=e=>Reflect.getPrototypeOf(e);function Sa(e,t,s){return function(...n){const r=this.__v_raw,o=ge(r),i=ds(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=r[e](...n),c=s?cr:t?bs:ht;return!t&&ze(o,"iterate",l?ar:ts),Ue(Object.create(u),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[c(f[0]),c(f[1])]:c(f),done:h}}})}}function nn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ra(e,t){const s={get(r){const o=this.__v_raw,i=ge(o),a=ge(r);e||(xt(r,a)&&ze(i,"get",r),ze(i,"get",a));const{has:l}=sn(i),u=t?cr:e?bs:ht;if(l.call(i,r))return u(o.get(r));if(l.call(i,a))return u(o.get(a));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&ze(ge(r),"iterate",ts),r.size},has(r){const o=this.__v_raw,i=ge(o),a=ge(r);return e||(xt(r,a)&&ze(i,"has",r),ze(i,"has",a)),r===a?o.has(r):o.has(r)||o.has(a)},forEach(r,o){const i=this,a=i.__v_raw,l=ge(a),u=t?cr:e?bs:ht;return!e&&ze(l,"iterate",ts),a.forEach((c,f)=>r.call(o,u(c),u(f),i))}};return Ue(s,e?{add:nn("add"),set:nn("set"),delete:nn("delete"),clear:nn("clear")}:{add(r){const o=ge(this),i=sn(o),a=ge(r),l=!t&&!at(r)&&!Dt(r)?a:r;return i.has.call(o,l)||xt(r,l)&&i.has.call(o,r)||xt(a,l)&&i.has.call(o,a)||(o.add(l),Ot(o,"add",l,l)),this},set(r,o){!t&&!at(o)&&!Dt(o)&&(o=ge(o));const i=ge(this),{has:a,get:l}=sn(i);let u=a.call(i,r);u||(r=ge(r),u=a.call(i,r));const c=l.call(i,r);return i.set(r,o),u?xt(o,c)&&Ot(i,"set",r,o):Ot(i,"add",r,o),this},delete(r){const o=ge(this),{has:i,get:a}=sn(o);let l=i.call(o,r);l||(r=ge(r),l=i.call(o,r)),a&&a.call(o,r);const u=o.delete(r);return l&&Ot(o,"delete",r,void 0),u},clear(){const r=ge(this),o=r.size!==0,i=r.clear();return o&&Ot(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Sa(r,e,t)}),s}function Mr(e,t){const s=Ra(e,t);return(n,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(me(s,r)&&r in n?s:n,r,o)}const Ta={get:Mr(!1,!1)},Ca={get:Mr(!1,!0)},$a={get:Mr(!0,!1)};const Mi=new WeakMap,Ni=new WeakMap,Di=new WeakMap,Aa=new WeakMap;function Ea(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ia(e){return e.__v_skip||!Object.isExtensible(e)?0:Ea(ta(e))}function zt(e){return Dt(e)?e:Nr(e,!1,_a,Ta,Mi)}function Li(e){return Nr(e,!1,xa,Ca,Ni)}function ur(e){return Nr(e,!0,wa,$a,Di)}function Nr(e,t,s,n,r){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Ia(e);if(o===0)return e;const i=r.get(e);if(i)return i;const a=new Proxy(e,o===2?n:s);return r.set(e,a),a}function ss(e){return Dt(e)?ss(e.__v_raw):!!(e&&e.__v_isReactive)}function Dt(e){return!!(e&&e.__v_isReadonly)}function at(e){return!!(e&&e.__v_isShallow)}function Dr(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function Oa(e){return!me(e,"__v_skip")&&Object.isExtensible(e)&&yi(e,"__v_skip",!0),e}const ht=e=>ye(e)?zt(e):e,bs=e=>ye(e)?ur(e):e;function Ze(e){return e?e.__v_isRef===!0:!1}function oe(e){return Bi(e,!1)}function Pa(e){return Bi(e,!0)}function Bi(e,t){return Ze(e)?e:new Ma(e,t)}class Ma{constructor(t,s){this.dep=new Pr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:ge(t),this._value=s?t:ht(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||at(t)||Dt(t);t=n?t:ge(t),xt(t,s)&&(this._rawValue=t,this._value=n?t:ht(t),this.dep.trigger())}}function De(e){return Ze(e)?e.value:e}const Na={get:(e,t,s)=>t==="__v_raw"?e:De(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return Ze(r)&&!Ze(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function ji(e){return ss(e)?e:new Proxy(e,Na)}class Da{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Pr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Us-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Te!==this)return Ri(this,!0),!0}get value(){const t=this.dep.track();return $i(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function La(e,t,s=!1){let n,r;return ne(e)?n=e:(n=e.get,r=e.set),new Da(n,r,s)}const rn={},dn=new WeakMap;let Qt;function Ba(e,t=!1,s=Qt){if(s){let n=dn.get(s);n||dn.set(s,n=[]),n.push(e)}}function ja(e,t,s=xe){const{immediate:n,deep:r,once:o,scheduler:i,augmentJob:a,call:l}=s,u=T=>r?T:at(T)||r===!1||r===0?Pt(T,1):Pt(T);let c,f,h,p,v=!1,y=!1;if(Ze(e)?(f=()=>e.value,v=at(e)):ss(e)?(f=()=>u(e),v=!0):Y(e)?(y=!0,v=e.some(T=>ss(T)||at(T)),f=()=>e.map(T=>{if(Ze(T))return T.value;if(ss(T))return u(T);if(ne(T))return l?l(T,2):T()})):ne(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){Mt();try{h()}finally{Nt()}}const T=Qt;Qt=c;try{return l?l(e,3,[p]):e(p)}finally{Qt=T}}:f=Rt,t&&r){const T=f,H=r===!0?1/0:r;f=()=>Pt(T(),H)}const w=ha(),M=()=>{c.stop(),w&&w.active&&Cr(w.effects,c)};if(o&&t){const T=t;t=(...H)=>{T(...H),M()}}let $=y?new Array(e.length).fill(rn):rn;const D=T=>{if(!(!(c.flags&1)||!c.dirty&&!T))if(t){const H=c.run();if(r||v||(y?H.some((se,F)=>xt(se,$[F])):xt(H,$))){h&&h();const se=Qt;Qt=c;try{const F=[H,$===rn?void 0:y&&$[0]===rn?[]:$,p];$=H,l?l(t,3,F):t(...F)}finally{Qt=se}}}else c.run()};return a&&a(D),c=new xi(f),c.scheduler=i?()=>i(D,!1):D,p=T=>Ba(T,!1,c),h=c.onStop=()=>{const T=dn.get(c);if(T){if(l)l(T,4);else for(const H of T)H();dn.delete(c)}},t?n?D(!0):$=c.run():i?i(D.bind(null,!0),!0):c.run(),M.pause=c.pause.bind(c),M.resume=c.resume.bind(c),M.stop=M,M}function Pt(e,t=1/0,s){if(t<=0||!ye(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Ze(e))Pt(e.value,t,s);else if(Y(e))for(let n=0;n<e.length;n++)Pt(e[n],t,s);else if($n(e)||ds(e))e.forEach(n=>{Pt(n,t,s)});else if(bi(e)){for(const n in e)Pt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Pt(e[n],t,s)}return e}/**
10
+ * @vue/runtime-core v3.5.34
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function Xs(e,t,s,n){try{return n?e(...n):e()}catch(r){Mn(r,t,s)}}function Tt(e,t,s,n){if(ne(e)){const r=Xs(e,t,s,n);return r&&mi(r)&&r.catch(o=>{Mn(o,t,s)}),r}if(Y(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Tt(e[o],t,s,n));return r}}function Mn(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||xe;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(o){Mt(),Xs(o,null,10,[e,l,u]),Nt();return}}Ha(e,s,r,n,i)}function Ha(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const et=[];let kt=-1;const hs=[];let Vt=null,ls=0;const Hi=Promise.resolve();let hn=null;function Lr(e){const t=hn||Hi;return e?t.then(this?e.bind(this):e):t}function Fa(e){let t=kt+1,s=et.length;for(;t<s;){const n=t+s>>>1,r=et[n],o=zs(r);o<e||o===e&&r.flags&2?t=n+1:s=n}return t}function Br(e){if(!(e.flags&1)){const t=zs(e),s=et[et.length-1];!s||!(e.flags&2)&&t>=zs(s)?et.push(e):et.splice(Fa(t),0,e),e.flags|=1,Fi()}}function Fi(){hn||(hn=Hi.then(Ui))}function Va(e){Y(e)?hs.push(...e):Vt&&e.id===-1?Vt.splice(ls+1,0,e):e.flags&1||(hs.push(e),e.flags|=1),Fi()}function fo(e,t,s=kt+1){for(;s<et.length;s++){const n=et[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;et.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Vi(e){if(hs.length){const t=[...new Set(hs)].sort((s,n)=>zs(s)-zs(n));if(hs.length=0,Vt){Vt.push(...t);return}for(Vt=t,ls=0;ls<Vt.length;ls++){const s=Vt[ls];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Vt=null,ls=0}}const zs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ui(e){try{for(kt=0;kt<et.length;kt++){const t=et[kt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;kt<et.length;kt++){const t=et[kt];t&&(t.flags&=-2)}kt=-1,et.length=0,Vi(),hn=null,(et.length||hs.length)&&Ui()}}let Ve=null,qi=null;function pn(e){const t=Ve;return Ve=e,qi=e&&e.type.__scopeId||null,t}function ys(e,t=Ve,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&vn(-1);const o=pn(t);let i;try{i=e(...r)}finally{pn(o),n._d&&vn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function Ke(e,t){if(Ve===null)return e;const s=Hn(Ve),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,a,l=xe]=t[r];o&&(ne(o)&&(o={mounted:o,updated:o}),o.deep&&Pt(i),n.push({dir:o,instance:s,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Kt(e,t,s,n){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];o&&(a.oldValue=o[i].value);let l=a.dir[n];l&&(Mt(),Tt(l,s,8,[e.el,a,e,t]),Nt())}}function ps(e,t){if(Ge){let s=Ge.provides;const n=Ge.parent&&Ge.parent.provides;n===s&&(s=Ge.provides=Object.create(n)),s[e]=t}}function ot(e,t,s=!1){const n=qc();if(n||ms){let r=ms?ms._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&ne(t)?t.call(n&&n.proxy):t}}const Ua=Symbol.for("v-scx"),qa=()=>ot(Ua);function Ls(e,t,s){return zi(e,t,s)}function zi(e,t,s=xe){const{immediate:n,deep:r,flush:o,once:i}=s,a=Ue({},s),l=t&&n||!t&&o!=="post";let u;if(Ws){if(o==="sync"){const p=qa();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Rt,p.resume=Rt,p.pause=Rt,p}}const c=Ge;a.call=(p,v,y)=>Tt(p,c,v,y);let f=!1;o==="post"?a.scheduler=p=>{Ye(p,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(p,v)=>{v?p():Br(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const h=ja(e,t,a);return Ws&&(u?u.push(h):l&&h()),h}function za(e,t,s){const n=this.proxy,r=Ae(e)?e.includes(".")?Gi(n,e):()=>n[e]:e.bind(n,n);let o;ne(t)?o=t:(o=t.handler,s=t);const i=en(this),a=zi(r,o.bind(n),s);return i(),a}function Gi(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Ft=new WeakMap,Ki=Symbol("_vte"),Ga=e=>e.__isTeleport,Jt=e=>e&&(e.disabled||e.disabled===""),Ka=e=>e&&(e.defer||e.defer===""),ho=e=>typeof SVGElement<"u"&&e instanceof SVGElement,po=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,fr=(e,t)=>{const s=e&&e.to;return Ae(s)?t?t(s):null:s},Wa={name:"Teleport",__isTeleport:!0,process(e,t,s,n,r,o,i,a,l,u){const{mc:c,pc:f,pbc:h,o:{insert:p,querySelector:v,createText:y,createComment:w,parentNode:M}}=u,$=Jt(t.props);let{dynamicChildren:D}=t;const T=(F,ue,le)=>{F.shapeFlag&16&&c(F.children,ue,le,r,o,i,a,l)},H=(F=t)=>{const ue=Jt(F.props),le=F.target=fr(F.props,v),Me=dr(le,F,y,p);le&&(i!=="svg"&&ho(le)?i="svg":i!=="mathml"&&po(le)&&(i="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(le),ue||(T(F,le,Me),Es(F,!1)))},se=F=>{const ue=()=>{if(Ft.get(F)===ue){if(Ft.delete(F),Jt(F.props)){const le=M(F.el)||s;T(F,le,F.anchor),Es(F,!0)}H(F)}};Ft.set(F,ue),Ye(ue,o)};if(e==null){const F=t.el=y(""),ue=t.anchor=y("");if(p(F,s,n),p(ue,s,n),Ka(t.props)||o&&o.pendingBranch){se(t);return}$&&(T(t,s,ue),Es(t,!0)),H()}else{t.el=e.el;const F=t.anchor=e.anchor,ue=Ft.get(e);if(ue){ue.flags|=8,Ft.delete(e),se(t);return}t.targetStart=e.targetStart;const le=t.target=e.target,Me=t.targetAnchor=e.targetAnchor,je=Jt(e.props),q=je?s:le,V=je?F:Me;if(i==="svg"||ho(le)?i="svg":(i==="mathml"||po(le))&&(i="mathml"),D?(h(e.dynamicChildren,D,q,r,o,i,a),Ur(e,t,!0)):l||f(e,t,q,V,r,o,i,a,!1),$)je?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):on(t,s,F,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=fr(t.props,v);z&&on(t,z,null,u,0)}else je&&on(t,le,Me,u,1);Es(t,$)}},remove(e,t,s,{um:n,o:{remove:r}},o){const{shapeFlag:i,children:a,anchor:l,targetStart:u,targetAnchor:c,target:f,props:h}=e;let p=o||!Jt(h);const v=Ft.get(e);if(v&&(v.flags|=8,Ft.delete(e),p=!1),f&&(r(u),r(c)),o&&r(l),i&16)for(let y=0;y<a.length;y++){const w=a[y];n(w,t,s,p,!!w.dynamicChildren)}},move:on,hydrate:Za};function on(e,t,s,{o:{insert:n},m:r},o=2){o===0&&n(e.targetAnchor,t,s);const{el:i,anchor:a,shapeFlag:l,children:u,props:c}=e,f=o===2;if(f&&n(i,t,s),!Ft.has(e)&&(!f||Jt(c))&&l&16)for(let h=0;h<u.length;h++)r(u[h],t,s,2);f&&n(a,t,s)}function Za(e,t,s,n,r,o,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:u,createText:c}},f){function h(w,M){let $=M;for(;$;){if($&&$.nodeType===8){if($.data==="teleport start anchor")t.targetStart=$;else if($.data==="teleport anchor"){t.targetAnchor=$,w._lpa=t.targetAnchor&&i(t.targetAnchor);break}}$=i($)}}function p(w,M){M.anchor=f(i(w),M,a(w),s,n,r,o)}const v=t.target=fr(t.props,l),y=Jt(t.props);if(v){const w=v._lpa||v.firstChild;t.shapeFlag&16&&(y?(p(e,t),h(v,w),t.targetAnchor||dr(v,t,c,u,a(e)===v?e:null)):(t.anchor=i(e),h(v,w),t.targetAnchor||dr(v,t,c,u),f(w&&i(w),t,v,s,n,r,o))),Es(t,y)}else y&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const Nn=Wa;function Es(e,t){const s=e.ctx;if(s&&s.ut){let n,r;for(t?(n=e.el,r=e.anchor):(n=e.targetStart,r=e.targetAnchor);n&&n!==r;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function dr(e,t,s,n,r=null){const o=t.targetStart=s(""),i=t.targetAnchor=s("");return o[Ki]=i,e&&(n(o,e,r),n(i,e,r)),i}const Qa=Symbol("_leaveCb");function jr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pe(e,t){return ne(e)?Ue({name:e.name},t,{setup:e}):e}function Wi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function go(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const gn=new WeakMap;function Bs(e,t,s,n,r=!1){if(Y(e)){e.forEach((y,w)=>Bs(y,t&&(Y(t)?t[w]:t),s,n,r));return}if(gs(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Bs(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?Hn(n.component):n.el,i=r?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===xe?a.refs={}:a.refs,f=a.setupState,h=ge(f),p=f===xe?gi:y=>go(c,y)?!1:me(h,y),v=(y,w)=>!(w&&go(c,w));if(u!=null&&u!==l){if(mo(t),Ae(u))c[u]=null,p(u)&&(f[u]=null);else if(Ze(u)){const y=t;v(u,y.k)&&(u.value=null),y.k&&(c[y.k]=null)}}if(ne(l))Xs(l,a,12,[i,c]);else{const y=Ae(l),w=Ze(l);if(y||w){const M=()=>{if(e.f){const $=y?p(l)?f[l]:c[l]:v()||!e.k?l.value:c[e.k];if(r)Y($)&&Cr($,o);else if(Y($))$.includes(o)||$.push(o);else if(y)c[l]=[o],p(l)&&(f[l]=c[l]);else{const D=[o];v(l,e.k)&&(l.value=D),e.k&&(c[e.k]=D)}}else y?(c[l]=i,p(l)&&(f[l]=i)):w&&(v(l,e.k)&&(l.value=i),e.k&&(c[e.k]=i))};if(i){const $=()=>{M(),gn.delete(e)};$.id=-1,gn.set(e,$),Ye($,s)}else mo(e),M()}}}function mo(e){const t=gn.get(e);t&&(t.flags|=8,gn.delete(e))}On().requestIdleCallback;On().cancelIdleCallback;const gs=e=>!!e.type.__asyncLoader,Zi=e=>e.type.__isKeepAlive;function Ja(e,t){Qi(e,"a",t)}function Ya(e,t){Qi(e,"da",t)}function Qi(e,t,s=Ge){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Dn(t,n,s),s){let r=s.parent;for(;r&&r.parent;)Zi(r.parent.vnode)&&Xa(n,t,s,r),r=r.parent}}function Xa(e,t,s,n){const r=Dn(t,e,n,!0);Ln(()=>{Cr(n[t],r)},s)}function Dn(e,t,s=Ge,n=!1){if(s){const r=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Mt();const a=en(s),l=Tt(t,s,e,i);return a(),Nt(),l});return n?r.unshift(o):r.push(o),o}}const Bt=e=>(t,s=Ge)=>{(!Ws||e==="sp")&&Dn(e,(...n)=>t(...n),s)},ec=Bt("bm"),Gt=Bt("m"),tc=Bt("bu"),sc=Bt("u"),nc=Bt("bum"),Ln=Bt("um"),rc=Bt("sp"),oc=Bt("rtg"),ic=Bt("rtc");function lc(e,t=Ge){Dn("ec",e,t)}const Ji="components";function Hr(e,t){return Xi(Ji,e,!0,t)||e}const Yi=Symbol.for("v-ndc");function ac(e){return Ae(e)?Xi(Ji,e,!1)||e:e||Yi}function Xi(e,t,s=!0,n=!1){const r=Ve||Ge;if(r){const o=r.type;{const a=Zc(o,!1);if(a&&(a===t||a===tt(t)||a===En(tt(t))))return o}const i=vo(r[e]||o[e],t)||vo(r.appContext[e],t);return!i&&n?o:i}}function vo(e,t){return e&&(e[t]||e[tt(t)]||e[En(tt(t))])}function Oe(e,t,s,n){let r;const o=s,i=Y(e);if(i||Ae(e)){const a=i&&ss(e);let l=!1,u=!1;a&&(l=!at(e),u=Dt(e),e=Pn(e)),r=new Array(e.length);for(let c=0,f=e.length;c<f;c++)r[c]=t(l?u?bs(ht(e[c])):ht(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,o)}else if(ye(e))if(e[Symbol.iterator])r=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);r=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];r[l]=t(e[c],c,l,o)}}else r=[];return r}function cc(e,t){for(let s=0;s<t.length;s++){const n=t[s];if(Y(n))for(let r=0;r<n.length;r++)e[n[r].name]=n[r].fn;else n&&(e[n.name]=n.key?(...r)=>{const o=n.fn(...r);return o&&(o.key=n.key),o}:n.fn)}return e}function bo(e,t,s={},n,r){if(Ve.ce||Ve.parent&&gs(Ve.parent)&&Ve.parent.ce){const u=Object.keys(s).length>0;return t!=="default"&&(s.name=t),k(),ve(ee,null,[Ce("slot",s,n)],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),k();const i=o&&el(o(s)),a=s.key||i&&i.key,l=ve(ee,{key:(a&&!dt(a)?a:`_${t}`)+(!i&&n?"_fb":"")},i||[],i&&e._===1?64:-2);return o&&o._c&&(o._d=!0),l}function el(e){return e.some(t=>Ks(t)?!(t.type===Lt||t.type===ee&&!el(t.children)):!0)?e:null}const hr=e=>e?yl(e)?Hn(e):hr(e.parent):null,js=Ue(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=>hr(e.parent),$root:e=>hr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>sl(e),$forceUpdate:e=>e.f||(e.f=()=>{Br(e.update)}),$nextTick:e=>e.n||(e.n=Lr.bind(e.proxy)),$watch:e=>za.bind(e)}),Jn=(e,t)=>e!==xe&&!e.__isScriptSetup&&me(e,t),uc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:o,accessCache:i,type:a,appContext:l}=e;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return o[t]}else{if(Jn(n,t))return i[t]=1,n[t];if(r!==xe&&me(r,t))return i[t]=2,r[t];if(me(o,t))return i[t]=3,o[t];if(s!==xe&&me(s,t))return i[t]=4,s[t];pr&&(i[t]=0)}}const u=js[t];let c,f;if(u)return t==="$attrs"&&ze(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(s!==xe&&me(s,t))return i[t]=4,s[t];if(f=l.config.globalProperties,me(f,t))return f[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:o}=e;return Jn(r,t)?(r[t]=s,!0):n!==xe&&me(n,t)?(n[t]=s,!0):me(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:r,props:o,type:i}},a){let l;return!!(s[a]||e!==xe&&a[0]!=="$"&&me(e,a)||Jn(t,a)||me(o,a)||me(n,a)||me(js,a)||me(r.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:me(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function yo(e){return Y(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let pr=!0;function fc(e){const t=sl(e),s=e.proxy,n=e.ctx;pr=!1,t.beforeCreate&&ko(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:p,updated:v,activated:y,deactivated:w,beforeDestroy:M,beforeUnmount:$,destroyed:D,unmounted:T,render:H,renderTracked:se,renderTriggered:F,errorCaptured:ue,serverPrefetch:le,expose:Me,inheritAttrs:je,components:q,directives:V,filters:z}=t;if(u&&dc(u,n,null),i)for(const re in i){const I=i[re];ne(I)&&(n[re]=I.bind(s))}if(r){const re=r.call(s,s);ye(re)&&(e.data=zt(re))}if(pr=!0,o)for(const re in o){const I=o[re],E=ne(I)?I.bind(s,s):ne(I.get)?I.get.bind(s,s):Rt,J=!ne(I)&&ne(I.set)?I.set.bind(s):Rt,B=K({get:E,set:J});Object.defineProperty(n,re,{enumerable:!0,configurable:!0,get:()=>B.value,set:he=>B.value=he})}if(a)for(const re in a)tl(a[re],n,s,re);if(l){const re=ne(l)?l.call(s):l;Reflect.ownKeys(re).forEach(I=>{ps(I,re[I])})}c&&ko(c,e,"c");function ke(re,I){Y(I)?I.forEach(E=>re(E.bind(s))):I&&re(I.bind(s))}if(ke(ec,f),ke(Gt,h),ke(tc,p),ke(sc,v),ke(Ja,y),ke(Ya,w),ke(lc,ue),ke(ic,se),ke(oc,F),ke(nc,$),ke(Ln,T),ke(rc,le),Y(Me))if(Me.length){const re=e.exposed||(e.exposed={});Me.forEach(I=>{Object.defineProperty(re,I,{get:()=>s[I],set:E=>s[I]=E,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===Rt&&(e.render=H),je!=null&&(e.inheritAttrs=je),q&&(e.components=q),V&&(e.directives=V),le&&Wi(e)}function dc(e,t,s=Rt){Y(e)&&(e=gr(e));for(const n in e){const r=e[n];let o;ye(r)?"default"in r?o=ot(r.from||n,r.default,!0):o=ot(r.from||n):o=ot(r),Ze(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[n]=o}}function ko(e,t,s){Tt(Y(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function tl(e,t,s,n){let r=n.includes(".")?Gi(s,n):()=>s[n];if(Ae(e)){const o=t[e];ne(o)&&Ls(r,o)}else if(ne(e))Ls(r,e.bind(s));else if(ye(e))if(Y(e))e.forEach(o=>tl(o,t,s,n));else{const o=ne(e.handler)?e.handler.bind(s):t[e.handler];ne(o)&&Ls(r,o,e)}}function sl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!r.length&&!s&&!n?l=t:(l={},r.length&&r.forEach(u=>mn(l,u,i,!0)),mn(l,t,i)),ye(t)&&o.set(t,l),l}function mn(e,t,s,n=!1){const{mixins:r,extends:o}=t;o&&mn(e,o,s,!0),r&&r.forEach(i=>mn(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=hc[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const hc={data:_o,props:wo,emits:wo,methods:Is,computed:Is,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:Is,directives:Is,watch:gc,provide:_o,inject:pc};function _o(e,t){return t?e?function(){return Ue(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function pc(e,t){return Is(gr(e),gr(t))}function gr(e){if(Y(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Je(e,t){return e?[...new Set([].concat(e,t))]:t}function Is(e,t){return e?Ue(Object.create(null),e,t):t}function wo(e,t){return e?Y(e)&&Y(t)?[...new Set([...e,...t])]:Ue(Object.create(null),yo(e),yo(t??{})):t}function gc(e,t){if(!e)return t;if(!t)return e;const s=Ue(Object.create(null),e);for(const n in t)s[n]=Je(e[n],t[n]);return s}function nl(){return{app:null,config:{isNativeTag:gi,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 mc=0;function vc(e,t){return function(n,r=null){ne(n)||(n=Ue({},n)),r!=null&&!ye(r)&&(r=null);const o=nl(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:mc++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Jc,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&ne(c.install)?(i.add(c),c.install(u,...f)):ne(c)&&(i.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,h){if(!l){const p=u._ceVNode||Ce(n,r);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(p,c,h),l=!0,u._container=c,c.__vue_app__=u,Hn(p.component)}},onUnmount(c){a.push(c)},unmount(){l&&(Tt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=ms;ms=u;try{return c()}finally{ms=f}}};return u}}let ms=null;const bc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${qt(t)}Modifiers`];function yc(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||xe;let r=s;const o=t.startsWith("update:"),i=o&&bc(n,t.slice(7));i&&(i.trim&&(r=s.map(c=>Ae(c)?c.trim():c)),i.number&&(r=s.map(In)));let a,l=n[a=Gn(t)]||n[a=Gn(tt(t))];!l&&o&&(l=n[a=Gn(qt(t))]),l&&Tt(l,e,6,r);const u=n[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Tt(u,e,6,r)}}const kc=new WeakMap;function rl(e,t,s=!1){const n=s?kc:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const o=e.emits;let i={},a=!1;if(!ne(e)){const l=u=>{const c=rl(u,t,!0);c&&(a=!0,Ue(i,c))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(ye(e)&&n.set(e,null),null):(Y(o)?o.forEach(l=>i[l]=null):Ue(i,o),ye(e)&&n.set(e,i),i)}function Bn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,qt(t))||me(e,t))}function xo(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[o],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:f,data:h,setupState:p,ctx:v,inheritAttrs:y}=e,w=pn(e);let M,$;try{if(s.shapeFlag&4){const T=r||n,H=T;M=wt(u.call(H,T,c,f,p,h,v)),$=a}else{const T=t;M=wt(T.length>1?T(f,{attrs:a,slots:i,emit:l}):T(f,null)),$=t.props?a:_c(a)}}catch(T){Hs.length=0,Mn(T,e,1),M=Ce(Lt)}let D=M;if($&&y!==!1){const T=Object.keys($),{shapeFlag:H}=D;T.length&&H&7&&(o&&T.some(Cn)&&($=wc($,o)),D=ks(D,$,!1,!0))}return s.dirs&&(D=ks(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(s.dirs):s.dirs),s.transition&&jr(D,s.transition),M=D,pn(w),M}const _c=e=>{let t;for(const s in e)(s==="class"||s==="style"||Tn(s))&&((t||(t={}))[s]=e[s]);return t},wc=(e,t)=>{const s={};for(const n in e)(!Cn(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function xc(e,t,s){const{props:n,children:r,component:o}=e,{props:i,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return n?So(n,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(ol(i,n,h)&&!Bn(u,h))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:n===i?!1:n?i?So(n,i,u):!0:!!i;return!1}function So(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const o=n[r];if(ol(t,e,o)&&!Bn(s,o))return!0}return!1}function ol(e,t,s){const n=e[s],r=t[s];return s==="style"&&ye(n)&&ye(r)?!Ys(n,r):n!==r}function Sc({vnode:e,parent:t,suspense:s},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=n,e=r),r===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const il={},ll=()=>Object.create(il),al=e=>Object.getPrototypeOf(e)===il;function Rc(e,t,s,n=!1){const r={},o=ll();e.propsDefaults=Object.create(null),cl(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);s?e.props=n?r:Li(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Tc(e,t,s,n){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,a=ge(r),[l]=e.propsOptions;let u=!1;if((n||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(Bn(e.emitsOptions,h))continue;const p=t[h];if(l)if(me(o,h))p!==o[h]&&(o[h]=p,u=!0);else{const v=tt(h);r[v]=mr(l,a,v,p,e,!1)}else p!==o[h]&&(o[h]=p,u=!0)}}}else{cl(e,t,r,o)&&(u=!0);let c;for(const f in a)(!t||!me(t,f)&&((c=qt(f))===f||!me(t,c)))&&(l?s&&(s[f]!==void 0||s[c]!==void 0)&&(r[f]=mr(l,a,f,void 0,e,!0)):delete r[f]);if(o!==a)for(const f in o)(!t||!me(t,f))&&(delete o[f],u=!0)}u&&Ot(e.attrs,"set","")}function cl(e,t,s,n){const[r,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Ms(l))continue;const u=t[l];let c;r&&me(r,c=tt(l))?!o||!o.includes(c)?s[c]=u:(a||(a={}))[c]=u:Bn(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,i=!0)}if(o){const l=ge(s),u=a||xe;for(let c=0;c<o.length;c++){const f=o[c];s[f]=mr(r,l,f,u[f],e,!me(u,f))}}return i}function mr(e,t,s,n,r,o){const i=e[s];if(i!=null){const a=me(i,"default");if(a&&n===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&ne(l)){const{propsDefaults:u}=r;if(s in u)n=u[s];else{const c=en(r);n=u[s]=l.call(null,t),c()}}else n=l;r.ce&&r.ce._setProp(s,n)}i[0]&&(o&&!a?n=!1:i[1]&&(n===""||n===qt(s))&&(n=!0))}return n}const Cc=new WeakMap;function ul(e,t,s=!1){const n=s?Cc:t.propsCache,r=n.get(e);if(r)return r;const o=e.props,i={},a=[];let l=!1;if(!ne(e)){const c=f=>{l=!0;const[h,p]=ul(f,t,!0);Ue(i,h),p&&a.push(...p)};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return ye(e)&&n.set(e,fs),fs;if(Y(o))for(let c=0;c<o.length;c++){const f=tt(o[c]);Ro(f)&&(i[f]=xe)}else if(o)for(const c in o){const f=tt(c);if(Ro(f)){const h=o[c],p=i[f]=Y(h)||ne(h)?{type:h}:Ue({},h),v=p.type;let y=!1,w=!0;if(Y(v))for(let M=0;M<v.length;++M){const $=v[M],D=ne($)&&$.name;if(D==="Boolean"){y=!0;break}else D==="String"&&(w=!1)}else y=ne(v)&&v.name==="Boolean";p[0]=y,p[1]=w,(y||me(p,"default"))&&a.push(f)}}const u=[i,a];return ye(e)&&n.set(e,u),u}function Ro(e){return e[0]!=="$"&&!Ms(e)}const Fr=e=>e==="_"||e==="_ctx"||e==="$stable",Vr=e=>Y(e)?e.map(wt):[wt(e)],$c=(e,t,s)=>{if(t._n)return t;const n=ys((...r)=>Vr(t(...r)),s);return n._c=!1,n},fl=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Fr(r))continue;const o=e[r];if(ne(o))t[r]=$c(r,o,n);else if(o!=null){const i=Vr(o);t[r]=()=>i}}},dl=(e,t)=>{const s=Vr(t);e.slots.default=()=>s},hl=(e,t,s)=>{for(const n in t)(s||!Fr(n))&&(e[n]=t[n])},Ac=(e,t,s)=>{const n=e.slots=ll();if(e.vnode.shapeFlag&32){const r=t._;r?(hl(n,t,s),s&&yi(n,"_",r,!0)):fl(t,n)}else t&&dl(e,t)},Ec=(e,t,s)=>{const{vnode:n,slots:r}=e;let o=!0,i=xe;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:hl(r,t,s):(o=!t.$stable,fl(t,r)),i=t}else t&&(dl(e,t),i={default:1});if(o)for(const a in r)!Fr(a)&&i[a]==null&&delete r[a]},Ye=Nc;function Ic(e){return Oc(e)}function Oc(e,t){const s=On();s.__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:p=Rt,insertStaticContent:v}=e,y=(g,m,b,_=null,C=null,x=null,N=void 0,P=null,O=!!m.dynamicChildren)=>{if(g===m)return;g&&!Ts(g,m)&&(_=S(g),he(g,C,x,!0),g=null),m.patchFlag===-2&&(O=!1,m.dynamicChildren=null);const{type:A,ref:Q,shapeFlag:j}=m;switch(A){case jn:w(g,m,b,_);break;case Lt:M(g,m,b,_);break;case un:g==null&&$(m,b,_,N);break;case ee:q(g,m,b,_,C,x,N,P,O);break;default:j&1?H(g,m,b,_,C,x,N,P,O):j&6?V(g,m,b,_,C,x,N,P,O):(j&64||j&128)&&A.process(g,m,b,_,C,x,N,P,O,W)}Q!=null&&C?Bs(Q,g&&g.ref,x,m||g,!m):Q==null&&g&&g.ref!=null&&Bs(g.ref,null,x,g,!0)},w=(g,m,b,_)=>{if(g==null)n(m.el=a(m.children),b,_);else{const C=m.el=g.el;m.children!==g.children&&u(C,m.children)}},M=(g,m,b,_)=>{g==null?n(m.el=l(m.children||""),b,_):m.el=g.el},$=(g,m,b,_)=>{[g.el,g.anchor]=v(g.children,m,b,_,g.el,g.anchor)},D=({el:g,anchor:m},b,_)=>{let C;for(;g&&g!==m;)C=h(g),n(g,b,_),g=C;n(m,b,_)},T=({el:g,anchor:m})=>{let b;for(;g&&g!==m;)b=h(g),r(g),g=b;r(m)},H=(g,m,b,_,C,x,N,P,O)=>{if(m.type==="svg"?N="svg":m.type==="math"&&(N="mathml"),g==null)se(m,b,_,C,x,N,P,O);else{const A=g.el&&g.el._isVueCE?g.el:null;try{A&&A._beginPatch(),le(g,m,C,x,N,P,O)}finally{A&&A._endPatch()}}},se=(g,m,b,_,C,x,N,P)=>{let O,A;const{props:Q,shapeFlag:j,transition:Z,dirs:te}=g;if(O=g.el=i(g.type,x,Q&&Q.is,Q),j&8?c(O,g.children):j&16&&ue(g.children,O,null,_,C,Yn(g,x),N,P),te&&Kt(g,null,_,"created"),F(O,g,g.scopeId,N,_),Q){for(const we in Q)we!=="value"&&!Ms(we)&&o(O,we,null,Q[we],x,_);"value"in Q&&o(O,"value",null,Q.value,x),(A=Q.onVnodeBeforeMount)&&bt(A,_,g)}te&&Kt(g,null,_,"beforeMount");const de=Pc(C,Z);de&&Z.beforeEnter(O),n(O,m,b),((A=Q&&Q.onVnodeMounted)||de||te)&&Ye(()=>{try{A&&bt(A,_,g),de&&Z.enter(O),te&&Kt(g,null,_,"mounted")}finally{}},C)},F=(g,m,b,_,C)=>{if(b&&p(g,b),_)for(let x=0;x<_.length;x++)p(g,_[x]);if(C){let x=C.subTree;if(m===x||ml(x.type)&&(x.ssContent===m||x.ssFallback===m)){const N=C.vnode;F(g,N,N.scopeId,N.slotScopeIds,C.parent)}}},ue=(g,m,b,_,C,x,N,P,O=0)=>{for(let A=O;A<g.length;A++){const Q=g[A]=P?Et(g[A]):wt(g[A]);y(null,Q,m,b,_,C,x,N,P)}},le=(g,m,b,_,C,x,N)=>{const P=m.el=g.el;let{patchFlag:O,dynamicChildren:A,dirs:Q}=m;O|=g.patchFlag&16;const j=g.props||xe,Z=m.props||xe;let te;if(b&&Wt(b,!1),(te=Z.onVnodeBeforeUpdate)&&bt(te,b,m,g),Q&&Kt(m,g,b,"beforeUpdate"),b&&Wt(b,!0),(j.innerHTML&&Z.innerHTML==null||j.textContent&&Z.textContent==null)&&c(P,""),A?Me(g.dynamicChildren,A,P,b,_,Yn(m,C),x):N||I(g,m,P,null,b,_,Yn(m,C),x,!1),O>0){if(O&16)je(P,j,Z,b,C);else if(O&2&&j.class!==Z.class&&o(P,"class",null,Z.class,C),O&4&&o(P,"style",j.style,Z.style,C),O&8){const de=m.dynamicProps;for(let we=0;we<de.length;we++){const Re=de[we],Ne=j[Re],He=Z[Re];(He!==Ne||Re==="value")&&o(P,Re,Ne,He,C,b)}}O&1&&g.children!==m.children&&c(P,m.children)}else!N&&A==null&&je(P,j,Z,b,C);((te=Z.onVnodeUpdated)||Q)&&Ye(()=>{te&&bt(te,b,m,g),Q&&Kt(m,g,b,"updated")},_)},Me=(g,m,b,_,C,x,N)=>{for(let P=0;P<m.length;P++){const O=g[P],A=m[P],Q=O.el&&(O.type===ee||!Ts(O,A)||O.shapeFlag&198)?f(O.el):b;y(O,A,Q,null,_,C,x,N,!0)}},je=(g,m,b,_,C)=>{if(m!==b){if(m!==xe)for(const x in m)!Ms(x)&&!(x in b)&&o(g,x,m[x],null,C,_);for(const x in b){if(Ms(x))continue;const N=b[x],P=m[x];N!==P&&x!=="value"&&o(g,x,P,N,C,_)}"value"in b&&o(g,"value",m.value,b.value,C)}},q=(g,m,b,_,C,x,N,P,O)=>{const A=m.el=g?g.el:a(""),Q=m.anchor=g?g.anchor:a("");let{patchFlag:j,dynamicChildren:Z,slotScopeIds:te}=m;te&&(P=P?P.concat(te):te),g==null?(n(A,b,_),n(Q,b,_),ue(m.children||[],b,Q,C,x,N,P,O)):j>0&&j&64&&Z&&g.dynamicChildren&&g.dynamicChildren.length===Z.length?(Me(g.dynamicChildren,Z,b,C,x,N,P),(m.key!=null||C&&m===C.subTree)&&Ur(g,m,!0)):I(g,m,b,Q,C,x,N,P,O)},V=(g,m,b,_,C,x,N,P,O)=>{m.slotScopeIds=P,g==null?m.shapeFlag&512?C.ctx.activate(m,b,_,N,O):z(m,b,_,C,x,N,O):Ee(g,m,O)},z=(g,m,b,_,C,x,N)=>{const P=g.component=Uc(g,_,C);if(Zi(g)&&(P.ctx.renderer=W),zc(P,!1,N),P.asyncDep){if(C&&C.registerDep(P,ke,N),!g.el){const O=P.subTree=Ce(Lt);M(null,O,m,b),g.placeholder=O.el}}else ke(P,g,m,b,C,x,N)},Ee=(g,m,b)=>{const _=m.component=g.component;if(xc(g,m,b))if(_.asyncDep&&!_.asyncResolved){re(_,m,b);return}else _.next=m,_.update();else m.el=g.el,_.vnode=m},ke=(g,m,b,_,C,x,N)=>{const P=()=>{if(g.isMounted){let{next:j,bu:Z,u:te,parent:de,vnode:we}=g;{const mt=pl(g);if(mt){j&&(j.el=we.el,re(g,j,N)),mt.asyncDep.then(()=>{Ye(()=>{g.isUnmounted||A()},C)});return}}let Re=j,Ne;Wt(g,!1),j?(j.el=we.el,re(g,j,N)):j=we,Z&&cn(Z),(Ne=j.props&&j.props.onVnodeBeforeUpdate)&&bt(Ne,de,j,we),Wt(g,!0);const He=xo(g),gt=g.subTree;g.subTree=He,y(gt,He,f(gt.el),S(gt),g,C,x),j.el=He.el,Re===null&&Sc(g,He.el),te&&Ye(te,C),(Ne=j.props&&j.props.onVnodeUpdated)&&Ye(()=>bt(Ne,de,j,we),C)}else{let j;const{el:Z,props:te}=m,{bm:de,m:we,parent:Re,root:Ne,type:He}=g,gt=gs(m);Wt(g,!1),de&&cn(de),!gt&&(j=te&&te.onVnodeBeforeMount)&&bt(j,Re,m),Wt(g,!0);{Ne.ce&&Ne.ce._hasShadowRoot()&&Ne.ce._injectChildStyle(He,g.parent?g.parent.type:void 0);const mt=g.subTree=xo(g);y(null,mt,b,_,g,C,x),m.el=mt.el}if(we&&Ye(we,C),!gt&&(j=te&&te.onVnodeMounted)){const mt=m;Ye(()=>bt(j,Re,mt),C)}(m.shapeFlag&256||Re&&gs(Re.vnode)&&Re.vnode.shapeFlag&256)&&g.a&&Ye(g.a,C),g.isMounted=!0,m=b=_=null}};g.scope.on();const O=g.effect=new xi(P);g.scope.off();const A=g.update=O.run.bind(O),Q=g.job=O.runIfDirty.bind(O);Q.i=g,Q.id=g.uid,O.scheduler=()=>Br(Q),Wt(g,!0),A()},re=(g,m,b)=>{m.component=g;const _=g.vnode.props;g.vnode=m,g.next=null,Tc(g,m.props,_,b),Ec(g,m.children,b),Mt(),fo(g),Nt()},I=(g,m,b,_,C,x,N,P,O=!1)=>{const A=g&&g.children,Q=g?g.shapeFlag:0,j=m.children,{patchFlag:Z,shapeFlag:te}=m;if(Z>0){if(Z&128){J(A,j,b,_,C,x,N,P,O);return}else if(Z&256){E(A,j,b,_,C,x,N,P,O);return}}te&8?(Q&16&&$e(A,C,x),j!==A&&c(b,j)):Q&16?te&16?J(A,j,b,_,C,x,N,P,O):$e(A,C,x,!0):(Q&8&&c(b,""),te&16&&ue(j,b,_,C,x,N,P,O))},E=(g,m,b,_,C,x,N,P,O)=>{g=g||fs,m=m||fs;const A=g.length,Q=m.length,j=Math.min(A,Q);let Z;for(Z=0;Z<j;Z++){const te=m[Z]=O?Et(m[Z]):wt(m[Z]);y(g[Z],te,b,null,C,x,N,P,O)}A>Q?$e(g,C,x,!0,!1,j):ue(m,b,_,C,x,N,P,O,j)},J=(g,m,b,_,C,x,N,P,O)=>{let A=0;const Q=m.length;let j=g.length-1,Z=Q-1;for(;A<=j&&A<=Z;){const te=g[A],de=m[A]=O?Et(m[A]):wt(m[A]);if(Ts(te,de))y(te,de,b,null,C,x,N,P,O);else break;A++}for(;A<=j&&A<=Z;){const te=g[j],de=m[Z]=O?Et(m[Z]):wt(m[Z]);if(Ts(te,de))y(te,de,b,null,C,x,N,P,O);else break;j--,Z--}if(A>j){if(A<=Z){const te=Z+1,de=te<Q?m[te].el:_;for(;A<=Z;)y(null,m[A]=O?Et(m[A]):wt(m[A]),b,de,C,x,N,P,O),A++}}else if(A>Z)for(;A<=j;)he(g[A],C,x,!0),A++;else{const te=A,de=A,we=new Map;for(A=de;A<=Z;A++){const nt=m[A]=O?Et(m[A]):wt(m[A]);nt.key!=null&&we.set(nt.key,A)}let Re,Ne=0;const He=Z-de+1;let gt=!1,mt=0;const Ss=new Array(He);for(A=0;A<He;A++)Ss[A]=0;for(A=te;A<=j;A++){const nt=g[A];if(Ne>=He){he(nt,C,x,!0);continue}let vt;if(nt.key!=null)vt=we.get(nt.key);else for(Re=de;Re<=Z;Re++)if(Ss[Re-de]===0&&Ts(nt,m[Re])){vt=Re;break}vt===void 0?he(nt,C,x,!0):(Ss[vt-de]=A+1,vt>=mt?mt=vt:gt=!0,y(nt,m[vt],b,null,C,x,N,P,O),Ne++)}const ro=gt?Mc(Ss):fs;for(Re=ro.length-1,A=He-1;A>=0;A--){const nt=de+A,vt=m[nt],oo=m[nt+1],io=nt+1<Q?oo.el||gl(oo):_;Ss[A]===0?y(null,vt,b,io,C,x,N,P,O):gt&&(Re<0||A!==ro[Re]?B(vt,b,io,2):Re--)}}},B=(g,m,b,_,C=null)=>{const{el:x,type:N,transition:P,children:O,shapeFlag:A}=g;if(A&6){B(g.component.subTree,m,b,_);return}if(A&128){g.suspense.move(m,b,_);return}if(A&64){N.move(g,m,b,W);return}if(N===ee){n(x,m,b);for(let j=0;j<O.length;j++)B(O[j],m,b,_);n(g.anchor,m,b);return}if(N===un){D(g,m,b);return}if(_!==2&&A&1&&P)if(_===0)P.beforeEnter(x),n(x,m,b),Ye(()=>P.enter(x),C);else{const{leave:j,delayLeave:Z,afterLeave:te}=P,de=()=>{g.ctx.isUnmounted?r(x):n(x,m,b)},we=()=>{x._isLeaving&&x[Qa](!0),j(x,()=>{de(),te&&te()})};Z?Z(x,de,we):we()}else n(x,m,b)},he=(g,m,b,_=!1,C=!1)=>{const{type:x,props:N,ref:P,children:O,dynamicChildren:A,shapeFlag:Q,patchFlag:j,dirs:Z,cacheIndex:te,memo:de}=g;if(j===-2&&(C=!1),P!=null&&(Mt(),Bs(P,null,b,g,!0),Nt()),te!=null&&(m.renderCache[te]=void 0),Q&256){m.ctx.deactivate(g);return}const we=Q&1&&Z,Re=!gs(g);let Ne;if(Re&&(Ne=N&&N.onVnodeBeforeUnmount)&&bt(Ne,m,g),Q&6)fe(g.component,b,_);else{if(Q&128){g.suspense.unmount(b,_);return}we&&Kt(g,null,m,"beforeUnmount"),Q&64?g.type.remove(g,m,b,W,_):A&&!A.hasOnce&&(x!==ee||j>0&&j&64)?$e(A,m,b,!1,!0):(x===ee&&j&384||!C&&Q&16)&&$e(O,m,b),_&&st(g)}const He=de!=null&&te==null;(Re&&(Ne=N&&N.onVnodeUnmounted)||we||He)&&Ye(()=>{Ne&&bt(Ne,m,g),we&&Kt(g,null,m,"unmounted"),He&&(g.el=null)},b)},st=g=>{const{type:m,el:b,anchor:_,transition:C}=g;if(m===ee){Qe(b,_);return}if(m===un){T(g);return}const x=()=>{r(b),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(g.shapeFlag&1&&C&&!C.persisted){const{leave:N,delayLeave:P}=C,O=()=>N(b,x);P?P(g.el,x,O):O()}else x()},Qe=(g,m)=>{let b;for(;g!==m;)b=h(g),r(g),g=b;r(m)},fe=(g,m,b)=>{const{bum:_,scope:C,job:x,subTree:N,um:P,m:O,a:A}=g;To(O),To(A),_&&cn(_),C.stop(),x&&(x.flags|=8,he(N,g,m,b)),P&&Ye(P,m),Ye(()=>{g.isUnmounted=!0},m)},$e=(g,m,b,_=!1,C=!1,x=0)=>{for(let N=x;N<g.length;N++)he(g[N],m,b,_,C)},S=g=>{if(g.shapeFlag&6)return S(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const m=h(g.anchor||g.el),b=m&&m[Ki];return b?h(b):m};let U=!1;const L=(g,m,b)=>{let _;g==null?m._vnode&&(he(m._vnode,null,null,!0),_=m._vnode.component):y(m._vnode||null,g,m,null,null,null,b),m._vnode=g,U||(U=!0,fo(_),Vi(),U=!1)},W={p:y,um:he,m:B,r:st,mt:z,mc:ue,pc:I,pbc:Me,n:S,o:e};return{render:L,hydrate:void 0,createApp:vc(L)}}function Yn({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 Wt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ur(e,t,s=!1){const n=e.children,r=t.children;if(Y(n)&&Y(r))for(let o=0;o<n.length;o++){const i=n[o];let a=r[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[o]=Et(r[o]),a.el=i.el),!s&&a.patchFlag!==-2&&Ur(i,a)),a.type===jn&&(a.patchFlag===-1&&(a=r[o]=Et(a)),a.el=i.el),a.type===Lt&&!a.el&&(a.el=i.el)}}function Mc(e){const t=e.slice(),s=[0];let n,r,o,i,a;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(r=s[s.length-1],e[r]<u){t[n]=r,s.push(n);continue}for(o=0,i=s.length-1;o<i;)a=o+i>>1,e[s[a]]<u?o=a+1:i=a;u<e[s[o]]&&(o>0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,i=s[o-1];o-- >0;)s[o]=i,i=t[i];return s}function pl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:pl(t)}function To(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function gl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?gl(t.subTree):null}const ml=e=>e.__isSuspense;function Nc(e,t){t&&t.pendingBranch?Y(e)?t.effects.push(...e):t.effects.push(e):Va(e)}const ee=Symbol.for("v-fgt"),jn=Symbol.for("v-txt"),Lt=Symbol.for("v-cmt"),un=Symbol.for("v-stc"),Hs=[];let rt=null;function k(e=!1){Hs.push(rt=e?null:[])}function Dc(){Hs.pop(),rt=Hs[Hs.length-1]||null}let Gs=1;function vn(e,t=!1){Gs+=e,e<0&&rt&&t&&(rt.hasOnce=!0)}function vl(e){return e.dynamicChildren=Gs>0?rt||fs:null,Dc(),Gs>0&&rt&&rt.push(e),e}function R(e,t,s,n,r,o){return vl(d(e,t,s,n,r,o,!0))}function ve(e,t,s,n,r){return vl(Ce(e,t,s,n,r,!0))}function Ks(e){return e?e.__v_isVNode===!0:!1}function Ts(e,t){return e.type===t.type&&e.key===t.key}const bl=({key:e})=>e??null,fn=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Ae(e)||Ze(e)||ne(e)?{i:Ve,r:e,k:t,f:!!s}:e:null);function d(e,t=null,s=null,n=0,r=null,o=e===ee?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bl(t),ref:t&&fn(t),scopeId:qi,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:r,dynamicChildren:null,appContext:null,ctx:Ve};return a?(qr(l,s),o&128&&e.normalize(l)):s&&(l.shapeFlag|=Ae(s)?8:16),Gs>0&&!i&&rt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&rt.push(l),l}const Ce=Lc;function Lc(e,t=null,s=null,n=0,r=null,o=!1){if((!e||e===Yi)&&(e=Lt),Ks(e)){const a=ks(e,t,!0);return s&&qr(a,s),Gs>0&&!o&&rt&&(a.shapeFlag&6?rt[rt.indexOf(e)]=a:rt.push(a)),a.patchFlag=-2,a}if(Qc(e)&&(e=e.__vccOpts),t){t=Bc(t);let{class:a,style:l}=t;a&&!Ae(a)&&(t.class=Se(a)),ye(l)&&(Dr(l)&&!Y(l)&&(l=Ue({},l)),t.style=Ar(l))}const i=Ae(e)?1:ml(e)?128:Ga(e)?64:ye(e)?4:ne(e)?2:0;return d(e,t,s,n,r,i,o,!0)}function Bc(e){return e?Dr(e)||al(e)?Ue({},e):e:null}function ks(e,t,s=!1,n=!1){const{props:r,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?Hc(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&bl(u),ref:t&&t.ref?s&&o?Y(o)?o.concat(fn(t)):[o,fn(t)]:fn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ee?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ks(e.ssContent),ssFallback:e.ssFallback&&ks(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&jr(c,l.clone(c)),c}function ie(e=" ",t=0){return Ce(jn,null,e,t)}function jc(e,t){const s=Ce(un,null,e);return s.staticCount=t,s}function X(e="",t=!1){return t?(k(),ve(Lt,null,e)):Ce(Lt,null,e)}function wt(e){return e==null||typeof e=="boolean"?Ce(Lt):Y(e)?Ce(ee,null,e.slice()):Ks(e)?Et(e):Ce(jn,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ks(e)}function qr(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Y(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),qr(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!al(t)?t._ctx=Ve:r===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:Ve},s=32):(t=String(t),n&64?(s=16,t=[ie(t)]):s=8);e.children=t,e.shapeFlag|=s}function Hc(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Se([t.class,n.class]));else if(r==="style")t.style=Ar([t.style,n.style]);else if(Tn(r)){const o=t[r],i=n[r];i&&o!==i&&!(Y(o)&&o.includes(i))?t[r]=o?[].concat(o,i):i:i==null&&o==null&&!Cn(r)&&(t[r]=i)}else r!==""&&(t[r]=n[r])}return t}function bt(e,t,s,n=null){Tt(e,t,7,[s,n])}const Fc=nl();let Vc=0;function Uc(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||Fc,o={uid:Vc++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new da(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ul(n,r),emitsOptions:rl(n,r),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:n.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,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=yc.bind(null,o),e.ce&&e.ce(o),o}let Ge=null;const qc=()=>Ge||Ve;let bn,vr;{const e=On(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};bn=t("__VUE_INSTANCE_SETTERS__",s=>Ge=s),vr=t("__VUE_SSR_SETTERS__",s=>Ws=s)}const en=e=>{const t=Ge;return bn(e),e.scope.on(),()=>{e.scope.off(),bn(t)}},Co=()=>{Ge&&Ge.scope.off(),bn(null)};function yl(e){return e.vnode.shapeFlag&4}let Ws=!1;function zc(e,t=!1,s=!1){t&&vr(t);const{props:n,children:r}=e.vnode,o=yl(e);Rc(e,n,o,t),Ac(e,r,s||t);const i=o?Gc(e,t):void 0;return t&&vr(!1),i}function Gc(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uc);const{setup:n}=s;if(n){Mt();const r=e.setupContext=n.length>1?Wc(e):null,o=en(e),i=Xs(n,e,0,[e.props,r]),a=mi(i);if(Nt(),o(),(a||e.sp)&&!gs(e)&&Wi(e),a){if(i.then(Co,Co),t)return i.then(l=>{$o(e,l)}).catch(l=>{Mn(l,e,0)});e.asyncDep=i}else $o(e,i)}else kl(e)}function $o(e,t,s){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=ji(t)),kl(e)}function kl(e,t,s){const n=e.type;e.render||(e.render=n.render||Rt);{const r=en(e);Mt();try{fc(e)}finally{Nt(),r()}}}const Kc={get(e,t){return ze(e,"get",""),e[t]}};function Wc(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Kc),slots:e.slots,emit:e.emit,expose:t}}function Hn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ji(Oa(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in js)return js[s](e)},has(t,s){return s in t||s in js}})):e.proxy}function Zc(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function Qc(e){return ne(e)&&"__vccOpts"in e}const K=(e,t)=>La(e,t,Ws);function _l(e,t,s){try{vn(-1);const n=arguments.length;return n===2?ye(t)&&!Y(t)?Ks(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Ks(s)&&(s=[s]),Ce(e,t,s))}finally{vn(1)}}const Jc="3.5.34";/**
14
+ * @vue/runtime-dom v3.5.34
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let br;const Ao=typeof window<"u"&&window.trustedTypes;if(Ao)try{br=Ao.createPolicy("vue",{createHTML:e=>e})}catch{}const wl=br?e=>br.createHTML(e):e=>e,Yc="http://www.w3.org/2000/svg",Xc="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,Eo=At&&At.createElement("template"),eu={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?At.createElementNS(Yc,e):t==="mathml"?At.createElementNS(Xc,e):s?At.createElement(e,{is:s}):At.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>At.createTextNode(e),createComment:e=>At.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>At.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,o){const i=s?s.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===o||!(r=r.nextSibling)););else{Eo.innerHTML=wl(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=Eo.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},tu=Symbol("_vtc");function su(e,t,s){const n=e[tu];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const yn=Symbol("_vod"),xl=Symbol("_vsh"),it={name:"show",beforeMount(e,{value:t},{transition:s}){e[yn]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Cs(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),Cs(e,!0),n.enter(e)):n.leave(e,()=>{Cs(e,!1)}):Cs(e,t))},beforeUnmount(e,{value:t}){Cs(e,t)}};function Cs(e,t){e.style.display=t?e[yn]:"none",e[xl]=!t}const nu=Symbol(""),ru=/(?:^|;)\s*display\s*:/;function ou(e,t,s){const n=e.style,r=Ae(s);let o=!1;if(s&&!r){if(t)if(Ae(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();s[a]==null&&Os(n,a,"")}else for(const i in t)s[i]==null&&Os(n,i,"");for(const i in s){i==="display"&&(o=!0);const a=s[i];a!=null?lu(e,i,!Ae(t)&&t?t[i]:void 0,a)||Os(n,i,a):Os(n,i,"")}}else if(r){if(t!==s){const i=n[nu];i&&(s+=";"+i),n.cssText=s,o=ru.test(s)}}else t&&e.removeAttribute("style");yn in e&&(e[yn]=o?n.display:"",e[xl]&&(n.display="none"))}const Io=/\s*!important$/;function Os(e,t,s){if(Y(s))s.forEach(n=>Os(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=iu(e,t);Io.test(s)?e.setProperty(qt(n),s.replace(Io,""),"important"):e[n]=s}}const Oo=["Webkit","Moz","ms"],Xn={};function iu(e,t){const s=Xn[t];if(s)return s;let n=tt(t);if(n!=="filter"&&n in e)return Xn[t]=n;n=En(n);for(let r=0;r<Oo.length;r++){const o=Oo[r]+n;if(o in e)return Xn[t]=o}return t}function lu(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Ae(n)&&s===n}const Po="http://www.w3.org/1999/xlink";function Mo(e,t,s,n,r,o=ca(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Po,t.slice(6,t.length)):e.setAttributeNS(Po,t,s):s==null||o&&!ki(s)?e.removeAttribute(t):e.setAttribute(t,o?"":dt(s)?String(s):s)}function No(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?wl(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=s==null?e.type==="checkbox"?"on":"":String(s);(a!==l||!("_value"in e))&&(e.value=l),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=ki(s):s==null&&a==="string"?(s="",i=!0):a==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(r||t)}function Yt(e,t,s,n){e.addEventListener(t,s,n)}function au(e,t,s,n){e.removeEventListener(t,s,n)}const Do=Symbol("_vei");function cu(e,t,s,n,r=null){const o=e[Do]||(e[Do]={}),i=o[t];if(n&&i)i.value=n;else{const[a,l]=uu(t);if(n){const u=o[t]=hu(n,r);Yt(e,a,u,l)}else i&&(au(e,a,i,l),o[t]=void 0)}}const Lo=/(?:Once|Passive|Capture)$/;function uu(e){let t;if(Lo.test(e)){t={};let n;for(;n=e.match(Lo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):qt(e.slice(2)),t]}let er=0;const fu=Promise.resolve(),du=()=>er||(fu.then(()=>er=0),er=Date.now());function hu(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Tt(pu(n,s.value),t,5,[n])};return s.value=e,s.attached=du(),s}function pu(e,t){if(Y(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Bo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,gu=(e,t,s,n,r,o)=>{const i=r==="svg";t==="class"?su(e,n,i):t==="style"?ou(e,s,n):Tn(t)?Cn(t)||cu(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mu(e,t,n,i))?(No(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mo(e,t,n,i,o,t!=="value")):e._isVueCE&&(vu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ae(n)))?No(e,tt(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mo(e,t,n,i))};function mu(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bo(t)&&ne(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Bo(t)&&Ae(s)?!1:t in e}function vu(e,t){const s=e._def.props;if(!s)return!1;const n=tt(t);return Array.isArray(s)?s.some(r=>tt(r)===n):Object.keys(s).some(r=>tt(r)===n)}const kn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Y(t)?s=>cn(t,s):t};function bu(e){e.target.composing=!0}function jo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const vs=Symbol("_assign");function Ho(e,t,s){return t&&(e=e.trim()),s&&(e=In(e)),e}const yu={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e[vs]=kn(r);const o=n||r.props&&r.props.type==="number";Yt(e,t?"change":"input",i=>{i.target.composing||e[vs](Ho(e.value,s,o))}),(s||o)&&Yt(e,"change",()=>{e.value=Ho(e.value,s,o)}),t||(Yt(e,"compositionstart",bu),Yt(e,"compositionend",jo),Yt(e,"change",jo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:o}},i){if(e[vs]=kn(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?In(e.value):e.value,l=t??"";if(a===l)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===l)||(e.value=l)}},Sl={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const r=$n(t);Yt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?In(_n(i)):_n(i));e[vs](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Lr(()=>{e._assigning=!1})}),e[vs]=kn(n)},mounted(e,{value:t}){Fo(e,t)},beforeUpdate(e,t,s){e[vs]=kn(s)},updated(e,{value:t}){e._assigning||Fo(e,t)}};function Fo(e,t){const s=e.multiple,n=Y(t);if(!(s&&!n&&!$n(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],a=_n(i);if(s)if(n){const l=typeof a;l==="string"||l==="number"?i.selected=t.some(u=>String(u)===String(a)):i.selected=fa(t,a)>-1}else i.selected=t.has(a);else if(Ys(_n(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function _n(e){return"_value"in e?e._value:e.value}const ku=["ctrl","shift","alt","meta"],_u={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ku.some(s=>e[`${s}Key`]&&!t.includes(s))},Fs=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((r,...o)=>{for(let i=0;i<t.length;i++){const a=_u[t[i]];if(a&&a(r,t))return}return e(r,...o)}))},wu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Zs=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(r=>{if(!("key"in r))return;const o=qt(r.key);if(t.some(i=>i===o||wu[i]===o))return e(r)}))},xu=Ue({patchProp:gu},eu);let Vo;function Su(){return Vo||(Vo=Ic(xu))}const Ru=((...e)=>{const t=Su().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=Cu(n);if(!r)return;const o=t._component;!ne(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=s(r,!1,Tu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function Tu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cu(e){return Ae(e)?document.querySelector(e):e}/*!
18
+ * vue-router v4.6.4
19
+ * (c) 2025 Eduardo San Martin Morote
20
+ * @license MIT
21
+ */const as=typeof document<"u";function Rl(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $u(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Rl(e.default)}const pe=Object.assign;function tr(e,t){const s={};for(const n in t){const r=t[n];s[n]=pt(r)?r.map(e):e(r)}return s}const Vs=()=>{},pt=Array.isArray;function Uo(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}const Tl=/#/g,Au=/&/g,Eu=/\//g,Iu=/=/g,Ou=/\?/g,Cl=/\+/g,Pu=/%5B/g,Mu=/%5D/g,$l=/%5E/g,Nu=/%60/g,Al=/%7B/g,Du=/%7C/g,El=/%7D/g,Lu=/%20/g;function zr(e){return e==null?"":encodeURI(""+e).replace(Du,"|").replace(Pu,"[").replace(Mu,"]")}function Bu(e){return zr(e).replace(Al,"{").replace(El,"}").replace($l,"^")}function yr(e){return zr(e).replace(Cl,"%2B").replace(Lu,"+").replace(Tl,"%23").replace(Au,"%26").replace(Nu,"`").replace(Al,"{").replace(El,"}").replace($l,"^")}function ju(e){return yr(e).replace(Iu,"%3D")}function Hu(e){return zr(e).replace(Tl,"%23").replace(Ou,"%3F")}function Fu(e){return Hu(e).replace(Eu,"%2F")}function Qs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Vu=/\/$/,Uu=e=>e.replace(Vu,"");function sr(e,t,s="/"){let n,r={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(n=t.slice(0,l),o=t.slice(l,a>0?a:t.length),r=e(o.slice(1))),a>=0&&(n=n||t.slice(0,a),i=t.slice(a,t.length)),n=Ku(n??t,s),{fullPath:n+o+i,path:n,query:r,hash:Qs(i)}}function qu(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function qo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function zu(e,t,s){const n=t.matched.length-1,r=s.matched.length-1;return n>-1&&n===r&&_s(t.matched[n],s.matched[r])&&Il(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function _s(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Il(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Gu(e[s],t[s]))return!1;return!0}function Gu(e,t){return pt(e)?zo(e,t):pt(t)?zo(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function zo(e,t){return pt(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function Ku(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let o=s.length-1,i,a;for(i=0;i<n.length;i++)if(a=n[i],a!==".")if(a==="..")o>1&&o--;else break;return s.slice(0,o).join("/")+"/"+n.slice(i).join("/")}const jt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let kr=(function(e){return e.pop="pop",e.push="push",e})({}),nr=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Wu(e){if(!e)if(as){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Uu(e)}const Zu=/^[^#]+#/;function Qu(e,t){return e.replace(Zu,"#")+t}function Ju(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const Fn=()=>({left:window.scrollX,top:window.scrollY});function Yu(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),r=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!r)return;t=Ju(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Go(e,t){return(history.state?history.state.position-t:-1)+e}const _r=new Map;function Xu(e,t){_r.set(e,t)}function ef(e){const t=_r.get(e);return _r.delete(e),t}function tf(e){return typeof e=="string"||e&&typeof e=="object"}function Ol(e){return typeof e=="string"||typeof e=="symbol"}let Ie=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Pl=Symbol("");Ie.MATCHER_NOT_FOUND+"",Ie.NAVIGATION_GUARD_REDIRECT+"",Ie.NAVIGATION_ABORTED+"",Ie.NAVIGATION_CANCELLED+"",Ie.NAVIGATION_DUPLICATED+"";function ws(e,t){return pe(new Error,{type:e,[Pl]:!0},t)}function $t(e,t){return e instanceof Error&&Pl in e&&(t==null||!!(e.type&t))}const sf=["params","query","hash"];function nf(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const s of sf)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function rf(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<s.length;++n){const r=s[n].replace(Cl," "),o=r.indexOf("="),i=Qs(o<0?r:r.slice(0,o)),a=o<0?null:Qs(r.slice(o+1));if(i in t){let l=t[i];pt(l)||(l=t[i]=[l]),l.push(a)}else t[i]=a}return t}function Ko(e){let t="";for(let s in e){const n=e[s];if(s=ju(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(pt(n)?n.map(r=>r&&yr(r)):[n&&yr(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function of(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=pt(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const lf=Symbol(""),Wo=Symbol(""),Vn=Symbol(""),Gr=Symbol(""),wr=Symbol("");function $s(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Ut(e,t,s,n,r,o=i=>i()){const i=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const u=h=>{h===!1?l(ws(Ie.NAVIGATION_ABORTED,{from:s,to:t})):h instanceof Error?l(h):tf(h)?l(ws(Ie.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(i&&n.enterCallbacks[r]===i&&typeof h=="function"&&i.push(h),a())},c=o(()=>e.call(n&&n.instances[r],t,s,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function rr(e,t,s,n,r=o=>o()){const o=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Rl(l)){const u=(l.__vccOpts||l)[t];u&&o.push(Ut(u,s,n,i,a,r))}else{let u=l();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const f=$u(c)?c.default:c;i.mods[a]=c,i.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&Ut(h,s,n,i,a,r)()}))}}return o}function af(e,t){const s=[],n=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(u=>_s(u,a))?n.push(a):s.push(a));const l=e.matched[i];l&&(t.matched.find(u=>_s(u,l))||r.push(l))}return[s,n,r]}/*!
22
+ * vue-router v4.6.4
23
+ * (c) 2025 Eduardo San Martin Morote
24
+ * @license MIT
25
+ */let cf=()=>location.protocol+"//"+location.host;function Ml(e,t){const{pathname:s,search:n,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,a=r.slice(i);return a[0]!=="/"&&(a="/"+a),qo(a,"")}return qo(s,e)+n+r}function uf(e,t,s,n){let r=[],o=[],i=null;const a=({state:h})=>{const p=Ml(e,location),v=s.value,y=t.value;let w=0;if(h){if(s.value=p,t.value=h,i&&i===v){i=null;return}w=y?h.position-y.position:0}else n(p);r.forEach(M=>{M(s.value,v,{delta:w,type:kr.pop,direction:w?w>0?nr.forward:nr.back:nr.unknown})})};function l(){i=s.value}function u(h){r.push(h);const p=()=>{const v=r.indexOf(h);v>-1&&r.splice(v,1)};return o.push(p),p}function c(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(pe({},h.state,{scroll:Fn()}),"")}}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function Zo(e,t,s,n=!1,r=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:r?Fn():null}}function ff(e){const{history:t,location:s}=window,n={value:Ml(e,s)},r={value:t.state};r.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const f=e.indexOf("#"),h=f>-1?(s.host&&document.querySelector("base")?e:e.slice(f))+l:cf()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),r.value=u}catch(p){console.error(p),s[c?"replace":"assign"](h)}}function i(l,u){o(l,pe({},t.state,Zo(r.value.back,l,r.value.forward,!0),u,{position:r.value.position}),!0),n.value=l}function a(l,u){const c=pe({},r.value,t.state,{forward:l,scroll:Fn()});o(c.current,c,!0),o(l,pe({},Zo(n.value,l,null),{position:c.position+1},u),!1),n.value=l}return{location:n,state:r,push:a,replace:i}}function df(e){e=Wu(e);const t=ff(e),s=uf(e,t.state,t.location,t.replace);function n(o,i=!0){i||s.pauseListeners(),history.go(o)}const r=pe({location:"",base:e,go:n,createHref:Qu.bind(null,e)},t,s);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function hf(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),df(e)}let es=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Le=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Le||{});const pf={type:es.Static,value:""},gf=/[a-zA-Z0-9_]/;function mf(e){if(!e)return[[]];if(e==="/")return[[pf]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${s})/"${u}": ${p}`)}let s=Le.Static,n=s;const r=[];let o;function i(){o&&r.push(o),o=[]}let a=0,l,u="",c="";function f(){u&&(s===Le.Static?o.push({type:es.Static,value:u}):s===Le.Param||s===Le.ParamRegExp||s===Le.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:es.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&s!==Le.ParamRegExp){n=s,s=Le.EscapeNext;continue}switch(s){case Le.Static:l==="/"?(u&&f(),i()):l===":"?(f(),s=Le.Param):h();break;case Le.EscapeNext:h(),s=n;break;case Le.Param:l==="("?s=Le.ParamRegExp:gf.test(l)?h():(f(),s=Le.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case Le.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:s=Le.ParamRegExpEnd:c+=l;break;case Le.ParamRegExpEnd:f(),s=Le.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return s===Le.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),i(),r}const Qo="[^/]+?",vf={sensitive:!1,strict:!1,start:!0,end:!0};var Xe=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Xe||{});const bf=/[.+*?^${}()[\]/\\]/g;function yf(e,t){const s=pe({},vf,t),n=[];let r=s.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[Xe.Root];s.strict&&!u.length&&(r+="/");for(let f=0;f<u.length;f++){const h=u[f];let p=Xe.Segment+(s.sensitive?Xe.BonusCaseSensitive:0);if(h.type===es.Static)f||(r+="/"),r+=h.value.replace(bf,"\\$&"),p+=Xe.Static;else if(h.type===es.Param){const{value:v,repeatable:y,optional:w,regexp:M}=h;o.push({name:v,repeatable:y,optional:w});const $=M||Qo;if($!==Qo){p+=Xe.BonusCustomRegExp;try{`${$}`}catch(T){throw new Error(`Invalid custom RegExp for param "${v}" (${$}): `+T.message)}}let D=y?`((?:${$})(?:/(?:${$}))*)`:`(${$})`;f||(D=w&&u.length<2?`(?:/${D})`:"/"+D),w&&(D+="?"),r+=D,p+=Xe.Dynamic,w&&(p+=Xe.BonusOptional),y&&(p+=Xe.BonusRepeatable),$===".*"&&(p+=Xe.BonusWildcard)}c.push(p)}n.push(c)}if(s.strict&&s.end){const u=n.length-1;n[u][n[u].length-1]+=Xe.BonusStrict}s.strict||(r+="/?"),s.end?r+="$":s.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,s.sensitive?"":"i");function a(u){const c=u.match(i),f={};if(!c)return null;for(let h=1;h<c.length;h++){const p=c[h]||"",v=o[h-1];f[v.name]=p&&v.repeatable?p.split("/"):p}return f}function l(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const p of h)if(p.type===es.Static)c+=p.value;else if(p.type===es.Param){const{value:v,repeatable:y,optional:w}=p,M=v in u?u[v]:"";if(pt(M)&&!y)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const $=pt(M)?M.join("/"):M;if(!$)if(w)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=$}}return c||"/"}return{re:i,score:n,keys:o,parse:a,stringify:l}}function kf(e,t){let s=0;for(;s<e.length&&s<t.length;){const n=t[s]-e[s];if(n)return n;s++}return e.length<t.length?e.length===1&&e[0]===Xe.Static+Xe.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Xe.Static+Xe.Segment?1:-1:0}function Nl(e,t){let s=0;const n=e.score,r=t.score;for(;s<n.length&&s<r.length;){const o=kf(n[s],r[s]);if(o)return o;s++}if(Math.abs(r.length-n.length)===1){if(Jo(n))return 1;if(Jo(r))return-1}return r.length-n.length}function Jo(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const _f={strict:!1,end:!0,sensitive:!1};function wf(e,t,s){const n=yf(mf(e.path),s),r=pe(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function xf(e,t){const s=[],n=new Map;t=Uo(_f,t);function r(f){return n.get(f)}function o(f,h,p){const v=!p,y=Xo(f);y.aliasOf=p&&p.record;const w=Uo(t,f),M=[y];if("alias"in f){const T=typeof f.alias=="string"?[f.alias]:f.alias;for(const H of T)M.push(Xo(pe({},y,{components:p?p.record.components:y.components,path:H,aliasOf:p?p.record:y})))}let $,D;for(const T of M){const{path:H}=T;if(h&&H[0]!=="/"){const se=h.record.path,F=se[se.length-1]==="/"?"":"/";T.path=h.record.path+(H&&F+H)}if($=wf(T,h,w),p?p.alias.push($):(D=D||$,D!==$&&D.alias.push($),v&&f.name&&!ei($)&&i(f.name)),Dl($)&&l($),y.children){const se=y.children;for(let F=0;F<se.length;F++)o(se[F],$,p&&p.children[F])}p=p||$}return D?()=>{i(D)}:Vs}function i(f){if(Ol(f)){const h=n.get(f);h&&(n.delete(f),s.splice(s.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=s.indexOf(f);h>-1&&(s.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return s}function l(f){const h=Tf(f,s);s.splice(h,0,f),f.record.name&&!ei(f)&&n.set(f.record.name,f)}function u(f,h){let p,v={},y,w;if("name"in f&&f.name){if(p=n.get(f.name),!p)throw ws(Ie.MATCHER_NOT_FOUND,{location:f});w=p.record.name,v=pe(Yo(h.params,p.keys.filter(D=>!D.optional).concat(p.parent?p.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),f.params&&Yo(f.params,p.keys.map(D=>D.name))),y=p.stringify(v)}else if(f.path!=null)y=f.path,p=s.find(D=>D.re.test(y)),p&&(v=p.parse(y),w=p.record.name);else{if(p=h.name?n.get(h.name):s.find(D=>D.re.test(h.path)),!p)throw ws(Ie.MATCHER_NOT_FOUND,{location:f,currentLocation:h});w=p.record.name,v=pe({},h.params,f.params),y=p.stringify(v)}const M=[];let $=p;for(;$;)M.unshift($.record),$=$.parent;return{name:w,path:y,params:v,matched:M,meta:Rf(M)}}e.forEach(f=>o(f));function c(){s.length=0,n.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:a,getRecordMatcher:r}}function Yo(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function Xo(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Sf(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Sf(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function ei(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Rf(e){return e.reduce((t,s)=>pe(t,s.meta),{})}function Tf(e,t){let s=0,n=t.length;for(;s!==n;){const o=s+n>>1;Nl(e,t[o])<0?n=o:s=o+1}const r=Cf(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function Cf(e){let t=e;for(;t=t.parent;)if(Dl(t)&&Nl(e,t)===0)return t}function Dl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ti(e){const t=ot(Vn),s=ot(Gr),n=K(()=>{const l=De(e.to);return t.resolve(l)}),r=K(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=s.matched;if(!c||!f.length)return-1;const h=f.findIndex(_s.bind(null,c));if(h>-1)return h;const p=si(l[u-2]);return u>1&&si(c)===p&&f[f.length-1].path!==p?f.findIndex(_s.bind(null,l[u-2])):h}),o=K(()=>r.value>-1&&Of(s.params,n.value.params)),i=K(()=>r.value>-1&&r.value===s.matched.length-1&&Il(s.params,n.value.params));function a(l={}){if(If(l)){const u=t[De(e.replace)?"replace":"push"](De(e.to)).catch(Vs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:K(()=>n.value.href),isActive:o,isExactActive:i,navigate:a}}function $f(e){return e.length===1?e[0]:e}const Af=Pe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ti,setup(e,{slots:t}){const s=zt(ti(e)),{options:n}=ot(Vn),r=K(()=>({[ni(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[ni(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const o=t.default&&$f(t.default(s));return e.custom?o:_l("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},o)}}}),Ef=Af;function If(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Of(e,t){for(const s in t){const n=t[s],r=e[s];if(typeof n=="string"){if(n!==r)return!1}else if(!pt(r)||r.length!==n.length||n.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function si(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ni=(e,t,s)=>e??t??s,Pf=Pe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=ot(wr),r=K(()=>e.route||n.value),o=ot(Wo,0),i=K(()=>{let u=De(o);const{matched:c}=r.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=K(()=>r.value.matched[i.value]);ps(Wo,K(()=>i.value+1)),ps(lf,a),ps(wr,r);const l=oe();return Ls(()=>[l.value,a.value,e.name],([u,c,f],[h,p,v])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!_s(c,p)||!h)&&(c.enterCallbacks[f]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,f=a.value,h=f&&f.components[c];if(!h)return ri(s.default,{Component:h,route:u});const p=f.props[c],v=p?p===!0?u.params:typeof p=="function"?p(u):p:null,w=_l(h,pe({},v,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return ri(s.default,{Component:w,route:u})||w}}});function ri(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const Mf=Pf;function Nf(e){const t=xf(e.routes,e),s=e.parseQuery||rf,n=e.stringifyQuery||Ko,r=e.history,o=$s(),i=$s(),a=$s(),l=Pa(jt);let u=jt;as&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=tr.bind(null,S=>""+S),f=tr.bind(null,Fu),h=tr.bind(null,Qs);function p(S,U){let L,W;return Ol(S)?(L=t.getRecordMatcher(S),W=U):W=S,t.addRoute(W,L)}function v(S){const U=t.getRecordMatcher(S);U&&t.removeRoute(U)}function y(){return t.getRoutes().map(S=>S.record)}function w(S){return!!t.getRecordMatcher(S)}function M(S,U){if(U=pe({},U||l.value),typeof S=="string"){const b=sr(s,S,U.path),_=t.resolve({path:b.path},U),C=r.createHref(b.fullPath);return pe(b,_,{params:h(_.params),hash:Qs(b.hash),redirectedFrom:void 0,href:C})}let L;if(S.path!=null)L=pe({},S,{path:sr(s,S.path,U.path).path});else{const b=pe({},S.params);for(const _ in b)b[_]==null&&delete b[_];L=pe({},S,{params:f(b)}),U.params=f(U.params)}const W=t.resolve(L,U),ae=S.hash||"";W.params=c(h(W.params));const g=qu(n,pe({},S,{hash:Bu(ae),path:W.path})),m=r.createHref(g);return pe({fullPath:g,hash:ae,query:n===Ko?of(S.query):S.query||{}},W,{redirectedFrom:void 0,href:m})}function $(S){return typeof S=="string"?sr(s,S,l.value.path):pe({},S)}function D(S,U){if(u!==S)return ws(Ie.NAVIGATION_CANCELLED,{from:U,to:S})}function T(S){return F(S)}function H(S){return T(pe($(S),{replace:!0}))}function se(S,U){const L=S.matched[S.matched.length-1];if(L&&L.redirect){const{redirect:W}=L;let ae=typeof W=="function"?W(S,U):W;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=$(ae):{path:ae},ae.params={}),pe({query:S.query,hash:S.hash,params:ae.path!=null?{}:S.params},ae)}}function F(S,U){const L=u=M(S),W=l.value,ae=S.state,g=S.force,m=S.replace===!0,b=se(L,W);if(b)return F(pe($(b),{state:typeof b=="object"?pe({},ae,b.state):ae,force:g,replace:m}),U||L);const _=L;_.redirectedFrom=U;let C;return!g&&zu(n,W,L)&&(C=ws(Ie.NAVIGATION_DUPLICATED,{to:_,from:W}),B(W,W,!0,!1)),(C?Promise.resolve(C):Me(_,W)).catch(x=>$t(x)?$t(x,Ie.NAVIGATION_GUARD_REDIRECT)?x:J(x):I(x,_,W)).then(x=>{if(x){if($t(x,Ie.NAVIGATION_GUARD_REDIRECT))return F(pe({replace:m},$(x.to),{state:typeof x.to=="object"?pe({},ae,x.to.state):ae,force:g}),U||_)}else x=q(_,W,!0,m,ae);return je(_,W,x),x})}function ue(S,U){const L=D(S,U);return L?Promise.reject(L):Promise.resolve()}function le(S){const U=Qe.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(S):S()}function Me(S,U){let L;const[W,ae,g]=af(S,U);L=rr(W.reverse(),"beforeRouteLeave",S,U);for(const b of W)b.leaveGuards.forEach(_=>{L.push(Ut(_,S,U))});const m=ue.bind(null,S,U);return L.push(m),$e(L).then(()=>{L=[];for(const b of o.list())L.push(Ut(b,S,U));return L.push(m),$e(L)}).then(()=>{L=rr(ae,"beforeRouteUpdate",S,U);for(const b of ae)b.updateGuards.forEach(_=>{L.push(Ut(_,S,U))});return L.push(m),$e(L)}).then(()=>{L=[];for(const b of g)if(b.beforeEnter)if(pt(b.beforeEnter))for(const _ of b.beforeEnter)L.push(Ut(_,S,U));else L.push(Ut(b.beforeEnter,S,U));return L.push(m),$e(L)}).then(()=>(S.matched.forEach(b=>b.enterCallbacks={}),L=rr(g,"beforeRouteEnter",S,U,le),L.push(m),$e(L))).then(()=>{L=[];for(const b of i.list())L.push(Ut(b,S,U));return L.push(m),$e(L)}).catch(b=>$t(b,Ie.NAVIGATION_CANCELLED)?b:Promise.reject(b))}function je(S,U,L){a.list().forEach(W=>le(()=>W(S,U,L)))}function q(S,U,L,W,ae){const g=D(S,U);if(g)return g;const m=U===jt,b=as?history.state:{};L&&(W||m?r.replace(S.fullPath,pe({scroll:m&&b&&b.scroll},ae)):r.push(S.fullPath,ae)),l.value=S,B(S,U,L,m),J()}let V;function z(){V||(V=r.listen((S,U,L)=>{if(!fe.listening)return;const W=M(S),ae=se(W,fe.currentRoute.value);if(ae){F(pe(ae,{replace:!0,force:!0}),W).catch(Vs);return}u=W;const g=l.value;as&&Xu(Go(g.fullPath,L.delta),Fn()),Me(W,g).catch(m=>$t(m,Ie.NAVIGATION_ABORTED|Ie.NAVIGATION_CANCELLED)?m:$t(m,Ie.NAVIGATION_GUARD_REDIRECT)?(F(pe($(m.to),{force:!0}),W).then(b=>{$t(b,Ie.NAVIGATION_ABORTED|Ie.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===kr.pop&&r.go(-1,!1)}).catch(Vs),Promise.reject()):(L.delta&&r.go(-L.delta,!1),I(m,W,g))).then(m=>{m=m||q(W,g,!1),m&&(L.delta&&!$t(m,Ie.NAVIGATION_CANCELLED)?r.go(-L.delta,!1):L.type===kr.pop&&$t(m,Ie.NAVIGATION_ABORTED|Ie.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),je(W,g,m)}).catch(Vs)}))}let Ee=$s(),ke=$s(),re;function I(S,U,L){J(S);const W=ke.list();return W.length?W.forEach(ae=>ae(S,U,L)):console.error(S),Promise.reject(S)}function E(){return re&&l.value!==jt?Promise.resolve():new Promise((S,U)=>{Ee.add([S,U])})}function J(S){return re||(re=!S,z(),Ee.list().forEach(([U,L])=>S?L(S):U()),Ee.reset()),S}function B(S,U,L,W){const{scrollBehavior:ae}=e;if(!as||!ae)return Promise.resolve();const g=!L&&ef(Go(S.fullPath,0))||(W||!L)&&history.state&&history.state.scroll||null;return Lr().then(()=>ae(S,U,g)).then(m=>m&&Yu(m)).catch(m=>I(m,S,U))}const he=S=>r.go(S);let st;const Qe=new Set,fe={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:w,getRoutes:y,resolve:M,options:e,push:T,replace:H,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:ke.add,isReady:E,install(S){S.component("RouterLink",Ef),S.component("RouterView",Mf),S.config.globalProperties.$router=fe,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>De(l)}),as&&!st&&l.value===jt&&(st=!0,T(r.location).catch(W=>{}));const U={};for(const W in jt)Object.defineProperty(U,W,{get:()=>l.value[W],enumerable:!0});S.provide(Vn,fe),S.provide(Gr,Li(U)),S.provide(wr,l);const L=S.unmount;Qe.add(S),S.unmount=function(){Qe.delete(S),Qe.size<1&&(u=jt,V&&V(),V=null,l.value=jt,st=!1,re=!1),L()}}};function $e(S){return S.reduce((U,L)=>U.then(()=>le(L)),Promise.resolve())}return fe}function Kr(){return ot(Vn)}function Ll(e){return ot(Gr)}const Df={class:"header-actions"},Lf=["aria-expanded"],Bf={class:"dropdown-menu"},jf=Pe({__name:"AppHeader",props:{traceEnabled:{type:Boolean}},emits:["toggleTheme","toggleTrace","import","export","keyboardHelp"],setup(e){const t=Ll(),s=oe(!1),n=oe(null);function r(u){n.value&&!n.value.contains(u.target)&&(s.value=!1)}Gt(()=>document.addEventListener("click",r)),Ln(()=>document.removeEventListener("click",r));const o=K(()=>t.name==="sessions"),i=K(()=>t.name==="timeline");function a(){s.value=!s.value}function l(){s.value=!1}return(u,c)=>(k(),R("header",null,[c[12]||(c[12]=d("h1",null,[d("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true",width:"20",height:"20"},[d("path",{d:"M12 2L2 7l10 5 10-5-10-5z"}),d("path",{d:"M2 17l10 5 10-5"}),d("path",{d:"M2 12l10 5 10-5"})]),ie(" opencode-trace ")],-1)),d("div",Df,[d("div",{class:"dropdown",ref_key:"dropdownRef",ref:n},[d("button",{class:"dropdown-toggle",onClick:a,"aria-label":"More actions","aria-expanded":s.value},[...c[5]||(c[5]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[d("circle",{cx:"12",cy:"5",r:"1"}),d("circle",{cx:"12",cy:"12",r:"1"}),d("circle",{cx:"12",cy:"19",r:"1"})],-1)])],8,Lf),Ke(d("div",Bf,[d("button",{class:"dropdown-item",onClick:c[0]||(c[0]=f=>{u.$emit("toggleTheme"),l()})},[...c[6]||(c[6]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})],-1),ie(" Toggle theme ",-1)])]),d("button",{class:"dropdown-item",onClick:c[1]||(c[1]=f=>{u.$emit("toggleTrace"),l()})},[c[7]||(c[7]=d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("circle",{cx:"12",cy:"12",r:"10"}),d("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor"})],-1)),ie(" Trace "+G(e.traceEnabled?"ON":"OFF"),1)]),c[11]||(c[11]=d("div",{class:"dropdown-divider"},null,-1)),o.value?(k(),R("button",{key:0,class:"dropdown-item",onClick:c[2]||(c[2]=f=>{u.$emit("import"),l()})},[...c[8]||(c[8]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),d("polyline",{points:"7,10 12,15 17,10"}),d("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1),ie(" Import Session ",-1)])])):X("",!0),i.value?(k(),R("button",{key:1,class:"dropdown-item",onClick:c[3]||(c[3]=f=>{u.$emit("export"),l()})},[...c[9]||(c[9]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),d("polyline",{points:"17,8 12,3 7,8"}),d("line",{x1:"12",y1:"3",x2:"12",y2:"15"})],-1),ie(" Export Session ",-1)])])):X("",!0),d("button",{class:"dropdown-item",onClick:c[4]||(c[4]=f=>{u.$emit("keyboardHelp"),l()})},[...c[10]||(c[10]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),d("path",{d:"M6 8h.01M10 8h.01M14 8h.01M18 8h.01M6 12h12M6 16h8"})],-1),ie(" Keyboard shortcuts ",-1)])])],512),[[it,s.value]])],512)])]))}}),qe=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Hf=qe(jf,[["__scopeId","data-v-741ff62c"]]),Ff={key:0,class:"breadcrumb","aria-label":"Breadcrumb"},Vf={key:1,class:"sep"},Uf={key:2,class:"current"},qf=Pe({__name:"Breadcrumb",setup(e){const t=Ll(),s=K(()=>{const n=[{label:"Sessions",href:"/"}];if(t.name==="timeline"&&t.params.sessionId){const r=t.params.sessionId;n.push({label:r,href:`/session/${r}`})}else if(t.name==="record"&&t.params.sessionId&&t.params.recordId){const r=t.params.sessionId,o=t.params.recordId;n.push({label:r,href:`/session/${r}`}),n.push({label:`#${o}`,href:`/session/${r}/record/${o}`})}return n});return(n,r)=>{const o=Hr("router-link");return s.value.length>0?(k(),R("nav",Ff,[(k(!0),R(ee,null,Oe(s.value,(i,a)=>(k(),R(ee,{key:i.href},[a<s.value.length-1?(k(),ve(o,{key:0,to:i.href},{default:ys(()=>[ie(G(i.label),1)]),_:2},1032,["to"])):X("",!0),a<s.value.length-1?(k(),R("span",Vf,"/")):(k(),R("span",Uf,G(i.label),1))],64))),128))])):X("",!0)}}}),zf=qe(qf,[["__scopeId","data-v-ddc4b5bf"]]),Gf={class:"fab-container"},Kf=Pe({__name:"FabButtons",setup(e){function t(){const n=document.querySelector("main");n==null||n.scrollTo({top:0,behavior:"smooth"})}function s(){const n=document.querySelector("main");n&&n.scrollTo({top:n.scrollHeight,behavior:"smooth"})}return(n,r)=>(k(),R("div",Gf,[d("button",{class:"fab-scroll",onClick:t,"aria-label":"Scroll to top"},[...r[0]||(r[0]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[d("path",{d:"M18 15l-6-6-6 6"})],-1)])]),d("button",{class:"fab-scroll",onClick:s,"aria-label":"Scroll to bottom"},[...r[1]||(r[1]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[d("path",{d:"M6 9l6 6 6-6"})],-1)])])]))}}),Wf=qe(Kf,[["__scopeId","data-v-730271da"]]),is=oe([]);let Zf=0;function Un(){function e(s,n="info",r,o,i=3e3){const a=Zf++,l={id:a,message:s,type:n,actionLabel:o,onAction:r};is.value.push(l),setTimeout(()=>{is.value=is.value.filter(u=>u.id!==a)},i)}function t(s){is.value=is.value.filter(n=>n.id!==s)}return{toasts:is,showToast:e,removeToast:t}}const Qf={key:0,class:"toast-container"},Jf=["onClick"],Yf=Pe({__name:"ToastContainer",setup(e){const{toasts:t,removeToast:s}=Un();return(n,r)=>(k(),ve(Nn,{to:"body"},[De(t).length>0?(k(),R("div",Qf,[(k(!0),R(ee,null,Oe(De(t),o=>(k(),R("div",{key:o.id,class:Se(["toast",o.type])},[d("span",null,G(o.message),1),o.actionLabel?(k(),R("button",{key:0,class:"toast-action",onClick:i=>{var a;(a=o.onAction)==null||a.call(o),De(s)(o.id)}},G(o.actionLabel),9,Jf)):X("",!0)],2))),128))])):X("",!0)]))}}),Xf=qe(Yf,[["__scopeId","data-v-0871cfbd"]]),ed={class:"confirm-dialog"},td={class:"confirm-actions"},oi="confirm-title",ii="confirm-message",sd=Pe({__name:"ConfirmDialog",props:{title:{},message:{}},emits:["confirm","cancel"],setup(e){const t=oe(null);Gt(()=>{var n;(n=t.value)==null||n.focus()});function s(n){n.key}return(n,r)=>(k(),ve(Nn,{to:"body"},[d("div",{class:"confirm-overlay",role:"alertdialog","aria-modal":"true","aria-labelledby":oi,"aria-describedby":ii,onKeydown:s},[d("div",ed,[d("div",{id:oi,class:"confirm-title"},G(e.title),1),d("div",{id:ii,class:"confirm-message"},G(e.message),1),d("div",td,[d("button",{class:"confirm-btn cancel",ref_key:"cancelBtnRef",ref:t,onClick:r[0]||(r[0]=o=>n.$emit("cancel"))},"Cancel",512),d("button",{class:"confirm-btn danger",onClick:r[1]||(r[1]=o=>n.$emit("confirm"))},"Delete")])])],32)]))}}),nd=qe(sd,[["__scopeId","data-v-4c95e883"]]),rd={class:"keyboard-help"},od=Pe({__name:"KeyboardHelp",emits:["close"],setup(e){const t=oe(null);return Gt(()=>{var s;(s=t.value)==null||s.focus()}),(s,n)=>(k(),ve(Nn,{to:"body"},[d("div",{class:"keyboard-help-overlay","aria-modal":"true",role:"dialog","aria-labelledby":"keyboard-help-title",onClick:n[1]||(n[1]=Fs(r=>s.$emit("close"),["self"])),onKeydown:n[2]||(n[2]=Zs(r=>s.$emit("close"),["escape"]))},[d("div",rd,[n[3]||(n[3]=d("h3",{id:"keyboard-help-title"},"Keyboard Shortcuts",-1)),n[4]||(n[4]=d("div",{class:"shortcut-list"},[d("div",{class:"shortcut"},[d("kbd",null,"/"),ie(" Focus search")]),d("div",{class:"shortcut"},[d("kbd",null,"E"),ie(" Export session (on session view)")]),d("div",{class:"shortcut"},[d("kbd",null,"?"),ie(" Show this help")]),d("div",{class:"shortcut"},[d("kbd",null,"Esc"),ie(" Close dialogs")])],-1)),d("button",{class:"help-close",ref_key:"closeBtnRef",ref:t,onClick:n[0]||(n[0]=r=>s.$emit("close"))},"Close",512)])],32)]))}}),id=qe(od,[["__scopeId","data-v-0d74ddfc"]]);function Be(e){return e==null?"":String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function li(e){if(!e)return"?";try{return new Date(e).toLocaleString()}catch{return e}}function or(e){if(!e)return"";const t=new Date(e),n=Date.now()-t.getTime();return n<6e4?"just now":n<36e5?`${Math.floor(n/6e4)}m ago`:n<864e5?`${Math.floor(n/36e5)}h ago`:`${Math.floor(n/864e5)}d ago`}function lt(e){return e==null?"0":String(e).replace(/\B(?=(\d{3})+(?!\d))/g,",")}function cs(e){return e==null?"-":`${lt(Number(e.toFixed(2)))}ms`}function us(e){return e<1e3?`${e}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:e<36e5?`${Math.floor(e/6e4)}m ${Math.floor(e%6e4/1e3)}s`:`${Math.floor(e/36e5)}h ${Math.floor(e%36e5/6e4)}m`}function ld(e){return e.split("/").pop()||e}const ad={class:"modal-content"},cd={class:"modal-header"},ud={class:"modal-body"},fd={class:"file-label"},dd={class:"file-input-wrapper"},hd={class:"import-status"},pd={key:0,class:"loading"},gd={key:0,class:"conflict-panel"},md={class:"conflict-list"},vd={class:"conflict-id"},bd={class:"conflict-title"},yd={class:"conflict-actions"},kd=Pe({__name:"ImportModal",emits:["close","imported"],setup(e,{emit:t}){const s=t,n=oe(!1),r=oe(""),o=oe("success"),i=oe([]);let a=null;async function l(c){const f=c.target;if(!f.files||f.files.length===0)return;const h=f.files[0];a=h,n.value=!0,r.value="",i.value=[];try{const p=new FormData;p.append("file",h);const y=await(await fetch("/api/sessions/import",{method:"POST",body:p})).json();y.conflicts&&y.conflicts.length>0?(i.value=y.conflicts,r.value=`${y.conflicts.length} session(s) already exist.`,o.value="warning"):y.imported?(r.value=`Imported ${y.imported} session(s)!`,o.value="success",setTimeout(()=>s("imported"),1500)):(r.value=`Import failed: ${Be(y.error||"Unknown error")}`,o.value="error")}catch(p){r.value=`Import failed: ${Be(p.message)}`,o.value="error"}finally{n.value=!1}}async function u(c){if(a){n.value=!0,r.value="";try{const f=new FormData;f.append("file",a),f.append("conflictStrategy",c);const p=await(await fetch("/api/sessions/import",{method:"POST",body:f})).json();p.imported?(i.value=[],r.value=`Imported ${p.imported} session(s)!`,o.value="success",setTimeout(()=>s("imported"),1500)):(r.value=`Import failed: ${Be(p.error||"Unknown error")}`,o.value="error")}catch(f){r.value=`Import failed: ${Be(f.message)}`,o.value="error"}finally{n.value=!1}}}return(c,f)=>(k(),ve(Nn,{to:"body"},[d("div",{class:"modal-overlay",role:"dialog","aria-modal":"true","aria-labelledby":"import-modal-title",onClick:f[4]||(f[4]=Fs(h=>c.$emit("close"),["self"])),onKeydown:f[5]||(f[5]=Zs(h=>c.$emit("close"),["escape"]))},[d("div",ad,[d("div",cd,[f[6]||(f[6]=d("h3",{id:"import-modal-title"},"Import Session",-1)),d("button",{class:"modal-close","aria-label":"Close import modal",onClick:f[0]||(f[0]=h=>c.$emit("close"))},"×")]),d("div",ud,[d("label",fd,[f[8]||(f[8]=d("span",{class:"file-label-text"},"Select ZIP file:",-1)),d("div",dd,[d("input",{type:"file",accept:".zip","aria-label":"Select ZIP file to import",onChange:l,class:"file-input-native"},null,32),f[7]||(f[7]=d("span",{class:"file-input-button"},"Choose File",-1))])]),d("div",hd,[n.value?(k(),R("div",pd,[...f[9]||(f[9]=[d("div",{class:"spinner"},null,-1),ie(" Uploading...",-1)])])):r.value?(k(),R("div",{key:1,class:Se(["status-msg",o.value])},G(r.value),3)):X("",!0)]),i.value.length>0?(k(),R("div",gd,[f[10]||(f[10]=d("h4",null,"Session Conflicts Detected",-1)),d("div",md,[(k(!0),R(ee,null,Oe(i.value,h=>(k(),R("div",{key:h.id,class:"conflict-item"},[d("span",vd,G(h.id),1),d("span",bd,G(h.title||""),1)]))),128))]),d("div",yd,[d("button",{class:"action-rename",onClick:f[1]||(f[1]=h=>u("rename"))},"Rename All"),d("button",{class:"action-skip",onClick:f[2]||(f[2]=h=>u("skip"))},"Skip All"),d("button",{class:"action-cancel",onClick:f[3]||(f[3]=h=>c.$emit("close"))},"Cancel")])])):X("",!0)])])],32)]))}}),_d=qe(kd,[["__scopeId","data-v-e865cf63"]]),Zt=oe("dark");function wd(){function e(){try{const n=localStorage.getItem("ot-theme");n&&(Zt.value=n)}catch{}t()}function t(){document.documentElement.setAttribute("data-theme",Zt.value)}function s(){Zt.value=Zt.value==="dark"?"light":"dark";try{localStorage.setItem("ot-theme",Zt.value)}catch{}t()}return Ls(Zt,t),{theme:Zt,toggleTheme:s,initTheme:e}}function xd(e){function t(s){const n=e[s.key];if(n){const r=document.activeElement;(!((r==null?void 0:r.tagName)==="INPUT"||(r==null?void 0:r.tagName)==="TEXTAREA"||(r==null?void 0:r.tagName)==="SELECT"||(r==null?void 0:r.isContentEditable))||s.key==="Escape")&&(s.preventDefault(),n(s))}}Gt(()=>document.addEventListener("keydown",t)),Ln(()=>document.removeEventListener("keydown",t))}const Wr="/api";async function St(e){const t=await fetch(`${Wr}/${e}`);if(!t.ok)throw new Error(`API error: ${t.status}`);return t.json()}async function Sd(e,t){const s={};let n;t!==void 0&&(typeof t=="string"||t instanceof FormData||t instanceof Blob?n=t:(s["Content-Type"]="application/json",n=JSON.stringify(t)));const r=await fetch(`${Wr}/${e}`,{method:"POST",headers:s,body:n});if(!r.ok)throw new Error(`API error: ${r.status}`);return r.json()}async function Rd(e){const t=await fetch(`${Wr}/${e}`,{method:"POST"});if(!t.ok)throw new Error(`API error: ${t.status}`);return t.json()}const Td={id:"main-content"},Cd=Pe({__name:"App",setup(e){const{toggleTheme:t}=wd(),{showToast:s}=Un(),n=Kr(),r=oe(!1),o=oe(!1),i=oe(!1),a=oe(null);function l(y,w,M){a.value={title:y,message:w,onConfirm:M}}function u(){a.value&&(a.value.onConfirm(),a.value=null)}ps("showConfirm",l),ps("showToast",s);async function c(){try{const y=await St("trace/status");r.value=y.globalEnabled}catch{r.value=!1}}async function f(){const y=r.value;try{await St(`trace/${y?"disable":"enable"}`),r.value=!y,s(`Trace ${r.value?"enabled":"disabled"}`,"success")}catch(w){console.error("Failed to toggle trace:",w)}}function h(){const y=n.currentRoute.value;y.name==="timeline"&&y.params.sessionId&&p(y.params.sessionId)}async function p(y){try{s("Exporting session...","info");const w=await fetch(`/api/sessions/${encodeURIComponent(y)}/export`,{method:"POST"});if(!w.ok)throw new Error(`Export failed: ${w.status}`);const M=await w.blob(),$=URL.createObjectURL(M),D=document.createElement("a");D.href=$,D.download=`${y}.zip`,document.body.appendChild(D),D.click(),document.body.removeChild(D),URL.revokeObjectURL($),s("Session exported!","success")}catch(w){s(`Export failed: ${w.message}`,"error")}}function v(){i.value=!1,n.currentRoute.value.name==="sessions"&&n.replace("/")}return xd({"/":()=>{const y=document.querySelector("#session-search, .search-input");y==null||y.focus()},"?":()=>{o.value=!0},e:()=>{const y=n.currentRoute.value;y.name==="timeline"&&y.params.sessionId&&p(y.params.sessionId)},Escape:()=>{o.value=!1,i.value=!1,a.value=null}}),c(),(y,w)=>{const M=Hr("router-view");return k(),R(ee,null,[w[5]||(w[5]=d("a",{href:"#main-content",class:"skip-link"},"Skip to content",-1)),w[6]||(w[6]=d("div",{id:"a11y-live-region",class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},null,-1)),Ce(Hf,{"trace-enabled":r.value,onToggleTheme:De(t),onToggleTrace:f,onImport:w[0]||(w[0]=$=>i.value=!0),onExport:h,onKeyboardHelp:w[1]||(w[1]=$=>o.value=!0)},null,8,["trace-enabled","onToggleTheme"]),Ce(zf),d("main",Td,[Ce(M,null,{default:ys(({Component:$})=>[(k(),ve(ac($)))]),_:1})]),Ce(Wf),Ce(Xf),a.value?(k(),ve(nd,{key:0,title:a.value.title,message:a.value.message,onConfirm:u,onCancel:w[2]||(w[2]=$=>a.value=null)},null,8,["title","message"])):X("",!0),o.value?(k(),ve(id,{key:1,onClose:w[3]||(w[3]=$=>o.value=!1)})):X("",!0),i.value?(k(),ve(_d,{key:2,onClose:w[4]||(w[4]=$=>i.value=!1),onImported:v})):X("",!0)],64)}}}),$d={class:"container"},Ad={key:0,class:"loading"},Ed={key:1,class:"error-banner"},Id={key:2,class:"empty-state"},Od={class:"page-title"},Pd={class:"count"},Md={class:"sessions-controls-bar"},Nd={class:"view-controls"},Dd={class:"search-input-container"},Ld={class:"sort-label"},Bd={key:0,class:"empty-state"},jd={key:1,class:"folder-groups"},Hd={class:"folder-header"},Fd=["checked",".indeterminate","onChange"],Vd={class:"folder-title"},Ud={class:"folder-path"},qd={class:"badge"},zd={class:"badge"},Gd={class:"folder-sessions"},Kd=["aria-label","onClick","onKeydown"],Wd={class:"session-card-header"},Zd=["checked","onChange"],Qd={class:"session-title-row"},Jd={class:"session-card-content"},Yd={class:"session-title"},Xd={key:0,class:"session-id"},eh={class:"session-meta"},th={class:"badge"},sh={key:0,class:"badge"},nh={key:1,class:"badge"},rh={key:2,class:"badge"},oh={class:"session-card-more"},ih=["aria-expanded","onClick"],lh={class:"session-more-menu"},ah=["onClick"],ch=["onClick"],uh={key:0,class:"children-container"},fh=["aria-label","onClick","onKeydown"],dh={class:"session-title"},hh={key:0,class:"session-id"},ph=Pe({__name:"SessionsView",setup(e,{expose:t}){const s=Kr(),n=ot("showConfirm"),r=ot("showToast"),o=oe(!0),i=oe(""),a=oe([]),l=oe(""),u=oe("recent"),c=oe(null),f=oe(new Set),h=oe(null),p=oe(!1),v=oe(new Set),y=K(()=>{const I=D(a.value);return T(I,u.value)}),w=K(()=>{if(!l.value)return y.value;const I=l.value.toLowerCase();return y.value.map(E=>{const J=E.sessions.filter(B=>{const he=(B.title||B.id).toLowerCase(),st=B.id.toLowerCase();return he.includes(I)||st.includes(I)?!0:B.children?B.children.some(Qe=>{const fe=(Qe.title||Qe.id).toLowerCase(),$e=Qe.id.toLowerCase();return fe.includes(I)||$e.includes(I)}):!1});return J.length===0?null:{...E,sessions:J,totalCount:$(J)}}).filter(Boolean)}),M=K(()=>{let I=0;for(const E of y.value)I+=E.totalCount;return I});function $(I){let E=I.length;for(const J of I)J.children&&(E+=J.children.length);return E}function D(I){const E={};for(const J of I){const B=J.folderPath||"Unknown";E[B]||(E[B]={projectName:ld(B),fullPath:B,sessions:[],lastActivity:null,totalCount:0}),E[B].sessions.push(J);const he=J.updatedAt||J.createdAt||null;he&&(!E[B].lastActivity||he>E[B].lastActivity)&&(E[B].lastActivity=he)}for(const J of Object.values(E))J.totalCount=$(J.sessions);return Object.values(E)}function T(I,E){const J=[...I];return E==="recent"?J.sort((B,he)=>(he.lastActivity||"").localeCompare(B.lastActivity||"")):E==="created"?J.sort((B,he)=>{const st=B.sessions.reduce((fe,$e)=>$e.createdAt&&(!fe||$e.createdAt<fe)?$e.createdAt:fe,null),Qe=he.sessions.reduce((fe,$e)=>$e.createdAt&&(!fe||$e.createdAt<fe)?$e.createdAt:fe,null);return(st||"").localeCompare(Qe||"")}):E==="name_asc"?J.sort((B,he)=>B.projectName.localeCompare(he.projectName)):E==="name_desc"&&J.sort((B,he)=>he.projectName.localeCompare(B.projectName)),J}function H(I){c.value=c.value===I?null:I}function se(I){f.value.has(I)?f.value.delete(I):f.value.add(I),f.value=new Set(f.value)}async function F(I){c.value=null,n("Delete Session",`Are you sure you want to delete session "${I}"? This action cannot be undone.`,async()=>{try{await Rd(`sessions/${encodeURIComponent(I)}/delete`),r("Session deleted","success"),await re()}catch(E){r(`Delete failed: ${E.message}`,"error")}})}function ue(){p.value=!p.value,v.value=new Set}function le(I){const E=new Set(v.value);E.has(I)?E.delete(I):E.add(I),v.value=E}function Me(I){return I.sessions.length>0&&I.sessions.every(E=>v.value.has(E.id))}function je(I){const E=I.sessions.some(B=>v.value.has(B.id)),J=I.sessions.every(B=>v.value.has(B.id));return E&&!J}function q(I){const E=new Set(v.value);if(Me(I))for(const J of I.sessions)E.delete(J.id);else for(const J of I.sessions)E.add(J.id);v.value=E}function V(){const I=[...v.value];n("Delete Sessions",`Are you sure you want to delete ${I.length} session${I.length>1?"s":""}? This action cannot be undone.`,async()=>{try{const E=await Sd("sessions/batch-delete",{sessionIds:I});E.errors&&E.errors.length>0?r(`${E.deleted.length} deleted, ${E.errors.length} failed`,"error"):r(`${E.deleted.length} session${E.deleted.length>1?"s":""} deleted`,"success"),p.value=!1,v.value=new Set,await re()}catch(E){r(`Batch delete failed: ${E.message}`,"error")}})}function z(){}function Ee(){var I;l.value="",(I=h.value)==null||I.focus()}function ke(){}async function re(){o.value=!0,i.value="";try{a.value=await St("sessions/tree")}catch(I){i.value=`Failed to load sessions: ${Be(I.message)}`}finally{o.value=!1}}return Gt(re),t({loadSessions:re}),(I,E)=>(k(),R("div",$d,[o.value?(k(),R("div",Ad,[...E[5]||(E[5]=[d("div",{class:"spinner"},null,-1),ie("Loading...",-1)])])):i.value?(k(),R("div",Ed,G(i.value),1)):y.value.length===0?(k(),R("div",Id,[...E[6]||(E[6]=[d("div",{class:"icon"},"📁",-1),d("p",null,"No sessions found",-1),d("p",{style:{"font-size":"12px","margin-top":"8px",color:"var(--text-secondary)"}},"Trace data is stored in ~/.opencode-trace",-1),d("p",{style:{"font-size":"12px","margin-top":"4px",color:"var(--text-tertiary)"}},[ie(" Run "),d("code",null,"opencode"),ie(" to start recording sessions ")],-1)])])):(k(),R(ee,{key:3},[d("div",Od,[E[7]||(E[7]=ie("Sessions ",-1)),d("span",Pd,G(M.value),1)]),d("div",Md,[d("div",Nd,[d("div",Dd,[E[9]||(E[9]=d("span",{class:"search-icon"},[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("circle",{cx:"11",cy:"11",r:"8"}),d("path",{d:"m21 21-4.35-4.35"})])],-1)),Ke(d("input",{ref_key:"searchInputRef",ref:h,type:"search",class:"search-input",placeholder:"Search sessions...","aria-label":"Search sessions","onUpdate:modelValue":E[0]||(E[0]=J=>l.value=J),onInput:z},null,544),[[yu,l.value]]),Ke(d("button",{class:"search-clear","aria-label":"Clear search",onClick:Ee},[...E[8]||(E[8]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],512),[[it,l.value]])]),d("label",Ld,[E[11]||(E[11]=d("span",{class:"sort-label-text"},"Sort:",-1)),Ke(d("select",{class:"sort-select","aria-label":"Sort sessions","onUpdate:modelValue":E[1]||(E[1]=J=>u.value=J),onChange:ke},[...E[10]||(E[10]=[d("option",{value:"recent"},"Recent",-1),d("option",{value:"name_asc"},"A-Z",-1),d("option",{value:"name_desc"},"Z-A",-1),d("option",{value:"created"},"Created",-1)])],544),[[Sl,u.value]])]),d("button",{class:Se(["batch-toggle-btn",{active:p.value}]),onClick:ue},[E[12]||(E[12]=d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M3 6h18M3 12h18M3 18h18"})],-1)),ie(" "+G(p.value?"Cancel":"Select"),1)],2),p.value&&v.value.size>0?(k(),R("button",{key:0,class:"batch-delete-btn",onClick:V},[E[13]||(E[13]=d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})],-1)),ie(" Delete ("+G(v.value.size)+") ",1)])):X("",!0)])]),w.value.length===0&&l.value?(k(),R("div",Bd,[E[14]||(E[14]=d("div",{class:"icon"},"🔍",-1)),d("p",null,'No sessions match "'+G(l.value)+'"',1)])):(k(),R("div",jd,[(k(!0),R(ee,null,Oe(w.value,J=>(k(),R("div",{key:J.fullPath,class:"folder-group"},[d("div",Hd,[p.value?(k(),R("label",{key:0,class:"batch-checkbox folder-checkbox",onClick:E[2]||(E[2]=Fs(()=>{},["stop"]))},[d("input",{type:"checkbox",checked:Me(J),".indeterminate":je(J),onChange:B=>q(J)},null,40,Fd)])):X("",!0),d("div",Vd,G(J.projectName),1),d("div",Ud,G(J.fullPath),1),d("span",qd,G(J.totalCount)+" sessions",1),d("span",zd,G(De(or)(J.lastActivity)),1)]),d("div",Gd,[(k(!0),R(ee,null,Oe(J.sessions,B=>{var he,st,Qe;return k(),R("div",{key:B.id},[d("div",{class:"session-card card card-interactive parent-card",tabindex:"0",role:"button","aria-label":`View session ${B.title||B.id}`,onClick:fe=>p.value?le(B.id):De(s).push(`/session/${B.id}`),onKeydown:Zs(fe=>p.value?le(B.id):De(s).push(`/session/${B.id}`),["enter"])},[d("div",Wd,[p.value?(k(),R("label",{key:0,class:"batch-checkbox",onClick:E[3]||(E[3]=Fs(()=>{},["stop"]))},[d("input",{type:"checkbox",checked:v.value.has(B.id),onChange:fe=>le(B.id)},null,40,Zd)])):X("",!0),d("div",Qd,[d("div",Jd,[d("div",Yd,G(B.title||B.id),1),B.title?(k(),R("div",Xd,G(B.id),1)):X("",!0),d("div",eh,[d("span",th,G(B.requestCount)+" requests",1),B.createdAt?(k(),R("span",sh,G(De(or)(B.createdAt)),1)):X("",!0),B.updatedAt?(k(),R("span",nh,"updated "+G(De(or)(B.updatedAt)),1)):X("",!0),(he=B.children)!=null&&he.length?(k(),R("span",rh,G(B.children.length)+" children",1)):X("",!0)])])]),p.value?X("",!0):(k(),R("div",{key:1,class:"session-card-actions",onClick:E[4]||(E[4]=Fs(()=>{},["stop"]))},[d("div",oh,[d("button",{class:"session-more-btn","aria-label":"More options","aria-expanded":c.value===B.id,onClick:fe=>H(B.id)},"⋮",8,ih),Ke(d("div",lh,[(st=B.children)!=null&&st.length?(k(),R("button",{key:0,class:"dropdown-item",onClick:fe=>se(B.id)},[(k(),R("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:Se(["subsession-arrow",{rotated:f.value.has(B.id)}])},[...E[15]||(E[15]=[d("path",{d:"m6 9 6 6 6-6"},null,-1)])],2)),E[16]||(E[16]=ie(" subsessions ",-1))],8,ah)):X("",!0),d("button",{class:"dropdown-item danger",onClick:fe=>F(B.id)},[...E[17]||(E[17]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})],-1),ie(" Delete ",-1)])],8,ch)],512),[[it,c.value===B.id]])])]))])],40,Kd),(Qe=B.children)!=null&&Qe.length&&f.value.has(B.id)?(k(),R("div",uh,[(k(!0),R(ee,null,Oe(B.children,fe=>(k(),R("div",{key:fe.id,class:"session-card card card-interactive child-card",tabindex:"0",role:"button","aria-label":`View session ${fe.title||fe.id}`,onClick:$e=>De(s).push(`/session/${fe.id}`),onKeydown:Zs($e=>De(s).push(`/session/${fe.id}`),["enter"])},[d("div",dh,G(fe.title||fe.id),1),fe.title?(k(),R("div",hh,G(fe.id),1)):X("",!0)],40,fh))),128))])):X("",!0)])}),128))])]))),128))]))],64))]))}}),gh=qe(ph,[["__scopeId","data-v-4920dcfa"]]),mh=["innerHTML"],Bl=Pe({__name:"ChangeSummary",props:{change:{}},setup(e){const t=e,s=K(()=>{var i;if(!((i=t.change)!=null&&i.delta))return[];const r=[],o=t.change.delta;if(o.sys){const a=o.sys.added||[],l=o.sys.removed||[];(a.length>0||l.length>0)&&r.push(n("SYS","sys",a,l))}if(o.tool){const a=o.tool.added||[],l=o.tool.removed||[];(a.length>0||l.length>0)&&r.push(n("TOOL","tool",a,l))}if(o.msgs&&o.msgs.length>0){const a=[],l=[];for(const u of o.msgs)a.push(...u.added||[]),l.push(...u.removed||[]);(a.length>0||l.length>0)&&r.push(n("MSG","msg",a,l))}return r});function n(r,o,i,a){let l=`<span class="cs-group"><span class="cs-label ${o}">${r}</span>`;const u={};for(const f of i){const h=f.type||"other";u[h]=u[h]||{added:0,removed:0},u[h].added++}for(const f of a){const h=f.type||"other";u[h]=u[h]||{added:0,removed:0},u[h].removed++}const c=Object.keys(u);if(c.length>0){l+='<span class="cs-types">';for(const f of c){const h=u[f];l+=`<span class="cs-type">${f.toUpperCase()}`,h.added>0&&(l+=`<span class="cs-plus">+${h.added}</span>`),h.removed>0&&(l+=`<span class="cs-minus">-${h.removed}</span>`),l+="</span>"}l+="</span>"}return l+="</span>",l}return(r,o)=>s.value.length>0?(k(),R("span",{key:0,innerHTML:s.value.join("")},null,8,mh)):X("",!0)}}),vh={class:"metadata-card card"},bh={class:"metadata-header"},yh={class:"metadata-body"},kh={class:"stat-section-title"},_h={key:0,class:"stat-row-inline"},wh={class:"stat-key"},xh={key:1,class:"stat-val"},Sh={key:1,class:"stat-grid"},Rh={class:"stat-key"},Th={key:1,class:"stat-val"},Ch=Pe({__name:"MetadataCard",props:{title:{},sections:{}},setup(e){return(t,s)=>{const n=Hr("router-link");return k(),R("div",vh,[d("div",bh,G(e.title),1),d("div",yh,[bo(t.$slots,"before-sections",{},void 0),(k(!0),R(ee,null,Oe(e.sections,r=>(k(),R("div",{key:r.title,class:"stat-section"},[d("div",kh,G(r.title),1),r.layout==="inline"?(k(),R("div",_h,[(k(!0),R(ee,null,Oe(r.items,o=>(k(),R("span",{key:o.key,class:Se(["stat-item",o.modifier])},[d("span",wh,G(o.key),1),o.link?(k(),ve(n,{key:0,class:"stat-val stat-link",to:o.link},{default:ys(()=>[ie(G(o.value),1)]),_:2},1032,["to"])):(k(),R("span",xh,G(o.value),1))],2))),128))])):(k(),R("div",Sh,[(k(!0),R(ee,null,Oe(r.items,o=>(k(),R("span",{key:o.key,class:Se(["stat-item",o.modifier])},[d("span",Rh,G(o.key),1),o.link?(k(),ve(n,{key:0,class:"stat-val stat-link",to:o.link},{default:ys(()=>[ie(G(o.value),1)]),_:2},1032,["to"])):(k(),R("span",Th,G(o.value),1))],2))),128))]))]))),128)),bo(t.$slots,"after-sections",{},void 0)])])}}}),jl=qe(Ch,[["__scopeId","data-v-3c80789b"]]),$h={class:"container"},Ah={key:0,class:"loading"},Eh={key:1,class:"error-banner"},Ih={class:"page-title"},Oh={key:0,class:"subtitle"},Ph={class:"count"},Mh={class:"timeline-controls"},Nh={class:"sort-label"},Dh={class:"timeline"},Lh=["aria-label","onClick","onKeydown"],Bh={class:"timeline-card-header"},jh={class:"left"},Hh={class:"req-num"},Fh=["title"],Vh={class:"url"},Uh={class:"right"},qh={key:0,class:"time-badge gap"},zh={class:"time-badge dur"},Gh={key:1,class:"time-badge model"},Kh={key:2,class:"time-badge provider"},Wh=Pe({__name:"TimelineView",props:{sessionId:{}},setup(e){const t=e,s=Kr(),n=oe(!0),r=oe(""),o=oe([]),i=oe({}),a=oe(null),l=oe({}),u=oe("time_asc"),c=K(()=>l.value.title||t.sessionId),f=K(()=>l.value.title?t.sessionId:""),h=K(()=>{var V,z;const q=(z=(V=a.value)==null?void 0:V.tokenUsage)==null?void 0:z.cacheHitRate;return q!=null?`${(q*100).toFixed(1)}%`:"0%"}),p=K(()=>(i.value.changes||[]).filter(V=>V.isUserCall).length),v=K(()=>(i.value.changes||[]).filter(V=>!V.isUserCall).length),y=K(()=>{if(!a.value)return[];const q=[];if(a.value.tokenUsage&&q.push({title:"Token Usage",layout:"inline",items:[{key:"Input (miss)",value:lt(a.value.tokenUsage.inputMissTokens)},{key:"Input (hit)",value:lt(a.value.tokenUsage.inputHitTokens)},{key:"Output",value:lt(a.value.tokenUsage.outputTokens)},{key:"Total",value:lt(a.value.tokenUsage.totalTokens),modifier:"highlight"},{key:"Hit Rate",value:h.value}]}),a.value.durationStats){const V=[{key:"Wall Time",value:us(a.value.durationStats.wallTime)},{key:"Request Time",value:us(a.value.durationStats.totalRequestDuration)}];a.value.latencyStats&&a.value.latencyStats.streamRequestCount>0&&V.push({key:"TTFT",value:`${cs(a.value.latencyStats.avgTTFT)} / ${cs(a.value.latencyStats.maxTTFT)}`},{key:"TPOT",value:`${cs(a.value.latencyStats.avgTPOT)} / ${cs(a.value.latencyStats.maxTPOT)}`}),q.push({title:"Time Usage",layout:"inline",items:V})}return q.push({title:"Requests",layout:"inline",items:[{key:"User",value:lt(p.value)},{key:"Agent",value:lt(v.value)},{key:"Total",value:lt(p.value+v.value),modifier:"highlight"}]}),a.value.subSessions&&a.value.subSessions.length>0&&q.push({title:"Sub Sessions",layout:"inline",items:a.value.subSessions.map(V=>({key:"Session",value:V,link:`/session/${V}`}))}),a.value.parentSession&&q.push({title:"Parent Session",layout:"inline",items:[{key:"Session",value:a.value.parentSession,link:`/session/${a.value.parentSession}`}]}),q}),w=K(()=>{const q=[...o.value],V=i.value.changes||[];return u.value==="time_asc"?q.sort((z,Ee)=>z.id-Ee.id):u.value==="time_desc"?q.sort((z,Ee)=>Ee.id-z.id):u.value==="duration_asc"||u.value==="duration_desc"?q.sort((z,Ee)=>{const ke=M(z),re=M(Ee);return u.value==="duration_asc"?ke-re:re-ke}):(u.value==="gap_asc"||u.value==="gap_desc")&&q.sort((z,Ee)=>{const ke=$(z,V),re=$(Ee,V);return ke===null&&re===null?0:ke===null?1:re===null?-1:u.value==="gap_asc"?ke-re:re-ke}),q});function M(q){return!q.requestAt||!q.responseAt?0:new Date(q.responseAt).getTime()-new Date(q.requestAt).getTime()}function $(q,V){const z=V.find(Ee=>Ee.requestId===q.id);return(z==null?void 0:z.interRequestDuration)??null}function D(q){return us(M(q))}function T(q){return(i.value.changes||[]).find(z=>z.requestId===q)||null}function H(q){var V;return((V=T(q))==null?void 0:V.interRequestDuration)??null}function se(q){const V=(i.value.recordMeta||[]).find(z=>z.id===q);return(V==null?void 0:V.model)||null}function F(q){const V=T(q);return V!=null&&V.isUserCall?"user":"agent"}function ue(q){const V=T(q);return V!=null&&V.isUserCall?"USER":"AGENT"}function le(q){const V=T(q);return V!=null&&V.isUserCall?"Direct human request":"AI automatic continuation"}function Me(q){var V,z,Ee;try{return(V=q.request)!=null&&V.url?new URL(q.request.url).host:((z=q.request)==null?void 0:z.url)||""}catch{return((Ee=q.request)==null?void 0:Ee.url)||""}}async function je(){n.value=!0,r.value="";try{const[q,V,z]=await Promise.all([St(`sessions/${encodeURIComponent(t.sessionId)}`),St(`sessions/${encodeURIComponent(t.sessionId)}/timeline`),St(`sessions/${encodeURIComponent(t.sessionId)}/metadata`)]);o.value=q.records||[],i.value=V,a.value=z,l.value=q.session||{}}catch(q){r.value=`Failed to load session: ${Be(q.message)}`}finally{n.value=!1}}return Gt(je),(q,V)=>(k(),R("div",$h,[n.value?(k(),R("div",Ah,[...V[1]||(V[1]=[d("div",{class:"spinner"},null,-1),ie("Loading timeline...",-1)])])):r.value?(k(),R("div",Eh,G(r.value),1)):(k(),R(ee,{key:2},[d("div",Ih,[ie(G(c.value)+" ",1),f.value?(k(),R("span",Oh,G(f.value),1)):X("",!0),d("span",Ph,G(o.value.length)+" requests",1)]),a.value?(k(),ve(jl,{key:0,title:"Session Statistics",sections:y.value},null,8,["sections"])):X("",!0),d("div",Mh,[d("label",Nh,[V[3]||(V[3]=d("span",{class:"sort-label-text"},"Sort:",-1)),Ke(d("select",{class:"sort-select","aria-label":"Sort timeline","onUpdate:modelValue":V[0]||(V[0]=z=>u.value=z)},[...V[2]||(V[2]=[jc('<option value="time_asc" data-v-a8f75860>Time (oldest)</option><option value="time_desc" data-v-a8f75860>Time (newest)</option><option value="duration_asc" data-v-a8f75860>Duration (shortest)</option><option value="duration_desc" data-v-a8f75860>Duration (longest)</option><option value="gap_asc" data-v-a8f75860>Gap (shortest)</option><option value="gap_desc" data-v-a8f75860>Gap (longest)</option>',6)])],512),[[Sl,u.value]])])]),d("div",Dh,[(k(!0),R(ee,null,Oe(w.value,z=>(k(),R("div",{key:z.id,class:"timeline-item"},[d("div",{class:"timeline-card card card-interactive",tabindex:"0",role:"button","aria-label":`View request #${z.id} details`,onClick:Ee=>De(s).push(`/session/${e.sessionId}/record/${z.id}`),onKeydown:Zs(Ee=>De(s).push(`/session/${e.sessionId}/record/${z.id}`),["enter"])},[d("div",Bh,[d("div",jh,[d("span",Hh,"#"+G(z.id),1),d("span",{class:Se(["call-type",F(z.id)]),title:le(z.id)},G(ue(z.id)),11,Fh),d("span",Vh,G(Me(z)),1),T(z.id)?(k(),ve(Bl,{key:0,change:T(z.id)},null,8,["change"])):X("",!0)]),d("div",Uh,[H(z.id)!=null?(k(),R("span",qh,"gap "+G(De(us)(H(z.id))),1)):X("",!0),d("span",zh,"dur "+G(D(z)),1),se(z.id)?(k(),R("span",Gh,G(se(z.id)),1)):X("",!0),z.provider?(k(),R("span",Kh,G(z.provider),1)):X("",!0)])])],40,Lh)]))),128))])],64))]))}}),Zh=qe(Wh,[["__scopeId","data-v-a8f75860"]]),Qh={text:{tag:"TEXT",toggle:!0,renderMeta:null,getRaw:e=>e.text||"",renderRaw:null,renderRendered:null},thinking:{tag:"THINKING",toggle:!0,renderMeta:null,getRaw:e=>e.thinking||"",renderRaw:null,renderRendered:null},td:{tag:"TD",toggle:!0,renderMeta:e=>`<span class="tool-meta-name">${Be(e.name||"")}</span>`,getRaw:e=>{const t={name:e.name,description:e.description};return e.parameters&&(t.parameters=e.parameters),JSON.stringify(t,null,2)},renderRaw:e=>Be(e.description||""),renderRendered:null},tc:{tag:"TC",toggle:!0,renderMeta:e=>`<span class="tool-meta-name">${Be(e.name||"")}</span>`,getRaw:e=>e.arguments||"",renderRaw:null,renderRendered:null},tr:{tag:"TR",toggle:!0,renderMeta:e=>`<span class="tool-meta-id">Tool result: ${Be(e.toolCallId||"")}</span>`,getRaw:e=>e.content||"",renderRaw:null,renderRendered:null},image:{tag:"IMAGE",toggle:!1,renderMeta:null,getRaw:null,renderRaw:()=>'<span class="content-muted">[image]</span>',renderRendered:null},json:{tag:"JSON",toggle:!1,renderMeta:null,getRaw:e=>JSON.stringify(e.data,null,2),renderRaw:null,renderRendered:null},xml:{tag:"XML",toggle:!1,renderMeta:null,getRaw:e=>e.data||"",renderRaw:null,renderRendered:null},status:{tag:"STATUS",toggle:!1,renderMeta:null,getRaw:e=>e.text||"",renderRaw:e=>Be(e.text||""),renderRendered:null}};function Hl(e){return(JSON.stringify(e,null,2)||String(e)).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+]?\d+)?)/g,o=>{let i="json-number";if(/^"/.test(o)){if(/:$/.test(o)){i="json-key";const a=o.slice(0,-1);return`<span class="${i}">${a}</span>:`}i="json-string"}else/true/.test(o)?i="json-bool json-true":/false/.test(o)?i="json-bool json-false":/null/.test(o)&&(i="json-null");return`<span class="${i}">${o}</span>`}).split(`
26
+ `).map((o,i)=>`<div class="json-line"><span class="json-num">${i+1}</span>${o}</div>`).join("")}function Jh(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").split(`
27
+ `).map((n,r)=>`<div class="xml-line"><span class="xml-num">${r+1}</span>${n}</div>`).join("")}function Yh(e){if(!e)return"";if(e=e.trim(),e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]"))try{return Hl(JSON.parse(e))}catch{}return e.startsWith("<")&&e.includes(">")?Jh(e):Be(e)}function Zr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var rs=Zr();function Fl(e){rs=e}var Xt={exec:()=>null};function ce(e,t=""){let s=typeof e=="string"?e:e.source,n={replace:(r,o)=>{let i=typeof o=="string"?o:o.source;return i=i.replace(We.caret,"$1"),s=s.replace(r,i),n},getRegex:()=>new RegExp(s,t)};return n}var Xh=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),We={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},ep=/^(?:[ \t]*(?:\n|$))+/,tp=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,sp=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,tn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,np=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Qr=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Vl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ul=ce(Vl).replace(/bull/g,Qr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),rp=ce(Vl).replace(/bull/g,Qr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Jr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,op=/^[^\n]+/,Yr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ip=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Yr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),lp=ce(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Qr).getRegex(),qn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Xr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ap=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Xr).replace("tag",qn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ql=ce(Jr).replace("hr",tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qn).getRegex(),cp=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ql).getRegex(),eo={blockquote:cp,code:tp,def:ip,fences:sp,heading:np,hr:tn,html:ap,lheading:Ul,list:lp,newline:ep,paragraph:ql,table:Xt,text:op},ai=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qn).getRegex(),up={...eo,lheading:rp,table:ai,paragraph:ce(Jr).replace("hr",tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ai).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qn).getRegex()},fp={...eo,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xr).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Xt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(Jr).replace("hr",tn).replace("heading",` *#{1,6} *[^
28
+ ]`).replace("lheading",Ul).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},dp=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hp=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,zl=/^( {2,}|\\)\n(?!\s*$)/,pp=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,xs=/[\p{P}\p{S}]/u,zn=/[\s\p{P}\p{S}]/u,to=/[^\s\p{P}\p{S}]/u,gp=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,zn).getRegex(),Gl=/(?!~)[\p{P}\p{S}]/u,mp=/(?!~)[\s\p{P}\p{S}]/u,vp=/(?:[^\s\p{P}\p{S}]|~)/u,bp=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Xh?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Kl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,yp=ce(Kl,"u").replace(/punct/g,xs).getRegex(),kp=ce(Kl,"u").replace(/punct/g,Gl).getRegex(),Wl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",_p=ce(Wl,"gu").replace(/notPunctSpace/g,to).replace(/punctSpace/g,zn).replace(/punct/g,xs).getRegex(),wp=ce(Wl,"gu").replace(/notPunctSpace/g,vp).replace(/punctSpace/g,mp).replace(/punct/g,Gl).getRegex(),xp=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,to).replace(/punctSpace/g,zn).replace(/punct/g,xs).getRegex(),Sp=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,xs).getRegex(),Rp="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Tp=ce(Rp,"gu").replace(/notPunctSpace/g,to).replace(/punctSpace/g,zn).replace(/punct/g,xs).getRegex(),Cp=ce(/\\(punct)/,"gu").replace(/punct/g,xs).getRegex(),$p=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ap=ce(Xr).replace("(?:-->|$)","-->").getRegex(),Ep=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ap).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Ip=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",wn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Zl=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",wn).replace("ref",Yr).getRegex(),Ql=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",Yr).getRegex(),Op=ce("reflink|nolink(?!\\()","g").replace("reflink",Zl).replace("nolink",Ql).getRegex(),ci=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,so={_backpedal:Xt,anyPunctuation:Cp,autolink:$p,blockSkip:bp,br:zl,code:hp,del:Xt,delLDelim:Xt,delRDelim:Xt,emStrongLDelim:yp,emStrongRDelimAst:_p,emStrongRDelimUnd:xp,escape:dp,link:Ip,nolink:Ql,punctuation:gp,reflink:Zl,reflinkSearch:Op,tag:Ep,text:pp,url:Xt},Pp={...so,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",wn).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wn).getRegex()},xr={...so,emStrongRDelimAst:wp,emStrongLDelim:kp,delLDelim:Sp,delRDelim:Tp,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ci).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ci).getRegex()},Mp={...xr,br:ce(zl).replace("{2,}","*").getRegex(),text:ce(xr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ln={normal:eo,gfm:up,pedantic:fp},As={normal:so,gfm:xr,breaks:Mp,pedantic:Pp},Np={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ui=e=>Np[e];function yt(e,t){if(t){if(We.escapeTest.test(e))return e.replace(We.escapeReplace,ui)}else if(We.escapeTestNoEncode.test(e))return e.replace(We.escapeReplaceNoEncode,ui);return e}function fi(e){try{e=encodeURI(e).replace(We.percentDecode,"%")}catch{return null}return e}function di(e,t){var o;let s=e.replace(We.findPipe,(i,a,l)=>{let u=!1,c=a;for(;--c>=0&&l[c]==="\\";)u=!u;return u?"|":" |"}),n=s.split(We.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!((o=n.at(-1))!=null&&o.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(We.slashPipe,"|");return n}function Ht(e,t,s){let n=e.length;if(n===0)return"";let r=0;for(;r<n&&e.charAt(n-r-1)===t;)r++;return e.slice(0,n-r)}function hi(e){let t=e.split(`
29
+ `),s=t.length-1;for(;s>=0&&We.blankLine.test(t[s]);)s--;return t.length-s<=2?e:t.slice(0,s+1).join(`
30
+ `)}function Dp(e,t){if(e.indexOf(t[1])===-1)return-1;let s=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])s++;else if(e[n]===t[1]&&(s--,s<0))return n;return s>0?-2:-1}function Lp(e,t=0){let s=t,n="";for(let r of e)if(r===" "){let o=4-s%4;n+=" ".repeat(o),s+=o}else n+=r,s++;return n}function pi(e,t,s,n,r){let o=t.href,i=t.title||null,a=e[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:s,href:o,title:i,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,l}function Bp(e,t,s){let n=e.match(s.other.indentCodeCompensation);if(n===null)return t;let r=n[1];return t.split(`
31
+ `).map(o=>{let i=o.match(s.other.beginningSpace);if(i===null)return o;let[a]=i;return a.length>=r.length?o.slice(r.length):o}).join(`
32
+ `)}var xn=class{constructor(e){_e(this,"options");_e(this,"rules");_e(this,"lexer");this.options=e||rs}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let s=this.options.pedantic?t[0]:hi(t[0]),n=s.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:s,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let s=t[0],n=Bp(s,t[3]||"",this.rules);return{type:"code",raw:s,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let s=t[2].trim();if(this.rules.other.endingHash.test(s)){let n=Ht(s,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(s=n.trim())}return{type:"heading",raw:Ht(t[0],`
33
+ `),depth:t[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ht(t[0],`
34
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let s=Ht(t[0],`
35
+ `).split(`
36
+ `),n="",r="",o=[];for(;s.length>0;){let i=!1,a=[],l;for(l=0;l<s.length;l++)if(this.rules.other.blockquoteStart.test(s[l]))a.push(s[l]),i=!0;else if(!i)a.push(s[l]);else break;s=s.slice(l);let u=a.join(`
37
+ `),c=u.replace(this.rules.other.blockquoteSetextReplace,`
38
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
39
+ ${u}`:u,r=r?`${r}
40
+ ${c}`:c;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,o,!0),this.lexer.state.top=f,s.length===0)break;let h=o.at(-1);if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){let p=h,v=p.raw+`
41
+ `+s.join(`
42
+ `),y=this.blockquote(v);o[o.length-1]=y,n=n.substring(0,n.length-p.raw.length)+y.raw,r=r.substring(0,r.length-p.text.length)+y.text;break}else if((h==null?void 0:h.type)==="list"){let p=h,v=p.raw+`
43
+ `+s.join(`
44
+ `),y=this.list(v);o[o.length-1]=y,n=n.substring(0,n.length-h.raw.length)+y.raw,r=r.substring(0,r.length-p.raw.length)+y.raw,s=v.substring(o.at(-1).raw.length).split(`
45
+ `);continue}}return{type:"blockquote",raw:n,tokens:o,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim(),n=s.length>1,r={type:"list",raw:"",ordered:n,start:n?+s.slice(0,-1):"",loose:!1,items:[]};s=n?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=n?s:"[*+-]");let o=this.rules.other.listItemRegex(s),i=!1;for(;e;){let l=!1,u="",c="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let f=Lp(t[2].split(`
46
+ `,1)[0],t[1].length),h=e.split(`
47
+ `,1)[0],p=!f.trim(),v=0;if(this.options.pedantic?(v=2,c=f.trimStart()):p?v=t[1].length+1:(v=f.search(this.rules.other.nonSpaceChar),v=v>4?1:v,c=f.slice(v),v+=t[1].length),p&&this.rules.other.blankLine.test(h)&&(u+=h+`
48
+ `,e=e.substring(h.length+1),l=!0),!l){let y=this.rules.other.nextBulletRegex(v),w=this.rules.other.hrRegex(v),M=this.rules.other.fencesBeginRegex(v),$=this.rules.other.headingBeginRegex(v),D=this.rules.other.htmlBeginRegex(v),T=this.rules.other.blockquoteBeginRegex(v);for(;e;){let H=e.split(`
49
+ `,1)[0],se;if(h=H,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),se=h):se=h.replace(this.rules.other.tabCharGlobal," "),M.test(h)||$.test(h)||D.test(h)||T.test(h)||y.test(h)||w.test(h))break;if(se.search(this.rules.other.nonSpaceChar)>=v||!h.trim())c+=`
50
+ `+se.slice(v);else{if(p||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||M.test(f)||$.test(f)||w.test(f))break;c+=`
51
+ `+h}p=!h.trim(),u+=H+`
52
+ `,e=e.substring(H.length+1),f=se.slice(v)}}r.loose||(i?r.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(i=!0)),r.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),r.raw+=u}let a=r.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let l of r.items){this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]);let u=l.tokens[0];if(l.task&&((u==null?void 0:u.type)==="text"||(u==null?void 0:u.type)==="paragraph")){l.text=l.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let f=this.lexer.inlineQueue.length-1;f>=0;f--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[f].src)){this.lexer.inlineQueue[f].src=this.lexer.inlineQueue[f].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(l.raw);if(c){let f={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};l.checked=f.checked,r.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=f.raw+l.tokens[0].raw,l.tokens[0].text=f.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(f)):l.tokens.unshift({type:"paragraph",raw:f.raw,text:f.raw,tokens:[f]}):l.tokens.unshift(f)}}else l.task&&(l.task=!1);if(!r.loose){let c=l.tokens.filter(h=>h.type==="space"),f=c.length>0&&c.some(h=>this.rules.other.anyLine.test(h.raw));r.loose=f}}if(r.loose)for(let l of r.items){l.loose=!0;for(let u of l.tokens)u.type==="text"&&(u.type="paragraph")}return r}}html(e){let t=this.rules.block.html.exec(e);if(t){let s=hi(t[0]);return{type:"html",block:!0,raw:s,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:s}}}def(e){let t=this.rules.block.def.exec(e);if(t){let s=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:s,raw:Ht(t[0],`
53
+ `),href:n,title:r}}}table(e){var i;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let s=di(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=(i=t[3])!=null&&i.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
54
+ `):[],o={type:"table",raw:Ht(t[0],`
55
+ `),header:[],align:[],rows:[]};if(s.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?o.align.push("right"):this.rules.other.tableAlignCenter.test(a)?o.align.push("center"):this.rules.other.tableAlignLeft.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<s.length;a++)o.header.push({text:s[a],tokens:this.lexer.inline(s[a]),header:!0,align:o.align[a]});for(let a of r)o.rows.push(di(a,o.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[u]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let s=t[1].trim();return{type:"heading",raw:Ht(t[0],`
56
+ `),depth:t[2].charAt(0)==="="?1:2,text:s,tokens:this.lexer.inline(s)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let s=t[1].charAt(t[1].length-1)===`
57
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:s,tokens:this.lexer.inline(s)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let s=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let o=Ht(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{let o=Dp(t[2],"()");if(o===-2)return;if(o>-1){let i=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(n);o&&(n=o[1],r=o[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?n=n.slice(1):n=n.slice(1,-1)),pi(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let s;if((s=this.rules.inline.reflink.exec(e))||(s=this.rules.inline.nolink.exec(e))){let n=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[n.toLowerCase()];if(!r){let o=s[0].charAt(0);return{type:"text",raw:o,text:o}}return pi(s,r,s[0],this.lexer,this.rules)}}emStrong(e,t,s=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&s.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!s||this.rules.inline.punctuation.exec(s))){let r=[...n[0]].length-1,o,i,a=r,l=0,u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+r);(n=u.exec(t))!==null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(i=[...o].length,n[3]||n[4]){a+=i;continue}else if((n[5]||n[6])&&r%3&&!((r+i)%3)){l+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+l);let c=[...n[0]][0].length,f=e.slice(0,r+n.index+c+i);if(Math.min(r,i)%2){let p=f.slice(1,-1);return{type:"em",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}let h=f.slice(2,-2);return{type:"strong",raw:f,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let s=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(s),r=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return n&&r&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:t[0],text:s}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,s=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!s||this.rules.inline.punctuation.exec(s))){let r=[...n[0]].length-1,o,i,a=r,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+r);(n=l.exec(t))!==null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o||(i=[...o].length,i!==r))continue;if(n[3]||n[4]){a+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a);let u=[...n[0]][0].length,c=e.slice(0,r+n.index+u+i),f=c.slice(r,-r);return{type:"del",raw:c,text:f,tokens:this.lexer.inlineTokens(f)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let s,n;return t[2]==="@"?(s=t[1],n="mailto:"+s):(s=t[1],n=s),{type:"link",raw:t[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}url(e){var s;let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let o;do o=t[0],t[0]=((s=this.rules.inline._backpedal.exec(t[0]))==null?void 0:s[0])??"";while(o!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let s=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:s}}}},ct=class Sr{constructor(t){_e(this,"tokens");_e(this,"options");_e(this,"state");_e(this,"inlineQueue");_e(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||rs,this.options.tokenizer=this.options.tokenizer||new xn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let s={other:We,block:ln.normal,inline:As.normal};this.options.pedantic?(s.block=ln.pedantic,s.inline=As.pedantic):this.options.gfm&&(s.block=ln.gfm,this.options.breaks?s.inline=As.breaks:s.inline=As.gfm),this.tokenizer.rules=s}static get rules(){return{block:ln,inline:As}}static lex(t,s){return new Sr(s).lex(t)}static lexInline(t,s){return new Sr(s).inlineTokens(t)}lex(t){t=t.replace(We.carriageReturn,`
58
+ `),this.blockTokens(t,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let n=this.inlineQueue[s];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,s=[],n=!1){var o,i,a;this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(We.tabCharGlobal," ").replace(We.spaceLine,""));let r=1/0;for(;t;){if(t.length<r)r=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let l;if((i=(o=this.options.extensions)==null?void 0:o.block)!=null&&i.some(c=>(l=c.call({lexer:this},t,s))?(t=t.substring(l.raw.length),s.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let c=s.at(-1);l.raw.length===1&&c!==void 0?c.raw+=`
59
+ `:s.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let c=s.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
60
+ `)?"":`
61
+ `)+l.raw,c.text+=`
62
+ `+l.text,this.inlineQueue.at(-1).src=c.text):s.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let c=s.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
63
+ `)?"":`
64
+ `)+l.raw,c.text+=`
65
+ `+l.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},s.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),s.push(l);continue}let u=t;if((a=this.options.extensions)!=null&&a.startBlock){let c=1/0,f=t.slice(1),h;this.options.extensions.startBlock.forEach(p=>{h=p.call({lexer:this},f),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(u=t.substring(0,c+1))}if(this.state.top&&(l=this.tokenizer.paragraph(u))){let c=s.at(-1);n&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
66
+ `)?"":`
67
+ `)+l.raw,c.text+=`
68
+ `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):s.push(l),n=u.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let c=s.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
69
+ `)?"":`
70
+ `)+l.raw,c.text+=`
71
+ `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):s.push(l);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,s}inline(t,s=[]){return this.inlineQueue.push({src:t,tokens:s}),s}inlineTokens(t,s=[]){var u,c,f,h,p;this.tokenizer.lexer=this;let n=t,r=null;if(this.tokens.links){let v=Object.keys(this.tokens.links);if(v.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)v.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)o=r[2]?r[2].length:0,n=n.slice(0,r.index+o)+"["+"a".repeat(r[0].length-o-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((c=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:c.call({lexer:this},n))??n;let i=!1,a="",l=1/0;for(;t;){if(t.length<l)l=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}i||(a=""),i=!1;let v;if((h=(f=this.options.extensions)==null?void 0:f.inline)!=null&&h.some(w=>(v=w.call({lexer:this},t,s))?(t=t.substring(v.raw.length),s.push(v),!0):!1))continue;if(v=this.tokenizer.escape(t)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.tag(t)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.link(t)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(v.raw.length);let w=s.at(-1);v.type==="text"&&(w==null?void 0:w.type)==="text"?(w.raw+=v.raw,w.text+=v.text):s.push(v);continue}if(v=this.tokenizer.emStrong(t,n,a)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.codespan(t)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.br(t)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.del(t,n,a)){t=t.substring(v.raw.length),s.push(v);continue}if(v=this.tokenizer.autolink(t)){t=t.substring(v.raw.length),s.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(t))){t=t.substring(v.raw.length),s.push(v);continue}let y=t;if((p=this.options.extensions)!=null&&p.startInline){let w=1/0,M=t.slice(1),$;this.options.extensions.startInline.forEach(D=>{$=D.call({lexer:this},M),typeof $=="number"&&$>=0&&(w=Math.min(w,$))}),w<1/0&&w>=0&&(y=t.substring(0,w+1))}if(v=this.tokenizer.inlineText(y)){t=t.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(a=v.raw.slice(-1)),i=!0;let w=s.at(-1);(w==null?void 0:w.type)==="text"?(w.raw+=v.raw,w.text+=v.text):s.push(v);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return s}infiniteLoopError(t){let s="Infinite loop on byte: "+t;if(this.options.silent)console.error(s);else throw new Error(s)}},Sn=class{constructor(e){_e(this,"options");_e(this,"parser");this.options=e||rs}space(e){return""}code({text:e,lang:t,escaped:s}){var o;let n=(o=(t||"").match(We.notSpaceStart))==null?void 0:o[0],r=e.replace(We.endingNewline,"")+`
72
+ `;return n?'<pre><code class="language-'+yt(n)+'">'+(s?r:yt(r,!0))+`</code></pre>
73
+ `:"<pre><code>"+(s?r:yt(r,!0))+`</code></pre>
74
+ `}blockquote({tokens:e}){return`<blockquote>
75
+ ${this.parser.parse(e)}</blockquote>
76
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
77
+ `}hr(e){return`<hr>
78
+ `}list(e){let t=e.ordered,s=e.start,n="";for(let i=0;i<e.items.length;i++){let a=e.items[i];n+=this.listitem(a)}let r=t?"ol":"ul",o=t&&s!==1?' start="'+s+'"':"";return"<"+r+o+`>
79
+ `+n+"</"+r+`>
80
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
81
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
82
+ `}table(e){let t="",s="";for(let r=0;r<e.header.length;r++)s+=this.tablecell(e.header[r]);t+=this.tablerow({text:s});let n="";for(let r=0;r<e.rows.length;r++){let o=e.rows[r];s="";for(let i=0;i<o.length;i++)s+=this.tablecell(o[i]);n+=this.tablerow({text:s})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
83
+ <thead>
84
+ `+t+`</thead>
85
+ `+n+`</table>
86
+ `}tablerow({text:e}){return`<tr>
87
+ ${e}</tr>
88
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),s=e.header?"th":"td";return(e.align?`<${s} align="${e.align}">`:`<${s}>`)+t+`</${s}>
89
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${yt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:s}){let n=this.parser.parseInline(s),r=fi(e);if(r===null)return n;e=r;let o='<a href="'+e+'"';return t&&(o+=' title="'+yt(t)+'"'),o+=">"+n+"</a>",o}image({href:e,title:t,text:s,tokens:n}){n&&(s=this.parser.parseInline(n,this.parser.textRenderer));let r=fi(e);if(r===null)return yt(s);e=r;let o=`<img src="${e}" alt="${yt(s)}"`;return t&&(o+=` title="${yt(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:yt(e.text)}},no=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ut=class Rr{constructor(t){_e(this,"options");_e(this,"renderer");_e(this,"textRenderer");this.options=t||rs,this.options.renderer=this.options.renderer||new Sn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new no}static parse(t,s){return new Rr(s).parse(t)}static parseInline(t,s){return new Rr(s).parseInline(t)}parse(t){var n,r;this.renderer.parser=this;let s="";for(let o=0;o<t.length;o++){let i=t[o];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[i.type]){let l=i,u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){s+=u||"";continue}}let a=i;switch(a.type){case"space":{s+=this.renderer.space(a);break}case"hr":{s+=this.renderer.hr(a);break}case"heading":{s+=this.renderer.heading(a);break}case"code":{s+=this.renderer.code(a);break}case"table":{s+=this.renderer.table(a);break}case"blockquote":{s+=this.renderer.blockquote(a);break}case"list":{s+=this.renderer.list(a);break}case"checkbox":{s+=this.renderer.checkbox(a);break}case"html":{s+=this.renderer.html(a);break}case"def":{s+=this.renderer.def(a);break}case"paragraph":{s+=this.renderer.paragraph(a);break}case"text":{s+=this.renderer.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return s}parseInline(t,s=this.renderer){var r,o;this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let a=t[i];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[a.type]){let u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=u||"";continue}}let l=a;switch(l.type){case"escape":{n+=s.text(l);break}case"html":{n+=s.html(l);break}case"link":{n+=s.link(l);break}case"image":{n+=s.image(l);break}case"checkbox":{n+=s.checkbox(l);break}case"strong":{n+=s.strong(l);break}case"em":{n+=s.em(l);break}case"codespan":{n+=s.codespan(l);break}case"br":{n+=s.br(l);break}case"del":{n+=s.del(l);break}case"text":{n+=s.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}},an,Ps=(an=class{constructor(e){_e(this,"options");_e(this,"block");this.options=e||rs}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?ct.lex:ct.lexInline}provideParser(e=this.block){return e?ut.parse:ut.parseInline}},_e(an,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),_e(an,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),an),jp=class{constructor(...e){_e(this,"defaults",Zr());_e(this,"options",this.setOptions);_e(this,"parse",this.parseMarkdown(!0));_e(this,"parseInline",this.parseMarkdown(!1));_e(this,"Parser",ut);_e(this,"Renderer",Sn);_e(this,"TextRenderer",no);_e(this,"Lexer",ct);_e(this,"Tokenizer",xn);_e(this,"Hooks",Ps);this.use(...e)}walkTokens(e,t){var n,r;let s=[];for(let o of e)switch(s=s.concat(t.call(this,o)),o.type){case"table":{let i=o;for(let a of i.header)s=s.concat(this.walkTokens(a.tokens,t));for(let a of i.rows)for(let l of a)s=s.concat(this.walkTokens(l.tokens,t));break}case"list":{let i=o;s=s.concat(this.walkTokens(i.items,t));break}default:{let i=o;(r=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&r[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let l=i[a].flat(1/0);s=s.concat(this.walkTokens(l,t))}):i.tokens&&(s=s.concat(this.walkTokens(i.tokens,t)))}}return s}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(s=>{let n={...s};if(n.async=this.defaults.async||n.async||!1,s.extensions&&(s.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let o=t.renderers[r.name];o?t.renderers[r.name]=function(...i){let a=r.renderer.apply(this,i);return a===!1&&(a=o.apply(this,i)),a}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=t[r.level];o?o.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),n.extensions=t),s.renderer){let r=this.defaults.renderer||new Sn(this.defaults);for(let o in s.renderer){if(!(o in r))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let i=o,a=s.renderer[i],l=r[i];r[i]=(...u)=>{let c=a.apply(r,u);return c===!1&&(c=l.apply(r,u)),c||""}}n.renderer=r}if(s.tokenizer){let r=this.defaults.tokenizer||new xn(this.defaults);for(let o in s.tokenizer){if(!(o in r))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let i=o,a=s.tokenizer[i],l=r[i];r[i]=(...u)=>{let c=a.apply(r,u);return c===!1&&(c=l.apply(r,u)),c}}n.tokenizer=r}if(s.hooks){let r=this.defaults.hooks||new Ps;for(let o in s.hooks){if(!(o in r))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let i=o,a=s.hooks[i],l=r[i];Ps.passThroughHooks.has(o)?r[i]=u=>{if(this.defaults.async&&Ps.passThroughHooksRespectAsync.has(o))return(async()=>{let f=await a.call(r,u);return l.call(r,f)})();let c=a.call(r,u);return l.call(r,c)}:r[i]=(...u)=>{if(this.defaults.async)return(async()=>{let f=await a.apply(r,u);return f===!1&&(f=await l.apply(r,u)),f})();let c=a.apply(r,u);return c===!1&&(c=l.apply(r,u)),c}}n.hooks=r}if(s.walkTokens){let r=this.defaults.walkTokens,o=s.walkTokens;n.walkTokens=function(i){let a=[];return a.push(o.call(this,i)),r&&(a=a.concat(r.call(this,i))),a}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ct.lex(e,t??this.defaults)}parser(e,t){return ut.parse(e,t??this.defaults)}parseMarkdown(e){return(t,s)=>{let n={...s},r={...this.defaults,...n},o=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&n.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=e),r.async)return(async()=>{let i=r.hooks?await r.hooks.preprocess(t):t,a=await(r.hooks?await r.hooks.provideLexer(e):e?ct.lex:ct.lexInline)(i,r),l=r.hooks?await r.hooks.processAllTokens(a):a;r.walkTokens&&await Promise.all(this.walkTokens(l,r.walkTokens));let u=await(r.hooks?await r.hooks.provideParser(e):e?ut.parse:ut.parseInline)(l,r);return r.hooks?await r.hooks.postprocess(u):u})().catch(o);try{r.hooks&&(t=r.hooks.preprocess(t));let i=(r.hooks?r.hooks.provideLexer(e):e?ct.lex:ct.lexInline)(t,r);r.hooks&&(i=r.hooks.processAllTokens(i)),r.walkTokens&&this.walkTokens(i,r.walkTokens);let a=(r.hooks?r.hooks.provideParser(e):e?ut.parse:ut.parseInline)(i,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(i){return o(i)}}}onError(e,t){return s=>{if(s.message+=`
90
+ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+yt(s.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(s);throw s}}},ns=new jp;function be(e,t){return ns.parse(e,t)}be.options=be.setOptions=function(e){return ns.setOptions(e),be.defaults=ns.defaults,Fl(be.defaults),be};be.getDefaults=Zr;be.defaults=rs;be.use=function(...e){return ns.use(...e),be.defaults=ns.defaults,Fl(be.defaults),be};be.walkTokens=function(e,t){return ns.walkTokens(e,t)};be.parseInline=ns.parseInline;be.Parser=ut;be.parser=ut.parse;be.Renderer=Sn;be.TextRenderer=no;be.Lexer=ct;be.lexer=ct.lex;be.Tokenizer=xn;be.Hooks=Ps;be.parse=be;be.options;be.setOptions;be.use;be.walkTokens;be.parseInline;ut.parse;ct.lex;const Hp=["data-block-type"],Fp={class:"block-type-bar"},Vp={class:"block-type-left"},Up=["innerHTML"],qp={class:"block-type-right"},zp=["data-mode"],Gp=["innerHTML"],Kp=["innerHTML"],Wp=["value"],Zp=Pe({__name:"BlockRenderer",props:{block:{}},setup(e){const t=e,{showToast:s}=Un(),n=oe("raw"),r=K(()=>Qh[t.block.type]||{tag:t.block.type.toUpperCase(),toggle:!1,renderMeta:null,getRaw:null,renderRaw:null,renderRendered:null}),o=K(()=>r.value.getRaw?r.value.getRaw(t.block):""),i=K(()=>r.value.renderRaw?r.value.renderRaw(t.block):o.value?Be(o.value):""),a=K(()=>{if(r.value.renderRendered)return r.value.renderRendered(o.value);if(t.block.type==="text"||t.block.type==="thinking")return h(o.value);if(t.block.type==="tc"||t.block.type==="tr")return Yh(o.value);if(t.block.type==="td")try{const p=JSON.parse(o.value);let v="";return p.description&&(v+=`<div class="tool-def-desc">${Be(p.description)}</div>`),p.parameters&&(v+=`<div class="tool-def-params">${Hl(p.parameters)}</div>`),v||Be(o.value)}catch{return Be(o.value)}return Be(o.value)}),l=K(()=>!!(i.value||a.value||o.value)),u=K(()=>t.block.type==="json"?"json-lines":t.block.type==="xml"?"xml-lines":"");function c(){n.value=n.value==="raw"?"rendered":"raw"}function f(){const p=o.value;navigator.clipboard.writeText(p).then(()=>{s("Copied!","success",void 0,void 0,2e3)}).catch(v=>{console.error("Copy failed:",v)})}function h(p){if(!p)return"";try{return be.parse(p,{breaks:!0,gfm:!0})}catch{return Be(p)}}return(p,v)=>(k(),R("div",{class:"block-item","data-block-type":e.block.type},[d("div",Fp,[d("div",Vp,[d("span",{class:Se(["block-type-tag",e.block.type])},G(r.value.tag),3),r.value.renderMeta?(k(),R("span",{key:0,innerHTML:r.value.renderMeta(e.block)},null,8,Up)):X("",!0)]),d("div",qp,[r.value.toggle?(k(),R("button",{key:0,class:Se(["toggle-btn",{active:n.value==="rendered"}]),"aria-label":"Toggle between rendered and raw view","data-mode":n.value,onClick:c},"</>",10,zp)):X("",!0)])]),l.value?(k(),R("div",{key:0,class:Se(["block-content",n.value,u.value])},[d("button",{class:"copy-btn","aria-label":"Copy this content",onClick:f},[...v[0]||(v[0]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[d("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),d("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1)])]),n.value==="raw"?(k(),R("div",{key:0,innerHTML:i.value},null,8,Gp)):(k(),R("div",{key:1,innerHTML:a.value},null,8,Kp))],2)):X("",!0),o.value?(k(),R("textarea",{key:1,class:"raw-content-store",style:{display:"none"},value:o.value},null,8,Wp)):X("",!0)],8,Hp))}}),It=qe(Zp,[["__scopeId","data-v-0b5e0f57"]]),Qp={key:0,class:"empty-state"},Jp={class:"section-content expanded"},Yp={key:0,class:"change-card removed"},Xp={class:"change-card-body"},eg={key:1,class:"change-card added"},tg={class:"change-card-body"},sg={class:"section-content expanded"},ng={key:0,class:"change-card added"},rg={class:"change-card-body"},og={key:1,class:"change-card removed"},ig={class:"change-card-body"},lg={class:"section-content expanded"},ag={key:0,class:"change-card removed"},cg={class:"change-card-body"},ug={key:1,class:"change-card added"},fg={class:"change-card-body"},dg=Pe({__name:"ChangesView",props:{changeData:{}},setup(e){const t=e,s=zt({sys:!0,tool:!0,msgs:!0});function n(h){s[h]=!s[h]}const r=K(()=>{var h;return(h=t.changeData)==null?void 0:h.delta}),o=K(()=>{var h,p;return((p=(h=r.value)==null?void 0:h.sys)==null?void 0:p.added)||[]}),i=K(()=>{var h,p;return((p=(h=r.value)==null?void 0:h.sys)==null?void 0:p.removed)||[]}),a=K(()=>{var h,p;return((p=(h=r.value)==null?void 0:h.tool)==null?void 0:p.added)||[]}),l=K(()=>{var h,p;return((p=(h=r.value)==null?void 0:h.tool)==null?void 0:p.removed)||[]}),u=K(()=>{var v;const h=((v=r.value)==null?void 0:v.msgs)||[],p=[];for(const y of h)y.added&&p.push(...y.added);return p}),c=K(()=>{var v;const h=((v=r.value)==null?void 0:v.msgs)||[],p=[];for(const y of h)y.removed&&p.push(...y.removed);return p}),f=K(()=>o.value.length>0||i.value.length>0||a.value.length>0||l.value.length>0||u.value.length>0||c.value.length>0);return(h,p)=>f.value?(k(),R(ee,{key:1},[o.value.length>0||i.value.length>0?(k(),R(ee,{key:0},[d("div",{class:Se(["section-title",{expanded:s.sys}]),onClick:p[0]||(p[0]=v=>n("sys"))},[...p[4]||(p[4]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),ie(" SYSTEM PROMPT ",-1)])],2),Ke(d("div",Jp,[i.value.length>0?(k(),R("div",Yp,[p[5]||(p[5]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag sys"},"SYS"),d("span",{class:"action-tag del"},"-DEL")],-1)),d("div",Xp,[(k(!0),R(ee,null,Oe(i.value,(v,y)=>(k(),ve(It,{key:"sys-rem-"+y,block:v},null,8,["block"]))),128))])])):X("",!0),o.value.length>0?(k(),R("div",eg,[p[6]||(p[6]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag sys"},"SYS"),d("span",{class:"action-tag new"},"+NEW")],-1)),d("div",tg,[(k(!0),R(ee,null,Oe(o.value,(v,y)=>(k(),ve(It,{key:"sys-add-"+y,block:v},null,8,["block"]))),128))])])):X("",!0)],512),[[it,s.sys]])],64)):X("",!0),a.value.length>0||l.value.length>0?(k(),R(ee,{key:1},[d("div",{class:Se(["section-title",{expanded:s.tool}]),onClick:p[1]||(p[1]=v=>n("tool"))},[...p[7]||(p[7]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),ie(" TOOL DEFINITIONS ",-1)])],2),Ke(d("div",sg,[a.value.length>0?(k(),R("div",ng,[p[8]||(p[8]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag tool"},"TOOL"),d("span",{class:"action-tag new"},"+NEW")],-1)),d("div",rg,[(k(!0),R(ee,null,Oe(a.value,(v,y)=>(k(),ve(It,{key:"tool-add-"+y,block:v},null,8,["block"]))),128))])])):X("",!0),l.value.length>0?(k(),R("div",og,[p[9]||(p[9]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag tool"},"TOOL"),d("span",{class:"action-tag del"},"-DEL")],-1)),d("div",ig,[(k(!0),R(ee,null,Oe(l.value,(v,y)=>(k(),ve(It,{key:"tool-rem-"+y,block:v},null,8,["block"]))),128))])])):X("",!0)],512),[[it,s.tool]])],64)):X("",!0),u.value.length>0||c.value.length>0?(k(),R(ee,{key:2},[d("div",{class:Se(["section-title",{expanded:s.msgs}]),onClick:p[2]||(p[2]=v=>n("msgs"))},[...p[10]||(p[10]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),ie(" MESSAGES ",-1)])],2),Ke(d("div",lg,[c.value.length>0?(k(),R("div",ag,[p[11]||(p[11]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag msg"},"MSG"),d("span",{class:"action-tag del"},"-DEL")],-1)),d("div",cg,[(k(!0),R(ee,null,Oe(c.value,(v,y)=>(k(),ve(It,{key:"msg-rem-"+y,block:v},null,8,["block"]))),128))])])):X("",!0),u.value.length>0?(k(),R("div",ug,[p[12]||(p[12]=d("div",{class:"change-card-header"},[d("span",{class:"cat-tag msg"},"MSG"),d("span",{class:"action-tag new"},"+NEW")],-1)),d("div",fg,[(k(!0),R(ee,null,Oe(u.value,(v,y)=>(k(),ve(It,{key:"msg-add-"+y,block:v},null,8,["block"]))),128))])])):X("",!0)],512),[[it,s.msgs]])],64)):X("",!0)],64)):(k(),R("div",Qp,[...p[3]||(p[3]=[d("p",null,"No change data for this request",-1)])]))}}),hg=qe(dg,[["__scopeId","data-v-33730ba0"]]),pg={key:0,class:"empty-state"},gg={class:"section-content expanded"},mg={class:"msg"},vg={class:"msg-body"},bg={class:"section-content expanded"},yg={class:"msg"},kg={class:"msg-header"},_g={class:"badge"},wg={class:"msg-body"},xg={class:"section-content expanded"},Sg={class:"msg-list"},Rg={class:"msg-header"},Tg={class:"role-tag"},Cg={class:"msg-body"},$g=Pe({__name:"ConversationView",props:{parsed:{}},setup(e){const t=e,s=zt({sys:!0,tool:!0,msgs:!0});function n(l){s[l]=!s[l]}const r=K(()=>{var l,u;return((u=(l=t.parsed)==null?void 0:l.sys)==null?void 0:u.blocks)||[]}),o=K(()=>{var u,c;return(((c=(u=t.parsed)==null?void 0:u.tool)==null?void 0:c.blocks)||[]).filter(f=>f.type==="td")}),i=K(()=>{var l;return((l=t.parsed)==null?void 0:l.msgs)||[]}),a=K(()=>r.value.length>0||o.value.length>0||i.value.length>0);return(l,u)=>a.value?(k(),R(ee,{key:1},[r.value.length>0?(k(),R(ee,{key:0},[d("div",{class:Se(["section-title",{expanded:s.sys}]),onClick:u[0]||(u[0]=c=>n("sys"))},[...u[4]||(u[4]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),ie(" SYSTEM PROMPT ",-1)])],2),Ke(d("div",gg,[d("div",mg,[u[5]||(u[5]=d("div",{class:"msg-header"},[d("span",{class:"cat-tag sys"},"SYS")],-1)),d("div",vg,[(k(!0),R(ee,null,Oe(r.value,(c,f)=>(k(),ve(It,{key:"sys-"+f,block:c},null,8,["block"]))),128))])])],512),[[it,s.sys]])],64)):X("",!0),o.value.length>0?(k(),R(ee,{key:1},[d("div",{class:Se(["section-title",{expanded:s.tool}]),onClick:u[1]||(u[1]=c=>n("tool"))},[...u[6]||(u[6]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),ie(" TOOL DEFINITIONS ",-1)])],2),Ke(d("div",bg,[d("div",yg,[d("div",kg,[u[7]||(u[7]=d("span",{class:"cat-tag tool"},"TOOL",-1)),d("span",_g,G(o.value.length)+" tools",1)]),d("div",wg,[(k(!0),R(ee,null,Oe(o.value,(c,f)=>(k(),ve(It,{key:"td-"+f,block:c},null,8,["block"]))),128))])])],512),[[it,s.tool]])],64)):X("",!0),i.value.length>0?(k(),R(ee,{key:2},[d("div",{class:Se(["section-title",{expanded:s.msgs}]),onClick:u[2]||(u[2]=c=>n("msgs"))},[...u[8]||(u[8]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),ie(" MESSAGES ",-1)])],2),Ke(d("div",xg,[d("div",Sg,[(k(!0),R(ee,null,Oe(i.value,(c,f)=>(k(),R("div",{key:"msg-"+f,class:"msg"},[d("div",Rg,[u[9]||(u[9]=d("span",{class:"cat-tag msg"},"MSG",-1)),d("span",Tg,G(c.role),1)]),d("div",Cg,[(k(!0),R(ee,null,Oe(c.blocks||[],(h,p)=>(k(),ve(It,{key:"msg-block-"+p,block:h},null,8,["block"]))),128))])]))),128))])],512),[[it,s.msgs]])],64)):X("",!0)],64)):(k(),R("div",pg,[...u[3]||(u[3]=[d("p",null,"No conversation data",-1)])]))}}),Ag=qe($g,[["__scopeId","data-v-7b569ee4"]]),Eg={class:"json-container"},Ig={class:"json-num"},Og=["innerHTML"],Pg=Pe({__name:"JsonViewer",props:{data:{}},setup(e){const t=e,{showToast:s}=Un(),n=K(()=>(JSON.stringify(t.data,null,2)||String(t.data)).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+]?\d+)?)/g,l=>{let u="json-number";if(/^"/.test(l)){if(/:$/.test(l)){u="json-key";const c=l.slice(0,-1);return`<span class="${u}">${c}</span>:`}u="json-string"}else/true/.test(l)?u="json-bool json-true":/false/.test(l)?u="json-bool json-false":/null/.test(l)&&(u="json-null");return`<span class="${u}">${l}</span>`}).split(`
91
+ `));function r(){const o=JSON.stringify(t.data,null,2);navigator.clipboard.writeText(o).then(()=>{s("Copied!","success",void 0,void 0,2e3)}).catch(i=>{console.error("Copy failed:",i)})}return(o,i)=>(k(),R("div",Eg,[d("button",{class:"copy-btn","aria-label":"Copy JSON content",onClick:r},[...i[0]||(i[0]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[d("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),d("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1)])]),(k(!0),R(ee,null,Oe(n.value,(a,l)=>(k(),R("div",{key:l,class:"json-line"},[d("span",Ig,G(l+1),1),d("span",{innerHTML:a},null,8,Og)]))),128))]))}}),Rn=qe(Pg,[["__scopeId","data-v-ec5b7cf7"]]),Mg={class:"section-content expanded"},Ng={class:"json-block"},Dg={class:"section-content expanded"},Lg={class:"json-block"},Bg=Pe({__name:"RequestView",props:{record:{}},setup(e){const t=zt({headers:!0,body:!0});function s(n){t[n]=!t[n]}return(n,r)=>{var o,i;return k(),R("div",null,[d("div",{class:Se(["section-title",{expanded:t.headers}]),onClick:r[0]||(r[0]=a=>s("headers"))},[...r[2]||(r[2]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),ie(" REQUEST HEADERS ",-1)])],2),Ke(d("div",Mg,[d("div",Ng,[Ce(Rn,{data:((o=e.record.request)==null?void 0:o.headers)||{}},null,8,["data"])])],512),[[it,t.headers]]),d("div",{class:Se(["section-title",{expanded:t.body}]),onClick:r[1]||(r[1]=a=>s("body"))},[...r[3]||(r[3]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),ie(" REQUEST BODY ",-1)])],2),Ke(d("div",Dg,[d("div",Lg,[Ce(Rn,{data:((i=e.record.request)==null?void 0:i.body)||{}},null,8,["data"])])],512),[[it,t.body]])])}}}),jg=qe(Bg,[["__scopeId","data-v-33c2a25e"]]),Hg={key:0,class:"empty-state"},Fg={class:"section-content expanded"},Vg={class:"json-block"},Ug={class:"section-content expanded"},qg={class:"json-block"},zg=Pe({__name:"ResponseView",props:{record:{}},setup(e){const t=zt({headers:!0,body:!0});function s(n){t[n]=!t[n]}return(n,r)=>e.record.response?(k(),R(ee,{key:1},[d("div",{class:Se(["section-title",{expanded:t.headers}]),onClick:r[0]||(r[0]=o=>s("headers"))},[...r[3]||(r[3]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),ie(" RESPONSE HEADERS ",-1)])],2),Ke(d("div",Fg,[d("div",Vg,[Ce(Rn,{data:e.record.response.headers||{}},null,8,["data"])])],512),[[it,t.headers]]),d("div",{class:Se(["section-title",{expanded:t.body}]),onClick:r[1]||(r[1]=o=>s("body"))},[...r[4]||(r[4]=[d("svg",{class:"section-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"m6 9 6 6 6-6"})],-1),ie(" RESPONSE BODY ",-1)])],2),Ke(d("div",Ug,[d("div",qg,[Ce(Rn,{data:e.record.response.body||{}},null,8,["data"])])],512),[[it,t.body]])],64)):(k(),R("div",Hg,[...r[2]||(r[2]=[d("p",null,"No response data",-1)])]))}}),Gg=qe(zg,[["__scopeId","data-v-f86302b7"]]),Kg={class:"container"},Wg={key:0,class:"loading"},Zg={key:1,class:"error-banner"},Qg={class:"page-title"},Jg={key:0,class:"subtitle"},Yg={class:"count"},Xg={class:"stat-section"},em={class:"stat-row-inline"},tm={class:"view-toggle"},sm={class:"record-view-content"},nm=Pe({__name:"RecordView",props:{sessionId:{},recordId:{}},setup(e){const t=e,s=oe(!0),n=oe(""),r=oe({}),o=oe({}),i=oe(null),a=oe({}),l=oe("changes"),u=K(()=>a.value.title||t.sessionId),c=K(()=>a.value.title?t.sessionId:""),f=K(()=>r.value.requestSentAt!=null&&r.value.firstTokenAt!=null),h=K(()=>{var T;return((T=i.value)==null?void 0:T.isUserCall)??!1}),p=K(()=>{var T;return((T=i.value)==null?void 0:T.interRequestDuration)??null}),v=K(()=>{if(!r.value.requestAt||!r.value.responseAt)return"-";const T=new Date(r.value.responseAt).getTime()-new Date(r.value.requestAt).getTime();return us(T)}),y=K(()=>{const T=o.value.usage;return T?(T.inputMissTokens||0)+(T.inputHitTokens||0)+(T.outputTokens||0):0}),w=K(()=>{const T=o.value.usage;if(!T)return"0%";const H=(T.inputMissTokens||0)+(T.inputHitTokens||0);return H===0?"0%":`${((T.inputHitTokens||0)/H*100).toFixed(1)}%`}),M=K(()=>{const T=r.value;if(T.requestSentAt==null||T.firstTokenAt==null||T.lastTokenAt==null)return null;const H=T.firstTokenAt-T.requestSentAt;let se=null;const F=o.value.usage;return F&&F.outputTokens&&F.outputTokens>0&&(se=(T.lastTokenAt-T.firstTokenAt)/F.outputTokens),{ttft:H,tpot:se}}),$=K(()=>{var F,ue,le;const T=[],H=[{key:"URL",value:((F=r.value.request)==null?void 0:F.url)||""},{key:"Method",value:((ue=r.value.request)==null?void 0:ue.method)||"GET"}];((le=r.value.response)==null?void 0:le.status)!=null&&H.push({key:"Status",value:String(r.value.response.status)}),H.push({key:"SSE",value:f.value?"true":"false"}),o.value.model&&H.push({key:"Model",value:o.value.model}),o.value.provider&&H.push({key:"Provider",value:o.value.provider}),H.push({key:"Type",value:h.value?"USER":"AGENT"}),T.push({title:"Request",layout:"inline",items:H}),o.value.usage&&T.push({title:"Token Usage",layout:"inline",items:[{key:"Input (miss)",value:lt(o.value.usage.inputMissTokens||0)},{key:"Input (hit)",value:lt(o.value.usage.inputHitTokens||0)},{key:"Output",value:lt(o.value.usage.outputTokens||0)},{key:"Total",value:lt(y.value),modifier:"highlight"},{key:"Hit Rate",value:w.value}]});const se=[{key:"Request",value:li(r.value.requestAt)},{key:"Response",value:li(r.value.responseAt)}];return p.value!=null&&se.push({key:"Gap",value:us(p.value)}),se.push({key:"Duration",value:v.value}),M.value&&(se.push({key:"TTFT",value:cs(M.value.ttft)}),M.value.tpot!=null&&se.push({key:"TPOT",value:cs(M.value.tpot)})),T.push({title:"Time Usage",layout:"inline",items:se}),T});async function D(){s.value=!0,n.value="";try{const[T,H,se,F]=await Promise.all([St(`sessions/${encodeURIComponent(t.sessionId)}/records/${t.recordId}`),St(`sessions/${encodeURIComponent(t.sessionId)}/records/${t.recordId}/parsed`),St(`sessions/${encodeURIComponent(t.sessionId)}/timeline`),St(`sessions/${encodeURIComponent(t.sessionId)}`)]);r.value=T,o.value=H,a.value=F.session||{};const ue=se.changes||[];i.value=ue.find(le=>le.requestId===T.id)||null}catch(T){n.value=`Failed to load record: ${Be(T.message)}`}finally{s.value=!1}}return Gt(D),(T,H)=>{var se;return k(),R("div",Kg,[s.value?(k(),R("div",Wg,[...H[4]||(H[4]=[d("div",{class:"spinner"},null,-1),ie("Loading record...",-1)])])):n.value?(k(),R("div",Zg,G(n.value),1)):(k(),R(ee,{key:2},[d("div",Qg,[ie(G(u.value)+" ",1),c.value?(k(),R("span",Jg,G(c.value),1)):X("",!0),d("span",Yg,"#"+G(e.recordId),1)]),Ce(jl,{title:"Record Metadata",sections:$.value},cc({_:2},[(se=i.value)!=null&&se.delta?{name:"before-sections",fn:ys(()=>[d("div",Xg,[H[5]||(H[5]=d("div",{class:"stat-section-title"},"Changes",-1)),d("div",em,[Ce(Bl,{change:i.value},null,8,["change"])])])]),key:"0"}:void 0]),1032,["sections"]),d("div",tm,[d("button",{class:Se({active:l.value==="changes"}),onClick:H[0]||(H[0]=F=>l.value="changes")},"Changes",2),d("button",{class:Se({active:l.value==="conversation"}),onClick:H[1]||(H[1]=F=>l.value="conversation")},"Conversation",2),d("button",{class:Se({active:l.value==="request"}),onClick:H[2]||(H[2]=F=>l.value="request")},"Request",2),d("button",{class:Se({active:l.value==="response"}),onClick:H[3]||(H[3]=F=>l.value="response")},"Response",2)]),d("div",sm,[l.value==="changes"?(k(),ve(hg,{key:0,"change-data":i.value},null,8,["change-data"])):l.value==="conversation"?(k(),ve(Ag,{key:1,parsed:o.value},null,8,["parsed"])):l.value==="request"?(k(),ve(jg,{key:2,record:r.value},null,8,["record"])):l.value==="response"?(k(),ve(Gg,{key:3,record:r.value},null,8,["record"])):X("",!0)])],64))])}}}),rm=qe(nm,[["__scopeId","data-v-5c1b1583"]]),om=Nf({history:hf(),routes:[{path:"/",name:"sessions",component:gh},{path:"/session/:sessionId",name:"timeline",component:Zh,props:!0},{path:"/session/:sessionId/record/:recordId",name:"record",component:rm,props:!0},{path:"/:pathMatch(.*)*",redirect:"/"}]}),Jl=Ru(Cd);Jl.use(om);Jl.mount("#app");