@opencode-trace/viewer 0.0.4 → 0.0.6

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 Xl=Object.defineProperty;var ea=(e,t,s)=>t in e?Xl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var _e=(e,t,s)=>ea(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={},ds=[],Rt=()=>{},mi=()=>!1,Cn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$n=e=>e.startsWith("onUpdate:"),Ve=Object.assign,Cr=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ta=Object.prototype.hasOwnProperty,ve=(e,t)=>ta.call(e,t),ee=Array.isArray,hs=e=>Js(e)==="[object Map]",An=e=>Js(e)==="[object Set]",ao=e=>Js(e)==="[object Date]",re=e=>typeof e=="function",Ae=e=>typeof e=="string",dt=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",vi=e=>(ke(e)||re(e))&&re(e.then)&&re(e.catch),bi=Object.prototype.toString,Js=e=>bi.call(e),sa=e=>Js(e).slice(8,-1),yi=e=>Js(e)==="[object Object]",$r=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ns=Tr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),En=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},na=/-\w/g,et=En(e=>e.replace(na,t=>t.slice(1).toUpperCase())),ra=/\B([A-Z])/g,Kt=En(e=>e.replace(ra,"-$1").toLowerCase()),In=En(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kn=En(e=>e?`on${In(e)}`:""),xt=(e,t)=>!Object.is(e,t),un=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},ki=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},On=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let co;const Pn=()=>co||(co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ar(e){if(ee(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=Ae(n)?aa(n):Ar(n);if(r)for(const o in r)t[o]=r[o]}return t}else if(Ae(e)||ke(e))return e}const oa=/;(?![^(]*\))/g,ia=/:([^]+)/,la=/\/\*[^]*?\*\//g;function aa(e){const t={};return e.replace(la,"").split(oa).forEach(s=>{if(s){const n=s.split(ia);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Se(e){let t="";if(Ae(e))t=e;else if(ee(e))for(let s=0;s<e.length;s++){const n=Se(e[s]);n&&(t+=n+" ")}else if(ke(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const ca="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ua=Tr(ca);function _i(e){return!!e||e===""}function fa(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=ao(e),n=ao(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=ee(e),n=ee(t),s||n)return s&&n?fa(e,t):!1;if(s=ke(e),n=ke(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 da(e,t){return e.findIndex(s=>Ys(s,t))}const wi=e=>!!(e&&e.__v_isRef===!0),K=e=>Ae(e)?e:e==null?"":ee(e)||ke(e)&&(e.toString===bi||!re(e.toString))?wi(e)?K(e.value):JSON.stringify(e,xi,2):String(e),xi=(e,t)=>wi(t)?xi(e,t.value):hs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],o)=>(s[Gn(n,o)+" =>"]=r,s),{})}:An(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Gn(s))}:dt(t)?Gn(t):ke(t)&&!ee(t)&&!yi(t)?String(t):t,Gn=(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 He;class ha{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&&He&&(He.active?(this.parent=He,this.index=(He.scopes||(He.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=He;try{return He=this,t()}finally{He=s}}}on(){++this._on===1&&(this.prevScope=He,He=this)}off(){if(this._on>0&&--this._on===0){if(He===this)He=this.prevScope;else{let t=He;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 pa(){return He}let Te;const Wn=new WeakSet;class Si{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,He&&(He.active?He.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||Ti(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,uo(this),Ci(this);const t=Te,s=ft;Te=this,ft=!0;try{return this.fn()}finally{$i(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,uo(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 Ri=0,Ds,Ls;function Ti(e,t=!1){if(e.flags|=8,t){e.next=Ls,Ls=e;return}e.next=Ds,Ds=e}function Er(){Ri++}function Ir(){if(--Ri>0)return;if(Ls){let t=Ls;for(Ls=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ds;){let t=Ds;for(Ds=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 Ci(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $i(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Or(n),ga(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&&(Ai(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ai(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{Ci(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,$i(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 ga(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 Ei=[];function Mt(){Ei.push(ft),ft=!1}function Nt(){const e=Ei.pop();ft=e===void 0?!0:e}function uo(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 ma{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class 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 ma(Te,this),Te.deps?(s.prevDep=Te.depsTail,Te.depsTail.nextDep=s,Te.depsTail=s):Te.deps=Te.depsTail=s,Ii(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 Ii(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)Ii(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const lr=new WeakMap,ss=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=ee(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(ss)),hs(e)&&a(i.get(ar)));break;case"delete":l||(a(i.get(ss)),hs(e)&&a(i.get(ar)));break;case"set":hs(e)&&a(i.get(ss));break}}Ir()}function is(e){const t=me(e);return t===e?t:(ze(t,"iterate",qs),at(e)?t:t.map(ht))}function Mn(e){return ze(e=me(e),"iterate",qs),e}function _t(e,t){return Dt(e)?ys(ns(e)?ht(t):t):ht(t)}const va={__proto__:null,[Symbol.iterator](){return Zn(this,Symbol.iterator,e=>_t(this,e))},concat(...e){return is(this).concat(...e.map(t=>ee(t)?is(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 is(this).join(e)},lastIndexOf(...e){return Qn(this,"lastIndexOf",e)},map(e,t){return Ct(this,"map",e,t,void 0,arguments)},pop(){return Ts(this,"pop")},push(...e){return Ts(this,"push",e)},reduce(e,...t){return fo(this,"reduce",e,t)},reduceRight(e,...t){return fo(this,"reduceRight",e,t)},shift(){return Ts(this,"shift")},some(e,t){return Ct(this,"some",e,t,void 0,arguments)},splice(...e){return Ts(this,"splice",e)},toReversed(){return is(this).toReversed()},toSorted(e){return is(this).toSorted(e)},toSpliced(...e){return is(this).toSpliced(...e)},unshift(...e){return Ts(this,"unshift",e)},values(){return Zn(this,"values",e=>_t(this,e))}};function Zn(e,t,s){const n=Mn(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 ba=Array.prototype;function Ct(e,t,s,n,r,o){const i=Mn(e),a=i!==e&&!at(e),l=i[t];if(l!==ba[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 fo(e,t,s,n){const r=Mn(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=me(e);ze(n,"iterate",qs);const r=n[t](...s);return(r===-1||r===!1)&&Dr(s[0])?(s[0]=me(s[0]),n[t](...s)):r}function Ts(e,t,s=[]){Mt(),Er();const n=me(e)[t].apply(e,s);return Ir(),Nt(),n}const ya=Tr("__proto__,__v_isRef,__isVue"),Oi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dt));function ka(e){dt(e)||(e=String(e));const t=me(this);return ze(t,"has",e),t.hasOwnProperty(e)}class Pi{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?Ea:Li:o?Di:Ni).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=ee(t);if(!r){let l;if(i&&(l=va[s]))return l;if(s==="hasOwnProperty")return ka}const a=Reflect.get(t,s,Ze(t)?t:n);if((dt(s)?Oi.has(s):ya(s))||(r||ze(t,"get",s),o))return a;if(Ze(a)){const l=i&&$r(s)?a:a.value;return r&&ke(l)?ur(l):l}return ke(a)?r?ur(a):Gt(a):a}}class Mi extends Pi{constructor(t=!1){super(!1,t)}set(t,s,n,r){let o=t[s];const i=ee(t)&&$r(s);if(!this._isShallow){const u=Dt(o);if(!at(n)&&!Dt(n)&&(o=me(o),n=me(n)),!i&&Ze(o)&&!Ze(n))return u||(o.value=n),!0}const a=i?Number(s)<t.length:ve(t,s),l=Reflect.set(t,s,n,Ze(t)?t:r);return t===me(r)&&(a?xt(n,o)&&Ot(t,"set",s,n):Ot(t,"add",s,n)),l}deleteProperty(t,s){const n=ve(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)||!Oi.has(s))&&ze(t,"has",s),n}ownKeys(t){return ze(t,"iterate",ee(t)?"length":ss),Reflect.ownKeys(t)}}class _a extends Pi{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const wa=new Mi,xa=new _a,Sa=new Mi(!0);const cr=e=>e,nn=e=>Reflect.getPrototypeOf(e);function Ra(e,t,s){return function(...n){const r=this.__v_raw,o=me(r),i=hs(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=r[e](...n),c=s?cr:t?ys:ht;return!t&&ze(o,"iterate",l?ar:ss),Ve(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 rn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ta(e,t){const s={get(r){const o=this.__v_raw,i=me(o),a=me(r);e||(xt(r,a)&&ze(i,"get",r),ze(i,"get",a));const{has:l}=nn(i),u=t?cr:e?ys: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(me(r),"iterate",ss),r.size},has(r){const o=this.__v_raw,i=me(o),a=me(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=me(a),u=t?cr:e?ys:ht;return!e&&ze(l,"iterate",ss),a.forEach((c,f)=>r.call(o,u(c),u(f),i))}};return Ve(s,e?{add:rn("add"),set:rn("set"),delete:rn("delete"),clear:rn("clear")}:{add(r){const o=me(this),i=nn(o),a=me(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=me(o));const i=me(this),{has:a,get:l}=nn(i);let u=a.call(i,r);u||(r=me(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=me(this),{has:i,get:a}=nn(o);let l=i.call(o,r);l||(r=me(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=me(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]=Ra(r,e,t)}),s}function Mr(e,t){const s=Ta(e,t);return(n,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(ve(s,r)&&r in n?s:n,r,o)}const Ca={get:Mr(!1,!1)},$a={get:Mr(!1,!0)},Aa={get:Mr(!0,!1)};const Ni=new WeakMap,Di=new WeakMap,Li=new WeakMap,Ea=new WeakMap;function Ia(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Oa(e){return e.__v_skip||!Object.isExtensible(e)?0:Ia(sa(e))}function Gt(e){return Dt(e)?e:Nr(e,!1,wa,Ca,Ni)}function Bi(e){return Nr(e,!1,Sa,$a,Di)}function ur(e){return Nr(e,!0,xa,Aa,Li)}function Nr(e,t,s,n,r){if(!ke(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Oa(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 ns(e){return Dt(e)?ns(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 me(e){const t=e&&e.__v_raw;return t?me(t):e}function Pa(e){return!ve(e,"__v_skip")&&Object.isExtensible(e)&&ki(e,"__v_skip",!0),e}const ht=e=>ke(e)?Gt(e):e,ys=e=>ke(e)?ur(e):e;function Ze(e){return e?e.__v_isRef===!0:!1}function ne(e){return ji(e,!1)}function Ma(e){return ji(e,!0)}function ji(e,t){return Ze(e)?e:new Na(e,t)}class Na{constructor(t,s){this.dep=new Pr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:me(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:me(t),xt(t,s)&&(this._rawValue=t,this._value=n?t:ht(t),this.dep.trigger())}}function Ne(e){return Ze(e)?e.value:e}const Da={get:(e,t,s)=>t==="__v_raw"?e:Ne(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 Hi(e){return ns(e)?e:new Proxy(e,Da)}class La{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 Ti(this,!0),!0}get value(){const t=this.dep.track();return Ai(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ba(e,t,s=!1){let n,r;return re(e)?n=e:(n=e.get,r=e.set),new La(n,r,s)}const on={},hn=new WeakMap;let Jt;function ja(e,t=!1,s=Jt){if(s){let n=hn.get(s);n||hn.set(s,n=[]),n.push(e)}}function Ha(e,t,s=xe){const{immediate:n,deep:r,once:o,scheduler:i,augmentJob:a,call:l}=s,u=M=>r?M:at(M)||r===!1||r===0?Pt(M,1):Pt(M);let c,f,h,p,v=!1,y=!1;if(Ze(e)?(f=()=>e.value,v=at(e)):ns(e)?(f=()=>u(e),v=!0):ee(e)?(y=!0,v=e.some(M=>ns(M)||at(M)),f=()=>e.map(M=>{if(Ze(M))return M.value;if(ns(M))return u(M);if(re(M))return l?l(M,2):M()})):re(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){Mt();try{h()}finally{Nt()}}const M=Jt;Jt=c;try{return l?l(e,3,[p]):e(p)}finally{Jt=M}}:f=Rt,t&&r){const M=f,P=r===!0?1/0:r;f=()=>Pt(M(),P)}const x=pa(),O=()=>{c.stop(),x&&x.active&&Cr(x.effects,c)};if(o&&t){const M=t;t=(...P)=>{M(...P),O()}}let C=y?new Array(e.length).fill(on):on;const N=M=>{if(!(!(c.flags&1)||!c.dirty&&!M))if(t){const P=c.run();if(r||v||(y?P.some((z,H)=>xt(z,C[H])):xt(P,C))){h&&h();const z=Jt;Jt=c;try{const H=[P,C===on?void 0:y&&C[0]===on?[]:C,p];C=P,l?l(t,3,H):t(...H)}finally{Jt=z}}}else c.run()};return a&&a(N),c=new Si(f),c.scheduler=i?()=>i(N,!1):N,p=M=>ja(M,!1,c),h=c.onStop=()=>{const M=hn.get(c);if(M){if(l)l(M,4);else for(const P of M)P();hn.delete(c)}},t?n?N(!0):C=c.run():i?i(N.bind(null,!0),!0):c.run(),O.pause=c.pause.bind(c),O.resume=c.resume.bind(c),O.stop=O,O}function Pt(e,t=1/0,s){if(t<=0||!ke(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(ee(e))for(let n=0;n<e.length;n++)Pt(e[n],t,s);else if(An(e)||hs(e))e.forEach(n=>{Pt(n,t,s)});else if(yi(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){Nn(r,t,s)}}function Tt(e,t,s,n){if(re(e)){const r=Xs(e,t,s,n);return r&&vi(r)&&r.catch(o=>{Nn(o,t,s)}),r}if(ee(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Tt(e[o],t,s,n));return r}}function Nn(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}}Fa(e,s,r,n,i)}function Fa(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const Xe=[];let kt=-1;const ps=[];let Ut=null,as=0;const Fi=Promise.resolve();let pn=null;function Lr(e){const t=pn||Fi;return e?t.then(this?e.bind(this):e):t}function Va(e){let t=kt+1,s=Xe.length;for(;t<s;){const n=t+s>>>1,r=Xe[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=Xe[Xe.length-1];!s||!(e.flags&2)&&t>=zs(s)?Xe.push(e):Xe.splice(Va(t),0,e),e.flags|=1,Vi()}}function Vi(){pn||(pn=Fi.then(qi))}function Ua(e){ee(e)?ps.push(...e):Ut&&e.id===-1?Ut.splice(as+1,0,e):e.flags&1||(ps.push(e),e.flags|=1),Vi()}function ho(e,t,s=kt+1){for(;s<Xe.length;s++){const n=Xe[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Xe.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ui(e){if(ps.length){const t=[...new Set(ps)].sort((s,n)=>zs(s)-zs(n));if(ps.length=0,Ut){Ut.push(...t);return}for(Ut=t,as=0;as<Ut.length;as++){const s=Ut[as];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ut=null,as=0}}const zs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function qi(e){try{for(kt=0;kt<Xe.length;kt++){const t=Xe[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<Xe.length;kt++){const t=Xe[kt];t&&(t.flags&=-2)}kt=-1,Xe.length=0,Ui(),pn=null,(Xe.length||ps.length)&&qi()}}let Fe=null,zi=null;function gn(e){const t=Fe;return Fe=e,zi=e&&e.type.__scopeId||null,t}function ks(e,t=Fe,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&bn(-1);const o=gn(t);let i;try{i=e(...r)}finally{gn(o),n._d&&bn(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function Ge(e,t){if(Fe===null)return e;const s=Hn(Fe),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,a,l=xe]=t[r];o&&(re(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 Wt(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 gs(e,t){if(Ke){let s=Ke.provides;const n=Ke.parent&&Ke.parent.provides;n===s&&(s=Ke.provides=Object.create(n)),s[e]=t}}function ot(e,t,s=!1){const n=zc();if(n||vs){let r=vs?vs._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&&re(t)?t.call(n&&n.proxy):t}}const qa=Symbol.for("v-scx"),za=()=>ot(qa);function zt(e,t,s){return Ki(e,t,s)}function Ki(e,t,s=xe){const{immediate:n,deep:r,flush:o,once:i}=s,a=Ve({},s),l=t&&n||!t&&o!=="post";let u;if(Ws){if(o==="sync"){const p=za();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Rt,p.resume=Rt,p.pause=Rt,p}}const c=Ke;a.call=(p,v,y)=>Tt(p,c,v,y);let f=!1;o==="post"?a.scheduler=p=>{Je(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=Ha(e,t,a);return Ws&&(u?u.push(h):l&&h()),h}function Ka(e,t,s){const n=this.proxy,r=Ae(e)?e.includes(".")?Gi(n,e):()=>n[e]:e.bind(n,n);let o;re(t)?o=t:(o=t.handler,s=t);const i=tn(this),a=Ki(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 Vt=new WeakMap,Wi=Symbol("_vte"),Ga=e=>e.__isTeleport,Yt=e=>e&&(e.disabled||e.disabled===""),Wa=e=>e&&(e.defer||e.defer===""),po=e=>typeof SVGElement<"u"&&e instanceof SVGElement,go=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,fr=(e,t)=>{const s=e&&e.to;return Ae(s)?t?t(s):null:s},Za={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:x,parentNode:O}}=u,C=Yt(t.props);let{dynamicChildren:N}=t;const M=(H,oe,ue)=>{H.shapeFlag&16&&c(H.children,oe,ue,r,o,i,a,l)},P=(H=t)=>{const oe=Yt(H.props),ue=H.target=fr(H.props,v),$e=dr(ue,H,y,p);ue&&(i!=="svg"&&po(ue)?i="svg":i!=="mathml"&&go(ue)&&(i="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(ue),oe||(M(H,ue,$e),Is(H,!1)))},z=H=>{const oe=()=>{if(Vt.get(H)===oe){if(Vt.delete(H),Yt(H.props)){const ue=O(H.el)||s;M(H,ue,H.anchor),Is(H,!0)}P(H)}};Vt.set(H,oe),Je(oe,o)};if(e==null){const H=t.el=y(""),oe=t.anchor=y("");if(p(H,s,n),p(oe,s,n),Wa(t.props)||o&&o.pendingBranch){z(t);return}C&&(M(t,s,oe),Is(t,!0)),P()}else{t.el=e.el;const H=t.anchor=e.anchor,oe=Vt.get(e);if(oe){oe.flags|=8,Vt.delete(e),z(t);return}t.targetStart=e.targetStart;const ue=t.target=e.target,$e=t.targetAnchor=e.targetAnchor,Be=Yt(e.props),tt=Be?s:ue,F=Be?H:$e;if(i==="svg"||po(ue)?i="svg":(i==="mathml"||go(ue))&&(i="mathml"),N?(h(e.dynamicChildren,N,tt,r,o,i,a),Ur(e,t,!0)):l||f(e,t,tt,F,r,o,i,a,!1),C)Be?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ln(t,s,H,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const U=t.target=fr(t.props,v);U&&ln(t,U,null,u,0)}else Be&&ln(t,ue,$e,u,1);Is(t,C)}},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||!Yt(h);const v=Vt.get(e);if(v&&(v.flags|=8,Vt.delete(e),p=!1),f&&(r(u),r(c)),o&&r(l),i&16)for(let y=0;y<a.length;y++){const x=a[y];n(x,t,s,p,!!x.dynamicChildren)}},move:ln,hydrate:Qa};function ln(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),!Vt.has(e)&&(!f||Yt(c))&&l&16)for(let h=0;h<u.length;h++)r(u[h],t,s,2);f&&n(a,t,s)}function Qa(e,t,s,n,r,o,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:u,createText:c}},f){function h(x,O){let C=O;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,x._lpa=t.targetAnchor&&i(t.targetAnchor);break}}C=i(C)}}function p(x,O){O.anchor=f(i(x),O,a(x),s,n,r,o)}const v=t.target=fr(t.props,l),y=Yt(t.props);if(v){const x=v._lpa||v.firstChild;t.shapeFlag&16&&(y?(p(e,t),h(v,x),t.targetAnchor||dr(v,t,c,u,a(e)===v?e:null)):(t.anchor=i(e),h(v,x),t.targetAnchor||dr(v,t,c,u),f(x&&i(x),t,v,s,n,r,o))),Is(t,y)}else y&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const Dn=Za;function Is(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[Wi]=i,e&&(n(o,e,r),n(i,e,r)),i}const Ja=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 re(e)?Ve({name:e.name},t,{setup:e}):e}function Zi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mo(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const mn=new WeakMap;function Bs(e,t,s,n,r=!1){if(ee(e)){e.forEach((y,x)=>Bs(y,t&&(ee(t)?t[x]:t),s,n,r));return}if(ms(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=me(f),p=f===xe?mi:y=>mo(c,y)?!1:ve(h,y),v=(y,x)=>!(x&&mo(c,x));if(u!=null&&u!==l){if(vo(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(re(l))Xs(l,a,12,[i,c]);else{const y=Ae(l),x=Ze(l);if(y||x){const O=()=>{if(e.f){const C=y?p(l)?f[l]:c[l]:v()||!e.k?l.value:c[e.k];if(r)ee(C)&&Cr(C,o);else if(ee(C))C.includes(o)||C.push(o);else if(y)c[l]=[o],p(l)&&(f[l]=c[l]);else{const N=[o];v(l,e.k)&&(l.value=N),e.k&&(c[e.k]=N)}}else y?(c[l]=i,p(l)&&(f[l]=i)):x&&(v(l,e.k)&&(l.value=i),e.k&&(c[e.k]=i))};if(i){const C=()=>{O(),mn.delete(e)};C.id=-1,mn.set(e,C),Je(C,s)}else vo(e),O()}}}function vo(e){const t=mn.get(e);t&&(t.flags|=8,mn.delete(e))}Pn().requestIdleCallback;Pn().cancelIdleCallback;const ms=e=>!!e.type.__asyncLoader,Qi=e=>e.type.__isKeepAlive;function Ya(e,t){Ji(e,"a",t)}function Xa(e,t){Ji(e,"da",t)}function Ji(e,t,s=Ke){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ln(t,n,s),s){let r=s.parent;for(;r&&r.parent;)Qi(r.parent.vnode)&&ec(n,t,s,r),r=r.parent}}function ec(e,t,s,n){const r=Ln(t,e,n,!0);en(()=>{Cr(n[t],r)},s)}function Ln(e,t,s=Ke,n=!1){if(s){const r=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Mt();const a=tn(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=Ke)=>{(!Ws||e==="sp")&&Ln(e,(...n)=>t(...n),s)},tc=Bt("bm"),jt=Bt("m"),sc=Bt("bu"),nc=Bt("u"),rc=Bt("bum"),en=Bt("um"),oc=Bt("sp"),ic=Bt("rtg"),lc=Bt("rtc");function ac(e,t=Ke){Ln("ec",e,t)}const Yi="components";function Hr(e,t){return el(Yi,e,!0,t)||e}const Xi=Symbol.for("v-ndc");function cc(e){return Ae(e)?el(Yi,e,!1)||e:e||Xi}function el(e,t,s=!0,n=!1){const r=Fe||Ke;if(r){const o=r.type;{const a=Qc(o,!1);if(a&&(a===t||a===et(t)||a===In(et(t))))return o}const i=bo(r[e]||o[e],t)||bo(r.appContext[e],t);return!i&&n?o:i}}function bo(e,t){return e&&(e[t]||e[et(t)]||e[In(et(t))])}function Oe(e,t,s,n){let r;const o=s,i=ee(e);if(i||Ae(e)){const a=i&&ns(e);let l=!1,u=!1;a&&(l=!at(e),u=Dt(e),e=Mn(e)),r=new Array(e.length);for(let c=0,f=e.length;c<f;c++)r[c]=t(l?u?ys(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(ke(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 uc(e,t){for(let s=0;s<t.length;s++){const n=t[s];if(ee(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 yo(e,t,s={},n,r){if(Fe.ce||Fe.parent&&ms(Fe.parent)&&Fe.parent.ce){const u=Object.keys(s).length>0;return t!=="default"&&(s.name=t),k(),be(te,null,[Ce("slot",s,n)],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),k();const i=o&&tl(o(s)),a=s.key||i&&i.key,l=be(te,{key:(a&&!dt(a)?a:`_${t}`)+(!i&&n?"_fb":"")},i||[],i&&e._===1?64:-2);return o&&o._c&&(o._d=!0),l}function tl(e){return e.some(t=>Gs(t)?!(t.type===Lt||t.type===te&&!tl(t.children)):!0)?e:null}const hr=e=>e?kl(e)?Hn(e):hr(e.parent):null,js=Ve(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=>nl(e),$forceUpdate:e=>e.f||(e.f=()=>{Br(e.update)}),$nextTick:e=>e.n||(e.n=Lr.bind(e.proxy)),$watch:e=>Ka.bind(e)}),Jn=(e,t)=>e!==xe&&!e.__isScriptSetup&&ve(e,t),fc={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&&ve(r,t))return i[t]=2,r[t];if(ve(o,t))return i[t]=3,o[t];if(s!==xe&&ve(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&&ve(s,t))return i[t]=4,s[t];if(f=l.config.globalProperties,ve(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&&ve(n,t)?(n[t]=s,!0):ve(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]!=="$"&&ve(e,a)||Jn(t,a)||ve(o,a)||ve(n,a)||ve(js,a)||ve(r.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ve(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function ko(e){return ee(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let pr=!0;function dc(e){const t=nl(e),s=e.proxy,n=e.ctx;pr=!1,t.beforeCreate&&_o(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:x,beforeDestroy:O,beforeUnmount:C,destroyed:N,unmounted:M,render:P,renderTracked:z,renderTriggered:H,errorCaptured:oe,serverPrefetch:ue,expose:$e,inheritAttrs:Be,components:tt,directives:F,filters:U}=t;if(u&&hc(u,n,null),i)for(const ie in i){const le=i[ie];re(le)&&(n[ie]=le.bind(s))}if(r){const ie=r.call(s,s);ke(ie)&&(e.data=Gt(ie))}if(pr=!0,o)for(const ie in o){const le=o[ie],q=re(le)?le.bind(s,s):re(le.get)?le.get.bind(s,s):Rt,A=!re(le)&&re(le.set)?le.set.bind(s):Rt,J=G({get:q,set:A});Object.defineProperty(n,ie,{enumerable:!0,configurable:!0,get:()=>J.value,set:D=>J.value=D})}if(a)for(const ie in a)sl(a[ie],n,s,ie);if(l){const ie=re(l)?l.call(s):l;Reflect.ownKeys(ie).forEach(le=>{gs(le,ie[le])})}c&&_o(c,e,"c");function fe(ie,le){ee(le)?le.forEach(q=>ie(q.bind(s))):le&&ie(le.bind(s))}if(fe(tc,f),fe(jt,h),fe(sc,p),fe(nc,v),fe(Ya,y),fe(Xa,x),fe(ac,oe),fe(lc,z),fe(ic,H),fe(rc,C),fe(en,M),fe(oc,ue),ee($e))if($e.length){const ie=e.exposed||(e.exposed={});$e.forEach(le=>{Object.defineProperty(ie,le,{get:()=>s[le],set:q=>s[le]=q,enumerable:!0})})}else e.exposed||(e.exposed={});P&&e.render===Rt&&(e.render=P),Be!=null&&(e.inheritAttrs=Be),tt&&(e.components=tt),F&&(e.directives=F),ue&&Zi(e)}function hc(e,t,s=Rt){ee(e)&&(e=gr(e));for(const n in e){const r=e[n];let o;ke(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 _o(e,t,s){Tt(ee(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function sl(e,t,s,n){let r=n.includes(".")?Gi(s,n):()=>s[n];if(Ae(e)){const o=t[e];re(o)&&zt(r,o)}else if(re(e))zt(r,e.bind(s));else if(ke(e))if(ee(e))e.forEach(o=>sl(o,t,s,n));else{const o=re(e.handler)?e.handler.bind(s):t[e.handler];re(o)&&zt(r,o,e)}}function nl(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=>vn(l,u,i,!0)),vn(l,t,i)),ke(t)&&o.set(t,l),l}function vn(e,t,s,n=!1){const{mixins:r,extends:o}=t;o&&vn(e,o,s,!0),r&&r.forEach(i=>vn(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=pc[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const pc={data:wo,props:xo,emits:xo,methods:Os,computed:Os,beforeCreate:Qe,created:Qe,beforeMount:Qe,mounted:Qe,beforeUpdate:Qe,updated:Qe,beforeDestroy:Qe,beforeUnmount:Qe,destroyed:Qe,unmounted:Qe,activated:Qe,deactivated:Qe,errorCaptured:Qe,serverPrefetch:Qe,components:Os,directives:Os,watch:mc,provide:wo,inject:gc};function wo(e,t){return t?e?function(){return Ve(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function gc(e,t){return Os(gr(e),gr(t))}function gr(e){if(ee(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Qe(e,t){return e?[...new Set([].concat(e,t))]:t}function Os(e,t){return e?Ve(Object.create(null),e,t):t}function xo(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:Ve(Object.create(null),ko(e),ko(t??{})):t}function mc(e,t){if(!e)return t;if(!t)return e;const s=Ve(Object.create(null),e);for(const n in t)s[n]=Qe(e[n],t[n]);return s}function rl(){return{app:null,config:{isNativeTag:mi,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 vc=0;function bc(e,t){return function(n,r=null){re(n)||(n=Ve({},n)),r!=null&&!ke(r)&&(r=null);const o=rl(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:vc++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Yc,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&re(c.install)?(i.add(c),c.install(u,...f)):re(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=vs;vs=u;try{return c()}finally{vs=f}}};return u}}let vs=null;const yc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${et(t)}Modifiers`]||e[`${Kt(t)}Modifiers`];function kc(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||xe;let r=s;const o=t.startsWith("update:"),i=o&&yc(n,t.slice(7));i&&(i.trim&&(r=s.map(c=>Ae(c)?c.trim():c)),i.number&&(r=s.map(On)));let a,l=n[a=Kn(t)]||n[a=Kn(et(t))];!l&&o&&(l=n[a=Kn(Kt(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 _c=new WeakMap;function ol(e,t,s=!1){const n=s?_c:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const o=e.emits;let i={},a=!1;if(!re(e)){const l=u=>{const c=ol(u,t,!0);c&&(a=!0,Ve(i,c))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(ke(e)&&n.set(e,null),null):(ee(o)?o.forEach(l=>i[l]=null):Ve(i,o),ke(e)&&n.set(e,i),i)}function Bn(e,t){return!e||!Cn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,Kt(t))||ve(e,t))}function So(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,x=gn(e);let O,C;try{if(s.shapeFlag&4){const M=r||n,P=M;O=wt(u.call(P,M,c,f,p,h,v)),C=a}else{const M=t;O=wt(M.length>1?M(f,{attrs:a,slots:i,emit:l}):M(f,null)),C=t.props?a:wc(a)}}catch(M){Hs.length=0,Nn(M,e,1),O=Ce(Lt)}let N=O;if(C&&y!==!1){const M=Object.keys(C),{shapeFlag:P}=N;M.length&&P&7&&(o&&M.some($n)&&(C=xc(C,o)),N=_s(N,C,!1,!0))}return s.dirs&&(N=_s(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(s.dirs):s.dirs),s.transition&&jr(N,s.transition),O=N,gn(x),O}const wc=e=>{let t;for(const s in e)(s==="class"||s==="style"||Cn(s))&&((t||(t={}))[s]=e[s]);return t},xc=(e,t)=>{const s={};for(const n in e)(!$n(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Sc(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?Ro(n,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(il(i,n,h)&&!Bn(u,h))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:n===i?!1:n?i?Ro(n,i,u):!0:!!i;return!1}function Ro(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(il(t,e,o)&&!Bn(s,o))return!0}return!1}function il(e,t,s){const n=e[s],r=t[s];return s==="style"&&ke(n)&&ke(r)?!Ys(n,r):n!==r}function Rc({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 ll={},al=()=>Object.create(ll),cl=e=>Object.getPrototypeOf(e)===ll;function Tc(e,t,s,n=!1){const r={},o=al();e.propsDefaults=Object.create(null),ul(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);s?e.props=n?r:Bi(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Cc(e,t,s,n){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,a=me(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(ve(o,h))p!==o[h]&&(o[h]=p,u=!0);else{const v=et(h);r[v]=mr(l,a,v,p,e,!1)}else p!==o[h]&&(o[h]=p,u=!0)}}}else{ul(e,t,r,o)&&(u=!0);let c;for(const f in a)(!t||!ve(t,f)&&((c=Kt(f))===f||!ve(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||!ve(t,f))&&(delete o[f],u=!0)}u&&Ot(e.attrs,"set","")}function ul(e,t,s,n){const[r,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Ns(l))continue;const u=t[l];let c;r&&ve(r,c=et(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=me(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,!ve(u,f))}}return i}function mr(e,t,s,n,r,o){const i=e[s];if(i!=null){const a=ve(i,"default");if(a&&n===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&re(l)){const{propsDefaults:u}=r;if(s in u)n=u[s];else{const c=tn(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===Kt(s))&&(n=!0))}return n}const $c=new WeakMap;function fl(e,t,s=!1){const n=s?$c:t.propsCache,r=n.get(e);if(r)return r;const o=e.props,i={},a=[];let l=!1;if(!re(e)){const c=f=>{l=!0;const[h,p]=fl(f,t,!0);Ve(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 ke(e)&&n.set(e,ds),ds;if(ee(o))for(let c=0;c<o.length;c++){const f=et(o[c]);To(f)&&(i[f]=xe)}else if(o)for(const c in o){const f=et(c);if(To(f)){const h=o[c],p=i[f]=ee(h)||re(h)?{type:h}:Ve({},h),v=p.type;let y=!1,x=!0;if(ee(v))for(let O=0;O<v.length;++O){const C=v[O],N=re(C)&&C.name;if(N==="Boolean"){y=!0;break}else N==="String"&&(x=!1)}else y=re(v)&&v.name==="Boolean";p[0]=y,p[1]=x,(y||ve(p,"default"))&&a.push(f)}}const u=[i,a];return ke(e)&&n.set(e,u),u}function To(e){return e[0]!=="$"&&!Ns(e)}const Fr=e=>e==="_"||e==="_ctx"||e==="$stable",Vr=e=>ee(e)?e.map(wt):[wt(e)],Ac=(e,t,s)=>{if(t._n)return t;const n=ks((...r)=>Vr(t(...r)),s);return n._c=!1,n},dl=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Fr(r))continue;const o=e[r];if(re(o))t[r]=Ac(r,o,n);else if(o!=null){const i=Vr(o);t[r]=()=>i}}},hl=(e,t)=>{const s=Vr(t);e.slots.default=()=>s},pl=(e,t,s)=>{for(const n in t)(s||!Fr(n))&&(e[n]=t[n])},Ec=(e,t,s)=>{const n=e.slots=al();if(e.vnode.shapeFlag&32){const r=t._;r?(pl(n,t,s),s&&ki(n,"_",r,!0)):dl(t,n)}else t&&hl(e,t)},Ic=(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:pl(r,t,s):(o=!t.$stable,dl(t,r)),i=t}else t&&(hl(e,t),i={default:1});if(o)for(const a in r)!Fr(a)&&i[a]==null&&delete r[a]},Je=Dc;function Oc(e){return Pc(e)}function Pc(e,t){const s=Pn();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,w=null,T=null,S=null,L=void 0,I=null,E=!!m.dynamicChildren)=>{if(g===m)return;g&&!Cs(g,m)&&(w=_(g),D(g,T,S,!0),g=null),m.patchFlag===-2&&(E=!1,m.dynamicChildren=null);const{type:$,ref:Y,shapeFlag:j}=m;switch($){case jn:x(g,m,b,w);break;case Lt:O(g,m,b,w);break;case fn:g==null&&C(m,b,w,L);break;case te:tt(g,m,b,w,T,S,L,I,E);break;default:j&1?P(g,m,b,w,T,S,L,I,E):j&6?F(g,m,b,w,T,S,L,I,E):(j&64||j&128)&&$.process(g,m,b,w,T,S,L,I,E,Z)}Y!=null&&T?Bs(Y,g&&g.ref,S,m||g,!m):Y==null&&g&&g.ref!=null&&Bs(g.ref,null,S,g,!0)},x=(g,m,b,w)=>{if(g==null)n(m.el=a(m.children),b,w);else{const T=m.el=g.el;m.children!==g.children&&u(T,m.children)}},O=(g,m,b,w)=>{g==null?n(m.el=l(m.children||""),b,w):m.el=g.el},C=(g,m,b,w)=>{[g.el,g.anchor]=v(g.children,m,b,w,g.el,g.anchor)},N=({el:g,anchor:m},b,w)=>{let T;for(;g&&g!==m;)T=h(g),n(g,b,w),g=T;n(m,b,w)},M=({el:g,anchor:m})=>{let b;for(;g&&g!==m;)b=h(g),r(g),g=b;r(m)},P=(g,m,b,w,T,S,L,I,E)=>{if(m.type==="svg"?L="svg":m.type==="math"&&(L="mathml"),g==null)z(m,b,w,T,S,L,I,E);else{const $=g.el&&g.el._isVueCE?g.el:null;try{$&&$._beginPatch(),ue(g,m,T,S,L,I,E)}finally{$&&$._endPatch()}}},z=(g,m,b,w,T,S,L,I)=>{let E,$;const{props:Y,shapeFlag:j,transition:Q,dirs:se}=g;if(E=g.el=i(g.type,S,Y&&Y.is,Y),j&8?c(E,g.children):j&16&&oe(g.children,E,null,w,T,Yn(g,S),L,I),se&&Wt(g,null,w,"created"),H(E,g,g.scopeId,L,w),Y){for(const we in Y)we!=="value"&&!Ns(we)&&o(E,we,null,Y[we],S,w);"value"in Y&&o(E,"value",null,Y.value,S),($=Y.onVnodeBeforeMount)&&bt($,w,g)}se&&Wt(g,null,w,"beforeMount");const pe=Mc(T,Q);pe&&Q.beforeEnter(E),n(E,m,b),(($=Y&&Y.onVnodeMounted)||pe||se)&&Je(()=>{try{$&&bt($,w,g),pe&&Q.enter(E),se&&Wt(g,null,w,"mounted")}finally{}},T)},H=(g,m,b,w,T)=>{if(b&&p(g,b),w)for(let S=0;S<w.length;S++)p(g,w[S]);if(T){let S=T.subTree;if(m===S||vl(S.type)&&(S.ssContent===m||S.ssFallback===m)){const L=T.vnode;H(g,L,L.scopeId,L.slotScopeIds,T.parent)}}},oe=(g,m,b,w,T,S,L,I,E=0)=>{for(let $=E;$<g.length;$++){const Y=g[$]=I?Et(g[$]):wt(g[$]);y(null,Y,m,b,w,T,S,L,I)}},ue=(g,m,b,w,T,S,L)=>{const I=m.el=g.el;let{patchFlag:E,dynamicChildren:$,dirs:Y}=m;E|=g.patchFlag&16;const j=g.props||xe,Q=m.props||xe;let se;if(b&&Zt(b,!1),(se=Q.onVnodeBeforeUpdate)&&bt(se,b,m,g),Y&&Wt(m,g,b,"beforeUpdate"),b&&Zt(b,!0),(j.innerHTML&&Q.innerHTML==null||j.textContent&&Q.textContent==null)&&c(I,""),$?$e(g.dynamicChildren,$,I,b,w,Yn(m,T),S):L||le(g,m,I,null,b,w,Yn(m,T),S,!1),E>0){if(E&16)Be(I,j,Q,b,T);else if(E&2&&j.class!==Q.class&&o(I,"class",null,Q.class,T),E&4&&o(I,"style",j.style,Q.style,T),E&8){const pe=m.dynamicProps;for(let we=0;we<pe.length;we++){const Re=pe[we],Me=j[Re],je=Q[Re];(je!==Me||Re==="value")&&o(I,Re,Me,je,T,b)}}E&1&&g.children!==m.children&&c(I,m.children)}else!L&&$==null&&Be(I,j,Q,b,T);((se=Q.onVnodeUpdated)||Y)&&Je(()=>{se&&bt(se,b,m,g),Y&&Wt(m,g,b,"updated")},w)},$e=(g,m,b,w,T,S,L)=>{for(let I=0;I<m.length;I++){const E=g[I],$=m[I],Y=E.el&&(E.type===te||!Cs(E,$)||E.shapeFlag&198)?f(E.el):b;y(E,$,Y,null,w,T,S,L,!0)}},Be=(g,m,b,w,T)=>{if(m!==b){if(m!==xe)for(const S in m)!Ns(S)&&!(S in b)&&o(g,S,m[S],null,T,w);for(const S in b){if(Ns(S))continue;const L=b[S],I=m[S];L!==I&&S!=="value"&&o(g,S,I,L,T,w)}"value"in b&&o(g,"value",m.value,b.value,T)}},tt=(g,m,b,w,T,S,L,I,E)=>{const $=m.el=g?g.el:a(""),Y=m.anchor=g?g.anchor:a("");let{patchFlag:j,dynamicChildren:Q,slotScopeIds:se}=m;se&&(I=I?I.concat(se):se),g==null?(n($,b,w),n(Y,b,w),oe(m.children||[],b,Y,T,S,L,I,E)):j>0&&j&64&&Q&&g.dynamicChildren&&g.dynamicChildren.length===Q.length?($e(g.dynamicChildren,Q,b,T,S,L,I),(m.key!=null||T&&m===T.subTree)&&Ur(g,m,!0)):le(g,m,b,Y,T,S,L,I,E)},F=(g,m,b,w,T,S,L,I,E)=>{m.slotScopeIds=I,g==null?m.shapeFlag&512?T.ctx.activate(m,b,w,L,E):U(m,b,w,T,S,L,E):W(g,m,E)},U=(g,m,b,w,T,S,L)=>{const I=g.component=qc(g,w,T);if(Qi(g)&&(I.ctx.renderer=Z),Kc(I,!1,L),I.asyncDep){if(T&&T.registerDep(I,fe,L),!g.el){const E=I.subTree=Ce(Lt);O(null,E,m,b),g.placeholder=E.el}}else fe(I,g,m,b,T,S,L)},W=(g,m,b)=>{const w=m.component=g.component;if(Sc(g,m,b))if(w.asyncDep&&!w.asyncResolved){ie(w,m,b);return}else w.next=m,w.update();else m.el=g.el,w.vnode=m},fe=(g,m,b,w,T,S,L)=>{const I=()=>{if(g.isMounted){let{next:j,bu:Q,u:se,parent:pe,vnode:we}=g;{const mt=gl(g);if(mt){j&&(j.el=we.el,ie(g,j,L)),mt.asyncDep.then(()=>{Je(()=>{g.isUnmounted||$()},T)});return}}let Re=j,Me;Zt(g,!1),j?(j.el=we.el,ie(g,j,L)):j=we,Q&&un(Q),(Me=j.props&&j.props.onVnodeBeforeUpdate)&&bt(Me,pe,j,we),Zt(g,!0);const je=So(g),gt=g.subTree;g.subTree=je,y(gt,je,f(gt.el),_(gt),g,T,S),j.el=je.el,Re===null&&Rc(g,je.el),se&&Je(se,T),(Me=j.props&&j.props.onVnodeUpdated)&&Je(()=>bt(Me,pe,j,we),T)}else{let j;const{el:Q,props:se}=m,{bm:pe,m:we,parent:Re,root:Me,type:je}=g,gt=ms(m);Zt(g,!1),pe&&un(pe),!gt&&(j=se&&se.onVnodeBeforeMount)&&bt(j,Re,m),Zt(g,!0);{Me.ce&&Me.ce._hasShadowRoot()&&Me.ce._injectChildStyle(je,g.parent?g.parent.type:void 0);const mt=g.subTree=So(g);y(null,mt,b,w,g,T,S),m.el=mt.el}if(we&&Je(we,T),!gt&&(j=se&&se.onVnodeMounted)){const mt=m;Je(()=>bt(j,Re,mt),T)}(m.shapeFlag&256||Re&&ms(Re.vnode)&&Re.vnode.shapeFlag&256)&&g.a&&Je(g.a,T),g.isMounted=!0,m=b=w=null}};g.scope.on();const E=g.effect=new Si(I);g.scope.off();const $=g.update=E.run.bind(E),Y=g.job=E.runIfDirty.bind(E);Y.i=g,Y.id=g.uid,E.scheduler=()=>Br(Y),Zt(g,!0),$()},ie=(g,m,b)=>{m.component=g;const w=g.vnode.props;g.vnode=m,g.next=null,Cc(g,m.props,w,b),Ic(g,m.children,b),Mt(),ho(g),Nt()},le=(g,m,b,w,T,S,L,I,E=!1)=>{const $=g&&g.children,Y=g?g.shapeFlag:0,j=m.children,{patchFlag:Q,shapeFlag:se}=m;if(Q>0){if(Q&128){A($,j,b,w,T,S,L,I,E);return}else if(Q&256){q($,j,b,w,T,S,L,I,E);return}}se&8?(Y&16&&ae($,T,S),j!==$&&c(b,j)):Y&16?se&16?A($,j,b,w,T,S,L,I,E):ae($,T,S,!0):(Y&8&&c(b,""),se&16&&oe(j,b,w,T,S,L,I,E))},q=(g,m,b,w,T,S,L,I,E)=>{g=g||ds,m=m||ds;const $=g.length,Y=m.length,j=Math.min($,Y);let Q;for(Q=0;Q<j;Q++){const se=m[Q]=E?Et(m[Q]):wt(m[Q]);y(g[Q],se,b,null,T,S,L,I,E)}$>Y?ae(g,T,S,!0,!1,j):oe(m,b,w,T,S,L,I,E,j)},A=(g,m,b,w,T,S,L,I,E)=>{let $=0;const Y=m.length;let j=g.length-1,Q=Y-1;for(;$<=j&&$<=Q;){const se=g[$],pe=m[$]=E?Et(m[$]):wt(m[$]);if(Cs(se,pe))y(se,pe,b,null,T,S,L,I,E);else break;$++}for(;$<=j&&$<=Q;){const se=g[j],pe=m[Q]=E?Et(m[Q]):wt(m[Q]);if(Cs(se,pe))y(se,pe,b,null,T,S,L,I,E);else break;j--,Q--}if($>j){if($<=Q){const se=Q+1,pe=se<Y?m[se].el:w;for(;$<=Q;)y(null,m[$]=E?Et(m[$]):wt(m[$]),b,pe,T,S,L,I,E),$++}}else if($>Q)for(;$<=j;)D(g[$],T,S,!0),$++;else{const se=$,pe=$,we=new Map;for($=pe;$<=Q;$++){const nt=m[$]=E?Et(m[$]):wt(m[$]);nt.key!=null&&we.set(nt.key,$)}let Re,Me=0;const je=Q-pe+1;let gt=!1,mt=0;const Rs=new Array(je);for($=0;$<je;$++)Rs[$]=0;for($=se;$<=j;$++){const nt=g[$];if(Me>=je){D(nt,T,S,!0);continue}let vt;if(nt.key!=null)vt=we.get(nt.key);else for(Re=pe;Re<=Q;Re++)if(Rs[Re-pe]===0&&Cs(nt,m[Re])){vt=Re;break}vt===void 0?D(nt,T,S,!0):(Rs[vt-pe]=$+1,vt>=mt?mt=vt:gt=!0,y(nt,m[vt],b,null,T,S,L,I,E),Me++)}const oo=gt?Nc(Rs):ds;for(Re=oo.length-1,$=je-1;$>=0;$--){const nt=pe+$,vt=m[nt],io=m[nt+1],lo=nt+1<Y?io.el||ml(io):w;Rs[$]===0?y(null,vt,b,lo,T,S,L,I,E):gt&&(Re<0||$!==oo[Re]?J(vt,b,lo,2):Re--)}}},J=(g,m,b,w,T=null)=>{const{el:S,type:L,transition:I,children:E,shapeFlag:$}=g;if($&6){J(g.component.subTree,m,b,w);return}if($&128){g.suspense.move(m,b,w);return}if($&64){L.move(g,m,b,Z);return}if(L===te){n(S,m,b);for(let j=0;j<E.length;j++)J(E[j],m,b,w);n(g.anchor,m,b);return}if(L===fn){N(g,m,b);return}if(w!==2&&$&1&&I)if(w===0)I.beforeEnter(S),n(S,m,b),Je(()=>I.enter(S),T);else{const{leave:j,delayLeave:Q,afterLeave:se}=I,pe=()=>{g.ctx.isUnmounted?r(S):n(S,m,b)},we=()=>{S._isLeaving&&S[Ja](!0),j(S,()=>{pe(),se&&se()})};Q?Q(S,pe,we):we()}else n(S,m,b)},D=(g,m,b,w=!1,T=!1)=>{const{type:S,props:L,ref:I,children:E,dynamicChildren:$,shapeFlag:Y,patchFlag:j,dirs:Q,cacheIndex:se,memo:pe}=g;if(j===-2&&(T=!1),I!=null&&(Mt(),Bs(I,null,b,g,!0),Nt()),se!=null&&(m.renderCache[se]=void 0),Y&256){m.ctx.deactivate(g);return}const we=Y&1&&Q,Re=!ms(g);let Me;if(Re&&(Me=L&&L.onVnodeBeforeUnmount)&&bt(Me,m,g),Y&6)qe(g.component,b,w);else{if(Y&128){g.suspense.unmount(b,w);return}we&&Wt(g,null,m,"beforeUnmount"),Y&64?g.type.remove(g,m,b,Z,w):$&&!$.hasOnce&&(S!==te||j>0&&j&64)?ae($,m,b,!1,!0):(S===te&&j&384||!T&&Y&16)&&ae(E,m,b),w&&Ee(g)}const je=pe!=null&&se==null;(Re&&(Me=L&&L.onVnodeUnmounted)||we||je)&&Je(()=>{Me&&bt(Me,m,g),we&&Wt(g,null,m,"unmounted"),je&&(g.el=null)},b)},Ee=g=>{const{type:m,el:b,anchor:w,transition:T}=g;if(m===te){st(b,w);return}if(m===fn){M(g);return}const S=()=>{r(b),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(g.shapeFlag&1&&T&&!T.persisted){const{leave:L,delayLeave:I}=T,E=()=>L(b,S);I?I(g.el,S,E):E()}else S()},st=(g,m)=>{let b;for(;g!==m;)b=h(g),r(g),g=b;r(m)},qe=(g,m,b)=>{const{bum:w,scope:T,job:S,subTree:L,um:I,m:E,a:$}=g;Co(E),Co($),w&&un(w),T.stop(),S&&(S.flags|=8,D(L,g,m,b)),I&&Je(I,m),Je(()=>{g.isUnmounted=!0},m)},ae=(g,m,b,w=!1,T=!1,S=0)=>{for(let L=S;L<g.length;L++)D(g[L],m,b,w,T)},_=g=>{if(g.shapeFlag&6)return _(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const m=h(g.anchor||g.el),b=m&&m[Wi];return b?h(b):m};let V=!1;const B=(g,m,b)=>{let w;g==null?m._vnode&&(D(m._vnode,null,null,!0),w=m._vnode.component):y(m._vnode||null,g,m,null,null,null,b),m._vnode=g,V||(V=!0,ho(w),Ui(),V=!1)},Z={p:y,um:D,m:J,r:Ee,mt:U,mc:oe,pc:le,pbc:$e,n:_,o:e};return{render:B,hydrate:void 0,createApp:bc(B)}}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 Zt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Mc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ur(e,t,s=!1){const n=e.children,r=t.children;if(ee(n)&&ee(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 Nc(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 gl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:gl(t)}function Co(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ml(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ml(t.subTree):null}const vl=e=>e.__isSuspense;function Dc(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):Ua(e)}const te=Symbol.for("v-fgt"),jn=Symbol.for("v-txt"),Lt=Symbol.for("v-cmt"),fn=Symbol.for("v-stc"),Hs=[];let rt=null;function k(e=!1){Hs.push(rt=e?null:[])}function Lc(){Hs.pop(),rt=Hs[Hs.length-1]||null}let Ks=1;function bn(e,t=!1){Ks+=e,e<0&&rt&&t&&(rt.hasOnce=!0)}function bl(e){return e.dynamicChildren=Ks>0?rt||ds:null,Lc(),Ks>0&&rt&&rt.push(e),e}function R(e,t,s,n,r,o){return bl(d(e,t,s,n,r,o,!0))}function be(e,t,s,n,r){return bl(Ce(e,t,s,n,r,!0))}function Gs(e){return e?e.__v_isVNode===!0:!1}function Cs(e,t){return e.type===t.type&&e.key===t.key}const yl=({key:e})=>e??null,dn=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Ae(e)||Ze(e)||re(e)?{i:Fe,r:e,k:t,f:!!s}:e:null);function d(e,t=null,s=null,n=0,r=null,o=e===te?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yl(t),ref:t&&dn(t),scopeId:zi,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:Fe};return a?(qr(l,s),o&128&&e.normalize(l)):s&&(l.shapeFlag|=Ae(s)?8:16),Ks>0&&!i&&rt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&rt.push(l),l}const Ce=Bc;function Bc(e,t=null,s=null,n=0,r=null,o=!1){if((!e||e===Xi)&&(e=Lt),Gs(e)){const a=_s(e,t,!0);return s&&qr(a,s),Ks>0&&!o&&rt&&(a.shapeFlag&6?rt[rt.indexOf(e)]=a:rt.push(a)),a.patchFlag=-2,a}if(Jc(e)&&(e=e.__vccOpts),t){t=jc(t);let{class:a,style:l}=t;a&&!Ae(a)&&(t.class=Se(a)),ke(l)&&(Dr(l)&&!ee(l)&&(l=Ve({},l)),t.style=Ar(l))}const i=Ae(e)?1:vl(e)?128:Ga(e)?64:ke(e)?4:re(e)?2:0;return d(e,t,s,n,r,i,o,!0)}function jc(e){return e?Dr(e)||cl(e)?Ve({},e):e:null}function _s(e,t,s=!1,n=!1){const{props:r,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?Fc(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&yl(u),ref:t&&t.ref?s&&o?ee(o)?o.concat(dn(t)):[o,dn(t)]:dn(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!==te?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&&_s(e.ssContent),ssFallback:e.ssFallback&&_s(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 ce(e=" ",t=0){return Ce(jn,null,e,t)}function Hc(e,t){const s=Ce(fn,null,e);return s.staticCount=t,s}function X(e="",t=!1){return t?(k(),be(Lt,null,e)):Ce(Lt,null,e)}function wt(e){return e==null||typeof e=="boolean"?Ce(Lt):ee(e)?Ce(te,null,e.slice()):Gs(e)?Et(e):Ce(jn,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_s(e)}function qr(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ee(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&&!cl(t)?t._ctx=Fe:r===3&&Fe&&(Fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:Fe},s=32):(t=String(t),n&64?(s=16,t=[ce(t)]):s=8);e.children=t,e.shapeFlag|=s}function Fc(...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(Cn(r)){const o=t[r],i=n[r];i&&o!==i&&!(ee(o)&&o.includes(i))?t[r]=o?[].concat(o,i):i:i==null&&o==null&&!$n(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 Vc=rl();let Uc=0;function qc(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||Vc,o={uid:Uc++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ha(!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:fl(n,r),emitsOptions:ol(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=kc.bind(null,o),e.ce&&e.ce(o),o}let Ke=null;const zc=()=>Ke||Fe;let yn,vr;{const e=Pn(),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)}};yn=t("__VUE_INSTANCE_SETTERS__",s=>Ke=s),vr=t("__VUE_SSR_SETTERS__",s=>Ws=s)}const tn=e=>{const t=Ke;return yn(e),e.scope.on(),()=>{e.scope.off(),yn(t)}},$o=()=>{Ke&&Ke.scope.off(),yn(null)};function kl(e){return e.vnode.shapeFlag&4}let Ws=!1;function Kc(e,t=!1,s=!1){t&&vr(t);const{props:n,children:r}=e.vnode,o=kl(e);Tc(e,n,o,t),Ec(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,fc);const{setup:n}=s;if(n){Mt();const r=e.setupContext=n.length>1?Zc(e):null,o=tn(e),i=Xs(n,e,0,[e.props,r]),a=vi(i);if(Nt(),o(),(a||e.sp)&&!ms(e)&&Zi(e),a){if(i.then($o,$o),t)return i.then(l=>{Ao(e,l)}).catch(l=>{Nn(l,e,0)});e.asyncDep=i}else Ao(e,i)}else _l(e)}function Ao(e,t,s){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ke(t)&&(e.setupState=Hi(t)),_l(e)}function _l(e,t,s){const n=e.type;e.render||(e.render=n.render||Rt);{const r=tn(e);Mt();try{dc(e)}finally{Nt(),r()}}}const Wc={get(e,t){return ze(e,"get",""),e[t]}};function Zc(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Wc),slots:e.slots,emit:e.emit,expose:t}}function Hn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hi(Pa(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 Qc(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Jc(e){return re(e)&&"__vccOpts"in e}const G=(e,t)=>Ba(e,t,Ws);function wl(e,t,s){try{bn(-1);const n=arguments.length;return n===2?ke(t)&&!ee(t)?Gs(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Gs(s)&&(s=[s]),Ce(e,t,s))}finally{bn(1)}}const Yc="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 Eo=typeof window<"u"&&window.trustedTypes;if(Eo)try{br=Eo.createPolicy("vue",{createHTML:e=>e})}catch{}const xl=br?e=>br.createHTML(e):e=>e,Xc="http://www.w3.org/2000/svg",eu="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,Io=At&&At.createElement("template"),tu={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(Xc,e):t==="mathml"?At.createElementNS(eu,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{Io.innerHTML=xl(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=Io.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]}},su=Symbol("_vtc");function nu(e,t,s){const n=e[su];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const kn=Symbol("_vod"),Sl=Symbol("_vsh"),it={name:"show",beforeMount(e,{value:t},{transition:s}){e[kn]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):$s(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),$s(e,!0),n.enter(e)):n.leave(e,()=>{$s(e,!1)}):$s(e,t))},beforeUnmount(e,{value:t}){$s(e,t)}};function $s(e,t){e.style.display=t?e[kn]:"none",e[Sl]=!t}const ru=Symbol(""),ou=/(?:^|;)\s*display\s*:/;function iu(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&&Ps(n,a,"")}else for(const i in t)s[i]==null&&Ps(n,i,"");for(const i in s){i==="display"&&(o=!0);const a=s[i];a!=null?au(e,i,!Ae(t)&&t?t[i]:void 0,a)||Ps(n,i,a):Ps(n,i,"")}}else if(r){if(t!==s){const i=n[ru];i&&(s+=";"+i),n.cssText=s,o=ou.test(s)}}else t&&e.removeAttribute("style");kn in e&&(e[kn]=o?n.display:"",e[Sl]&&(n.display="none"))}const Oo=/\s*!important$/;function Ps(e,t,s){if(ee(s))s.forEach(n=>Ps(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=lu(e,t);Oo.test(s)?e.setProperty(Kt(n),s.replace(Oo,""),"important"):e[n]=s}}const Po=["Webkit","Moz","ms"],Xn={};function lu(e,t){const s=Xn[t];if(s)return s;let n=et(t);if(n!=="filter"&&n in e)return Xn[t]=n;n=In(n);for(let r=0;r<Po.length;r++){const o=Po[r]+n;if(o in e)return Xn[t]=o}return t}function au(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Ae(n)&&s===n}const Mo="http://www.w3.org/1999/xlink";function No(e,t,s,n,r,o=ua(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Mo,t.slice(6,t.length)):e.setAttributeNS(Mo,t,s):s==null||o&&!_i(s)?e.removeAttribute(t):e.setAttribute(t,o?"":dt(s)?String(s):s)}function Do(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?xl(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=_i(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 Xt(e,t,s,n){e.addEventListener(t,s,n)}function cu(e,t,s,n){e.removeEventListener(t,s,n)}const Lo=Symbol("_vei");function uu(e,t,s,n,r=null){const o=e[Lo]||(e[Lo]={}),i=o[t];if(n&&i)i.value=n;else{const[a,l]=fu(t);if(n){const u=o[t]=pu(n,r);Xt(e,a,u,l)}else i&&(cu(e,a,i,l),o[t]=void 0)}}const Bo=/(?:Once|Passive|Capture)$/;function fu(e){let t;if(Bo.test(e)){t={};let n;for(;n=e.match(Bo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Kt(e.slice(2)),t]}let er=0;const du=Promise.resolve(),hu=()=>er||(du.then(()=>er=0),er=Date.now());function pu(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Tt(gu(n,s.value),t,5,[n])};return s.value=e,s.attached=hu(),s}function gu(e,t){if(ee(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 jo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mu=(e,t,s,n,r,o)=>{const i=r==="svg";t==="class"?nu(e,n,i):t==="style"?iu(e,s,n):Cn(t)?$n(t)||uu(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vu(e,t,n,i))?(Do(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&No(e,t,n,i,o,t!=="value")):e._isVueCE&&(bu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ae(n)))?Do(e,et(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),No(e,t,n,i))};function vu(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&jo(t)&&re(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 jo(t)&&Ae(s)?!1:t in e}function bu(e,t){const s=e._def.props;if(!s)return!1;const n=et(t);return Array.isArray(s)?s.some(r=>et(r)===n):Object.keys(s).some(r=>et(r)===n)}const _n=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?s=>un(t,s):t};function yu(e){e.target.composing=!0}function Ho(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const bs=Symbol("_assign");function Fo(e,t,s){return t&&(e=e.trim()),s&&(e=On(e)),e}const ku={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e[bs]=_n(r);const o=n||r.props&&r.props.type==="number";Xt(e,t?"change":"input",i=>{i.target.composing||e[bs](Fo(e.value,s,o))}),(s||o)&&Xt(e,"change",()=>{e.value=Fo(e.value,s,o)}),t||(Xt(e,"compositionstart",yu),Xt(e,"compositionend",Ho),Xt(e,"change",Ho))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:o}},i){if(e[bs]=_n(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?On(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)}},Rl={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const r=An(t);Xt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?On(wn(i)):wn(i));e[bs](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Lr(()=>{e._assigning=!1})}),e[bs]=_n(n)},mounted(e,{value:t}){Vo(e,t)},beforeUpdate(e,t,s){e[bs]=_n(s)},updated(e,{value:t}){e._assigning||Vo(e,t)}};function Vo(e,t){const s=e.multiple,n=ee(t);if(!(s&&!n&&!An(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],a=wn(i);if(s)if(n){const l=typeof a;l==="string"||l==="number"?i.selected=t.some(u=>String(u)===String(a)):i.selected=da(t,a)>-1}else i.selected=t.has(a);else if(Ys(wn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function wn(e){return"_value"in e?e._value:e.value}const _u=["ctrl","shift","alt","meta"],wu={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)=>_u.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=wu[t[i]];if(a&&a(r,t))return}return e(r,...o)}))},xu={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=Kt(r.key);if(t.some(i=>i===o||xu[i]===o))return e(r)}))},Su=Ve({patchProp:mu},tu);let Uo;function Ru(){return Uo||(Uo=Oc(Su))}const Tu=((...e)=>{const t=Ru().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=$u(n);if(!r)return;const o=t._component;!re(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=s(r,!1,Cu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function Cu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $u(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 cs=typeof document<"u";function Tl(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Au(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Tl(e.default)}const ge=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 qo(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}const Cl=/#/g,Eu=/&/g,Iu=/\//g,Ou=/=/g,Pu=/\?/g,$l=/\+/g,Mu=/%5B/g,Nu=/%5D/g,Al=/%5E/g,Du=/%60/g,El=/%7B/g,Lu=/%7C/g,Il=/%7D/g,Bu=/%20/g;function zr(e){return e==null?"":encodeURI(""+e).replace(Lu,"|").replace(Mu,"[").replace(Nu,"]")}function ju(e){return zr(e).replace(El,"{").replace(Il,"}").replace(Al,"^")}function yr(e){return zr(e).replace($l,"%2B").replace(Bu,"+").replace(Cl,"%23").replace(Eu,"%26").replace(Du,"`").replace(El,"{").replace(Il,"}").replace(Al,"^")}function Hu(e){return yr(e).replace(Ou,"%3D")}function Fu(e){return zr(e).replace(Cl,"%23").replace(Pu,"%3F")}function Vu(e){return Fu(e).replace(Iu,"%2F")}function Qs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Uu=/\/$/,qu=e=>e.replace(Uu,"");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=Wu(n??t,s),{fullPath:n+o+i,path:n,query:r,hash:Qs(i)}}function zu(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function zo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ku(e,t,s){const n=t.matched.length-1,r=s.matched.length-1;return n>-1&&n===r&&ws(t.matched[n],s.matched[r])&&Ol(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function ws(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ol(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)?Ko(e,t):pt(t)?Ko(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Ko(e,t){return pt(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function Wu(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 Ht={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 Zu(e){if(!e)if(cs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qu(e)}const Qu=/^[^#]+#/;function Ju(e,t){return e.replace(Qu,"#")+t}function Yu(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 Xu(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=Yu(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 ef(e,t){_r.set(e,t)}function tf(e){const t=_r.get(e);return _r.delete(e),t}function sf(e){return typeof e=="string"||e&&typeof e=="object"}function Pl(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 Ml=Symbol("");Ie.MATCHER_NOT_FOUND+"",Ie.NAVIGATION_GUARD_REDIRECT+"",Ie.NAVIGATION_ABORTED+"",Ie.NAVIGATION_CANCELLED+"",Ie.NAVIGATION_DUPLICATED+"";function xs(e,t){return ge(new Error,{type:e,[Ml]:!0},t)}function $t(e,t){return e instanceof Error&&Ml in e&&(t==null||!!(e.type&t))}const nf=["params","query","hash"];function rf(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const s of nf)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function of(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($l," "),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 Wo(e){let t="";for(let s in e){const n=e[s];if(s=Hu(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 lf(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 af=Symbol(""),Zo=Symbol(""),Vn=Symbol(""),Kr=Symbol(""),wr=Symbol("");function As(){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 qt(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(xs(Ie.NAVIGATION_ABORTED,{from:s,to:t})):h instanceof Error?l(h):sf(h)?l(xs(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(Tl(l)){const u=(l.__vccOpts||l)[t];u&&o.push(qt(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=Au(c)?c.default:c;i.mods[a]=c,i.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&qt(h,s,n,i,a,r)()}))}}return o}function cf(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=>ws(u,a))?n.push(a):s.push(a));const l=e.matched[i];l&&(t.matched.find(u=>ws(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 uf=()=>location.protocol+"//"+location.host;function Nl(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),zo(a,"")}return zo(s,e)+n+r}function ff(e,t,s,n){let r=[],o=[],i=null;const a=({state:h})=>{const p=Nl(e,location),v=s.value,y=t.value;let x=0;if(h){if(s.value=p,t.value=h,i&&i===v){i=null;return}x=y?h.position-y.position:0}else n(p);r.forEach(O=>{O(s.value,v,{delta:x,type:kr.pop,direction:x?x>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(ge({},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 Qo(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 df(e){const{history:t,location:s}=window,n={value:Nl(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:uf()+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,ge({},t.state,Qo(r.value.back,l,r.value.forward,!0),u,{position:r.value.position}),!0),n.value=l}function a(l,u){const c=ge({},r.value,t.state,{forward:l,scroll:Fn()});o(c.current,c,!0),o(l,ge({},Qo(n.value,l,null),{position:c.position+1},u),!1),n.value=l}return{location:n,state:r,push:a,replace:i}}function hf(e){e=Zu(e);const t=df(e),s=ff(e,t.state,t.location,t.replace);function n(o,i=!0){i||s.pauseListeners(),history.go(o)}const r=ge({location:"",base:e,go:n,createHref:Ju.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 pf(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),hf(e)}let ts=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var De=(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})(De||{});const gf={type:ts.Static,value:""},mf=/[a-zA-Z0-9_]/;function vf(e){if(!e)return[[]];if(e==="/")return[[gf]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${s})/"${u}": ${p}`)}let s=De.Static,n=s;const r=[];let o;function i(){o&&r.push(o),o=[]}let a=0,l,u="",c="";function f(){u&&(s===De.Static?o.push({type:ts.Static,value:u}):s===De.Param||s===De.ParamRegExp||s===De.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:ts.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!==De.ParamRegExp){n=s,s=De.EscapeNext;continue}switch(s){case De.Static:l==="/"?(u&&f(),i()):l===":"?(f(),s=De.Param):h();break;case De.EscapeNext:h(),s=n;break;case De.Param:l==="("?s=De.ParamRegExp:mf.test(l)?h():(f(),s=De.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case De.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:s=De.ParamRegExpEnd:c+=l;break;case De.ParamRegExpEnd:f(),s=De.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return s===De.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),i(),r}const Jo="[^/]+?",bf={sensitive:!1,strict:!1,start:!0,end:!0};var Ye=(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})(Ye||{});const yf=/[.+*?^${}()[\]/\\]/g;function kf(e,t){const s=ge({},bf,t),n=[];let r=s.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[Ye.Root];s.strict&&!u.length&&(r+="/");for(let f=0;f<u.length;f++){const h=u[f];let p=Ye.Segment+(s.sensitive?Ye.BonusCaseSensitive:0);if(h.type===ts.Static)f||(r+="/"),r+=h.value.replace(yf,"\\$&"),p+=Ye.Static;else if(h.type===ts.Param){const{value:v,repeatable:y,optional:x,regexp:O}=h;o.push({name:v,repeatable:y,optional:x});const C=O||Jo;if(C!==Jo){p+=Ye.BonusCustomRegExp;try{`${C}`}catch(M){throw new Error(`Invalid custom RegExp for param "${v}" (${C}): `+M.message)}}let N=y?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;f||(N=x&&u.length<2?`(?:/${N})`:"/"+N),x&&(N+="?"),r+=N,p+=Ye.Dynamic,x&&(p+=Ye.BonusOptional),y&&(p+=Ye.BonusRepeatable),C===".*"&&(p+=Ye.BonusWildcard)}c.push(p)}n.push(c)}if(s.strict&&s.end){const u=n.length-1;n[u][n[u].length-1]+=Ye.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===ts.Static)c+=p.value;else if(p.type===ts.Param){const{value:v,repeatable:y,optional:x}=p,O=v in u?u[v]:"";if(pt(O)&&!y)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const C=pt(O)?O.join("/"):O;if(!C)if(x)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=C}}return c||"/"}return{re:i,score:n,keys:o,parse:a,stringify:l}}function _f(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]===Ye.Static+Ye.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ye.Static+Ye.Segment?1:-1:0}function Dl(e,t){let s=0;const n=e.score,r=t.score;for(;s<n.length&&s<r.length;){const o=_f(n[s],r[s]);if(o)return o;s++}if(Math.abs(r.length-n.length)===1){if(Yo(n))return 1;if(Yo(r))return-1}return r.length-n.length}function Yo(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const wf={strict:!1,end:!0,sensitive:!1};function xf(e,t,s){const n=kf(vf(e.path),s),r=ge(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Sf(e,t){const s=[],n=new Map;t=qo(wf,t);function r(f){return n.get(f)}function o(f,h,p){const v=!p,y=ei(f);y.aliasOf=p&&p.record;const x=qo(t,f),O=[y];if("alias"in f){const M=typeof f.alias=="string"?[f.alias]:f.alias;for(const P of M)O.push(ei(ge({},y,{components:p?p.record.components:y.components,path:P,aliasOf:p?p.record:y})))}let C,N;for(const M of O){const{path:P}=M;if(h&&P[0]!=="/"){const z=h.record.path,H=z[z.length-1]==="/"?"":"/";M.path=h.record.path+(P&&H+P)}if(C=xf(M,h,x),p?p.alias.push(C):(N=N||C,N!==C&&N.alias.push(C),v&&f.name&&!ti(C)&&i(f.name)),Ll(C)&&l(C),y.children){const z=y.children;for(let H=0;H<z.length;H++)o(z[H],C,p&&p.children[H])}p=p||C}return N?()=>{i(N)}:Vs}function i(f){if(Pl(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=Cf(f,s);s.splice(h,0,f),f.record.name&&!ti(f)&&n.set(f.record.name,f)}function u(f,h){let p,v={},y,x;if("name"in f&&f.name){if(p=n.get(f.name),!p)throw xs(Ie.MATCHER_NOT_FOUND,{location:f});x=p.record.name,v=ge(Xo(h.params,p.keys.filter(N=>!N.optional).concat(p.parent?p.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),f.params&&Xo(f.params,p.keys.map(N=>N.name))),y=p.stringify(v)}else if(f.path!=null)y=f.path,p=s.find(N=>N.re.test(y)),p&&(v=p.parse(y),x=p.record.name);else{if(p=h.name?n.get(h.name):s.find(N=>N.re.test(h.path)),!p)throw xs(Ie.MATCHER_NOT_FOUND,{location:f,currentLocation:h});x=p.record.name,v=ge({},h.params,f.params),y=p.stringify(v)}const O=[];let C=p;for(;C;)O.unshift(C.record),C=C.parent;return{name:x,path:y,params:v,matched:O,meta:Tf(O)}}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 Xo(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function ei(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Rf(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 Rf(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 ti(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Tf(e){return e.reduce((t,s)=>ge(t,s.meta),{})}function Cf(e,t){let s=0,n=t.length;for(;s!==n;){const o=s+n>>1;Dl(e,t[o])<0?n=o:s=o+1}const r=$f(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function $f(e){let t=e;for(;t=t.parent;)if(Ll(t)&&Dl(e,t)===0)return t}function Ll({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function si(e){const t=ot(Vn),s=ot(Kr),n=G(()=>{const l=Ne(e.to);return t.resolve(l)}),r=G(()=>{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(ws.bind(null,c));if(h>-1)return h;const p=ni(l[u-2]);return u>1&&ni(c)===p&&f[f.length-1].path!==p?f.findIndex(ws.bind(null,l[u-2])):h}),o=G(()=>r.value>-1&&Pf(s.params,n.value.params)),i=G(()=>r.value>-1&&r.value===s.matched.length-1&&Ol(s.params,n.value.params));function a(l={}){if(Of(l)){const u=t[Ne(e.replace)?"replace":"push"](Ne(e.to)).catch(Vs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:G(()=>n.value.href),isActive:o,isExactActive:i,navigate:a}}function Af(e){return e.length===1?e[0]:e}const Ef=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:si,setup(e,{slots:t}){const s=Gt(si(e)),{options:n}=ot(Vn),r=G(()=>({[ri(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[ri(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const o=t.default&&Af(t.default(s));return e.custom?o:wl("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},o)}}}),If=Ef;function Of(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 Pf(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 ni(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ri=(e,t,s)=>e??t??s,Mf=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=G(()=>e.route||n.value),o=ot(Zo,0),i=G(()=>{let u=Ne(o);const{matched:c}=r.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=G(()=>r.value.matched[i.value]);gs(Zo,G(()=>i.value+1)),gs(af,a),gs(wr,r);const l=ne();return zt(()=>[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||!ws(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 oi(s.default,{Component:h,route:u});const p=f.props[c],v=p?p===!0?u.params:typeof p=="function"?p(u):p:null,x=wl(h,ge({},v,t,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return oi(s.default,{Component:x,route:u})||x}}});function oi(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const Nf=Mf;function Df(e){const t=Sf(e.routes,e),s=e.parseQuery||of,n=e.stringifyQuery||Wo,r=e.history,o=As(),i=As(),a=As(),l=Ma(Ht);let u=Ht;cs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=tr.bind(null,_=>""+_),f=tr.bind(null,Vu),h=tr.bind(null,Qs);function p(_,V){let B,Z;return Pl(_)?(B=t.getRecordMatcher(_),Z=V):Z=_,t.addRoute(Z,B)}function v(_){const V=t.getRecordMatcher(_);V&&t.removeRoute(V)}function y(){return t.getRoutes().map(_=>_.record)}function x(_){return!!t.getRecordMatcher(_)}function O(_,V){if(V=ge({},V||l.value),typeof _=="string"){const b=sr(s,_,V.path),w=t.resolve({path:b.path},V),T=r.createHref(b.fullPath);return ge(b,w,{params:h(w.params),hash:Qs(b.hash),redirectedFrom:void 0,href:T})}let B;if(_.path!=null)B=ge({},_,{path:sr(s,_.path,V.path).path});else{const b=ge({},_.params);for(const w in b)b[w]==null&&delete b[w];B=ge({},_,{params:f(b)}),V.params=f(V.params)}const Z=t.resolve(B,V),de=_.hash||"";Z.params=c(h(Z.params));const g=zu(n,ge({},_,{hash:ju(de),path:Z.path})),m=r.createHref(g);return ge({fullPath:g,hash:de,query:n===Wo?lf(_.query):_.query||{}},Z,{redirectedFrom:void 0,href:m})}function C(_){return typeof _=="string"?sr(s,_,l.value.path):ge({},_)}function N(_,V){if(u!==_)return xs(Ie.NAVIGATION_CANCELLED,{from:V,to:_})}function M(_){return H(_)}function P(_){return M(ge(C(_),{replace:!0}))}function z(_,V){const B=_.matched[_.matched.length-1];if(B&&B.redirect){const{redirect:Z}=B;let de=typeof Z=="function"?Z(_,V):Z;return typeof de=="string"&&(de=de.includes("?")||de.includes("#")?de=C(de):{path:de},de.params={}),ge({query:_.query,hash:_.hash,params:de.path!=null?{}:_.params},de)}}function H(_,V){const B=u=O(_),Z=l.value,de=_.state,g=_.force,m=_.replace===!0,b=z(B,Z);if(b)return H(ge(C(b),{state:typeof b=="object"?ge({},de,b.state):de,force:g,replace:m}),V||B);const w=B;w.redirectedFrom=V;let T;return!g&&Ku(n,Z,B)&&(T=xs(Ie.NAVIGATION_DUPLICATED,{to:w,from:Z}),J(Z,Z,!0,!1)),(T?Promise.resolve(T):$e(w,Z)).catch(S=>$t(S)?$t(S,Ie.NAVIGATION_GUARD_REDIRECT)?S:A(S):le(S,w,Z)).then(S=>{if(S){if($t(S,Ie.NAVIGATION_GUARD_REDIRECT))return H(ge({replace:m},C(S.to),{state:typeof S.to=="object"?ge({},de,S.to.state):de,force:g}),V||w)}else S=tt(w,Z,!0,m,de);return Be(w,Z,S),S})}function oe(_,V){const B=N(_,V);return B?Promise.reject(B):Promise.resolve()}function ue(_){const V=st.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(_):_()}function $e(_,V){let B;const[Z,de,g]=cf(_,V);B=rr(Z.reverse(),"beforeRouteLeave",_,V);for(const b of Z)b.leaveGuards.forEach(w=>{B.push(qt(w,_,V))});const m=oe.bind(null,_,V);return B.push(m),ae(B).then(()=>{B=[];for(const b of o.list())B.push(qt(b,_,V));return B.push(m),ae(B)}).then(()=>{B=rr(de,"beforeRouteUpdate",_,V);for(const b of de)b.updateGuards.forEach(w=>{B.push(qt(w,_,V))});return B.push(m),ae(B)}).then(()=>{B=[];for(const b of g)if(b.beforeEnter)if(pt(b.beforeEnter))for(const w of b.beforeEnter)B.push(qt(w,_,V));else B.push(qt(b.beforeEnter,_,V));return B.push(m),ae(B)}).then(()=>(_.matched.forEach(b=>b.enterCallbacks={}),B=rr(g,"beforeRouteEnter",_,V,ue),B.push(m),ae(B))).then(()=>{B=[];for(const b of i.list())B.push(qt(b,_,V));return B.push(m),ae(B)}).catch(b=>$t(b,Ie.NAVIGATION_CANCELLED)?b:Promise.reject(b))}function Be(_,V,B){a.list().forEach(Z=>ue(()=>Z(_,V,B)))}function tt(_,V,B,Z,de){const g=N(_,V);if(g)return g;const m=V===Ht,b=cs?history.state:{};B&&(Z||m?r.replace(_.fullPath,ge({scroll:m&&b&&b.scroll},de)):r.push(_.fullPath,de)),l.value=_,J(_,V,B,m),A()}let F;function U(){F||(F=r.listen((_,V,B)=>{if(!qe.listening)return;const Z=O(_),de=z(Z,qe.currentRoute.value);if(de){H(ge(de,{replace:!0,force:!0}),Z).catch(Vs);return}u=Z;const g=l.value;cs&&ef(Go(g.fullPath,B.delta),Fn()),$e(Z,g).catch(m=>$t(m,Ie.NAVIGATION_ABORTED|Ie.NAVIGATION_CANCELLED)?m:$t(m,Ie.NAVIGATION_GUARD_REDIRECT)?(H(ge(C(m.to),{force:!0}),Z).then(b=>{$t(b,Ie.NAVIGATION_ABORTED|Ie.NAVIGATION_DUPLICATED)&&!B.delta&&B.type===kr.pop&&r.go(-1,!1)}).catch(Vs),Promise.reject()):(B.delta&&r.go(-B.delta,!1),le(m,Z,g))).then(m=>{m=m||tt(Z,g,!1),m&&(B.delta&&!$t(m,Ie.NAVIGATION_CANCELLED)?r.go(-B.delta,!1):B.type===kr.pop&&$t(m,Ie.NAVIGATION_ABORTED|Ie.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),Be(Z,g,m)}).catch(Vs)}))}let W=As(),fe=As(),ie;function le(_,V,B){A(_);const Z=fe.list();return Z.length?Z.forEach(de=>de(_,V,B)):console.error(_),Promise.reject(_)}function q(){return ie&&l.value!==Ht?Promise.resolve():new Promise((_,V)=>{W.add([_,V])})}function A(_){return ie||(ie=!_,U(),W.list().forEach(([V,B])=>_?B(_):V()),W.reset()),_}function J(_,V,B,Z){const{scrollBehavior:de}=e;if(!cs||!de)return Promise.resolve();const g=!B&&tf(Go(_.fullPath,0))||(Z||!B)&&history.state&&history.state.scroll||null;return Lr().then(()=>de(_,V,g)).then(m=>m&&Xu(m)).catch(m=>le(m,_,V))}const D=_=>r.go(_);let Ee;const st=new Set,qe={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:x,getRoutes:y,resolve:O,options:e,push:M,replace:P,go:D,back:()=>D(-1),forward:()=>D(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:fe.add,isReady:q,install(_){_.component("RouterLink",If),_.component("RouterView",Nf),_.config.globalProperties.$router=qe,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>Ne(l)}),cs&&!Ee&&l.value===Ht&&(Ee=!0,M(r.location).catch(Z=>{}));const V={};for(const Z in Ht)Object.defineProperty(V,Z,{get:()=>l.value[Z],enumerable:!0});_.provide(Vn,qe),_.provide(Kr,Bi(V)),_.provide(wr,l);const B=_.unmount;st.add(_),_.unmount=function(){st.delete(_),st.size<1&&(u=Ht,F&&F(),F=null,l.value=Ht,Ee=!1,ie=!1),B()}}};function ae(_){return _.reduce((V,B)=>V.then(()=>ue(B)),Promise.resolve())}return qe}function Gr(){return ot(Vn)}function Bl(e){return ot(Kr)}const Lf={class:"header-actions"},Bf=["aria-expanded"],jf={class:"dropdown-menu"},Hf=Pe({__name:"AppHeader",props:{traceEnabled:{type:Boolean}},emits:["toggleTheme","toggleTrace","import","export","keyboardHelp"],setup(e){const t=Bl(),s=ne(!1),n=ne(null);function r(u){n.value&&!n.value.contains(u.target)&&(s.value=!1)}jt(()=>document.addEventListener("click",r)),en(()=>document.removeEventListener("click",r));const o=G(()=>t.name==="sessions"),i=G(()=>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"})]),ce(" opencode-trace ")],-1)),d("div",Lf,[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,Bf),Ge(d("div",jf,[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),ce(" 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)),ce(" Trace "+K(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),ce(" 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),ce(" 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),ce(" Keyboard shortcuts ",-1)])])],512),[[it,s.value]])],512)])]))}}),Ue=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Ff=Ue(Hf,[["__scopeId","data-v-dac32c4f"]]),Vf={key:0,class:"breadcrumb","aria-label":"Breadcrumb"},Uf={key:1,class:"sep"},qf={key:2,class:"current"},zf=Pe({__name:"Breadcrumb",setup(e){const t=Bl(),s=G(()=>{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",Vf,[(k(!0),R(te,null,Oe(s.value,(i,a)=>(k(),R(te,{key:i.href},[a<s.value.length-1?(k(),be(o,{key:0,to:i.href},{default:ks(()=>[ce(K(i.label),1)]),_:2},1032,["to"])):X("",!0),a<s.value.length-1?(k(),R("span",Uf,"/")):(k(),R("span",qf,K(i.label),1))],64))),128))])):X("",!0)}}}),Kf=Ue(zf,[["__scopeId","data-v-1dcd01d0"]]),Gf={class:"fab-container"},Wf=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)])])]))}}),Zf=Ue(Wf,[["__scopeId","data-v-05bb3e02"]]),ls=ne([]);let Qf=0;function Un(){function e(s,n="info",r,o,i=3e3){const a=Qf++,l={id:a,message:s,type:n,actionLabel:o,onAction:r};ls.value.push(l),setTimeout(()=>{ls.value=ls.value.filter(u=>u.id!==a)},i)}function t(s){ls.value=ls.value.filter(n=>n.id!==s)}return{toasts:ls,showToast:e,removeToast:t}}const Jf={key:0,class:"toast-container"},Yf=["onClick"],Xf=Pe({__name:"ToastContainer",setup(e){const{toasts:t,removeToast:s}=Un();return(n,r)=>(k(),be(Dn,{to:"body"},[Ne(t).length>0?(k(),R("div",Jf,[(k(!0),R(te,null,Oe(Ne(t),o=>(k(),R("div",{key:o.id,class:Se(["toast",o.type])},[d("span",null,K(o.message),1),o.actionLabel?(k(),R("button",{key:0,class:"toast-action",onClick:i=>{var a;(a=o.onAction)==null||a.call(o),Ne(s)(o.id)}},K(o.actionLabel),9,Yf)):X("",!0)],2))),128))])):X("",!0)]))}}),ed=Ue(Xf,[["__scopeId","data-v-c0d5f9b8"]]),td={class:"confirm-dialog"},sd={class:"confirm-actions"},ii="confirm-title",li="confirm-message",nd=Pe({__name:"ConfirmDialog",props:{title:{},message:{}},emits:["confirm","cancel"],setup(e){const t=ne(null);jt(()=>{var n;(n=t.value)==null||n.focus()});function s(n){n.key}return(n,r)=>(k(),be(Dn,{to:"body"},[d("div",{class:"confirm-overlay",role:"alertdialog","aria-modal":"true","aria-labelledby":ii,"aria-describedby":li,onKeydown:s},[d("div",td,[d("div",{id:ii,class:"confirm-title"},K(e.title),1),d("div",{id:li,class:"confirm-message"},K(e.message),1),d("div",sd,[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)]))}}),rd=Ue(nd,[["__scopeId","data-v-d7ee27c7"]]),od={class:"keyboard-help"},id=Pe({__name:"KeyboardHelp",emits:["close"],setup(e){const t=ne(null);return jt(()=>{var s;(s=t.value)==null||s.focus()}),(s,n)=>(k(),be(Dn,{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",od,[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,"/"),ce(" Focus search")]),d("div",{class:"shortcut"},[d("kbd",null,"E"),ce(" Export session (on session view) ")]),d("div",{class:"shortcut"},[d("kbd",null,"?"),ce(" Show this help")]),d("div",{class:"shortcut"},[d("kbd",null,"Esc"),ce(" 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)]))}}),ld=Ue(id,[["__scopeId","data-v-3d1cdec0"]]);function Le(e){return e==null?"":String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function ai(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 us(e){return e==null?"-":`${lt(Number(e.toFixed(2)))}ms`}function fs(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 ad(e){return e.split("/").pop()||e}const cd={class:"modal-content"},ud={class:"modal-header"},fd={class:"modal-body"},dd={class:"file-label"},hd={class:"file-input-wrapper"},pd={class:"import-status"},gd={key:0,class:"loading"},md={key:0,class:"conflict-panel"},vd={class:"conflict-list"},bd={class:"conflict-id"},yd={class:"conflict-title"},kd={class:"conflict-actions"},_d=Pe({__name:"ImportModal",emits:["close","imported"],setup(e,{emit:t}){const s=t,n=ne(!1),r=ne(""),o=ne("success"),i=ne([]);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: ${Le(y.error||"Unknown error")}`,o.value="error")}catch(p){r.value=`Import failed: ${Le(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: ${Le(p.error||"Unknown error")}`,o.value="error")}catch(f){r.value=`Import failed: ${Le(f.message)}`,o.value="error"}finally{n.value=!1}}}return(c,f)=>(k(),be(Dn,{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",cd,[d("div",ud,[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",fd,[d("label",dd,[f[8]||(f[8]=d("span",{class:"file-label-text"},"Select ZIP file:",-1)),d("div",hd,[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",pd,[n.value?(k(),R("div",gd,[...f[9]||(f[9]=[d("div",{class:"spinner"},null,-1),ce(" Uploading... ",-1)])])):r.value?(k(),R("div",{key:1,class:Se(["status-msg",o.value])},K(r.value),3)):X("",!0)]),i.value.length>0?(k(),R("div",md,[f[10]||(f[10]=d("h4",null,"Session Conflicts Detected",-1)),d("div",vd,[(k(!0),R(te,null,Oe(i.value,h=>(k(),R("div",{key:h.id,class:"conflict-item"},[d("span",bd,K(h.id),1),d("span",yd,K(h.title||""),1)]))),128))]),d("div",kd,[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)]))}}),wd=Ue(_d,[["__scopeId","data-v-3bdf94c5"]]),Qt=ne("dark");function xd(){function e(){try{const n=localStorage.getItem("ot-theme");n&&(Qt.value=n)}catch{}t()}function t(){document.documentElement.setAttribute("data-theme",Qt.value)}function s(){Qt.value=Qt.value==="dark"?"light":"dark";try{localStorage.setItem("ot-theme",Qt.value)}catch{}t()}return zt(Qt,t),{theme:Qt,toggleTheme:s,initTheme:e}}function Sd(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))}}jt(()=>document.addEventListener("keydown",t)),en(()=>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 Rd(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 Td(e){const t=await fetch(`${Wr}/${e}`,{method:"POST"});if(!t.ok)throw new Error(`API error: ${t.status}`);return t.json()}const Cd={id:"main-content"},$d=Pe({__name:"App",setup(e){const{toggleTheme:t}=xd(),{showToast:s}=Un(),n=Gr(),r=ne(!1),o=ne(!1),i=ne(!1),a=ne(null);function l(y,x,O){a.value={title:y,message:x,onConfirm:O}}function u(){a.value&&(a.value.onConfirm(),a.value=null)}gs("showConfirm",l),gs("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(x){console.error("Failed to toggle trace:",x)}}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 x=await fetch(`/api/sessions/${encodeURIComponent(y)}/export`,{method:"POST"});if(!x.ok)throw new Error(`Export failed: ${x.status}`);const O=await x.blob(),C=URL.createObjectURL(O),N=document.createElement("a");N.href=C,N.download=`${y}.zip`,document.body.appendChild(N),N.click(),document.body.removeChild(N),URL.revokeObjectURL(C),s("Session exported!","success")}catch(x){s(`Export failed: ${x.message}`,"error")}}function v(){i.value=!1,n.currentRoute.value.name==="sessions"&&n.replace("/")}return Sd({"/":()=>{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,x)=>{const O=Hr("router-view");return k(),R(te,null,[x[5]||(x[5]=d("a",{href:"#main-content",class:"skip-link"},"Skip to content",-1)),x[6]||(x[6]=d("div",{id:"a11y-live-region",class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},null,-1)),Ce(Ff,{"trace-enabled":r.value,onToggleTheme:Ne(t),onToggleTrace:f,onImport:x[0]||(x[0]=C=>i.value=!0),onExport:h,onKeyboardHelp:x[1]||(x[1]=C=>o.value=!0)},null,8,["trace-enabled","onToggleTheme"]),Ce(Kf),d("main",Cd,[Ce(O,null,{default:ks(({Component:C})=>[(k(),be(cc(C)))]),_:1})]),Ce(Zf),Ce(ed),a.value?(k(),be(rd,{key:0,title:a.value.title,message:a.value.message,onConfirm:u,onCancel:x[2]||(x[2]=C=>a.value=null)},null,8,["title","message"])):X("",!0),o.value?(k(),be(ld,{key:1,onClose:x[3]||(x[3]=C=>o.value=!1)})):X("",!0),i.value?(k(),be(wd,{key:2,onClose:x[4]||(x[4]=C=>i.value=!1),onImported:v})):X("",!0)],64)}}});function Zr(){const e=ne(0),t=ne(null),s=ne(!1);let n=null;function r(){e.value++}return jt(()=>{try{n=new EventSource("/api/events"),n.onopen=()=>{s.value=!0},n.onerror=()=>{s.value=!1},n.addEventListener("record:added",o=>{try{t.value={type:"record:added",data:JSON.parse(o.data)}}catch{t.value={type:"record:added",data:o.data}}r()}),n.addEventListener("record:deleted",()=>r()),n.addEventListener("record:updated",()=>r()),n.addEventListener("session:created",()=>r()),n.addEventListener("session:deleted",()=>r()),n.addEventListener("connected",o=>{s.value=!0,t.value={type:"connected",data:o.data}})}catch{s.value=!1}}),en(()=>{n==null||n.close(),n=null,s.value=!1}),{refreshKey:e,lastEvent:t,connected:s}}const Ad={class:"container"},Ed={key:0,class:"loading"},Id={key:1,class:"error-banner"},Od={key:2,class:"empty-state"},Pd={class:"page-title"},Md={class:"count"},Nd={class:"sessions-controls-bar"},Dd={class:"view-controls"},Ld={class:"search-input-container"},Bd={class:"sort-label"},jd={key:0,class:"empty-state"},Hd={key:1,class:"folder-groups"},Fd={class:"folder-header"},Vd=["checked",".indeterminate","onChange"],Ud={class:"folder-title"},qd={class:"folder-path"},zd={class:"badge"},Kd={class:"badge"},Gd={class:"folder-sessions"},Wd=["aria-label","onClick","onKeydown"],Zd={class:"session-card-header"},Qd=["checked","onChange"],Jd={class:"session-title-row"},Yd={class:"session-card-content"},Xd={class:"session-title"},eh={key:0,class:"session-id"},th={class:"session-meta"},sh={class:"badge"},nh={key:0,class:"badge"},rh={key:1,class:"badge"},oh={key:2,class:"badge"},ih={class:"session-card-more"},lh=["aria-expanded","onClick"],ah={class:"session-more-menu"},ch=["onClick"],uh=["onClick"],fh={key:0,class:"children-container"},dh=["aria-label","onClick","onKeydown"],hh={class:"session-title"},ph={key:0,class:"session-id"},gh=Pe({__name:"SessionsView",setup(e,{expose:t}){const s=Gr(),n=ot("showConfirm"),r=ot("showToast"),o=ne(!0),i=ne(""),a=ne([]),l=ne(""),u=ne("recent"),c=ne(null),f=ne(new Set),h=ne(null),p=ne(!1),v=ne(new Set),y=G(()=>{const q=N(a.value);return M(q,u.value)}),x=G(()=>{if(!l.value)return y.value;const q=l.value.toLowerCase();return y.value.map(A=>{const J=A.sessions.filter(D=>{const Ee=(D.title||D.id).toLowerCase(),st=D.id.toLowerCase();return Ee.includes(q)||st.includes(q)?!0:D.children?D.children.some(qe=>{const ae=(qe.title||qe.id).toLowerCase(),_=qe.id.toLowerCase();return ae.includes(q)||_.includes(q)}):!1});return J.length===0?null:{...A,sessions:J,totalCount:C(J)}}).filter(Boolean)}),O=G(()=>{let q=0;for(const A of y.value)q+=A.totalCount;return q});function C(q){let A=q.length;for(const J of q)J.children&&(A+=J.children.length);return A}function N(q){const A={};for(const J of q){const D=J.folderPath||"Unknown";A[D]||(A[D]={projectName:ad(D),fullPath:D,sessions:[],lastActivity:null,totalCount:0}),A[D].sessions.push(J);const Ee=J.updatedAt||J.createdAt||null;Ee&&(!A[D].lastActivity||Ee>A[D].lastActivity)&&(A[D].lastActivity=Ee)}for(const J of Object.values(A))J.totalCount=C(J.sessions);return Object.values(A)}function M(q,A){const J=[...q];return A==="recent"?J.sort((D,Ee)=>(Ee.lastActivity||"").localeCompare(D.lastActivity||"")):A==="created"?J.sort((D,Ee)=>{const st=D.sessions.reduce((ae,_)=>_.createdAt&&(!ae||_.createdAt<ae)?_.createdAt:ae,null),qe=Ee.sessions.reduce((ae,_)=>_.createdAt&&(!ae||_.createdAt<ae)?_.createdAt:ae,null);return(st||"").localeCompare(qe||"")}):A==="name_asc"?J.sort((D,Ee)=>D.projectName.localeCompare(Ee.projectName)):A==="name_desc"&&J.sort((D,Ee)=>Ee.projectName.localeCompare(D.projectName)),J}function P(q){c.value=c.value===q?null:q}function z(q){f.value.has(q)?f.value.delete(q):f.value.add(q),f.value=new Set(f.value)}async function H(q){c.value=null,n("Delete Session",`Are you sure you want to delete session "${q}"? This action cannot be undone.`,async()=>{try{await Td(`sessions/${encodeURIComponent(q)}/delete`),r("Session deleted","success"),await ie()}catch(A){r(`Delete failed: ${A.message}`,"error")}})}function oe(){p.value=!p.value,v.value=new Set}function ue(q){const A=new Set(v.value);A.has(q)?A.delete(q):A.add(q),v.value=A}function $e(q){return q.sessions.length>0&&q.sessions.every(A=>v.value.has(A.id))}function Be(q){const A=q.sessions.some(D=>v.value.has(D.id)),J=q.sessions.every(D=>v.value.has(D.id));return A&&!J}function tt(q){const A=new Set(v.value);if($e(q))for(const J of q.sessions)A.delete(J.id);else for(const J of q.sessions)A.add(J.id);v.value=A}function F(){const q=[...v.value];n("Delete Sessions",`Are you sure you want to delete ${q.length} session${q.length>1?"s":""}? This action cannot be undone.`,async()=>{try{const A=await Rd("sessions/batch-delete",{sessionIds:q});A.errors&&A.errors.length>0?r(`${A.deleted.length} deleted, ${A.errors.length} failed`,"error"):r(`${A.deleted.length} session${A.deleted.length>1?"s":""} deleted`,"success"),p.value=!1,v.value=new Set,await ie()}catch(A){r(`Batch delete failed: ${A.message}`,"error")}})}function U(){}function W(){var q;l.value="",(q=h.value)==null||q.focus()}function fe(){}async function ie(){o.value=!0,i.value="";try{a.value=await St("sessions/tree")}catch(q){i.value=`Failed to load sessions: ${Le(q.message)}`}finally{o.value=!1}}jt(ie);const{refreshKey:le}=Zr();return zt(le,()=>{ie()}),t({loadSessions:ie}),(q,A)=>(k(),R("div",Ad,[o.value?(k(),R("div",Ed,[...A[5]||(A[5]=[d("div",{class:"spinner"},null,-1),ce(" Loading... ",-1)])])):i.value?(k(),R("div",Id,K(i.value),1)):y.value.length===0?(k(),R("div",Od,[...A[6]||(A[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)"}},[ce(" Run "),d("code",null,"opencode"),ce(" to start recording sessions ")],-1)])])):(k(),R(te,{key:3},[d("div",Pd,[A[7]||(A[7]=ce(" Sessions ",-1)),d("span",Md,K(O.value),1)]),d("div",Nd,[d("div",Dd,[d("div",Ld,[A[9]||(A[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)),Ge(d("input",{ref_key:"searchInputRef",ref:h,type:"search",class:"search-input",placeholder:"Search sessions...","aria-label":"Search sessions","onUpdate:modelValue":A[0]||(A[0]=J=>l.value=J),onInput:U},null,544),[[ku,l.value]]),Ge(d("button",{class:"search-clear","aria-label":"Clear search",onClick:W},[...A[8]||(A[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",Bd,[A[11]||(A[11]=d("span",{class:"sort-label-text"},"Sort:",-1)),Ge(d("select",{class:"sort-select","aria-label":"Sort sessions","onUpdate:modelValue":A[1]||(A[1]=J=>u.value=J),onChange:fe},[...A[10]||(A[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),[[Rl,u.value]])]),d("button",{class:Se(["batch-toggle-btn",{active:p.value}]),onClick:oe},[A[12]||(A[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)),ce(" "+K(p.value?"Cancel":"Select"),1)],2),p.value&&v.value.size>0?(k(),R("button",{key:0,class:"batch-delete-btn",onClick:F},[A[13]||(A[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)),ce(" Delete ("+K(v.value.size)+") ",1)])):X("",!0)])]),x.value.length===0&&l.value?(k(),R("div",jd,[A[14]||(A[14]=d("div",{class:"icon"},"🔍",-1)),d("p",null,'No sessions match "'+K(l.value)+'"',1)])):(k(),R("div",Hd,[(k(!0),R(te,null,Oe(x.value,J=>(k(),R("div",{key:J.fullPath,class:"folder-group"},[d("div",Fd,[p.value?(k(),R("label",{key:0,class:"batch-checkbox folder-checkbox",onClick:A[2]||(A[2]=Fs(()=>{},["stop"]))},[d("input",{type:"checkbox",checked:$e(J),".indeterminate":Be(J),onChange:D=>tt(J)},null,40,Vd)])):X("",!0),d("div",Ud,K(J.projectName),1),d("div",qd,K(J.fullPath),1),d("span",zd,K(J.totalCount)+" sessions",1),d("span",Kd,K(Ne(or)(J.lastActivity)),1)]),d("div",Gd,[(k(!0),R(te,null,Oe(J.sessions,D=>{var Ee,st,qe;return k(),R("div",{key:D.id},[d("div",{class:"session-card card card-interactive parent-card",tabindex:"0",role:"button","aria-label":`View session ${D.title||D.id}`,onClick:ae=>p.value?ue(D.id):Ne(s).push(`/session/${D.id}`),onKeydown:Zs(ae=>p.value?ue(D.id):Ne(s).push(`/session/${D.id}`),["enter"])},[d("div",Zd,[p.value?(k(),R("label",{key:0,class:"batch-checkbox",onClick:A[3]||(A[3]=Fs(()=>{},["stop"]))},[d("input",{type:"checkbox",checked:v.value.has(D.id),onChange:ae=>ue(D.id)},null,40,Qd)])):X("",!0),d("div",Jd,[d("div",Yd,[d("div",Xd,K(D.title||D.id),1),D.title?(k(),R("div",eh,K(D.id),1)):X("",!0),d("div",th,[d("span",sh,K(D.requestCount)+" requests",1),D.createdAt?(k(),R("span",nh,K(Ne(or)(D.createdAt)),1)):X("",!0),D.updatedAt?(k(),R("span",rh,"updated "+K(Ne(or)(D.updatedAt)),1)):X("",!0),(Ee=D.children)!=null&&Ee.length?(k(),R("span",oh,K(D.children.length)+" children",1)):X("",!0)])])]),p.value?X("",!0):(k(),R("div",{key:1,class:"session-card-actions",onClick:A[4]||(A[4]=Fs(()=>{},["stop"]))},[d("div",ih,[d("button",{class:"session-more-btn","aria-label":"More options","aria-expanded":c.value===D.id,onClick:ae=>P(D.id)}," ⋮ ",8,lh),Ge(d("div",ah,[(st=D.children)!=null&&st.length?(k(),R("button",{key:0,class:"dropdown-item",onClick:ae=>z(D.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(D.id)}])},[...A[15]||(A[15]=[d("path",{d:"m6 9 6 6 6-6"},null,-1)])],2)),A[16]||(A[16]=ce(" subsessions ",-1))],8,ch)):X("",!0),d("button",{class:"dropdown-item danger",onClick:ae=>H(D.id)},[...A[17]||(A[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),ce(" Delete ",-1)])],8,uh)],512),[[it,c.value===D.id]])])]))])],40,Wd),(qe=D.children)!=null&&qe.length&&f.value.has(D.id)?(k(),R("div",fh,[(k(!0),R(te,null,Oe(D.children,ae=>(k(),R("div",{key:ae.id,class:"session-card card card-interactive child-card",tabindex:"0",role:"button","aria-label":`View session ${ae.title||ae.id}`,onClick:_=>Ne(s).push(`/session/${ae.id}`),onKeydown:Zs(_=>Ne(s).push(`/session/${ae.id}`),["enter"])},[d("div",hh,K(ae.title||ae.id),1),ae.title?(k(),R("div",ph,K(ae.id),1)):X("",!0)],40,dh))),128))])):X("",!0)])}),128))])]))),128))]))],64))]))}}),mh=Ue(gh,[["__scopeId","data-v-15c5be0c"]]),vh=["innerHTML"],jl=Pe({__name:"ChangeSummary",props:{change:{}},setup(e){const t=e,s=G(()=>{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,vh)):X("",!0)}}),bh={class:"metadata-card card"},yh={class:"metadata-header"},kh={class:"metadata-body"},_h={class:"stat-section-title"},wh={key:0,class:"stat-row-inline"},xh={class:"stat-key"},Sh={key:1,class:"stat-val"},Rh={key:1,class:"stat-grid"},Th={class:"stat-key"},Ch={key:1,class:"stat-val"},$h=Pe({__name:"MetadataCard",props:{title:{},sections:{}},setup(e){return(t,s)=>{const n=Hr("router-link");return k(),R("div",bh,[d("div",yh,K(e.title),1),d("div",kh,[yo(t.$slots,"before-sections",{},void 0),(k(!0),R(te,null,Oe(e.sections,r=>(k(),R("div",{key:r.title,class:"stat-section"},[d("div",_h,K(r.title),1),r.layout==="inline"?(k(),R("div",wh,[(k(!0),R(te,null,Oe(r.items,o=>(k(),R("span",{key:o.key,class:Se(["stat-item",o.modifier])},[d("span",xh,K(o.key),1),o.link?(k(),be(n,{key:0,class:"stat-val stat-link",to:o.link},{default:ks(()=>[ce(K(o.value),1)]),_:2},1032,["to"])):(k(),R("span",Sh,K(o.value),1))],2))),128))])):(k(),R("div",Rh,[(k(!0),R(te,null,Oe(r.items,o=>(k(),R("span",{key:o.key,class:Se(["stat-item",o.modifier])},[d("span",Th,K(o.key),1),o.link?(k(),be(n,{key:0,class:"stat-val stat-link",to:o.link},{default:ks(()=>[ce(K(o.value),1)]),_:2},1032,["to"])):(k(),R("span",Ch,K(o.value),1))],2))),128))]))]))),128)),yo(t.$slots,"after-sections",{},void 0)])])}}}),Hl=Ue($h,[["__scopeId","data-v-1868ccb6"]]),Ah={class:"container"},Eh={key:0,class:"loading"},Ih={key:1,class:"error-banner"},Oh={class:"page-title"},Ph={key:0,class:"subtitle"},Mh={class:"count"},Nh={class:"timeline-controls"},Dh={class:"sort-label"},Lh={class:"timeline"},Bh=["aria-label","onClick","onKeydown"],jh={class:"timeline-card-header"},Hh={class:"left"},Fh={class:"req-num"},Vh=["title"],Uh={class:"url"},qh={class:"right"},zh={key:0,class:"time-badge gap"},Kh={class:"time-badge dur"},Gh={key:1,class:"time-badge model"},Wh={key:2,class:"time-badge provider"},Zh=Pe({__name:"TimelineView",props:{sessionId:{}},setup(e){const t=e,s=Gr(),n=ne(!0),r=ne(""),o=ne([]),i=ne({}),a=ne(null),l=ne({}),u=ne("time_asc"),c=G(()=>l.value.title||t.sessionId),f=G(()=>l.value.title?t.sessionId:""),h=G(()=>{var U,W;const F=(W=(U=a.value)==null?void 0:U.tokenUsage)==null?void 0:W.cacheHitRate;return F!=null?`${(F*100).toFixed(1)}%`:"0%"}),p=G(()=>(i.value.changes||[]).filter(U=>U.isUserCall).length),v=G(()=>(i.value.changes||[]).filter(U=>!U.isUserCall).length),y=G(()=>{if(!a.value)return[];const F=[];if(a.value.tokenUsage&&F.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 U=[{key:"Wall Time",value:fs(a.value.durationStats.wallTime)},{key:"Request Time",value:fs(a.value.durationStats.totalRequestDuration)}];a.value.latencyStats&&a.value.latencyStats.streamRequestCount>0&&U.push({key:"TTFT",value:`${us(a.value.latencyStats.avgTTFT)} / ${us(a.value.latencyStats.maxTTFT)}`},{key:"TPOT",value:`${us(a.value.latencyStats.avgTPOT)} / ${us(a.value.latencyStats.maxTPOT)}`}),F.push({title:"Time Usage",layout:"inline",items:U})}return F.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&&F.push({title:"Sub Sessions",layout:"inline",items:a.value.subSessions.map(U=>({key:"Session",value:U,link:`/session/${U}`}))}),a.value.parentSession&&F.push({title:"Parent Session",layout:"inline",items:[{key:"Session",value:a.value.parentSession,link:`/session/${a.value.parentSession}`}]}),F}),x=G(()=>{const F=[...o.value],U=i.value.changes||[];return u.value==="time_asc"?F.sort((W,fe)=>W.id-fe.id):u.value==="time_desc"?F.sort((W,fe)=>fe.id-W.id):u.value==="duration_asc"||u.value==="duration_desc"?F.sort((W,fe)=>{const ie=O(W),le=O(fe);return u.value==="duration_asc"?ie-le:le-ie}):(u.value==="gap_asc"||u.value==="gap_desc")&&F.sort((W,fe)=>{const ie=C(W,U),le=C(fe,U);return ie===null&&le===null?0:ie===null?1:le===null?-1:u.value==="gap_asc"?ie-le:le-ie}),F});function O(F){return!F.requestAt||!F.responseAt?0:new Date(F.responseAt).getTime()-new Date(F.requestAt).getTime()}function C(F,U){const W=U.find(fe=>fe.requestId===F.id);return(W==null?void 0:W.interRequestDuration)??null}function N(F){return fs(O(F))}function M(F){return(i.value.changes||[]).find(W=>W.requestId===F)||null}function P(F){var U;return((U=M(F))==null?void 0:U.interRequestDuration)??null}function z(F){const U=(i.value.recordMeta||[]).find(W=>W.id===F);return(U==null?void 0:U.model)||null}function H(F){const U=M(F);return U!=null&&U.isUserCall?"user":"agent"}function oe(F){const U=M(F);return U!=null&&U.isUserCall?"USER":"AGENT"}function ue(F){const U=M(F);return U!=null&&U.isUserCall?"Direct human request":"AI automatic continuation"}function $e(F){var U,W,fe;try{return(U=F.request)!=null&&U.url?new URL(F.request.url).host:((W=F.request)==null?void 0:W.url)||""}catch{return((fe=F.request)==null?void 0:fe.url)||""}}async function Be(){n.value=!0,r.value="";try{const[F,U,W]=await Promise.all([St(`sessions/${encodeURIComponent(t.sessionId)}`),St(`sessions/${encodeURIComponent(t.sessionId)}/timeline`),St(`sessions/${encodeURIComponent(t.sessionId)}/metadata`)]);o.value=F.records||[],i.value=U,a.value=W,l.value=F.session||{}}catch(F){r.value=`Failed to load session: ${Le(F.message)}`}finally{n.value=!1}}jt(Be);const{refreshKey:tt}=Zr();return zt(tt,()=>{Be()}),(F,U)=>(k(),R("div",Ah,[n.value?(k(),R("div",Eh,[...U[1]||(U[1]=[d("div",{class:"spinner"},null,-1),ce(" Loading timeline... ",-1)])])):r.value?(k(),R("div",Ih,K(r.value),1)):(k(),R(te,{key:2},[d("div",Oh,[ce(K(c.value)+" ",1),f.value?(k(),R("span",Ph,K(f.value),1)):X("",!0),d("span",Mh,K(o.value.length)+" requests",1)]),a.value?(k(),be(Hl,{key:0,title:"Session Statistics",sections:y.value},null,8,["sections"])):X("",!0),d("div",Nh,[d("label",Dh,[U[3]||(U[3]=d("span",{class:"sort-label-text"},"Sort:",-1)),Ge(d("select",{class:"sort-select","aria-label":"Sort timeline","onUpdate:modelValue":U[0]||(U[0]=W=>u.value=W)},[...U[2]||(U[2]=[Hc('<option value="time_asc" data-v-08b9d9bb>Time (oldest)</option><option value="time_desc" data-v-08b9d9bb>Time (newest)</option><option value="duration_asc" data-v-08b9d9bb>Duration (shortest)</option><option value="duration_desc" data-v-08b9d9bb>Duration (longest)</option><option value="gap_asc" data-v-08b9d9bb>Gap (shortest)</option><option value="gap_desc" data-v-08b9d9bb>Gap (longest)</option>',6)])],512),[[Rl,u.value]])])]),d("div",Lh,[(k(!0),R(te,null,Oe(x.value,W=>(k(),R("div",{key:W.id,class:"timeline-item"},[d("div",{class:"timeline-card card card-interactive",tabindex:"0",role:"button","aria-label":`View request #${W.id} details`,onClick:fe=>Ne(s).push(`/session/${e.sessionId}/record/${W.id}`),onKeydown:Zs(fe=>Ne(s).push(`/session/${e.sessionId}/record/${W.id}`),["enter"])},[d("div",jh,[d("div",Hh,[d("span",Fh,"#"+K(W.id),1),d("span",{class:Se(["call-type",H(W.id)]),title:ue(W.id)},K(oe(W.id)),11,Vh),d("span",Uh,K($e(W)),1),M(W.id)?(k(),be(jl,{key:0,change:M(W.id)},null,8,["change"])):X("",!0)]),d("div",qh,[P(W.id)!=null?(k(),R("span",zh,"gap "+K(Ne(fs)(P(W.id))),1)):X("",!0),d("span",Kh,"dur "+K(N(W)),1),z(W.id)?(k(),R("span",Gh,K(z(W.id)),1)):X("",!0),W.provider?(k(),R("span",Wh,K(W.provider),1)):X("",!0)])])],40,Bh)]))),128))])],64))]))}}),Qh=Ue(Zh,[["__scopeId","data-v-08b9d9bb"]]),Jh={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">${Le(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=>Le(e.description||""),renderRendered:null},tc:{tag:"TC",toggle:!0,renderMeta:e=>`<span class="tool-meta-name">${Le(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: ${Le(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=>Le(e.text||""),renderRendered:null}};function Fl(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 Yh(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 Xh(e){if(!e)return"";if(e=e.trim(),e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]"))try{return Fl(JSON.parse(e))}catch{}return e.startsWith("<")&&e.includes(">")?Yh(e):Le(e)}function Qr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var os=Qr();function Vl(e){os=e}var es={exec:()=>null};function he(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 ep=((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)}}>`)},tp=/^(?:[ \t]*(?:\n|$))+/,sp=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,np=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,sn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,rp=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Jr=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ul=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ql=he(Ul).replace(/bull/g,Jr).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(),op=he(Ul).replace(/bull/g,Jr).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(),Yr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ip=/^[^\n]+/,Xr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,lp=he(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Xr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ap=he(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Jr).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",eo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,cp=he("^ {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",eo).replace("tag",qn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),zl=he(Yr).replace("hr",sn).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(),up=he(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",zl).getRegex(),to={blockquote:up,code:sp,def:lp,fences:np,heading:rp,hr:sn,html:cp,lheading:ql,list:ap,newline:tp,paragraph:zl,table:es,text:ip},ci=he("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",sn).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(),fp={...to,lheading:op,table:ci,paragraph:he(Yr).replace("hr",sn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ci).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()},dp={...to,html:he(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",eo).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:es,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:he(Yr).replace("hr",sn).replace("heading",` *#{1,6} *[^
28
+ ]`).replace("lheading",ql).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},hp=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,pp=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Kl=/^( {2,}|\\)\n(?!\s*$)/,gp=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ss=/[\p{P}\p{S}]/u,zn=/[\s\p{P}\p{S}]/u,so=/[^\s\p{P}\p{S}]/u,mp=he(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,zn).getRegex(),Gl=/(?!~)[\p{P}\p{S}]/u,vp=/(?!~)[\s\p{P}\p{S}]/u,bp=/(?:[^\s\p{P}\p{S}]|~)/u,yp=he(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ep?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Wl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,kp=he(Wl,"u").replace(/punct/g,Ss).getRegex(),_p=he(Wl,"u").replace(/punct/g,Gl).getRegex(),Zl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",wp=he(Zl,"gu").replace(/notPunctSpace/g,so).replace(/punctSpace/g,zn).replace(/punct/g,Ss).getRegex(),xp=he(Zl,"gu").replace(/notPunctSpace/g,bp).replace(/punctSpace/g,vp).replace(/punct/g,Gl).getRegex(),Sp=he("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,so).replace(/punctSpace/g,zn).replace(/punct/g,Ss).getRegex(),Rp=he(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ss).getRegex(),Tp="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Cp=he(Tp,"gu").replace(/notPunctSpace/g,so).replace(/punctSpace/g,zn).replace(/punct/g,Ss).getRegex(),$p=he(/\\(punct)/,"gu").replace(/punct/g,Ss).getRegex(),Ap=he(/^<(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(),Ep=he(eo).replace("(?:-->|$)","-->").getRegex(),Ip=he("^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",Ep).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Op=he(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",xn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ql=he(/^!?\[(label)\]\[(ref)\]/).replace("label",xn).replace("ref",Xr).getRegex(),Jl=he(/^!?\[(ref)\](?:\[\])?/).replace("ref",Xr).getRegex(),Pp=he("reflink|nolink(?!\\()","g").replace("reflink",Ql).replace("nolink",Jl).getRegex(),ui=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,no={_backpedal:es,anyPunctuation:$p,autolink:Ap,blockSkip:yp,br:Kl,code:pp,del:es,delLDelim:es,delRDelim:es,emStrongLDelim:kp,emStrongRDelimAst:wp,emStrongRDelimUnd:Sp,escape:hp,link:Op,nolink:Jl,punctuation:mp,reflink:Ql,reflinkSearch:Pp,tag:Ip,text:gp,url:es},Mp={...no,link:he(/^!?\[(label)\]\((.*?)\)/).replace("label",xn).getRegex(),reflink:he(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xn).getRegex()},xr={...no,emStrongRDelimAst:xp,emStrongLDelim:_p,delLDelim:Rp,delRDelim:Cp,url:he(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ui).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:he(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ui).getRegex()},Np={...xr,br:he(Kl).replace("{2,}","*").getRegex(),text:he(xr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},an={normal:to,gfm:fp,pedantic:dp},Es={normal:no,gfm:xr,breaks:Np,pedantic:Mp},Dp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fi=e=>Dp[e];function yt(e,t){if(t){if(We.escapeTest.test(e))return e.replace(We.escapeReplace,fi)}else if(We.escapeTestNoEncode.test(e))return e.replace(We.escapeReplaceNoEncode,fi);return e}function di(e){try{e=encodeURI(e).replace(We.percentDecode,"%")}catch{return null}return e}function hi(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 Ft(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 pi(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 Lp(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 Bp(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 gi(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 jp(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 Sn=class{constructor(e){_e(this,"options");_e(this,"rules");_e(this,"lexer");this.options=e||os}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]:pi(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=jp(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=Ft(s,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(s=n.trim())}return{type:"heading",raw:Ft(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:Ft(t[0],`
34
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let s=Ft(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=Bp(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),x=this.rules.other.hrRegex(v),O=this.rules.other.fencesBeginRegex(v),C=this.rules.other.headingBeginRegex(v),N=this.rules.other.htmlBeginRegex(v),M=this.rules.other.blockquoteBeginRegex(v);for(;e;){let P=e.split(`
49
+ `,1)[0],z;if(h=P,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),z=h):z=h.replace(this.rules.other.tabCharGlobal," "),O.test(h)||C.test(h)||N.test(h)||M.test(h)||y.test(h)||x.test(h))break;if(z.search(this.rules.other.nonSpaceChar)>=v||!h.trim())c+=`
50
+ `+z.slice(v);else{if(p||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(f)||C.test(f)||x.test(f))break;c+=`
51
+ `+h}p=!h.trim(),u+=P+`
52
+ `,e=e.substring(P.length+1),f=z.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=pi(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:Ft(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=hi(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:Ft(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(hi(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:Ft(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=Ft(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{let o=Lp(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)),gi(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 gi(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||os,this.options.tokenizer=this.options.tokenizer||new Sn,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:an.normal,inline:Es.normal};this.options.pedantic?(s.block=an.pedantic,s.inline=Es.pedantic):this.options.gfm&&(s.block=an.gfm,this.options.breaks?s.inline=Es.breaks:s.inline=Es.gfm),this.tokenizer.rules=s}static get rules(){return{block:an,inline:Es}}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(x=>(v=x.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 x=s.at(-1);v.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=v.raw,x.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 x=1/0,O=t.slice(1),C;this.options.extensions.startInline.forEach(N=>{C=N.call({lexer:this},O),typeof C=="number"&&C>=0&&(x=Math.min(x,C))}),x<1/0&&x>=0&&(y=t.substring(0,x+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 x=s.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=v.raw,x.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)}},Rn=class{constructor(e){_e(this,"options");_e(this,"parser");this.options=e||os}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=di(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=di(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)}},ro=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||os,this.options.renderer=this.options.renderer||new Rn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ro}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}},cn,Ms=(cn=class{constructor(e){_e(this,"options");_e(this,"block");this.options=e||os}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(cn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),_e(cn,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),cn),Hp=class{constructor(...e){_e(this,"defaults",Qr());_e(this,"options",this.setOptions);_e(this,"parse",this.parseMarkdown(!0));_e(this,"parseInline",this.parseMarkdown(!1));_e(this,"Parser",ut);_e(this,"Renderer",Rn);_e(this,"TextRenderer",ro);_e(this,"Lexer",ct);_e(this,"Tokenizer",Sn);_e(this,"Hooks",Ms);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 Rn(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 Sn(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 Ms;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];Ms.passThroughHooks.has(o)?r[i]=u=>{if(this.defaults.async&&Ms.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}}},rs=new Hp;function ye(e,t){return rs.parse(e,t)}ye.options=ye.setOptions=function(e){return rs.setOptions(e),ye.defaults=rs.defaults,Vl(ye.defaults),ye};ye.getDefaults=Qr;ye.defaults=os;ye.use=function(...e){return rs.use(...e),ye.defaults=rs.defaults,Vl(ye.defaults),ye};ye.walkTokens=function(e,t){return rs.walkTokens(e,t)};ye.parseInline=rs.parseInline;ye.Parser=ut;ye.parser=ut.parse;ye.Renderer=Rn;ye.TextRenderer=ro;ye.Lexer=ct;ye.lexer=ct.lex;ye.Tokenizer=Sn;ye.Hooks=Ms;ye.parse=ye;ye.options;ye.setOptions;ye.use;ye.walkTokens;ye.parseInline;ut.parse;ct.lex;const Fp=["data-block-type"],Vp={class:"block-type-bar"},Up={class:"block-type-left"},qp=["innerHTML"],zp={class:"block-type-right"},Kp=["data-mode"],Gp=["innerHTML"],Wp=["innerHTML"],Zp=["value"],Qp=Pe({__name:"BlockRenderer",props:{block:{}},setup(e){const t=e,{showToast:s}=Un(),n=ne("raw"),r=G(()=>Jh[t.block.type]||{tag:t.block.type.toUpperCase(),toggle:!1,renderMeta:null,getRaw:null,renderRaw:null,renderRendered:null}),o=G(()=>r.value.getRaw?r.value.getRaw(t.block):""),i=G(()=>r.value.renderRaw?r.value.renderRaw(t.block):o.value?Le(o.value):""),a=G(()=>{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 Xh(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">${Le(p.description)}</div>`),p.parameters&&(v+=`<div class="tool-def-params">${Fl(p.parameters)}</div>`),v||Le(o.value)}catch{return Le(o.value)}return Le(o.value)}),l=G(()=>!!(i.value||a.value||o.value)),u=G(()=>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 ye.parse(p,{breaks:!0,gfm:!0})}catch{return Le(p)}}return(p,v)=>l.value?(k(),R("div",{key:0,class:"block-item","data-block-type":e.block.type},[d("div",Vp,[d("div",Up,[d("span",{class:Se(["block-type-tag",e.block.type])},K(r.value.tag),3),r.value.renderMeta?(k(),R("span",{key:0,innerHTML:r.value.renderMeta(e.block)},null,8,qp)):X("",!0)]),d("div",zp,[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,Kp)):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,Wp))],2)):X("",!0),o.value?(k(),R("textarea",{key:1,class:"raw-content-store",style:{display:"none"},value:o.value},null,8,Zp)):X("",!0)],8,Fp)):X("",!0)}}),It=Ue(Qp,[["__scopeId","data-v-caa07bff"]]),Jp={key:0,class:"empty-state"},Yp={class:"section-content expanded"},Xp={key:0,class:"change-card removed"},eg={class:"change-card-body"},tg={key:1,class:"change-card added"},sg={class:"change-card-body"},ng={class:"section-content expanded"},rg={key:0,class:"change-card added"},og={class:"change-card-body"},ig={key:1,class:"change-card removed"},lg={class:"change-card-body"},ag={class:"section-content expanded"},cg={key:0,class:"change-card removed"},ug={class:"change-card-body"},fg={key:1,class:"change-card added"},dg={class:"change-card-body"},hg=Pe({__name:"ChangesView",props:{changeData:{}},setup(e){const t=e,s=Gt({sys:!0,tool:!0,msgs:!0});function n(h){s[h]=!s[h]}const r=G(()=>{var h;return(h=t.changeData)==null?void 0:h.delta}),o=G(()=>{var h,p;return((p=(h=r.value)==null?void 0:h.sys)==null?void 0:p.added)||[]}),i=G(()=>{var h,p;return((p=(h=r.value)==null?void 0:h.sys)==null?void 0:p.removed)||[]}),a=G(()=>{var h,p;return((p=(h=r.value)==null?void 0:h.tool)==null?void 0:p.added)||[]}),l=G(()=>{var h,p;return((p=(h=r.value)==null?void 0:h.tool)==null?void 0:p.removed)||[]}),u=G(()=>{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=G(()=>{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=G(()=>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(te,{key:1},[o.value.length>0||i.value.length>0?(k(),R(te,{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),ce(" SYSTEM PROMPT ",-1)])],2),Ge(d("div",Yp,[i.value.length>0?(k(),R("div",Xp,[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",eg,[(k(!0),R(te,null,Oe(i.value,(v,y)=>(k(),be(It,{key:"sys-rem-"+y,block:v},null,8,["block"]))),128))])])):X("",!0),o.value.length>0?(k(),R("div",tg,[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",sg,[(k(!0),R(te,null,Oe(o.value,(v,y)=>(k(),be(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(te,{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),ce(" TOOL DEFINITIONS ",-1)])],2),Ge(d("div",ng,[a.value.length>0?(k(),R("div",rg,[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",og,[(k(!0),R(te,null,Oe(a.value,(v,y)=>(k(),be(It,{key:"tool-add-"+y,block:v},null,8,["block"]))),128))])])):X("",!0),l.value.length>0?(k(),R("div",ig,[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",lg,[(k(!0),R(te,null,Oe(l.value,(v,y)=>(k(),be(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(te,{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),ce(" MESSAGES ",-1)])],2),Ge(d("div",ag,[c.value.length>0?(k(),R("div",cg,[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",ug,[(k(!0),R(te,null,Oe(c.value,(v,y)=>(k(),be(It,{key:"msg-rem-"+y,block:v},null,8,["block"]))),128))])])):X("",!0),u.value.length>0?(k(),R("div",fg,[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",dg,[(k(!0),R(te,null,Oe(u.value,(v,y)=>(k(),be(It,{key:"msg-add-"+y,block:v},null,8,["block"]))),128))])])):X("",!0)],512),[[it,s.msgs]])],64)):X("",!0)],64)):(k(),R("div",Jp,[...p[3]||(p[3]=[d("p",null,"No change data for this request",-1)])]))}}),pg=Ue(hg,[["__scopeId","data-v-6a06d44d"]]),gg={key:0,class:"empty-state"},mg={class:"section-content expanded"},vg={class:"msg"},bg={class:"msg-body"},yg={class:"section-content expanded"},kg={class:"msg"},_g={class:"msg-header"},wg={class:"badge"},xg={class:"msg-body"},Sg={class:"section-content expanded"},Rg={class:"msg-list"},Tg={class:"msg-header"},Cg={class:"role-tag"},$g={class:"msg-body"},Ag=Pe({__name:"ConversationView",props:{parsed:{}},setup(e){const t=e,s=Gt({sys:!0,tool:!0,msgs:!0});function n(l){s[l]=!s[l]}const r=G(()=>{var l,u;return((u=(l=t.parsed)==null?void 0:l.sys)==null?void 0:u.blocks)||[]}),o=G(()=>{var u,c;return(((c=(u=t.parsed)==null?void 0:u.tool)==null?void 0:c.blocks)||[]).filter(f=>f.type==="td")}),i=G(()=>{var l;return((l=t.parsed)==null?void 0:l.msgs)||[]}),a=G(()=>r.value.length>0||o.value.length>0||i.value.length>0);return(l,u)=>a.value?(k(),R(te,{key:1},[r.value.length>0?(k(),R(te,{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),ce(" SYSTEM PROMPT ",-1)])],2),Ge(d("div",mg,[d("div",vg,[u[5]||(u[5]=d("div",{class:"msg-header"},[d("span",{class:"cat-tag sys"},"SYS")],-1)),d("div",bg,[(k(!0),R(te,null,Oe(r.value,(c,f)=>(k(),be(It,{key:"sys-"+f,block:c},null,8,["block"]))),128))])])],512),[[it,s.sys]])],64)):X("",!0),o.value.length>0?(k(),R(te,{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),ce(" TOOL DEFINITIONS ",-1)])],2),Ge(d("div",yg,[d("div",kg,[d("div",_g,[u[7]||(u[7]=d("span",{class:"cat-tag tool"},"TOOL",-1)),d("span",wg,K(o.value.length)+" tools",1)]),d("div",xg,[(k(!0),R(te,null,Oe(o.value,(c,f)=>(k(),be(It,{key:"td-"+f,block:c},null,8,["block"]))),128))])])],512),[[it,s.tool]])],64)):X("",!0),i.value.length>0?(k(),R(te,{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),ce(" MESSAGES ",-1)])],2),Ge(d("div",Sg,[d("div",Rg,[(k(!0),R(te,null,Oe(i.value,(c,f)=>(k(),R("div",{key:"msg-"+f,class:"msg"},[d("div",Tg,[u[9]||(u[9]=d("span",{class:"cat-tag msg"},"MSG",-1)),d("span",Cg,K(c.role),1)]),d("div",$g,[(k(!0),R(te,null,Oe(c.blocks||[],(h,p)=>(k(),be(It,{key:"msg-block-"+p,block:h},null,8,["block"]))),128))])]))),128))])],512),[[it,s.msgs]])],64)):X("",!0)],64)):(k(),R("div",gg,[...u[3]||(u[3]=[d("p",null,"No conversation data",-1)])]))}}),Eg=Ue(Ag,[["__scopeId","data-v-c5e69052"]]),Ig={class:"json-container"},Og={class:"json-num"},Pg=["innerHTML"],Mg=Pe({__name:"JsonViewer",props:{data:{}},setup(e){const t=e,{showToast:s}=Un(),n=G(()=>(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",Ig,[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(te,null,Oe(n.value,(a,l)=>(k(),R("div",{key:l,class:"json-line"},[d("span",Og,K(l+1),1),d("span",{innerHTML:a},null,8,Pg)]))),128))]))}}),Tn=Ue(Mg,[["__scopeId","data-v-4b06a711"]]),Ng={class:"section-content expanded"},Dg={class:"json-block"},Lg={class:"section-content expanded"},Bg={class:"json-block"},jg=Pe({__name:"RequestView",props:{record:{}},setup(e){const t=Gt({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),ce(" REQUEST HEADERS ",-1)])],2),Ge(d("div",Ng,[d("div",Dg,[Ce(Tn,{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),ce(" REQUEST BODY ",-1)])],2),Ge(d("div",Lg,[d("div",Bg,[Ce(Tn,{data:((i=e.record.request)==null?void 0:i.body)||{}},null,8,["data"])])],512),[[it,t.body]])])}}}),Hg=Ue(jg,[["__scopeId","data-v-880e4b46"]]),Fg={key:0,class:"empty-state"},Vg={class:"section-content expanded"},Ug={class:"json-block"},qg={class:"section-content expanded"},zg={class:"json-block"},Kg=Pe({__name:"ResponseView",props:{record:{}},setup(e){const t=Gt({headers:!0,body:!0});function s(n){t[n]=!t[n]}return(n,r)=>e.record.response?(k(),R(te,{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),ce(" RESPONSE HEADERS ",-1)])],2),Ge(d("div",Vg,[d("div",Ug,[Ce(Tn,{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),ce(" RESPONSE BODY ",-1)])],2),Ge(d("div",qg,[d("div",zg,[Ce(Tn,{data:e.record.response.body||{}},null,8,["data"])])],512),[[it,t.body]])],64)):(k(),R("div",Fg,[...r[2]||(r[2]=[d("p",null,"No response data",-1)])]))}}),Gg=Ue(Kg,[["__scopeId","data-v-7107da38"]]),Wg={class:"container"},Zg={key:0,class:"loading"},Qg={key:1,class:"error-banner"},Jg={class:"page-title"},Yg={key:0,class:"subtitle"},Xg={class:"count"},em={class:"stat-section"},tm={class:"stat-row-inline"},sm={class:"view-toggle"},nm={class:"record-view-content"},rm=Pe({__name:"RecordView",props:{sessionId:{},recordId:{}},setup(e){const t=e,s=ne(!0),n=ne(""),r=ne({}),o=ne({}),i=ne(null),a=ne({}),l=ne("changes"),u=G(()=>a.value.title||t.sessionId),c=G(()=>a.value.title?t.sessionId:""),f=G(()=>r.value.requestSentAt!=null&&r.value.firstTokenAt!=null),h=G(()=>{var P;return((P=i.value)==null?void 0:P.isUserCall)??!1}),p=G(()=>{var P;return((P=i.value)==null?void 0:P.interRequestDuration)??null}),v=G(()=>{if(!r.value.requestAt||!r.value.responseAt)return"-";const P=new Date(r.value.responseAt).getTime()-new Date(r.value.requestAt).getTime();return fs(P)}),y=G(()=>{const P=o.value.usage;return P?(P.inputMissTokens||0)+(P.inputHitTokens||0)+(P.outputTokens||0):0}),x=G(()=>{const P=o.value.usage;if(!P)return"0%";const z=(P.inputMissTokens||0)+(P.inputHitTokens||0);return z===0?"0%":`${((P.inputHitTokens||0)/z*100).toFixed(1)}%`}),O=G(()=>{const P=r.value;if(P.requestSentAt==null||P.firstTokenAt==null||P.lastTokenAt==null)return null;const z=P.firstTokenAt-P.requestSentAt;let H=null;const oe=o.value.usage;return oe&&oe.outputTokens&&oe.outputTokens>0&&(H=(P.lastTokenAt-P.firstTokenAt)/oe.outputTokens),{ttft:z,tpot:H}}),C=G(()=>{var oe,ue,$e;const P=[],z=[{key:"URL",value:((oe=r.value.request)==null?void 0:oe.url)||""},{key:"Method",value:((ue=r.value.request)==null?void 0:ue.method)||"GET"}];(($e=r.value.response)==null?void 0:$e.status)!=null&&z.push({key:"Status",value:String(r.value.response.status)}),z.push({key:"SSE",value:f.value?"true":"false"}),o.value.model&&z.push({key:"Model",value:o.value.model}),o.value.provider&&z.push({key:"Provider",value:o.value.provider}),z.push({key:"Type",value:h.value?"USER":"AGENT"}),P.push({title:"Request",layout:"inline",items:z}),o.value.usage&&P.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:x.value}]});const H=[{key:"Request",value:ai(r.value.requestAt)},{key:"Response",value:ai(r.value.responseAt)}];return p.value!=null&&H.push({key:"Gap",value:fs(p.value)}),H.push({key:"Duration",value:v.value}),O.value&&(H.push({key:"TTFT",value:us(O.value.ttft)}),O.value.tpot!=null&&H.push({key:"TPOT",value:us(O.value.tpot)})),P.push({title:"Time Usage",layout:"inline",items:H}),P});async function N(){s.value=!0,n.value="";try{const[P,z,H,oe]=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=P,o.value=z,a.value=oe.session||{};const ue=H.changes||[];i.value=ue.find($e=>$e.requestId===P.id)||null}catch(P){n.value=`Failed to load record: ${Le(P.message)}`}finally{s.value=!1}}const{refreshKey:M}=Zr();return zt(M,()=>{N()}),jt(N),(P,z)=>{var H;return k(),R("div",Wg,[s.value?(k(),R("div",Zg,[...z[4]||(z[4]=[d("div",{class:"spinner"},null,-1),ce(" Loading record... ",-1)])])):n.value?(k(),R("div",Qg,K(n.value),1)):(k(),R(te,{key:2},[d("div",Jg,[ce(K(u.value)+" ",1),c.value?(k(),R("span",Yg,K(c.value),1)):X("",!0),d("span",Xg,"#"+K(e.recordId),1)]),Ce(Hl,{title:"Record Metadata",sections:C.value},uc({_:2},[(H=i.value)!=null&&H.delta?{name:"before-sections",fn:ks(()=>[d("div",em,[z[5]||(z[5]=d("div",{class:"stat-section-title"},"Changes",-1)),d("div",tm,[Ce(jl,{change:i.value},null,8,["change"])])])]),key:"0"}:void 0]),1032,["sections"]),d("div",sm,[d("button",{class:Se({active:l.value==="changes"}),onClick:z[0]||(z[0]=oe=>l.value="changes")}," Changes ",2),d("button",{class:Se({active:l.value==="conversation"}),onClick:z[1]||(z[1]=oe=>l.value="conversation")}," Conversation ",2),d("button",{class:Se({active:l.value==="request"}),onClick:z[2]||(z[2]=oe=>l.value="request")}," Request ",2),d("button",{class:Se({active:l.value==="response"}),onClick:z[3]||(z[3]=oe=>l.value="response")}," Response ",2)]),d("div",nm,[l.value==="changes"?(k(),be(pg,{key:0,"change-data":i.value},null,8,["change-data"])):l.value==="conversation"?(k(),be(Eg,{key:1,parsed:o.value},null,8,["parsed"])):l.value==="request"?(k(),be(Hg,{key:2,record:r.value},null,8,["record"])):l.value==="response"?(k(),be(Gg,{key:3,record:r.value},null,8,["record"])):X("",!0)])],64))])}}}),om=Ue(rm,[["__scopeId","data-v-57d357ff"]]),im=Df({history:pf(),routes:[{path:"/",name:"sessions",component:mh},{path:"/session/:sessionId",name:"timeline",component:Qh,props:!0},{path:"/session/:sessionId/record/:recordId",name:"record",component:om,props:!0},{path:"/:pathMatch(.*)*",redirect:"/"}]}),Yl=Tu($d);Yl.use(im);Yl.mount("#app");