@prsm/devtools 1.0.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/dist/client/assets/index-B7_KPm6_.css +1 -0
- package/dist/client/assets/index-DWT8hGf_.js +178 -0
- package/dist/client/index.html +9 -3
- package/package.json +8 -4
- package/src/index.js +186 -8
- package/dist/client/assets/index-CkwmeR8W.js +0 -176
- package/dist/client/assets/index-p_4czaPS.css +0 -1
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
var ih=Object.defineProperty;var lh=Object.getPrototypeOf;var ah=Reflect.get;var ka=e=>{throw TypeError(e)};var ch=(e,t,n)=>t in e?ih(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var j=(e,t,n)=>ch(e,typeof t!="symbol"?t+"":t,n),ri=(e,t,n)=>t.has(e)||ka("Cannot "+n);var et=(e,t,n)=>(ri(e,t,"read from private field"),n?n.call(e):t.get(e)),En=(e,t,n)=>t.has(e)?ka("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Gt=(e,t,n,r)=>(ri(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),si=(e,t,n)=>(ri(e,t,"access private method"),n);var xa=(e,t,n)=>ah(lh(e),n,t);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/**
|
|
2
|
+
* @vue/shared v3.5.34
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function Il(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const je={},vr=[],an=()=>{},Fu=()=>!1,Io=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ro=e=>e.startsWith("onUpdate:"),Ze=Object.assign,Rl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},uh=Object.prototype.hasOwnProperty,Pe=(e,t)=>uh.call(e,t),he=Array.isArray,yr=e=>$s(e)==="[object Map]",ju=e=>$s(e)==="[object Set]",Ea=e=>$s(e)==="[object Date]",ye=e=>typeof e=="function",Ge=e=>typeof e=="string",Pt=e=>typeof e=="symbol",Oe=e=>e!==null&&typeof e=="object",Gu=e=>(Oe(e)||ye(e))&&ye(e.then)&&ye(e.catch),Vu=Object.prototype.toString,$s=e=>Vu.call(e),fh=e=>$s(e).slice(8,-1),Uu=e=>$s(e)==="[object Object]",To=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rs=Il(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),No=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},dh=/-\w/g,xt=No(e=>e.replace(dh,t=>t.slice(1).toUpperCase())),ph=/\B([A-Z])/g,ir=No(e=>e.replace(ph,"-$1").toLowerCase()),Po=No(e=>e.charAt(0).toUpperCase()+e.slice(1)),oi=No(e=>e?`on${Po(e)}`:""),ln=(e,t)=>!Object.is(e,t),ii=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},qu=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},hh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},gh=e=>{const t=Ge(e)?Number(e):NaN;return isNaN(t)?e:t};let Aa;const Oo=()=>Aa||(Aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Et(e){if(he(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Ge(r)?_h(r):Et(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(Ge(e)||Oe(e))return e}const mh=/;(?![^(]*\))/g,vh=/:([^]+)/,yh=/\/\*[^]*?\*\//g;function _h(e){const t={};return e.replace(yh,"").split(mh).forEach(n=>{if(n){const r=n.split(vh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _e(e){let t="";if(Ge(e))t=e;else if(he(e))for(let n=0;n<e.length;n++){const r=_e(e[n]);r&&(t+=r+" ")}else if(Oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function bh(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ge(t)&&(e.class=_e(t)),n&&(e.style=Et(n)),e}const wh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ch=Il(wh);function Hu(e){return!!e||e===""}function Sh(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Tl(e[r],t[r]);return n}function Tl(e,t){if(e===t)return!0;let n=Ea(e),r=Ea(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Pt(e),r=Pt(t),n||r)return e===t;if(n=he(e),r=he(t),n||r)return n&&r?Sh(e,t):!1;if(n=Oe(e),r=Oe(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!Tl(e[i],t[i]))return!1}}return String(e)===String(t)}const zu=e=>!!(e&&e.__v_isRef===!0),N=e=>Ge(e)?e:e==null?"":he(e)||Oe(e)&&(e.toString===Vu||!ye(e.toString))?zu(e)?N(e.value):JSON.stringify(e,Wu,2):String(e),Wu=(e,t)=>zu(t)?Wu(e,t.value):yr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[li(r,o)+" =>"]=s,n),{})}:ju(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>li(n))}:Pt(t)?li(t):Oe(t)&&!he(t)&&!Uu(t)?String(t):t,li=(e,t="")=>{var n;return Pt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.34
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let nt;class kh{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&&nt&&(nt.active?(this.parent=nt,this.index=(nt.scopes||(nt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=nt;try{return nt=this,t()}finally{nt=n}}}on(){++this._on===1&&(this.prevScope=nt,nt=this)}off(){if(this._on>0&&--this._on===0){if(nt===this)nt=this.prevScope;else{let t=nt;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 n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Ku(){return nt}function xh(e,t=!1){nt&&nt.cleanups.push(e)}let Fe;const ai=new WeakSet;class Xu{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,nt&&(nt.active?nt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ai.has(this)&&(ai.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ju(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,$a(this),Qu(this);const t=Fe,n=qt;Fe=this,qt=!0;try{return this.fn()}finally{Zu(this),Fe=t,qt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ol(t);this.deps=this.depsTail=void 0,$a(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ai.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ji(this)&&this.run()}get dirty(){return ji(this)}}let Yu=0,ss,os;function Ju(e,t=!1){if(e.flags|=8,t){e.next=os,os=e;return}e.next=ss,ss=e}function Nl(){Yu++}function Pl(){if(--Yu>0)return;if(os){let t=os;for(os=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ss;){let t=ss;for(ss=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Qu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Zu(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Ol(r),Eh(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function ji(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ef(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ef(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ds)||(e.globalVersion=ds,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ji(e))))return;e.flags|=2;const t=e.dep,n=Fe,r=qt;Fe=e,qt=!0;try{Qu(e);const s=e.fn(e._value);(t.version===0||ln(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Fe=n,qt=r,Zu(e),e.flags&=-3}}function Ol(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Ol(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Eh(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let qt=!0;const tf=[];function _n(){tf.push(qt),qt=!1}function bn(){const e=tf.pop();qt=e===void 0?!0:e}function $a(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Fe;Fe=void 0;try{t()}finally{Fe=n}}}let ds=0;class Ah{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ll{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(!Fe||!qt||Fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Fe)n=this.activeLink=new Ah(Fe,this),Fe.deps?(n.prevDep=Fe.depsTail,Fe.depsTail.nextDep=n,Fe.depsTail=n):Fe.deps=Fe.depsTail=n,nf(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Fe.depsTail,n.nextDep=void 0,Fe.depsTail.nextDep=n,Fe.depsTail=n,Fe.deps===n&&(Fe.deps=r)}return n}trigger(t){this.version++,ds++,this.notify(t)}notify(t){Nl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Pl()}}}function nf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)nf(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const so=new WeakMap,nr=Symbol(""),Gi=Symbol(""),ps=Symbol("");function mt(e,t,n){if(qt&&Fe){let r=so.get(e);r||so.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Ll),s.map=r,s.key=n),s.track()}}function mn(e,t,n,r,s,o){const i=so.get(e);if(!i){ds++;return}const l=a=>{a&&a.trigger()};if(Nl(),t==="clear")i.forEach(l);else{const a=he(e),c=a&&To(n);if(a&&n==="length"){const u=Number(r);i.forEach((f,d)=>{(d==="length"||d===ps||!Pt(d)&&d>=u)&&l(f)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),c&&l(i.get(ps)),t){case"add":a?c&&l(i.get("length")):(l(i.get(nr)),yr(e)&&l(i.get(Gi)));break;case"delete":a||(l(i.get(nr)),yr(e)&&l(i.get(Gi)));break;case"set":yr(e)&&l(i.get(nr));break}}Pl()}function $h(e,t){const n=so.get(e);return n&&n.get(t)}function cr(e){const t=Ae(e);return t===e?t:(mt(t,"iterate",ps),Tt(e)?t:t.map(Wt))}function Lo(e){return mt(e=Ae(e),"iterate",ps),e}function sn(e,t){return wn(e)?Er(rr(e)?Wt(t):t):Wt(t)}const Ih={__proto__:null,[Symbol.iterator](){return ci(this,Symbol.iterator,e=>sn(this,e))},concat(...e){return cr(this).concat(...e.map(t=>he(t)?cr(t):t))},entries(){return ci(this,"entries",e=>(e[1]=sn(this,e[1]),e))},every(e,t){return cn(this,"every",e,t,void 0,arguments)},filter(e,t){return cn(this,"filter",e,t,n=>n.map(r=>sn(this,r)),arguments)},find(e,t){return cn(this,"find",e,t,n=>sn(this,n),arguments)},findIndex(e,t){return cn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return cn(this,"findLast",e,t,n=>sn(this,n),arguments)},findLastIndex(e,t){return cn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return cn(this,"forEach",e,t,void 0,arguments)},includes(...e){return ui(this,"includes",e)},indexOf(...e){return ui(this,"indexOf",e)},join(e){return cr(this).join(e)},lastIndexOf(...e){return ui(this,"lastIndexOf",e)},map(e,t){return cn(this,"map",e,t,void 0,arguments)},pop(){return Ur(this,"pop")},push(...e){return Ur(this,"push",e)},reduce(e,...t){return Ia(this,"reduce",e,t)},reduceRight(e,...t){return Ia(this,"reduceRight",e,t)},shift(){return Ur(this,"shift")},some(e,t){return cn(this,"some",e,t,void 0,arguments)},splice(...e){return Ur(this,"splice",e)},toReversed(){return cr(this).toReversed()},toSorted(e){return cr(this).toSorted(e)},toSpliced(...e){return cr(this).toSpliced(...e)},unshift(...e){return Ur(this,"unshift",e)},values(){return ci(this,"values",e=>sn(this,e))}};function ci(e,t,n){const r=Lo(e),s=r[t]();return r!==e&&!Tt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const Rh=Array.prototype;function cn(e,t,n,r,s,o){const i=Lo(e),l=i!==e&&!Tt(e),a=i[t];if(a!==Rh[t]){const f=a.apply(e,o);return l?Wt(f):f}let c=n;i!==e&&(l?c=function(f,d){return n.call(this,sn(e,f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=a.call(i,c,r);return l&&s?s(u):u}function Ia(e,t,n,r){const s=Lo(e),o=s!==e&&!Tt(e);let i=n,l=!1;s!==e&&(o?(l=r.length===0,i=function(c,u,f){return l&&(l=!1,c=sn(e,c)),n.call(this,c,sn(e,u),f,e)}):n.length>3&&(i=function(c,u,f){return n.call(this,c,u,f,e)}));const a=s[t](i,...r);return l?sn(e,a):a}function ui(e,t,n){const r=Ae(e);mt(r,"iterate",ps);const s=r[t](...n);return(s===-1||s===!1)&&Mo(n[0])?(n[0]=Ae(n[0]),r[t](...n)):s}function Ur(e,t,n=[]){_n(),Nl();const r=Ae(e)[t].apply(e,n);return Pl(),bn(),r}const Th=Il("__proto__,__v_isRef,__isVue"),rf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pt));function Nh(e){Pt(e)||(e=String(e));const t=Ae(this);return mt(t,"has",e),t.hasOwnProperty(e)}class sf{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Vh:cf:o?af:lf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=he(t);if(!s){let a;if(i&&(a=Ih[n]))return a;if(n==="hasOwnProperty")return Nh}const l=Reflect.get(t,n,at(t)?t:r);if((Pt(n)?rf.has(n):Th(n))||(s||mt(t,"get",n),o))return l;if(at(l)){const a=i&&To(n)?l:l.value;return s&&Oe(a)?Ui(a):a}return Oe(l)?s?Ui(l):lr(l):l}}class of extends sf{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const i=he(t)&&To(n);if(!this._isShallow){const c=wn(o);if(!Tt(r)&&!wn(r)&&(o=Ae(o),r=Ae(r)),!i&&at(o)&&!at(r))return c||(o.value=r),!0}const l=i?Number(n)<t.length:Pe(t,n),a=Reflect.set(t,n,r,at(t)?t:s);return t===Ae(s)&&(l?ln(r,o)&&mn(t,"set",n,r):mn(t,"add",n,r)),a}deleteProperty(t,n){const r=Pe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&mn(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Pt(n)||!rf.has(n))&&mt(t,"has",n),r}ownKeys(t){return mt(t,"iterate",he(t)?"length":nr),Reflect.ownKeys(t)}}class Ph extends sf{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Oh=new of,Lh=new Ph,Mh=new of(!0);const Vi=e=>e,Bs=e=>Reflect.getPrototypeOf(e);function Dh(e,t,n){return function(...r){const s=this.__v_raw,o=Ae(s),i=yr(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=s[e](...r),u=n?Vi:t?Er:Wt;return!t&&mt(o,"iterate",a?Gi:nr),Ze(Object.create(c),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:l?[u(f[0]),u(f[1])]:u(f),done:d}}})}}function Fs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Bh(e,t){const n={get(s){const o=this.__v_raw,i=Ae(o),l=Ae(s);e||(ln(s,l)&&mt(i,"get",s),mt(i,"get",l));const{has:a}=Bs(i),c=t?Vi:e?Er:Wt;if(a.call(i,s))return c(o.get(s));if(a.call(i,l))return c(o.get(l));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&mt(Ae(s),"iterate",nr),s.size},has(s){const o=this.__v_raw,i=Ae(o),l=Ae(s);return e||(ln(s,l)&&mt(i,"has",s),mt(i,"has",l)),s===l?o.has(s):o.has(s)||o.has(l)},forEach(s,o){const i=this,l=i.__v_raw,a=Ae(l),c=t?Vi:e?Er:Wt;return!e&&mt(a,"iterate",nr),l.forEach((u,f)=>s.call(o,c(u),c(f),i))}};return Ze(n,e?{add:Fs("add"),set:Fs("set"),delete:Fs("delete"),clear:Fs("clear")}:{add(s){const o=Ae(this),i=Bs(o),l=Ae(s),a=!t&&!Tt(s)&&!wn(s)?l:s;return i.has.call(o,a)||ln(s,a)&&i.has.call(o,s)||ln(l,a)&&i.has.call(o,l)||(o.add(a),mn(o,"add",a,a)),this},set(s,o){!t&&!Tt(o)&&!wn(o)&&(o=Ae(o));const i=Ae(this),{has:l,get:a}=Bs(i);let c=l.call(i,s);c||(s=Ae(s),c=l.call(i,s));const u=a.call(i,s);return i.set(s,o),c?ln(o,u)&&mn(i,"set",s,o):mn(i,"add",s,o),this},delete(s){const o=Ae(this),{has:i,get:l}=Bs(o);let a=i.call(o,s);a||(s=Ae(s),a=i.call(o,s)),l&&l.call(o,s);const c=o.delete(s);return a&&mn(o,"delete",s,void 0),c},clear(){const s=Ae(this),o=s.size!==0,i=s.clear();return o&&mn(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Dh(s,e,t)}),n}function Ml(e,t){const n=Bh(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Pe(n,s)&&s in r?n:r,s,o)}const Fh={get:Ml(!1,!1)},jh={get:Ml(!1,!0)},Gh={get:Ml(!0,!1)};const lf=new WeakMap,af=new WeakMap,cf=new WeakMap,Vh=new WeakMap;function Uh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qh(e){return e.__v_skip||!Object.isExtensible(e)?0:Uh(fh(e))}function lr(e){return wn(e)?e:Dl(e,!1,Oh,Fh,lf)}function uf(e){return Dl(e,!1,Mh,jh,af)}function Ui(e){return Dl(e,!0,Lh,Gh,cf)}function Dl(e,t,n,r,s){if(!Oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=qh(e);if(o===0)return e;const i=s.get(e);if(i)return i;const l=new Proxy(e,o===2?r:n);return s.set(e,l),l}function rr(e){return wn(e)?rr(e.__v_raw):!!(e&&e.__v_isReactive)}function wn(e){return!!(e&&e.__v_isReadonly)}function Tt(e){return!!(e&&e.__v_isShallow)}function Mo(e){return e?!!e.__v_raw:!1}function Ae(e){const t=e&&e.__v_raw;return t?Ae(t):e}function ff(e){return!Pe(e,"__v_skip")&&Object.isExtensible(e)&&qu(e,"__v_skip",!0),e}const Wt=e=>Oe(e)?lr(e):e,Er=e=>Oe(e)?Ui(e):e;function at(e){return e?e.__v_isRef===!0:!1}function K(e){return df(e,!1)}function Bl(e){return df(e,!0)}function df(e,t){return at(e)?e:new Hh(e,t)}class Hh{constructor(t,n){this.dep=new Ll,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ae(t),this._value=n?t:Wt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Tt(t)||wn(t);t=r?t:Ae(t),ln(t,n)&&(this._rawValue=t,this._value=r?t:Wt(t),this.dep.trigger())}}function zh(e){e.dep&&e.dep.trigger()}function B(e){return at(e)?e.value:e}function hs(e){return ye(e)?e():B(e)}const Wh={get:(e,t,n)=>t==="__v_raw"?e:B(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return at(s)&&!at(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function pf(e){return rr(e)?e:new Proxy(e,Wh)}function Mr(e){const t=he(e)?new Array(e.length):{};for(const n in e)t[n]=Xh(e,n);return t}class Kh{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=Pt(n)?n:String(n),this._raw=Ae(t);let s=!0,o=t;if(!he(t)||Pt(this._key)||!To(this._key))do s=!Mo(o)||Tt(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=B(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&at(this._raw[this._key])){const n=this._object[this._key];if(at(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return $h(this._raw,this._key)}}function Xh(e,t,n){return new Kh(e,t,n)}class Yh{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ll(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ds-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Fe!==this)return Ju(this,!0),!0}get value(){const t=this.dep.track();return ef(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Jh(e,t,n=!1){let r,s;return ye(e)?r=e:(r=e.get,s=e.set),new Yh(r,s,n)}const js={},oo=new WeakMap;let zn;function Qh(e,t=!1,n=zn){if(n){let r=oo.get(n);r||oo.set(n,r=[]),r.push(e)}}function Zh(e,t,n=je){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:l,call:a}=n,c=$=>s?$:Tt($)||s===!1||s===0?Ln($,1):Ln($);let u,f,d,p,h=!1,m=!1;if(at(e)?(f=()=>e.value,h=Tt(e)):rr(e)?(f=()=>c(e),h=!0):he(e)?(m=!0,h=e.some($=>rr($)||Tt($)),f=()=>e.map($=>{if(at($))return $.value;if(rr($))return c($);if(ye($))return a?a($,2):$()})):ye(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){_n();try{d()}finally{bn()}}const $=zn;zn=u;try{return a?a(e,3,[p]):e(p)}finally{zn=$}}:f=an,t&&s){const $=f,V=s===!0?1/0:s;f=()=>Ln($(),V)}const _=Ku(),v=()=>{u.stop(),_&&_.active&&Rl(_.effects,u)};if(o&&t){const $=t;t=(...V)=>{$(...V),v()}}let w=m?new Array(e.length).fill(js):js;const C=$=>{if(!(!(u.flags&1)||!u.dirty&&!$))if(t){const V=u.run();if(s||h||(m?V.some((z,L)=>ln(z,w[L])):ln(V,w))){d&&d();const z=zn;zn=u;try{const L=[V,w===js?void 0:m&&w[0]===js?[]:w,p];w=V,a?a(t,3,L):t(...L)}finally{zn=z}}}else u.run()};return l&&l(C),u=new Xu(f),u.scheduler=i?()=>i(C,!1):C,p=$=>Qh($,!1,u),d=u.onStop=()=>{const $=oo.get(u);if($){if(a)a($,4);else for(const V of $)V();oo.delete(u)}},t?r?C(!0):w=u.run():i?i(C.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function Ln(e,t=1/0,n){if(t<=0||!Oe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,at(e))Ln(e.value,t,n);else if(he(e))for(let r=0;r<e.length;r++)Ln(e[r],t,n);else if(ju(e)||yr(e))e.forEach(r=>{Ln(r,t,n)});else if(Uu(e)){for(const r in e)Ln(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ln(e[r],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.34
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function Is(e,t,n,r){try{return r?e(...r):e()}catch(s){Do(s,t,n)}}function Kt(e,t,n,r){if(ye(e)){const s=Is(e,t,n,r);return s&&Gu(s)&&s.catch(o=>{Do(o,t,n)}),s}if(he(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Kt(e[o],t,n,r));return s}}function Do(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||je;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}l=l.parent}if(o){_n(),Is(o,null,10,[e,a,c]),bn();return}}eg(e,n,s,r,i)}function eg(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const St=[];let nn=-1;const _r=[];let Pn=null,dr=0;const hf=Promise.resolve();let io=null;function Cn(e){const t=io||hf;return e?t.then(this?e.bind(this):e):t}function tg(e){let t=nn+1,n=St.length;for(;t<n;){const r=t+n>>>1,s=St[r],o=gs(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Fl(e){if(!(e.flags&1)){const t=gs(e),n=St[St.length-1];!n||!(e.flags&2)&&t>=gs(n)?St.push(e):St.splice(tg(t),0,e),e.flags|=1,gf()}}function gf(){io||(io=hf.then(vf))}function ng(e){he(e)?_r.push(...e):Pn&&e.id===-1?Pn.splice(dr+1,0,e):e.flags&1||(_r.push(e),e.flags|=1),gf()}function Ra(e,t,n=nn+1){for(;n<St.length;n++){const r=St[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;St.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function mf(e){if(_r.length){const t=[...new Set(_r)].sort((n,r)=>gs(n)-gs(r));if(_r.length=0,Pn){Pn.push(...t);return}for(Pn=t,dr=0;dr<Pn.length;dr++){const n=Pn[dr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Pn=null,dr=0}}const gs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function vf(e){try{for(nn=0;nn<St.length;nn++){const t=St[nn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Is(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;nn<St.length;nn++){const t=St[nn];t&&(t.flags&=-2)}nn=-1,St.length=0,mf(),io=null,(St.length||_r.length)&&vf()}}let kt=null,yf=null;function lo(e){const t=kt;return kt=e,yf=e&&e.type.__scopeId||null,t}function A(e,t=kt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&uo(-1);const o=lo(t);let i;try{i=e(...s)}finally{lo(o),r._d&&uo(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Vn(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const l=s[i];o&&(l.oldValue=o[i].value);let a=l.dir[r];a&&(_n(),Kt(a,n,8,[e.el,l,e,t]),bn())}}function br(e,t){if(vt){let n=vt.provides;const r=vt.parent&&vt.parent.provides;r===n&&(n=vt.provides=Object.create(r)),n[e]=t}}function Nt(e,t,n=!1){const r=xn();if(r||Sr){let s=Sr?Sr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ye(t)?t.call(r&&r.proxy):t}}const rg=Symbol.for("v-scx"),sg=()=>Nt(rg);function wr(e,t){return jl(e,null,t)}function Te(e,t,n){return jl(e,t,n)}function jl(e,t,n=je){const{immediate:r,deep:s,flush:o,once:i}=n,l=Ze({},n),a=t&&r||!t&&o!=="post";let c;if(_s){if(o==="sync"){const p=sg();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!a){const p=()=>{};return p.stop=an,p.resume=an,p.pause=an,p}}const u=vt;l.call=(p,h,m)=>Kt(p,u,h,m);let f=!1;o==="post"?l.scheduler=p=>{wt(p,u&&u.suspense)}:o!=="sync"&&(f=!0,l.scheduler=(p,h)=>{h?p():Fl(p)}),l.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=Zh(e,t,l);return _s&&(c?c.push(d):a&&d()),d}function og(e,t,n){const r=this.proxy,s=Ge(e)?e.includes(".")?_f(r,e):()=>r[e]:e.bind(r,r);let o;ye(t)?o=t:(o=t.handler,n=t);const i=Ns(this),l=jl(s,o.bind(r),n);return i(),l}function _f(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const In=new WeakMap,bf=Symbol("_vte"),wf=e=>e.__isTeleport,Kn=e=>e&&(e.disabled||e.disabled===""),ig=e=>e&&(e.defer||e.defer===""),Ta=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Na=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,qi=(e,t)=>{const n=e&&e.to;return Ge(n)?t?t(n):null:n},lg={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,l,a,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:m,createComment:_,parentNode:v}}=c,w=Kn(t.props);let{dynamicChildren:C}=t;const $=(L,G,P)=>{L.shapeFlag&16&&u(L.children,G,P,s,o,i,l,a)},V=(L=t)=>{const G=Kn(L.props),P=L.target=qi(L.props,h),O=Hi(P,L,m,p);P&&(i!=="svg"&&Ta(P)?i="svg":i!=="mathml"&&Na(P)&&(i="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(P),G||($(L,P,O),Jr(L,!1)))},z=L=>{const G=()=>{if(In.get(L)===G){if(In.delete(L),Kn(L.props)){const P=v(L.el)||n;$(L,P,L.anchor),Jr(L,!0)}V(L)}};In.set(L,G),wt(G,o)};if(e==null){const L=t.el=m(""),G=t.anchor=m("");if(p(L,n,r),p(G,n,r),ig(t.props)||o&&o.pendingBranch){z(t);return}w&&($(t,n,G),Jr(t,!0)),V()}else{t.el=e.el;const L=t.anchor=e.anchor,G=In.get(e);if(G){G.flags|=8,In.delete(e),z(t);return}t.targetStart=e.targetStart;const P=t.target=e.target,O=t.targetAnchor=e.targetAnchor,q=Kn(e.props),I=q?n:P,le=q?L:O;if(i==="svg"||Ta(P)?i="svg":(i==="mathml"||Na(P))&&(i="mathml"),C?(d(e.dynamicChildren,C,I,s,o,i,l),Hl(e,t,!0)):a||f(e,t,I,le,s,o,i,l,!1),w)q?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Gs(t,n,L,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const de=t.target=qi(t.props,h);de&&Gs(t,de,null,c,0)}else q&&Gs(t,P,O,c,1);Jr(t,w)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:l,anchor:a,targetStart:c,targetAnchor:u,target:f,props:d}=e;let p=o||!Kn(d);const h=In.get(e);if(h&&(h.flags|=8,In.delete(e),p=!1),f&&(s(c),s(u)),o&&s(a),i&16)for(let m=0;m<l.length;m++){const _=l[m];r(_,t,n,p,!!_.dynamicChildren)}},move:Gs,hydrate:ag};function Gs(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:a,children:c,props:u}=e,f=o===2;if(f&&r(i,t,n),!In.has(e)&&(!f||Kn(u))&&a&16)for(let d=0;d<c.length;d++)s(c[d],t,n,2);f&&r(l,t,n)}function ag(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:c,createText:u}},f){function d(_,v){let w=v;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,_._lpa=t.targetAnchor&&i(t.targetAnchor);break}}w=i(w)}}function p(_,v){v.anchor=f(i(_),v,l(_),n,r,s,o)}const h=t.target=qi(t.props,a),m=Kn(t.props);if(h){const _=h._lpa||h.firstChild;t.shapeFlag&16&&(m?(p(e,t),d(h,_),t.targetAnchor||Hi(h,t,u,c,l(e)===h?e:null)):(t.anchor=i(e),d(h,_),t.targetAnchor||Hi(h,t,u,c),f(_&&i(_),t,h,n,r,s,o))),Jr(t,m)}else m&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const Cf=lg;function Jr(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Hi(e,t,n,r,s=null){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[bf]=i,e&&(r(o,e,s),r(i,e,s)),i}const rn=Symbol("_leaveCb"),qr=Symbol("_enterCb");function Sf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ve(()=>{e.isMounted=!0}),Rs(()=>{e.isUnmounting=!0}),e}const Mt=[Function,Array],kf={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Mt,onEnter:Mt,onAfterEnter:Mt,onEnterCancelled:Mt,onBeforeLeave:Mt,onLeave:Mt,onAfterLeave:Mt,onLeaveCancelled:Mt,onBeforeAppear:Mt,onAppear:Mt,onAfterAppear:Mt,onAppearCancelled:Mt},xf=e=>{const t=e.subTree;return t.component?xf(t.component):t},cg={name:"BaseTransition",props:kf,setup(e,{slots:t}){const n=xn(),r=Sf();return()=>{const s=t.default&&Gl(t.default(),!0),o=s&&s.length?Ef(s):n.subTree?W():void 0;if(!o)return;const i=Ae(e),{mode:l}=i;if(r.isLeaving)return fi(o);const a=Pa(o);if(!a)return fi(o);let c=ms(a,i,r,n,f=>c=f);a.type!==pt&&sr(a,c);let u=n.subTree&&Pa(n.subTree);if(u&&u.type!==pt&&!Xn(u,a)&&xf(n).type!==pt){let f=ms(u,i,r,n);if(sr(u,f),l==="out-in"&&a.type!==pt)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},fi(o);l==="in-out"&&a.type!==pt?f.delayLeave=(d,p,h)=>{const m=Af(r,u);m[String(u.key)]=u,d[rn]=()=>{p(),d[rn]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{h(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Ef(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==pt){t=n;break}}return t}const ug=cg;function Af(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ms(e,t,n,r,s){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:_,onAppear:v,onAfterAppear:w,onAppearCancelled:C}=t,$=String(e.key),V=Af(n,e),z=(P,O)=>{P&&Kt(P,r,9,O)},L=(P,O)=>{const q=O[1];z(P,O),he(P)?P.every(I=>I.length<=1)&&q():P.length<=1&&q()},G={mode:i,persisted:l,beforeEnter(P){let O=a;if(!n.isMounted)if(o)O=_||a;else return;P[rn]&&P[rn](!0);const q=V[$];q&&Xn(e,q)&&q.el[rn]&&q.el[rn](),z(O,[P])},enter(P){if(V[$]===e)return;let O=c,q=u,I=f;if(!n.isMounted)if(o)O=v||c,q=w||u,I=C||f;else return;let le=!1;P[qr]=$e=>{le||(le=!0,$e?z(I,[P]):z(q,[P]),G.delayedLeave&&G.delayedLeave(),P[qr]=void 0)};const de=P[qr].bind(null,!1);O?L(O,[P,de]):de()},leave(P,O){const q=String(e.key);if(P[qr]&&P[qr](!0),n.isUnmounting)return O();z(d,[P]);let I=!1;P[rn]=de=>{I||(I=!0,O(),de?z(m,[P]):z(h,[P]),P[rn]=void 0,V[q]===e&&delete V[q])};const le=P[rn].bind(null,!1);V[q]=e,p?L(p,[P,le]):le()},clone(P){const O=ms(P,t,n,r,s);return s&&s(O),O}};return G}function fi(e){if(Bo(e))return e=Sn(e),e.children=null,e}function Pa(e){if(!Bo(e))return wf(e.type)&&e.children?Ef(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ye(n.default))return n.default()}}function sr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sr(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 Gl(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let i=e[o];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===se?(i.patchFlag&128&&s++,r=r.concat(Gl(i.children,t,l))):(t||i.type!==pt)&&r.push(l!=null?Sn(i,{key:l}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Le(e,t){return ye(e)?Ze({name:e.name},t,{setup:e}):e}function di(){const e=xn();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function $f(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Oa(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ao=new WeakMap;function is(e,t,n,r,s=!1){if(he(e)){e.forEach((m,_)=>is(m,t&&(he(t)?t[_]:t),n,r,s));return}if(Cr(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&is(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Wl(r.component):r.el,i=s?null:o,{i:l,r:a}=e,c=t&&t.r,u=l.refs===je?l.refs={}:l.refs,f=l.setupState,d=Ae(f),p=f===je?Fu:m=>Oa(u,m)?!1:Pe(d,m),h=(m,_)=>!(_&&Oa(u,_));if(c!=null&&c!==a){if(La(t),Ge(c))u[c]=null,p(c)&&(f[c]=null);else if(at(c)){const m=t;h(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(ye(a))Is(a,l,12,[i,u]);else{const m=Ge(a),_=at(a);if(m||_){const v=()=>{if(e.f){const w=m?p(a)?f[a]:u[a]:h()||!e.k?a.value:u[e.k];if(s)he(w)&&Rl(w,o);else if(he(w))w.includes(o)||w.push(o);else if(m)u[a]=[o],p(a)&&(f[a]=u[a]);else{const C=[o];h(a,e.k)&&(a.value=C),e.k&&(u[e.k]=C)}}else m?(u[a]=i,p(a)&&(f[a]=i)):_&&(h(a,e.k)&&(a.value=i),e.k&&(u[e.k]=i))};if(i){const w=()=>{v(),ao.delete(e)};w.id=-1,ao.set(e,w),wt(w,n)}else La(e),v()}}}function La(e){const t=ao.get(e);t&&(t.flags|=8,ao.delete(e))}Oo().requestIdleCallback;Oo().cancelIdleCallback;const Cr=e=>!!e.type.__asyncLoader,Bo=e=>e.type.__isKeepAlive;function fg(e,t){If(e,"a",t)}function dg(e,t){If(e,"da",t)}function If(e,t,n=vt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Fo(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Bo(s.parent.vnode)&&pg(r,t,n,s),s=s.parent}}function pg(e,t,n,r){const s=Fo(t,e,r,!0);st(()=>{Rl(r[t],s)},n)}function Fo(e,t,n=vt,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{_n();const l=Ns(n),a=Kt(t,n,e,i);return l(),bn(),a});return r?s.unshift(o):s.push(o),o}}const kn=e=>(t,n=vt)=>{(!_s||e==="sp")&&Fo(e,(...r)=>t(...r),n)},hg=kn("bm"),Ve=kn("m"),gg=kn("bu"),Vl=kn("u"),Rs=kn("bum"),st=kn("um"),mg=kn("sp"),vg=kn("rtg"),yg=kn("rtc");function _g(e,t=vt){Fo("ec",e,t)}const Rf="components";function Tf(e,t){return Pf(Rf,e,!0,t)||e}const Nf=Symbol.for("v-ndc");function Ts(e){return Ge(e)?Pf(Rf,e,!1)||e:e||Nf}function Pf(e,t,n=!0,r=!1){const s=kt||vt;if(s){const o=s.type;{const l=nm(o,!1);if(l&&(l===t||l===xt(t)||l===Po(xt(t))))return o}const i=Ma(s[e]||o[e],t)||Ma(s.appContext[e],t);return!i&&r?o:i}}function Ma(e,t){return e&&(e[t]||e[xt(t)]||e[Po(xt(t))])}function ve(e,t,n,r){let s;const o=n,i=he(e);if(i||Ge(e)){const l=i&&rr(e);let a=!1,c=!1;l&&(a=!Tt(e),c=wn(e),e=Lo(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(a?c?Er(Wt(e[u])):Wt(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,o)}else if(Oe(e))if(e[Symbol.iterator])s=Array.from(e,(l,a)=>t(l,a,void 0,o));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const u=l[a];s[a]=t(e[u],u,a,o)}}else s=[];return s}function ce(e,t,n={},r,s){if(kt.ce||kt.parent&&Cr(kt.parent)&&kt.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),g(),H(se,null,[R("slot",n,r&&r())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),g();const i=o&&Of(o(n)),l=n.key||i&&i.key,a=H(se,{key:(l&&!Pt(l)?l:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Of(e){return e.some(t=>ys(t)?!(t.type===pt||t.type===se&&!Of(t.children)):!0)?e:null}const zi=e=>e?ed(e)?Wl(e):zi(e.parent):null,ls=Ze(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=>zi(e.parent),$root:e=>zi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Mf(e),$forceUpdate:e=>e.f||(e.f=()=>{Fl(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>og.bind(e)}),pi=(e,t)=>e!==je&&!e.__isScriptSetup&&Pe(e,t),bg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const d=i[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(pi(r,t))return i[t]=1,r[t];if(s!==je&&Pe(s,t))return i[t]=2,s[t];if(Pe(o,t))return i[t]=3,o[t];if(n!==je&&Pe(n,t))return i[t]=4,n[t];Wi&&(i[t]=0)}}const c=ls[t];let u,f;if(c)return t==="$attrs"&&mt(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==je&&Pe(n,t))return i[t]=4,n[t];if(f=a.config.globalProperties,Pe(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return pi(s,t)?(s[t]=n,!0):r!==je&&Pe(r,t)?(r[t]=n,!0):Pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:o,type:i}},l){let a;return!!(n[l]||e!==je&&l[0]!=="$"&&Pe(e,l)||pi(t,l)||Pe(o,l)||Pe(r,l)||Pe(ls,l)||Pe(s.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wg(){return Cg().slots}function Cg(e){const t=xn();return t.setupContext||(t.setupContext=nd(t))}function Da(e){return he(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Wi=!0;function Sg(e){const t=Mf(e),n=e.proxy,r=e.ctx;Wi=!1,t.beforeCreate&&Ba(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:m,deactivated:_,beforeDestroy:v,beforeUnmount:w,destroyed:C,unmounted:$,render:V,renderTracked:z,renderTriggered:L,errorCaptured:G,serverPrefetch:P,expose:O,inheritAttrs:q,components:I,directives:le,filters:de}=t;if(c&&kg(c,r,null),i)for(const Ce in i){const Se=i[Ce];ye(Se)&&(r[Ce]=Se.bind(n))}if(s){const Ce=s.call(n,n);Oe(Ce)&&(e.data=lr(Ce))}if(Wi=!0,o)for(const Ce in o){const Se=o[Ce],ut=ye(Se)?Se.bind(n,n):ye(Se.get)?Se.get.bind(n,n):an,ft=!ye(Se)&&ye(Se.set)?Se.set.bind(n):an,ht=Y({get:ut,set:ft});Object.defineProperty(r,Ce,{enumerable:!0,configurable:!0,get:()=>ht.value,set:qe=>ht.value=qe})}if(l)for(const Ce in l)Lf(l[Ce],r,n,Ce);if(a){const Ce=ye(a)?a.call(n):a;Reflect.ownKeys(Ce).forEach(Se=>{br(Se,Ce[Se])})}u&&Ba(u,e,"c");function Ee(Ce,Se){he(Se)?Se.forEach(ut=>Ce(ut.bind(n))):Se&&Ce(Se.bind(n))}if(Ee(hg,f),Ee(Ve,d),Ee(gg,p),Ee(Vl,h),Ee(fg,m),Ee(dg,_),Ee(_g,G),Ee(yg,z),Ee(vg,L),Ee(Rs,w),Ee(st,$),Ee(mg,P),he(O))if(O.length){const Ce=e.exposed||(e.exposed={});O.forEach(Se=>{Object.defineProperty(Ce,Se,{get:()=>n[Se],set:ut=>n[Se]=ut,enumerable:!0})})}else e.exposed||(e.exposed={});V&&e.render===an&&(e.render=V),q!=null&&(e.inheritAttrs=q),I&&(e.components=I),le&&(e.directives=le),P&&$f(e)}function kg(e,t,n=an){he(e)&&(e=Ki(e));for(const r in e){const s=e[r];let o;Oe(s)?"default"in s?o=Nt(s.from||r,s.default,!0):o=Nt(s.from||r):o=Nt(s),at(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Ba(e,t,n){Kt(he(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Lf(e,t,n,r){let s=r.includes(".")?_f(n,r):()=>n[r];if(Ge(e)){const o=t[e];ye(o)&&Te(s,o)}else if(ye(e))Te(s,e.bind(n));else if(Oe(e))if(he(e))e.forEach(o=>Lf(o,t,n,r));else{const o=ye(e.handler)?e.handler.bind(n):t[e.handler];ye(o)&&Te(s,o,e)}}function Mf(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(c=>co(a,c,i,!0)),co(a,t,i)),Oe(t)&&o.set(t,a),a}function co(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&co(e,o,n,!0),s&&s.forEach(i=>co(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=xg[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const xg={data:Fa,props:ja,emits:ja,methods:Qr,computed:Qr,beforeCreate:bt,created:bt,beforeMount:bt,mounted:bt,beforeUpdate:bt,updated:bt,beforeDestroy:bt,beforeUnmount:bt,destroyed:bt,unmounted:bt,activated:bt,deactivated:bt,errorCaptured:bt,serverPrefetch:bt,components:Qr,directives:Qr,watch:Ag,provide:Fa,inject:Eg};function Fa(e,t){return t?e?function(){return Ze(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function Eg(e,t){return Qr(Ki(e),Ki(t))}function Ki(e){if(he(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function bt(e,t){return e?[...new Set([].concat(e,t))]:t}function Qr(e,t){return e?Ze(Object.create(null),e,t):t}function ja(e,t){return e?he(e)&&he(t)?[...new Set([...e,...t])]:Ze(Object.create(null),Da(e),Da(t??{})):t}function Ag(e,t){if(!e)return t;if(!t)return e;const n=Ze(Object.create(null),e);for(const r in t)n[r]=bt(e[r],t[r]);return n}function Df(){return{app:null,config:{isNativeTag:Fu,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 $g=0;function Ig(e,t){return function(r,s=null){ye(r)||(r=Ze({},r)),s!=null&&!Oe(s)&&(s=null);const o=Df(),i=new WeakSet,l=[];let a=!1;const c=o.app={_uid:$g++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:sm,get config(){return o.config},set config(u){},use(u,...f){return i.has(u)||(u&&ye(u.install)?(i.add(u),u.install(c,...f)):ye(u)&&(i.add(u),u(c,...f))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,f){return f?(o.components[u]=f,c):o.components[u]},directive(u,f){return f?(o.directives[u]=f,c):o.directives[u]},mount(u,f,d){if(!a){const p=c._ceVNode||R(r,s);return p.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),e(p,u,d),a=!0,c._container=u,u.__vue_app__=c,Wl(p.component)}},onUnmount(u){l.push(u)},unmount(){a&&(Kt(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return o.provides[u]=f,c},runWithContext(u){const f=Sr;Sr=c;try{return u()}finally{Sr=f}}};return c}}let Sr=null;const Rg=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xt(t)}Modifiers`]||e[`${ir(t)}Modifiers`];function Tg(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||je;let s=n;const o=t.startsWith("update:"),i=o&&Rg(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>Ge(u)?u.trim():u)),i.number&&(s=n.map(hh)));let l,a=r[l=oi(t)]||r[l=oi(xt(t))];!a&&o&&(a=r[l=oi(ir(t))]),a&&Kt(a,e,6,s);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Kt(c,e,6,s)}}const Ng=new WeakMap;function Bf(e,t,n=!1){const r=n?Ng:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!ye(e)){const a=c=>{const u=Bf(c,t,!0);u&&(l=!0,Ze(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(Oe(e)&&r.set(e,null),null):(he(o)?o.forEach(a=>i[a]=null):Ze(i,o),Oe(e)&&r.set(e,i),i)}function jo(e,t){return!e||!Io(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pe(e,t[0].toLowerCase()+t.slice(1))||Pe(e,ir(t))||Pe(e,t))}function Ga(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:h,inheritAttrs:m}=e,_=lo(e);let v,w;try{if(n.shapeFlag&4){const $=s||r,V=$;v=on(c.call(V,$,u,f,p,d,h)),w=l}else{const $=t;v=on($.length>1?$(f,{attrs:l,slots:i,emit:a}):$(f,null)),w=t.props?l:Pg(l)}}catch($){as.length=0,Do($,e,1),v=R(pt)}let C=v;if(w&&m!==!1){const $=Object.keys(w),{shapeFlag:V}=C;$.length&&V&7&&(o&&$.some(Ro)&&(w=Og(w,o)),C=Sn(C,w,!1,!0))}return n.dirs&&(C=Sn(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&sr(C,n.transition),v=C,lo(_),v}const Pg=e=>{let t;for(const n in e)(n==="class"||n==="style"||Io(n))&&((t||(t={}))[n]=e[n]);return t},Og=(e,t)=>{const n={};for(const r in e)(!Ro(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Lg(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Va(r,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(Ff(i,r,d)&&!jo(c,d))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===i?!1:r?i?Va(r,i,c):!0:!!i;return!1}function Va(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(Ff(t,e,o)&&!jo(n,o))return!0}return!1}function Ff(e,t,n){const r=e[n],s=t[n];return n==="style"&&Oe(r)&&Oe(s)?!Tl(r,s):r!==s}function Mg({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const jf={},Gf=()=>Object.create(jf),Vf=e=>Object.getPrototypeOf(e)===jf;function Dg(e,t,n,r=!1){const s={},o=Gf();e.propsDefaults=Object.create(null),Uf(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:uf(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Bg(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=Ae(s),[a]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(jo(e.emitsOptions,d))continue;const p=t[d];if(a)if(Pe(o,d))p!==o[d]&&(o[d]=p,c=!0);else{const h=xt(d);s[h]=Xi(a,l,h,p,e,!1)}else p!==o[d]&&(o[d]=p,c=!0)}}}else{Uf(e,t,s,o)&&(c=!0);let u;for(const f in l)(!t||!Pe(t,f)&&((u=ir(f))===f||!Pe(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=Xi(a,l,f,void 0,e,!0)):delete s[f]);if(o!==l)for(const f in o)(!t||!Pe(t,f))&&(delete o[f],c=!0)}c&&mn(e.attrs,"set","")}function Uf(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(rs(a))continue;const c=t[a];let u;s&&Pe(s,u=xt(a))?!o||!o.includes(u)?n[u]=c:(l||(l={}))[u]=c:jo(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,i=!0)}if(o){const a=Ae(n),c=l||je;for(let u=0;u<o.length;u++){const f=o[u];n[f]=Xi(s,a,f,c[f],e,!Pe(c,f))}}return i}function Xi(e,t,n,r,s,o){const i=e[n];if(i!=null){const l=Pe(i,"default");if(l&&r===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&ye(a)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=Ns(s);r=c[n]=a.call(null,t),u()}}else r=a;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!l?r=!1:i[1]&&(r===""||r===ir(n))&&(r=!0))}return r}const Fg=new WeakMap;function qf(e,t,n=!1){const r=n?Fg:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},l=[];let a=!1;if(!ye(e)){const u=f=>{a=!0;const[d,p]=qf(f,t,!0);Ze(i,d),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return Oe(e)&&r.set(e,vr),vr;if(he(o))for(let u=0;u<o.length;u++){const f=xt(o[u]);Ua(f)&&(i[f]=je)}else if(o)for(const u in o){const f=xt(u);if(Ua(f)){const d=o[u],p=i[f]=he(d)||ye(d)?{type:d}:Ze({},d),h=p.type;let m=!1,_=!0;if(he(h))for(let v=0;v<h.length;++v){const w=h[v],C=ye(w)&&w.name;if(C==="Boolean"){m=!0;break}else C==="String"&&(_=!1)}else m=ye(h)&&h.name==="Boolean";p[0]=m,p[1]=_,(m||Pe(p,"default"))&&l.push(f)}}const c=[i,l];return Oe(e)&&r.set(e,c),c}function Ua(e){return e[0]!=="$"&&!rs(e)}const Ul=e=>e==="_"||e==="_ctx"||e==="$stable",ql=e=>he(e)?e.map(on):[on(e)],jg=(e,t,n)=>{if(t._n)return t;const r=A((...s)=>ql(t(...s)),n);return r._c=!1,r},Hf=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ul(s))continue;const o=e[s];if(ye(o))t[s]=jg(s,o,r);else if(o!=null){const i=ql(o);t[s]=()=>i}}},zf=(e,t)=>{const n=ql(t);e.slots.default=()=>n},Wf=(e,t,n)=>{for(const r in t)(n||!Ul(r))&&(e[r]=t[r])},Gg=(e,t,n)=>{const r=e.slots=Gf();if(e.vnode.shapeFlag&32){const s=t._;s?(Wf(r,t,n),n&&qu(r,"_",s,!0)):Hf(t,r)}else t&&zf(e,t)},Vg=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=je;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Wf(s,t,n):(o=!t.$stable,Hf(t,s)),i=t}else t&&(zf(e,t),i={default:1});if(o)for(const l in s)!Ul(l)&&i[l]==null&&delete s[l]},wt=Wg;function Ug(e){return qg(e)}function qg(e,t){const n=Oo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=an,insertStaticContent:h}=e,m=(b,S,y,E=null,T=null,M=null,ne=void 0,re=null,te=!!S.dynamicChildren)=>{if(b===S)return;b&&!Xn(b,S)&&(E=D(b),qe(b,T,M,!0),b=null),S.patchFlag===-2&&(te=!1,S.dynamicChildren=null);const{type:J,ref:pe,shapeFlag:ie}=S;switch(J){case Go:_(b,S,y,E);break;case pt:v(b,S,y,E);break;case gi:b==null&&w(S,y,E,ne);break;case se:I(b,S,y,E,T,M,ne,re,te);break;default:ie&1?V(b,S,y,E,T,M,ne,re,te):ie&6?le(b,S,y,E,T,M,ne,re,te):(ie&64||ie&128)&&J.process(b,S,y,E,T,M,ne,re,te,oe)}pe!=null&&T?is(pe,b&&b.ref,M,S||b,!S):pe==null&&b&&b.ref!=null&&is(b.ref,null,M,b,!0)},_=(b,S,y,E)=>{if(b==null)r(S.el=l(S.children),y,E);else{const T=S.el=b.el;S.children!==b.children&&c(T,S.children)}},v=(b,S,y,E)=>{b==null?r(S.el=a(S.children||""),y,E):S.el=b.el},w=(b,S,y,E)=>{[b.el,b.anchor]=h(b.children,S,y,E,b.el,b.anchor)},C=({el:b,anchor:S},y,E)=>{let T;for(;b&&b!==S;)T=d(b),r(b,y,E),b=T;r(S,y,E)},$=({el:b,anchor:S})=>{let y;for(;b&&b!==S;)y=d(b),s(b),b=y;s(S)},V=(b,S,y,E,T,M,ne,re,te)=>{if(S.type==="svg"?ne="svg":S.type==="math"&&(ne="mathml"),b==null)z(S,y,E,T,M,ne,re,te);else{const J=b.el&&b.el._isVueCE?b.el:null;try{J&&J._beginPatch(),P(b,S,T,M,ne,re,te)}finally{J&&J._endPatch()}}},z=(b,S,y,E,T,M,ne,re)=>{let te,J;const{props:pe,shapeFlag:ie,transition:fe,dirs:me}=b;if(te=b.el=i(b.type,M,pe&&pe.is,pe),ie&8?u(te,b.children):ie&16&&G(b.children,te,null,E,T,hi(b,M),ne,re),me&&Vn(b,null,E,"created"),L(te,b,b.scopeId,ne,E),pe){for(const Me in pe)Me!=="value"&&!rs(Me)&&o(te,Me,null,pe[Me],M,E);"value"in pe&&o(te,"value",null,pe.value,M),(J=pe.onVnodeBeforeMount)&&Zt(J,E,b)}me&&Vn(b,null,E,"beforeMount");const Ie=Hg(T,fe);Ie&&fe.beforeEnter(te),r(te,S,y),((J=pe&&pe.onVnodeMounted)||Ie||me)&&wt(()=>{try{J&&Zt(J,E,b),Ie&&fe.enter(te),me&&Vn(b,null,E,"mounted")}finally{}},T)},L=(b,S,y,E,T)=>{if(y&&p(b,y),E)for(let M=0;M<E.length;M++)p(b,E[M]);if(T){let M=T.subTree;if(S===M||Yf(M.type)&&(M.ssContent===S||M.ssFallback===S)){const ne=T.vnode;L(b,ne,ne.scopeId,ne.slotScopeIds,T.parent)}}},G=(b,S,y,E,T,M,ne,re,te=0)=>{for(let J=te;J<b.length;J++){const pe=b[J]=re?hn(b[J]):on(b[J]);m(null,pe,S,y,E,T,M,ne,re)}},P=(b,S,y,E,T,M,ne)=>{const re=S.el=b.el;let{patchFlag:te,dynamicChildren:J,dirs:pe}=S;te|=b.patchFlag&16;const ie=b.props||je,fe=S.props||je;let me;if(y&&Un(y,!1),(me=fe.onVnodeBeforeUpdate)&&Zt(me,y,S,b),pe&&Vn(S,b,y,"beforeUpdate"),y&&Un(y,!0),(ie.innerHTML&&fe.innerHTML==null||ie.textContent&&fe.textContent==null)&&u(re,""),J?O(b.dynamicChildren,J,re,y,E,hi(S,T),M):ne||Se(b,S,re,null,y,E,hi(S,T),M,!1),te>0){if(te&16)q(re,ie,fe,y,T);else if(te&2&&ie.class!==fe.class&&o(re,"class",null,fe.class,T),te&4&&o(re,"style",ie.style,fe.style,T),te&8){const Ie=S.dynamicProps;for(let Me=0;Me<Ie.length;Me++){const De=Ie[Me],Je=ie[De],dt=fe[De];(dt!==Je||De==="value")&&o(re,De,Je,dt,T,y)}}te&1&&b.children!==S.children&&u(re,S.children)}else!ne&&J==null&&q(re,ie,fe,y,T);((me=fe.onVnodeUpdated)||pe)&&wt(()=>{me&&Zt(me,y,S,b),pe&&Vn(S,b,y,"updated")},E)},O=(b,S,y,E,T,M,ne)=>{for(let re=0;re<S.length;re++){const te=b[re],J=S[re],pe=te.el&&(te.type===se||!Xn(te,J)||te.shapeFlag&198)?f(te.el):y;m(te,J,pe,null,E,T,M,ne,!0)}},q=(b,S,y,E,T)=>{if(S!==y){if(S!==je)for(const M in S)!rs(M)&&!(M in y)&&o(b,M,S[M],null,T,E);for(const M in y){if(rs(M))continue;const ne=y[M],re=S[M];ne!==re&&M!=="value"&&o(b,M,re,ne,T,E)}"value"in y&&o(b,"value",S.value,y.value,T)}},I=(b,S,y,E,T,M,ne,re,te)=>{const J=S.el=b?b.el:l(""),pe=S.anchor=b?b.anchor:l("");let{patchFlag:ie,dynamicChildren:fe,slotScopeIds:me}=S;me&&(re=re?re.concat(me):me),b==null?(r(J,y,E),r(pe,y,E),G(S.children||[],y,pe,T,M,ne,re,te)):ie>0&&ie&64&&fe&&b.dynamicChildren&&b.dynamicChildren.length===fe.length?(O(b.dynamicChildren,fe,y,T,M,ne,re),(S.key!=null||T&&S===T.subTree)&&Hl(b,S,!0)):Se(b,S,y,pe,T,M,ne,re,te)},le=(b,S,y,E,T,M,ne,re,te)=>{S.slotScopeIds=re,b==null?S.shapeFlag&512?T.ctx.activate(S,y,E,ne,te):de(S,y,E,T,M,ne,te):$e(b,S,te)},de=(b,S,y,E,T,M,ne)=>{const re=b.component=Qg(b,E,T);if(Bo(b)&&(re.ctx.renderer=oe),Zg(re,!1,ne),re.asyncDep){if(T&&T.registerDep(re,Ee,ne),!b.el){const te=re.subTree=R(pt);v(null,te,S,y),b.placeholder=te.el}}else Ee(re,b,S,y,T,M,ne)},$e=(b,S,y)=>{const E=S.component=b.component;if(Lg(b,S,y))if(E.asyncDep&&!E.asyncResolved){Ce(E,S,y);return}else E.next=S,E.update();else S.el=b.el,E.vnode=S},Ee=(b,S,y,E,T,M,ne)=>{const re=()=>{if(b.isMounted){let{next:ie,bu:fe,u:me,parent:Ie,vnode:Me}=b;{const Jt=Kf(b);if(Jt){ie&&(ie.el=Me.el,Ce(b,ie,ne)),Jt.asyncDep.then(()=>{wt(()=>{b.isUnmounted||J()},T)});return}}let De=ie,Je;Un(b,!1),ie?(ie.el=Me.el,Ce(b,ie,ne)):ie=Me,fe&&ii(fe),(Je=ie.props&&ie.props.onVnodeBeforeUpdate)&&Zt(Je,Ie,ie,Me),Un(b,!0);const dt=Ga(b),Yt=b.subTree;b.subTree=dt,m(Yt,dt,f(Yt.el),D(Yt),b,T,M),ie.el=dt.el,De===null&&Mg(b,dt.el),me&&wt(me,T),(Je=ie.props&&ie.props.onVnodeUpdated)&&wt(()=>Zt(Je,Ie,ie,Me),T)}else{let ie;const{el:fe,props:me}=S,{bm:Ie,m:Me,parent:De,root:Je,type:dt}=b,Yt=Cr(S);Un(b,!1),Ie&&ii(Ie),!Yt&&(ie=me&&me.onVnodeBeforeMount)&&Zt(ie,De,S),Un(b,!0);{Je.ce&&Je.ce._hasShadowRoot()&&Je.ce._injectChildStyle(dt,b.parent?b.parent.type:void 0);const Jt=b.subTree=Ga(b);m(null,Jt,y,E,b,T,M),S.el=Jt.el}if(Me&&wt(Me,T),!Yt&&(ie=me&&me.onVnodeMounted)){const Jt=S;wt(()=>Zt(ie,De,Jt),T)}(S.shapeFlag&256||De&&Cr(De.vnode)&&De.vnode.shapeFlag&256)&&b.a&&wt(b.a,T),b.isMounted=!0,S=y=E=null}};b.scope.on();const te=b.effect=new Xu(re);b.scope.off();const J=b.update=te.run.bind(te),pe=b.job=te.runIfDirty.bind(te);pe.i=b,pe.id=b.uid,te.scheduler=()=>Fl(pe),Un(b,!0),J()},Ce=(b,S,y)=>{S.component=b;const E=b.vnode.props;b.vnode=S,b.next=null,Bg(b,S.props,E,y),Vg(b,S.children,y),_n(),Ra(b),bn()},Se=(b,S,y,E,T,M,ne,re,te=!1)=>{const J=b&&b.children,pe=b?b.shapeFlag:0,ie=S.children,{patchFlag:fe,shapeFlag:me}=S;if(fe>0){if(fe&128){ft(J,ie,y,E,T,M,ne,re,te);return}else if(fe&256){ut(J,ie,y,E,T,M,ne,re,te);return}}me&8?(pe&16&&ge(J,T,M),ie!==J&&u(y,ie)):pe&16?me&16?ft(J,ie,y,E,T,M,ne,re,te):ge(J,T,M,!0):(pe&8&&u(y,""),me&16&&G(ie,y,E,T,M,ne,re,te))},ut=(b,S,y,E,T,M,ne,re,te)=>{b=b||vr,S=S||vr;const J=b.length,pe=S.length,ie=Math.min(J,pe);let fe;for(fe=0;fe<ie;fe++){const me=S[fe]=te?hn(S[fe]):on(S[fe]);m(b[fe],me,y,null,T,M,ne,re,te)}J>pe?ge(b,T,M,!0,!1,ie):G(S,y,E,T,M,ne,re,te,ie)},ft=(b,S,y,E,T,M,ne,re,te)=>{let J=0;const pe=S.length;let ie=b.length-1,fe=pe-1;for(;J<=ie&&J<=fe;){const me=b[J],Ie=S[J]=te?hn(S[J]):on(S[J]);if(Xn(me,Ie))m(me,Ie,y,null,T,M,ne,re,te);else break;J++}for(;J<=ie&&J<=fe;){const me=b[ie],Ie=S[fe]=te?hn(S[fe]):on(S[fe]);if(Xn(me,Ie))m(me,Ie,y,null,T,M,ne,re,te);else break;ie--,fe--}if(J>ie){if(J<=fe){const me=fe+1,Ie=me<pe?S[me].el:E;for(;J<=fe;)m(null,S[J]=te?hn(S[J]):on(S[J]),y,Ie,T,M,ne,re,te),J++}}else if(J>fe)for(;J<=ie;)qe(b[J],T,M,!0),J++;else{const me=J,Ie=J,Me=new Map;for(J=Ie;J<=fe;J++){const $t=S[J]=te?hn(S[J]):on(S[J]);$t.key!=null&&Me.set($t.key,J)}let De,Je=0;const dt=fe-Ie+1;let Yt=!1,Jt=0;const Vr=new Array(dt);for(J=0;J<dt;J++)Vr[J]=0;for(J=me;J<=ie;J++){const $t=b[J];if(Je>=dt){qe($t,T,M,!0);continue}let Qt;if($t.key!=null)Qt=Me.get($t.key);else for(De=Ie;De<=fe;De++)if(Vr[De-Ie]===0&&Xn($t,S[De])){Qt=De;break}Qt===void 0?qe($t,T,M,!0):(Vr[Qt-Ie]=J+1,Qt>=Jt?Jt=Qt:Yt=!0,m($t,S[Qt],y,null,T,M,ne,re,te),Je++)}const wa=Yt?zg(Vr):vr;for(De=wa.length-1,J=dt-1;J>=0;J--){const $t=Ie+J,Qt=S[$t],Ca=S[$t+1],Sa=$t+1<pe?Ca.el||Xf(Ca):E;Vr[J]===0?m(null,Qt,y,Sa,T,M,ne,re,te):Yt&&(De<0||J!==wa[De]?ht(Qt,y,Sa,2):De--)}}},ht=(b,S,y,E,T=null)=>{const{el:M,type:ne,transition:re,children:te,shapeFlag:J}=b;if(J&6){ht(b.component.subTree,S,y,E);return}if(J&128){b.suspense.move(S,y,E);return}if(J&64){ne.move(b,S,y,oe);return}if(ne===se){r(M,S,y);for(let ie=0;ie<te.length;ie++)ht(te[ie],S,y,E);r(b.anchor,S,y);return}if(ne===gi){C(b,S,y);return}if(E!==2&&J&1&&re)if(E===0)re.beforeEnter(M),r(M,S,y),wt(()=>re.enter(M),T);else{const{leave:ie,delayLeave:fe,afterLeave:me}=re,Ie=()=>{b.ctx.isUnmounted?s(M):r(M,S,y)},Me=()=>{M._isLeaving&&M[rn](!0),ie(M,()=>{Ie(),me&&me()})};fe?fe(M,Ie,Me):Me()}else r(M,S,y)},qe=(b,S,y,E=!1,T=!1)=>{const{type:M,props:ne,ref:re,children:te,dynamicChildren:J,shapeFlag:pe,patchFlag:ie,dirs:fe,cacheIndex:me,memo:Ie}=b;if(ie===-2&&(T=!1),re!=null&&(_n(),is(re,null,y,b,!0),bn()),me!=null&&(S.renderCache[me]=void 0),pe&256){S.ctx.deactivate(b);return}const Me=pe&1&&fe,De=!Cr(b);let Je;if(De&&(Je=ne&&ne.onVnodeBeforeUnmount)&&Zt(Je,S,b),pe&6)ee(b.component,y,E);else{if(pe&128){b.suspense.unmount(y,E);return}Me&&Vn(b,null,S,"beforeUnmount"),pe&64?b.type.remove(b,S,y,oe,E):J&&!J.hasOnce&&(M!==se||ie>0&&ie&64)?ge(J,S,y,!1,!0):(M===se&&ie&384||!T&&pe&16)&&ge(te,S,y),E&&U(b)}const dt=Ie!=null&&me==null;(De&&(Je=ne&&ne.onVnodeUnmounted)||Me||dt)&&wt(()=>{Je&&Zt(Je,S,b),Me&&Vn(b,null,S,"unmounted"),dt&&(b.el=null)},y)},U=b=>{const{type:S,el:y,anchor:E,transition:T}=b;if(S===se){Z(y,E);return}if(S===gi){$(b);return}const M=()=>{s(y),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(b.shapeFlag&1&&T&&!T.persisted){const{leave:ne,delayLeave:re}=T,te=()=>ne(y,M);re?re(b.el,M,te):te()}else M()},Z=(b,S)=>{let y;for(;b!==S;)y=d(b),s(b),b=y;s(S)},ee=(b,S,y)=>{const{bum:E,scope:T,job:M,subTree:ne,um:re,m:te,a:J}=b;qa(te),qa(J),E&&ii(E),T.stop(),M&&(M.flags|=8,qe(ne,b,S,y)),re&&wt(re,S),wt(()=>{b.isUnmounted=!0},S)},ge=(b,S,y,E=!1,T=!1,M=0)=>{for(let ne=M;ne<b.length;ne++)qe(b[ne],S,y,E,T)},D=b=>{if(b.shapeFlag&6)return D(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const S=d(b.anchor||b.el),y=S&&S[bf];return y?d(y):S};let F=!1;const X=(b,S,y)=>{let E;b==null?S._vnode&&(qe(S._vnode,null,null,!0),E=S._vnode.component):m(S._vnode||null,b,S,null,null,null,y),S._vnode=b,F||(F=!0,Ra(E),mf(),F=!1)},oe={p:m,um:qe,m:ht,r:U,mt:de,mc:G,pc:Se,pbc:O,n:D,o:e};return{render:X,hydrate:void 0,createApp:Ig(X)}}function hi({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Un({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hg(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hl(e,t,n=!1){const r=e.children,s=t.children;if(he(r)&&he(s))for(let o=0;o<r.length;o++){const i=r[o];let l=s[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[o]=hn(s[o]),l.el=i.el),!n&&l.patchFlag!==-2&&Hl(i,l)),l.type===Go&&(l.patchFlag===-1&&(l=s[o]=hn(l)),l.el=i.el),l.type===pt&&!l.el&&(l.el=i.el)}}function zg(e){const t=e.slice(),n=[0];let r,s,o,i,l;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<c?o=l+1:i=l;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Kf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Kf(t)}function qa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Xf(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Xf(t.subTree):null}const Yf=e=>e.__isSuspense;function Wg(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):ng(e)}const se=Symbol.for("v-fgt"),Go=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),gi=Symbol.for("v-stc"),as=[];let Rt=null;function g(e=!1){as.push(Rt=e?null:[])}function Kg(){as.pop(),Rt=as[as.length-1]||null}let vs=1;function uo(e,t=!1){vs+=e,e<0&&Rt&&t&&(Rt.hasOnce=!0)}function Jf(e){return e.dynamicChildren=vs>0?Rt||vr:null,Kg(),vs>0&&Rt&&Rt.push(e),e}function k(e,t,n,r,s,o){return Jf(x(e,t,n,r,s,o,!0))}function H(e,t,n,r,s){return Jf(R(e,t,n,r,s,!0))}function ys(e){return e?e.__v_isVNode===!0:!1}function Xn(e,t){return e.type===t.type&&e.key===t.key}const Qf=({key:e})=>e??null,Js=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ge(e)||at(e)||ye(e)?{i:kt,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,r=0,s=null,o=e===se?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qf(t),ref:t&&Js(t),scopeId:yf,slotScopeIds:null,children:n,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:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:kt};return l?(zl(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=Ge(n)?8:16),vs>0&&!i&&Rt&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Rt.push(a),a}const R=Xg;function Xg(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Nf)&&(e=pt),ys(e)){const l=Sn(e,t,!0);return n&&zl(l,n),vs>0&&!o&&Rt&&(l.shapeFlag&6?Rt[Rt.indexOf(e)]=l:Rt.push(l)),l.patchFlag=-2,l}if(rm(e)&&(e=e.__vccOpts),t){t=Zf(t);let{class:l,style:a}=t;l&&!Ge(l)&&(t.class=_e(l)),Oe(a)&&(Mo(a)&&!he(a)&&(a=Ze({},a)),t.style=Et(a))}const i=Ge(e)?1:Yf(e)?128:wf(e)?64:Oe(e)?4:ye(e)?2:0;return x(e,t,n,r,s,i,o,!0)}function Zf(e){return e?Mo(e)||Vf(e)?Ze({},e):e:null}function Sn(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:l,transition:a}=e,c=t?Xe(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Qf(c),ref:t&&t.ref?n&&o?he(o)?o.concat(Js(t)):[o,Js(t)]:Js(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==se?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Sn(e.ssContent),ssFallback:e.ssFallback&&Sn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&sr(u,a.clone(u)),u}function ae(e=" ",t=0){return R(Go,null,e,t)}function W(e="",t=!1){return t?(g(),H(pt,null,e)):R(pt,null,e)}function on(e){return e==null||typeof e=="boolean"?R(pt):he(e)?R(se,null,e.slice()):ys(e)?hn(e):R(Go,null,String(e))}function hn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Sn(e)}function zl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(he(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),zl(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Vf(t)?t._ctx=kt:s===3&&kt&&(kt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:kt},n=32):(t=String(t),r&64?(n=16,t=[ae(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xe(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=_e([t.class,r.class]));else if(s==="style")t.style=Et([t.style,r.style]);else if(Io(s)){const o=t[s],i=r[s];i&&o!==i&&!(he(o)&&o.includes(i))?t[s]=o?[].concat(o,i):i:i==null&&o==null&&!Ro(s)&&(t[s]=i)}else s!==""&&(t[s]=r[s])}return t}function Zt(e,t,n,r=null){Kt(e,t,7,[n,r])}const Yg=Df();let Jg=0;function Qg(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Yg,o={uid:Jg++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new kh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:qf(r,s),emitsOptions:Bf(r,s),emit:null,emitted:null,propsDefaults:je,inheritAttrs:r.inheritAttrs,ctx:je,data:je,props:je,attrs:je,slots:je,refs:je,setupState:je,setupContext:null,suspense:n,suspenseId:n?n.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=Tg.bind(null,o),e.ce&&e.ce(o),o}let vt=null;const xn=()=>vt||kt;let fo,Yi;{const e=Oo(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};fo=t("__VUE_INSTANCE_SETTERS__",n=>vt=n),Yi=t("__VUE_SSR_SETTERS__",n=>_s=n)}const Ns=e=>{const t=vt;return fo(e),e.scope.on(),()=>{e.scope.off(),fo(t)}},Ha=()=>{vt&&vt.scope.off(),fo(null)};function ed(e){return e.vnode.shapeFlag&4}let _s=!1;function Zg(e,t=!1,n=!1){t&&Yi(t);const{props:r,children:s}=e.vnode,o=ed(e);Dg(e,r,o,t),Gg(e,s,n||t);const i=o?em(e,t):void 0;return t&&Yi(!1),i}function em(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bg);const{setup:r}=n;if(r){_n();const s=e.setupContext=r.length>1?nd(e):null,o=Ns(e),i=Is(r,e,0,[e.props,s]),l=Gu(i);if(bn(),o(),(l||e.sp)&&!Cr(e)&&$f(e),l){if(i.then(Ha,Ha),t)return i.then(a=>{za(e,a)}).catch(a=>{Do(a,e,0)});e.asyncDep=i}else za(e,i)}else td(e)}function za(e,t,n){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Oe(t)&&(e.setupState=pf(t)),td(e)}function td(e,t,n){const r=e.type;e.render||(e.render=r.render||an);{const s=Ns(e);_n();try{Sg(e)}finally{bn(),s()}}}const tm={get(e,t){return mt(e,"get",""),e[t]}};function nd(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,tm),slots:e.slots,emit:e.emit,expose:t}}function Wl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(pf(ff(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ls)return ls[n](e)},has(t,n){return n in t||n in ls}})):e.proxy}function nm(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function rm(e){return ye(e)&&"__vccOpts"in e}const Y=(e,t)=>Jh(e,t,_s);function Ht(e,t,n){try{uo(-1);const r=arguments.length;return r===2?Oe(t)&&!he(t)?ys(t)?R(e,null,[t]):R(e,t):R(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ys(n)&&(n=[n]),R(e,t,n))}finally{uo(1)}}const sm="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 Ji;const Wa=typeof window<"u"&&window.trustedTypes;if(Wa)try{Ji=Wa.createPolicy("vue",{createHTML:e=>e})}catch{}const rd=Ji?e=>Ji.createHTML(e):e=>e,om="http://www.w3.org/2000/svg",im="http://www.w3.org/1998/Math/MathML",pn=typeof document<"u"?document:null,Ka=pn&&pn.createElement("template"),lm={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?pn.createElementNS(om,e):t==="mathml"?pn.createElementNS(im,e):n?pn.createElement(e,{is:n}):pn.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>pn.createTextNode(e),createComment:e=>pn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Ka.innerHTML=rd(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=Ka.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},An="transition",Hr="animation",Ar=Symbol("_vtc"),sd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},od=Ze({},kf,sd),am=e=>(e.displayName="Transition",e.props=od,e),cm=am((e,{slots:t})=>Ht(ug,id(e),t)),qn=(e,t=[])=>{he(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xa=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function id(e){const t={};for(const I in e)I in sd||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=um(s),m=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:w,onEnterCancelled:C,onLeave:$,onLeaveCancelled:V,onBeforeAppear:z=v,onAppear:L=w,onAppearCancelled:G=C}=t,P=(I,le,de,$e)=>{I._enterCancelled=$e,Rn(I,le?u:l),Rn(I,le?c:i),de&&de()},O=(I,le)=>{I._isLeaving=!1,Rn(I,f),Rn(I,p),Rn(I,d),le&&le()},q=I=>(le,de)=>{const $e=I?L:w,Ee=()=>P(le,I,de);qn($e,[le,Ee]),Ya(()=>{Rn(le,I?a:o),en(le,I?u:l),Xa($e)||Ja(le,r,m,Ee)})};return Ze(t,{onBeforeEnter(I){qn(v,[I]),en(I,o),en(I,i)},onBeforeAppear(I){qn(z,[I]),en(I,a),en(I,c)},onEnter:q(!1),onAppear:q(!0),onLeave(I,le){I._isLeaving=!0;const de=()=>O(I,le);en(I,f),I._enterCancelled?(en(I,d),Qi(I)):(Qi(I),en(I,d)),Ya(()=>{I._isLeaving&&(Rn(I,f),en(I,p),Xa($)||Ja(I,r,_,de))}),qn($,[I,de])},onEnterCancelled(I){P(I,!1,void 0,!0),qn(C,[I])},onAppearCancelled(I){P(I,!0,void 0,!0),qn(G,[I])},onLeaveCancelled(I){O(I),qn(V,[I])}})}function um(e){if(e==null)return null;if(Oe(e))return[mi(e.enter),mi(e.leave)];{const t=mi(e);return[t,t]}}function mi(e){return gh(e)}function en(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ar]||(e[Ar]=new Set)).add(t)}function Rn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ar];n&&(n.delete(t),n.size||(e[Ar]=void 0))}function Ya(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let fm=0;function Ja(e,t,n,r){const s=e._endId=++fm,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:l,propCount:a}=ld(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),o()},d=p=>{p.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,d)}function ld(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),s=r(`${An}Delay`),o=r(`${An}Duration`),i=Qa(s,o),l=r(`${Hr}Delay`),a=r(`${Hr}Duration`),c=Qa(l,a);let u=null,f=0,d=0;t===An?i>0&&(u=An,f=i,d=o.length):t===Hr?c>0&&(u=Hr,f=c,d=a.length):(f=Math.max(i,c),u=f>0?i>c?An:Hr:null,d=u?u===An?o.length:a.length:0);const p=u===An&&/\b(?:transform|all)(?:,|$)/.test(r(`${An}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function Qa(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Za(n)+Za(e[r])))}function Za(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Qi(e){return(e?e.ownerDocument:document).body.offsetHeight}function dm(e,t,n){const r=e[Ar];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ec=Symbol("_vod"),pm=Symbol("_vsh"),hm=Symbol(""),gm=/(?:^|;)\s*display\s*:/;function mm(e,t,n){const r=e.style,s=Ge(n);let o=!1;if(n&&!s){if(t)if(Ge(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Zr(r,l,"")}else for(const i in t)n[i]==null&&Zr(r,i,"");for(const i in n){i==="display"&&(o=!0);const l=n[i];l!=null?ym(e,i,!Ge(t)&&t?t[i]:void 0,l)||Zr(r,i,l):Zr(r,i,"")}}else if(s){if(t!==n){const i=r[hm];i&&(n+=";"+i),r.cssText=n,o=gm.test(n)}}else t&&e.removeAttribute("style");ec in e&&(e[ec]=o?r.display:"",e[pm]&&(r.display="none"))}const tc=/\s*!important$/;function Zr(e,t,n){if(he(n))n.forEach(r=>Zr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=vm(e,t);tc.test(n)?e.setProperty(ir(r),n.replace(tc,""),"important"):e[r]=n}}const nc=["Webkit","Moz","ms"],vi={};function vm(e,t){const n=vi[t];if(n)return n;let r=xt(t);if(r!=="filter"&&r in e)return vi[t]=r;r=Po(r);for(let s=0;s<nc.length;s++){const o=nc[s]+r;if(o in e)return vi[t]=o}return t}function ym(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Ge(r)&&n===r}const rc="http://www.w3.org/1999/xlink";function sc(e,t,n,r,s,o=Ch(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(rc,t.slice(6,t.length)):e.setAttributeNS(rc,t,n):n==null||o&&!Hu(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Pt(n)?String(n):n)}function oc(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?rd(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Hu(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function _m(e,t,n,r){e.addEventListener(t,n,r)}function bm(e,t,n,r){e.removeEventListener(t,n,r)}const ic=Symbol("_vei");function wm(e,t,n,r,s=null){const o=e[ic]||(e[ic]={}),i=o[t];if(r&&i)i.value=r;else{const[l,a]=Cm(t);if(r){const c=o[t]=xm(r,s);_m(e,l,c,a)}else i&&(bm(e,l,i,a),o[t]=void 0)}}const lc=/(?:Once|Passive|Capture)$/;function Cm(e){let t;if(lc.test(e)){t={};let r;for(;r=e.match(lc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ir(e.slice(2)),t]}let yi=0;const Sm=Promise.resolve(),km=()=>yi||(Sm.then(()=>yi=0),yi=Date.now());function xm(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Kt(Em(r,n.value),t,5,[r])};return n.value=e,n.attached=km(),n}function Em(e,t){if(he(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const ac=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Am=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?dm(e,r,i):t==="style"?mm(e,n,r):Io(t)?Ro(t)||wm(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$m(e,t,r,i))?(oc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&sc(e,t,r,i,o,t!=="value")):e._isVueCE&&(Im(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ge(r)))?oc(e,xt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),sc(e,t,r,i))};function $m(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ac(t)&&ye(n));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 s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ac(t)&&Ge(n)?!1:t in e}function Im(e,t){const n=e._def.props;if(!n)return!1;const r=xt(t);return Array.isArray(n)?n.some(s=>xt(s)===r):Object.keys(n).some(s=>xt(s)===r)}const ad=new WeakMap,cd=new WeakMap,po=Symbol("_moveCb"),cc=Symbol("_enterCb"),Rm=e=>(delete e.props.mode,e),Tm=Rm({name:"TransitionGroup",props:Ze({},od,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=xn(),r=Sf();let s,o;return Vl(()=>{if(!s.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Mm(s[0].el,n.vnode.el,i)){s=[];return}s.forEach(Pm),s.forEach(Om);const l=s.filter(Lm);Qi(n.vnode.el),l.forEach(a=>{const c=a.el,u=c.style;en(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[po]=d=>{d&&d.target!==c||(!d||d.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[po]=null,Rn(c,i))};c.addEventListener("transitionend",f)}),s=[]}),()=>{const i=Ae(e),l=id(i);let a=i.tag||se;if(s=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(s.push(u),sr(u,ms(u,l,r,n)),ad.set(u,ud(u.el)))}o=t.default?Gl(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&sr(u,ms(u,l,r,n))}return R(a,null,o)}}}),Nm=Tm;function Pm(e){const t=e.el;t[po]&&t[po](),t[cc]&&t[cc]()}function Om(e){cd.set(e,ud(e.el))}function Lm(e){const t=ad.get(e),n=cd.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el,i=o.style,l=o.getBoundingClientRect();let a=1,c=1;return o.offsetWidth&&(a=l.width/o.offsetWidth),o.offsetHeight&&(c=l.height/o.offsetHeight),(!Number.isFinite(a)||a===0)&&(a=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(a-1)<.01&&(a=1),Math.abs(c-1)<.01&&(c=1),i.transform=i.webkitTransform=`translate(${r/a}px,${s/c}px)`,i.transitionDuration="0s",e}}function ud(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Mm(e,t,n){const r=e.cloneNode(),s=e[Ar];s&&s.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=ld(r);return o.removeChild(r),i}const Dm=["ctrl","shift","alt","meta"],Bm={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)=>Dm.some(n=>e[`${n}Key`]&&!t.includes(n))},Wn=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i<t.length;i++){const l=Bm[t[i]];if(l&&l(s,t))return}return e(s,...o)})},Fm=Ze({patchProp:Am},lm);let uc;function jm(){return uc||(uc=Ug(Fm))}const Gm=(...e)=>{const t=jm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Um(r);if(!s)return;const o=t._component;!ye(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Vm(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};function Vm(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Um(e){return Ge(e)?document.querySelector(e):e}/*!
|
|
18
|
+
* vue-router v4.6.4
|
|
19
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/const pr=typeof document<"u";function fd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function qm(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&fd(e.default)}const Ne=Object.assign;function _i(e,t){const n={};for(const r in t){const s=t[r];n[r]=Xt(s)?s.map(e):e(s)}return n}const cs=()=>{},Xt=Array.isArray;function fc(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const dd=/#/g,Hm=/&/g,zm=/\//g,Wm=/=/g,Km=/\?/g,pd=/\+/g,Xm=/%5B/g,Ym=/%5D/g,hd=/%5E/g,Jm=/%60/g,gd=/%7B/g,Qm=/%7C/g,md=/%7D/g,Zm=/%20/g;function Kl(e){return e==null?"":encodeURI(""+e).replace(Qm,"|").replace(Xm,"[").replace(Ym,"]")}function ev(e){return Kl(e).replace(gd,"{").replace(md,"}").replace(hd,"^")}function Zi(e){return Kl(e).replace(pd,"%2B").replace(Zm,"+").replace(dd,"%23").replace(Hm,"%26").replace(Jm,"`").replace(gd,"{").replace(md,"}").replace(hd,"^")}function tv(e){return Zi(e).replace(Wm,"%3D")}function nv(e){return Kl(e).replace(dd,"%23").replace(Km,"%3F")}function rv(e){return nv(e).replace(zm,"%2F")}function bs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const sv=/\/$/,ov=e=>e.replace(sv,"");function bi(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(r=t.slice(0,a),o=t.slice(a,l>0?l:t.length),s=e(o.slice(1))),l>=0&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=cv(r??t,n),{fullPath:r+o+i,path:r,query:s,hash:bs(i)}}function iv(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function dc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function lv(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&$r(t.matched[r],n.matched[s])&&vd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function $r(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function vd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!av(e[n],t[n]))return!1;return!0}function av(e,t){return Xt(e)?pc(e,t):Xt(t)?pc(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function pc(e,t){return Xt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function cv(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i<r.length;i++)if(l=r[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const $n={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let el=function(e){return e.pop="pop",e.push="push",e}({}),wi=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function uv(e){if(!e)if(pr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ov(e)}const fv=/^[^#]+#/;function dv(e,t){return e.replace(fv,"#")+t}function pv(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Vo=()=>({left:window.scrollX,top:window.scrollY});function hv(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=pv(s,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 hc(e,t){return(history.state?history.state.position-t:-1)+e}const tl=new Map;function gv(e,t){tl.set(e,t)}function mv(e){const t=tl.get(e);return tl.delete(e),t}function vv(e){return typeof e=="string"||e&&typeof e=="object"}function yd(e){return typeof e=="string"||typeof e=="symbol"}let He=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 _d=Symbol("");He.MATCHER_NOT_FOUND+"",He.NAVIGATION_GUARD_REDIRECT+"",He.NAVIGATION_ABORTED+"",He.NAVIGATION_CANCELLED+"",He.NAVIGATION_DUPLICATED+"";function Ir(e,t){return Ne(new Error,{type:e,[_d]:!0},t)}function un(e,t){return e instanceof Error&&_d in e&&(t==null||!!(e.type&t))}const yv=["params","query","hash"];function _v(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of yv)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function bv(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(pd," "),o=s.indexOf("="),i=bs(o<0?s:s.slice(0,o)),l=o<0?null:bs(s.slice(o+1));if(i in t){let a=t[i];Xt(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function gc(e){let t="";for(let n in e){const r=e[n];if(n=tv(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Xt(r)?r.map(s=>s&&Zi(s)):[r&&Zi(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function wv(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Xt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Cv=Symbol(""),mc=Symbol(""),Uo=Symbol(""),Xl=Symbol(""),nl=Symbol("");function zr(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function On(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,a)=>{const c=d=>{d===!1?a(Ir(He.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?a(d):vv(d)?a(Ir(He.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(i&&r.enterCallbacks[s]===i&&typeof d=="function"&&i.push(d),l())},u=o(()=>e.call(r&&r.instances[s],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>a(d))})}function Ci(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(fd(a)){const c=(a.__vccOpts||a)[t];c&&o.push(On(c,n,r,i,l,s))}else{let c=a();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const f=qm(u)?u.default:u;i.mods[l]=u,i.components[l]=f;const d=(f.__vccOpts||f)[t];return d&&On(d,n,r,i,l,s)()}))}}return o}function Sv(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(c=>$r(c,l))?r.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>$r(c,a))||s.push(a))}return[n,r,s]}/*!
|
|
22
|
+
* vue-router v4.6.4
|
|
23
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
24
|
+
* @license MIT
|
|
25
|
+
*/let kv=()=>location.protocol+"//"+location.host;function bd(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let i=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(i);return l[0]!=="/"&&(l="/"+l),dc(l,"")}return dc(n,e)+r+s}function xv(e,t,n,r){let s=[],o=[],i=null;const l=({state:d})=>{const p=bd(e,location),h=n.value,m=t.value;let _=0;if(d){if(n.value=p,t.value=d,i&&i===h){i=null;return}_=m?d.position-m.position:0}else r(p);s.forEach(v=>{v(n.value,h,{delta:_,type:el.pop,direction:_?_>0?wi.forward:wi.back:wi.unknown})})};function a(){i=n.value}function c(d){s.push(d);const p=()=>{const h=s.indexOf(d);h>-1&&s.splice(h,1)};return o.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(Ne({},d.state,{scroll:Vo()}),"")}}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:c,destroy:f}}function vc(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Vo():null}}function Ev(e){const{history:t,location:n}=window,r={value:bd(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:kv()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),s.value=c}catch(p){console.error(p),n[u?"replace":"assign"](d)}}function i(a,c){o(a,Ne({},t.state,vc(s.value.back,a,s.value.forward,!0),c,{position:s.value.position}),!0),r.value=a}function l(a,c){const u=Ne({},s.value,t.state,{forward:a,scroll:Vo()});o(u.current,u,!0),o(a,Ne({},vc(r.value,a,null),{position:u.position+1},c),!1),r.value=a}return{location:r,state:s,push:l,replace:i}}function Av(e){e=uv(e);const t=Ev(e),n=xv(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=Ne({location:"",base:e,go:r,createHref:dv.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let Jn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var tt=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}(tt||{});const $v={type:Jn.Static,value:""},Iv=/[a-zA-Z0-9_]/;function Rv(e){if(!e)return[[]];if(e==="/")return[[$v]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=tt.Static,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,a,c="",u="";function f(){c&&(n===tt.Static?o.push({type:Jn.Static,value:c}):n===tt.Param||n===tt.ParamRegExp||n===tt.ParamRegExpEnd?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Jn.Param,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==tt.ParamRegExp){r=n,n=tt.EscapeNext;continue}switch(n){case tt.Static:a==="/"?(c&&f(),i()):a===":"?(f(),n=tt.Param):d();break;case tt.EscapeNext:d(),n=r;break;case tt.Param:a==="("?n=tt.ParamRegExp:Iv.test(a)?d():(f(),n=tt.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case tt.ParamRegExp:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:n=tt.ParamRegExpEnd:u+=a;break;case tt.ParamRegExpEnd:f(),n=tt.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===tt.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),i(),s}const yc="[^/]+?",Tv={sensitive:!1,strict:!1,start:!0,end:!0};var Ct=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}(Ct||{});const Nv=/[.+*?^${}()[\]/\\]/g;function Pv(e,t){const n=Ne({},Tv,t),r=[];let s=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[Ct.Root];n.strict&&!c.length&&(s+="/");for(let f=0;f<c.length;f++){const d=c[f];let p=Ct.Segment+(n.sensitive?Ct.BonusCaseSensitive:0);if(d.type===Jn.Static)f||(s+="/"),s+=d.value.replace(Nv,"\\$&"),p+=Ct.Static;else if(d.type===Jn.Param){const{value:h,repeatable:m,optional:_,regexp:v}=d;o.push({name:h,repeatable:m,optional:_});const w=v||yc;if(w!==yc){p+=Ct.BonusCustomRegExp;try{`${w}`}catch($){throw new Error(`Invalid custom RegExp for param "${h}" (${w}): `+$.message)}}let C=m?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;f||(C=_&&c.length<2?`(?:/${C})`:"/"+C),_&&(C+="?"),s+=C,p+=Ct.Dynamic,_&&(p+=Ct.BonusOptional),m&&(p+=Ct.BonusRepeatable),w===".*"&&(p+=Ct.BonusWildcard)}u.push(p)}r.push(u)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=Ct.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function l(c){const u=c.match(i),f={};if(!u)return null;for(let d=1;d<u.length;d++){const p=u[d]||"",h=o[d-1];f[h.name]=p&&h.repeatable?p.split("/"):p}return f}function a(c){let u="",f=!1;for(const d of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const p of d)if(p.type===Jn.Static)u+=p.value;else if(p.type===Jn.Param){const{value:h,repeatable:m,optional:_}=p,v=h in c?c[h]:"";if(Xt(v)&&!m)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const w=Xt(v)?v.join("/"):v;if(!w)if(_)d.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${h}"`);u+=w}}return u||"/"}return{re:i,score:r,keys:o,parse:l,stringify:a}}function Ov(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Ct.Static+Ct.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ct.Static+Ct.Segment?1:-1:0}function wd(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=Ov(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(_c(r))return 1;if(_c(s))return-1}return s.length-r.length}function _c(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Lv={strict:!1,end:!0,sensitive:!1};function Mv(e,t,n){const r=Pv(Rv(e.path),n),s=Ne(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Dv(e,t){const n=[],r=new Map;t=fc(Lv,t);function s(f){return r.get(f)}function o(f,d,p){const h=!p,m=wc(f);m.aliasOf=p&&p.record;const _=fc(t,f),v=[m];if("alias"in f){const $=typeof f.alias=="string"?[f.alias]:f.alias;for(const V of $)v.push(wc(Ne({},m,{components:p?p.record.components:m.components,path:V,aliasOf:p?p.record:m})))}let w,C;for(const $ of v){const{path:V}=$;if(d&&V[0]!=="/"){const z=d.record.path,L=z[z.length-1]==="/"?"":"/";$.path=d.record.path+(V&&L+V)}if(w=Mv($,d,_),p?p.alias.push(w):(C=C||w,C!==w&&C.alias.push(w),h&&f.name&&!Cc(w)&&i(f.name)),Cd(w)&&a(w),m.children){const z=m.children;for(let L=0;L<z.length;L++)o(z[L],w,p&&p.children[L])}p=p||w}return C?()=>{i(C)}:cs}function i(f){if(yd(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function a(f){const d=jv(f,n);n.splice(d,0,f),f.record.name&&!Cc(f)&&r.set(f.record.name,f)}function c(f,d){let p,h={},m,_;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw Ir(He.MATCHER_NOT_FOUND,{location:f});_=p.record.name,h=Ne(bc(d.params,p.keys.filter(C=>!C.optional).concat(p.parent?p.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),f.params&&bc(f.params,p.keys.map(C=>C.name))),m=p.stringify(h)}else if(f.path!=null)m=f.path,p=n.find(C=>C.re.test(m)),p&&(h=p.parse(m),_=p.record.name);else{if(p=d.name?r.get(d.name):n.find(C=>C.re.test(d.path)),!p)throw Ir(He.MATCHER_NOT_FOUND,{location:f,currentLocation:d});_=p.record.name,h=Ne({},d.params,f.params),m=p.stringify(h)}const v=[];let w=p;for(;w;)v.unshift(w.record),w=w.parent;return{name:_,path:m,params:h,matched:v,meta:Fv(v)}}e.forEach(f=>o(f));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:s}}function bc(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function wc(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Bv(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 Bv(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Cc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Fv(e){return e.reduce((t,n)=>Ne(t,n.meta),{})}function jv(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;wd(e,t[o])<0?r=o:n=o+1}const s=Gv(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function Gv(e){let t=e;for(;t=t.parent;)if(Cd(t)&&wd(e,t)===0)return t}function Cd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Sc(e){const t=Nt(Uo),n=Nt(Xl),r=Y(()=>{const a=B(e.to);return t.resolve(a)}),s=Y(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex($r.bind(null,u));if(d>-1)return d;const p=kc(a[c-2]);return c>1&&kc(u)===p&&f[f.length-1].path!==p?f.findIndex($r.bind(null,a[c-2])):d}),o=Y(()=>s.value>-1&&zv(n.params,r.value.params)),i=Y(()=>s.value>-1&&s.value===n.matched.length-1&&vd(n.params,r.value.params));function l(a={}){if(Hv(a)){const c=t[B(e.replace)?"replace":"push"](B(e.to)).catch(cs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:Y(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}function Vv(e){return e.length===1?e[0]:e}const Uv=Le({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:Sc,setup(e,{slots:t}){const n=lr(Sc(e)),{options:r}=Nt(Uo),s=Y(()=>({[xc(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[xc(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Vv(t.default(n));return e.custom?o:Ht("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),qv=Uv;function Hv(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 zv(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Xt(s)||s.length!==r.length||r.some((o,i)=>o.valueOf()!==s[i].valueOf()))return!1}return!0}function kc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const xc=(e,t,n)=>e??t??n,Wv=Le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Nt(nl),s=Y(()=>e.route||r.value),o=Nt(mc,0),i=Y(()=>{let c=B(o);const{matched:u}=s.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=Y(()=>s.value.matched[i.value]);br(mc,Y(()=>i.value+1)),br(Cv,l),br(nl,s);const a=K();return Te(()=>[a.value,l.value,e.name],([c,u,f],[d,p,h])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!$r(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Ec(n.default,{Component:d,route:c});const p=f.props[u],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,_=Ht(d,Ne({},h,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Ec(n.default,{Component:_,route:c})||_}}});function Ec(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kv=Wv;function Xv(e){const t=Dv(e.routes,e),n=e.parseQuery||bv,r=e.stringifyQuery||gc,s=e.history,o=zr(),i=zr(),l=zr(),a=Bl($n);let c=$n;pr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=_i.bind(null,D=>""+D),f=_i.bind(null,rv),d=_i.bind(null,bs);function p(D,F){let X,oe;return yd(D)?(X=t.getRecordMatcher(D),oe=F):oe=D,t.addRoute(oe,X)}function h(D){const F=t.getRecordMatcher(D);F&&t.removeRoute(F)}function m(){return t.getRoutes().map(D=>D.record)}function _(D){return!!t.getRecordMatcher(D)}function v(D,F){if(F=Ne({},F||a.value),typeof D=="string"){const y=bi(n,D,F.path),E=t.resolve({path:y.path},F),T=s.createHref(y.fullPath);return Ne(y,E,{params:d(E.params),hash:bs(y.hash),redirectedFrom:void 0,href:T})}let X;if(D.path!=null)X=Ne({},D,{path:bi(n,D.path,F.path).path});else{const y=Ne({},D.params);for(const E in y)y[E]==null&&delete y[E];X=Ne({},D,{params:f(y)}),F.params=f(F.params)}const oe=t.resolve(X,F),ue=D.hash||"";oe.params=u(d(oe.params));const b=iv(r,Ne({},D,{hash:ev(ue),path:oe.path})),S=s.createHref(b);return Ne({fullPath:b,hash:ue,query:r===gc?wv(D.query):D.query||{}},oe,{redirectedFrom:void 0,href:S})}function w(D){return typeof D=="string"?bi(n,D,a.value.path):Ne({},D)}function C(D,F){if(c!==D)return Ir(He.NAVIGATION_CANCELLED,{from:F,to:D})}function $(D){return L(D)}function V(D){return $(Ne(w(D),{replace:!0}))}function z(D,F){const X=D.matched[D.matched.length-1];if(X&&X.redirect){const{redirect:oe}=X;let ue=typeof oe=="function"?oe(D,F):oe;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=w(ue):{path:ue},ue.params={}),Ne({query:D.query,hash:D.hash,params:ue.path!=null?{}:D.params},ue)}}function L(D,F){const X=c=v(D),oe=a.value,ue=D.state,b=D.force,S=D.replace===!0,y=z(X,oe);if(y)return L(Ne(w(y),{state:typeof y=="object"?Ne({},ue,y.state):ue,force:b,replace:S}),F||X);const E=X;E.redirectedFrom=F;let T;return!b&&lv(r,oe,X)&&(T=Ir(He.NAVIGATION_DUPLICATED,{to:E,from:oe}),ht(oe,oe,!0,!1)),(T?Promise.resolve(T):O(E,oe)).catch(M=>un(M)?un(M,He.NAVIGATION_GUARD_REDIRECT)?M:ft(M):Se(M,E,oe)).then(M=>{if(M){if(un(M,He.NAVIGATION_GUARD_REDIRECT))return L(Ne({replace:S},w(M.to),{state:typeof M.to=="object"?Ne({},ue,M.to.state):ue,force:b}),F||E)}else M=I(E,oe,!0,S,ue);return q(E,oe,M),M})}function G(D,F){const X=C(D,F);return X?Promise.reject(X):Promise.resolve()}function P(D){const F=Z.values().next().value;return F&&typeof F.runWithContext=="function"?F.runWithContext(D):D()}function O(D,F){let X;const[oe,ue,b]=Sv(D,F);X=Ci(oe.reverse(),"beforeRouteLeave",D,F);for(const y of oe)y.leaveGuards.forEach(E=>{X.push(On(E,D,F))});const S=G.bind(null,D,F);return X.push(S),ge(X).then(()=>{X=[];for(const y of o.list())X.push(On(y,D,F));return X.push(S),ge(X)}).then(()=>{X=Ci(ue,"beforeRouteUpdate",D,F);for(const y of ue)y.updateGuards.forEach(E=>{X.push(On(E,D,F))});return X.push(S),ge(X)}).then(()=>{X=[];for(const y of b)if(y.beforeEnter)if(Xt(y.beforeEnter))for(const E of y.beforeEnter)X.push(On(E,D,F));else X.push(On(y.beforeEnter,D,F));return X.push(S),ge(X)}).then(()=>(D.matched.forEach(y=>y.enterCallbacks={}),X=Ci(b,"beforeRouteEnter",D,F,P),X.push(S),ge(X))).then(()=>{X=[];for(const y of i.list())X.push(On(y,D,F));return X.push(S),ge(X)}).catch(y=>un(y,He.NAVIGATION_CANCELLED)?y:Promise.reject(y))}function q(D,F,X){l.list().forEach(oe=>P(()=>oe(D,F,X)))}function I(D,F,X,oe,ue){const b=C(D,F);if(b)return b;const S=F===$n,y=pr?history.state:{};X&&(oe||S?s.replace(D.fullPath,Ne({scroll:S&&y&&y.scroll},ue)):s.push(D.fullPath,ue)),a.value=D,ht(D,F,X,S),ft()}let le;function de(){le||(le=s.listen((D,F,X)=>{if(!ee.listening)return;const oe=v(D),ue=z(oe,ee.currentRoute.value);if(ue){L(Ne(ue,{replace:!0,force:!0}),oe).catch(cs);return}c=oe;const b=a.value;pr&&gv(hc(b.fullPath,X.delta),Vo()),O(oe,b).catch(S=>un(S,He.NAVIGATION_ABORTED|He.NAVIGATION_CANCELLED)?S:un(S,He.NAVIGATION_GUARD_REDIRECT)?(L(Ne(w(S.to),{force:!0}),oe).then(y=>{un(y,He.NAVIGATION_ABORTED|He.NAVIGATION_DUPLICATED)&&!X.delta&&X.type===el.pop&&s.go(-1,!1)}).catch(cs),Promise.reject()):(X.delta&&s.go(-X.delta,!1),Se(S,oe,b))).then(S=>{S=S||I(oe,b,!1),S&&(X.delta&&!un(S,He.NAVIGATION_CANCELLED)?s.go(-X.delta,!1):X.type===el.pop&&un(S,He.NAVIGATION_ABORTED|He.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),q(oe,b,S)}).catch(cs)}))}let $e=zr(),Ee=zr(),Ce;function Se(D,F,X){ft(D);const oe=Ee.list();return oe.length?oe.forEach(ue=>ue(D,F,X)):console.error(D),Promise.reject(D)}function ut(){return Ce&&a.value!==$n?Promise.resolve():new Promise((D,F)=>{$e.add([D,F])})}function ft(D){return Ce||(Ce=!D,de(),$e.list().forEach(([F,X])=>D?X(D):F()),$e.reset()),D}function ht(D,F,X,oe){const{scrollBehavior:ue}=e;if(!pr||!ue)return Promise.resolve();const b=!X&&mv(hc(D.fullPath,0))||(oe||!X)&&history.state&&history.state.scroll||null;return Cn().then(()=>ue(D,F,b)).then(S=>S&&hv(S)).catch(S=>Se(S,D,F))}const qe=D=>s.go(D);let U;const Z=new Set,ee={currentRoute:a,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:m,resolve:v,options:e,push:$,replace:V,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:Ee.add,isReady:ut,install(D){D.component("RouterLink",qv),D.component("RouterView",Kv),D.config.globalProperties.$router=ee,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>B(a)}),pr&&!U&&a.value===$n&&(U=!0,$(s.location).catch(oe=>{}));const F={};for(const oe in $n)Object.defineProperty(F,oe,{get:()=>a.value[oe],enumerable:!0});D.provide(Uo,ee),D.provide(Xl,uf(F)),D.provide(nl,a);const X=D.unmount;Z.add(D),D.unmount=function(){Z.delete(D),Z.size<1&&(c=$n,le&&le(),le=null,a.value=$n,U=!1,Ce=!1),X()}}};function ge(D){return D.reduce((F,X)=>F.then(()=>P(X)),Promise.resolve())}return ee}function qo(){return Nt(Uo)}function Ho(e){return Nt(Xl)}const Ac=document.querySelector("base"),Si=Ac?Ac.getAttribute("href"):"/",Sd=Si.endsWith("/")?Si:Si+"/",Yv=Sd.replace(/\/+$/,""),kd=/^[a-z0-9]+(-[a-z0-9]+)*$/,zo=(e,t,n,r="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;r=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const l=s.pop(),a=s.pop(),c={provider:s.length>0?s[0]:r,prefix:a,name:l};return t&&!Qs(c)?null:c}const o=s[0],i=o.split("-");if(i.length>1){const l={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Qs(l)?null:l}if(n&&r===""){const l={provider:r,prefix:"",name:o};return t&&!Qs(l,n)?null:l}return null},Qs=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function Jv(e,t){const n=e.icons,r=e.aliases||Object.create(null),s=Object.create(null);function o(i){if(n[i])return s[i]=[];if(!(i in s)){s[i]=null;const l=r[i]&&r[i].parent,a=l&&o(l);a&&(s[i]=[l].concat(a))}return s[i]}return Object.keys(n).concat(Object.keys(r)).forEach(o),s}const xd=Object.freeze({left:0,top:0,width:16,height:16}),ho=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Wo=Object.freeze({...xd,...ho}),rl=Object.freeze({...Wo,body:"",hidden:!1});function Qv(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function $c(e,t){const n=Qv(e,t);for(const r in rl)r in ho?r in e&&!(r in n)&&(n[r]=ho[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Zv(e,t,n){const r=e.icons,s=e.aliases||Object.create(null);let o={};function i(l){o=$c(r[l]||s[l],o)}return i(t),n.forEach(i),$c(e,o)}function Ed(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const r=Jv(e);for(const s in r){const o=r[s];o&&(t(s,Zv(e,s,o)),n.push(s))}return n}const ey={provider:"",aliases:{},not_found:{},...xd};function ki(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ad(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ki(e,ey))return null;const n=t.icons;for(const s in n){const o=n[s];if(!s||typeof o.body!="string"||!ki(o,rl))return null}const r=t.aliases||Object.create(null);for(const s in r){const o=r[s],i=o.parent;if(!s||typeof i!="string"||!n[i]&&!r[i]||!ki(o,rl))return null}return t}const Ic=Object.create(null);function ty(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Rr(e,t){const n=Ic[e]||(Ic[e]=Object.create(null));return n[t]||(n[t]=ty(e,t))}function $d(e,t){return Ad(t)?Ed(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function ny(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let ws=!1;function Id(e){return typeof e=="boolean"&&(ws=e),ws}function ry(e){const t=typeof e=="string"?zo(e,!0,ws):e;if(t){const n=Rr(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function sy(e,t){const n=zo(e,!0,ws);if(!n)return!1;const r=Rr(n.provider,n.prefix);return t?ny(r,n.name,t):(r.missing.add(n.name),!0)}function oy(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),ws&&!t&&!e.prefix){let r=!1;return Ad(e)&&(e.prefix="",Ed(e,(s,o)=>{sy(s,o)&&(r=!0)})),r}const n=e.prefix;return Qs({prefix:n,name:"a"})?!!$d(Rr(t,n),e):!1}const Rd=Object.freeze({width:null,height:null}),Td=Object.freeze({...Rd,...ho}),iy=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ly=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Rc(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(iy);if(r===null||!r.length)return e;const s=[];let o=r.shift(),i=ly.test(o);for(;;){if(i){const l=parseFloat(o);isNaN(l)?s.push(o):s.push(Math.ceil(l*t*n)/n)}else s.push(o);if(o=r.shift(),o===void 0)return s.join("");i=!i}}function ay(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const s=e.indexOf(">",r),o=e.indexOf("</"+t);if(s===-1||o===-1)break;const i=e.indexOf(">",o);if(i===-1)break;n+=e.slice(s+1,o).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function cy(e,t){return e?"<defs>"+e+"</defs>"+t:t}function uy(e,t,n){const r=ay(e);return cy(r.defs,t+r.content+n)}const fy=e=>e==="unset"||e==="undefined"||e==="none";function dy(e,t){const n={...Wo,...e},r={...Td,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(m=>{const _=[],v=m.hFlip,w=m.vFlip;let C=m.rotate;v?w?C+=2:(_.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),_.push("scale(-1 1)"),s.top=s.left=0):w&&(_.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),_.push("scale(1 -1)"),s.top=s.left=0);let $;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:$=s.height/2+s.top,_.unshift("rotate(90 "+$.toString()+" "+$.toString()+")");break;case 2:_.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:$=s.width/2+s.left,_.unshift("rotate(-90 "+$.toString()+" "+$.toString()+")");break}C%2===1&&(s.left!==s.top&&($=s.left,s.left=s.top,s.top=$),s.width!==s.height&&($=s.width,s.width=s.height,s.height=$)),_.length&&(o=uy(o,'<g transform="'+_.join(" ")+'">',"</g>"))});const i=r.width,l=r.height,a=s.width,c=s.height;let u,f;i===null?(f=l===null?"1em":l==="auto"?c:l,u=Rc(f,a/c)):(u=i==="auto"?a:i,f=l===null?Rc(u,c/a):l==="auto"?c:l);const d={},p=(m,_)=>{fy(_)||(d[m]=_.toString())};p("width",u),p("height",f);const h=[s.left,s.top,a,c];return d.viewBox=h.join(" "),{attributes:d,viewBox:h,body:o}}const py=/\sid="(\S+)"/g,Tc=new Map;function hy(e){e=e.replace(/[0-9]+$/,"")||"a";const t=Tc.get(e)||0;return Tc.set(e,t+1),t?`${e}${t}`:e}function gy(e){const t=[];let n;for(;n=py.exec(e);)t.push(n[1]);if(!t.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(s=>{const o=hy(s),i=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const sl=Object.create(null);function my(e,t){sl[e]=t}function ol(e){return sl[e]||sl[""]}function Yl(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Jl=Object.create(null),Wr=["https://api.simplesvg.com","https://api.unisvg.com"],Zs=[];for(;Wr.length>0;)Wr.length===1||Math.random()>.5?Zs.push(Wr.shift()):Zs.push(Wr.pop());Jl[""]=Yl({resources:["https://api.iconify.design"].concat(Zs)});function vy(e,t){const n=Yl(t);return n===null?!1:(Jl[e]=n,!0)}function Ql(e){return Jl[e]}const yy=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Nc=yy();function _y(e,t){const n=Ql(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let s=0;n.resources.forEach(i=>{s=Math.max(s,i.length)});const o=t+".json?icons=";r=n.maxURL-s-n.path.length-o.length}return r}function by(e){return e===404}const wy=(e,t,n)=>{const r=[],s=_y(e,t),o="icons";let i={type:o,provider:e,prefix:t,icons:[]},l=0;return n.forEach((a,c)=>{l+=a.length+1,l>=s&&c>0&&(r.push(i),i={type:o,provider:e,prefix:t,icons:[]},l=a.length),i.icons.push(a)}),r.push(i),r};function Cy(e){if(typeof e=="string"){const t=Ql(e);if(t)return t.path}return"/"}const Sy=(e,t,n)=>{if(!Nc){n("abort",424);return}let r=Cy(t.provider);switch(t.type){case"icons":{const o=t.prefix,i=t.icons.join(","),l=new URLSearchParams({icons:i});r+=o+".json?"+l.toString();break}case"custom":{const o=t.uri;r+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let s=503;Nc(e+r).then(o=>{const i=o.status;if(i!==200){setTimeout(()=>{n(by(i)?"abort":"next",i)});return}return s=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",s)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",s)})},ky={prepare:wy,send:Sy};function Nd(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(s=>s.id!==t))})}function xy(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,s=e.prefix;t.forEach(o=>{const i=o.icons,l=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==s)return!0;const c=a.name;if(e.icons[c])i.loaded.push({provider:r,prefix:s,name:c});else if(e.missing.has(c))i.missing.push({provider:r,prefix:s,name:c});else return n=!0,!0;return!1}),i.pending.length!==l&&(n||Nd([e],o.id),o.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),o.abort))})}))}let Ey=0;function Ay(e,t,n){const r=Ey++,s=Nd.bind(null,n,r);if(!t.pending.length)return s;const o={id:r,icons:t,callback:e,abort:s};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(o)}),s}function $y(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,o)=>s.provider!==o.provider?s.provider.localeCompare(o.provider):s.prefix!==o.prefix?s.prefix.localeCompare(o.prefix):s.name.localeCompare(o.name));let r={provider:"",prefix:"",name:""};return e.forEach(s=>{if(r.name===s.name&&r.prefix===s.prefix&&r.provider===s.provider)return;r=s;const o=s.provider,i=s.prefix,l=s.name,a=n[o]||(n[o]=Object.create(null)),c=a[i]||(a[i]=Rr(o,i));let u;l in c.icons?u=t.loaded:i===""||c.missing.has(l)?u=t.missing:u=t.pending;const f={provider:o,prefix:i,name:l};u.push(f)}),t}function Iy(e,t=!0,n=!1){const r=[];return e.forEach(s=>{const o=typeof s=="string"?zo(s,t,n):s;o&&r.push(o)}),r}const Ry={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ty(e,t,n,r){const s=e.resources.length,o=e.random?Math.floor(Math.random()*s):e.index;let i;if(e.random){let z=e.resources.slice(0);for(i=[];z.length>1;){const L=Math.floor(Math.random()*z.length);i.push(z[L]),z=z.slice(0,L).concat(z.slice(L+1))}i=i.concat(z)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));const l=Date.now();let a="pending",c=0,u,f=null,d=[],p=[];typeof r=="function"&&p.push(r);function h(){f&&(clearTimeout(f),f=null)}function m(){a==="pending"&&(a="aborted"),h(),d.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),d=[]}function _(z,L){L&&(p=[]),typeof z=="function"&&p.push(z)}function v(){return{startTime:l,payload:t,status:a,queriesSent:c,queriesPending:d.length,subscribe:_,abort:m}}function w(){a="failed",p.forEach(z=>{z(void 0,u)})}function C(){d.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),d=[]}function $(z,L,G){const P=L!=="success";switch(d=d.filter(O=>O!==z),a){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(L==="abort"){u=G,w();return}if(P){u=G,d.length||(i.length?V():w());return}if(h(),C(),!e.random){const O=e.resources.indexOf(z.resource);O!==-1&&O!==e.index&&(e.index=O)}a="completed",p.forEach(O=>{O(G)})}function V(){if(a!=="pending")return;h();const z=i.shift();if(z===void 0){if(d.length){f=setTimeout(()=>{h(),a==="pending"&&(C(),w())},e.timeout);return}w();return}const L={status:"pending",resource:z,callback:(G,P)=>{$(L,G,P)}};d.push(L),c++,f=setTimeout(V,e.rotate),n(z,t,L.callback)}return setTimeout(V),v}function Pd(e){const t={...Ry,...e};let n=[];function r(){n=n.filter(i=>i().status==="pending")}function s(i,l,a){const c=Ty(t,i,l,(u,f)=>{r(),a&&a(u,f)});return n.push(c),c}function o(i){return n.find(l=>i(l))||null}return{query:s,find:o,setIndex:i=>{t.index=i},getIndex:()=>t.index,cleanup:r}}function Pc(){}const xi=Object.create(null);function Ny(e){if(!xi[e]){const t=Ql(e);if(!t)return;xi[e]={config:t,redundancy:Pd(t)}}return xi[e]}function Py(e,t,n){let r,s;if(typeof e=="string"){const o=ol(e);if(!o)return n(void 0,424),Pc;s=o.send;const i=Ny(e);i&&(r=i.redundancy)}else{const o=Yl(e);if(o){r=Pd(o);const i=ol(e.resources?e.resources[0]:"");i&&(s=i.send)}}return!r||!s?(n(void 0,424),Pc):r.query(t,s,n)().abort}function Oc(){}function Oy(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,xy(e)}))}function Ly(e){const t=[],n=[];return e.forEach(r=>{(r.match(kd)?t:n).push(r)}),{valid:t,invalid:n}}function Kr(e,t,n){function r(){const s=e.pendingIcons;t.forEach(o=>{s&&s.delete(o),e.icons[o]||e.missing.add(o)})}if(n&&typeof n=="object")try{if(!$d(e,n).length){r();return}}catch(s){console.error(s)}r(),Oy(e)}function Lc(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function My(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,s=e.iconsToLoad;if(delete e.iconsToLoad,!s||!s.length)return;const o=e.loadIcon;if(e.loadIcons&&(s.length>1||!o)){Lc(e.loadIcons(s,r,n),c=>{Kr(e,s,c)});return}if(o){s.forEach(c=>{Lc(o(c,r,n),u=>{Kr(e,[c],u?{prefix:r,icons:{[c]:u}}:null)})});return}const{valid:i,invalid:l}=Ly(s);if(l.length&&Kr(e,l,null),!i.length)return;const a=r.match(kd)?ol(n):null;if(!a){Kr(e,i,null);return}a.prepare(n,r,i).forEach(c=>{Py(n,c,u=>{Kr(e,c.icons,u)})})}))}const Dy=(e,t)=>{const n=$y(Iy(e,!0,Id()));if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,Oc)}),()=>{l=!1}}const r=Object.create(null),s=[];let o,i;return n.pending.forEach(l=>{const{provider:a,prefix:c}=l;if(c===i&&a===o)return;o=a,i=c,s.push(Rr(a,c));const u=r[a]||(r[a]=Object.create(null));u[c]||(u[c]=[])}),n.pending.forEach(l=>{const{provider:a,prefix:c,name:u}=l,f=Rr(a,c),d=f.pendingIcons||(f.pendingIcons=new Set);d.has(u)||(d.add(u),r[a][c].push(u))}),s.forEach(l=>{const a=r[l.provider][l.prefix];a.length&&My(l,a)}),t?Ay(t,n,s):Oc};function By(e,t){const n={...e};for(const r in t){const s=t[r],o=typeof s;r in Rd?(s===null||s&&(o==="string"||o==="number"))&&(n[r]=s):o===typeof n[r]&&(n[r]=r==="rotate"?s%4:s)}return n}const Fy=/[\s,]+/;function jy(e,t){t.split(Fy).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Gy(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:r(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/s,o%1===0?r(o):0)}}return t}function Vy(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Uy(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function qy(e){return"data:image/svg+xml,"+Uy(e)}function Hy(e){return'url("'+qy(e)+'")'}const Mc={...Td,inline:!1},zy={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Wy={display:"inline-block"},il={backgroundColor:"currentColor"},Od={backgroundColor:"transparent"},Dc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Bc={webkitMask:il,mask:il,background:Od};for(const e in Bc){const t=Bc[e];for(const n in Dc)t[e+n]=Dc[n]}const eo={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";eo[e+"-flip"]=t,eo[e.slice(0,1)+"-flip"]=t,eo[e+"Flip"]=t});function Fc(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const jc=(e,t)=>{const n=By(Mc,t),r={...zy},s=t.mode||"svg",o={},i=t.style,l=typeof i=="object"&&!(i instanceof Array)?i:{};for(let m in t){const _=t[m];if(_!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":case"ssr":case"customise":break;case"inline":case"hFlip":case"vFlip":n[m]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&jy(n,_);break;case"color":o.color=_;break;case"rotate":typeof _=="string"?n[m]=Gy(_):typeof _=="number"&&(n[m]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete r["aria-hidden"];break;default:{const v=eo[m];v?(_===!0||_==="true"||_===1)&&(n[v]=!0):Mc[m]===void 0&&(r[m]=_)}}}const a=dy(e,n),c=a.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),s==="svg")return r.style={...o,...l},Object.assign(r,c),r.innerHTML=gy(a.body),Ht("svg",r);const{body:u,width:f,height:d}=e,p=s==="mask"||(s==="bg"?!1:u.indexOf("currentColor")!==-1),h=Vy(u,{...c,width:f+"",height:d+""});return r.style={...o,"--svg":Hy(h),width:Fc(c.width),height:Fc(c.height),...Wy,...p?il:Od,...l},Ht("span",r)};Id(!0);my("",ky);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!oy(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;vy(n,s)||console.error(r)}catch{console.error(r)}}}}const Ky={...Wo,body:""},ll=Le((e,{emit:t})=>{const n=K(null);function r(){var c,u;n.value&&((u=(c=n.value).abort)==null||u.call(c),n.value=null)}const s=K(!!e.ssr),o=K(""),i=Bl(null);function l(){const c=e.icon;if(typeof c=="object"&&c!==null&&typeof c.body=="string")return o.value="",{data:c};let u;if(typeof c!="string"||(u=zo(c,!1,!0))===null)return null;let f=ry(u);if(!f){const h=n.value;return(!h||h.name!==c)&&(f===null?n.value={name:c}:n.value={name:c,abort:Dy([u],a)}),null}r(),o.value!==c&&(o.value=c,Cn(()=>{t("load",c)}));const d=e.customise;if(d){f=Object.assign({},f);const h=d(f.body,u.name,u.prefix,u.provider);typeof h=="string"&&(f.body=h)}const p=["iconify"];return u.prefix!==""&&p.push("iconify--"+u.prefix),u.provider!==""&&p.push("iconify--"+u.provider),{data:f,classes:p}}function a(){var u;const c=l();c?c.data!==((u=i.value)==null?void 0:u.data)&&(i.value=c):i.value=null}return s.value?a():Ve(()=>{s.value=!0,a()}),Te(()=>e.icon,a),st(r),()=>{const c=i.value;if(!c)return jc(Ky,e);let u=e;return c.classes&&(u={...e,class:c.classes.join(" ")}),jc({...Wo,...c.data},u)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});function Ue(e){return`${Yv}/api${e}`}const we=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Xy={class:"pc-layout"},Yy={class:"pc-layout__main"},Jy={key:0,class:"pc-layout__header"},Qy={class:"pc-layout__content pc-scroll"},Zy={__name:"AppLayout",props:{navWidth:{type:String,default:"240px"}},setup(e){return(t,n)=>(g(),k("div",Xy,[x("aside",{class:"pc-layout__nav",style:Et({width:e.navWidth})},[ce(t.$slots,"nav",{},void 0,!0)],4),x("div",Yy,[t.$slots.header?(g(),k("header",Jy,[ce(t.$slots,"header",{},void 0,!0)])):W("",!0),x("main",Qy,[ce(t.$slots,"default",{},void 0,!0)])])]))}},e_=we(Zy,[["__scopeId","data-v-8f1178ce"]]);function Gc(e){return typeof e=="string"?`'${e}'`:new t_().serialize(e)}const t_=function(){var t;class e{constructor(){En(this,t,new Map)}compare(r,s){const o=typeof r,i=typeof s;return o==="string"&&i==="string"?r.localeCompare(s):o==="number"&&i==="number"?r-s:String.prototype.localeCompare.call(this.serialize(r,!0),this.serialize(s,!0))}serialize(r,s){if(r===null)return"null";switch(typeof r){case"string":return s?r:`'${r}'`;case"bigint":return`${r}n`;case"object":return this.$object(r);case"function":return this.$function(r)}return String(r)}serializeObject(r){const s=Object.prototype.toString.call(r);if(s!=="[object Object]")return this.serializeBuiltInType(s.length<10?`unknown:${s}`:s.slice(8,-1),r);const o=r.constructor,i=o===Object||o===void 0?"":o.name;if(i!==""&&globalThis[i]===o)return this.serializeBuiltInType(i,r);if(typeof r.toJSON=="function"){const l=r.toJSON();return i+(l!==null&&typeof l=="object"?this.$object(l):`(${this.serialize(l)})`)}return this.serializeObjectEntries(i,Object.entries(r))}serializeBuiltInType(r,s){const o=this["$"+r];if(o)return o.call(this,s);if(typeof(s==null?void 0:s.entries)=="function")return this.serializeObjectEntries(r,s.entries());throw new Error(`Cannot serialize ${r}`)}serializeObjectEntries(r,s){const o=Array.from(s).sort((l,a)=>this.compare(l[0],a[0]));let i=`${r}{`;for(let l=0;l<o.length;l++){const[a,c]=o[l];i+=`${this.serialize(a,!0)}:${this.serialize(c)}`,l<o.length-1&&(i+=",")}return i+"}"}$object(r){let s=et(this,t).get(r);return s===void 0&&(et(this,t).set(r,`#${et(this,t).size}`),s=this.serializeObject(r),et(this,t).set(r,s)),s}$function(r){const s=Function.prototype.toString.call(r);return s.slice(-15)==="[native code] }"?`${r.name||""}()[native]`:`${r.name}(${r.length})${s.replace(/\s*\n\s*/g,"")}`}$Array(r){let s="[";for(let o=0;o<r.length;o++)s+=this.serialize(r[o]),o<r.length-1&&(s+=",");return s+"]"}$Date(r){try{return`Date(${r.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(r){return`ArrayBuffer[${new Uint8Array(r).join(",")}]`}$Set(r){return`Set${this.$Array(Array.from(r).sort((s,o)=>this.compare(s,o)))}`}$Map(r){return this.serializeObjectEntries("Map",r.entries())}}t=new WeakMap;for(const n of["Error","RegExp","URL"])e.prototype["$"+n]=function(r){return`${n}(${r})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+n]=function(r){return`${n}[${r.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])e.prototype["$"+n]=function(r){return`${n}[${r.join("n,")}${r.length>0?"n":""}]`};return e}();function go(e,t){return e===t||Gc(e)===Gc(t)}function n_(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function Dr(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[i=>{const l=Nt(r,i);if(l||l===null)return l;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(br(r,i),i)]}function Vc(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function r_(e){return e==null}function Ld(e,t){return r_(e)?!1:Array.isArray(e)?e.some(n=>go(n,t)):go(e,t)}function s_(e,t){return Ku()?(xh(e,t),!0):!1}const Md=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const o_=e=>typeof e<"u",Uc=()=>{};function i_(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}function l_(e,t={}){let n,r,s=Uc;const o=a=>{clearTimeout(a),s(),s=Uc};let i;return a=>{const c=hs(e),u=hs(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=void 0),Promise.resolve(a())):new Promise((f,d)=>{s=t.rejectOnCancel?d:f,i=a,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=void 0,f(i())},u)),n=setTimeout(()=>{r&&o(r),r=void 0,f(a())},c)})}}function Zl(e,t=200,n={}){return i_(l_(t,n),e)}function a_(e,t,n){return Te(e,t,{...n,once:!0})}const Dd=Md?window:void 0;function Tr(e){var t;const n=hs(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function c_(){const e=Bl(!1),t=xn();return t&&Ve(()=>{e.value=!0},t),e}function u_(e){const t=c_();return Y(()=>(t.value,!!e()))}function f_(e){return JSON.parse(JSON.stringify(e))}function Nr(e,t,n={}){const{window:r=Dd,...s}=n;let o;const i=u_(()=>r&&"ResizeObserver"in r),l=()=>{o&&(o.disconnect(),o=void 0)},a=Te(Y(()=>{const u=hs(e);return Array.isArray(u)?u.map(f=>Tr(f)):[Tr(u)]}),u=>{if(l(),i.value&&r){o=new ResizeObserver(t);for(const f of u)f&&o.observe(f,s)}},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return s_(c),{isSupported:i,stop:c}}function ea(e,t,n,r={}){var s,o;const{clone:i=!1,passive:l=!1,eventName:a,deep:c=!1,defaultValue:u,shouldEmit:f}=r,d=xn(),p=n||(d==null?void 0:d.emit)||(d==null||(s=d.$emit)===null||s===void 0?void 0:s.bind(d))||(d==null||(o=d.proxy)===null||o===void 0||(o=o.$emit)===null||o===void 0?void 0:o.bind(d==null?void 0:d.proxy));let h=a;t||(t="modelValue"),h=h||`update:${t.toString()}`;const m=w=>i?typeof i=="function"?i(w):f_(w):w,_=()=>o_(e[t])?m(e[t]):u,v=w=>{f?f(w)&&p(h,w):p(h,w)};if(l){const w=K(_());let C=!1;return Te(()=>e[t],$=>{C||(C=!0,w.value=m($),Cn(()=>C=!1))}),Te(w,$=>{!C&&($!==e[t]||c)&&v($)},{deep:c}),w}else return Y({get(){return _()},set(w){v(w)}})}function ta(e){return e?e.flatMap(t=>t.type===se?ta(t.children):[t]):[]}const[Bd]=Dr("ConfigProvider");function na(e){const t=Bd({dir:K("ltr")});return Y(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function Fd(e){return Y(()=>{var t;return hs(e)?!!((t=Tr(e))!=null&&t.closest("form")):!0})}function _t(){const e=xn(),t=K(),n=Y(()=>r());Vl(()=>{n.value!==r()&&zh(t)});function r(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Tr(t)}const s=Object.assign({},e.exposed),o={};for(const l in e.props)Object.defineProperty(o,l,{enumerable:!0,configurable:!0,get:()=>e.props[l]});if(Object.keys(s).length>0)for(const l in s)Object.defineProperty(o,l,{enumerable:!0,configurable:!0,get:()=>s[l]});Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=o;function i(l){if(t.value=l,!!l&&(Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>l instanceof Element?l:l.$el}),!(l instanceof Element)&&!Object.hasOwn(l,"$el"))){const a=l.$.exposed,c=Object.assign({},o);for(const u in a)Object.defineProperty(c,u,{enumerable:!0,configurable:!0,get:()=>a[u]});e.exposed=c}}return{forwardRef:i,currentRef:t,currentElement:n}}function d_(e,t="reka"){let n;return n=di==null?void 0:di(),t?`${t}-${n}`:n}function ra(e,t){const n=K(e);function r(o){return t[n.value][o]??n.value}return{state:n,dispatch:o=>{n.value=r(o)}}}function p_(e,t){var _;const n=K({}),r=K("none"),s=K(e),o=e.value?"mounted":"unmounted";let i;const l=((_=t.value)==null?void 0:_.ownerDocument.defaultView)??Dd,{state:a,dispatch:c}=ra(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=v=>{var w;if(Md){const C=new CustomEvent(v,{bubbles:!1,cancelable:!1});(w=t.value)==null||w.dispatchEvent(C)}};Te(e,async(v,w)=>{var $;const C=w!==v;if(await Cn(),C){const V=r.value,z=Vs(t.value);v?(c("MOUNT"),u("enter"),z==="none"&&u("after-enter")):z==="none"||z==="undefined"||(($=n.value)==null?void 0:$.display)==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):w&&V!==z?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const f=v=>{const w=Vs(t.value),C=w.includes(CSS.escape(v.animationName)),$=a.value==="mounted"?"enter":"leave";if(v.target===t.value&&C&&(u(`after-${$}`),c("ANIMATION_END"),!s.value)){const V=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",i=l==null?void 0:l.setTimeout(()=>{var z;((z=t.value)==null?void 0:z.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=V)})}v.target===t.value&&w==="none"&&c("ANIMATION_END")},d=v=>{v.target===t.value&&(r.value=Vs(t.value))},p=Te(t,(v,w)=>{v?(n.value=getComputedStyle(v),v.addEventListener("animationstart",d),v.addEventListener("animationcancel",f),v.addEventListener("animationend",f)):(c("ANIMATION_END"),i!==void 0&&(l==null||l.clearTimeout(i)),w==null||w.removeEventListener("animationstart",d),w==null||w.removeEventListener("animationcancel",f),w==null||w.removeEventListener("animationend",f))},{immediate:!0}),h=Te(a,()=>{const v=Vs(t.value);r.value=a.value==="mounted"?v:"none"});return st(()=>{p(),h()}),{isPresent:Y(()=>["mounted","unmountSuspended"].includes(a.value))}}function Vs(e){return e&&getComputedStyle(e).animationName||"none"}var Ko=Le({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var c;const{present:r,forceMount:s}=Mr(e),o=K(),{isPresent:i}=p_(r,o);n({present:i});let l=t.default({present:i.value});l=ta(l||[]);const a=xn();if(l&&(l==null?void 0:l.length)>1){const u=(c=a==null?void 0:a.parent)!=null&&c.type.name?`<${a.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>` - ${f}`).join(`
|
|
26
|
+
`)].join(`
|
|
27
|
+
`))}return()=>s.value||r.value||i.value?Ht(t.default({present:i.value})[0],{ref:u=>{const f=Tr(u);return typeof(f==null?void 0:f.hasAttribute)>"u"||(f!=null&&f.hasAttribute("data-reka-popper-content-wrapper")?o.value=f.firstElementChild:o.value=f),f}}):null}});const al=Le({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var a;if(!n.default)return null;const r=ta(n.default()),s=r.findIndex(c=>c.type!==pt);if(s===-1)return r;const o=r[s];(a=o.props)==null||delete a.ref;const i=o.props?Xe(t,o.props):t,l=Sn({...o,props:{}},i);return r.length===1?l:(r[s]=l,r)}}}),h_=["area","img","input"],Ot=Le({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as;return typeof r=="string"&&h_.includes(r)?()=>Ht(r,t):r!=="template"?()=>Ht(e.as,t,{default:n.default}):()=>Ht(al,t,{default:n.default})}});function cl(){const e=K(),t=Y(()=>{var n,r;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(r=e.value)==null?void 0:r.$el.nextElementSibling:Tr(e)});return{primitiveElement:e,currentElement:t}}function g_({type:e,defaultValue:t,modelValue:n}){const r=n||t;return n!==void 0||t!==void 0?Array.isArray(r)?"multiple":"single":e??"single"}function m_({type:e,defaultValue:t,modelValue:n}){return e||g_({type:e,defaultValue:t,modelValue:n})}function v_({type:e,defaultValue:t}){return t!==void 0?t:e==="single"?void 0:[]}function y_(e,t){const n=Y(()=>m_(e)),r=ea(e,"modelValue",t,{defaultValue:v_(e),passive:e.modelValue===void 0,deep:!0});function s(i){if(n.value==="single")r.value=go(i,r.value)?void 0:i;else{const l=Array.isArray(r.value)?[...r.value||[]]:[r.value].filter(Boolean);if(Ld(l,i)){const a=l.findIndex(c=>go(c,i));l.splice(a,1)}else l.push(i);r.value=l}}const o=Y(()=>n.value==="single");return{modelValue:r,changeModelValue:s,isSingle:o}}const qc="data-reka-collection-item";function jd(e={}){const{key:t="",isProvider:n=!1}=e,r=`${t}CollectionProvider`;let s;n?(s={collectionRef:K(),itemMap:K(new Map)},br(r,s)):s=Nt(r);const o=(u=!1)=>{const f=s.collectionRef.value;if(!f)return[];const d=Array.from(f.querySelectorAll(`[${qc}]`)),h=Array.from(s.itemMap.value.values()).sort((m,_)=>d.indexOf(m.ref)-d.indexOf(_.ref));return u?h:h.filter(m=>m.ref.dataset.disabled!=="")},i=Le({name:"CollectionSlot",inheritAttrs:!1,setup(u,{slots:f,attrs:d}){const{primitiveElement:p,currentElement:h}=cl();return Te(h,()=>{s.collectionRef.value=h.value}),()=>Ht(al,{ref:p,...d},f)}}),l=Le({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(u,{slots:f,attrs:d}){const{primitiveElement:p,currentElement:h}=cl();return wr(m=>{if(h.value){const _=ff(h.value);s.itemMap.value.set(_,{ref:h.value,value:u.value}),m(()=>s.itemMap.value.delete(_))}}),()=>Ht(al,{...d,[qc]:"",ref:p},f)}}),a=Y(()=>Array.from(s.itemMap.value.values())),c=Y(()=>s.itemMap.value.size);return{getItems:o,reactiveItems:a,itemMapSize:c,CollectionSlot:i,CollectionItem:l}}var __=Le({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(g(),H(B(Ot),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:A(()=>[ce(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),b_=__,w_=Le({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:n,currentElement:r}=cl(),s=Y(()=>t.checked??t.value);return Te(s,(o,i)=>{if(!r.value)return;const l=r.value,a=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(a,"value").set;if(u&&o!==i){const f=new Event("input",{bubbles:!0}),d=new Event("change",{bubbles:!0});u.call(l,o),l.dispatchEvent(f),l.dispatchEvent(d)}}),(o,i)=>(g(),H(b_,Xe({ref_key:"primitiveElement",ref:n},{...t,...o.$attrs},{as:"input"}),null,16))}}),Hc=w_,C_=Le({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,n=Y(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),r=Y(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((s,o)=>typeof s=="object"?Object.entries(s).map(([i,l])=>({name:`${t.name}[${o}][${i}]`,value:l})):{name:`${t.name}[${o}]`,value:s}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([s,o])=>({name:`${t.name}[${s}]`,value:o})):[]);return(s,o)=>(g(),k(se,null,[W(" We render single input if it's required "),n.value?(g(),H(Hc,Xe({key:s.name},{...t,...s.$attrs},{name:s.name,value:s.value}),null,16,["name","value"])):(g(!0),k(se,{key:1},ve(r.value,i=>(g(),H(Hc,Xe({key:i.name},{ref_for:!0},{...t,...s.$attrs},{name:i.name,value:i.value}),null,16,["name","value"]))),128))],2112))}}),Gd=C_;const S_="rovingFocusGroup.onEntryFocus",k_={bubbles:!1,cancelable:!0},x_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E_(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function A_(e,t,n){const r=E_(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return x_[r]}function Vd(e,t=!1){const n=Vc();for(const r of e)if(r===n||(r.focus({preventScroll:t}),Vc()!==n))return}function $_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function I_(e){const t=Bd({nonce:K()});return Y(()=>{var n;return(e==null?void 0:e.value)||((n=t.nonce)==null?void 0:n.value)})}const[R_,T_]=Dr("RovingFocusGroup");var N_=Le({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const r=e,s=n,{loop:o,orientation:i,dir:l}=Mr(r),a=na(l),c=ea(r,"currentTabStopId",s,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=K(!1),f=K(!1),d=K(0),{getItems:p,CollectionSlot:h}=jd({isProvider:!0});function m(v){const w=!f.value;if(v.currentTarget&&v.target===v.currentTarget&&w&&!u.value){const C=new CustomEvent(S_,k_);if(v.currentTarget.dispatchEvent(C),s("entryFocus",C),!C.defaultPrevented){const $=p().map(P=>P.ref).filter(P=>P.dataset.disabled!==""),V=$.find(P=>P.getAttribute("data-active")===""),z=$.find(P=>P.getAttribute("data-highlighted")===""),L=$.find(P=>P.id===c.value),G=[V,z,L,...$].filter(Boolean);Vd(G,r.preventScrollOnEntryFocus)}}f.value=!1}function _(){setTimeout(()=>{f.value=!1},1)}return t({getItems:p}),T_({loop:o,dir:a,orientation:i,currentTabStopId:c,onItemFocus:v=>{c.value=v},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{d.value++},onFocusableItemRemove:()=>{d.value--}}),(v,w)=>(g(),H(B(h),null,{default:A(()=>[R(B(Ot),{tabindex:u.value||d.value===0?-1:0,"data-orientation":B(i),as:v.as,"as-child":v.asChild,dir:B(a),style:{outline:"none"},onMousedown:w[0]||(w[0]=C=>f.value=!0),onMouseup:_,onFocus:m,onBlur:w[1]||(w[1]=C=>u.value=!1)},{default:A(()=>[ce(v.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),P_=N_,O_=Le({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=R_(),r=d_(),s=Y(()=>t.tabStopId||r),o=Y(()=>n.currentTabStopId.value===s.value),{getItems:i,CollectionItem:l}=jd();Ve(()=>{t.focusable&&n.onFocusableItemAdd()}),st(()=>{t.focusable&&n.onFocusableItemRemove()});function a(c){if(c.key==="Tab"&&c.shiftKey){n.onItemShiftTab();return}if(c.target!==c.currentTarget)return;const u=A_(c,n.orientation.value,n.dir.value);if(u!==void 0){if(c.metaKey||c.ctrlKey||c.altKey||!t.allowShiftKey&&c.shiftKey)return;c.preventDefault();let f=[...i().map(d=>d.ref).filter(d=>d.dataset.disabled!=="")];if(u==="last")f.reverse();else if(u==="prev"||u==="next"){u==="prev"&&f.reverse();const d=f.indexOf(c.currentTarget);f=n.loop.value?$_(f,d+1):f.slice(d+1)}Cn(()=>Vd(f))}}return(c,u)=>(g(),H(B(l),null,{default:A(()=>[R(B(Ot),{tabindex:o.value?0:-1,"data-orientation":B(n).orientation.value,"data-active":c.active?"":void 0,"data-disabled":c.focusable?void 0:"",as:c.as,"as-child":c.asChild,onMousedown:u[0]||(u[0]=f=>{c.focusable?B(n).onItemFocus(s.value):f.preventDefault()}),onFocus:u[1]||(u[1]=f=>B(n).onItemFocus(s.value)),onKeydown:a},{default:A(()=>[ce(c.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),L_=O_;const[Lt,M_]=Dr("ScrollAreaRoot");var D_=Le({__name:"ScrollAreaRoot",props:{type:{type:String,required:!1,default:"hover"},dir:{type:String,required:!1},scrollHideDelay:{type:Number,required:!1,default:600},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const n=e,r=K(0),s=K(0),o=K(),i=K(),l=K(),a=K(),c=K(!1),u=K(!1),{type:f,dir:d,scrollHideDelay:p}=Mr(n),h=na(d);function m(){var C;(C=o.value)==null||C.scrollTo({top:0})}function _(){var C;(C=o.value)==null||C.scrollTo({top:0,left:0})}t({viewport:o,scrollTop:m,scrollTopLeft:_});const{forwardRef:v,currentElement:w}=_t();return M_({type:f,dir:h,scrollHideDelay:p,scrollArea:w,viewport:o,onViewportChange:C=>{o.value=C||void 0},content:i,onContentChange:C=>{i.value=C},scrollbarX:l,scrollbarXEnabled:c,scrollbarY:a,scrollbarYEnabled:u,onScrollbarXChange:C=>{l.value=C||void 0},onScrollbarYChange:C=>{a.value=C||void 0},onScrollbarXEnabledChange:C=>{c.value=C},onScrollbarYEnabledChange:C=>{u.value=C},onCornerWidthChange:C=>{r.value=C},onCornerHeightChange:C=>{s.value=C}}),(C,$)=>(g(),H(B(Ot),{ref:B(v),"as-child":n.asChild,as:C.as,dir:B(h),style:Et({position:"relative","--reka-scroll-area-corner-width":`${r.value}px`,"--reka-scroll-area-corner-height":`${s.value}px`})},{default:A(()=>[ce(C.$slots,"default")]),_:3},8,["as-child","as","dir","style"]))}}),B_=D_,F_=Le({__name:"ScrollAreaCornerImpl",setup(e){const t=Lt(),n=K(0),r=K(0),s=Y(()=>!!n.value&&!!r.value);function o(){var a;const l=((a=t.scrollbarX.value)==null?void 0:a.offsetHeight)||0;t.onCornerHeightChange(l),r.value=l}function i(){var a;const l=((a=t.scrollbarY.value)==null?void 0:a.offsetWidth)||0;t.onCornerWidthChange(l),n.value=l}return Nr(t.scrollbarX.value,o),Nr(t.scrollbarY.value,i),Te(()=>t.scrollbarX.value,o),Te(()=>t.scrollbarY.value,i),(l,a)=>{var c;return s.value?(g(),H(B(Ot),Xe({key:0,style:{width:`${n.value}px`,height:`${r.value}px`,position:"absolute",right:B(t).dir.value==="ltr"?0:void 0,left:B(t).dir.value==="rtl"?0:void 0,bottom:0}},(c=l.$parent)==null?void 0:c.$props),{default:A(()=>[ce(l.$slots,"default")]),_:3},16,["style"])):W("v-if",!0)}}}),j_=F_,G_=Le({__name:"ScrollAreaCorner",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n}=_t(),r=Lt(),s=Y(()=>!!r.scrollbarX.value&&!!r.scrollbarY.value),o=Y(()=>r.type.value!=="scroll"&&s.value);return(i,l)=>o.value?(g(),H(j_,Xe({key:0},t,{ref:B(n)}),{default:A(()=>[ce(i.$slots,"default")]),_:3},16)):W("v-if",!0)}}),V_=G_;function Ud(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Xo(e){const t=qd(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function qd(e,t){const n=e/t;return Number.isNaN(n)?0:n}function U_(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function s(){const o={left:e.scrollLeft,top:e.scrollTop},i=n.left!==o.left,l=n.top!==o.top;(i||l)&&t(),n=o,r=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(r)}function zc(e,t,n="ltr"){const r=Xo(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-s,i=t.content-t.viewport,l=o-r,a=n==="ltr"?[0,i]:[i*-1,0],c=n_(e,a[0],a[1]);return Ud([0,i],[0,l])(c)}function Us(e){return e?Number.parseInt(e,10):0}function q_(e,t,n,r="ltr"){const s=Xo(n),o=s/2,i=t||o,l=s-i,a=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-l,u=n.content-n.viewport,f=r==="ltr"?[0,u]:[u*-1,0];return Ud([a,c],f)(e)}function Wc(e,t){return e>0&&e<t}var H_=Le({__name:"ScrollAreaScrollbarX",setup(e){const t=Lt(),n=Yo(),{forwardRef:r,currentElement:s}=_t();Ve(()=>{s.value&&t.onScrollbarXChange(s.value)});const o=Y(()=>n.sizes.value);return(i,l)=>(g(),H(Hd,{ref:B(r),"is-horizontal":!0,"data-orientation":"horizontal",style:Et({bottom:0,left:B(t).dir.value==="rtl"?"var(--reka-scroll-area-corner-width)":0,right:B(t).dir.value==="ltr"?"var(--reka-scroll-area-corner-width)":0,"--reka-scroll-area-thumb-width":o.value?`${B(Xo)(o.value)}px`:void 0}),onOnDragScroll:l[0]||(l[0]=a=>B(n).onDragScroll(a.x))},{default:A(()=>[ce(i.$slots,"default")]),_:3},8,["style"]))}}),z_=H_,W_=Le({__name:"ScrollAreaScrollbarY",setup(e){const t=Lt(),n=Yo(),{forwardRef:r,currentElement:s}=_t();Ve(()=>{s.value&&t.onScrollbarYChange(s.value)});const o=Y(()=>n.sizes.value);return(i,l)=>(g(),H(Hd,{ref:B(r),"is-horizontal":!1,"data-orientation":"vertical",style:Et({top:0,right:B(t).dir.value==="ltr"?0:void 0,left:B(t).dir.value==="rtl"?0:void 0,bottom:"var(--reka-scroll-area-corner-height)","--reka-scroll-area-thumb-height":o.value?`${B(Xo)(o.value)}px`:void 0}),onOnDragScroll:l[0]||(l[0]=a=>B(n).onDragScroll(a.y))},{default:A(()=>[ce(i.$slots,"default")]),_:3},8,["style"]))}}),K_=W_,X_=Le({__name:"ScrollAreaScrollbarAuto",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Lt(),n=Ps(),{forwardRef:r}=_t(),s=K(!1),o=Zl(()=>{if(t.viewport.value){const i=t.viewport.value.offsetWidth<t.viewport.value.scrollWidth,l=t.viewport.value.offsetHeight<t.viewport.value.scrollHeight;s.value=n.isHorizontal.value?i:l}},10);return Ve(()=>o()),Nr(t.viewport,o),Nr(t.content,o),(i,l)=>(g(),H(B(Ko),{present:i.forceMount||s.value},{default:A(()=>[R(oa,Xe(i.$attrs,{ref:B(r),"data-state":s.value?"visible":"hidden"}),{default:A(()=>[ce(i.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),sa=X_,Y_=Le({inheritAttrs:!1,__name:"ScrollAreaScrollbarGlimpse",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Lt(),n=Ps(),{forwardRef:r}=_t(),{state:s,dispatch:o}=ra("hidden",{hidden:{POINTER_ENTER:"glimpse",SCROLL:"scrolling"},glimpse:{HIDE:"hidden",POINTER_LEAVE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"glimpse"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),i=Y(()=>s.value!=="hidden");function l(){o("POINTER_ENTER")}function a(){o("POINTER_LEAVE")}const c=Zl(()=>o("SCROLL_END"),100);return wr(u=>{if(s.value==="glimpse"){const f=window.setTimeout(o,t.scrollHideDelay.value,"HIDE");u(()=>{window.clearTimeout(f)})}}),wr(u=>{if(s.value==="idle"){const f=window.setTimeout(o,t.scrollHideDelay.value,"HIDE");u(()=>{window.clearTimeout(f)})}}),wr(u=>{const f=t.viewport.value,d=n.isHorizontal.value?"scrollLeft":"scrollTop";if(f){let p=f[d];const h=()=>{const m=f[d];p!==m&&(o("SCROLL"),c()),p=m};f.addEventListener("scroll",h),u(()=>{f.removeEventListener("scroll",h)})}}),Ve(()=>{const u=t.scrollArea.value;u&&(u.addEventListener("pointerenter",l),u.addEventListener("pointerleave",a))}),st(()=>{const u=t.scrollArea.value;u&&(u.removeEventListener("pointerenter",l),u.removeEventListener("pointerleave",a))}),(u,f)=>(g(),H(B(Ko),{present:u.forceMount||i.value},{default:A(()=>[R(sa,Xe(u.$attrs,{ref:B(r),"data-state":i.value?"visible":"hidden"}),{default:A(()=>[ce(u.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),J_=Y_,Q_=Le({inheritAttrs:!1,__name:"ScrollAreaScrollbarHover",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Lt(),{forwardRef:n}=_t();let r;const s=K(!1);function o(){window.clearTimeout(r),s.value=!0}function i(){r=window.setTimeout(()=>{s.value=!1},t.scrollHideDelay.value)}return Ve(()=>{const l=t.scrollArea.value;l&&(l.addEventListener("pointerenter",o),l.addEventListener("pointerleave",i))}),st(()=>{const l=t.scrollArea.value;l&&(window.clearTimeout(r),l.removeEventListener("pointerenter",o),l.removeEventListener("pointerleave",i))}),(l,a)=>(g(),H(B(Ko),{present:l.forceMount||s.value},{default:A(()=>[R(sa,Xe(l.$attrs,{ref:B(n),"data-state":s.value?"visible":"hidden"}),{default:A(()=>[ce(l.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),Z_=Q_,eb=Le({__name:"ScrollAreaScrollbarScroll",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=Lt(),n=Ps(),{forwardRef:r}=_t(),{state:s,dispatch:o}=ra("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),i=Y(()=>s.value!=="hidden");wr(a=>{if(s.value==="idle"){const c=window.setTimeout(o,t.scrollHideDelay.value,"HIDE");a(()=>{window.clearTimeout(c)})}});const l=Zl(()=>o("SCROLL_END"),100);return wr(a=>{const c=t.viewport.value,u=n.isHorizontal.value?"scrollLeft":"scrollTop";if(c){let f=c[u];const d=()=>{const p=c[u];f!==p&&(o("SCROLL"),l()),f=p};c.addEventListener("scroll",d),a(()=>{c.removeEventListener("scroll",d)})}}),(a,c)=>(g(),H(B(Ko),{present:a.forceMount||i.value},{default:A(()=>[R(oa,Xe(a.$attrs,{ref:B(r),"data-state":i.value?"visible":"hidden"}),{default:A(()=>[ce(a.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),tb=eb;const[Ps,nb]=Dr("ScrollAreaScrollbar");var rb=Le({inheritAttrs:!1,__name:"ScrollAreaScrollbar",props:{orientation:{type:String,required:!1,default:"vertical"},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,{forwardRef:n}=_t(),r=Lt(),s=Y(()=>t.orientation==="horizontal");Te(s,()=>{s.value?r.onScrollbarXEnabledChange(!0):r.onScrollbarYEnabledChange(!0)},{immediate:!0}),st(()=>{r.onScrollbarXEnabledChange(!1),r.onScrollbarYEnabledChange(!1)});const{orientation:o,forceMount:i,asChild:l,as:a}=Mr(t);return nb({orientation:o,forceMount:i,isHorizontal:s,as:a,asChild:l}),(c,u)=>B(r).type.value==="hover"?(g(),H(Z_,Xe({key:0},c.$attrs,{ref:B(n),"force-mount":B(i)}),{default:A(()=>[ce(c.$slots,"default")]),_:3},16,["force-mount"])):B(r).type.value==="scroll"?(g(),H(tb,Xe({key:1},c.$attrs,{ref:B(n),"force-mount":B(i)}),{default:A(()=>[ce(c.$slots,"default")]),_:3},16,["force-mount"])):B(r).type.value==="glimpse"?(g(),H(J_,Xe({key:2},c.$attrs,{ref:B(n),"force-mount":B(i)}),{default:A(()=>[ce(c.$slots,"default")]),_:3},16,["force-mount"])):B(r).type.value==="auto"?(g(),H(sa,Xe({key:3},c.$attrs,{ref:B(n),"force-mount":B(i)}),{default:A(()=>[ce(c.$slots,"default")]),_:3},16,["force-mount"])):B(r).type.value==="always"?(g(),H(oa,Xe({key:4},c.$attrs,{ref:B(n),"data-state":"visible"}),{default:A(()=>[ce(c.$slots,"default")]),_:3},16)):W("v-if",!0)}}),Kc=rb;const[Yo,sb]=Dr("ScrollAreaScrollbarVisible");var ob=Le({__name:"ScrollAreaScrollbarVisible",setup(e){const t=Lt(),n=Ps(),{forwardRef:r}=_t(),s=K({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),o=Y(()=>{const v=qd(s.value.viewport,s.value.content);return v>0&&v<1}),i=K(),l=K(0);function a(v,w){if(p.value){const C=t.viewport.value.scrollLeft+v.deltaY;t.viewport.value.scrollLeft=C,Wc(C,w)&&v.preventDefault()}else{const C=t.viewport.value.scrollTop+v.deltaY;t.viewport.value.scrollTop=C,Wc(C,w)&&v.preventDefault()}}function c(v,w){p.value?l.value=w.x:l.value=w.y}function u(v){l.value=0}function f(v){s.value=v}function d(v,w){return q_(v,l.value,s.value,w)}const p=Y(()=>n.isHorizontal.value);function h(v){p.value?t.viewport.value.scrollLeft=d(v,t.dir.value):t.viewport.value.scrollTop=d(v)}function m(){if(p.value){if(t.viewport.value&&i.value){const v=t.viewport.value.scrollLeft,w=zc(v,s.value,t.dir.value);i.value.style.transform=`translate3d(${w}px, 0, 0)`}}else if(t.viewport.value&&i.value){const v=t.viewport.value.scrollTop,w=zc(v,s.value);i.value.style.transform=`translate3d(0, ${w}px, 0)`}}function _(v){i.value=v}return sb({sizes:s,hasThumb:o,handleWheelScroll:a,handleThumbDown:c,handleThumbUp:u,handleSizeChange:f,onThumbPositionChange:m,onThumbChange:_,onDragScroll:h}),(v,w)=>p.value?(g(),H(z_,Xe({key:0},v.$attrs,{ref:B(r)}),{default:A(()=>[ce(v.$slots,"default")]),_:3},16)):(g(),H(K_,Xe({key:1},v.$attrs,{ref:B(r)}),{default:A(()=>[ce(v.$slots,"default")]),_:3},16))}}),oa=ob,ib=Le({__name:"ScrollAreaScrollbarImpl",props:{isHorizontal:{type:Boolean,required:!0}},emits:["onDragScroll","onWheelScroll","onThumbPointerDown"],setup(e,{emit:t}){const n=e,r=t,s=Lt(),o=Yo(),i=Ps(),{forwardRef:l,currentElement:a}=_t(),c=K(""),u=K();function f(v){var w,C;if(u.value){const $=v.clientX-((w=u.value)==null?void 0:w.left),V=v.clientY-((C=u.value)==null?void 0:C.top);r("onDragScroll",{x:$,y:V})}}function d(v){v.button===0&&(v.target.setPointerCapture(v.pointerId),u.value=a.value.getBoundingClientRect(),c.value=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",s.viewport&&(s.viewport.value.style.scrollBehavior="auto"),f(v))}function p(v){f(v)}function h(v){const w=v.target;w.hasPointerCapture(v.pointerId)&&w.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=c.value,s.viewport&&(s.viewport.value.style.scrollBehavior=""),u.value=void 0}function m(v){var V;const w=v.target,C=(V=a.value)==null?void 0:V.contains(w),$=o.sizes.value.content-o.sizes.value.viewport;C&&o.handleWheelScroll(v,$)}Ve(()=>{document.addEventListener("wheel",m,{passive:!1})}),st(()=>{document.removeEventListener("wheel",m)});function _(){var v,w,C,$,V;a.value&&(n.isHorizontal?o.handleSizeChange({content:((v=s.viewport.value)==null?void 0:v.scrollWidth)??0,viewport:((w=s.viewport.value)==null?void 0:w.offsetWidth)??0,scrollbar:{size:a.value.clientWidth??0,paddingStart:Us(getComputedStyle(a.value).paddingLeft),paddingEnd:Us(getComputedStyle(a.value).paddingRight)}}):o.handleSizeChange({content:((C=s.viewport.value)==null?void 0:C.scrollHeight)??0,viewport:(($=s.viewport.value)==null?void 0:$.offsetHeight)??0,scrollbar:{size:((V=a.value)==null?void 0:V.clientHeight)??0,paddingStart:Us(getComputedStyle(a.value).paddingTop),paddingEnd:Us(getComputedStyle(a.value).paddingBottom)}}),o.onThumbPositionChange())}return Nr(a,_),Nr(s.content,_),(v,w)=>(g(),H(B(Ot),{ref:B(l),style:{position:"absolute"},"data-scrollbarimpl":"",as:B(i).as.value,"as-child":B(i).asChild.value,onPointerdown:d,onPointermove:p,onPointerup:h},{default:A(()=>[ce(v.$slots,"default")]),_:3},8,["as","as-child"]))}}),Hd=ib,lb=Le({__name:"ScrollAreaThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=Lt(),r=Yo();function s(d){const h=d.target.getBoundingClientRect(),m=d.clientX-h.left,_=d.clientY-h.top;r.handleThumbDown(d,{x:m,y:_})}function o(d){r.handleThumbUp(d)}const{forwardRef:i,currentElement:l}=_t(),a=K(),c=Y(()=>n.viewport.value);function u(){if(!a.value){const d=U_(c.value,r.onThumbPositionChange);a.value=d,r.onThumbPositionChange()}}const f=Y(()=>r.sizes.value);return a_(f,()=>{r.onThumbChange(l.value),c.value&&(r.onThumbPositionChange(),c.value.addEventListener("scroll",u))}),st(()=>{var d;c.value.removeEventListener("scroll",u),(d=n.viewport.value)==null||d.removeEventListener("scroll",u)}),(d,p)=>(g(),H(B(Ot),{ref:B(i),"data-state":B(r).hasThumb?"visible":"hidden",style:{width:"var(--reka-scroll-area-thumb-width)",height:"var(--reka-scroll-area-thumb-height)"},"as-child":t.asChild,as:d.as,onPointerdown:s,onPointerup:o},{default:A(()=>[ce(d.$slots,"default")]),_:3},8,["data-state","as-child","as"]))}}),Xc=lb,ab=Le({inheritAttrs:!1,__name:"ScrollAreaViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const n=e,{nonce:r}=Mr(n),s=I_(r),o=Lt(),i=K();Ve(()=>{o.onViewportChange(i.value),o.onContentChange(a.value)}),t({viewportElement:i});const{forwardRef:l,currentElement:a}=_t();return(c,u)=>(g(),k(se,null,[x("div",Xe({ref_key:"viewportElement",ref:i,"data-reka-scroll-area-viewport":"",style:{overflowX:B(o).scrollbarXEnabled.value?"scroll":"hidden",overflowY:B(o).scrollbarYEnabled.value?"scroll":"hidden"}},c.$attrs,{tabindex:0}),[R(B(Ot),{ref:B(l),style:Et({minWidth:B(o).scrollbarXEnabled.value?"fit-content":void 0}),"as-child":n.asChild,as:c.as},{default:A(()=>[ce(c.$slots,"default")]),_:3},8,["style","as-child","as"])],16),R(B(Ot),{as:"style",nonce:B(s)},{default:A(()=>u[0]||(u[0]=[ae(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-scroll-area-viewport] { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; } [data-reka-scroll-area-viewport]::-webkit-scrollbar { display:none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),cb=ab;const[zd,ub]=Dr("ToggleGroupRoot");var fb=Le({__name:"ToggleGroupRoot",props:{rovingFocus:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{loop:s,rovingFocus:o,disabled:i,dir:l}=Mr(n),a=na(l),{forwardRef:c,currentElement:u}=_t(),{modelValue:f,changeModelValue:d,isSingle:p}=y_(n,r),h=Fd(u);return ub({isSingle:p,modelValue:f,changeModelValue:d,dir:a,orientation:n.orientation,loop:s,rovingFocus:o,disabled:i}),(m,_)=>(g(),H(Ts(B(o)?B(P_):B(Ot)),{"as-child":"",orientation:B(o)?m.orientation:void 0,dir:B(a),loop:B(o)?B(s):void 0},{default:A(()=>[R(B(Ot),{ref:B(c),role:"group","as-child":m.asChild,as:m.as},{default:A(()=>[ce(m.$slots,"default",{modelValue:B(f)}),B(h)&&m.name?(g(),H(Gd,{key:0,name:m.name,required:m.required,value:B(f)},null,8,["name","required","value"])):W("v-if",!0)]),_:3},8,["as-child","as"])]),_:3},8,["orientation","dir","loop"]))}}),db=fb,pb=Le({__name:"Toggle",props:{defaultValue:{type:Boolean,required:!1},modelValue:{type:[Boolean,null],required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s,currentElement:o}=_t(),i=zd(null),l=ea(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0});function a(){l.value=!l.value}const c=Y(()=>l.value?"on":"off"),u=Fd(o);return(f,d)=>(g(),H(B(Ot),{ref:B(s),type:f.as==="button"?"button":void 0,"as-child":n.asChild,as:f.as,"aria-pressed":B(l),"data-state":c.value,"data-disabled":f.disabled?"":void 0,disabled:f.disabled,onClick:a},{default:A(()=>[ce(f.$slots,"default",{modelValue:B(l),disabled:f.disabled,pressed:B(l),state:c.value}),B(u)&&f.name&&!B(i)?(g(),H(Gd,{key:0,type:"checkbox",name:f.name,value:B(l),required:f.required},null,8,["name","value","required"])):W("v-if",!0)]),_:3},8,["type","as-child","as","aria-pressed","data-state","data-disabled","disabled"]))}}),hb=pb,gb=Le({__name:"ToggleGroupItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=zd(),r=Y(()=>{var i;return((i=n.disabled)==null?void 0:i.value)||t.disabled}),s=Y(()=>Ld(n.modelValue.value,t.value)),{forwardRef:o}=_t();return(i,l)=>(g(),H(Ts(B(n).rovingFocus.value?B(L_):B(Ot)),Xe({"as-child":""},B(n).rovingFocus.value?{focusable:!r.value,active:s.value}:{}),{default:A(()=>[R(B(hb),Xe(t,{ref:B(o),disabled:r.value,"model-value":s.value,"onUpdate:modelValue":l[0]||(l[0]=a=>B(n).changeModelValue(i.value))}),{default:A(a=>[ce(i.$slots,"default",bh(Zf(a)))]),_:3},16,["disabled","model-value"])]),_:3},16))}}),mb=gb;const vb={__name:"ScrollArea",props:{height:{type:[String,Number],default:null},maxHeight:{type:[String,Number],default:null},idleMs:{type:Number,default:1500},always:{type:Boolean,default:!1}},setup(e){const t=e,n=K(!1);let r=null;const s=()=>{n.value=!0,clearTimeout(r),r=setTimeout(()=>{n.value=!1},t.idleMs)},o=()=>{clearTimeout(r),n.value=!1};Rs(()=>clearTimeout(r));const i=a=>a==null?void 0:typeof a=="number"?`${a}px`:a,l=Y(()=>({height:i(t.height),maxHeight:i(t.maxHeight)}));return(a,c)=>(g(),H(B(B_),{class:_e(["pc-scrollarea",{"pc-scrollarea--show":e.always||n.value}]),type:"auto",onPointerenter:s,onPointermove:s,onPointerleave:o,onWheel:s},{default:A(()=>[R(B(cb),{class:"pc-scrollarea__viewport",style:Et(l.value),onScroll:s},{default:A(()=>[ce(a.$slots,"default",{},void 0,!0)]),_:3},8,["style"]),R(B(Kc),{class:"pc-scrollarea__bar",orientation:"vertical"},{default:A(()=>[R(B(Xc),{class:"pc-scrollarea__thumb"})]),_:1}),R(B(Kc),{class:"pc-scrollarea__bar",orientation:"horizontal"},{default:A(()=>[R(B(Xc),{class:"pc-scrollarea__thumb"})]),_:1}),R(B(V_),{class:"pc-scrollarea__corner"})]),_:3},8,["class"]))}},Pr=we(vb,[["__scopeId","data-v-ae8703e4"]]),yb={class:"pc-sidenav"},_b={key:0,class:"pc-sidenav__header"},bb={class:"pc-sidenav__sections-list"},wb={key:0,class:"pc-sidenav__section-title"},Cb={class:"pc-sidenav__items"},Sb={key:0,class:"pc-sidenav__icon"},kb={key:0,class:"pc-sidenav__indicator"},xb={class:"pc-sidenav__name"},Eb={key:1,class:"pc-sidenav__badge"},Ab={key:1,class:"pc-sidenav__footer"},$b={__name:"SideNav",props:{sections:{type:Array,required:!0},activeKey:{type:[String,Number,null],default:null},indicators:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,s=o=>o.active??o.key===n.activeKey;return(o,i)=>(g(),k("nav",yb,[o.$slots.header?(g(),k("header",_b,[ce(o.$slots,"header",{},void 0,!0)])):W("",!0),R(Pr,{class:"pc-sidenav__sections",height:"100%"},{default:A(()=>[x("div",bb,[(g(!0),k(se,null,ve(e.sections,l=>(g(),k("div",{key:l.title,class:"pc-sidenav__section"},[l.title?(g(),k("div",wb,N(l.title),1)):W("",!0),x("ul",Cb,[(g(!0),k(se,null,ve(l.items,a=>(g(),k("li",{key:a.key},[(g(),H(Ts(a.to?"a":"button"),{href:a.to,type:"button",class:_e(["pc-sidenav__link",{"pc-sidenav__link--active":s(a)}]),onClick:c=>r("select",a)},{default:A(()=>[ce(o.$slots,"icon",{item:a},()=>[a.icon?(g(),k("span",Sb,N(a.icon),1)):W("",!0)],!0),e.indicators&&!a.icon&&!o.$slots.icon?(g(),k("span",kb)):W("",!0),x("span",xb,N(a.label),1),a.badge!=null&&a.badge!==0?(g(),k("span",Eb,N(a.badge),1)):W("",!0)]),_:2},1032,["href","class","onClick"]))]))),128))])]))),128))])]),_:3}),o.$slots.footer?(g(),k("footer",Ab,[ce(o.$slots,"footer",{},void 0,!0)])):W("",!0)]))}},Ib=we($b,[["__scopeId","data-v-81e139ba"]]);let Rb=0;const mo=lr([]),Or=new Map;function Wd(e){const t=Or.get(e);t&&(t.startedAt=Date.now(),t.handle=setTimeout(()=>vo(e),t.remaining))}function ze(e){const t={id:++Rb,variant:"neutral",duration:4e3,...e};return mo.push(t),t.duration>0&&(Or.set(t.id,{handle:null,remaining:t.duration,startedAt:0}),Wd(t.id)),t.id}ze.info=(e,t={})=>ze({...t,title:e,variant:"info"});ze.success=(e,t={})=>ze({...t,title:e,variant:"success"});ze.warning=(e,t={})=>ze({...t,title:e,variant:"warning"});ze.error=(e,t={})=>ze({...t,title:e,variant:"danger"});function Tb(e){const t=Or.get(e);!t||!t.handle||(clearTimeout(t.handle),t.handle=null,t.remaining-=Date.now()-t.startedAt)}function Nb(e){const t=Or.get(e);if(!(!t||t.handle)){if(t.remaining<=0){vo(e);return}Wd(e)}}function vo(e){const t=Or.get(e);t&&(clearTimeout(t.handle),Or.delete(e));const n=mo.findIndex(r=>r.id===e);n>=0&&mo.splice(n,1)}const Pb=["onMouseenter","onMouseleave"],Ob={class:"pc-toast__icon","aria-hidden":"true"},Lb={width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},Mb={class:"pc-toast__body"},Db={class:"pc-toast__eyebrow"},Bb={key:0,class:"pc-toast__title"},Fb={key:1,class:"pc-toast__desc"},jb=["onClick"],Gb=["onClick"],Vb={key:0,class:"pc-toast__progress","aria-hidden":"true"},Ub={__name:"Notifications",props:{position:{type:String,default:"bottom-right"},tinted:{type:Boolean,default:!1}},setup(e){const t=n=>({info:"Info",success:"Success",warning:"Warning",danger:"Error",neutral:"Notice"})[n]||"Notice";return(n,r)=>(g(),H(Cf,{to:"body"},[x("div",{class:_e(["pc-notifications",`pc-notifications--${e.position}`]),role:"region","aria-label":"Notifications"},[R(Nm,{name:"pc-toast",tag:"div",class:"pc-notifications__stack"},{default:A(()=>[(g(!0),k(se,null,ve(B(mo),s=>(g(),k("article",{key:s.id,class:_e(["pc-toast",`pc-toast--${s.variant}`,{"pc-toast--tinted":e.tinted}]),role:"status","aria-live":"polite",onMouseenter:o=>B(Tb)(s.id),onMouseleave:o=>B(Nb)(s.id)},[x("span",Ob,[(g(),k("svg",Lb,[s.variant==="success"?(g(),k(se,{key:0},[r[0]||(r[0]=x("circle",{cx:"12",cy:"12",r:"10"},null,-1)),r[1]||(r[1]=x("path",{d:"m9 12 2 2 4-4"},null,-1))],64)):s.variant==="warning"?(g(),k(se,{key:1},[r[2]||(r[2]=x("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"},null,-1)),r[3]||(r[3]=x("path",{d:"M12 9v4"},null,-1)),r[4]||(r[4]=x("path",{d:"M12 17h.01"},null,-1))],64)):s.variant==="danger"?(g(),k(se,{key:2},[r[5]||(r[5]=x("circle",{cx:"12",cy:"12",r:"10"},null,-1)),r[6]||(r[6]=x("path",{d:"m15 9-6 6"},null,-1)),r[7]||(r[7]=x("path",{d:"m9 9 6 6"},null,-1))],64)):s.variant==="info"?(g(),k(se,{key:3},[r[8]||(r[8]=x("circle",{cx:"12",cy:"12",r:"10"},null,-1)),r[9]||(r[9]=x("path",{d:"M12 16v-4"},null,-1)),r[10]||(r[10]=x("path",{d:"M12 8h.01"},null,-1))],64)):(g(),k(se,{key:4},[r[11]||(r[11]=x("path",{d:"M10.268 21a2 2 0 0 0 3.464 0"},null,-1)),r[12]||(r[12]=x("path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8a6 6 0 0 0-12 0c0 4.499-1.41 5.956-2.738 7.326z"},null,-1))],64))]))]),x("div",Mb,[x("div",Db,N(s.eyebrow||t(s.variant)),1),s.title?(g(),k("div",Bb,N(s.title),1)):W("",!0),s.description?(g(),k("div",Fb,N(s.description),1)):W("",!0),s.action?(g(),k("button",{key:2,type:"button",class:"pc-toast__action",onClick:o=>{var i,l;(l=(i=s.action).onClick)==null||l.call(i),B(vo)(s.id)}},N(s.action.label),9,jb)):W("",!0)]),x("button",{type:"button",class:"pc-toast__close","aria-label":"Dismiss",onClick:o=>B(vo)(s.id)},[...r[13]||(r[13]=[x("svg",{width:"11",height:"11",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true"},[x("path",{d:"M4 4l6 6M10 4l-6 6",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round"})],-1)])],8,Gb),s.duration>0?(g(),k("div",Vb,[x("div",{class:"pc-toast__progress-bar",style:Et({animationDuration:s.duration+"ms"})},null,4)])):W("",!0)],42,Pb))),128))]),_:1})],2)]))}},qb=we(Ub,[["__scopeId","data-v-2e45b02a"]]),Hb={__name:"App",setup(e){const t=K({queue:!1,cron:!1,limit:[],workflow:!1,realtime:!1,cells:[],lock:[]}),n=Ho(),r=qo();Ve(async()=>{const l=await fetch(Ue("/config"));l.ok&&(t.value=await l.json())});const s=Y(()=>{var a,c,u;const l=[{key:"/",label:"Overview",icon:"lucide:layout-dashboard"}];return t.value.realtime&&l.push({key:"/realtime",label:"Realtime",icon:"lucide:radio-tower"}),(a=t.value.cells)!=null&&a.length&&l.push({key:"/cells",label:"Cells",icon:"lucide:network"}),(c=t.value.lock)!=null&&c.length&&l.push({key:"/locks",label:"Locks",icon:"lucide:lock"}),t.value.queue&&l.push({key:"/queue",label:"Queue",icon:"lucide:layers"}),t.value.cron&&l.push({key:"/cron",label:"Cron",icon:"lucide:clock"}),(u=t.value.limit)!=null&&u.length&&l.push({key:"/limits",label:"Limits",icon:"lucide:gauge"}),t.value.workflow&&(l.push({key:"/workflows",label:"Workflows",icon:"lucide:workflow"}),l.push({key:"/executions",label:"Executions",icon:"lucide:history"})),[{items:l}]}),o=Y(()=>{const l=n.path;if(l==="/")return"/";const a=s.value[0].items.filter(c=>c.key!=="/").find(c=>l.startsWith(c.key));return a?a.key:"/"});function i(l){n.path!==l.key&&r.push(l.key)}return(l,a)=>{const c=Tf("router-view");return g(),k(se,null,[R(e_,{"nav-width":"232px"},{nav:A(()=>[R(Ib,{sections:s.value,"active-key":o.value,onSelect:i},{header:A(()=>[...a[0]||(a[0]=[x("div",{class:"brand"},[x("span",{class:"brand__mark"},"prsm"),x("span",{class:"brand__sub"},"devtools")],-1)])]),icon:A(({item:u})=>[R(B(ll),{icon:u.icon,class:"nav-icon"},null,8,["icon"])]),_:1},8,["sections","active-key"])]),default:A(()=>[R(c,{config:t.value},null,8,["config"])]),_:1}),R(qb,{position:"bottom-right"})],64)}}},zb=we(Hb,[["__scopeId","data-v-c31f9d14"]]);function Os(){const e=K([]);let t=null;return Ve(()=>{t=new EventSource(Ue("/events"));for(const n of["queue:new","queue:complete","queue:retry","queue:failed","queue:drain","cron:fire","cron:error","workflow:execution:queued","workflow:execution:succeeded","workflow:execution:failed","workflow:execution:canceled","workflow:execution:lease-lost","workflow:step:started","workflow:step:succeeded","workflow:step:routed","workflow:step:retry","workflow:step:failed","cells:change"])t.addEventListener(n,r=>{const s=JSON.parse(r.data);e.value.unshift({type:n,data:s,ts:Date.now()}),e.value.length>400&&(e.value.length=400)})}),st(()=>{t&&t.close()}),e}const Wb={__name:"PastelBg",props:{variant:{type:String,default:"default"}},setup(e){return(t,n)=>(g(),k("div",{class:_e(["pc-pastel",`pc-pastel--${e.variant}`])},[ce(t.$slots,"default",{},void 0,!0)],2))}},Kb=we(Wb,[["__scopeId","data-v-50f5b86b"]]),Xb={__name:"Display",props:{size:{type:String,default:"xl"},as:{type:String,default:"h1"}},setup(e){return(t,n)=>(g(),H(Ts(e.as),{class:_e(["pc-display",`pc-display--${e.size}`])},{default:A(()=>[ce(t.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}},Yb=we(Xb,[["__scopeId","data-v-2f00b0bb"]]),Jb={__name:"SectionLabel",props:{size:{type:String,default:"sm"},dark:{type:Boolean,default:!1}},setup(e){return(t,n)=>(g(),k("div",{class:_e(["pc-section-label",`pc-section-label--${e.size}`,{"pc-section-label--dark":e.dark}])},[ce(t.$slots,"default",{},void 0,!0)],2))}},Kd=we(Jb,[["__scopeId","data-v-4dff4d3d"]]),Qb={key:0,class:"pc-toggrp__icon"},Zb={key:1},ew={__name:"ToggleGroup",props:{modelValue:{type:[String,Number,Array,null],default:null},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},size:{type:String,default:"md"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,r=s=>typeof s=="object"&&s!==null?s:{value:s,label:String(s)};return(s,o)=>(g(),H(B(db),{"model-value":e.modelValue,"onUpdate:modelValue":o[0]||(o[0]=i=>n("update:modelValue",i)),type:e.multiple?"multiple":"single",disabled:e.disabled,rovingFocus:!0,class:_e(["pc-toggrp",`pc-toggrp--${e.size}`])},{default:A(()=>[(g(!0),k(se,null,ve(e.options.map(r),i=>(g(),H(B(mb),{key:i.value,value:i.value,disabled:i.disabled,class:"pc-toggrp__item"},{default:A(()=>[i.icon?(g(),k("span",Qb,N(i.icon),1)):W("",!0),i.label?(g(),k("span",Zb,N(i.label),1)):W("",!0)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["model-value","type","disabled","class"]))}},tw=we(ew,[["__scopeId","data-v-7721d594"]]),nw={class:"pc-panel__header-main"},rw={key:0,class:"pc-panel__title"},sw={key:1,class:"pc-panel__description"},ow={key:0,class:"pc-panel__aside"},iw={__name:"Panel",props:{title:{type:String,default:""},description:{type:String,default:""},gradient:{type:Boolean,default:!1},elevated:{type:Boolean,default:!1},accent:{type:String,default:"none"}},setup(e){return(t,n)=>(g(),k("div",{class:_e(["pc-panel",`pc-panel--accent-${e.accent}`,{"pc-panel--elevated":e.elevated}])},[e.title||e.description||t.$slots.header?(g(),k("header",{key:0,class:_e(["pc-panel__header",{"pc-panel__header--gradient":e.gradient}])},[x("div",nw,[ce(t.$slots,"header",{},()=>[e.title?(g(),k("h3",rw,N(e.title),1)):W("",!0),e.description?(g(),k("p",sw,N(e.description),1)):W("",!0)],!0)]),t.$slots.aside?(g(),k("div",ow,[ce(t.$slots,"aside",{},void 0,!0)])):W("",!0)],2)):W("",!0),ce(t.$slots,"default",{},void 0,!0)],2))}},Re=we(iw,[["__scopeId","data-v-325c8212"]]),lw={__name:"Badge",props:{variant:{type:String,default:"default"},size:{type:String,default:"sm"},dot:{type:Boolean,default:!1}},setup(e){return(t,n)=>(g(),k("span",{class:_e(["pc-badge",`pc-badge--${e.variant}`,`pc-badge--${e.size}`,{"pc-badge--dot":e.dot}])},[ce(t.$slots,"default",{},void 0,!0)],2))}},Ye=we(lw,[["__scopeId","data-v-139f78cc"]]),aw={class:"pc-empty"},cw={key:0,class:"pc-empty__icon"},uw={key:1,class:"pc-empty__title"},fw={key:2,class:"pc-empty__desc"},dw={key:3,class:"pc-empty__actions"},pw={__name:"EmptyState",props:{title:{type:String,default:""},description:{type:String,default:""},icon:{type:String,default:""}},setup(e){return(t,n)=>(g(),k("div",aw,[e.icon?(g(),k("div",cw,N(e.icon),1)):W("",!0),e.title?(g(),k("div",uw,N(e.title),1)):W("",!0),e.description?(g(),k("div",fw,N(e.description),1)):W("",!0),t.$slots.default?(g(),k("div",dw,[ce(t.$slots,"default",{},void 0,!0)])):W("",!0)]))}},ct=we(pw,[["__scopeId","data-v-9778752f"]]),hw={class:"hero__inner"},gw={class:"page-body"},mw={class:"page-section"},vw={class:"filter-row"},yw={class:"page-section"},_w={key:0,class:"stream"},bw={class:"event__source"},ww={class:"event__data"},Cw={class:"event__time"},Sw={__name:"Overview",props:{config:Object},setup(e){const t=e,n=Os(),r=K([]);function s(m){return new Date(m).toLocaleTimeString()}function o(m){return m.split(":")[0]}function i(m){const _=m.split(":");return _[0]==="workflow"?_.slice(1).join(":"):_[1]}const l=new Set(["complete","fire","execution:succeeded","step:succeeded","change"]),a=new Set(["failed","error","execution:failed","step:failed","execution:lease-lost"]),c=new Set(["retry","step:retry"]),u=new Set(["step:routed"]);function f(m){const _=i(m);return l.has(_)?"active":a.has(_)?"failed":c.has(_)?"warning":u.has(_)?"paused":"default"}Te(()=>t.config,m=>{var v,w;if(!m)return;const _=[];m.queue&&_.push("queue"),m.cron&&_.push("cron"),(v=m.limit)!=null&&v.length&&_.push("limit"),m.workflow&&_.push("workflow"),(w=m.cells)!=null&&w.length&&_.push("cells"),r.value=_},{immediate:!0,deep:!0});const d=Y(()=>{var m,_,v,w,C,$,V;return[{value:"queue",label:"Queue",disabled:!((m=t.config)!=null&&m.queue)},{value:"cron",label:"Cron",disabled:!((_=t.config)!=null&&_.cron)},{value:"limit",label:"Limit",disabled:!((w=(v=t.config)==null?void 0:v.limit)!=null&&w.length)},{value:"workflow",label:"Workflow",disabled:!((C=t.config)!=null&&C.workflow)},{value:"cells",label:"Cells",disabled:!((V=($=t.config)==null?void 0:$.cells)!=null&&V.length)}]}),p=Y(()=>new Date().toLocaleDateString(void 0,{weekday:"long",month:"long",day:"numeric"})),h=Y(()=>n.value.filter(m=>r.value.includes(o(m.type))));return(m,_)=>(g(),k("div",null,[R(Kb,{class:"hero"},{default:A(()=>[x("div",hw,[R(Kd,null,{default:A(()=>[ae(N(p.value),1)]),_:1}),R(Yb,{size:"lg",class:"hero__title"},{default:A(()=>[..._[1]||(_[1]=[ae("Runtime overview",-1)])]),_:1})])]),_:1}),x("div",gw,[x("section",mw,[x("div",vw,[_[2]||(_[2]=x("span",{class:"filter-row__label"},"Subsystems",-1)),R(tw,{multiple:"","model-value":r.value,options:d.value,"onUpdate:modelValue":_[0]||(_[0]=v=>r.value=v||[])},null,8,["model-value","options"])])]),x("section",yw,[R(Re,{title:"Event stream",description:"Newest events first, streamed live over SSE."},{default:A(()=>[h.value.length?(g(),k("div",_w,[(g(!0),k(se,null,ve(h.value.slice(0,100),(v,w)=>(g(),k("div",{key:w,class:"event"},[x("span",bw,N(o(v.type)),1),R(Ye,{variant:f(v.type),size:"sm"},{default:A(()=>[ae(N(i(v.type)),1)]),_:2},1032,["variant"]),x("span",ww,N(JSON.stringify(v.data)),1),x("span",Cw,N(s(v.ts)),1)]))),128))])):(g(),H(ct,{key:1,title:"Waiting for events",description:"Activity from connected subsystems will appear here as it happens."}))]),_:1})])])]))}},kw=we(Sw,[["__scopeId","data-v-2fb8289b"]]),xw={class:"pc-page-header__main"},Ew={key:0,class:"pc-page-header__breadcrumbs"},Aw={key:1,class:"pc-page-header__eyebrow"},$w={key:2,class:"pc-page-header__title"},Iw={key:3,class:"pc-page-header__subtitle"},Rw={key:0,class:"pc-page-header__actions"},Tw={__name:"PageHeader",props:{title:{type:String,default:""},subtitle:{type:String,default:""},eyebrow:{type:String,default:""},size:{type:String,default:"default"},padded:{type:Boolean,default:!0}},setup(e){return(t,n)=>(g(),k("header",{class:_e(["pc-page-header",`pc-page-header--${e.size}`,{"pc-page-header--padded":e.padded}])},[x("div",xw,[t.$slots.breadcrumbs?(g(),k("div",Ew,[ce(t.$slots,"breadcrumbs",{},void 0,!0)])):W("",!0),e.eyebrow?(g(),k("div",Aw,N(e.eyebrow),1)):W("",!0),e.title||t.$slots.title?(g(),k("h1",$w,[ce(t.$slots,"title",{},()=>[ae(N(e.title),1)],!0)])):W("",!0),e.subtitle||t.$slots.subtitle?(g(),k("p",Iw,[ce(t.$slots,"subtitle",{},()=>[ae(N(e.subtitle),1)],!0)])):W("",!0)]),t.$slots.actions?(g(),k("div",Rw,[ce(t.$slots,"actions",{},void 0,!0)])):W("",!0)],2))}},Gn=we(Tw,[["__scopeId","data-v-43c87a3b"]]),Nw={__name:"Card",props:{padded:{type:Boolean,default:!1},elevated:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1},radius:{type:String,default:"comfy"}},setup(e){return(t,n)=>(g(),k("div",{class:_e(["pc-card",`pc-card--${e.radius}`,{"pc-card--padded":e.padded,"pc-card--elevated":e.elevated,"pc-card--dark":e.dark,"pc-card--interactive":e.interactive}])},[ce(t.$slots,"default",{},void 0,!0)],2))}},es=we(Nw,[["__scopeId","data-v-1cf20208"]]),Pw={class:"pc-stat"},Ow={key:0,class:"pc-stat__label"},Lw={key:1,class:"pc-stat__caption"},Mw={__name:"Stat",props:{value:{type:[String,Number],required:!0},label:{type:String,default:""},caption:{type:String,default:""},size:{type:String,default:"lg"}},setup(e){return(t,n)=>(g(),k("div",Pw,[e.label?(g(),k("div",Ow,N(e.label),1)):W("",!0),x("div",{class:_e(["pc-stat__value",`pc-stat__value--${e.size}`])},[ce(t.$slots,"value",{},()=>[ae(N(e.value),1)],!0)],2),e.caption||t.$slots.caption?(g(),k("div",Lw,[ce(t.$slots,"caption",{},()=>[ae(N(e.caption),1)],!0)])):W("",!0)]))}},ts=we(Mw,[["__scopeId","data-v-876006d9"]]),Dw={class:"page-body"},Bw={class:"page-section"},Fw={class:"stats-grid"},jw={class:"page-section"},Gw={key:0,class:"stream"},Vw={class:"event__data"},Uw={class:"event__time"},qw={__name:"Queue",setup(e){const t=K(0),n=Os();let r=null;async function s(){const a=await fetch(Ue("/queue"));if(a.ok){const c=await a.json();t.value=c.inFlight}}Ve(()=>{s(),r=setInterval(s,1e3)}),st(()=>{r&&clearInterval(r)});const o=Y(()=>n.value.filter(a=>a.type.startsWith("queue:")).slice(0,100)),i=Y(()=>{let a=0,c=0,u=0;for(const f of n.value)f.type==="queue:complete"&&a++,f.type==="queue:failed"&&c++,f.type==="queue:retry"&&u++;return{completed:a,failed:c,retried:u}}),l={complete:"active",failed:"failed",retry:"warning",new:"default",drain:"default"};return(a,c)=>(g(),k("div",null,[R(Gn,{eyebrow:"Job queue",title:"Queue",subtitle:"In-flight work right now, plus completed, failed, and retried counts for this session."}),x("div",Dw,[x("section",Bw,[x("div",Fw,[R(es,{padded:"",elevated:""},{default:A(()=>[R(ts,{label:"In-flight",value:t.value,caption:"jobs running right now",size:"lg"},null,8,["value"])]),_:1}),R(es,{padded:"",elevated:""},{default:A(()=>[R(ts,{label:"Completed",value:i.value.completed,caption:"since page load",size:"lg"},null,8,["value"])]),_:1}),R(es,{padded:"",elevated:""},{default:A(()=>[R(ts,{label:"Failed",value:i.value.failed,caption:"since page load",size:"lg"},null,8,["value"])]),_:1}),R(es,{padded:"",elevated:""},{default:A(()=>[R(ts,{label:"Retried",value:i.value.retried,caption:"since page load",size:"lg"},null,8,["value"])]),_:1})])]),x("section",jw,[R(Re,{title:"Events",description:"Queue lifecycle events, newest first."},{default:A(()=>[o.value.length?(g(),k("div",Gw,[(g(!0),k(se,null,ve(o.value,(u,f)=>(g(),k("div",{key:f,class:"event"},[R(Ye,{variant:l[u.type.split(":")[1]]||"default",size:"sm"},{default:A(()=>[ae(N(u.type.split(":")[1]),1)]),_:2},1032,["variant"]),x("span",Vw,N(JSON.stringify(u.data)),1),x("span",Uw,N(new Date(u.ts).toLocaleTimeString()),1)]))),128))])):(g(),H(ct,{key:1,title:"No queue events yet",description:"Job activity will appear here as it happens."}))]),_:1})])])]))}},Hw=we(qw,[["__scopeId","data-v-d058c0bc"]]),zw=["type","disabled","aria-busy"],Ww={key:0,class:"pc-btn__spinner pc-btn__spinner--solo","aria-hidden":"true"},Kw={class:"pc-btn__label"},Xw={key:1,class:"pc-btn__hint"},Yw={__name:"Button",props:{variant:{type:String,default:"primary"},size:{type:String,default:"md"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingLabel:{type:String,default:""},hint:{type:String,default:""},icon:{type:String,default:""},type:{type:String,default:"button"}},setup(e){const t=e,n=wg(),r=Y(()=>!!t.icon&&!n.default),s=K(null);let o=null;return Te(()=>t.loading,async()=>{var h;const i=s.value;if(!i||r.value||((h=window.matchMedia)==null?void 0:h.call(window,"(prefers-reduced-motion: reduce)").matches))return;o&&o();const a=i.getBoundingClientRect().width;i.style.width=`${a}px`,await Cn(),i.style.transition="none",i.style.width="auto";const c=i.getBoundingClientRect().width;if(i.style.width=`${a}px`,i.offsetWidth,i.style.transition="",Math.abs(c-a)<.5){i.style.width="";return}i.style.width=`${c}px`;let u=!1;const f=()=>{u||(u=!0,i.style.width="",i.removeEventListener("transitionend",d),clearTimeout(p),o=null)},d=m=>{m.propertyName==="width"&&f()},p=setTimeout(f,500);o=f,i.addEventListener("transitionend",d)}),(i,l)=>(g(),k("button",{ref_key:"btnRef",ref:s,type:e.type,disabled:e.disabled||e.loading,"aria-busy":e.loading||void 0,class:_e(["pc-btn",`pc-btn--${e.variant}`,`pc-btn--${e.size}`,{"pc-btn--loading":e.loading,"pc-btn--icon":r.value}])},[r.value?(g(),k(se,{key:0},[e.loading?(g(),k("span",Ww)):(g(),H(B(ll),{key:1,icon:e.icon,class:"pc-btn__icon","aria-hidden":"true"},null,8,["icon"]))],64)):(g(),k(se,{key:1},[x("span",{class:_e(["pc-btn__spinner-wrap",{"pc-btn__spinner-wrap--on":e.loading}]),"aria-hidden":"true"},[...l[0]||(l[0]=[x("span",{class:"pc-btn__spinner"},null,-1)])],2),e.icon?(g(),H(B(ll),{key:0,icon:e.icon,class:"pc-btn__icon","aria-hidden":"true"},null,8,["icon"])):W("",!0),x("span",Kw,[e.loading&&e.loadingLabel?(g(),k(se,{key:0},[ae(N(e.loadingLabel),1)],64)):ce(i.$slots,"default",{key:1},void 0,!0)]),e.hint?(g(),k("span",Xw,N(e.hint),1)):W("",!0)],64))],10,zw))}},Ke=we(Yw,[["__scopeId","data-v-5243cd51"]]),Jw={class:"page-body"},Qw={class:"page-section"},Zw={key:0,class:"cron-grid"},e0={class:"cron-card__head"},t0={class:"cron-card__name"},n0={class:"page-section"},r0={key:0,class:"stream"},s0={class:"event__name"},o0={class:"event__time"},i0={__name:"Cron",setup(e){const t=K([]),n=Os(),r=K(Date.now()),s=K(null);let o=null,i=null;async function l(){const d=await fetch(Ue("/cron"));if(d.ok){const p=await d.json();t.value=p.jobs}}Ve(()=>{l(),o=setInterval(l,2e3),i=setInterval(()=>{r.value=Date.now()},1e3)}),st(()=>{o&&clearInterval(o),i&&clearInterval(i)});const a=Y(()=>n.value.filter(d=>d.type.startsWith("cron:")).slice(0,100));function c(d){if(!d)return"—";const p=new Date(d).getTime()-r.value;return p<0?"now":p<1e3?"<1s":`${Math.ceil(p/1e3)}s`}function u(d){const p=c(d);return p==="now"||p==="<1s"}async function f(d){s.value=d;try{const p=await fetch(Ue(`/cron/${encodeURIComponent(d)}/run`),{method:"POST"}),h=await p.json().catch(()=>({}));p.ok?h.ran===!1?ze.warning("Job not run",{description:h.reason==="already running"?"This exclusive job is already running.":h.reason||"The job did not run."}):ze.success(`Triggered ${d}`,{description:"See the events below for the result."}):ze.error("Run failed",{description:h.error||"The job could not be run."})}catch(p){ze.error("Run failed",{description:p.message})}finally{s.value=null}}return(d,p)=>(g(),k("div",null,[R(Gn,{eyebrow:"Scheduler",title:"Cron",subtitle:"Registered scheduled jobs with live countdowns to their next fire, and a log of fires and errors."}),x("div",Jw,[x("section",Qw,[t.value.length?(g(),k("div",Zw,[(g(!0),k(se,null,ve(t.value,h=>(g(),H(es,{key:h.name,padded:"",elevated:"",class:_e(["cron-card",{"cron-card--soon":u(h.nextFireTime)}])},{default:A(()=>[x("div",e0,[x("span",t0,N(h.name),1),R(Ke,{size:"sm",variant:"ghost",icon:"lucide:play",loading:s.value===h.name,onClick:m=>f(h.name)},{default:A(()=>[...p[0]||(p[0]=[ae("Run",-1)])]),_:1},8,["loading","onClick"])]),R(ts,{label:"Next fire",value:c(h.nextFireTime),caption:h.nextFireTime?`at ${new Date(h.nextFireTime).toLocaleTimeString()}`:"no schedule",size:"md"},null,8,["value","caption"])]),_:2},1032,["class"]))),128))])):(g(),H(Re,{key:1},{default:A(()=>[R(ct,{title:"No cron jobs registered",description:"Scheduled jobs will appear here once registered."})]),_:1}))]),x("section",n0,[R(Re,{title:"Events",description:"Fires and errors, newest first."},{default:A(()=>[a.value.length?(g(),k("div",r0,[(g(!0),k(se,null,ve(a.value,(h,m)=>(g(),k("div",{key:m,class:"event"},[R(Ye,{variant:h.type.split(":")[1]==="error"?"failed":"active",size:"sm"},{default:A(()=>[ae(N(h.type.split(":")[1]),1)]),_:2},1032,["variant"]),x("span",s0,N(h.data.name),1),x("span",o0,N(new Date(h.ts).toLocaleTimeString()),1)]))),128))])):(g(),H(ct,{key:1,title:"No cron events yet",description:"Job fires will appear here as they happen."}))]),_:1})])])]))}},l0=we(i0,[["__scopeId","data-v-77f64544"]]),a0={key:0,class:"pc-panel__section-head"},c0={key:0,class:"pc-panel__section-label"},u0={key:1,class:"pc-panel__section-action"},f0={__name:"PanelSection",props:{label:{type:String,default:""},flush:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},tone:{type:String,default:"default"}},setup(e){return(t,n)=>(g(),k("section",{class:_e(["pc-panel__section",`pc-panel__section--tone-${e.tone}`,{"pc-panel__section--flush":e.flush,"pc-panel__section--gradient":e.gradient}])},[e.label||t.$slots.label||t.$slots.action?(g(),k("div",a0,[e.label||t.$slots.label?(g(),k("div",c0,[ce(t.$slots,"label",{},()=>[ae(N(e.label),1)],!0)])):W("",!0),t.$slots.action?(g(),k("div",u0,[ce(t.$slots,"action",{},void 0,!0)])):W("",!0)])):W("",!0),ce(t.$slots,"default",{},void 0,!0)],2))}},xe=we(f0,[["__scopeId","data-v-15c2ae0a"]]),d0=["id","type","value","placeholder","disabled","readonly"],p0={__name:"Input",props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},size:{type:String,default:"md"},id:{type:String,default:void 0}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=e,s=n,o=u=>s("update:modelValue",u.target.value),i=K(null);t({focus:()=>{var u;return(u=i.value)==null?void 0:u.focus()},select:()=>{var u;return(u=i.value)==null?void 0:u.select()},el:i});const c=Y(()=>["pc-input",`pc-input--${r.size}`,{"pc-input--invalid":r.invalid}]);return(u,f)=>(g(),k("input",{id:e.id,ref_key:"inputRef",ref:i,class:_e(c.value),type:e.type,value:e.modelValue,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,onInput:o},null,42,d0))}},h0=we(p0,[["__scopeId","data-v-e8794190"]]),g0={class:"lp-title"},m0=["title"],v0={class:"lp-row__state"},y0={key:1,class:"lp-empty"},_0={key:0,class:"lp-result"},b0={class:"lp-row__key"},w0={class:"lp-row__state"},C0={key:1,class:"lp-error"},S0={__name:"LimiterPanel",props:{name:{type:String,required:!0}},setup(e){const t=e,n=K([]),r=K(!1),s=K(""),o=K(null),i=K(null),l=K(!1),a=K(null);let c=null;async function u(){const h=await fetch(Ue(`/limits/${encodeURIComponent(t.name)}/keys`));if(h.ok){const m=await h.json();n.value=m.keys}r.value=!0}Ve(()=>{u(),c=setInterval(u,3e3)}),st(()=>{c&&clearInterval(c)});function f(h){return h?h.total!==void 0?`${h.remaining} left · ${h.total} used`:`${h.remaining} left`:""}async function d(){const h=s.value.trim();if(h){l.value=!0,i.value=null,o.value=null;try{const m=await fetch(Ue(`/limits/${encodeURIComponent(t.name)}/peek/${encodeURIComponent(h)}`)),_=await m.json().catch(()=>({}));m.ok?o.value={key:h,..._}:i.value=_.error||"Peek failed."}catch(m){i.value=m.message}finally{l.value=!1}}}async function p(h){var m;a.value=h;try{const _=await fetch(Ue(`/limits/${encodeURIComponent(t.name)}/reset/${encodeURIComponent(h)}`),{method:"POST"}),v=await _.json().catch(()=>({}));_.ok?(ze.success("Key reset",{description:`"${h}" cleared on "${t.name}".`}),((m=o.value)==null?void 0:m.key)===h&&await d()):ze.error("Reset failed",{description:v.error||"The key could not be reset."}),await u()}catch(_){ze.error("Reset failed",{description:_.message})}finally{a.value=null}}return(h,m)=>(g(),H(Re,null,{header:A(()=>[x("h3",g0,N(e.name),1)]),default:A(()=>[R(xe,{label:"Recent keys"},{default:A(()=>[n.value.length?(g(),H(Pr,{key:0,"max-height":"280px"},{default:A(()=>[(g(!0),k(se,null,ve(n.value,_=>(g(),k("div",{key:_.key,class:"lp-row"},[x("span",{class:"lp-row__key",title:_.key},N(_.key),9,m0),x("span",v0,N(f(_)),1),R(Ke,{size:"sm",variant:"ghost",loading:a.value===_.key,onClick:v=>p(_.key)},{default:A(()=>[...m[2]||(m[2]=[ae("Reset",-1)])]),_:1},8,["loading","onClick"])]))),128))]),_:1})):(g(),k("p",y0,N(r.value?"No keys touched yet.":"Loading…"),1))]),_:1}),R(xe,{label:"Look up a key"},{default:A(()=>[x("form",{class:"lp-lookup",onSubmit:Wn(d,["prevent"])},[R(h0,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=_=>s.value=_),placeholder:"Exact key name",class:"lp-lookup__input"},null,8,["modelValue"]),R(Ke,{type:"submit",variant:"primary",loading:l.value,disabled:!s.value.trim()},{default:A(()=>[...m[3]||(m[3]=[ae(" Peek ",-1)])]),_:1},8,["loading","disabled"])],32),o.value?(g(),k("div",_0,[x("span",b0,N(o.value.key),1),x("span",w0,N(f(o.value)),1),R(Ke,{size:"sm",variant:"ghost",loading:a.value===o.value.key,onClick:m[1]||(m[1]=_=>p(o.value.key))},{default:A(()=>[...m[4]||(m[4]=[ae("Reset",-1)])]),_:1},8,["loading"])])):W("",!0),i.value?(g(),k("p",C0,N(i.value),1)):W("",!0)]),_:1})]),_:1}))}},k0=we(S0,[["__scopeId","data-v-0ff96548"]]),x0={class:"page-body"},E0={key:1,class:"limit-grid"},A0={__name:"Limits",setup(e){const t=K([]),n=K(!1);return Ve(async()=>{const r=await fetch(Ue("/limits"));if(r.ok){const s=await r.json();t.value=s.limiters}n.value=!0}),(r,s)=>(g(),k("div",null,[R(Gn,{eyebrow:"Rate limiting",title:"Limits",subtitle:"Registered limiters, their most recently touched keys, and a peek-and-reset tool for any key."}),x("div",x0,[n.value&&!t.value.length?(g(),H(ct,{key:0,title:"No limiters registered",description:"Named limiters passed to devtools will appear here."})):(g(),k("div",E0,[(g(!0),k(se,null,ve(t.value,o=>(g(),H(k0,{key:o,name:o},null,8,["name"]))),128))]))])]))}},$0=we(A0,[["__scopeId","data-v-032f65d9"]]),I0=["viewBox"],R0=["d"],T0=["x","y"],N0=["onClick"],P0=["x","y","width","height"],O0=["x","y"],L0=["x","y"],M0=["x","y"],D0=["x","y"],B0=["x","y"],F0={__name:"WorkflowGraph",props:{graph:{type:Object,required:!0},execution:{type:Object,default:null},selectedStep:{type:String,default:null}},emits:["select-step"],setup(e,{emit:t}){const n=e,r=t,s=K(null),o=K(!1),i=K(0),l=K(0),a=K(1);let c=!1,u=!1,f=0,d=0;function p(O){O.preventDefault();const q=O.deltaY>0?.96:1.04,I=Math.min(3,Math.max(.3,a.value*q)),le=s.value.getBoundingClientRect(),de=O.clientX-le.left,$e=O.clientY-le.top;i.value=de-(de-i.value)*(I/a.value),l.value=$e-($e-l.value)*(I/a.value),a.value=I}function h(O){O.button===0&&(c=!0,u=!1,f=O.clientX,d=O.clientY)}function m(O){if(!c)return;const q=O.clientX-f,I=O.clientY-d;(q!==0||I!==0)&&(u=!0),i.value+=q,l.value+=I,f=O.clientX,d=O.clientY}function _(){c=!1}function v(O){u||r("select-step",O)}function w(){i.value=0,l.value=0,a.value=1}function C(){o.value=!o.value,w()}function $(O){O.key==="Escape"&&o.value&&(o.value=!1,w())}Ve(()=>window.addEventListener("keydown",$)),st(()=>window.removeEventListener("keydown",$));function V(O){const q=(O==null?void 0:O.nodes)??[],I=(O==null?void 0:O.edges)??[],le=new Map(q.map(F=>[F.name,0])),de=new Map(q.map(F=>[F.name,[]]));for(const F of I)le.has(F.to)&&le.set(F.to,le.get(F.to)+1),de.has(F.from)&&de.get(F.from).push(F);const $e=[O.start],Ee=new Map([[O.start,0]]);for(;$e.length;){const F=$e.shift();for(const X of de.get(F)??[]){const oe=(Ee.get(F)??0)+1;(!Ee.has(X.to)||oe>Ee.get(X.to))&&Ee.set(X.to,oe),le.set(X.to,Math.max(0,(le.get(X.to)??0)-1)),le.get(X.to)===0&&$e.push(X.to)}}const Ce=[];for(const F of q){const X=Ee.get(F.name)??0;Ce[X]=Ce[X]??[],Ce[X].push(F)}const Se=[],ut=220,ft=92,ht=90,qe=34,U=32;for(let F=0;F<Ce.length;F++){const X=Ce[F]??[];X.sort((ue,b)=>ue.name.localeCompare(b.name));const oe=X.length*ft+Math.max(0,X.length-1)*qe;for(let ue=0;ue<X.length;ue++){const b=X[ue];Se.push({...b,x:U+F*(ut+ht),y:U+ue*(ft+qe)+Math.max(0,(380-oe)/2),width:ut,height:ft})}}const Z=new Map(Se.map(F=>[F.name,F])),ee=new Map;for(const F of I){const X=`${F.from}->${F.to}`;ee.has(X)||ee.set(X,[]),ee.get(X).push(F)}const ge=26,D=[];for(const F of ee.values())F.forEach((X,oe)=>{const ue=Z.get(X.from),b=Z.get(X.to);if(!ue||!b)return;const S=ue.x+ue.width,y=ue.y+ue.height/2,E=b.x,T=b.y+b.height/2,M=(oe-(F.length-1)/2)*ge,ne=(S+E)/2,re=y+M*1.6,te=T+M*1.6;D.push({...X,d:`M ${S} ${y} C ${ne} ${re}, ${ne} ${te}, ${E} ${T}`,labelX:ne,labelY:(y+T)/2+M-7})});return{nodes:Se,edges:D,width:Math.max(760,...Se.map(F=>F.x+F.width+U)),height:Math.max(420,...Se.map(F=>F.y+F.height+U))}}const z=Y(()=>V(n.graph));function L(O){var q,I;return((I=(q=n.execution)==null?void 0:q.steps)==null?void 0:I[O])??null}function G(O,q){var le,de;const I=L(O);return((le=n.execution)==null?void 0:le.currentStep)===O&&n.execution.status==="running"?"running":(I==null?void 0:I.status)==="succeeded"?q==="decision"?"decision-success":"succeeded":(I==null?void 0:I.status)==="failed"?"failed":((de=n.execution)==null?void 0:de.currentStep)===O?"current":"idle"}function P(O){var I;if(!n.execution)return"edge";const q=L(O.from);return q!=null&&q.route&&q.route===O.label?"edge edge-active":((I=L(O.from))==null?void 0:I.status)==="succeeded"&&L(O.to)?"edge edge-seen":"edge"}return(O,q)=>(g(),k("div",{ref_key:"container",ref:s,class:_e(["graph-shell",{fullscreen:o.value}]),onWheel:Wn(p,["prevent"]),onPointerdown:h,onPointermove:m,onPointerup:_},[x("div",{class:"graph-controls",onPointerdown:q[0]||(q[0]=Wn(()=>{},["stop"])),onWheel:q[1]||(q[1]=Wn(()=>{},["stop"]))},[R(Ke,{size:"sm",variant:"ghost",onClick:Wn(w,["stop"])},{default:A(()=>[...q[2]||(q[2]=[ae("1:1",-1)])]),_:1}),R(Ke,{size:"sm",variant:"ghost",icon:o.value?"lucide:minimize-2":"lucide:maximize-2",onClick:Wn(C,["stop"])},{default:A(()=>[ae(N(o.value?"Exit":"Expand"),1)]),_:1},8,["icon"])],32),(g(),k("svg",{viewBox:`0 0 ${z.value.width} ${z.value.height}`,class:"graph",style:Et({transform:`translate(${i.value}px, ${l.value}px) scale(${a.value})`,transformOrigin:"0 0"})},[x("g",null,[(g(!0),k(se,null,ve(z.value.edges,I=>(g(),k("path",{key:`${I.from}:${I.to}:${I.label}`,d:I.d,class:_e(P(I))},null,10,R0))),128)),(g(!0),k(se,null,ve(z.value.edges,I=>(g(),k("text",{key:`${I.from}:${I.to}:${I.label}:label`,x:I.labelX,y:I.labelY,class:"edge-label","text-anchor":"middle"},N(I.label),9,T0))),128))]),(g(!0),k(se,null,ve(z.value.nodes,I=>{var le,de;return g(),k("g",{key:I.name,class:_e(["node",[I.type,G(I.name,I.type),{selected:e.selectedStep===I.name}]]),onClick:Wn($e=>v(I.name),["stop"])},[x("rect",{x:I.x,y:I.y,width:I.width,height:I.height,rx:"10"},null,8,P0),x("text",{x:I.x+16,y:I.y+28,class:"node-name"},N(I.label||I.name),9,O0),x("text",{x:I.x+16,y:I.y+50,class:"node-type"},N(I.type),9,L0),I.type==="subworkflow"&&I.workflow?(g(),k("text",{key:0,x:I.x+16,y:I.y+72,class:"node-meta node-meta--sub"}," ↳ "+N(I.workflow),9,M0)):(le=L(I.name))!=null&&le.attempts?(g(),k("text",{key:1,x:I.x+16,y:I.y+72,class:"node-meta"}," attempts "+N(L(I.name).attempts),9,D0)):((de=I.retry)==null?void 0:de.maxAttempts)>1?(g(),k("text",{key:2,x:I.x+16,y:I.y+72,class:"node-meta"}," retries "+N(I.retry.maxAttempts),9,B0)):W("",!0)],10,N0)}),128))],12,I0))],34))}},Xd=we(F0,[["__scopeId","data-v-00bfdd81"]]),j0={class:"pc-kv__label"},G0={class:"pc-kv__value"},V0={__name:"KeyValue",props:{items:{type:Array,default:()=>[]},layout:{type:String,default:"row"},labelWidth:{type:String,default:"120px"},compact:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},dividers:{type:Boolean,default:!0}},setup(e){return(t,n)=>(g(),k("dl",{class:_e(["pc-kv",`pc-kv--${e.layout}`,{"pc-kv--compact":e.compact,"pc-kv--boxed":e.boxed,"pc-kv--no-dividers":!e.dividers}]),style:Et({"--pc-kv-label-w":e.labelWidth})},[(g(!0),k(se,null,ve(e.items,(r,s)=>(g(),k("div",{key:s,class:"pc-kv__row"},[x("dt",j0,[ce(t.$slots,"label",{item:r},()=>[ae(N(r.label),1)],!0)]),x("dd",G0,[ce(t.$slots,"value",{item:r},()=>[ae(N(r.value),1)],!0)])]))),128)),ce(t.$slots,"default",{},void 0,!0)],6))}},Bn=we(V0,[["__scopeId","data-v-47f66a07"]]),U0={key:0,class:"pc-modal-root"},q0={key:0,class:"pc-modal__header"},H0={class:"pc-modal__title"},z0={class:"pc-modal__body"},W0={key:1,class:"pc-modal__footer"},K0={__name:"Modal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},size:{type:String,default:"md"},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0}},emits:["update:modelValue","close"],setup(e,{emit:t}){const n=e,r=t,s=()=>{r("update:modelValue",!1),r("close")},o=i=>{i.key==="Escape"&&n.closeOnEsc&&s()};return Te(()=>n.modelValue,i=>{i?(document.addEventListener("keydown",o),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",o),document.body.style.overflow="")},{immediate:!0}),Rs(()=>{document.removeEventListener("keydown",o),document.body.style.overflow=""}),(i,l)=>(g(),H(Cf,{to:"body"},[R(cm,{name:"pc-modal",duration:260},{default:A(()=>[e.modelValue?(g(),k("div",U0,[x("div",{class:"pc-modal-backdrop",onClick:l[0]||(l[0]=a=>e.closeOnBackdrop&&s())}),x("div",{class:_e(["pc-modal",`pc-modal--${e.size}`]),role:"dialog","aria-modal":"true"},[e.title||i.$slots.header?(g(),k("header",q0,[ce(i.$slots,"header",{},()=>[x("h3",H0,N(e.title),1)],!0),x("button",{class:"pc-modal__close",type:"button","aria-label":"Close",onClick:s},[...l[1]||(l[1]=[x("svg",{width:"13",height:"13",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true"},[x("path",{d:"M4 4l6 6M10 4l-6 6",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round"})],-1)])])])):W("",!0),x("div",z0,[ce(i.$slots,"default",{close:s},void 0,!0)]),i.$slots.footer?(g(),k("footer",W0,[ce(i.$slots,"footer",{close:s},void 0,!0)])):W("",!0)],2)])):W("",!0)]),_:3})]))}},Yd=we(K0,[["__scopeId","data-v-857b2e8d"]]),X0=["id","value","rows","placeholder","disabled","readonly"],Y0={__name:"Textarea",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},rows:{type:Number,default:4},id:{type:String,default:void 0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,r=s=>n("update:modelValue",s.target.value);return(s,o)=>(g(),k("textarea",{id:e.id,class:_e(["pc-textarea",{"pc-textarea--invalid":e.invalid}]),value:e.modelValue,rows:e.rows,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,onInput:r},null,42,X0))}},Jd=we(Y0,[["__scopeId","data-v-0e1f9e40"]]),J0={class:"pc-crumbs","aria-label":"Breadcrumb"},Q0={class:"pc-crumbs__list"},Z0={key:0,class:"pc-crumbs__item pc-crumbs__item--ellipsis","aria-hidden":"true"},eC={key:0,class:"pc-crumbs__icon"},tC={key:2,class:"pc-crumbs__sep","aria-hidden":"true"},nC={__name:"Breadcrumbs",props:{items:{type:Array,required:!0},separator:{type:String,default:"/"},maxItems:{type:Number,default:0}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,s=Y(()=>{if(!n.maxItems||n.items.length<=n.maxItems)return n.items.map(a=>({...a,_kind:"item"}));const i=n.items[0],l=n.items.slice(-(n.maxItems-2));return[{...i,_kind:"item"},{_kind:"ellipsis",hidden:n.items.slice(1,-(n.maxItems-2))},...l.map(a=>({...a,_kind:"item"}))]}),o=(i,l,a)=>{l||i.to||(a.preventDefault(),r("select",i))};return(i,l)=>(g(),k("nav",J0,[x("ol",Q0,[(g(!0),k(se,null,ve(s.value,(a,c)=>(g(),k(se,{key:c},[a._kind==="ellipsis"?(g(),k("li",Z0,[...l[0]||(l[0]=[x("span",{class:"pc-crumbs__ellipsis"},"…",-1)])])):(g(),k("li",{key:1,class:_e(["pc-crumbs__item",{"pc-crumbs__item--current":c===s.value.length-1}])},[(g(),H(Ts(a.to&&c!==s.value.length-1?"a":"span"),{href:a.to,class:_e(["pc-crumbs__link",{"pc-crumbs__link--current":c===s.value.length-1}]),"aria-current":c===s.value.length-1?"page":void 0,onClick:u=>o(a,c===s.value.length-1,u)},{default:A(()=>[a.icon?(g(),k("span",eC,[ce(i.$slots,"icon",{item:a},()=>[ae(N(a.icon),1)],!0)])):W("",!0),x("span",null,N(a.label),1)]),_:2},1032,["href","class","aria-current","onClick"]))],2)),c<s.value.length-1?(g(),k("li",tC,[ce(i.$slots,"separator",{},()=>[ae(N(e.separator),1)],!0)])):W("",!0)],64))),128))])]))}},Qd=we(nC,[["__scopeId","data-v-f4f9c695"]]),rC={class:"page-body"},sC={key:2,class:"wf-layout"},oC={class:"wf-list"},iC=["onClick"],lC={class:"wf-card__head"},aC={class:"wf-card__name"},cC={key:0,class:"wf-detail"},uC={class:"wf-title"},fC={class:"wf-sub"},dC={class:"wf-stats"},pC={key:0,class:"wf-node-desc"},hC={class:"wf-sub-row"},gC={class:"wf-sub-target"},mC={key:0},vC={key:1,class:"wf-sub-missing"},yC={key:0,class:"run-modal"},_C={class:"run-modal__meta"},bC={class:"run-modal__field"},wC={key:0,class:"run-modal__error"},CC={__name:"Workflows",setup(e){const t=Ho(),n=qo(),r=K([]),s=K(""),o=K(""),i=K(null),l=K([]),a=K(!1),c=K("{}"),u=K(null),f=K(!1);async function d(){const G=await fetch(Ue("/workflows"));if(!G.ok){i.value="Failed to load workflows.";return}const P=await G.json();r.value=P.workflows;const O=typeof t.query.workflow=="string"?t.query.workflow:"",q=r.value[0]?`${r.value[0].name}@${r.value[0].version}`:"";s.value=r.value.some(I=>`${I.name}@${I.version}`===O)?O:q}Ve(d),Te(s,G=>{var O;if(!G)return;n.replace({query:{workflow:G}});const P=(O=p.value)==null?void 0:O.graph;o.value=(P==null?void 0:P.start)??""}),Te(()=>t.query.workflow,G=>{typeof G=="string"&&G!==s.value&&(s.value=G)});const p=Y(()=>r.value.find(G=>`${G.name}@${G.version}`===s.value)??null),h=Y(()=>{var G,P,O;return((O=(P=(G=p.value)==null?void 0:G.graph)==null?void 0:P.nodes)==null?void 0:O.find(q=>q.name===o.value))??null}),m=Y(()=>{var P;const G=h.value;return G?[{label:"Type",value:G.type},{label:"Timeout",value:G.timeout??"—"},{label:"Retries",value:((P=G.retry)==null?void 0:P.maxAttempts)??1}]:[]});function _(G){var P;return((P=r.value.find(O=>`${O.name}@${O.version}`===G))==null?void 0:P.name)??G}const v=Y(()=>{const G=h.value;if(!G||G.type!=="subworkflow"||!G.workflow)return null;const P=`${G.workflow}@${G.version}`;if(r.value.some(q=>`${q.name}@${q.version}`===P))return P;const O=r.value.find(q=>q.name===G.workflow);return O?`${O.name}@${O.version}`:null});function w(G){l.value=[],s.value=G}function C(){v.value&&(l.value=[...l.value,s.value],s.value=v.value)}const $=Y(()=>[...l.value,s.value].map((G,P)=>({label:_(G),key:G,index:P})));function V(G){l.value=l.value.slice(0,G.index),s.value=G.key}function z(){c.value="{}",u.value=null,a.value=!0}async function L(){if(!p.value)return;let G;try{G=c.value.trim()?JSON.parse(c.value):{}}catch(P){u.value=`Invalid JSON: ${P.message}`;return}f.value=!0,u.value=null;try{const P=await fetch(Ue("/workflow/start"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:p.value.name,version:p.value.version,input:G})}),O=await P.json();if(!P.ok){u.value=O.error||"Failed to start workflow.";return}a.value=!1,n.push({path:"/executions",query:{execution:O.id}})}catch(P){u.value=P.message}finally{f.value=!1}}return(G,P)=>{var O;return g(),k("div",null,[R(Gn,{eyebrow:"Definitions",title:"Workflows",subtitle:"Registered workflow definitions and their step graphs."},{actions:A(()=>[R(Ke,{variant:"primary",icon:"lucide:play",disabled:!p.value,onClick:z},{default:A(()=>[...P[3]||(P[3]=[ae(" Run workflow ",-1)])]),_:1},8,["disabled"])]),_:1}),x("div",rC,[i.value?(g(),H(ct,{key:0,title:"Could not load workflows",description:i.value},null,8,["description"])):r.value.length?(g(),k("div",sC,[x("aside",oC,[(g(!0),k(se,null,ve(r.value,q=>(g(),k("button",{key:`${q.name}@${q.version}`,type:"button",class:_e(["wf-card",{"wf-card--active":`${q.name}@${q.version}`===s.value}]),onClick:I=>w(`${q.name}@${q.version}`)},[x("div",lC,[x("span",aC,N(q.name),1),R(Ye,{size:"sm"},{default:A(()=>[ae("v"+N(q.version),1)]),_:2},1024)])],10,iC))),128))]),p.value?(g(),k("section",cC,[l.value.length?(g(),H(Qd,{key:0,items:$.value,separator:"›",onSelect:V},null,8,["items"])):W("",!0),R(Re,{gradient:"",elevated:""},{header:A(()=>[x("h2",uC,N(p.value.name),1),x("p",fC,"Version "+N(p.value.version),1)]),aside:A(()=>[x("div",dC,[x("span",null,N(p.value.graph.nodes.length)+" steps",1),P[4]||(P[4]=x("span",{class:"wf-card__dot"},null,-1)),x("span",null,N(p.value.graph.edges.length)+" edges",1)])]),default:A(()=>[R(xe,{flush:""},{default:A(()=>[R(Xd,{graph:p.value.graph,"selected-step":o.value,onSelectStep:P[0]||(P[0]=q=>o.value=q)},null,8,["graph","selected-step"])]),_:1})]),_:1}),h.value?(g(),H(Re,{key:1,title:h.value.name},{default:A(()=>[R(xe,{label:"Step definition"},{default:A(()=>[R(Bn,{layout:"divided",boxed:"",items:m.value},null,8,["items"]),h.value.description?(g(),k("p",pC,N(h.value.description),1)):W("",!0)]),_:1}),h.value.type==="subworkflow"?(g(),H(xe,{key:0,label:"Subworkflow"},{default:A(()=>[x("div",hC,[x("span",gC,[ae(N(h.value.workflow),1),h.value.version?(g(),k("span",mC," · v"+N(h.value.version),1)):W("",!0)]),v.value?(g(),H(Ke,{key:0,size:"sm",variant:"ghost",icon:"lucide:corner-down-right",onClick:C},{default:A(()=>[...P[5]||(P[5]=[ae("Open workflow",-1)])]),_:1})):(g(),k("span",vC,"not registered"))])]),_:1})):W("",!0)]),_:1},8,["title"])):W("",!0)])):W("",!0)])):(g(),H(ct,{key:1,title:"No workflows registered",description:"Workflow definitions will appear here once registered."}))]),R(Yd,{modelValue:a.value,"onUpdate:modelValue":P[2]||(P[2]=q=>a.value=q),title:`Run ${((O=p.value)==null?void 0:O.name)??"workflow"}`},{footer:A(({close:q})=>[R(Ke,{variant:"ghost",onClick:q},{default:A(()=>[...P[7]||(P[7]=[ae("Cancel",-1)])]),_:1},8,["onClick"]),R(Ke,{variant:"primary",loading:f.value,"loading-label":"Starting",onClick:L},{default:A(()=>[...P[8]||(P[8]=[ae(" Run workflow ",-1)])]),_:1},8,["loading"])]),default:A(()=>[p.value?(g(),k("div",yC,[x("p",_C,N(p.value.name)+" · version "+N(p.value.version),1),x("div",bC,[P[6]||(P[6]=x("label",{class:"run-modal__label"},"Input (JSON)",-1)),R(Jd,{modelValue:c.value,"onUpdate:modelValue":P[1]||(P[1]=q=>c.value=q),rows:9,invalid:!!u.value,placeholder:'{ "subject": "..." }'},null,8,["modelValue","invalid"])]),u.value?(g(),k("p",wC,N(u.value),1)):W("",!0)])):W("",!0)]),_:1},8,["modelValue","title"])])}}},SC=we(CC,[["__scopeId","data-v-c6748205"]]);let it=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function kC(e){return ia(e)}function ia(e){return Array.isArray(e)?xC(e):e instanceof RegExp?e:typeof e=="object"?EC(e):e}function xC(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=ia(e[n]);return t}function EC(e){let t={};for(let n in e)t[n]=ia(e[n]);return t}function Zd(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function ep(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?ep(e.substring(0,e.length-1)):e.substr(~t+1)}var Ei=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,qs=class{static hasCaptures(e){return e===null?!1:(Ei.lastIndex=0,Ei.test(e))}static replaceCaptures(e,t,n){return e.replace(Ei,(r,s,o,i)=>{let l=n[parseInt(s||o,10)];if(l){let a=t.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(i){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function tp(e,t){return e<t?-1:e>t?1:0}function np(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let s=0;s<n;s++){let o=tp(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Yc(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function rp(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var sp=class{constructor(e){j(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},yo=class{constructor(e,t,n){j(this,"_cachedMatchRoot",new sp(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(IC(e),t)}static createFromParsedTheme(e,t){return TC(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(s=>AC(e.parent,s.parentScopes));return r?new op(r.fontStyle,r.foreground,r.background):null}},Ai=class to{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new to(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new to(n,t[r]);return n}push(t){return new to(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function AC(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],s=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],s=!0}for(;e&&!$C(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function $C(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var op=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function IC(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let s=0,o=t.length;s<o;s++){let i=t[s];if(!i.settings)continue;let l;if(typeof i.scope=="string"){let f=i.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),l=f.split(",")}else Array.isArray(i.scope)?l=i.scope:l=[""];let a=-1;if(typeof i.settings.fontStyle=="string"){a=0;let f=i.settings.fontStyle.split(" ");for(let d=0,p=f.length;d<p;d++)switch(f[d]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let c=null;typeof i.settings.foreground=="string"&&Yc(i.settings.foreground)&&(c=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&Yc(i.settings.background)&&(u=i.settings.background);for(let f=0,d=l.length;f<d;f++){let h=l[f].trim().split(" "),m=h[h.length-1],_=null;h.length>1&&(_=h.slice(0,h.length-1),_.reverse()),n[r++]=new RC(m,_,s,a,c,u)}}return n}var RC=class{constructor(e,t,n,r,s,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=s,this.background=o}},yt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(yt||{});function TC(e,t){e.sort((a,c)=>{let u=tp(a.scope,c.scope);return u!==0||(u=np(a.parentScopes,c.parentScopes),u!==0)?u:a.index-c.index});let n=0,r="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let a=e.shift();a.fontStyle!==-1&&(n=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(s=a.background)}let o=new NC(t),i=new op(n,o.getId(r),o.getId(s)),l=new OC(new ul(0,null,-1,0,0),[]);for(let a=0,c=e.length;a<c;a++){let u=e[a];l.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new yo(o,i,l)}var NC=class{constructor(e){j(this,"_isFrozen");j(this,"_lastColorId");j(this,"_id2color");j(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},PC=Object.freeze([]),ul=class ip{constructor(t,n,r,s,o){j(this,"scopeDepth");j(this,"parentScopes");j(this,"fontStyle");j(this,"foreground");j(this,"background");this.scopeDepth=t,this.parentScopes=n||PC,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new ip(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,s=t.length;r<s;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),s!==0&&(this.background=s)}},OC=class fl{constructor(t,n=[],r={}){j(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,s=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[r].length;if(o!==0)return o;r++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),s,o;if(r===-1?(s=t,o=""):(s=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(fl._cmpBySpecificity),n}insert(t,n,r,s,o,i){if(n===""){this._doInsertHere(t,r,s,o,i);return}let l=n.indexOf("."),a,c;l===-1?(a=n,c=""):(a=n.substring(0,l),c=n.substring(l+1));let u;this._children.hasOwnProperty(a)?u=this._children[a]:(u=new fl(this._mainRule.clone(),ul.cloneArr(this._rulesWithParentScopes)),this._children[a]=u),u.insert(t+1,c,r,s,o,i)}_doInsertHere(t,n,r,s,o){if(n===null){this._mainRule.acceptOverwrite(t,r,s,o);return}for(let i=0,l=this._rulesWithParentScopes.length;i<l;i++){let a=this._rulesWithParentScopes[i];if(np(a.parentScopes,n)===0){a.acceptOverwrite(t,r,s,o);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new ul(t,n,r,s,o))}},Lr=class Dt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Dt.getLanguageId(t),r=Dt.getTokenType(t),s=Dt.getFontStyle(t),o=Dt.getForeground(t),i=Dt.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:o,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,s,o,i,l){let a=Dt.getLanguageId(t),c=Dt.getTokenType(t),u=Dt.containsBalancedBrackets(t)?1:0,f=Dt.getFontStyle(t),d=Dt.getForeground(t),p=Dt.getBackground(t);return n!==0&&(a=n),r!==8&&(c=r),s!==null&&(u=s?1:0),o!==-1&&(f=o),i!==0&&(d=i),l!==0&&(p=l),(a<<0|c<<8|u<<10|f<<11|d<<15|p<<24)>>>0}};function _o(e,t){const n=[],r=LC(e);let s=r.next();for(;s!==null;){let a=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let c=i();if(n.push({matcher:c,priority:a}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();const a=o();return c=>!!a&&!a(c)}if(s==="("){s=r.next();const a=l();return s===")"&&(s=r.next()),a}if(Jc(s)){const a=[];do a.push(s),s=r.next();while(Jc(s));return c=>t(a,c)}return null}function i(){const a=[];let c=o();for(;c;)a.push(c),c=o();return u=>a.every(f=>f(u))}function l(){const a=[];let c=i();for(;c&&(a.push(c),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");c=i()}return u=>a.some(f=>f(u))}}function Jc(e){return!!e&&!!e.match(/[\w\.:]+/)}function LC(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function lp(e){typeof e.dispose=="function"&&e.dispose()}var Cs=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},MC=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},DC=class{constructor(){j(this,"_references",[]);j(this,"_seenReferenceKeys",new Set);j(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},BC=class{constructor(e,t){j(this,"seenFullScopeRequests",new Set);j(this,"seenPartialScopeRequests",new Set);j(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Cs(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new DC;for(const n of e)FC(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Cs){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function FC(e,t,n,r){const s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Cs?no({baseGrammar:o,selfGrammar:s},r):dl(e.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},r);const i=n.injections(e.scopeName);if(i)for(const l of i)r.add(new Cs(l))}function dl(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];bo([r],t,n)}}function no(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&bo(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&bo(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function bo(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?Zd({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&bo(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=ap(o);switch(i.kind){case 0:no({...t,selfGrammar:t.baseGrammar},n);break;case 1:no(t,n);break;case 2:dl(i.ruleName,{...t,repository:s},n);break;case 3:case 4:const l=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){const a={baseGrammar:t.baseGrammar,selfGrammar:l,repository:s};i.kind===4?dl(i.ruleName,a,n):no(a,n)}else i.kind===4?n.add(new MC(i.scopeName,i.ruleName)):n.add(new Cs(i.scopeName));break}}}var jC=class{constructor(){j(this,"kind",0)}},GC=class{constructor(){j(this,"kind",1)}},VC=class{constructor(e){j(this,"kind",2);this.ruleName=e}},UC=class{constructor(e){j(this,"kind",3);this.scopeName=e}},qC=class{constructor(e,t){j(this,"kind",4);this.scopeName=e,this.ruleName=t}};function ap(e){if(e==="$base")return new jC;if(e==="$self")return new GC;const t=e.indexOf("#");if(t===-1)return new UC(e);if(t===0)return new VC(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new qC(n,r)}}var HC=/\\(\d+)/,Qc=/\\(\d+)/g,zC=-1,cp=-2;var Ls=class{constructor(e,t,n,r){j(this,"$location");j(this,"id");j(this,"_nameIsCapturing");j(this,"_name");j(this,"_contentNameIsCapturing");j(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=qs.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=qs.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${ep(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:qs.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:qs.replaceCaptures(this._contentName,e,t)}},WC=class extends Ls{constructor(t,n,r,s,o){super(t,n,r,s);j(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,s){throw new Error("Not supported!")}},KC=class extends Ls{constructor(t,n,r,s,o){super(t,n,r,null);j(this,"_match");j(this,"captures");j(this,"_cachedCompiledPatterns");this._match=new Ss(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ks,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zc=class extends Ls{constructor(t,n,r,s,o){super(t,n,r,s);j(this,"hasMissingPatterns");j(this,"patterns");j(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ks,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},pl=class extends Ls{constructor(t,n,r,s,o,i,l,a,c,u){super(t,n,r,s);j(this,"_begin");j(this,"beginCaptures");j(this,"_end");j(this,"endHasBackReferences");j(this,"endCaptures");j(this,"applyEndPatternLast");j(this,"hasMissingPatterns");j(this,"patterns");j(this,"_cachedCompiledPatterns");this._begin=new Ss(o,this.id),this.beginCaptures=i,this._end=new Ss(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=c||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,s)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ks;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},wo=class extends Ls{constructor(t,n,r,s,o,i,l,a,c){super(t,n,r,s);j(this,"_begin");j(this,"beginCaptures");j(this,"whileCaptures");j(this,"_while");j(this,"whileHasBackReferences");j(this,"hasMissingPatterns");j(this,"patterns");j(this,"_cachedCompiledPatterns");j(this,"_cachedCompiledWhilePatterns");this._begin=new Ss(o,this.id),this.beginCaptures=i,this.whileCaptures=a,this._while=new Ss(l,cp),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ks;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,s){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,s)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ks,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},up=class gt{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new WC(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new KC(t.$vscodeTextmateLocation,t.id,t.name,t.match,gt._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Zd({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Zc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,gt._compilePatterns(o,n,r))}return t.while?new wo(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,gt._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,gt._compileCaptures(t.whileCaptures||t.captures,n,r),gt._compilePatterns(t.patterns,n,r)):new pl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,gt._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,gt._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,gt._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let s=[];if(t){let o=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const l=parseInt(i,10);l>o&&(o=l)}for(let i=0;i<=o;i++)s[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const l=parseInt(i,10);let a=0;t[i].patterns&&(a=gt.getCompiledRuleId(t[i],n,r)),s[l]=gt.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,a)}}return s}static _compilePatterns(t,n,r){let s=[];if(t)for(let o=0,i=t.length;o<i;o++){const l=t[o];let a=-1;if(l.include){const c=ap(l.include);switch(c.kind){case 0:case 1:a=gt.getCompiledRuleId(r[l.include],n,r);break;case 2:let u=r[c.ruleName];u&&(a=gt.getCompiledRuleId(u,n,r));break;case 3:case 4:const f=c.scopeName,d=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(f,r);if(p)if(d){let h=p.repository[d];h&&(a=gt.getCompiledRuleId(h,n,p.repository))}else a=gt.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else a=gt.getCompiledRuleId(l,n,r);if(a!==-1){const c=n.getRule(a);let u=!1;if((c instanceof Zc||c instanceof pl||c instanceof wo)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;s.push(a)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Ss=class fp{constructor(t,n){j(this,"source");j(this,"ruleId");j(this,"hasAnchor");j(this,"hasBackReferences");j(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let s=0,o=[],i=!1;for(let l=0;l<r;l++)if(t.charAt(l)==="\\"&&l+1<r){const c=t.charAt(l+1);c==="z"?(o.push(t.substring(s,l)),o.push("$(?!\\n)(?<!\\n)"),s=l+2):(c==="A"||c==="G")&&(i=!0),l++}this.hasAnchor=i,s===0?this.source=t:(o.push(t.substring(s,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=HC.test(this.source):this.hasBackReferences=!1}clone(){return new fp(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(s=>t.substring(s.start,s.end));return Qc.lastIndex=0,this.source.replace(Qc,(s,o)=>rp(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],s=[],o,i,l,a;for(o=0,i=this.source.length;o<i;o++)l=this.source.charAt(o),t[o]=l,n[o]=l,r[o]=l,s[o]=l,l==="\\"&&o+1<i&&(a=this.source.charAt(o+1),a==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",s[o+1]="A"):a==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",s[o+1]="G"):(t[o+1]=a,n[o+1]=a,r[o+1]=a,s[o+1]=a),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ks=class{constructor(){j(this,"_items");j(this,"_hasAnchors");j(this,"_cached");j(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new eu(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(s=>s.resolveAnchors(t,n));return new eu(e,r,this._items.map(s=>s.ruleId))}},eu=class{constructor(e,t,n){j(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
28
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},$i=class{constructor(e,t){this.languageId=e,this.tokenType=t}},vn,XC=(vn=class{constructor(t,n){j(this,"_defaultAttributes");j(this,"_embeddedLanguagesMatcher");j(this,"_getBasicScopeAttributes",new sp(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new $i(n,r)}));this._defaultAttributes=new $i(t,8),this._embeddedLanguagesMatcher=new YC(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?vn._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(vn.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},j(vn,"_NULL_SCOPE_METADATA",new $i(0,0)),j(vn,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),vn),YC=class{constructor(e){j(this,"values");j(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>rp(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},tu=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function dp(e,t,n,r,s,o,i,l){const a=t.content.length;let c=!1,u=-1;if(i){const p=JC(e,t,n,r,s,o);s=p.stack,r=p.linePos,n=p.isFirstLine,u=p.anchorPosition}const f=Date.now();for(;!c;){if(l!==0&&Date.now()-f>l)return new tu(s,!0);d()}return new tu(s,!1);function d(){const p=QC(e,t,n,r,s,u);if(!p){o.produce(s,a),c=!0;return}const h=p.captureIndices,m=p.matchedRuleId,_=h&&h.length>0?h[0].end>r:!1;if(m===zC){const v=s.getRule(e);o.produce(s,h[0].start),s=s.withContentNameScopesList(s.nameScopesList),ns(e,t,n,s,o,v.endCaptures,h),o.produce(s,h[0].end);const w=s;if(s=s.parent,u=w.getAnchorPos(),!_&&w.getEnterPos()===r){s=w,o.produce(s,a),c=!0;return}}else{const v=e.getRule(m);o.produce(s,h[0].start);const w=s,C=v.getName(t.content,h),$=s.contentNameScopesList.pushAttributed(C,e);if(s=s.push(m,r,u,h[0].end===a,null,$,$),v instanceof pl){const V=v;ns(e,t,n,s,o,V.beginCaptures,h),o.produce(s,h[0].end),u=h[0].end;const z=V.getContentName(t.content,h),L=$.pushAttributed(z,e);if(s=s.withContentNameScopesList(L),V.endHasBackReferences&&(s=s.withEndRule(V.getEndWithResolvedBackReferences(t.content,h))),!_&&w.hasSameRuleAs(s)){s=s.pop(),o.produce(s,a),c=!0;return}}else if(v instanceof wo){const V=v;ns(e,t,n,s,o,V.beginCaptures,h),o.produce(s,h[0].end),u=h[0].end;const z=V.getContentName(t.content,h),L=$.pushAttributed(z,e);if(s=s.withContentNameScopesList(L),V.whileHasBackReferences&&(s=s.withEndRule(V.getWhileWithResolvedBackReferences(t.content,h))),!_&&w.hasSameRuleAs(s)){s=s.pop(),o.produce(s,a),c=!0;return}}else if(ns(e,t,n,s,o,v.captures,h),o.produce(s,h[0].end),s=s.pop(),!_){s=s.safePop(),o.produce(s,a),c=!0;return}}h[0].end>r&&(r=h[0].end,n=!1)}}function JC(e,t,n,r,s,o){let i=s.beginRuleCapturedEOL?0:-1;const l=[];for(let a=s;a;a=a.pop()){const c=a.getRule(e);c instanceof wo&&l.push({rule:c,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:c,findOptions:u}=tS(a.rule,e,a.stack.endRule,n,r===i),f=c.findNextMatchSync(t,r,u);if(f){if(f.ruleId!==cp){s=a.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(a.stack,f.captureIndices[0].start),ns(e,t,n,a.stack,o,a.rule.whileCaptures,f.captureIndices),o.produce(a.stack,f.captureIndices[0].end),i=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{s=a.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:i,isFirstLine:n}}function QC(e,t,n,r,s,o){const i=ZC(e,t,n,r,s,o),l=e.getInjections();if(l.length===0)return i;const a=eS(l,e,t,n,r,s,o);if(!a)return i;if(!i)return a;const c=i.captureIndices[0].start,u=a.captureIndices[0].start;return u<c||a.priorityMatch&&u===c?a:i}function ZC(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:l,findOptions:a}=pp(i,e,s.endRule,n,r===o),c=l.findNextMatchSync(t,r,a);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function eS(e,t,n,r,s,o,i){let l=Number.MAX_VALUE,a=null,c,u=0;const f=o.contentNameScopesList.getScopeNames();for(let d=0,p=e.length;d<p;d++){const h=e[d];if(!h.matcher(f))continue;const m=t.getRule(h.ruleId),{ruleScanner:_,findOptions:v}=pp(m,t,null,r,s===i),w=_.findNextMatchSync(n,s,v);if(!w)continue;const C=w.captureIndices[0].start;if(!(C>=l)&&(l=C,a=w.captureIndices,c=w.ruleId,u=h.priority,l===s))break}return a?{priorityMatch:u===-1,captureIndices:a,matchedRuleId:c}:null}function pp(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function tS(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function ns(e,t,n,r,s,o,i){if(o.length===0)return;const l=t.content,a=Math.min(o.length,i.length),c=[],u=i[0].end;for(let f=0;f<a;f++){const d=o[f];if(d===null)continue;const p=i[f];if(p.length===0)continue;if(p.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,p.start):s.produce(r,p.start),d.retokenizeCapturedWithRuleId){const m=d.getName(l,i),_=r.contentNameScopesList.pushAttributed(m,e),v=d.getContentName(l,i),w=_.pushAttributed(v,e),C=r.push(d.retokenizeCapturedWithRuleId,p.start,-1,!1,null,_,w),$=e.createOnigString(l.substring(0,p.end));dp(e,$,n&&p.start===0,p.start,C,s,!1,0),lp($);continue}const h=d.getName(l,i);if(h!==null){const _=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);c.push(new nS(_,p.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var nS=class{constructor(e,t){j(this,"scopes");j(this,"endPos");this.scopes=e,this.endPos=t}};function rS(e,t,n,r,s,o,i,l){return new oS(e,t,n,r,s,o,i,l)}function nu(e,t,n,r,s){const o=_o(t,Co),i=up.getCompiledRuleId(n,r,s.repository);for(const l of o)e.push({debugSelector:t,matcher:l.matcher,ruleId:i,grammar:s,priority:l.priority})}function Co(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let s=n;s<t.length;s++)if(sS(t[s],r))return n=s+1,!0;return!1})}function sS(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var oS=class{constructor(e,t,n,r,s,o,i,l){j(this,"_rootId");j(this,"_lastRuleId");j(this,"_ruleId2desc");j(this,"_includedGrammars");j(this,"_grammarRepository");j(this,"_grammar");j(this,"_injections");j(this,"_basicScopeAttributesProvider");j(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new XC(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=ru(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const a of Object.keys(s)){const c=_o(a,Co);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:s[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const s=r.injections;if(s)for(let i in s)nu(t,i,s[i],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(i=>{const l=this.getExternalGrammar(i);if(l){const a=l.injectionSelector;a&&nu(t,a,l,this,l)}})}return t.sort((s,o)=>s.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ru(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=up.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===hl.NULL){s=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),f=Lr.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),d=this.getRule(this._rootId).getName(null,null);let p;d?p=us.createRootAndLookUpScopeName(d,f,this):p=us.createRoot("unknown",f),t=new hl(null,this._rootId,-1,-1,!1,null,p,p)}else s=!1,t.reset();e=e+`
|
|
29
|
+
`;const o=this.createOnigString(e),i=o.content.length,l=new lS(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),a=dp(this,o,s,0,t,l,!0,r);return lp(o),{lineLength:i,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function ru(e,t){return e=kC(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var us=class tn{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,s=(t==null?void 0:t.scopePath)??null;for(const o of n)s=Ai.push(s,o.scopeNames),r=new tn(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new tn(null,new Ai(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new Ai(null,t),i=r.themeProvider.themeMatch(o),l=tn.mergeAttributes(n,s,i);return new tn(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return tn.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let s=-1,o=0,i=0;return r!==null&&(s=r.fontStyle,o=r.foregroundId,i=r.backgroundId),Lr.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return tn._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=tn._pushAttributed(s,o,n);return s}static _pushAttributed(t,n,r){const s=r.getMetadataForScope(n),o=t.scopePath.push(n),i=r.themeProvider.themeMatch(o),l=tn.mergeAttributes(t.tokenAttributes,s,i);return new tn(t,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var s;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((s=r.parent)==null?void 0:s.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},Bt,hl=(Bt=class{constructor(t,n,r,s,o,i,l,a){j(this,"_stackElementBrand");j(this,"_enterPos");j(this,"_anchorPos");j(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}equals(t){return t===null?!1:Bt._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?us.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Bt._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,l){return new Bt(this,t,n,r,s,o,i,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,s;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Bt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=us.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new Bt(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,us.fromExtension(r,n.contentNameScopesList))}},j(Bt,"NULL",new Bt(null,0,0,0,!1,null,null,null)),Bt),iS=class{constructor(e,t){j(this,"balancedBracketScopes");j(this,"unbalancedBracketScopes");j(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):_o(n,Co).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>_o(n,Co).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},lS=class{constructor(e,t,n,r){j(this,"_emitBinaryTokens");j(this,"_lineText");j(this,"_tokens");j(this,"_binaryTokens");j(this,"_lastTokenEndIndex");j(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=(e==null?void 0:e.getScopeNames())??[];for(const l of this._tokenTypeOverrides)l.matcher(i)&&(s=Lr.set(s,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(s=Lr.set(s,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},aS=class{constructor(e,t){j(this,"_grammars",new Map);j(this,"_rawGrammars",new Map);j(this,"_injectionGrammars",new Map);j(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,rS(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},cS=class{constructor(t){j(this,"_options");j(this,"_syncRegistry");j(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new aS(yo.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(yo.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new iS(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new BC(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(l=>this._loadSingleGrammar(l.scopeName)),i.processQueue();return this._grammarForScopeName(t,n,r,s,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,s=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,s)}_grammarForScopeName(t,n=0,r=null,s=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,s,o)}},gl=hl.NULL;const uS=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Ms{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ms.prototype.normal={};Ms.prototype.property={};Ms.prototype.space=void 0;function hp(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new Ms(n,r,t)}function ml(e){return e.toLowerCase()}class At{constructor(t,n){this.attribute=n,this.property=t}}At.prototype.attribute="";At.prototype.booleanish=!1;At.prototype.boolean=!1;At.prototype.commaOrSpaceSeparated=!1;At.prototype.commaSeparated=!1;At.prototype.defined=!1;At.prototype.mustUseProperty=!1;At.prototype.number=!1;At.prototype.overloadedBoolean=!1;At.prototype.property="";At.prototype.spaceSeparated=!1;At.prototype.space=void 0;let fS=0;const ke=ar(),Qe=ar(),vl=ar(),Q=ar(),Be=ar(),kr=ar(),It=ar();function ar(){return 2**++fS}const yl=Object.freeze(Object.defineProperty({__proto__:null,boolean:ke,booleanish:Qe,commaOrSpaceSeparated:It,commaSeparated:kr,number:Q,overloadedBoolean:vl,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),Ii=Object.keys(yl);class la extends At{constructor(t,n,r,s){let o=-1;if(super(t,n),su(this,"space",s),typeof r=="number")for(;++o<Ii.length;){const i=Ii[o];su(this,Ii[o],(r&yl[i])===yl[i])}}}la.prototype.defined=!0;function su(e,t,n){n&&(e[t]=n)}function Br(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new la(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ml(r)]=r,n[ml(o.attribute)]=r}return new Ms(t,n,e.space)}const gp=Br({properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:Be,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:Q,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:Be,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:Qe,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function mp(e,t){return t in e?e[t]:t}function vp(e,t){return mp(e,t.toLowerCase())}const dS=Br({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kr,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:Be,autoFocus:ke,autoPlay:ke,blocking:Be,capture:null,charSet:null,checked:ke,cite:null,className:Be,cols:Q,colSpan:null,content:null,contentEditable:Qe,controls:ke,controlsList:Be,coords:Q|kr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:vl,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:Be,height:Q,hidden:vl,high:Q,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:Be,itemRef:Be,itemScope:ke,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ke,optimum:Q,pattern:null,ping:Be,placeholder:null,playsInline:ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:Be,required:ke,reversed:ke,rows:Q,rowSpan:Q,sandbox:Be,scope:null,scoped:ke,seamless:ke,selected:ke,shadowRootClonable:ke,shadowRootDelegatesFocus:ke,shadowRootMode:null,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:Qe,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:Q,security:null,unselectable:null},space:"html",transform:vp}),pS=Br({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:It,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:Be,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:kr,g2:kr,glyphName:kr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:It,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:It,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:It,rev:It,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:It,requiredFeatures:It,requiredFonts:It,requiredFormats:It,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:It,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:It,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:It,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:mp}),yp=Br({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),_p=Br({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vp}),bp=Br({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),hS=/[A-Z]/g,ou=/-[a-z]/g,gS=/^data[-\w.:]+$/i;function mS(e,t){const n=ml(t);let r=t,s=At;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&gS.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ou,yS);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ou.test(o)){let i=o.replace(hS,vS);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=la}return new s(r,t)}function vS(e){return"-"+e.toLowerCase()}function yS(e){return e.charAt(1).toUpperCase()}const _S=hp([gp,dS,yp,_p,bp],"html"),wp=hp([gp,pS,yp,_p,bp],"svg"),iu={}.hasOwnProperty;function bS(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const l=r.handlers;if(s&&iu.call(s,e)){const a=String(s[e]);i=iu.call(l,a)?l[a]:r.unknown}if(i)return i.call(this,s,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const wS=/["&'<>`]/g,CS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,SS=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,kS=/[|\\{}()[\]^$+*?.]/g,lu=new WeakMap;function xS(e,t){if(e=e.replace(t.subset?ES(t.subset):wS,r),t.subset||t.escapeOnly)return e;return e.replace(CS,n).replace(SS,r);function n(s,o,i){return t.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),t)}function r(s,o,i){return t.format(s.charCodeAt(0),i.charCodeAt(o+1),t)}}function ES(e){let t=lu.get(e);return t||(t=AS(e),lu.set(e,t)),t}function AS(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(kS,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const $S=/[\dA-Fa-f]/;function IS(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!$S.test(String.fromCharCode(t))?r:r+";"}const RS=/\d/;function TS(e,t,n){const r="&#"+String(e);return n&&t&&!RS.test(String.fromCharCode(t))?r:r+";"}const NS=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ri={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},PS=["cent","copy","divide","gt","lt","not","para","times"],Cp={}.hasOwnProperty,_l={};let Hs;for(Hs in Ri)Cp.call(Ri,Hs)&&(_l[Ri[Hs]]=Hs);const OS=/[^\dA-Za-z]/;function LS(e,t,n,r){const s=String.fromCharCode(e);if(Cp.call(_l,s)){const o=_l[s],i="&"+o;return n&&NS.includes(o)&&!PS.includes(o)&&(!r||t&&t!==61&&OS.test(String.fromCharCode(t)))?i:i+";"}return""}function MS(e,t,n){let r=IS(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=LS(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=TS(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function xr(e,t){return xS(e,Object.assign({format:MS},t))}const DS=/^>|^->|<!--|-->|--!>|<!-$/g,BS=[">"],FS=["<",">"];function jS(e,t,n,r){return r.settings.bogusComments?"<?"+xr(e.value,Object.assign({},r.settings.characterReferences,{subset:BS}))+">":"<!--"+e.value.replace(DS,s)+"-->";function s(o){return xr(o,Object.assign({},r.settings.characterReferences,{subset:FS}))}}function GS(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function au(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(t);for(;s!==-1;)r++,s=n.indexOf(t,s+t.length);return r}function VS(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function US(e){return e.join(" ").trim()}const qS=/[ \t\n\f\r]/g;function aa(e){return typeof e=="object"?e.type==="text"?cu(e.value):!1:cu(e)}function cu(e){return e.replace(qS,"")===""}const ot=kp(1),Sp=kp(-1),HS=[];function kp(e){return t;function t(n,r,s){const o=n?n.children:HS;let i=(r||0)+e,l=o[i];if(!s)for(;l&&aa(l);)i+=e,l=o[i];return l}}const zS={}.hasOwnProperty;function xp(e){return t;function t(n,r,s){return zS.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const ca=xp({body:KS,caption:Ti,colgroup:Ti,dd:QS,dt:JS,head:Ti,html:WS,li:YS,optgroup:ZS,option:e1,p:XS,rp:uu,rt:uu,tbody:n1,td:fu,tfoot:r1,th:fu,thead:t1,tr:s1});function Ti(e,t,n){const r=ot(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&aa(r.value.charAt(0)))}function WS(e,t,n){const r=ot(n,t);return!r||r.type!=="comment"}function KS(e,t,n){const r=ot(n,t);return!r||r.type!=="comment"}function XS(e,t,n){const r=ot(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function YS(e,t,n){const r=ot(n,t);return!r||r.type==="element"&&r.tagName==="li"}function JS(e,t,n){const r=ot(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function QS(e,t,n){const r=ot(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function uu(e,t,n){const r=ot(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function ZS(e,t,n){const r=ot(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function e1(e,t,n){const r=ot(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function t1(e,t,n){const r=ot(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function n1(e,t,n){const r=ot(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function r1(e,t,n){return!ot(n,t)}function s1(e,t,n){const r=ot(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function fu(e,t,n){const r=ot(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const o1=xp({body:a1,colgroup:c1,head:l1,html:i1,tbody:u1});function i1(e){const t=ot(e,-1);return!t||t.type!=="comment"}function l1(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function a1(e){const t=ot(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&aa(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function c1(e,t,n){const r=Sp(n,t),s=ot(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ca(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function u1(e,t,n){const r=Sp(n,t),s=ot(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ca(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const zs={name:[[`
|
|
30
|
+
\f\r &/=>`.split(""),`
|
|
31
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
32
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
33
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
34
|
+
\f\r &>`.split(""),`\0
|
|
35
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
36
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
37
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function f1(e,t,n,r){const s=r.schema,o=s.space==="svg"?!1:r.settings.omitOptionalTags;let i=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let a;s.space==="html"&&e.tagName==="svg"&&(r.schema=wp);const c=d1(r,e.properties),u=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,u&&(i=!1),(c||!o||!o1(e,t,n))&&(l.push("<",e.tagName,c?" "+c:""),i&&(s.space==="svg"||r.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!r.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(u),!i&&(!o||!ca(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function d1(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=p1(e,s,t[s]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function p1(e,t,n){const r=mS(e.schema,t),s=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let i=e.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const a=xr(r.attribute,Object.assign({},e.settings.characterReferences,{subset:zs.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?VS:US)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?a:(e.settings.preferUnquoted&&(l=xr(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:zs.unquoted[s][o]}))),l!==n&&(e.settings.quoteSmart&&au(n,i)>au(n,e.alternative)&&(i=e.alternative),l=i+xr(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?zs.single:zs.double)[s][o],attribute:!0}))+i),a+(l&&"="+l))}const h1=["<","&"];function Ep(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:xr(e.value,Object.assign({},r.settings.characterReferences,{subset:h1}))}function g1(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Ep(e,t,n,r)}function m1(e,t,n,r){return r.all(e)}const v1=bS("type",{invalid:y1,unknown:_1,handlers:{comment:jS,doctype:GS,element:f1,raw:g1,root:m1,text:Ep}});function y1(e){throw new Error("Expected node, not `"+e+"`")}function _1(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const b1={},w1={},C1=[];function S1(e,t){const n=t||b1,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:k1,all:x1,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||uS,characterReferences:n.characterReferences||w1,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?wp:_S,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function k1(e,t,n){return v1(e,t,n,this)}function x1(e){const t=[],n=e&&e.children||C1;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function So(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function Fn(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function E1(e){return Array.isArray(e)?e:[e]}async function Ap(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function ua(e){return!e||["plaintext","txt","text","plain"].includes(e)}function A1(e){return e==="ansi"||ua(e)}function fa(e){return e==="none"}function $1(e){return fa(e)}function $p(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const s of n)s&&!e.properties.class.includes(s)&&e.properties.class.push(s);return e}function Jo(e,t=!1){var o;if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let i=0;i<n.length;i+=2){const l=t?n[i]+(n[i+1]||""):n[i];s.push([l,r]),r+=n[i].length,r+=((o=n[i+1])==null?void 0:o.length)||0}return s}function I1(e){const t=Jo(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,i=0;for(const l of t){if(o<l.length)break;o-=l.length,i++}return{line:i,character:o}}function r(s,o){let i=0;for(let l=0;l<s;l++)i+=t[l].length;return i+=o,i}return{lines:t,indexToPos:n,posToIndex:r}}const da="light-dark()",R1=["color","background-color"];function T1(e,t){let n=0;const r=[];for(const s of t)s>n&&r.push({...e,content:e.content.slice(n,s),offset:e.offset+n}),n=s;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function N1(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,s)=>r-s);return n.length?e.map(r=>r.flatMap(s=>{const o=n.filter(i=>s.offset<i&&i<s.offset+s.content.length).map(i=>i-s.offset).sort((i,l)=>i-l);return o.length?T1(s,o):s})):e}function P1(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(u=>ko(e.variants[u])),l=new Set(i.flatMap(u=>Object.keys(u))),a={},c=(u,f)=>{const d=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[u]+(f==="color"?"":d)};return i.forEach((u,f)=>{for(const d of l){const p=u[d]||"inherit";if(f===0&&r&&R1.includes(d))if(r===da&&i.length>1){const h=t.findIndex(w=>w==="light"),m=t.findIndex(w=>w==="dark");if(h===-1||m===-1)throw new it('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const _=i[h][d]||"inherit",v=i[m][d]||"inherit";a[d]=`light-dark(${_}, ${v})`,s==="css-vars"&&(a[c(f,d)]=p)}else a[d]=p;else s==="css-vars"&&(a[c(f,d)]=p)}}),o.htmlStyle=a,o}function ko(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&yt.Italic&&(t["font-style"]="italic"),e.fontStyle&yt.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&yt.Underline&&n.push("underline"),e.fontStyle&yt.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function bl(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Ip=new WeakMap;function Qo(e,t){Ip.set(e,t)}function xs(e){return Ip.get(e)}class Fr{constructor(...t){j(this,"_stacks",{});j(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,s]=t;this.lang=r,this._stacks={[s]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Fr(Object.fromEntries(E1(n).map(r=>[r,gl])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return O1(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function O1(e){const t=[],n=new Set;function r(s){var i;if(n.has(s))return;n.add(s);const o=(i=s==null?void 0:s.nameScopesList)==null?void 0:i.scopeName;o&&t.push(o),s.parent&&r(s.parent)}return r(e),t}function L1(e,t){if(!(e instanceof Fr))throw new it("Invalid grammar state");return e.getInternalStack(t)}function M1(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new it(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...s.indexToPos(i),offset:i}}else{const l=s.lines[i.line];if(l===void 0)throw new it(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);let a=i.character;if(a<0&&(a=l.length+a),a<0||a>l.length)throw new it(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${l.length}`);return{...i,character:a,offset:s.posToIndex(i.line,a)}}};const s=I1(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));D1(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var i;if(!((i=this.options.decorations)!=null&&i.length))return;const s=t(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return N1(n,s)},code(n){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const r=t(this),s=Array.from(n.children).filter(f=>f.type==="element"&&f.tagName==="span");if(s.length!==r.converter.lines.length)throw new it(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(f,d,p,h){const m=s[f];let _="",v=-1,w=-1;if(d===0&&(v=0),p===0&&(w=0),p===Number.POSITIVE_INFINITY&&(w=m.children.length),v===-1||w===-1)for(let $=0;$<m.children.length;$++)_+=Rp(m.children[$]),v===-1&&_.length===d&&(v=$+1),w===-1&&_.length===p&&(w=$+1);if(v===-1)throw new it(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(w===-1)throw new it(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const C=m.children.slice(v,w);if(!h.alwaysWrap&&C.length===m.children.length)l(m,h,"line");else if(!h.alwaysWrap&&C.length===1&&C[0].type==="element")l(C[0],h,"token");else{const $={type:"element",tagName:"span",properties:{},children:C};l($,h,"wrapper"),m.children.splice(v,C.length,$)}}function i(f,d){s[f]=l(s[f],d,"line")}function l(f,d,p){var _;const h=d.properties||{},m=d.transform||(v=>v);return f.tagName=d.tagName||"span",f.properties={...f.properties,...h,class:f.properties.class},(_=d.properties)!=null&&_.class&&$p(f,d.properties.class),f=m(f,p)||f,f}const a=[],c=r.decorations.sort((f,d)=>d.start.offset-f.start.offset||f.end.offset-d.end.offset);for(const f of c){const{start:d,end:p}=f;if(d.line===p.line)o(d.line,d.character,p.character,f);else if(d.line<p.line){o(d.line,d.character,Number.POSITIVE_INFINITY,f);for(let h=d.line+1;h<p.line;h++)a.unshift(()=>i(h,f));o(p.line,0,p.character,f)}}a.forEach(f=>f())}}}function D1(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new it(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const s=e[r],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,i=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,l=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,a=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||i||l||a){if(o&&i||l&&a||l&&n.start.offset===n.end.offset||i&&s.start.offset===s.end.offset)continue;throw new it(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Rp(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Rp).join(""):""}const B1=[M1()];function xo(e){const t=F1(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...B1]}function F1(e){const t=[],n=[],r=[];for(const s of e)switch(s.enforce){case"pre":t.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:t,post:n,normal:r}}var Qn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ni={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function j1(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function du(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function G1(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)Ni[r]&&t.push({type:"setDecoration",value:Ni[r]});else if(r<=29){const s=Ni[r-20];s&&(t.push({type:"resetDecoration",value:s}),s==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Qn[r-30]}});else if(r===38){const s=du(e);s&&t.push({type:"setForegroundColor",value:s})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Qn[r-40]}});else if(r===48){const s=du(e);s&&t.push({type:"setBackgroundColor",value:s})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Qn[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Qn[r-100+8]}})}return t}function V1(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=j1(r,o),l=i.sequence?r.substring(o,i.startPosition):r.substring(o);if(l.length>0&&s.push({value:l,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const a=G1(i.sequence);for(const c of a)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of a)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}o=i.position}while(o<r.length);return s}}}var U1={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function q1(e=U1){function t(l){return e[l]}function n(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let c=0;c<Qn.length;c++)r.push(t(Qn[c]));let l=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let f=0;f<6;f++)r.push(n([l[c],l[u],l[f]]));let a=8;for(let c=0;c<24;c++,a+=10)r.push(n([a,a,a]));return r}function o(l){return s()[l]}function i(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return o(l.index)}}return{value:i}}const H1={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function z1(e,t,n){const r=So(e,n),s=Jo(t),o=Object.fromEntries(Qn.map(a=>{var f;const c=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`,u=(f=e.colors)==null?void 0:f[c];return[a,u||H1[a]]})),i=q1(o),l=V1();return s.map(a=>l.parse(a[0]).map(c=>{let u,f;c.decorations.has("reverse")?(u=c.background?i.value(c.background):e.bg,f=c.foreground?i.value(c.foreground):e.fg):(u=c.foreground?i.value(c.foreground):e.fg,f=c.background?i.value(c.background):void 0),u=Fn(u,r),f=Fn(f,r),c.decorations.has("dim")&&(u=W1(u));let d=yt.None;return c.decorations.has("bold")&&(d|=yt.Bold),c.decorations.has("italic")&&(d|=yt.Italic),c.decorations.has("underline")&&(d|=yt.Underline),c.decorations.has("strikethrough")&&(d|=yt.Strikethrough),{content:c.value,offset:a[1],color:u,bgColor:f,fontStyle:d}}))}function W1(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const s=r[0],o=r[1],i=r[2],l=r[3],a=Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0");return`#${s}${s}${o}${o}${i}${i}${a}`}else if(r.length===3){const s=r[0],o=r[1],i=r[2];return`#${s}${s}${o}${o}${i}${i}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function pa(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,s=e.resolveLangAlias(n.lang||"text");if(ua(s)||fa(r))return Jo(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:o,colorMap:i}=e.setTheme(r);if(s==="ansi")return z1(o,t,n);const l=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==l.name)throw new it(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(o.name))throw new it(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return X1(t,l,o,i,n)}function K1(...e){if(e.length===2)return xs(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(ua(s)||fa(o))throw new it("Plain language does not have grammar state");if(s==="ansi")throw new it("ANSI language does not have grammar state");const{theme:i,colorMap:l}=t.setTheme(o),a=t.getLanguage(s);return new Fr(ha(n,a,i,l,r).stateStack,a.name,i.name)}function X1(e,t,n,r,s){const o=ha(e,t,n,r,s),i=new Fr(o.stateStack,t.name,n.name);return Qo(o.tokens,i),o.tokens}function ha(e,t,n,r,s){const o=So(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:l=500}=s,a=Jo(e);let c=s.grammarState?L1(s.grammarState,n.name)??gl:s.grammarContextCode!=null?ha(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:gl,u=[];const f=[];for(let d=0,p=a.length;d<p;d++){const[h,m]=a[d];if(h===""){u=[],f.push([]);continue}if(i>0&&h.length>=i){u=[],f.push([{content:h,offset:m,color:"",fontStyle:0}]);continue}let _,v,w;s.includeExplanation&&(_=t.tokenizeLine(h,c,l),v=_.tokens,w=0);const C=t.tokenizeLine2(h,c,l),$=C.tokens.length/2;for(let V=0;V<$;V++){const z=C.tokens[2*V],L=V+1<$?C.tokens[2*V+2]:h.length;if(z===L)continue;const G=C.tokens[2*V+1],P=Fn(r[Lr.getForeground(G)],o),O=Lr.getFontStyle(G),q={content:h.substring(z,L),offset:m+z,color:P,fontStyle:O};if(s.includeExplanation){const I=[];if(s.includeExplanation!=="scopeName")for(const de of n.settings){let $e;switch(typeof de.scope){case"string":$e=de.scope.split(/,/).map(Ee=>Ee.trim());break;case"object":$e=de.scope;break;default:continue}I.push({settings:de,selectors:$e.map(Ee=>Ee.split(/ /))})}q.explanation=[];let le=0;for(;z+le<L;){const de=v[w],$e=h.substring(de.startIndex,de.endIndex);le+=$e.length,q.explanation.push({content:$e,scopes:s.includeExplanation==="scopeName"?Y1(de.scopes):J1(I,de.scopes)}),w+=1}}u.push(q)}f.push(u),u=[],c=C.ruleStack}return{tokens:f,stateStack:c}}function Y1(e){return e.map(t=>({scopeName:t}))}function J1(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:Z1(e,o,t.slice(0,r))}}return n}function pu(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Q1(e,t,n){if(!pu(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)pu(e[r],n[s])&&(r-=1),s-=1;return r===-1}function Z1(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if(Q1(i,t,n)){r.push(o);break}return r}function Tp(e,t,n){const r=Object.entries(n.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),s=r.map(a=>{const c=pa(e,t,{...n,theme:a.theme}),u=xs(c),f=typeof a.theme=="string"?a.theme:a.theme.name;return{tokens:c,state:u,theme:f}}),o=ek(...s.map(a=>a.tokens)),i=o[0].map((a,c)=>a.map((u,f)=>{const d={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(d.explanation=u.explanation),o.forEach((p,h)=>{const{content:m,explanation:_,offset:v,...w}=p[c][f];d.variants[r[h].color]=w}),d})),l=s[0].state?new Fr(Object.fromEntries(s.map(a=>{var c;return[a.theme,(c=a.state)==null?void 0:c.getInternalStack(a.theme)]})),s[0].state.lang):void 0;return l&&Qo(i,l),i}function ek(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const s=e.map(a=>a[r]),o=t.map(()=>[]);t.forEach((a,c)=>a.push(o[c]));const i=s.map(()=>0),l=s.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(c=>c.content.length));for(let c=0;c<n;c++){const u=l[c];u.content.length===a?(o[c].push(u),i[c]+=1,l[c]=s[c][i[c]]):(o[c].push({...u,content:u.content.slice(0,a)}),l[c]={...u,content:u.content.slice(a),offset:u.offset+a})}}}return t}function Eo(e,t,n){let r,s,o,i,l,a;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:f="css-vars"}=n,d=Object.entries(n.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,w)=>v.color===c?-1:w.color===c?1:0);if(d.length===0)throw new it("`themes` option must not be empty");const p=Tp(e,t,n);if(a=xs(p),c&&da!==c&&!d.find(v=>v.color===c))throw new it(`\`themes\` option must contain the defaultColor key \`${c}\``);const h=d.map(v=>e.getTheme(v.theme)),m=d.map(v=>v.color);o=p.map(v=>v.map(w=>P1(w,m,u,c,f))),a&&Qo(o,a);const _=d.map(v=>So(v.theme,n));s=hu(d,h,_,u,c,"fg",f),r=hu(d,h,_,u,c,"bg",f),i=`shiki-themes ${h.map(v=>v.name).join(" ")}`,l=c?void 0:[s,r].join(";")}else if("theme"in n){const c=So(n.theme,n);o=pa(e,t,n);const u=e.getTheme(n.theme);r=Fn(u.bg,c),s=Fn(u.fg,c),i=u.name,a=xs(o)}else throw new it("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:l,grammarState:a}}function hu(e,t,n,r,s,o,i){return e.map((l,a)=>{const c=Fn(t[a][o],n[a])||"inherit",u=`${r+l.color}${o==="bg"?"-bg":""}:${c}`;if(a===0&&s){if(s===da&&e.length>1){const f=e.findIndex(m=>m.color==="light"),d=e.findIndex(m=>m.color==="dark");if(f===-1||d===-1)throw new it('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const p=Fn(t[f][o],n[f])||"inherit",h=Fn(t[d][o],n[d])||"inherit";return`light-dark(${p}, ${h});${u}`}return c}return i==="css-vars"?u:null}).filter(l=>!!l).join(";")}function Ao(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>Ao(e,s,o),codeToTokens:(s,o)=>Eo(e,s,o)}){var h,m;let s=t;for(const _ of xo(n))s=((h=_.preprocess)==null?void 0:h.call(r,s,n))||s;let{tokens:o,fg:i,bg:l,themeName:a,rootStyle:c,grammarState:u}=Eo(e,s,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:d=!1}=n;f===!0?o=nk(o):f==="never"&&(o=rk(o)),d&&(o=sk(o));const p={...r,get source(){return s}};for(const _ of xo(n))o=((m=_.tokens)==null?void 0:m.call(p,o))||o;return tk(o,{...n,fg:i,bg:l,themeName:a,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},p,u)}function tk(e,t,n,r=xs(e)){var m,_,v,w;const s=xo(t),o=[],i={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),a!==!1&&a!=null&&(c.tabindex=a.toString());for(const[C,$]of Object.entries(t.meta||{}))C.startsWith("_")||(c[C]=$);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},f={type:"element",tagName:"code",properties:{},children:o};const d=[],p={...n,structure:l,addClassToHast:$p,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return u},get code(){return f},get lines(){return d}};if(e.forEach((C,$)=>{var L,G;$&&(l==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:`
|
|
38
|
+
`}));let V={type:"element",tagName:"span",properties:{class:"line"},children:[]},z=0;for(const P of C){let O={type:"element",tagName:"span",properties:{...P.htmlAttrs},children:[{type:"text",value:P.content}]};const q=bl(P.htmlStyle||ko(P));q&&(O.properties.style=q);for(const I of s)O=((L=I==null?void 0:I.span)==null?void 0:L.call(p,O,$+1,z,V,P))||O;l==="inline"?i.children.push(O):l==="classic"&&V.children.push(O),z+=P.content.length}if(l==="classic"){for(const P of s)V=((G=P==null?void 0:P.line)==null?void 0:G.call(p,V,$+1))||V;d.push(V),o.push(V)}else l==="inline"&&d.push(V)}),l==="classic"){for(const C of s)f=((m=C==null?void 0:C.code)==null?void 0:m.call(p,f))||f;u.children.push(f);for(const C of s)u=((_=C==null?void 0:C.pre)==null?void 0:_.call(p,u))||u;i.children.push(u)}else if(l==="inline"){const C=[];let $={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const L of i.children)L.type==="element"&&L.tagName==="br"?(C.push($),$={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(L.type==="element"||L.type==="text")&&$.children.push(L);C.push($);let z={type:"element",tagName:"code",properties:{},children:C};for(const L of s)z=((v=L==null?void 0:L.code)==null?void 0:v.call(p,z))||z;i.children=[];for(let L=0;L<z.children.length;L++){L>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});const G=z.children[L];G.type==="element"&&i.children.push(...G.children)}}let h=i;for(const C of s)h=((w=C==null?void 0:C.root)==null?void 0:w.call(p,h))||h;return r&&Qo(h,r),h}function nk(e){return e.map(t=>{const n=[];let r="",s;return t.forEach((o,i)=>{const a=!(o.fontStyle&&(o.fontStyle&yt.Underline||o.fontStyle&yt.Strikethrough));a&&o.content.match(/^\s+$/)&&t[i+1]?(s===void 0&&(s=o.offset),r+=o.content):r?(a?n.push({...o,offset:s,content:r+o.content}):n.push({content:r,offset:s},o),s=void 0,r=""):n.push(o)}),n})}function rk(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,s,o,i]=r;if(!s&&!i)return n;const l=[{...n,offset:n.offset+s.length,content:o}];return s&&l.unshift({content:s,offset:n.offset}),i&&l.push({content:i,offset:n.offset+s.length+o.length}),l}))}function sk(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const s=n[n.length-1],o=bl(s.htmlStyle||ko(s)),i=bl(r.htmlStyle||ko(r)),l=s.fontStyle&&(s.fontStyle&yt.Underline||s.fontStyle&yt.Strikethrough),a=r.fontStyle&&(r.fontStyle&yt.Underline||r.fontStyle&yt.Strikethrough);!l&&!a&&o===i?s.content+=r.content:n.push({...r})}return n})}const ok=S1;function ik(e,t,n){var o;const r={meta:{},options:n,codeToHast:(i,l)=>Ao(e,i,l),codeToTokens:(i,l)=>Eo(e,i,l)};let s=ok(Ao(e,t,n,r));for(const i of xo(n))s=((o=i.postprocess)==null?void 0:o.call(r,s,n))||s;return s}const gu={light:"#333333",dark:"#bbbbbb"},mu={light:"#fffffe",dark:"#1e1e1e"},vu="__shiki_resolved";function ga(e){var l,a,c,u,f;if(e!=null&&e[vu])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const d=t.settings?t.settings.find(p=>!p.name&&!p.scope):void 0;(l=d==null?void 0:d.settings)!=null&&l.foreground&&(r=d.settings.foreground),(a=d==null?void 0:d.settings)!=null&&a.background&&(n=d.settings.background),!r&&((c=t==null?void 0:t.colors)!=null&&c["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((u=t==null?void 0:t.colors)!=null&&u["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?gu.light:gu.dark),n||(n=t.type==="light"?mu.light:mu.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function i(d){var h;if(o.has(d))return o.get(d);s+=1;const p=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(h=t.colorReplacements)!=null&&h[`#${p}`]?i(d):(o.set(d,p),p)}t.settings=t.settings.map(d=>{var _,v;const p=((_=d.settings)==null?void 0:_.foreground)&&!d.settings.foreground.startsWith("#"),h=((v=d.settings)==null?void 0:v.background)&&!d.settings.background.startsWith("#");if(!p&&!h)return d;const m={...d,settings:{...d.settings}};if(p){const w=i(d.settings.foreground);t.colorReplacements[w]=d.settings.foreground,m.settings.foreground=w}if(h){const w=i(d.settings.background);t.colorReplacements[w]=d.settings.background,m.settings.background=w}return m});for(const d of Object.keys(t.colors||{}))if((d==="editor.foreground"||d==="editor.background"||d.startsWith("terminal.ansi"))&&!((f=t.colors[d])!=null&&f.startsWith("#"))){const p=i(t.colors[d]);t.colorReplacements[p]=t.colors[d],t.colors[d]=p}return Object.defineProperty(t,vu,{enumerable:!1,writable:!1,value:!0}),t}async function Np(e){return Array.from(new Set((await Promise.all(e.filter(t=>!A1(t)).map(async t=>await Ap(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Pp(e){return(await Promise.all(e.map(async n=>$1(n)?null:ga(await Ap(n))))).filter(n=>!!n)}let lk=3;function ak(e,t=3){t>lk||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class mr extends Error{constructor(t){super(t),this.name="ShikiError"}}function Op(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new mr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class ck extends cS{constructor(n,r,s,o={}){super(n);j(this,"_resolvedThemes",new Map);j(this,"_resolvedGrammars",new Map);j(this,"_langMap",new Map);j(this,"_langGraph",new Map);j(this,"_textmateThemeCache",new WeakMap);j(this,"_loadedThemesCache",null);j(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=s,this._alias=o,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=ga(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=yo.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){return n=Op(n,this._alias),this._resolvedGrammars.get(n)}loadLanguage(n){var i,l,a,c;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(u=>{var f;return(f=u.embeddedLangsLazy)==null?void 0:f.includes(n.name)}));this._resolver.addLanguage(n);const s={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,s);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(u=>{this._alias[u]=n.name}),this._loadedLanguagesCache=null,r.size)for(const u of r)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,(l=(i=this._syncRegistry)==null?void 0:i._injectionGrammars)==null||l.delete(u.scopeName),(c=(a=this._syncRegistry)==null?void 0:a._grammars)==null||c.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),s=r.filter(([o,i])=>!i);if(s.length){const o=r.filter(([i,l])=>{if(!l)return!1;const a=l.embeddedLanguages||l.embeddedLangs;return a==null?void 0:a.some(c=>s.map(([u])=>u).includes(c))}).filter(i=>!s.includes(i));throw new mr(`Missing languages ${s.map(([i])=>`\`${i}\``).join(", ")}, required by ${o.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[o,i]of r)this._resolver.addLanguage(i);for(const[o,i]of r)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){this._langMap.set(n.name,n),this._langGraph.set(n.name,n);const r=n.embeddedLanguages??n.embeddedLangs;if(r)for(const s of r)this._langGraph.set(s,this._langMap.get(s))}}class uk{constructor(t,n){j(this,"_langs",new Map);j(this,"_scopeToLang",new Map);j(this,"_injections",new Map);j(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Xr=0;function fk(e){Xr+=1,e.warnings!==!1&&Xr>=10&&Xr%10===0&&console.warn(`[Shiki] ${Xr} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new mr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(ga),s=new uk(e.engine,n),o=new ck(s,r,n,e.langAlias);let i;function l(C){return Op(C,e.langAlias)}function a(C){v();const $=o.getGrammar(typeof C=="string"?C:C.name);if(!$)throw new mr(`Language \`${C}\` not found, you may need to load it first`);return $}function c(C){if(C==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const $=o.getTheme(C);if(!$)throw new mr(`Theme \`${C}\` not found, you may need to load it first`);return $}function u(C){v();const $=c(C);i!==C&&(o.setTheme($),i=C);const V=o.getColorMap();return{theme:$,colorMap:V}}function f(){return v(),o.getLoadedThemes()}function d(){return v(),o.getLoadedLanguages()}function p(...C){v(),o.loadLanguages(C.flat(1))}async function h(...C){return p(await Np(C))}function m(...C){v();for(const $ of C.flat(1))o.loadTheme($)}async function _(...C){return v(),m(await Pp(C))}function v(){if(t)throw new mr("Shiki instance has been disposed")}function w(){t||(t=!0,o.dispose(),Xr-=1)}return{setTheme:u,getTheme:c,getLanguage:a,getLoadedThemes:f,getLoadedLanguages:d,resolveLangAlias:l,loadLanguage:h,loadLanguageSync:p,loadTheme:_,loadThemeSync:m,dispose:w,[Symbol.dispose]:w}}async function dk(e){e.engine||ak("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Pp(e.themes||[]),Np(e.langs||[]),e.engine]);return fk({...e,themes:t,langs:n,engine:r})}async function pk(e){const t=await dk(e);return{getLastGrammarState:(...n)=>K1(t,...n),codeToTokensBase:(n,r)=>pa(t,n,r),codeToTokensWithThemes:(n,r)=>Tp(t,n,r),codeToTokens:(n,r)=>Eo(t,n,r),codeToHast:(n,r)=>Ao(t,n,r),codeToHtml:(n,r)=>ik(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function jr(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function hk(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const ma=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),lt=String.raw;function Gr(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Lp=lt`\[\^?`,Mp=`c.? | C(?:-.?)?|${lt`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${lt`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${lt`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${lt`o\{[^\}]*\}?`}|${lt`\d{1,3}`}`,va=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Ws=new RegExp(lt`
|
|
39
|
+
\\ (?:
|
|
40
|
+
${Mp}
|
|
41
|
+
| [gk]<[^>]*>?
|
|
42
|
+
| [gk]'[^']*'?
|
|
43
|
+
| .
|
|
44
|
+
)
|
|
45
|
+
| \( (?:
|
|
46
|
+
\? (?:
|
|
47
|
+
[:=!>({]
|
|
48
|
+
| <[=!]
|
|
49
|
+
| <[^>]*>
|
|
50
|
+
| '[^']*'
|
|
51
|
+
| ~\|?
|
|
52
|
+
| #(?:[^)\\]|\\.?)*
|
|
53
|
+
| [^:)]*[:)]
|
|
54
|
+
)?
|
|
55
|
+
| \*[^\)]*\)?
|
|
56
|
+
)?
|
|
57
|
+
| (?:${va.source})+
|
|
58
|
+
| ${Lp}
|
|
59
|
+
| .
|
|
60
|
+
`.replace(/\s+/g,""),"gsu"),Pi=new RegExp(lt`
|
|
61
|
+
\\ (?:
|
|
62
|
+
${Mp}
|
|
63
|
+
| .
|
|
64
|
+
)
|
|
65
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
66
|
+
| ${Lp}
|
|
67
|
+
| &&
|
|
68
|
+
| .
|
|
69
|
+
`.replace(/\s+/g,""),"gsu");function gk(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=Ok(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return s.at(-1)},numOpenGroups:0,popModX(){s.pop()},pushModX(f){s.push(f)},replaceCurrentModX(f){s[s.length-1]=f},singleline:n.rules.singleline};let i=[],l;for(Ws.lastIndex=0;l=Ws.exec(e);){const f=mk(o,e,l[0],Ws.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(Ws.lastIndex=f.lastIndex)}const a=[];let c=0;i.filter(f=>f.type==="GroupOpen").forEach(f=>{f.kind==="capturing"?f.number=++c:f.raw==="("&&a.push(f)}),c||a.forEach((f,d)=>{f.kind="capturing",f.number=d+1});const u=c||a.length;return{tokens:i.map(f=>f.type==="EscapedNumber"?Mk(f,u):f).flat(),flags:r}}function mk(e,t,n,r){const[s,o]=n;if(n==="["||n==="[^"){const i=vk(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:yu(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Ak(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Bp(n)}}if(o==="K")return{token:Fp("keep",n)};if(o==="N"||o==="R")return{token:Zn("newline",n,{negate:o==="N"})};if(o==="O")return{token:Zn("any",n)};if(o==="X")return{token:Zn("text_segment",n)};const i=Dp(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(o==="*")return{token:Tk(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:Rk(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:hr("group",n)};if(n==="(?>")return{token:hr("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:hr(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:hr("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:hr("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:kk(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(`
|
|
70
|
+
`,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}}if(n===".")return{token:Zn("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":lt`\A`,$:lt`\Z`}[n]:n;return{token:yu(i,n)}}return n==="|"?{token:_k(n)}:va.test(n)?{tokens:Dk(n)}:{token:yn(jr(n),n)}}function vk(e,t,n){const r=[_u(t[1]==="^",t)];let s=1,o;for(Pi.lastIndex=n;o=Pi.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(_u(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(yn(93,i));else if(s--,r.push(bk(i)),!s)break}else{const l=yk(i);Array.isArray(l)?r.push(...l):r.push(l)}}return{tokens:r,lastIndex:Pi.lastIndex||e.length}}function yk(e){if(e[0]==="\\")return Dp(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!ma.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Zn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?wk(e):e==="&&"?Ck(e):yn(jr(e),e)}function Dp(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return Ik(e);if("dDhHsSwW".includes(n))return Nk(e);if(e.startsWith(lt`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return Pk(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),s=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...s].map(i=>{const l=[...o.encode(i)].map(a=>`\\x${a.toString(16)}`).join("");return yn(jr(i),l)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return yn(Lk(e),e);if(bu.has(n))return yn(bu.get(n),e);if(/\d/.test(n))return Sk(t,e);if(e==="\\")throw new Error(lt`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return yn(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function _k(e){return{type:"Alternator",raw:e}}function yu(e,t){return{type:"Assertion",kind:e,raw:t}}function Bp(e){return{type:"Backreference",raw:e}}function yn(e,t){return{type:"Character",value:e,raw:t}}function bk(e){return{type:"CharacterClassClose",raw:e}}function wk(e){return{type:"CharacterClassHyphen",raw:e}}function Ck(e){return{type:"CharacterClassIntersector",raw:e}}function _u(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Zn(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function Fp(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Gr(n.flags),raw:t}}function Sk(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function kk(e){return{type:"GroupClose",raw:e}}function hr(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function xk(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function Ek(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function Ak(e){return{type:"Subroutine",raw:e}}const $k=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),bu=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Ik(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return yn(jr(t.toUpperCase())-64,e)}function Rk(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const s=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=Cu(n),i=Cu(r),l={};if(o&&(l.enable=o),i&&(l.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),Fp("flags",e,{flags:l});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,hr("group",e,{...(o||i)&&{flags:l}});throw new Error(`Unexpected flag modifier "${e}"`)}function Tk(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:s}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=s?s.split(",").filter(u=>u!=="").map(u=>/^[+-]?\d+$/.test(u)?+u:u):[],[i,l,a]=o,c=$k.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(o.length===2&&(typeof l=="number"||!/^[<>X]$/.test(l)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${l}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof l=="number"||!/^(?:[<>!=]=|[<>])$/.test(l))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${l}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument three must be a tag or number "${a}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return xk(c,r??null,(s==null?void 0:s.split(","))??null,e)}function wu(e){let t=null,n,r;if(e[0]==="{"){const{minStr:s,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+s>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+s,r=o===void 0?+s:o===""?1/0:+o,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Ek(t,n,r,e)}function Nk(e){const t=e[1].toLowerCase();return Zn({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function Pk(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Zn("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function Cu(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function Ok(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function Lk(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function Mk(e,t){const{raw:n,inCharClass:r}=e,s=n.slice(1);if(!r&&(s!=="0"&&s.length===1||s[0]!=="0"&&+s<=t))return[Bp(n)];const o=[],i=s.match(/^[0-7]+|\d/g);for(let l=0;l<i.length;l++){const a=i[l];let c;if(l===0&&a!=="8"&&a!=="9"){if(c=parseInt(a,8),c>127)throw new Error(lt`Octal encoded byte above 177 unsupported "${n}"`)}else c=jr(a);o.push(yn(c,(l===0?"\\":"")+a))}return o}function Dk(e){const t=[],n=new RegExp(va,"gy");let r;for(;r=n.exec(e);){const s=r[0];if(s[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(s);if(o){const{min:i,max:l}=o.groups;if(+i>+l&&s.endsWith("?")){n.lastIndex--,t.push(wu(s.slice(0,-1)));continue}}}t.push(wu(s))}return t}function jp(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function Bk(e){return Fk.has(e.type)}const Fk=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Gp(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=gk(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(d,p)=>{const h=r.tokens[o.nextIndex];switch(o.parent=d,o.nextIndex++,h.type){case"Alternator":return or();case"Assertion":return jk(h);case"Backreference":return Gk(h,o);case"Character":return Zo(h.value,{useLastValid:!!p.isCheckingRangeEnd});case"CharacterClassHyphen":return Vk(h,o,p);case"CharacterClassOpen":return Uk(h,o,p);case"CharacterSet":return qk(h,o);case"Directive":return Yk(h.kind,{flags:h.flags});case"GroupOpen":return Hk(h,o,p);case"NamedCallout":return Qk(h.kind,h.tag,h.arguments);case"Quantifier":return zk(h,o);case"Subroutine":return Wk(h,o);default:throw new Error(`Unexpected token type "${h.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s},i=ex(Jk(r.flags));let l=i.body[0];for(;o.nextIndex<r.tokens.length;){const d=s(l,{});d.type==="Alternative"?(i.body.push(d),l=d):l.body.push(d)}const{capturingGroups:a,hasNumberedRef:c,namedGroupsByName:u,subroutines:f}=o;if(c&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of f)if(typeof d=="number"){if(d>a.length)throw new Error("Subroutine uses a group number that's not defined");d&&(a[d-1].isSubroutined=!0)}else if(u.has(d)){if(u.get(d).length>1)throw new Error(lt`Subroutine uses a duplicate group name "\g<${d}>"`);u.get(d)[0].isSubroutined=!0}else throw new Error(lt`Subroutine uses a group name that's not defined "\g<${d}>"`);return i}function jk({kind:e}){return wl(Gr({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===lt`\B`||e===lt`\Y`})}function Gk({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),s=(o,i=!1)=>{const l=t.capturingGroups.length;let a=!1;if(o>l)if(t.skipBackrefValidation)a=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Cl(i?l+1-o:o,{orphan:a})};if(n){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return s(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return Cl(r)}return s(+r)}function Vk(e,t,n){const{tokens:r,walk:s}=t,o=t.parent,i=o.body.at(-1),l=r[t.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&l&&l.type!=="CharacterClassOpen"&&l.type!=="CharacterClassClose"&&l.type!=="CharacterClassIntersector"){const a=s(o,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&a.type==="Character")return o.body.pop(),Xk(i,a);throw new Error("Invalid character class range")}return Zo(jr("-"))}function Uk({negate:e},t,n){const{tokens:r,walk:s}=t,o=[ro()],i=r[t.nextIndex];let l=xu(i);for(;l.type!=="CharacterClassClose";){if(l.type==="CharacterClassIntersector")o.push(ro()),t.nextIndex++;else{const c=o.at(-1);c.body.push(s(c,n))}l=xu(r[t.nextIndex],i)}const a=ro({negate:e});return o.length===1?a.body=o[0].body:(a.kind="intersection",a.body=o.map(c=>c.body.length===1?c.body[0]:c)),t.nextIndex++,a}function qk({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const l=ei(n);if(ma.has(l)&&!(i!=null&&i.has(l)))e="posix",n=l;else return gr(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?Zk(n,{negate:t}):Sl(e,{negate:t})}function Hk(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:l}=t,a=tx(e),c=a.type==="AbsenceFunction",u=ku(a),f=u&&a.negate;if(a.type==="CapturingGroup"&&(s.push(a),a.name&&hk(o,a.name,[]).push(a)),c&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=Eu(r[t.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")a.body.push(or()),t.nextIndex++;else{const p=a.body.at(-1),h=l(p,{...n,isInAbsenceFunction:n.isInAbsenceFunction||c,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||f});if(p.body.push(h),(u||n.isInLookbehind)&&!i){const m="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(Su(h)||h.type==="CapturingGroup")throw new Error(m)}else if(Su(h)||ku(h)&&h.negate)throw new Error(m)}}d=Eu(r[t.nextIndex])}return t.nextIndex++,a}function zk({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!Bk(o))throw new Error("Quantifier requires a repeatable token");const i=Up(e,t,n,o);return s.body.pop(),i}function Wk({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let s=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){const l=+o.groups.num,a=n.length;if(t.hasNumberedRef=!0,s={"":l,"+":a+l,"-":a+1-l}[o.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);const i=qp(s);return r.push(i),i}function Kk(e,t){return{type:"AbsenceFunction",kind:e,body:Ds(t==null?void 0:t.body)}}function or(e){return{type:"Alternative",body:Hp(e==null?void 0:e.body)}}function wl(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!(t!=null&&t.negate)),n}function Cl(e,t){const n=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...n&&{orphan:n}}}function Vp(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!nx(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:Ds(t==null?void 0:t.body)}}function Zo(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function ro(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Hp(e==null?void 0:e.body)}}function Xk(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Sl(e,t){const n=!!(t!=null&&t.negate),r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function Yk(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Gr(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function Jk(e){return{type:"Flags",...e}}function Vt(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:Ds(e==null?void 0:e.body)}}function Yn(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Ds(e==null?void 0:e.body)}}function Qk(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function Zk(e,t){const n=!!(t!=null&&t.negate);if(!ma.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Up(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function ex(e,t){return{type:"Regex",body:Ds(t==null?void 0:t.body),flags:e}}function qp(e){return{type:"Subroutine",ref:e}}function gr(e,t){var s;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=(s=n.unicodePropertyMap)==null?void 0:s.get(ei(e));if(!r){if(n.normalizeUnknownPropertyNames)r=rx(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(lt`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function tx({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return Kk("repeater");case"atomic":return Vt({atomic:!0});case"capturing":return Vp(s,{name:n});case"group":return Vt({flags:e});case"lookahead":case"lookbehind":return Yn({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function Ds(e){if(e===void 0)e=[or()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function Hp(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function Su(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function ku(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function nx(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function rx(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function ei(e){return e.replace(/[- _]+/g,"").toLowerCase()}function xu(e,t){const n=t;return Gr(e,`Unclosed character class${(n==null?void 0:n.type)==="Character"&&n.value===93&&n.raw==="]"?' (started with "]")':""}`)}function Eu(e){return Gr(e,"Unclosed group")}function fs(e,t,n=null){function r(o,i){for(let l=0;l<o.length;l++){const a=s(o[l],i,l,o);l=Math.max(-1,l+a)}}function s(o,i=null,l=null,a=null){var v,w;let c=0,u=!1;const f={node:o,parent:i,key:l,container:a,root:e,remove(){Ks(a).splice(Math.max(0,ur(l)+c),1),c--,u=!0},removeAllNextSiblings(){return Ks(a).splice(ur(l)+1)},removeAllPrevSiblings(){const C=ur(l)+c;return c-=C,Ks(a).splice(0,Math.max(0,C))},replaceWith(C,$={}){const V=!!$.traverse;a?a[Math.max(0,ur(l)+c)]=C:Gr(i,"Can't replace root node")[l]=C,V&&s(C,i,l,a),u=!0},replaceWithMultiple(C,$={}){const V=!!$.traverse;if(Ks(a).splice(Math.max(0,ur(l)+c),1,...C),c+=C.length-1,V){let z=0;for(let L=0;L<C.length;L++)z+=s(C[L],i,ur(l)+L+z,a)}u=!0},skip(){u=!0}},{type:d}=o,p=t["*"],h=t[d],m=typeof p=="function"?p:p==null?void 0:p.enter,_=typeof h=="function"?h:h==null?void 0:h.enter;if(m==null||m(f,n),_==null||_(f,n),!u)switch(d){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":s(o.min,o,"min"),s(o.max,o,"max");break;case"Quantifier":s(o.body,o,"body");break;case"Regex":r(o.body,o),s(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return(v=h==null?void 0:h.exit)==null||v.call(h,f,n),(w=p==null?void 0:p.exit)==null||w.call(p,f,n),c}return s(e),e}function Ks(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function ur(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const sx=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function ox(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function ix(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const jt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function ya(e,t,n,r){const s=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let i=0,l="";for(const a of e.matchAll(s)){const{0:c,groups:{$skip:u}}=a;if(!u&&(!r||r===jt.DEFAULT==!i)){n instanceof Function?l+=n(a,{context:i?jt.CHAR_CLASS:jt.DEFAULT,negated:o[o.length-1]}):l+=n;continue}c[0]==="["?(i++,o.push(c[1]==="^")):c==="]"&&i&&(i--,o.pop()),l+=c}return l}function zp(e,t,n,r){ya(e,t,n,r)}function lx(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const s=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=n;let o=0,i;for(;i=s.exec(e);){const{0:l,groups:{$skip:a}}=i;if(!a&&(!r||r===jt.DEFAULT==!o))return i;l==="["?o++:l==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function Xs(e,t,n){return!!lx(e,t,0,n)}function ax(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,s=0,o=1,i;for(;i=n.exec(e);){const[l]=i;if(l==="[")s++;else if(s)l==="]"&&s--;else if(l==="(")o++;else if(l===")"&&(o--,!o)){r=i.index;break}}return e.slice(t,r)}const Au=new RegExp(String.raw`(?<noncapturingStart>${sx})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function cx(e,t){const n=(t==null?void 0:t.hiddenCaptures)??[];let r=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const s="(?>",o="(?:(?=(",i=[0],l=[];let a=0,c=0,u=NaN,f;do{f=!1;let d=0,p=0,h=!1,m;for(Au.lastIndex=Number.isNaN(u)?0:u+o.length;m=Au.exec(e);){const{0:_,index:v,groups:{capturingStart:w,noncapturingStart:C}}=m;if(_==="[")d++;else if(d)_==="]"&&d--;else if(_===s&&!h)u=v,h=!0;else if(h&&C)p++;else if(w)h?p++:(a++,i.push(a+c));else if(_===")"&&h){if(!p){c++;const $=a+c;if(e=`${e.slice(0,u)}${o}${e.slice(u+s.length,v)}))<$$${$}>)${e.slice(v+1)}`,f=!0,l.push($),ox(n,$),r.size){const V=new Map;r.forEach((z,L)=>{V.set(L>=$?L+1:L,z.map(G=>G>=$?G+1:G))}),r=V}break}p--}}}while(f);return n.push(...l),e=ya(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:p,wrappedBackrefNum:h}})=>{if(p){const m=+p;if(m>i.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${i[m]}`}return`\\${h}`},jt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Wp=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Oi=new RegExp(String.raw`
|
|
71
|
+
\\(?: \d+
|
|
72
|
+
| c[A-Za-z]
|
|
73
|
+
| [gk]<[^>]+>
|
|
74
|
+
| [pPu]\{[^\}]+\}
|
|
75
|
+
| u[A-Fa-f\d]{4}
|
|
76
|
+
| x[A-Fa-f\d]{2}
|
|
77
|
+
)
|
|
78
|
+
| \((?: \? (?: [:=!>]
|
|
79
|
+
| <(?:[=!]|[^>]+>)
|
|
80
|
+
| [A-Za-z\-]+:
|
|
81
|
+
| \(DEFINE\)
|
|
82
|
+
))?
|
|
83
|
+
| (?<qBase>${Wp})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
84
|
+
| \\?.
|
|
85
|
+
`.replace(/\s+/g,""),"gsu");function ux(e){if(!new RegExp(`${Wp}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(Oi.lastIndex=0;i=Oi.exec(e);){const{0:l,index:a,groups:{qBase:c,qMod:u,invalidQ:f}}=i;if(l==="[")o||(r=a),o++;else if(l==="]")o?o--:r=null;else if(!o)if(u==="+"&&s&&!s.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${l}"`);let d=-1;if(/^\{\d+\}$/.test(c))e=ix(e,a+c.length,u,"");else{if(s===")"||s==="]"){const p=s===")"?n:r;if(p===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,p)}(?>${e.slice(p,a)}${c})${e.slice(a+l.length)}`}else e=`${e.slice(0,a-s.length)}(?>${s}${c})${e.slice(a+l.length)}`;d+=4}Oi.lastIndex+=d}else l[0]==="("?t.push(a):l===")"&&(n=t.length?t.pop():null);s=l}return{pattern:e}}const Ft=String.raw,fx=Ft`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,kl=Ft`\(\?R=(?<rDepth>[^\)]+)\)|${fx}`,ti=Ft`\(\?<(?![=!])(?<captureName>[^>]+)>`,Kp=Ft`${ti}|(?<unnamed>\()(?!\?)`,Hn=new RegExp(Ft`${ti}|${kl}|\(\?|\\?.`,"gsu"),Li="Cannot use multiple overlapping recursions";function dx(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(kl,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&Xs(e,Ft`\(\?\(DEFINE\)`,jt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=Xs(e,Ft`\\[1-9]`,jt.DEFAULT),l=new Map,a=[];let c=!1,u=0,f=0,d;for(Hn.lastIndex=0;d=Hn.exec(e);){const{0:p,groups:{captureName:h,rDepth:m,gRNameOrNum:_,gRDepth:v}}=d;if(p==="[")u++;else if(u)p==="]"&&u--;else if(m){if($u(m),c)throw new Error(Li);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const w=e.slice(0,d.index),C=e.slice(Hn.lastIndex);if(Xs(C,kl,jt.DEFAULT))throw new Error(Li);const $=+m-1;e=Iu(w,C,$,!1,n,o,f),s=Tu(s,w,$,o.length,0,f);break}else if(_){$u(v);let w=!1;for(const I of a)if(I.name===_||I.num===+_){if(w=!0,I.hasRecursedWithin)throw new Error(Li);break}if(!w)throw new Error(Ft`Recursive \g cannot be used outside the referenced group "${r==="external"?_:Ft`\g<${_}&R=${v}>`}"`);const C=l.get(_),$=ax(e,C);if(i&&Xs($,Ft`${ti}|\((?!\?)`,jt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const V=e.slice(C,d.index),z=$.slice(V.length+p.length),L=o.length,G=+v-1,P=Iu(V,z,G,!0,n,o,f);s=Tu(s,V,G,o.length-L,L,f);const O=e.slice(0,C),q=e.slice(C+$.length);e=`${O}${P}${q}`,Hn.lastIndex+=P.length-p.length-V.length-z.length,a.forEach(I=>I.hasRecursedWithin=!0),c=!0}else if(h)f++,l.set(String(f),Hn.lastIndex),l.set(h,Hn.lastIndex),a.push({num:f,name:h});else if(p[0]==="("){const w=p==="(";w&&(f++,l.set(String(f),Hn.lastIndex)),a.push(w?{num:f}:{})}else p===")"&&a.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function $u(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Iu(e,t,n,r,s,o,i){const l=new Set;r&&zp(e+t,ti,({groups:{captureName:c}})=>{l.add(c)},jt.DEFAULT);const a=[n,r?l:null,s,o,i];return`${e}${Ru(`(?:${e}`,"forward",...a)}(?:)${Ru(`${t})`,"backward",...a)}${t}`}function Ru(e,t,n,r,s,o,i){const a=u=>t==="forward"?u+2:n-u+2-1;let c="";for(let u=0;u<n;u++){const f=a(u);c+=ya(e,Ft`${Kp}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:p,unnamed:h,backref:m}})=>{if(m&&r&&!r.has(m))return d;const _=`_$${f}`;if(h||p){const v=i+o.length+1;return o.push(v),px(s,v),h?d:`(?<${p}${_}>`}return Ft`\k<${m}${_}>`},jt.DEFAULT)}return c}function px(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Tu(e,t,n,r,s,o){if(e.size&&r){let i=0;zp(t,Kp,()=>i++,jt.DEFAULT);const l=o-i+s,a=new Map;return e.forEach((c,u)=>{const f=(r-i*n)/n,d=i*n,p=u>l+i?u+r:u,h=[];for(const m of c)if(m<=l)h.push(m);else if(m>l+i+f)h.push(m+r);else if(m<=l+i)for(let _=0;_<=n;_++)h.push(m+i*_);else for(let _=0;_<=n;_++)h.push(m+d+f*_);a.set(p,h)}),a}return e}var rt=String.fromCodePoint,be=String.raw,zt={},ni=globalThis.RegExp;zt.flagGroups=(()=>{try{new ni("(?i:)")}catch{return!1}return!0})();zt.unicodeSets=(()=>{try{new ni("[[]]","v")}catch{return!1}return!0})();zt.bugFlagVLiteralHyphenIsRange=zt.unicodeSets?(()=>{try{new ni(be`[\d\-a]`,"v")}catch{return!0}return!1})():!1;zt.bugNestedClassIgnoresNegation=zt.unicodeSets&&new ni("[[^a]]","v").test("a");function $o(e,{enable:t,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function Es(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function xl(e,t){return Nu[e]>=Nu[t]}function hx(e,t){if(e==null)throw new Error(t??"Value expected");return e}var Nu={ES2025:2025,ES2024:2024,ES2018:2018},gx={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Xp(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!gx[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=zt.flagGroups?"ES2025":zt.unicodeSets?"ES2024":"ES2018"),t}var mx="[ -\r ]",vx=new Set([rt(304),rt(305)]),fn=be`[\p{L}\p{M}\p{N}\p{Pc}]`;function Yp(e){if(vx.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=bx.get(n),o=yx.get(n),i=_x.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),s&&t.add(s),t.add(n),o&&t.add(o),[...t]}var _a=new Map(`C Other
|
|
86
|
+
Cc Control cntrl
|
|
87
|
+
Cf Format
|
|
88
|
+
Cn Unassigned
|
|
89
|
+
Co Private_Use
|
|
90
|
+
Cs Surrogate
|
|
91
|
+
L Letter
|
|
92
|
+
LC Cased_Letter
|
|
93
|
+
Ll Lowercase_Letter
|
|
94
|
+
Lm Modifier_Letter
|
|
95
|
+
Lo Other_Letter
|
|
96
|
+
Lt Titlecase_Letter
|
|
97
|
+
Lu Uppercase_Letter
|
|
98
|
+
M Mark Combining_Mark
|
|
99
|
+
Mc Spacing_Mark
|
|
100
|
+
Me Enclosing_Mark
|
|
101
|
+
Mn Nonspacing_Mark
|
|
102
|
+
N Number
|
|
103
|
+
Nd Decimal_Number digit
|
|
104
|
+
Nl Letter_Number
|
|
105
|
+
No Other_Number
|
|
106
|
+
P Punctuation punct
|
|
107
|
+
Pc Connector_Punctuation
|
|
108
|
+
Pd Dash_Punctuation
|
|
109
|
+
Pe Close_Punctuation
|
|
110
|
+
Pf Final_Punctuation
|
|
111
|
+
Pi Initial_Punctuation
|
|
112
|
+
Po Other_Punctuation
|
|
113
|
+
Ps Open_Punctuation
|
|
114
|
+
S Symbol
|
|
115
|
+
Sc Currency_Symbol
|
|
116
|
+
Sk Modifier_Symbol
|
|
117
|
+
Sm Math_Symbol
|
|
118
|
+
So Other_Symbol
|
|
119
|
+
Z Separator
|
|
120
|
+
Zl Line_Separator
|
|
121
|
+
Zp Paragraph_Separator
|
|
122
|
+
Zs Space_Separator
|
|
123
|
+
ASCII
|
|
124
|
+
ASCII_Hex_Digit AHex
|
|
125
|
+
Alphabetic Alpha
|
|
126
|
+
Any
|
|
127
|
+
Assigned
|
|
128
|
+
Bidi_Control Bidi_C
|
|
129
|
+
Bidi_Mirrored Bidi_M
|
|
130
|
+
Case_Ignorable CI
|
|
131
|
+
Cased
|
|
132
|
+
Changes_When_Casefolded CWCF
|
|
133
|
+
Changes_When_Casemapped CWCM
|
|
134
|
+
Changes_When_Lowercased CWL
|
|
135
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
136
|
+
Changes_When_Titlecased CWT
|
|
137
|
+
Changes_When_Uppercased CWU
|
|
138
|
+
Dash
|
|
139
|
+
Default_Ignorable_Code_Point DI
|
|
140
|
+
Deprecated Dep
|
|
141
|
+
Diacritic Dia
|
|
142
|
+
Emoji
|
|
143
|
+
Emoji_Component EComp
|
|
144
|
+
Emoji_Modifier EMod
|
|
145
|
+
Emoji_Modifier_Base EBase
|
|
146
|
+
Emoji_Presentation EPres
|
|
147
|
+
Extended_Pictographic ExtPict
|
|
148
|
+
Extender Ext
|
|
149
|
+
Grapheme_Base Gr_Base
|
|
150
|
+
Grapheme_Extend Gr_Ext
|
|
151
|
+
Hex_Digit Hex
|
|
152
|
+
IDS_Binary_Operator IDSB
|
|
153
|
+
IDS_Trinary_Operator IDST
|
|
154
|
+
ID_Continue IDC
|
|
155
|
+
ID_Start IDS
|
|
156
|
+
Ideographic Ideo
|
|
157
|
+
Join_Control Join_C
|
|
158
|
+
Logical_Order_Exception LOE
|
|
159
|
+
Lowercase Lower
|
|
160
|
+
Math
|
|
161
|
+
Noncharacter_Code_Point NChar
|
|
162
|
+
Pattern_Syntax Pat_Syn
|
|
163
|
+
Pattern_White_Space Pat_WS
|
|
164
|
+
Quotation_Mark QMark
|
|
165
|
+
Radical
|
|
166
|
+
Regional_Indicator RI
|
|
167
|
+
Sentence_Terminal STerm
|
|
168
|
+
Soft_Dotted SD
|
|
169
|
+
Terminal_Punctuation Term
|
|
170
|
+
Unified_Ideograph UIdeo
|
|
171
|
+
Uppercase Upper
|
|
172
|
+
Variation_Selector VS
|
|
173
|
+
White_Space space
|
|
174
|
+
XID_Continue XIDC
|
|
175
|
+
XID_Start XIDS`.split(/\s/).map(e=>[ei(e),e])),yx=new Map([["s",rt(383)],[rt(383),"s"]]),_x=new Map([[rt(223),rt(7838)],[rt(107),rt(8490)],[rt(229),rt(8491)],[rt(969),rt(8486)]]),bx=new Map([Tn(453),Tn(456),Tn(459),Tn(498),...Mi(8072,8079),...Mi(8088,8095),...Mi(8104,8111),Tn(8124),Tn(8140),Tn(8188)]),wx=new Map([["alnum",be`[\p{Alpha}\p{Nd}]`],["alpha",be`\p{Alpha}`],["ascii",be`\p{ASCII}`],["blank",be`[\p{Zs}\t]`],["cntrl",be`\p{Cc}`],["digit",be`\p{Nd}`],["graph",be`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",be`\p{Lower}`],["print",be`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",be`[\p{P}\p{S}]`],["space",be`\p{space}`],["upper",be`\p{Upper}`],["word",be`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",be`\p{AHex}`]]);function Cx(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Tn(e){const t=rt(e);return[t.toLowerCase(),t]}function Mi(e,t){return Cx(e,t).map(n=>Tn(n))}var Jp=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Sx(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Qp(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:xl(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};fs(e,kx,r);const s={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:s,prevFlags:null,globalFlags:s,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};fs(e,xx,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return fs(e,Ex,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var kx={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:s}=e;if(s==="repeater"){const o=Vt();o.body[0].body.push(Yn({negate:!0,body:r}),gr("Any"));const i=Vt();i.body[0].body.push(Up("greedy",0,1/0,o)),n(We(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const s=e.body.filter(o=>o.kind==="flags");for(let o=n+1;o<t.body.length;o++){const i=t.body[o];Es(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=eh(t.get(e));if(r){const s=Vt({flags:r});s.body[0].body=e.body,e.body=[We(s,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:s,remove:o,replaceWith:i},l){const{kind:a,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:f,supportedGNodes:d,wordIsAscii:p}=l;if(a==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(a==="line_end")i(We(Yn({body:[or({body:[wl("string_end")]}),or({body:[Zo(10)]})]}),t));else if(a==="line_start")i(We(dn(be`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(a==="search_start")if(d.has(e))s.flags.sticky=!0,o();else{const h=r[n-1];if(h&&Nx(h))i(We(Yn({negate:!0}),t));else{if(f)throw new Error(be`Uses "\G" in a way that requires a subclass`);i(Nn(wl("string_start"),t)),l.strategy="clip_search"}}else if(!(a==="string_end"||a==="string_start"))if(a==="string_end_newline")i(We(dn(be`(?=\n?\z)`),t));else if(a==="word_boundary"){if(!p&&!u){const h=`(?:(?<=${fn})(?!${fn})|(?<!${fn})(?=${fn}))`,m=`(?:(?<=${fn})(?=${fn})|(?<!${fn})(?!${fn}))`;i(We(dn(c?m:h),t))}}else throw new Error(`Unexpected assertion kind "${a}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Bi(n)&&(n=Di(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Bi(r)&&(r=Di(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=ro({body:[e]});n(We(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:s,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:l}){const{kind:a,negate:c,value:u}=e;if(o&&(a==="digit"||u==="digit")){n(Nn(Sl("digit",{negate:c}),t));return}if(i&&(a==="space"||u==="space")){n(We(Fi(dn(mx),c),t));return}if(l&&(a==="word"||u==="word")){n(Nn(Sl("word",{negate:c}),t));return}if(a==="any")n(Nn(gr("Any"),t));else if(a==="digit")n(Nn(gr("Nd",{negate:c}),t));else if(a!=="dot")if(a==="text_segment"){if(r==="strict")throw new Error(be`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=be`\p{RI}{2}|${f}(?:\u200D${f})*`;n(We(dn(be`(?>\r\n|${s?be`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(a==="hex")n(Nn(gr("AHex",{negate:c}),t));else if(a==="newline")n(We(dn(c?`[^
|
|
176
|
+
]`:`(?>\r
|
|
177
|
+
?|[
|
|
178
|
+
\v\f
\u2028\u2029])`),t));else if(a==="posix")if(!s&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[u];c&&(f=`\0-${rt(f.codePointAt(0)-1)}${rt(f.codePointAt(2)+1)}-`),n(We(dn(`[${f}]`),t))}else n(We(Fi(dn(wx.get(u)),c),t));else if(a==="property")_a.has(ei(u))||(e.key="sc");else if(a==="space")n(Nn(gr("space",{negate:c}),t));else if(a==="word")n(We(Fi(dn(fn),c),t));else throw new Error(`Unexpected character set kind "${a}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:s,removeAllPrevSiblings:o,removeAllNextSiblings:i}){const{kind:l,flags:a}=e;if(l==="flags")if(!a.enable&&!a.disable)r();else{const c=Vt({flags:a});c.body[0].body=i(),s(We(c,t),{traverse:!0})}else if(l==="keep"){const c=n.body[0],f=n.body.length===1&&jp(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:n;if(t.parent!==f||f.body.length>1)throw new Error(be`Uses "\K" in a way that's unsupported`);const d=Yn({behind:!0});d.body[0].body=o(),s(We(d,t))}else throw new Error(`Unexpected directive kind "${l}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t!=null&&t.extended&&delete t.extended,n!=null&&n.extended&&delete n.extended,t!=null&&t.dotAll&&(n!=null&&n.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(n!=null&&n.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(We(Yn({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Vt();t.body[0].body.push(e.body),e.body=We(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,s=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const i=nh(o.body);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):s=!0}r&&!s&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(be`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Bi(n)&&(n=Di(n,t),e.ref=n)}},xx={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:s}=e;r||n.set(e,[...t.get(s).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:s,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:l,reffedNodesByReferencer:a}){const c=s.get(e);if(c&&l.has(e.number)){const f=Nn(Pu(e.number),t);a.set(f,l.get(e.number)),n(f);return}l.set(e.number,e),i.set(e.number,[]),e.name&&Es(i,e.name,[]);const u=i.get(e.name??e.number);for(let f=0;f<u.length;f++){const d=u[f];if(c===d.node||c&&c===d.origin||e===d.origin){u.splice(f,1);break}}if(i.get(e.number).push({node:e,origin:c}),e.name&&i.get(e.name).push({node:e,origin:c}),e.name){const f=Es(o,e.name,new Map);let d=!1;if(c)d=!0;else for(const p of f.values())if(!p.hasDuplicateNameToRemove){d=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:d})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=$o(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:s,ref:o}=e;if(s){let u=t;for(;(u=u.parent)&&!(u.type==="CapturingGroup"&&(u.name===o||u.number===o)););r.reffedNodesByReferencer.set(e,u);return}const i=r.subroutineRefMap.get(o),l=o===0,a=l?Pu(0):Zp(i,r.groupOriginByCopy,null);let c=a;if(!l){const u=eh(Ix(i,d=>d.type==="Group"&&!!d.flags)),f=u?$o(r.globalFlags,u):r.globalFlags;Ax(f,r.currentFlags)||(c=Vt({flags:Rx(f)}),c.body[0].body.push(a))}n(We(c,t),{traverse:!l})}},Ex={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const o=r.reffedNodesByReferencer.get(e).filter(i=>$x(i,e));if(!o.length)n(We(Yn({negate:!0}),t));else if(o.length>1){const i=Vt({atomic:!0,body:o.reverse().map(l=>or({body:[Cl(l.number)]}))});n(We(i,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const s=Vp();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Qp(e){fs(e,{"*"({node:t,parent:n}){t.parent=n}})}function Ax(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function $x(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=th(n.parent);for(const s of r){if(s===n)break;if(s===e||rh(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Zp(e,t,n,r){const s=Array.isArray(e)?[]:{};for(const[o,i]of Object.entries(e))o==="parent"?s.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?s[o]=Zp(i,t,s,n):(o==="type"&&i==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=i);return s}function Pu(e){const t=qp(e);return t.isRecursive=!0,t}function Ix(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Di(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function eh(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(s=>{var o,i;(o=r.enable)!=null&&o[s]&&(delete n.disable[s],n.enable[s]=!0),(i=r.disable)!=null&&i[s]&&(n.disable[s]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function Rx({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function th(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function nh(e){const t=e.find(n=>n.kind==="search_start"||Px(n,{negate:!1})||!Tx(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const s=nh(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function rh(e,t){const n=th(e)??[];for(const r of n)if(r===t||rh(r,t))return!0;return!1}function Tx({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function Nx(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function Px(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&jp(e.body[0],{type:"Assertion",kind:"search_start"})}function Bi(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function dn(e,t){const r=Gp(e,{...t,unicodePropertyMap:_a}).body;return r.length>1||r[0].body.length>1?Vt({body:r}):r[0].body[0]}function Fi(e,t){return e.negate=t,e}function Nn(e,t){return e.parent=t,e}function We(e,t){return Qp(e),e.parent=t,e}function Ox(e,t){const n=Xp(t),r=xl(n.target,"ES2024"),s=xl(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,l=null;if(!s){const p=[e.flags.ignoreCase];fs(e,Lx,{getCurrentModI:()=>p.at(-1),popModI(){p.pop()},pushModI(h){p.push(h)},setHasCasedChar(){p.at(-1)?i=!0:l=!0}})}const a={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!l)};let c=e;const u={accuracy:n.accuracy,appliedGlobalFlags:a,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&i&&l),useFlagMods:s,useFlagV:r,verbose:n.verbose};function f(p){return u.lastNode=c,c=p,hx(Mx[p.type],`Unexpected node type "${p.type}"`)(p,u,f)}const d={pattern:e.body.map(f).join("|"),flags:f(e.flags),options:{...e.options}};return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],u.captureMap.forEach((p,h)=>{p.hidden&&d._hiddenCaptures.push(h),p.transferTo&&Es(d._captureTransfers,p.transferTo,[]).push(h)}),d}var Lx={"*":{enter({node:e},t){if(Lu(e)){const n=t.getCurrentModI();t.pushModI(e.flags?$o({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Lu(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){ba(rt(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),sh(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Jp.has(e.value)&&t.setHasCasedChar()}},Mx={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?be`\B`:be`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:s,number:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},l=t.originMap.get(e);return l&&(i.hidden=!0,o>l.number&&(i.transferTo=l.number)),t.captureMap.set(o,i),`(${s?`?<${s}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=rt(e),r=fr(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&ba(n)){const s=Yp(n);return t.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:s,parent:o}=e;let{body:i}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");zt.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(Mu)&&(i=[Zo(45),...i.filter(c=>!Mu(c))]);const l=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||zt.bugNestedClassIgnoresNegation)&&!s){const u=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(u.length){const f=Vt(),d=f.body[0];return f.parent=o,d.parent=f,i=i.filter(p=>!u.includes(p)),e.body=i,i.length?(e.parent=d,d.body.push(e)):f.body.pop(),u.forEach(p=>{const h=or({body:[p]});p.parent=h,h.parent=f,f.body.push(h)}),n(f)}}t.inCharClass=!0;const c=l();return t.inCharClass=!1,c}const a=i[0];if(r==="union"&&!s&&a&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(zt.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&a.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return l()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=fr(n,s),i=fr(r,s),l=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const a=sh(e);Gx(a).forEach(u=>{l.add(Array.isArray(u)?`${fr(u[0],s)}-${fr(u[1],s)}`:fr(u,s))})}return`${o}-${i}${[...l].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},s){if(e==="dot")return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":be`[^\n]`;if(e==="digit")return t?be`\D`:be`\d`;if(e==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&Jp.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?be`\P`:be`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?be`\W`:be`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},s,o){const i=s.currentFlags;n&&(s.currentFlags=$o(i,n));const l=t.map(o).join("|"),a=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?l:`(?${Vx(e,n,s.useFlagMods)}${l})`;return s.currentFlags=i,a},LookaroundAssertion({body:e,kind:t,negate:n},r,s){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(s).join("|")})`},Quantifier(e,t,n){return n(e.body)+Ux(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:be`\g<${t}&R=${r}>`}},Dx=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Bx=new Set(["-","\\","]","^","["]),Fx=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Ou=new Map([[9,be`\t`],[10,be`\n`],[11,be`\v`],[12,be`\f`],[13,be`\r`],[8232,be`\u2028`],[8233,be`\u2029`],[65279,be`\uFEFF`]]),jx=new RegExp("^\\p{Cased}$","u");function ba(e){return jx.test(e)}function sh(e,t){const n=!!(t!=null&&t.firstOnly),r=e.min.value,s=e.max.value,o=[];if(r<65&&(s===65535||s>=131071)||r===65536&&s>=131071)return o;for(let i=r;i<=s;i++){const l=rt(i);if(!ba(l))continue;const a=Yp(l).filter(c=>{const u=c.codePointAt(0);return u<r||u>s});if(a.length&&(o.push(...a),n))break}return o}function fr(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Ou.has(e))return Ou.get(e);if(e<32||e>126&&e<160||e>262143||t&&qx(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?Fx:Bx:Dx,o=rt(e);return(s.has(o)?"\\":"")+o}function Gx(e){const t=e.map(s=>s.codePointAt(0)).sort((s,o)=>s-o),n=[];let r=null;for(let s=0;s<t.length;s++)t[s+1]===t[s]+1?r??(r=t[s]):r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function Vx(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s!=null&&s.ignoreCase?"i":"")+(s!=null&&s.dotAll?"s":"")+(o?"-":"")+(o!=null&&o.ignoreCase?"i":"")+(o!=null&&o.dotAll?"s":"")}return`${r}:`}function Ux({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function Lu({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function qx(e){return e>47&&e<58}function Mu({type:e,value:t}){return e==="Character"&&t===45}var Mn,gn,er,Dn,tr,As,El,jn,Hx=(jn=class extends RegExp{constructor(n,r,s){var t=(...RI)=>(super(...RI),En(this,As),En(this,Mn,new Map),En(this,gn,null),En(this,er),En(this,Dn,null),En(this,tr,null),j(this,"rawOptions",{}),this);const o=!!(s!=null&&s.lazyCompile);if(n instanceof RegExp){if(s)throw new Error("Cannot provide options when copying a regexp");const i=n;t(i,r),Gt(this,er,i.source),i instanceof jn&&(Gt(this,Mn,et(i,Mn)),Gt(this,Dn,et(i,Dn)),Gt(this,tr,et(i,tr)),this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...s};t(o?"":n,r),Gt(this,er,n),Gt(this,Mn,Wx(i.hiddenCaptures,i.transfers)),Gt(this,tr,i.strategy),this.rawOptions=s??{}}o||Gt(this,gn,this)}get source(){return et(this,er)||"(?:)"}exec(n){if(!et(this,gn)){const{lazyCompile:o,...i}=this.rawOptions;Gt(this,gn,new jn(et(this,er),this.flags,i))}const r=this.global||this.sticky,s=this.lastIndex;if(et(this,tr)==="clip_search"&&r&&s){this.lastIndex=0;const o=si(this,As,El).call(this,n.slice(s));return o&&(zx(o,s,n,this.hasIndices),this.lastIndex+=s),o}return si(this,As,El).call(this,n)}},Mn=new WeakMap,gn=new WeakMap,er=new WeakMap,Dn=new WeakMap,tr=new WeakMap,As=new WeakSet,El=function(n){et(this,gn).lastIndex=this.lastIndex;const r=xa(jn.prototype,this,"exec").call(et(this,gn),n);if(this.lastIndex=et(this,gn).lastIndex,!r||!et(this,Mn).size)return r;const s=[...r];r.length=1;let o;this.hasIndices&&(o=[...r.indices],r.indices.length=1);const i=[0];for(let l=1;l<s.length;l++){const{hidden:a,transferTo:c}=et(this,Mn).get(l)??{};if(a?i.push(null):(i.push(r.length),r.push(s[l]),this.hasIndices&&r.indices.push(o[l])),c&&s[l]!==void 0){const u=i[c];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(r[u]=s[l],this.hasIndices&&(r.indices[u]=o[l]),r.groups){et(this,Dn)||Gt(this,Dn,Kx(this.source));const f=et(this,Dn).get(c);f&&(r.groups[f]=s[l],this.hasIndices&&(r.indices.groups[f]=o[l]))}}}return r},jn);function zx(e,t,n,r){if(e.index+=t,e.input=n,r){const s=e.indices;for(let i=0;i<s.length;i++){const l=s[i];l&&(s[i]=[l[0]+t,l[1]+t])}const o=s.groups;o&&Object.keys(o).forEach(i=>{const l=o[i];l&&(o[i]=[l[0]+t,l[1]+t])})}}function Wx(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,s]of t)for(const o of s)Es(n,o,{}).transferTo=r;return n}function Kx(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,s=0,o;for(;o=t.exec(e);){const{0:i,groups:{capture:l,name:a}}=o;i==="["?r++:r?i==="]"&&r--:l&&(s++,a&&n.set(s,a))}return n}function Xx(e,t){const n=Yx(e,t);return n.options?new Hx(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Yx(e,t){const n=Xp(t),r=Gp(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:_a}),s=Sx(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=Ox(s,n),i=dx(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),l=ux(i.pattern),a=cx(l.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),c={pattern:a.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const u=a.hiddenCaptures.sort((h,m)=>h-m),f=Array.from(a.captureTransfers),d=s._strategy,p=c.pattern.length>=n.lazyCompileLength;(u.length||f.length||d||p)&&(c.options={...u.length&&{hiddenCaptures:u},...f.length&&{transfers:f},...d&&{strategy:d},...p&&{lazyCompile:p}})}return c}const Du=4294967295;class Jx{constructor(t,n={}){j(this,"regexps");this.patterns=t,this.options=n;const{forgiving:r=!1,cache:s,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(i=>{if(typeof i!="string")return i;const l=s==null?void 0:s.get(i);if(l){if(l instanceof RegExp)return l;if(r)return null;throw l}try{const a=o(i);return s==null||s.set(i,a),a}catch(a){if(s==null||s.set(i,a),r)return null;throw a}})}findNextMatchSync(t,n,r){const s=typeof t=="string"?t:t.content,o=[];function i(l,a,c=0){return{index:l,captureIndices:a.indices.map(u=>u==null?{start:Du,end:Du,length:0}:{start:u[0]+c,end:u[1]+c,length:u[1]-u[0]})}}for(let l=0;l<this.regexps.length;l++){const a=this.regexps[l];if(a)try{a.lastIndex=n;const c=a.exec(s);if(!c)continue;if(c.index===n)return i(l,c,0);o.push([l,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(o.length){const l=Math.min(...o.map(a=>a[1].index));for(const[a,c,u]of o)if(c.index===l)return i(a,c,u)}return null}}function Qx(e,t){return Xx(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Zx(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=n=>Qx(n,{target:t.target})),{createScanner(n){return new Jx(n,t)},createString(n){return{content:n}}}}const eE=Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')),tE=[eE],Al=K(null),oh=K(!1);let Ys=null;const nE={name:"devtools-light",type:"light",bg:"transparent",fg:"#000000",settings:[{scope:["string"],settings:{foreground:"#2c7a4e"}},{scope:["constant.numeric"],settings:{foreground:"#5b3fcb"}},{scope:["constant.language.boolean","constant.language"],settings:{foreground:"#b86b00"}},{scope:["constant.language.null"],settings:{foreground:"rgba(0,0,0,0.4)"}},{scope:["support.type.property-name"],settings:{foreground:"#000000"}},{scope:["punctuation"],settings:{foreground:"rgba(0,0,0,0.4)"}}]};function rE(){return Ys||(Ys=pk({themes:[nE],langs:[tE],engine:Zx()}).then(e=>(Al.value=e,oh.value=!0,e)),Ys)}function sE(){Ve(rE);function e(t){const n=typeof t=="string"?t:JSON.stringify(t,null,2);return n?Al.value?Al.value.codeToHtml(n,{lang:"json",theme:"devtools-light"}):oE(n):""}return{highlight:e,ready:oh}}function oE(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}const iE={key:0,class:"text-view"},lE=["innerHTML"],aE={__name:"JsonView",props:{data:{default:null}},setup(e){const t=e,{highlight:n}=sE(),r=Y(()=>typeof t.data=="string"),s=Y(()=>t.data===null||t.data===void 0?'<span class="json-view__null">null</span>':n(t.data));return(o,i)=>r.value?(g(),k("pre",iE,N(t.data),1)):(g(),k("div",{key:1,class:"json-view",innerHTML:s.value},null,8,lE))}},Ut=we(aE,[["__scopeId","data-v-8873787a"]]),cE=["id","value","disabled"],uE={key:0,value:"",disabled:""},fE=["value"],dE={__name:"Select",props:{modelValue:{type:[String,Number,null],default:null},options:{type:Array,default:()=>[]},placeholder:{type:String,default:void 0},disabled:{type:Boolean,default:!1},size:{type:String,default:"md"},id:{type:String,default:void 0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,r=o=>typeof o=="object"&&o!==null?o:{value:o,label:String(o)},s=o=>n("update:modelValue",o.target.value);return(o,i)=>(g(),k("select",{id:e.id,class:_e(["pc-select",`pc-select--${e.size}`]),value:e.modelValue??"",disabled:e.disabled,onChange:s},[e.placeholder!==void 0?(g(),k("option",uE,N(e.placeholder),1)):W("",!0),(g(!0),k(se,null,ve(e.options.map(r),l=>(g(),k("option",{key:l.value,value:l.value},N(l.label),9,fE))),128))],42,cE))}},Bu=we(dE,[["__scopeId","data-v-39f6d012"]]),pE={key:0,class:"pc-callout__stripe"},hE={class:"pc-callout__body"},gE={key:0,class:"pc-callout__eyebrow"},mE={key:1,class:"pc-callout__title"},vE={key:2,class:"pc-callout__content"},yE={key:3,class:"pc-callout__actions"},_E={__name:"Callout",props:{variant:{type:String,default:"info"},eyebrow:{type:String,default:""},title:{type:String,default:""},stripe:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1}},emits:["dismiss"],setup(e,{emit:t}){const n=t;return(r,s)=>(g(),k("div",{class:_e(["pc-callout",`pc-callout--${e.variant}`,{"pc-callout--with-stripe":e.stripe}])},[e.stripe?(g(),k("div",pE)):W("",!0),x("div",hE,[e.eyebrow?(g(),k("div",gE,N(e.eyebrow),1)):W("",!0),e.title?(g(),k("div",mE,N(e.title),1)):W("",!0),r.$slots.default?(g(),k("div",vE,[ce(r.$slots,"default",{},void 0,!0)])):W("",!0),r.$slots.actions?(g(),k("div",yE,[ce(r.$slots,"actions",{},void 0,!0)])):W("",!0)]),e.dismissible?(g(),k("button",{key:1,type:"button",class:"pc-callout__close","aria-label":"Dismiss",onClick:s[0]||(s[0]=o=>n("dismiss"))},[...s[1]||(s[1]=[x("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true"},[x("path",{d:"M4 4l6 6M10 4l-6 6",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round"})],-1)])])):W("",!0)],2))}},bE=we(_E,[["__scopeId","data-v-c9c90c72"]]),wE={class:"page-body"},CE={class:"exec-layout"},SE={class:"exec-list"},kE=["onClick"],xE={class:"exec-row__top"},EE={class:"exec-row__name"},AE={class:"exec-row__meta"},$E={class:"exec-row__id"},IE={key:0,class:"exec-center"},RE={class:"exec-title"},TE={class:"exec-sub"},NE={class:"exec-actions"},PE={key:1,class:"exec-inspector"},OE={class:"exec-sub-row"},LE={class:"exec-sub-id"},ME={class:"timeline"},DE={class:"timeline__type"},BE={class:"timeline__step"},FE={class:"timeline__time"},jE={class:"signal-modal"},GE={key:0,class:"signal-modal__routes"},VE={class:"signal-modal__field"},UE={key:1,class:"signal-modal__error"},qE={__name:"WorkflowExecutions",setup(e){const t=Ho(),n=qo(),r=Os(),s=K([]),o=K([]),i=K(""),l=K(null),a=K(""),c=K(typeof t.query.status=="string"?t.query.status:""),u=K(typeof t.query.workflow=="string"?t.query.workflow:""),f=K(Date.now()),d=K(!1),p=K("{}"),h=K(null),m=K(!1),_=K(!1),v=K([]);let w=null,C=null;async function $(){const y=await fetch(Ue("/workflows"));if(!y.ok)return;const E=await y.json();s.value=E.workflows}async function V(){var M;const y=new URLSearchParams;c.value&&y.set("status",c.value),u.value&&y.set("workflow",u.value),y.set("limit","100");const E=await fetch(Ue(`/workflow/executions?${y.toString()}`));if(!E.ok)return;const T=await E.json();o.value=T.executions,!i.value&&o.value[0]&&(i.value=o.value[0].id),!v.value.length&&i.value&&!o.value.some(ne=>ne.id===i.value)&&(i.value=((M=o.value[0])==null?void 0:M.id)??"")}async function z(y){if(!y){l.value=null;return}const E=await fetch(Ue(`/workflow/executions/${y}`));if(!E.ok)return;const T=await E.json();l.value=T.execution,(!a.value||!T.execution.steps[a.value])&&(a.value=T.execution.currentStep||Object.keys(T.execution.steps)[0]||"")}async function L(){await V(),i.value&&await z(i.value)}function G(y){if(!y)return"—";const E=Date.now()-y;return E<1e3?"now":E<6e4?`${Math.floor(E/1e3)}s ago`:E<36e5?`${Math.floor(E/6e4)}m ago`:`${Math.floor(E/36e5)}h ago`}function P(y){return(y==null?void 0:y.slice(0,8))??""}function O(){const y={};u.value&&(y.workflow=u.value),c.value&&(y.status=c.value),i.value&&(y.execution=i.value),n.replace({query:y})}Ve(async()=>{await $(),await V(),i.value=typeof t.query.execution=="string"?t.query.execution:i.value,await z(i.value),w=setInterval(L,2e3),C=setInterval(()=>{f.value=Date.now()},1e3)}),st(()=>{w&&clearInterval(w),C&&clearInterval(C)}),Te([c,u],async()=>{O(),await L()}),Te(i,async y=>{O(),await z(y)}),Te(()=>r.value[0],async y=>{var E;(E=y==null?void 0:y.type)!=null&&E.startsWith("workflow:")&&await L()});const q=Y(()=>l.value?s.value.find(y=>y.name===l.value.workflow&&y.version===l.value.workflowVersion)??null:null);Te([l,q],([y,E])=>{!y||!E||a.value&&y.steps[a.value]||(a.value=y.currentStep||Object.keys(y.steps)[0]||E.graph.start)});const I=Y(()=>{var y,E;return((E=(y=l.value)==null?void 0:y.steps)==null?void 0:E[a.value])??null}),le=Y(()=>{var y;return((y=I.value)==null?void 0:y.childExecutionId)??null});function de(y){v.value=[],i.value=y}function $e(){!le.value||!l.value||(v.value=[...v.value,{id:i.value,label:l.value.workflow}],a.value="",i.value=le.value)}const Ee=Y(()=>{var E;const y={label:((E=l.value)==null?void 0:E.workflow)??"execution",id:i.value};return[...v.value,y].map((T,M)=>({label:T.label,id:T.id,index:M}))});function Ce(y){v.value=v.value.slice(0,y.index),a.value="",i.value=y.id}const Se=Y(()=>{var y;return(((y=l.value)==null?void 0:y.journal)??[]).slice().sort((E,T)=>T.at-E.at)}),ut=Y(()=>{var T;const y=q.value,E=(T=l.value)==null?void 0:T.currentStep;return!y||!E?null:y.graph.nodes.find(M=>M.name===E)??null}),ft=Y(()=>{var y,E;return((y=l.value)==null?void 0:y.status)==="suspended"&&((E=ut.value)==null?void 0:E.type)==="wait"}),ht=Y(()=>{var y;return["queued","waiting","running","suspended"].includes((y=l.value)==null?void 0:y.status)}),qe=Y(()=>{var y,E;return((y=l.value)==null?void 0:y.status)==="failed"&&((E=l.value)==null?void 0:E.currentStep)!=null}),U=Y(()=>{var T;const y=q.value,E=(T=l.value)==null?void 0:T.currentStep;return!y||!E?[]:y.graph.edges.filter(M=>M.from===E).map(M=>M.label).filter(Boolean)}),Z=Y(()=>{const y=l.value;if(!y||!y.currentStep)return null;const E=(y.journal??[]).filter(T=>T.type==="step.suspended"&&T.step===y.currentStep&&T.timeoutAt);return E.length?E[E.length-1].timeoutAt:null}),ee=Y(()=>{if(!Z.value)return null;const y=Z.value-f.value;return y<=0?"firing now":`${Math.ceil(y/1e3)}s`}),ge=Y(()=>[{value:"",label:"All workflows"},...s.value.map(y=>({value:y.name,label:y.name}))]),D=[{value:"",label:"All statuses"},{value:"queued",label:"Queued"},{value:"waiting",label:"Waiting"},{value:"running",label:"Running"},{value:"succeeded",label:"Succeeded"},{value:"failed",label:"Failed"},{value:"canceled",label:"Canceled"}];function F(y){switch(y){case"running":return"paused";case"succeeded":return"active";case"failed":return"failed";case"canceled":return"draft";case"waiting":return"warning";default:return"default"}}const X=Y(()=>{const y=l.value;return y?[{label:"Status",value:y.status},{label:"Current step",value:y.currentStep||"terminal"},{label:"Created",value:new Date(y.createdAt).toLocaleString()},{label:"Updated",value:new Date(y.updatedAt).toLocaleString()}]:[]}),oe=Y(()=>{const y=I.value;if(!y)return[];const E=[{label:"Status",value:y.status},{label:"Attempts",value:y.attempts}];return y.route&&E.push({label:"Route",value:y.route}),y.startedAt&&E.push({label:"Started",value:new Date(y.startedAt).toLocaleTimeString()}),y.endedAt&&E.push({label:"Ended",value:new Date(y.endedAt).toLocaleTimeString()}),y.idempotencyKey&&E.push({label:"Idempotency key",value:y.idempotencyKey}),E});function ue(){p.value=U.value.length?`{ "route": "${U.value[0]}" }`:"{}",h.value=null,d.value=!0}async function b(){let y;try{y=p.value.trim()?JSON.parse(p.value):{}}catch(E){h.value=`Invalid JSON: ${E.message}`;return}m.value=!0,h.value=null;try{const E=await fetch(Ue(`/workflow/executions/${i.value}/signal`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({payload:y})}),T=await E.json().catch(()=>({}));if(!E.ok){h.value=T.error||"Signal failed.";return}d.value=!1,await L()}catch(E){h.value=E.message}finally{m.value=!1}}async function S(y,E,T){_.value=!0;try{const M=await fetch(Ue(`/workflow/executions/${i.value}/${y}`),{method:"POST"}),ne=await M.json().catch(()=>({}));M.ok?ze.success(`Execution ${T}`):ze.error(`${E} failed`,{description:ne.error||"The action could not be completed."}),await L()}catch(M){ze.error(`${E} failed`,{description:M.message})}finally{_.value=!1}}return(y,E)=>(g(),k("div",null,[R(Gn,{eyebrow:"Runs",title:"Executions",subtitle:"Live and historical workflow runs, with per-step state and a journal timeline."},{actions:A(()=>[R(Bu,{modelValue:u.value,"onUpdate:modelValue":E[0]||(E[0]=T=>u.value=T),options:ge.value},null,8,["modelValue","options"]),R(Bu,{modelValue:c.value,"onUpdate:modelValue":E[1]||(E[1]=T=>c.value=T),options:D},null,8,["modelValue"])]),_:1}),x("div",wE,[x("div",CE,[x("aside",SE,[R(Re,null,{default:A(()=>[R(Pr,{"max-height":"calc(100vh - 220px)"},{default:A(()=>[(g(!0),k(se,null,ve(o.value,T=>(g(),k("button",{key:T.id,type:"button",class:_e(["exec-row",{"exec-row--active":T.id===i.value}]),onClick:M=>de(T.id)},[x("div",xE,[x("span",EE,N(T.workflow),1),R(Ye,{variant:F(T.status),size:"sm"},{default:A(()=>[ae(N(T.status),1)]),_:2},1032,["variant"])]),x("div",AE,[x("span",$E,N(P(T.id)),1),x("span",null,N(T.currentStep||"terminal"),1),x("span",null,N(G(T.updatedAt)),1)])],10,kE))),128)),o.value.length?W("",!0):(g(),H(ct,{key:0,title:"No executions",description:"Runs matching the filters will appear here."}))]),_:1})]),_:1})]),l.value&&q.value?(g(),k("section",IE,[v.value.length?(g(),H(Qd,{key:0,items:Ee.value,separator:"›",onSelect:Ce},null,8,["items"])):W("",!0),R(Re,{gradient:"",elevated:""},{header:A(()=>[x("h2",RE,N(l.value.workflow),1),x("p",TE,N(l.value.id),1)]),aside:A(()=>[x("div",NE,[R(Ye,{variant:F(l.value.status),dot:""},{default:A(()=>[ae(N(l.value.status),1)]),_:1},8,["variant"]),ft.value?(g(),H(Ke,{key:0,size:"sm",variant:"primary",icon:"lucide:bell",onClick:ue},{default:A(()=>[...E[7]||(E[7]=[ae(" Signal ",-1)])]),_:1})):W("",!0),qe.value?(g(),H(Ke,{key:1,size:"sm",variant:"ghost",icon:"lucide:rotate-ccw",loading:_.value,onClick:E[2]||(E[2]=T=>S("resume","Resume","resumed"))},{default:A(()=>[...E[8]||(E[8]=[ae(" Resume ",-1)])]),_:1},8,["loading"])):W("",!0),ht.value?(g(),H(Ke,{key:2,size:"sm",variant:"danger",loading:_.value,onClick:E[3]||(E[3]=T=>S("cancel","Cancel","canceled"))},{default:A(()=>[...E[9]||(E[9]=[ae(" Cancel ",-1)])]),_:1},8,["loading"])):W("",!0)])]),default:A(()=>[R(xe,{flush:""},{default:A(()=>[R(Xd,{graph:q.value.graph,execution:l.value,"selected-step":a.value,onSelectStep:E[4]||(E[4]=T=>a.value=T)},null,8,["graph","execution","selected-step"])]),_:1})]),_:1}),l.value.input!=null?(g(),H(Re,{key:1,title:"Input"},{default:A(()=>[R(xe,null,{default:A(()=>[R(Ut,{data:l.value.input},null,8,["data"])]),_:1})]),_:1})):W("",!0),l.value.output!=null?(g(),H(Re,{key:2,title:"Output"},{default:A(()=>[R(xe,null,{default:A(()=>[R(Ut,{data:l.value.output},null,8,["data"])]),_:1})]),_:1})):W("",!0),l.value.error?(g(),H(Re,{key:3,accent:"lavender",title:"Error"},{default:A(()=>[R(xe,null,{default:A(()=>[R(Ut,{data:l.value.error},null,8,["data"])]),_:1})]),_:1})):W("",!0)])):W("",!0),l.value&&q.value?(g(),k("aside",PE,[R(Re,{title:"Execution"},{default:A(()=>[R(xe,null,{default:A(()=>[R(Bn,{layout:"divided",boxed:"",compact:"",items:X.value},null,8,["items"])]),_:1})]),_:1}),I.value?(g(),H(Re,{key:0,title:`Step · ${a.value}`},{default:A(()=>[I.value.status==="awaiting"&&ee.value?(g(),H(xe,{key:0,flush:""},{default:A(()=>[R(bE,{variant:"info",class:"exec-wait",eyebrow:"Waiting for signal"},{default:A(()=>[ae(" Timeout route fires in "+N(ee.value)+". ",1)]),_:1})]),_:1})):W("",!0),R(xe,null,{default:A(()=>[R(Bn,{layout:"divided",boxed:"",compact:"",items:oe.value},null,8,["items"])]),_:1}),le.value?(g(),H(xe,{key:1,label:"Subworkflow"},{default:A(()=>[x("div",OE,[x("span",LE,N(le.value.slice(0,8)),1),R(Ke,{size:"sm",variant:"ghost",icon:"lucide:corner-down-right",onClick:$e},{default:A(()=>[...E[10]||(E[10]=[ae(" Open child execution ",-1)])]),_:1})])]),_:1})):W("",!0),I.value.output!=null&&I.value.output!==I.value.route?(g(),H(xe,{key:2,label:"Output"},{default:A(()=>[R(Ut,{data:I.value.output},null,8,["data"])]),_:1})):W("",!0),I.value.error?(g(),H(xe,{key:3,label:"Error"},{default:A(()=>[R(Ut,{data:I.value.error},null,8,["data"])]),_:1})):W("",!0)]),_:1},8,["title"])):W("",!0),R(Re,{title:"Journal"},{default:A(()=>[R(xe,{flush:""},{default:A(()=>[x("div",ME,[(g(!0),k(se,null,ve(Se.value,(T,M)=>(g(),k("div",{key:M,class:"timeline__row"},[x("span",DE,N(T.type),1),x("span",BE,N(T.step||T.route||"—"),1),x("span",FE,N(new Date(T.at).toLocaleTimeString()),1)]))),128)),Se.value.length?W("",!0):(g(),H(ct,{key:0,title:"No journal entries"}))])]),_:1})]),_:1})])):W("",!0)]),!o.value.length&&!l.value?(g(),H(ct,{key:0,title:"No executions yet",description:"Workflow runs will appear here as they are queued and processed."})):W("",!0)]),R(Yd,{modelValue:d.value,"onUpdate:modelValue":E[6]||(E[6]=T=>d.value=T),title:"Signal execution"},{footer:A(({close:T})=>[R(Ke,{variant:"ghost",onClick:T},{default:A(()=>[...E[12]||(E[12]=[ae("Cancel",-1)])]),_:1},8,["onClick"]),R(Ke,{variant:"primary",loading:m.value,"loading-label":"Sending",onClick:b},{default:A(()=>[...E[13]||(E[13]=[ae(" Send signal ",-1)])]),_:1},8,["loading"])]),default:A(()=>[x("div",jE,[U.value.length?(g(),k("p",GE," Wait step routes to: "+N(U.value.join(", ")),1)):W("",!0),x("div",VE,[E[11]||(E[11]=x("label",{class:"signal-modal__label"},"Signal payload (JSON)",-1)),R(Jd,{modelValue:p.value,"onUpdate:modelValue":E[5]||(E[5]=T=>p.value=T),rows:6,invalid:!!h.value,placeholder:'{ "route": "resolved" }'},null,8,["modelValue","invalid"])]),h.value?(g(),k("p",UE,N(h.value),1)):W("",!0)])]),_:1},8,["modelValue"])]))}},HE=we(qE,[["__scopeId","data-v-5e0694b5"]]);function zE(e=1e3){const t=K(null),n=K(null),r=K(null),s=K(null),o=lr({});let i=null,l=null;async function a(){try{const m=await fetch(Ue("/realtime/state"));if(!m.ok)throw new Error(`${m.status}`);t.value=await m.json(),s.value=null}catch(m){s.value=m.message}}async function c(m){try{const _=await fetch(Ue(`/realtime/connection/${m}`));if(!_.ok)throw new Error(`${_.status}`);n.value=await _.json()}catch{}}async function u(m){try{const _=await fetch(Ue(`/realtime/record/${encodeURIComponent(m)}`));if(!_.ok)throw new Error(`${_.status}`);const v=await _.json();o[m]=v.data}catch{o[m]=null}}function f(m){delete o[m]}async function d(m,_){try{const v=await fetch(Ue(`/realtime/collection/${encodeURIComponent(m)}/records?connId=${encodeURIComponent(_)}`));if(!v.ok)throw new Error(`${v.status}`);return await v.json()}catch{return{recordIds:[],records:[]}}}async function p(m){r.value=m,m?await c(m):n.value=null}async function h(){await a(),r.value&&await c(r.value)}return Ve(()=>{h(),i=setInterval(h,e),l=new EventSource(Ue("/events")),l.addEventListener("realtime:record:update",m=>{const{recordId:_,data:v}=JSON.parse(m.data);_ in o&&(o[_]=v)}),l.addEventListener("realtime:record:removed",m=>{const{recordId:_}=JSON.parse(m.data);_ in o&&(o[_]=null)})}),st(()=>{i&&clearInterval(i),l&&l.close()}),{state:t,connectionDetail:n,selectedConnectionId:r,error:s,selectConnection:p,watchedRecords:o,watchRecord:u,unwatchRecord:f,fetchCollectionRecords:d}}const WE={class:"conn-picker"},KE={key:0,class:"conn-item__count"},XE=["onClick"],YE=["title"],JE={key:0,class:"conn-item__meta"},QE={__name:"ConnectionPicker",props:{connections:{type:Array,default:()=>[]},selectedId:{type:String,default:null}},emits:["select"],setup(e){return(t,n)=>(g(),k("div",WE,[x("button",{type:"button",class:_e(["conn-item",{"conn-item--active":!e.selectedId}]),onClick:n[0]||(n[0]=r=>t.$emit("select",null))},[n[1]||(n[1]=x("span",{class:"conn-item__label"},"All connections",-1)),e.connections.length?(g(),k("span",KE,N(e.connections.length),1)):W("",!0)],2),(g(!0),k(se,null,ve(e.connections,r=>(g(),k("button",{key:r.id,type:"button",class:_e(["conn-item",{"conn-item--active":e.selectedId===r.id}]),onClick:s=>t.$emit("select",r.id)},[x("span",{class:"conn-item__label conn-item__label--mono",title:r.id},N(r.id.slice(0,8)),9,YE),r.latency!==null?(g(),k("span",JE,N(r.latency)+"ms",1)):W("",!0)],10,XE))),128))]))}},ZE=we(QE,[["__scopeId","data-v-3db24d1b"]]),eA=["aria-selected","disabled","onClick"],tA={key:0,class:"pc-tab__badge"},nA={__name:"Tabs",props:{modelValue:{type:[String,Number],default:null},tabs:{type:Array,required:!0},variant:{type:String,default:"underline"},size:{type:String,default:"md"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=K(null),o=K({opacity:0}),i=K(!1),l=Y(()=>n.tabs.findIndex(u=>u.value===n.modelValue)),a=()=>{const u=s.value;if(!u)return;const f=u.querySelectorAll(".pc-tab")[l.value];if(!f){o.value={opacity:0};return}o.value={opacity:1,transform:`translateX(${f.offsetLeft}px)`,width:`${f.offsetWidth}px`}};let c=null;return Ve(()=>{Cn(()=>{a(),requestAnimationFrame(()=>{i.value=!0})}),c=new ResizeObserver(()=>a()),s.value&&c.observe(s.value)}),Rs(()=>c==null?void 0:c.disconnect()),Te(()=>[n.modelValue,n.variant,n.size,n.tabs.length],()=>Cn(a)),(u,f)=>(g(),k("div",{ref_key:"rootRef",ref:s,class:_e(["pc-tabs",`pc-tabs--${e.variant}`,`pc-tabs--${e.size}`]),role:"tablist"},[x("span",{class:_e(["pc-tabs__indicator",{"pc-tabs__indicator--animate":i.value}]),style:Et(o.value)},null,6),(g(!0),k(se,null,ve(e.tabs,d=>(g(),k("button",{key:d.value,type:"button",role:"tab","aria-selected":e.modelValue===d.value,disabled:d.disabled,class:_e(["pc-tab",{"pc-tab--active":e.modelValue===d.value,"pc-tab--disabled":d.disabled}]),onClick:p=>!d.disabled&&r("update:modelValue",d.value)},[x("span",null,N(d.label),1),d.badge!=null?(g(),k("span",tA,N(d.badge),1)):W("",!0)],10,eA))),128))],2))}},$l=we(nA,[["__scopeId","data-v-a428596d"]]),rA={class:"rt-status"},sA={key:0,class:"rt-instance"},oA={class:"page-body"},iA={class:"rt-layout"},lA={class:"rt-sidebar"},aA={class:"rt-sidebar__body"},cA={class:"rt-sidebar__body rt-exposed"},uA={class:"rt-exposed__label"},fA={class:"rt-exposed__tags"},dA={class:"rt-content"},pA={__name:"Realtime",setup(e){const t=Ho(),n=qo(),r={channels:"channels",records:"records",writableRecords:"writable",collections:"collections",presence:"presence",commands:"commands"};function s(L){return r[L]||L}function o(L){f(L),n.push("/realtime/metadata")}function i(L){n.push(`/realtime/${L}`)}const{state:l,connectionDetail:a,selectedConnectionId:c,error:u,selectConnection:f,watchedRecords:d,watchRecord:p,unwatchRecord:h,fetchCollectionRecords:m}=zE(),_=Y(()=>{var L;return(L=l.value)!=null&&L.rooms?c.value?l.value.rooms.filter(G=>G.members.includes(c.value)):l.value.rooms:[]}),v=Y(()=>{var G;if(!((G=l.value)!=null&&G.channels))return{};if(!c.value)return l.value.channels;const L={};for(const[P,O]of Object.entries(l.value.channels))O.includes(c.value)&&(L[P]=O);return L}),w=Y(()=>{var G;if(!((G=l.value)!=null&&G.collections))return{};if(!c.value)return l.value.collections;const L={};for(const[P,O]of Object.entries(l.value.collections))O.subscribers[c.value]&&(L[P]=O);return L}),C=Y(()=>{var G;if(!((G=l.value)!=null&&G.records))return{};if(!c.value)return l.value.records;const L={};for(const[P,O]of Object.entries(l.value.records))O.subscribers[c.value]&&(L[P]=O);return L}),$=Y(()=>{var G;if(!((G=l.value)!=null&&G.exposed))return{};const L={};for(const[P,O]of Object.entries(l.value.exposed))O.length&&(L[P]=O);return L}),V=Y(()=>[{value:"rooms",label:"Rooms",badge:_.value.length},{value:"channels",label:"Channels",badge:Object.keys(v.value).length},{value:"collections",label:"Collections",badge:Object.keys(w.value).length},{value:"records",label:"Records",badge:Object.keys(C.value).length},{value:"metadata",label:"Metadata"}]),z=Y(()=>t.path.split("/")[2]||"rooms");return(L,G)=>{var O;const P=Tf("router-view");return g(),k("div",null,[R(Gn,{eyebrow:"WebSocket",title:"Realtime",subtitle:"Live inspector for rooms, channels, collections, records, and connection metadata."},{actions:A(()=>{var q;return[x("div",rA,[x("span",{class:_e(["rt-pulse",{"rt-pulse--down":!!B(u)}])},null,2),B(l)?(g(),k("span",sA,"instance "+N((q=B(l).instanceId)==null?void 0:q.slice(0,8)),1)):W("",!0)])]}),_:1}),x("div",oA,[R($l,{"model-value":z.value,tabs:V.value,variant:"underline","onUpdate:modelValue":i},null,8,["model-value","tabs"]),x("div",iA,[x("aside",lA,[R(Re,{title:"Connections"},{default:A(()=>[R(xe,{flush:""},{default:A(()=>{var q;return[x("div",aA,[R(ZE,{connections:((q=B(l))==null?void 0:q.connections)||[],"selected-id":B(c),onSelect:B(f)},null,8,["connections","selected-id","onSelect"])])]}),_:1})]),_:1}),Object.keys($.value).length?(g(),H(Re,{key:0,title:"Registered"},{default:A(()=>[R(xe,{flush:""},{default:A(()=>[x("div",cA,[(g(!0),k(se,null,ve($.value,(q,I)=>(g(),k("div",{key:I,class:"rt-exposed__row"},[x("span",uA,N(s(I)),1),x("div",fA,[(g(!0),k(se,null,ve(q,le=>(g(),H(Ye,{key:le,size:"sm"},{default:A(()=>[ae(N(le),1)]),_:2},1024))),128))])]))),128))])]),_:1})]),_:1})):W("",!0)]),x("div",dA,[R(P,{rooms:_.value,channels:v.value,collections:w.value,records:C.value,detail:B(a),connections:((O=B(l))==null?void 0:O.connections)||[],"fetch-records":B(m),"watched-records":B(d),"watch-record":B(p),"unwatch-record":B(h),onNavigate:o},null,8,["rooms","channels","collections","records","detail","connections","fetch-records","watched-records","watch-record","unwatch-record"])])])])])}}},hA=we(pA,[["__scopeId","data-v-72d0ba28"]]),gA={class:"page-body"},mA={class:"page-section"},vA={class:"cells-toolbar"},yA={class:"cell-counts"},_A={class:"cell-counts__stat"},bA={class:"cell-counts__stat",style:{color:"var(--status-paused)"}},wA={class:"cell-counts__stat",style:{color:"var(--status-failed)"}},CA={key:0},SA={key:0,class:"ctable"},kA=["onClick"],xA={class:"ctable__col ctable__col--name"},EA=["title"],AA={class:"ctable__col ctable__col--deps"},$A={class:"ctable__col ctable__col--status"},IA={class:"ctable__col ctable__col--updated"},RA={key:1},TA=["width","height"],NA=["d","marker-end"],PA=["transform","onClick"],OA=["width","height"],LA=["fill"],MA=["id"],DA=["width","height"],BA=["clip-path"],FA=["x"],jA=["x"],GA={key:0,class:"page-section"},VA={class:"detail-title"},UA={class:"detail-sub"},qA={class:"detail-aside"},HA={class:"detail-box detail-box--scroll"},zA={class:"detail-template"},WA={class:"detail-box detail-error"},KA={key:1,class:"detail-hint"},XA={key:2,class:"detail-hint"},YA=90,Yr=24,JA={__name:"Cells",props:{config:Object},setup(e){const t=e,n=Y(()=>{var U;return((U=t.config)==null?void 0:U.cells)??[]}),r=K(null),s=K([]),o=K("table"),i=K(null),l=K(0);let a=null;const c=K(null),u=Y(()=>c.value?s.value.find(U=>U.name===c.value)??null:null),f=K([]),d=Os();let p=null,h=null,m=0;const _=K(new Map);Te(n,U=>{U.length&&!U.includes(r.value)&&(r.value=U[0])},{immediate:!0}),Te(r,()=>{s.value=[],c.value=null,f.value=[],_.value.clear(),m=Date.now(),v()});async function v(){if(!r.value)return;const U=await fetch(Ue(`/cells/${encodeURIComponent(r.value)}`));if(U.ok){const Z=await U.json();s.value=Z.cells}}async function w(U){if(!r.value)return;const Z=await fetch(Ue(`/cells/${encodeURIComponent(r.value)}/${encodeURIComponent(U)}/history?limit=50`));if(Z.ok){const ee=await Z.json();c.value===U&&(f.value=ee.entries)}}Ve(()=>{v(),p=setInterval(v,1500),h=setInterval(()=>{const U=Date.now(),Z=[];for(const[ee,ge]of _.value)U-ge>800&&Z.push(ee);for(const ee of Z)_.value.delete(ee)},200)}),st(()=>{p&&clearInterval(p),h&&clearInterval(h),a&&a.disconnect()}),Te(i,U=>{a&&(a.disconnect(),a=null),U&&(a=new ResizeObserver(Z=>{l.value=Z[0].contentRect.width}),a.observe(U),l.value=U.clientWidth)}),Te(d,U=>{if(!r.value)return;const Z=U.filter(ge=>ge.type==="cells:change"&&ge.ts>m&&ge.data.graph===r.value);if(Z.length===0)return;m=Math.max(...Z.map(ge=>ge.ts));for(const ge of Z)_.value.set(ge.data.name,ge.ts);const ee=s.value;for(const ge of Z){const D=ee.findIndex(F=>F.name===ge.data.name);D>=0&&(ee[D]={...ee[D],value:ge.data.value,status:ge.data.status,updatedAt:ge.data.updatedAt})}c.value&&Z.some(ge=>ge.data.name===c.value)&&w(c.value)},{deep:!0});function C(U){c.value=U.name,f.value=[],(U==null?void 0:U.historyLimit)>0&&w(U.name)}function $(){c.value=null,f.value=[]}function V(U,Z){return U=String(U??""),U.length>Z?U.slice(0,Z-1)+"…":U}function z(U){if(U===void 0)return"—";if(U===null)return"null";if(typeof U=="string")return U.length>80?U.slice(0,80)+"…":U;if(typeof U=="number"||typeof U=="boolean")return String(U);try{const Z=JSON.stringify(U);return Z.length>80?Z.slice(0,80)+"…":Z}catch{return String(U)}}function L(U){if(!U)return"—";const Z=Date.now()-U;return Z<1e3?"just now":Z<6e4?`${Math.floor(Z/1e3)}s ago`:Z<36e5?`${Math.floor(Z/6e4)}m ago`:new Date(U).toLocaleTimeString()}const G=Y(()=>{const U=new Map;for(const Z of s.value)U.set(Z.name,Z);return U}),P=Y(()=>{const U=G.value,Z=new Set(U.keys()),ee=new Set,ge=[];for(;Z.size>0;){const D=[];for(const F of Z)U.get(F).deps.every(ue=>!Z.has(ue)||ee.has(ue))&&D.push(F);if(D.length===0)break;for(const F of D)Z.delete(F),ee.add(F);ge.push(D)}return ge}),O={w:168,h:60},q={y:28},I=Y(()=>{const U=new Map,Z=P.value;if(Z.length===0)return{positions:U,width:0,height:0};const ee=Z.length*O.w+(Z.length-1)*YA+Yr*2,ge=Math.max(ee,l.value||ee),D=Z.length>1?(ge-Yr*2-O.w)/(Z.length-1):0;let F=0;const X=Math.max(...Z.map(oe=>oe.length*O.h+(oe.length-1)*q.y));return Z.forEach((oe,ue)=>{const b=oe.length*O.h+(oe.length-1)*q.y,S=Math.max(0,(X-b)/2);oe.forEach((y,E)=>{const T=ue*D+Yr,M=S+E*(O.h+q.y)+Yr;U.set(y,{x:T,y:M}),M+O.h>F&&(F=M+O.h)})}),{positions:U,width:ge,height:F+Yr}}),le=Y(()=>{const U=I.value.positions,Z=[];for(const ee of s.value){const ge=U.get(ee.name);if(ge)for(const D of ee.deps){const F=U.get(D);F&&Z.push({x1:F.x+O.w,y1:F.y+O.h/2,x2:ge.x,y2:ge.y+O.h/2,from:D,to:ee.name})}}return Z});function de(U){return _.value.has(U)}function $e(U){switch(U){case"current":return"var(--status-active)";case"pending":return"var(--status-paused)";case"stale":return"var(--status-warning)";case"error":return"var(--status-failed)";default:return"var(--ink-40)"}}function Ee(U){switch(U){case"pending":return"paused";case"stale":return"warning";case"error":return"failed";default:return"active"}}const Ce=Y(()=>{const U={current:0,pending:0,error:0,stale:0};for(const Z of s.value)U[Z.status]!==void 0&&U[Z.status]++;return U});function Se(U){return U?Object.entries(U).map(([Z,ee])=>({label:Z,value:typeof ee=="object"&&ee!==null?JSON.stringify(ee):String(ee)})):[]}const ut=Y(()=>{var U;return Se((U=u.value)==null?void 0:U.source)}),ft=Y(()=>{var U;return Se((U=u.value)==null?void 0:U.metadata)}),ht=Y(()=>{const U=u.value;if(!U)return[];const Z=[{label:"Dependencies",value:U.deps.length?U.deps.join(", "):"—"},{label:"Dependents",value:U.dependents.length?U.dependents.join(", "):"—"}];return U.computeTime!=null&&Z.push({label:"Last compute",value:`${U.computeTime}ms`}),Z.push({label:"Updated",value:L(U.updatedAt)}),Z}),qe=Y(()=>f.value.slice().reverse().map(U=>({label:L(U.timestamp),value:z(U.value)})));return(U,Z)=>(g(),k("div",null,[R(Gn,{eyebrow:"Reactive graphs",title:"Cells",subtitle:"Inspect reactive computation graphs - values, dependencies, and live propagation."},{actions:A(()=>[n.value.length>1?(g(),H($l,{key:0,"model-value":r.value,tabs:n.value.map(ee=>({value:ee,label:ee})),variant:"pills","onUpdate:modelValue":Z[0]||(Z[0]=ee=>r.value=ee)},null,8,["model-value","tabs"])):W("",!0)]),_:1}),x("div",gA,[x("section",mA,[x("div",vA,[R($l,{modelValue:o.value,"onUpdate:modelValue":Z[1]||(Z[1]=ee=>o.value=ee),tabs:[{value:"table",label:"Table"},{value:"graph",label:"Graph"}],variant:"pills"},null,8,["modelValue"]),x("div",yA,[x("span",null,N(s.value.length)+" cells",1),Z[4]||(Z[4]=x("span",{class:"cell-counts__sep"},null,-1)),x("span",_A,N(Ce.value.current)+" current",1),Ce.value.pending?(g(),k(se,{key:0},[Z[2]||(Z[2]=x("span",{class:"cell-counts__sep"},null,-1)),x("span",bA,N(Ce.value.pending)+" pending",1)],64)):W("",!0),Ce.value.error?(g(),k(se,{key:1},[Z[3]||(Z[3]=x("span",{class:"cell-counts__sep"},null,-1)),x("span",wA,N(Ce.value.error)+" error",1)],64)):W("",!0)])]),R(Re,null,{default:A(()=>[o.value==="table"?(g(),k("div",CA,[s.value.length?(g(),k("div",SA,[Z[5]||(Z[5]=x("div",{class:"ctable__head"},[x("span",{class:"ctable__col ctable__col--name"},"Name"),x("span",{class:"ctable__col ctable__col--value"},"Value"),x("span",{class:"ctable__col ctable__col--deps"},"Dependencies"),x("span",{class:"ctable__col ctable__col--status"},"Status"),x("span",{class:"ctable__col ctable__col--updated"},"Updated")],-1)),(g(!0),k(se,null,ve(s.value,ee=>(g(),k("div",{key:ee.name,class:_e(["ctable__row",{"ctable__row--selected":c.value===ee.name,"ctable__row--recent":de(ee.name)}]),onClick:ge=>C(ee)},[x("span",xA,N(ee.name),1),x("span",{class:"ctable__col ctable__col--value",title:JSON.stringify(ee.value)},N(z(ee.value)),9,EA),x("span",AA,N(ee.deps.length?ee.deps.join(", "):"—"),1),x("span",$A,[ee.status!=="current"?(g(),H(Ye,{key:0,variant:Ee(ee.status),size:"sm"},{default:A(()=>[ae(N(ee.status),1)]),_:2},1032,["variant"])):W("",!0)]),x("span",IA,N(L(ee.updatedAt)),1)],10,kA))),128))])):(g(),H(ct,{key:1,title:"No cells",description:"This graph has no cells defined."}))])):(g(),k("div",RA,[s.value.length?(g(),k("div",{key:0,class:"graph-wrap pc-scroll",ref_key:"graphWrap",ref:i},[(g(),k("svg",{width:I.value.width,height:I.value.height},[Z[6]||(Z[6]=x("defs",null,[x("marker",{id:"cell-arrow",viewBox:"0 0 10 10",refX:"9",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto"},[x("path",{d:"M0,0 L10,5 L0,10 z",fill:"rgba(0,0,0,0.25)"})]),x("marker",{id:"cell-arrow-active",viewBox:"0 0 10 10",refX:"9",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto"},[x("path",{d:"M0,0 L10,5 L0,10 z",fill:"var(--lavender)"})])],-1)),x("g",null,[(g(!0),k(se,null,ve(le.value,ee=>(g(),k("path",{key:`${ee.from}->${ee.to}`,d:`M${ee.x1},${ee.y1} C${ee.x1+36},${ee.y1} ${ee.x2-36},${ee.y2} ${ee.x2},${ee.y2}`,fill:"none","stroke-width":"1.5",class:_e(["edge-line",{recent:de(ee.from)}]),"marker-end":de(ee.from)?"url(#cell-arrow-active)":"url(#cell-arrow)"},null,10,NA))),128))]),(g(!0),k(se,null,ve(s.value,ee=>{var ge,D;return g(),k("g",{key:ee.name,transform:`translate(${((ge=I.value.positions.get(ee.name))==null?void 0:ge.x)??0}, ${((D=I.value.positions.get(ee.name))==null?void 0:D.y)??0})`,class:_e(["node-group",{selected:c.value===ee.name,recent:de(ee.name)}]),onClick:F=>C(ee)},[x("rect",{width:O.w,height:O.h,rx:"8"},null,8,OA),x("circle",{cx:14,cy:14,r:"3.5",fill:$e(ee.status)},null,8,LA),x("clipPath",{id:`clip-${ee.name}`},[x("rect",{width:O.w-10,height:O.h-6,x:"5",y:"3"},null,8,DA)],8,MA),x("g",{"clip-path":`url(#clip-${ee.name})`},[x("text",{x:O.w/2,y:26,"text-anchor":"middle",class:"node-name"},N(V(ee.name,22)),9,FA),x("text",{x:O.w/2,y:45,"text-anchor":"middle",class:"node-value"},N(V(z(ee.value),24)),9,jA)],8,BA)],10,PA)}),128))],8,TA))],512)):(g(),H(ct,{key:1,title:"No cells",description:"This graph has no cells defined."}))]))]),_:1})]),u.value?(g(),k("section",GA,[R(Re,{gradient:"",elevated:"",accent:"lavender"},{header:A(()=>[R(Kd,{size:"md"},{default:A(()=>[ae(N(r.value),1)]),_:1}),x("h2",VA,N(u.value.name),1),x("p",UA,N(u.value.kind==="template"?"Templated cell":u.value.deps.length?"Computed cell":"Source cell"),1)]),aside:A(()=>[x("div",qA,[R(Ye,{variant:Ee(u.value.status),dot:""},{default:A(()=>[ae(N(u.value.status),1)]),_:1},8,["variant"]),R(Ke,{variant:"ghost",size:"sm",icon:"lucide:x",onClick:$})])]),default:A(()=>[R(xe,{label:"Value"},{default:A(()=>[x("div",HA,[R(Ut,{data:u.value.value},null,8,["data"])])]),_:1}),u.value.template?(g(),H(xe,{key:0,label:"Template"},{default:A(()=>[x("pre",zA,N(u.value.template),1)]),_:1})):W("",!0),u.value.error?(g(),H(xe,{key:1,label:"Error"},{default:A(()=>[x("div",WA,N(u.value.error),1)]),_:1})):W("",!0),R(xe,{label:`History${u.value.historyLimit>0?` · ${f.value.length} / ${u.value.historyLimit}`:""}`},{default:A(()=>[u.value.historyLimit>0&&qe.value.length?(g(),H(Pr,{key:0,"max-height":"260px"},{default:A(()=>[R(Bn,{layout:"divided",boxed:"",compact:"",items:qe.value},null,8,["items"])]),_:1})):u.value.historyLimit>0?(g(),k("p",KA,"No entries captured yet.")):(g(),k("p",XA,[...Z[7]||(Z[7]=[ae(" History is not enabled for this cell. Define it with ",-1),x("code",null,"{ history: true }",-1),ae(" or ",-1),x("code",null,"{ history: N }",-1),ae(" to capture recent values. ",-1)])]))]),_:1},8,["label"]),ut.value.length?(g(),H(xe,{key:2,label:"Source"},{default:A(()=>[R(Bn,{layout:"divided",boxed:"",items:ut.value},null,8,["items"])]),_:1})):W("",!0),ft.value.length?(g(),H(xe,{key:3,label:"Metadata"},{default:A(()=>[R(Bn,{layout:"divided",boxed:"",items:ft.value},null,8,["items"])]),_:1})):W("",!0),R(xe,{label:"Dependencies",tone:"muted"},{default:A(()=>[R(Bn,{layout:"divided",dividers:!1,items:ht.value},null,8,["items"])]),_:1})]),_:1})])):W("",!0)])]))}},QA=we(JA,[["__scopeId","data-v-c453d2f3"]]),ZA={class:"page-body"},e$={key:1,class:"lock-grid"},t$={class:"lock-panel__title"},n$={class:"lock-error"},r$={class:"lock-item__top"},s$={class:"lock-item__key"},o$={class:"lock-item__meta"},i$={key:1,class:"lock-empty"},l$={class:"sem-block__head"},a$={class:"sem-block__key"},c$=["title"],u$={key:1,class:"lock-empty"},f$={__name:"Locks",setup(e){const t=K([]),n=K(!1),r=K(null);let s=null;async function o(){const c=await fetch(Ue("/locks"));if(c.ok){const u=await c.json();t.value=u.managers}n.value=!0}Ve(()=>{o(),s=setInterval(o,2e3)}),st(()=>{s&&clearInterval(s)});function i(c){if(c==null||c<0)return"—";const u=Math.round(c/1e3);return u<60?`${u}s`:`${Math.floor(u/60)}m ${u%60}s`}function l(c){return(c==null?void 0:c.length)>14?`${c.slice(0,14)}…`:c}async function a(c,u,f){r.value=`${c}::${u}::${f}`;try{const d=await fetch(Ue(`/locks/${encodeURIComponent(c)}/release`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:u,id:f})}),p=await d.json().catch(()=>({}));d.ok?p.released===!1?ze.warning("Lock not released",{description:"It had already expired or been re-acquired by another holder."}):ze.success("Lock released"):ze.error("Release failed",{description:p.error||"The lock could not be released."}),await o()}catch(d){ze.error("Release failed",{description:d.message})}finally{r.value=null}}return(c,u)=>(g(),k("div",null,[R(Gn,{eyebrow:"Coordination",title:"Locks",subtitle:"Held mutexes and semaphore leases across every lock manager - who holds what, and for how long."}),x("div",ZA,[n.value&&!t.value.length?(g(),H(ct,{key:0,title:"No lock managers",description:"Mutex and semaphore managers passed to devtools will appear here."})):(g(),k("div",e$,[(g(!0),k(se,null,ve(t.value,f=>(g(),H(Re,{key:f.name},{header:A(()=>[x("h3",t$,N(f.name),1)]),aside:A(()=>[R(Ye,{variant:f.kind==="semaphore"?"paused":"default",size:"sm"},{default:A(()=>[ae(N(f.kind),1)]),_:2},1032,["variant"])]),default:A(()=>[f.error?(g(),H(xe,{key:0,label:"Error"},{default:A(()=>[x("p",n$,N(f.error),1)]),_:2},1024)):f.kind==="mutex"?(g(),H(xe,{key:1,flush:""},{default:A(()=>[f.locks.length?(g(),H(Pr,{key:0,"max-height":"340px"},{default:A(()=>[(g(!0),k(se,null,ve(f.locks,d=>(g(),k("div",{key:d.key,class:"lock-item"},[x("div",r$,[x("span",s$,N(d.key),1),R(Ke,{size:"sm",variant:"ghost",loading:r.value===`${f.name}::${d.key}::${d.holder}`,onClick:p=>a(f.name,d.key,d.holder)},{default:A(()=>[...u[0]||(u[0]=[ae("Release",-1)])]),_:1},8,["loading","onClick"])]),x("div",o$,[x("span",null,N(d.holder),1),u[1]||(u[1]=x("span",{class:"lock-item__dot"},null,-1)),x("span",null,"expires in "+N(i(d.ttl)),1)])]))),128))]),_:2},1024)):(g(),k("p",i$,"No locks held."))]),_:2},1024)):(g(),H(xe,{key:2,flush:""},{default:A(()=>[f.locks.length?(g(),H(Pr,{key:0,"max-height":"340px"},{default:A(()=>[(g(!0),k(se,null,ve(f.locks,d=>(g(),k("div",{key:d.key,class:"sem-block"},[x("div",l$,[x("span",a$,N(d.key),1),R(Ye,{size:"sm"},{default:A(()=>[ae(N(d.active)+" / "+N(d.max),1)]),_:2},1024)]),(g(!0),k(se,null,ve(d.holders,p=>(g(),k("div",{key:p,class:"lock-item lock-item--lease"},[x("span",{class:"lock-item__key lock-item__key--mono",title:p},N(l(p)),9,c$),R(Ke,{size:"sm",variant:"ghost",loading:r.value===`${f.name}::${d.key}::${p}`,onClick:h=>a(f.name,d.key,p)},{default:A(()=>[...u[2]||(u[2]=[ae("Release",-1)])]),_:1},8,["loading","onClick"])]))),128))]))),128))]),_:2},1024)):(g(),k("p",u$,"No active leases."))]),_:2},1024))]),_:2},1024))),128))]))])]))}},d$=we(f$,[["__scopeId","data-v-09d1dde2"]]),p$={class:"rt-card-title"},h$=["title","onClick"],g$={key:0,class:"rt-presence"},m$={key:1,class:"rt-presence rt-presence--none"},v$={__name:"RoomsView",props:{rooms:{type:Array,default:()=>[]}},emits:["navigate"],setup(e){function t(n){if(typeof n=="string")return n;if(typeof n=="object"&&n!==null){const r=Object.keys(n);return r.length<=3?r.map(s=>`${s}: ${JSON.stringify(n[s])}`).join(", "):`{${r.length} fields}`}return String(n)}return(n,r)=>e.rooms.length?(g(),k(se,{key:1},[r[0]||(r[0]=x("p",{class:"rt-hint"},"Active rooms, their members, and each member's presence state.",-1)),(g(!0),k(se,null,ve(e.rooms,s=>(g(),H(Re,{key:s.name},{header:A(()=>[x("h3",p$,N(s.name),1)]),aside:A(()=>[R(Ye,{variant:"active"},{default:A(()=>[ae(N(s.members.length)+" "+N(s.members.length===1?"member":"members"),1)]),_:2},1024)]),default:A(()=>[R(xe,{flush:""},{default:A(()=>[(g(!0),k(se,null,ve(s.members,o=>(g(),k("div",{key:o,class:"rt-row"},[x("button",{type:"button",class:"rt-conn",title:o,onClick:i=>n.$emit("navigate",o)},N(o.slice(0,8)),9,h$),s.presence[o]?(g(),k("span",g$,N(t(s.presence[o])),1)):(g(),k("span",m$,"no presence"))]))),128))]),_:2},1024)]),_:2},1024))),128))],64)):(g(),H(ct,{key:0,title:"No rooms",description:"Active rooms and their members will appear here."}))}},y$=we(v$,[["__scopeId","data-v-c0c3a4d6"]]),_$={class:"rt-card-title"},b$=["title","onClick"],w$={__name:"ChannelsView",props:{channels:{type:Object,default:()=>({})}},emits:["navigate"],setup(e){const t=e,n=Y(()=>Object.entries(t.channels));return(r,s)=>n.value.length?(g(),k(se,{key:1},[s[0]||(s[0]=x("p",{class:"rt-hint"},"Channels with active subscribers on this server instance.",-1)),(g(!0),k(se,null,ve(n.value,([o,i])=>(g(),H(Re,{key:o},{header:A(()=>[x("h3",_$,N(o),1)]),aside:A(()=>[R(Ye,{variant:"active"},{default:A(()=>[ae(N(i.length)+" "+N(i.length===1?"subscriber":"subscribers"),1)]),_:2},1024)]),default:A(()=>[R(xe,{flush:""},{default:A(()=>[(g(!0),k(se,null,ve(i,l=>(g(),k("div",{key:l,class:"rt-row"},[x("button",{type:"button",class:"rt-conn",title:l,onClick:a=>r.$emit("navigate",l)},N(l.slice(0,8)),9,b$)]))),128))]),_:2},1024)]),_:2},1024))),128))],64)):(g(),H(ct,{key:0,title:"No channel subscriptions",description:"Channels with active subscribers will appear here."}))}},C$=we(w$,[["__scopeId","data-v-69b1335d"]]),S$={class:"rt-card-title"},k$={class:"rt-row"},x$=["title","onClick"],E$={class:"coll-version"},A$={key:0,class:"coll-records"},$$={class:"coll-records__label"},I$={class:"coll-record__id"},R$={key:0,class:"coll-empty"},T$={__name:"CollectionsView",props:{collections:{type:Object,default:()=>({})},fetchRecords:{type:Function,required:!0}},emits:["navigate"],setup(e){const t=e,n=Y(()=>Object.entries(t.collections)),r=lr({});function s(i,l){return`${i}::${l}`}async function o(i,l){const a=s(i,l);if(r[a]){delete r[a];return}r[a]=await t.fetchRecords(i,l)}return(i,l)=>n.value.length?(g(),k(se,{key:1},[l[0]||(l[0]=x("p",{class:"rt-hint"},"Collections with active subscribers - expand a connection to see what the resolver returns for it.",-1)),(g(!0),k(se,null,ve(n.value,([a,c])=>(g(),H(Re,{key:a},{header:A(()=>[x("h3",S$,N(a),1)]),aside:A(()=>[R(Ye,{variant:"active"},{default:A(()=>[ae(N(Object.keys(c.subscribers).length)+" "+N(Object.keys(c.subscribers).length===1?"subscriber":"subscribers"),1)]),_:2},1024)]),default:A(()=>[R(xe,{flush:""},{default:A(()=>[(g(!0),k(se,null,ve(c.subscribers,(u,f)=>(g(),k("div",{key:f,class:"coll-sub"},[x("div",k$,[x("button",{type:"button",class:"rt-conn",title:f,onClick:d=>i.$emit("navigate",f)},N(f.slice(0,8)),9,x$),x("span",E$,"v"+N(u.version),1),R(Ke,{variant:"ghost",size:"sm",onClick:d=>o(a,f)},{default:A(()=>[ae(N(r[s(a,f)]?"Hide records":"Show records"),1)]),_:2},1032,["onClick"])]),r[s(a,f)]?(g(),k("div",A$,[x("div",$$," Resolved records · "+N(r[s(a,f)].recordIds.length),1),(g(!0),k(se,null,ve(r[s(a,f)].records,d=>(g(),k("div",{key:d.id,class:"coll-record"},[x("div",I$,N(d.id),1),R(Ut,{data:d.data},null,8,["data"])]))),128)),r[s(a,f)].records.length?W("",!0):(g(),k("p",R$," No records resolved. "))])):W("",!0)]))),128))]),_:2},1024)]),_:2},1024))),128))],64)):(g(),H(ct,{key:0,title:"No collection subscriptions",description:"Collections with active subscribers will appear here."}))}},N$=we(T$,[["__scopeId","data-v-4ef93d67"]]),P$={class:"rt-card-title"},O$={class:"rec-aside"},L$=["title","onClick"],M$={__name:"RecordsView",props:{records:{type:Object,default:()=>({})},watchedRecords:{type:Object,required:!0},watchRecord:{type:Function,required:!0},unwatchRecord:{type:Function,required:!0}},emits:["navigate"],setup(e){const t=e,n=Y(()=>Object.entries(t.records));function r(s){s in t.watchedRecords?t.unwatchRecord(s):t.watchRecord(s)}return(s,o)=>n.value.length?(g(),k(se,{key:1},[o[0]||(o[0]=x("p",{class:"rt-hint"},"Records being watched by at least one connection, and each subscriber's mode.",-1)),(g(!0),k(se,null,ve(n.value,([i,l])=>(g(),H(Re,{key:i},{header:A(()=>[x("h3",P$,N(i),1)]),aside:A(()=>[x("div",O$,[R(Ke,{variant:"ghost",size:"sm",onClick:a=>r(i)},{default:A(()=>[ae(N(i in e.watchedRecords?"Hide value":"View value"),1)]),_:2},1032,["onClick"]),R(Ye,{variant:"active"},{default:A(()=>[ae(N(Object.keys(l.subscribers).length)+" "+N(Object.keys(l.subscribers).length===1?"subscriber":"subscribers"),1)]),_:2},1024)])]),default:A(()=>[i in e.watchedRecords?(g(),H(xe,{key:0,label:"Current value"},{default:A(()=>[R(Ut,{data:e.watchedRecords[i]},null,8,["data"])]),_:2},1024)):W("",!0),R(xe,{flush:""},{default:A(()=>[(g(!0),k(se,null,ve(l.subscribers,(a,c)=>(g(),k("div",{key:c,class:"rt-row"},[x("button",{type:"button",class:"rt-conn",title:c,onClick:u=>s.$emit("navigate",c)},N(c.slice(0,8)),9,L$),R(Ye,{variant:a==="full"?"paused":"default",size:"sm"},{default:A(()=>[ae(N(a),1)]),_:2},1032,["variant"])]))),128))]),_:2},1024)]),_:2},1024))),128))],64)):(g(),H(ct,{key:0,title:"No record subscriptions",description:"Records being watched by at least one connection will appear here."}))}},D$=we(M$,[["__scopeId","data-v-d7d15b84"]]),B$={key:0,class:"meta-stack"},F$={class:"tag-list"},j$={class:"tag-list"},G$={class:"tag-list"},V$={class:"meta-row__id"},U$={key:1,class:"meta-stack"},q$={class:"rt-card-title"},H$={class:"meta-conn-aside"},z$={key:0,class:"meta-latency"},W$={__name:"MetadataView",props:{detail:{type:Object,default:null},connections:{type:Array,default:()=>[]}},setup(e){const t=e,n=Y(()=>{const r=t.detail;if(!r)return[];const s=[{label:"ID",value:r.id},{label:"Local",value:String(r.local)},{label:"Latency",value:r.latency!==null?`${r.latency}ms`:"—"},{label:"Alive",value:String(r.alive)}];return r.remoteAddress&&s.push({label:"Address",value:r.remoteAddress}),s});return(r,s)=>{var o,i,l,a;return e.detail?(g(),k("div",B$,[R(Re,{title:"Connection"},{default:A(()=>[R(xe,null,{default:A(()=>[R(Bn,{layout:"divided",boxed:"",items:n.value},null,8,["items"])]),_:1})]),_:1}),R(Re,{title:"Metadata"},{default:A(()=>[R(xe,null,{default:A(()=>[R(Ut,{data:e.detail.metadata},null,8,["data"])]),_:1})]),_:1}),(o=e.detail.rooms)!=null&&o.length?(g(),H(Re,{key:0,title:`Rooms · ${e.detail.rooms.length}`},{default:A(()=>[R(xe,null,{default:A(()=>[x("div",F$,[(g(!0),k(se,null,ve(e.detail.rooms,c=>(g(),H(Ye,{key:c,size:"sm"},{default:A(()=>[ae(N(c),1)]),_:2},1024))),128))])]),_:1})]),_:1},8,["title"])):W("",!0),(i=e.detail.channels)!=null&&i.length?(g(),H(Re,{key:1,title:`Channels · ${e.detail.channels.length}`},{default:A(()=>[R(xe,null,{default:A(()=>[x("div",j$,[(g(!0),k(se,null,ve(e.detail.channels,c=>(g(),H(Ye,{key:c,size:"sm"},{default:A(()=>[ae(N(c),1)]),_:2},1024))),128))])]),_:1})]),_:1},8,["title"])):W("",!0),(l=e.detail.collections)!=null&&l.length?(g(),H(Re,{key:2,title:`Collections · ${e.detail.collections.length}`},{default:A(()=>[R(xe,null,{default:A(()=>[x("div",G$,[(g(!0),k(se,null,ve(e.detail.collections,c=>(g(),H(Ye,{key:c.id,size:"sm"},{default:A(()=>[ae(N(c.id)+" v"+N(c.version),1)]),_:2},1024))),128))])]),_:1})]),_:1},8,["title"])):W("",!0),(a=e.detail.records)!=null&&a.length?(g(),H(Re,{key:3,title:`Record subscriptions · ${e.detail.records.length}`},{default:A(()=>[R(xe,{flush:""},{default:A(()=>[(g(!0),k(se,null,ve(e.detail.records,c=>(g(),k("div",{key:c.id,class:"meta-row"},[x("span",V$,N(c.id),1),R(Ye,{variant:c.mode==="full"?"paused":"default",size:"sm"},{default:A(()=>[ae(N(c.mode),1)]),_:2},1032,["variant"])]))),128))]),_:1})]),_:1},8,["title"])):W("",!0),e.detail.presence&&Object.keys(e.detail.presence).length?(g(),H(Re,{key:4,title:"Presence state"},{default:A(()=>[(g(!0),k(se,null,ve(e.detail.presence,(c,u)=>(g(),H(xe,{key:u,label:u},{default:A(()=>[R(Ut,{data:c},null,8,["data"])]),_:2},1032,["label"]))),128))]),_:1})):W("",!0)])):e.connections.length?(g(),k("div",U$,[s[0]||(s[0]=x("p",{class:"rt-hint"},"All connections on this server instance.",-1)),(g(!0),k(se,null,ve(e.connections,c=>(g(),H(Re,{key:c.id},{header:A(()=>{var u,f;return[x("h3",q$,N(((u=c.metadata)==null?void 0:u.name)||((f=c.metadata)==null?void 0:f.username)||c.id.slice(0,8)),1)]}),aside:A(()=>[x("div",H$,[c.latency!==null?(g(),k("span",z$,N(c.latency)+"ms",1)):W("",!0),R(Ye,{variant:c.alive?"active":"failed",dot:""},{default:A(()=>[ae(N(c.alive?"alive":"dead"),1)]),_:2},1032,["variant"])])]),default:A(()=>[c.metadata?(g(),H(xe,{key:0},{default:A(()=>[R(Ut,{data:c.metadata},null,8,["data"])]),_:2},1024)):W("",!0)]),_:2},1024))),128))])):(g(),H(ct,{key:2,title:"No connections",description:"Connected clients will appear here."}))}}},K$=we(W$,[["__scopeId","data-v-43527db6"]]),X$=Xv({history:Av(Sd),routes:[{path:"/",component:kw},{path:"/realtime",component:hA,redirect:"/realtime/rooms",children:[{path:"rooms",component:y$},{path:"channels",component:C$},{path:"collections",component:N$},{path:"records",component:D$},{path:"metadata",component:K$}]},{path:"/cells",component:QA},{path:"/locks",component:d$},{path:"/queue",component:Hw},{path:"/cron",component:l0},{path:"/limits",component:$0},{path:"/workflows",component:SC},{path:"/executions",component:HE}]});Gm(zb).use(X$).mount("#app");
|