@vitejs/devtools-vite 0.8.0 → 0.8.1
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/dist/dirs.d.mts +1 -3
- package/dist/dirs.mjs +1 -2
- package/dist/index.d.mts +1 -8
- package/dist/index.mjs +414 -278
- package/dist/nitro.json +2 -2
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/BG--lX9h.js +2 -0
- package/dist/public/_nuxt/BG3xwZh0.js +3 -0
- package/dist/public/_nuxt/BHvJDY_a.js +1 -0
- package/dist/public/_nuxt/BRJBCNrs.js +1 -0
- package/dist/public/_nuxt/B_-pr0hI.js +1 -0
- package/dist/public/_nuxt/{mSprtK4_.js → B_NKCZsG.js} +5 -5
- package/dist/public/_nuxt/{BQP5SyRf.js → CEBMiqg6.js} +1 -1
- package/dist/public/_nuxt/Ct3C12NP.js +4 -0
- package/dist/public/_nuxt/Cya-tyvy.js +1 -0
- package/dist/public/_nuxt/DEyNBz-F.js +2 -0
- package/dist/public/_nuxt/DSAFJh4r.js +1 -0
- package/dist/public/_nuxt/DbCy1lFc.js +1 -0
- package/dist/public/_nuxt/Dp2A4F6Z.js +1 -0
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/13f74333-301c-46d6-87fb-e1b6264a3189.json +1 -0
- package/dist/public/_nuxt/{entry.CiImqaiE.css → entry.bKphV1Y3.css} +1 -1
- package/dist/public/_nuxt/error-404.BtjbGiHS.css +1 -0
- package/dist/public/_nuxt/error-500.DqJ9a5ig.css +1 -0
- package/dist/public/_nuxt/n6SbU7pj.js +1 -0
- package/dist/public/_nuxt/rpc.CVTFzytL.css +1 -0
- package/dist/public/index.html +1 -1
- package/package.json +9 -9
- package/dist/public/_nuxt/-2hSMOj2.js +0 -1
- package/dist/public/_nuxt/B48W2q7f.js +0 -1
- package/dist/public/_nuxt/Bd-dcbuk.js +0 -1
- package/dist/public/_nuxt/CgY19zhT.js +0 -3
- package/dist/public/_nuxt/CjMCFT1j.js +0 -1
- package/dist/public/_nuxt/CqzDam8I.js +0 -1
- package/dist/public/_nuxt/D4ZxPEz8.js +0 -4
- package/dist/public/_nuxt/D5PRIZYS.js +0 -1
- package/dist/public/_nuxt/DaPjiAxH.js +0 -1
- package/dist/public/_nuxt/DnZCvkEg.js +0 -1
- package/dist/public/_nuxt/builds/meta/66be3f43-4a09-44c2-ae4a-823a2e23609d.json +0 -1
- package/dist/public/_nuxt/davnVqEL.js +0 -2
- package/dist/public/_nuxt/error-404.CfNyXncy.css +0 -1
- package/dist/public/_nuxt/error-500.BK534K7U.css +0 -1
- package/dist/public/_nuxt/tNxfX9P9.js +0 -1
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mSprtK4_.js","./CgY19zhT.js","./davnVqEL.js","./BQP5SyRf.js","./-2hSMOj2.js","./DnZCvkEg.js","./BDNMzG2s.js","./D5PRIZYS.js","./filepath.CX8PXv9n.css","./graph.qvMalRQi.css","./CjMCFT1j.js","./DaPjiAxH.js","./plugins.CtM-Tp_V.css","./Bd-dcbuk.js","./CqzDam8I.js","./error-404.CfNyXncy.css","./tNxfX9P9.js","./error-500.BK534K7U.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$t as e,C as t,Ct as n,Et as r,F as i,G as a,Gt as o,H as s,I as c,K as l,L as u,M as d,N as f,Ot as p,P as m,Q as h,Qt as g,R as _,S as v,T as y,U as b,V as x,W as S,Wt as C,X as w,Xt as T,Y as E,Yt as D,Z as O,Zt as ee,_ as te,_t as k,a as ne,bt as A,c as re,ct as ie,d as ae,et as oe,f as j,g as se,ht as ce,i as le,j as ue,k as de,lt as fe,mt as pe,n as me,o as he,p as ge,pt as _e,qt as ve,r as M,st as ye,t as be,tt as xe,u as Se,ut as Ce,v as we,vt as Te,w as Ee,wt as De,x as N,xt as Oe,y as ke,z as Ae}from"./CgY19zhT.js";import{$ as je,A as Me,B as Ne,C as Pe,D as Fe,E as Ie,F as Le,G as Re,H as P,I as ze,J as Be,K as Ve,L as He,M as Ue,N as We,O as Ge,P as Ke,Q as qe,R as F,S as Je,T as Ye,U as Xe,V as Ze,W as Qe,X as $e,Y as et,_ as tt,b as nt,c as rt,d as it,f as at,g as ot,h as st,i as ct,j as lt,k as ut,l as dt,m as ft,o as pt,p as mt,q as ht,s as I,t as gt,u as L,v as _t,w as vt,x as yt,y as bt,z as xt}from"./davnVqEL.js";import{D as St,E as Ct,O as wt,S as Tt,_ as Et,a as Dt,c as Ot,f as kt,g as At,h as jt,i as Mt,k as Nt,m as Pt,n as Ft,o as It,p as Lt,r as Rt,s as zt,t as Bt,v as Vt,w as Ht,x as Ut,y as Wt}from"./BQP5SyRf.js";import{d as Gt,f as Kt,g as qt,h as Jt,l as Yt,m as Xt,p as Zt,t as Qt,u as $t}from"./-2hSMOj2.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function en(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n<r.length-1?`├▶`:`╰▶`)} ${t}`)].join(`
|
|
3
|
-
`)}}var tn=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,nn=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,rn=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function an(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t)on(e);else return t}function on(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function sn(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!rn.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(tn.test(e)||nn.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,an)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var cn=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function ln(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new cn(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var un=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function dn(e=`GET`){return un.has(e.toUpperCase())}function fn(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var pn=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),mn=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function hn(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return mn.test(t)?`json`:t===`text/event-stream`?`stream`:pn.has(t)||t.startsWith(`text/`)?`text`:`blob`}function gn(e,t,n,r){let i=_n(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function _n(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function vn(e,t){if(t){if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}}var yn=new Set([408,409,425,429,500,502,503,504]),bn=new Set([101,204,205,304]);function xn(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:+!dn(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):yn.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=ln(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:gn(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await vn(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=Ut(s.request,s.options.baseURL)),s.options.query&&(s.request=Tt(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&dn(s.options.method)){if(fn(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else(`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`))}let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await vn(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!bn.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||hn(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||sn;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await vn(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await vn(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>xn({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var Sn=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof globalThis<`u`)return globalThis;throw Error(`unable to locate global object`)})(),Cn=Sn.fetch?(...e)=>Sn.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),wn=Sn.Headers,Tn=Sn.AbortController,En=xn({fetch:Cn,Headers:wn,AbortController:Tn}),Dn=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,On=()=>Dn().app,kn=()=>On().baseURL,An=()=>On().buildAssetsDir,jn=(...e)=>Vt(Mn(),An(),...e),Mn=(...e)=>{let t=On(),n=t.cdnURL||t.baseURL;return e.length?Vt(n,...e):n};globalThis.__buildAssetsURL=jn,globalThis.__publicAssetsURL=Mn,globalThis.$fetch||(globalThis.$fetch=En.create({baseURL:kn()}));var Nn=globalThis.$fetch;`global`in globalThis||(globalThis.global=globalThis);function Pn(e,t){t.push(he),e.vueApp.use(t);let n=!0,r=()=>{n=!1,t.render()};t.hooks?.hook(`dom:beforeRender`,e=>{e.shouldRender=!n}),e.hooks.hook(`page:start`,()=>{n=!0}),e.hooks.hook(`page:finish`,()=>{e.isHydrating||r()}),e.hooks.hook(`app:error`,r),e.hooks.hook(`app:suspense:resolve`,r);let i=t.push.bind(t);t.push=((t,n)=>{let r=i(t,n),a=r.dispose.bind(r);return r.dispose=()=>{let t=e[`~transitionPromise`];t?t.finally(a):a()},r})}function Fn(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function In(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>Fn(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var Ln=new Set([`link`,`style`,`script`,`noscript`]),Rn=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),zn=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),Bn=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),Vn=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),Hn=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),Un=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),Wn=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),Gn={critical:-8,high:-1,low:2},Kn=e=>typeof e==`number`?Number.isFinite(e):e;function qn(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Jn(e){let t=new ge;for(let n in e||{})t.hook(n,e[n]);return t}function Yn(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}function Xn(e,t,n){let r=e.push,i=e;i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>Fn(i,e),i.render=()=>n(i);function a(){t.callHook(`entries:updated`,i),i._b||i.render()}return i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,a()},i.push=(n,o)=>{let s=o?.onRendered?t.hook(`dom:rendered`,o.onRendered):void 0,c=r(n,o),l=e.entries.get(c._i);return l&&(l._o=n),i.dirty=!0,a(),{_i:c._i,patch(e){c.patch(e),i.dirty=!0,a()},dispose(){s?.(),e.entries.has(c._i)&&(c.dispose(),i.invalidate())}}},i}var Zn=/^(?:viewport|description|keywords|robots)$/,Qn=[`name`,`property`,`http-equiv`];function $n(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return Wn.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function er(e){let{props:t,tag:n,key:r}=e;if(Vn.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of Qn){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!Zn.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:Rn.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function tr(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return t;let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function nr(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=nr(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=qn(n),a=i?void 0:nr(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var rr=/[\s"'<>/=\x00-\x1F\x7F]/;function ir(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e){if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))}};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function ar(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=zn.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(qn(r))continue;let i=r.startsWith(`data-`),a=n&&!Hn.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||rr.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=ir(r,s);else if(Hn.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=n,e[r]=JSON.stringify(s))}else e[r]=s}else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function or(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n},e=n(void 0,e)),nr(e,n)}function sr(e,t){let n=ar({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&Ln.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)){let e=[];for(let t of n.props.content)e.push({...n,props:{...n.props,content:t}});return e}return n}function cr(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function lr(e,t){if(!e)return[];typeof e==`function`&&(e=e()),e=or(e,t);let n=[];for(let t in e){let r=e[t];if(r!==void 0){if(Array.isArray(r))for(let e of r)cr(n,sr(t,e));else cr(n,sr(t,r))}}return n}var ur=/</g,dr=/<\/script/g,fr=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,pr=()=>100;function mr(e){for(let t in e)return!1;return!0}var hr=/^tags:|:render/;function gr(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function _r(e){for(let t=0;t<e.length;t++){let n=e[t],r={...n.props};r.class instanceof Set&&(r.class=new Set(r.class)),r.style instanceof Map&&(r.style=new Map(r.style)),e[t]={...n,props:r}}}function vr(e,t){let n=e.tags,r=0;for(let t of e.tagMap.values())if(Array.isArray(t))for(let e of t)n[r++]=e;else n[r++]=t;n.length=r,t&&n.sort(fr)}function yr(e){let t=!1;for(let n of e.tags.sort(fr)){let r=n._d||tr(n);if(!r)continue;let i=e.tagMap.get(r);if(!i)e.tagMap.set(r,n);else if((n.tagDuplicateStrategy||(Un.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&$n(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._w<i._w)&&e.tagMap.set(r,n)}return t}function br(e,t){let n=e.tagMap.get(`title`),r=e.tagMap.get(`titleTemplate`);if(t._title=n?.textContent,!r)return;let i=r.textContent;if(t._titleTemplate=i,!i)return;let a=typeof i==`function`?i(n?.textContent):i;typeof a==`string`&&!t.plugins.has(`template-params`)&&(a=a.replace(`%s`,n?.textContent||``)),n?a===null?e.tagMap.delete(`title`):e.tagMap.set(`title`,{...n,textContent:a}):e.tagMap.set(`titleTemplate`,{...r,tag:`title`,textContent:a})}function xr(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(Bn.has(i)&&(!mr(a)||Kn(r)||Kn(n.textContent))&&(i!==`meta`||Kn(a.content)||a[`http-equiv`]||a.charset)){if(i===`script`&&(r||n.textContent)){let e=String(a.type),t=e.endsWith(`json`)||e===`importmap`||e===`speculationrules`,i=e=>t?(typeof e==`string`?e:JSON.stringify(e)).replace(ur,`\\u003C`):typeof e==`string`?e.replace(dr,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=er(n)}e[t++]=n}}return e.length=t,e}function Sr(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??pr,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};gr(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&Yn(e,`entries:resolve`,{entries:a,...r})),gr(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a){if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||mr(t.options)))a=t._precomputedTags;else{if(a=lr(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!mr(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};Yn(e,`entries:normalize`,n),a=n.tags}for(let e=0;e<a.length;e++){let r=a[e];r._w=n(r),r._p=(t._i<<10)+e,r._d=er(r),r._d||(r._h=tr(r))}t._tags=a}}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&hr.test(e)){_r(r.tags);break}let o=yr(r);return br(r,e),vr(r,o),Yn(e,`tags:beforeResolve`,r),Yn(e,`tags:resolve`,r),Yn(e,`tags:afterResolve`,r),xr(r.tags)}var Cr=/\s+/;function wr(e={}){return t=>Dr(t,e)}function Tr(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function Er(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(Cr))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function Dr(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom;if(!n||e._du||r&&r._d===n&&!e.dirty&&!Tr(e))return!1;let i=n.defaultView;e._du=!0;let a=!1;try{let o=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,i,a){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===a&&c[1]===n&&c[2]===r){o(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(i,e)),f=()=>{a.removeEventListener(n,u),i.getAttribute(l)===``&&i.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};a.addEventListener(n,u),d._l.set(s,[a,n,r,u,f]),i.setAttribute(l,``),o(s,f,!0)},c=function({id:e,$el:t,tag:n}){if(d._e.set(e,t),!n.tag.endsWith(`Attrs`)){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),o(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let i=n.innerHTML;i!=null&&i!==``&&(i!==t.innerHTML&&(t.innerHTML=i),o(`${e}:html`,()=>{t.innerHTML===i&&(t.innerHTML=``)},!0));let a=`${e}:el`;o(a,f[a]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let a=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof a==`function`){let o=r.slice(2);t?.dataset?.[`${r}fired`]&&a.call(t,new((i?.Event)||Event)(o)),s(e,r,o,a,t,n.tag===`bodyAttrs`&&i?i:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&a)for(let e of a){let n=`${c}:${e}`;o(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&a)for(let[e,n]of a){let r=`${c}:${e}`;o(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else a!==!1&&a!==null&&(t.getAttribute(r)!==a&&t.setAttribute(r,a===!0?``:String(a)),o(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(Yn(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=Er(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=Sr(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,i={tag:e,id:r,shouldRender:!0};e.tag===`meta`&&e._d&&$n(e._d)&&(_[e._d]=t+1),g.push(i),e.tag===`title`?(n.title=e.textContent,o(`title:`,()=>n.title=d._t)):(i.$el=d._e.get(r),i.$el?c(i):zn.has(e.tag)&&p.push(i))}if(p.length){let e=new Set(d._e.values());for(let t of[...n.body.children,...n.head.children]){let n=t.tagName.toLowerCase();if(!zn.has(n)||e.has(t))continue;let r={innerHTML:t.innerHTML};for(let e of t.getAttributeNames())r[e]=t.getAttribute(e);let i=ar({tag:n,props:{}},r);i.key=t.getAttribute(`data-hid`)||void 0;let a=er(i)||tr(i),o=a,s=1;for(;d._e.has(o);)o=`${a}:${s++}`;d._e.set(o,t)}}for(let e of p){let t=d._e.get(e.id);e.$el=t||n.createElement(e.tag.tag),c(e),t||(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el)}m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,a=!0,Yn(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return a&&(e.dirty||Tr(e))&&Dr(e,t),a}var Or=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(Gn[e.tagPriority]||0);function kr(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||wr({document:e.document}),n=Xn(In(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:Or,init:[]}),Jn(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}var Ar=`usehead`;function jr(){if(u()){let e=_(Ar);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function Mr(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(Ar,e)}}.install}function Nr(e,t){return t&&typeof e==`function`&&(e.key=t),e}var Pr=/\\/g,Fr=/</g,Ir=/"/g,Lr=/%\w+(?:\.\w+)?/g,Rr=`%separator`;function zr(e,t,n=!1){let r;if(t===`s`||t===`pageTitle`)r=e.pageTitle;else if(t.includes(`.`)){let n=t.indexOf(`.`);r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(r!==void 0)return n?(r||``).replace(Pr,`\\\\`).replace(Fr,`\\u003C`).replace(Ir,`\\"`):r||``}function Br(e,t,n,r=!1){if(typeof e!=`string`||!e.includes(`%`))return e;let i=e;try{i=decodeURI(e)}catch{}let a=i.match(Lr);if(!a)return e;let o=e.includes(Rr);return e=e.replace(Lr,e=>{if(e===Rr||!a.includes(e))return e;let n=zr(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(Rr).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var Vr=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Hr=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),Ur=Nr({key:`aliasSorting`,hooks:{"tags:resolve":e=>{let t=!1;for(let n of e.tags){let r=n.tagPriority;if(!r)continue;let i=String(r);if(i.startsWith(`before:`)){let r=Hr(i.slice(7)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p-1,t=!0)}else if(i.startsWith(`after:`)){let r=Hr(i.slice(6)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Vr))}}}),Wr=Nr({key:`deprecations`,hooks:{"entries:normalize":({tags:e})=>{for(let t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),`body`in t.props&&(t.props.body&&(t.tagPosition=`bodyClose`),delete t.props.body),t.props.renderPriority!=null&&(t.tagPriority=t.props.renderPriority,delete t.props.renderPriority)}}});function Gr(e){return typeof e?.then==`function`}var Kr=256;function qr(e,t){if(t===e.length)return;if(t===Kr){let n=Array(e.length),r=!1;for(;t<e.length;t++){let i=R(e[t]);n[t]=i,r||=Gr(i)}return r?n:void 0}let n=R(e[t]);if(Gr(n)){let r=Array(e.length);r[t]=n;for(let n=t+1;n<e.length;n++)r[n]=R(e[n]);return r}let r=qr(e,t+1);return r&&(r[t]=n),r}function Jr(e,t,n){if(n===t.length)return;if(n===Kr){let r=Array(t.length),i=!1;for(;n<t.length;n++){let a=R(e[t[n]]);r[n]=a,i||=Gr(a)}return i?r:void 0}let r=R(e[t[n]]);if(Gr(r)){let i=Array(t.length);i[n]=r;for(let r=n+1;r<t.length;r++)i[r]=R(e[t[r]]);return i}let i=Jr(e,t,n+1);return i&&(i[n]=r),i}function R(e){if(typeof e==`function`)return e;if(Gr(e))return Promise.resolve(e).then(R);if(Array.isArray(e)){let t=qr(e,0);return t?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=Jr(e,t,0);if(n)return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var Yr=Nr(e=>{let t=new WeakMap;return{key:`promises`,hooks:{"entries:resolve":n=>{for(let r=n.entries.length-1;r>=0;r--){let i=n.entries[r],a=i.input;if(t.get(i)===a){n.entries.splice(r,1);continue}let o=R(a);Gr(o)?(t.set(i,a),n.entries.splice(r,1),Promise.resolve(o).then(n=>{t.get(i)===a&&(t.delete(i),i.input=n,delete i._tags,e.invalidate?.())},()=>{t.get(i)===a&&t.delete(i)})):t.delete(i)}}}}},`promises`),Xr={meta:`content`,link:`href`,htmlAttrs:`lang`},Zr=[`innerHTML`,`textContent`];function Qr(e,t,n,r=!1){return typeof e==`string`&&e.includes(`%`)?Br(e,t,n,r):e}var $r=Nr(e=>({key:`template-params`,hooks:{"tags:resolve":({tagMap:t,tags:n})=>{let r=t.get(`templateParams`)?.props||{},i=r.separator||`|`;delete r.separator,r.pageTitle=Qr(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=Xr[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=Qr(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of Zr)typeof e[t]==`string`&&(e[t]=Qr(e[t],r,i,e.tag===`script`&&typeof e.props.type==`string`&&e.props.type.endsWith(`json`)))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{let n=t.get(`title`);n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=Qr(n.textContent,e._templateParams,e._separator))}}}),`template-params`),ei=[`twitter`,`fediverse`],ti=[`og`,`book`,`article`,`profile`,`fb`,`payment`],ni=[`ogImage`,`ogVideo`,`ogAudio`,`twitterImage`],ri=[`contentType`,`defaultStyle`,`xUaCompatible`],ii={articleExpirationTime:`article:expiration_time`,articleModifiedTime:`article:modified_time`,articlePublishedTime:`article:published_time`,bookReleaseDate:`book:release_date`,fbAppId:`fb:app_id`,ogAudioSecureUrl:`og:audio:secure_url`,ogAudioUrl:`og:audio`,ogImageSecureUrl:`og:image:secure_url`,ogImageUrl:`og:image`,ogSiteName:`og:site_name`,ogVideoSecureUrl:`og:video:secure_url`,ogVideoUrl:`og:video`,paymentExpiresAt:`payment:expires_at`,paymentSuccessUrl:`payment:success_url`,profileFirstName:`profile:first_name`,profileLastName:`profile:last_name`,profileUsername:`profile:username`,msapplicationConfig:`msapplication-Config`,msapplicationTileColor:`msapplication-TileColor`,msapplicationTileImage:`msapplication-TileImage`},ai=/([A-Z])/g,oi=/^(?:og|twitter)/,si={appleItunesApp:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>`${z(e)}=${t}`}},refresh:{metaKey:`http-equiv`,unpack:{entrySeparator:`;`,resolve:({key:e,value:t})=>e===`seconds`?`${t}`:void 0}},robots:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>typeof t==`boolean`?z(e):`${z(e)}:${t}`}},contentSecurityPolicy:{metaKey:`http-equiv`,unpack:{entrySeparator:`; `,resolve:({key:e,value:t})=>`${z(e)} ${t}`}},charset:{}};function z(e){let t=e.replace(ai,`-$1`).toLowerCase(),n=t.indexOf(`-`);return n===-1?t:ei.includes(t.slice(0,n))||ti.includes(t.slice(0,n))?e.replace(ai,`:$1`).toLowerCase():t}function ci(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>String(t)!==`false`&&e))}function li(e){return Array.isArray(e)?e.map(li):!e||typeof e!=`object`?e:Object.fromEntries(Object.entries(e).map(([e,t])=>[z(e),li(t)]))}function ui(e,t={}){let{entrySeparator:n=``,keyValueSeparator:r=``,wrapValue:i,resolve:a}=t;return Object.entries(e).map(([e,n])=>{if(a){let t=a({key:e,value:n});if(t!==void 0)return t}let o=typeof n==`object`?ui(n,t):typeof n==`number`?n.toString():typeof n==`string`&&i?`${i}${n.replace(new RegExp(i,`g`),`\\${i}`)}${i}`:n;return`${e}${r}${o}`}).join(n)}function di(e,t){let n=ci(t),r=z(e),i=fi(r);return Wn.has(r)?hi(Object.fromEntries(Object.entries(n).map(([t,n])=>[`${e}${t===`url`?``:`${t[0].toUpperCase()}${t.slice(1)}`}`,n]))||{}).sort((e,t)=>(e[i]?.length||0)-(t[i]?.length||0)):[{[i]:r,...n}]}function fi(e){if(si[e]?.metaKey===`http-equiv`||ri.includes(e))return`http-equiv`;let t=z(e),n=t.indexOf(`:`);return n===-1?`name`:ti.includes(t.slice(0,n))?`property`:`name`}function pi(e){return ii[e]||z(e)}function mi(e,t){return t===`refresh`?`${e.seconds};url=${e.url}`:ui(li(e),{keyValueSeparator:`=`,entrySeparator:`, `,resolve:({value:e,key:t})=>e===null?``:typeof e==`boolean`?t:void 0,...si[t]?.unpack})}function hi(e){let t=[],n={};for(let[r,i]of Object.entries(e))if(Array.isArray(i)){if(r===`themeColor`){i.forEach(e=>{typeof e==`object`&&e&&t.push({name:`theme-color`,...e})});continue}for(let e of i)if(typeof e==`object`&&e){let n=[],i=[];for(let[t,a]of Object.entries(e)){let e=hi({[`${r}${t===`url`?``:`:${t}`}`]:a});(t===`url`?n:i).push(...e)}t.push(...n,...i)}else t.push(...typeof e==`string`?hi({[r]:e}):di(r,e))}else if(typeof i==`object`&&i){if(ni.includes(r)){let e=r.startsWith(`twitter`)?`twitter`:`og`,n=r.replace(oi,``).toLowerCase(),a=e===`twitter`?`name`:`property`;i.url&&t.push({[a]:`${e}:${n}`,content:i.url}),i.secureUrl&&t.push({[a]:`${e}:${n}:secure_url`,content:i.secureUrl});for(let[r,o]of Object.entries(i))r!==`url`&&r!==`secureUrl`&&t.push({[a]:`${e}:${n}:${r}`,content:o})}else Wn.has(z(r))?t.push(...di(r,i)):n[r]=ci(i)}else n[r]=i;let r=Object.entries(n).map(([e,t])=>{if(e===`charset`)return{charset:t===null?`_null`:t};let n=fi(e),r=pi(e),i=t===null?`_null`:typeof t==`object`?mi(t,e):typeof t==`number`?t.toString():t;return n===`http-equiv`?{"http-equiv":r,content:i}:{[n]:r,content:i}});return[...t,...r].map(e=>`content`in e&&e.content===`_null`?{...e,content:null}:e)}var gi=Nr({key:`flatMeta`,hooks:{"entries:normalize":e=>{let t=!1,n=[],r=[];for(let i of e.tags)if(i.tag!==`_flatMeta`)n.push(i);else{t=!0;for(let e of hi(i.props))r.push({...i,tag:`meta`,props:e})}if(t){for(let e of r)n.push(e);e.tags=n}}}}),_i=Object.prototype.hasOwnProperty;function vi(e,t){return _i.call(e,t)}var yi=Object.assign((e,t)=>ce(t)?r(t):t,{_static:!0});function bi(e,t={}){let n=t.head||jr();return n.ssr?n.push(e||{},t):xi(n,e,t)}function xi(e,t,n={}){let r=_e();if(r&&!r.active)return{patch(){},dispose(){},_i:-1};let i=A(!1);if(n.onRendered&&r){let e=n.onRendered;n={...n,onRendered:t=>r.run(()=>e(t))}}let o;return ie(()=>{let r=i.value?{}:nr(t,yi);o?o.patch(r):o=e.push(r,n)}),m()&&(S(()=>{o.dispose()}),a(()=>{i.value=!0}),b(()=>{i.value=!1})),o}function Si(e){if(e._flatMeta)return e;let t={};for(let n in e)vi(e,n)&&n!==`title`&&n!==`titleTemplate`&&(t[n]=e[n]);return{title:e.title,titleTemplate:e.titleTemplate,_flatMeta:t}}function Ci(e={},t={}){(t.head||jr()).use(gi);let n=bi(Si(e),t),r=n.patch;return n.__patched||=(n.patch=e=>r(Si(e)),!0),n}function wi(e={}){let t=wr(),n,r=0;return n=kr({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=Mr(n),n}var Ti={disableDefaults:!0,plugins:[Wr,Yr,$r,Ur]},Ei=M({name:`nuxt:head`,enforce:`pre`,setup(e){Pn(e,wi(Ti))}}),Di=/(:\w+)\([^)]+\)/g,Oi=/(:\w+)[?+*]/g,ki=/:\w+/g,Ai=(e,t)=>t.path.replace(Di,`$1`).replace(Oi,`$1`).replace(ki,t=>e.params[t.slice(1)]?.toString()||``),ji=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&Ai(e.route,n));return typeof r==`function`?r(e.route):r},Mi=(e,t)=>({default:()=>e?c(te,e===!0?{}:e,t):t});function Ni(e){return Array.isArray(e)?e:[e]}var Pi=()=>location.protocol+`//`+location.host;function Fi(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Le(n,``)}return Le(n,e)+r+i}function Ii(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Fi(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(F({},e.state,{scroll:it()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function Li(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function Ri(e){let{history:t,location:n}=window,r={value:Fi(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Pi()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){let o=F({},t.state,Li(i.value.back,e,i.value.forward,!0),n,{position:i.value.position});a(e,o,!0),yt(o.position,!0),r.value=e}function s(e,n){let o=F({},i.value,t.state,{forward:e,scroll:it()});a(o.current,o,!0),a(e,F({},Li(r.value,e,null),{position:o.position+1},n),!1),yt(o.position),r.value=e}return{location:r,state:i,push:s,replace:o}}function zi(e){e=Fe(e);let t=Ri(e),n=Ii(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=F({location:``,base:e,go:r,createHref:at.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Bi={type:0,value:``},Vi=/[a-zA-Z0-9_]/;function Hi(e){if(!e)return[[]];if(e===`/`)return[[Bi]];if(!Ne(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:Vi.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Ui=`[^/]+?`,Wi={sensitive:!1,strict:!1,start:!0,end:!0},Gi=/[.+*?^${}()[\]/\\]/g;function Ki(e,t){let n=F({},Wi,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(Gi,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Ui;if(u!==Ui){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(Ze(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Ze(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function qi(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Ji(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=qi(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Yi(r))return 1;if(Yi(i))return-1}return i.length-r.length}function Yi(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Xi={strict:!1,end:!0,sensitive:!1};function Zi(e,t,n){let r=Ki(Hi(e.path),n),i=F(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Qi(e,t){let n=[],r=new Map;t=Qe(Xi,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=ea(e);s.aliasOf=r&&r.record;let l=Qe(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(ea(F({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!Ne(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Zi(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!na(d)&&o(e.name)),oa(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Re}function o(e){if(Pe(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=ia(e,n);n.splice(t,0,e),e.record.name&&!na(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw xt(1,{location:e});s=i.record.name,a=F($i(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&$i(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw xt(1,{location:e,currentLocation:t});s=i.record.name,a=F({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:ra(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function $i(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function ea(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ta(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 ta(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function na(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ra(e){return e.reduce((e,t)=>F(e,t.meta),{})}function ia(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ji(e,t[i])<0?r=i:n=i+1}let i=aa(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function aa(e){let t=e;for(;t=t.parent;)if(oa(t)&&Ji(e,t)===0)return t}function oa({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function sa(e){let t=_(ht),n=_(Ve),r=N(()=>{let n=p(e.to);return t.resolve(n)}),i=N(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Ie.bind(null,i));if(o>-1)return o;let s=fa(e[t-2]);return t>1&&fa(i)===s&&a[a.length-1].path!==s?a.findIndex(Ie.bind(null,e[t-2])):o}),a=N(()=>i.value>-1&&da(n.params,r.value.params)),o=N(()=>i.value>-1&&i.value===n.matched.length-1&&Ye(n.params,r.value.params));function s(n={}){if(ua(n)){let n=t[p(e.replace)?`replace`:`push`](p(e.to)).catch(Re);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:N(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function ca(e){return e.length===1?e[0]:e}var la=f({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:sa,setup(e,{slots:t}){let n=Te(sa(e)),{options:r}=_(ht),i=N(()=>({[pa(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[pa(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&ca(t.default(n));return e.custom?r:c(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function ua(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function da(e,t){for(let n in t){let r=t[n],i=e[n];if(Ze(r)){if(!Ze(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function fa(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var pa=(e,t,n)=>e??t??n,ma=f({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=_(Be),i=N(()=>e.route||r.value),a=_($e,0),o=N(()=>{let e=p(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),l=N(()=>i.value.matched[o.value]);w($e,N(()=>o.value+1)),w(Xe,l),w(Be,i);let u=new Set;w(et,u);let d=A(),f=L,{app:h}=m().appContext;return ye(()=>[d.value,l.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Ie(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=l.value,p=o&&o.components[a];if(!p)return ha(n.default,{Component:p,route:r});let m=o.props[a],g=m?m===!0?r.params:typeof m==`function`?m(r):m:null,_=e=>{e.component.isUnmounted&&(o.instances[a]=null)},v=e=>s(()=>{if(f===r||i.value!==r||e.el.getRootNode()!==h._container.getRootNode())return;let t=f;f=r;for(let e of u)e(r,t)}),y=c(p,F({},g,t,{onVnodeUnmounted:_,onVnodeMounted:v,onVnodeUpdated:v,ref:d}));return ha(n.default,{Component:y,route:r})||y}}});function ha(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var ga=ma;function _a(e){let t=e.matcher||Qi(e.routes,e),r=e.parseQuery||ut,i=e.stringifyQuery||We,a=e.history,o=ze(),c=ze(),l=ze(),u=n(L),d=n(0),f=L;Je&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let m=He.bind(null,e=>``+e),h=He.bind(null,st),g=He.bind(null,mt);function _(e,n){let r,i;Pe(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return d.value++,()=>{a(),d.value++}}function v(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),d.value++)}function y(){t.clearRoutes(),d.value++}function b(){return t.getRoutes().map(e=>e.record)}function x(e){return!!t.getRecordMatcher(e)}function S(e,n){if(d.value,typeof e==`string`){n||=e.startsWith(`/`)?L:u.value;let i=Me(r,e,n.path),o=t.resolve({path:i.path},n),s=a.createHref(i.fullPath);return F(i,o,{params:g(o.params),redirectedFrom:void 0,href:s})}n=F({},n||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?L:u.value));let o;if(e.path!=null)o=F({},e,{path:Me(r,e.path,n.path).path});else{let t=F({},e.params);for(let e in t)t[e]??delete t[e];o=F({},e,{params:h(t)}),n.params=h(n.params)}let s=t.resolve(o,n),c=e.hash||``;s.params=m(g(s.params));let l=Ke(i,F({},e,{hash:ft(c),path:s.path})),f=a.createHref(l);return F({fullPath:l,hash:c,query:i===We?Ge(e.query):e.query||{}},s,{redirectedFrom:void 0,href:f})}function C(e){return typeof e==`string`?Me(r,e,u.value.path):F({},e)}function w(e,t){if(f!==e)return xt(8,{from:t,to:e})}function T(e){return O(e)}function E(e){return T(F(C(e),{replace:!0}))}function D(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=C(i):{path:i},i.params={}),F({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function O(e,t){let n=f=S(e),r=u.value,a=e.state,o=e.force,s=e.replace===!0,c=D(n,r);if(c)return O(F(C(c),{state:typeof c==`object`?F({},a,c.state):a,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let d;return!o&&vt(i,r,n)&&(d=xt(16,{to:l,from:r}),ue(r,r,!0,!1)),(d?Promise.resolve(d):k(l,r)).catch(e=>P(e)?P(e,2)?e:le(e):se(e,l,r)).then(e=>{if(e){if(P(e,2))return O(F({replace:s},C(e.to),{state:typeof e.to==`object`?F({},a,e.to.state):a,force:o}),t||l)}else e=A(l,r,!0,s,a);return ne(l,r,e),e})}function ee(e,t){let n=w(e,t);return n?Promise.reject(n):Promise.resolve()}function te(e){let t=pe.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function k(e,t){let n,[r,i,a]=ot(e,t);n=tt(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(nt(r,e,t))});let s=ee.bind(null,e,t);return n.push(s),he(n).then(()=>{n=[];for(let r of o.list())n.push(nt(r,e,t));return n.push(s),he(n)}).then(()=>{n=tt(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(nt(r,e,t))});return n.push(s),he(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter){if(Ze(r.beforeEnter))for(let i of r.beforeEnter)n.push(nt(i,e,t));else n.push(nt(r.beforeEnter,e,t))}return n.push(s),he(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=tt(a,`beforeRouteEnter`,e,t,te),n.push(s),he(n))).then(()=>{n=[];for(let r of c.list())n.push(nt(r,e,t));return n.push(s),he(n)}).catch(e=>P(e,8)?e:Promise.reject(e))}function ne(e,t,n){l.list().forEach(r=>te(()=>r(e,t,n)))}function A(e,t,n,r,i){let o=w(e,t);if(o)return o;let s=t===L,c=Je?history.state:{};n&&(r||s?a.replace(e.fullPath,F({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),u.value=e,ue(e,t,n,s),le()}let re;function ie(){re||=a.listen((e,t,n)=>{if(!me.listening)return;let r=S(e),i=D(r,me.currentRoute.value);if(i){O(F(i,{replace:!0,force:!0}),r).catch(Re);return}f=r;let o=u.value;Je&&n.delta&<(bt(o.fullPath,n.delta)),k(r,o).catch(e=>P(e,12)?e:P(e,2)?(O(F(C(e.to),{force:!0}),r).then(e=>{P(e,20)&&!n.delta&&n.type===`pop`&&a.go(-1,!1)}).catch(Re),Promise.reject()):(n.delta&&a.go(-n.delta,!1),se(e,r,o))).then(e=>{e||=A(r,o,!1),e&&(n.delta&&!P(e,8)?a.go(-n.delta,!1):n.type===`pop`&&P(e,20)&&a.go(-1,!1)),ne(r,o,e)}).catch(Re)})}let ae=ze(),oe=ze(),j;function se(e,t,n){le(e);let r=oe.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ce(){return j&&u.value!==L?Promise.resolve():new Promise((e,t)=>{ae.add([e,t])})}function le(e){return j||(j=!e,ie(),ae.list().forEach(([t,n])=>e?n(e):t()),ae.reset()),e}function ue(t,n,r,i){let{scrollBehavior:a}=e;if(!Je||!a)return Promise.resolve();let o=!r&&_t(bt(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return s().then(()=>a(t,n,o)).then(e=>t===u.value&&e&&Ue(e)).catch(e=>t===u.value&&se(e,t,n))}let de=e=>a.go(e),fe,pe=new Set,me={currentRoute:u,listening:!0,addRoute:_,removeRoute:v,clearRoutes:y,hasRoute:x,getRoutes:b,resolve:S,options:e,push:T,replace:E,go:de,back:()=>de(-1),forward:()=>de(1),beforeEach:o.add,beforeResolve:c.add,afterEach:l.add,onError:oe.add,isReady:ce,install(e){e.component(`RouterLink`,la),e.component(`RouterView`,ga),e.config.globalProperties.$router=me,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>p(u)}),Je&&!fe&&u.value===L&&(fe=!0,T(a.location).catch(e=>{}));let t={};for(let e in L)Object.defineProperty(t,e,{get:()=>u.value[e],enumerable:!0});e.provide(ht,me),e.provide(Ve,Oe(t)),e.provide(Be,u);let n=e.unmount;pe.add(e),e.unmount=function(){pe.delete(e),pe.size<1&&(f=L,re&&re(),re=null,u.value=L,fe=!1,j=!1),n()}}};function he(e){return e.reduce((e,t)=>e.then(()=>te(t)),Promise.resolve())}return me}var va=Ot(async e=>{let t,n;if(!e.meta?.validate)return;let r=([t,n]=j(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);if(r!==!0)return Mt({fatal:!0,status:r&&(r.status||r.statusCode)||404,statusText:r&&(r.statusText||r.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})},1),ya=e({docsBase:T,reporters:ee}),ba=(()=>{let e={prerender:!0},t={prerender:!1};return(n,r)=>{let i=[];r.charCodeAt(r.length-1)===47&&(r=r.slice(0,-1)),(r===``||r===`/200.html`||r===`/404.html`||r.charCodeAt(r.length-1)===47&&(r===`/`||r===`/200.html/`||r===`/404.html/`))&&i.push({data:e});let a=r.split(`/`);return a.length>1&&a[a.length-1]===``&&(a.pop(),r=r.slice(0,-1)),a.length,i.push({data:t,params:{_:r.slice(1)}}),i.reverse()}})(),xa=ba,Sa=function(e){if(!e.includes(`%`))return e;let t=e.indexOf(`?`),n=t===-1?e:e.slice(0,t);try{return t===-1?decodeURI(n):decodeURI(n)+e.slice(t)}catch{return e}},Ca=(e,t)=>{if(typeof e!=`string`)return e;let n=Sa(e);return t?n.toLowerCase():n},wa=e=>I.sensitive?Pt({},...ba(``,Ca(e,!1)).map(e=>e.data).reverse()):Pt({},...xa(``,Ca(e,!0)).map(e=>e.data).reverse()),Ta=`modulepreload`,Ea=function(e,t){return new URL(e,t).href},Da={},Oa=function(e){return e.pathname.endsWith(`.css`)},ka=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Aa=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Ea(t,n);let r=s(t),i=Oa(r);return ka(Da,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Ta,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ja=Nn,Ma=wa,Na;function Pa(){let e;return e=ja(jn(`builds/meta/${ne().app.buildId}.json`),{responseType:`json`}).then(e=>{if(!e||typeof e!=`object`||!Array.isArray(e.prerendered))throw ya.NUXT_E5004();return e}),Na=e,e.catch(t=>{Na===e&&(Na=void 0),ya.NUXT_E5002({cause:t})}),e}function Fa(){return Na||Pa()}function Ia(e){let t=typeof e==`string`?e:e.path;try{return Ma(t)}catch(e){return ya.NUXT_E5003({path:t,cause:e}),{}}}var La=[va,Ot(e=>{let t=Ia({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return jt(n,{acceptRelative:!0})?(window.location.href=n,!1):n}})],Ra={},za=[{name:`graph`,path:`/graph`,component:()=>Aa(()=>import(`./mSprtK4_.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)},{name:`home`,path:`/home`,component:()=>Aa(()=>import(`./CjMCFT1j.js`),__vite__mapDeps([10,1,6,7]),import.meta.url)},{name:`plugins`,path:`/plugins`,component:()=>Aa(()=>import(`./DaPjiAxH.js`),__vite__mapDeps([11,1,2,3,4,6,5,7,8,12]),import.meta.url)},{name:`index`,path:`/`,component:()=>Aa(()=>import(`./Bd-dcbuk.js`),__vite__mapDeps([13,1,3]),import.meta.url)}];function Ba(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),Ht(n,``)}let s=Ht(r,e),c=!n||At(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var Va=M({name:`nuxt:router`,enforce:`pre`,async setup(e){let t,r,i=ne().app.baseURL,a=I.history?.(i)??zi(i),o=I.routes?([t,r]=j(()=>I.routes(za)),t=await t,r(),t??za):za,s,c=_a({...I,scrollBehavior:(e,t,n)=>{if(t===L)s=n;else if(I.scrollBehavior){if(c.options.scrollBehavior=I.scrollBehavior,`scrollRestoration`in window.history){let e=c.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return I.scrollBehavior(e,L,s||n)}},history:a,routes:o});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(c);let l=n(c.currentRoute.value);c.afterEach((e,t)=>{l.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});let u=Ba(i,window.location,e.payload.path),d=n(c.currentRoute.value),f=()=>{d.value=c.currentRoute.value};c.afterEach((e,t)=>{let n=e.matched.at(-1)?.components?.default,r=t.matched.at(-1)?.components?.default;n===r?ji({route:e,Component:{type:n}})===ji({route:t,Component:{type:r}})&&f():e.matched.length<t.matched.length&&e.matched.every((e,n)=>e.components?.default===t.matched[n]?.components?.default)&&f()});let p={sync:f};for(let e in d.value)Object.defineProperty(p,e,{get:()=>d.value[e],enumerable:!0});e._route=Oe(p),e._middleware||={global:[],named:{}};let m=zt();c.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&m.value&&await e.runWithContext(Rt),r&&await e.callHook(`page:loading:end`)});try{[t,r]=j(()=>c.isReady()),await t,r()}catch(n){[t,r]=j(()=>Ft(e,n)),await t,r()}let h=u===c.currentRoute.value.fullPath?c.currentRoute.value:c.resolve(u),g=c.currentRoute.value.fullPath,_=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&u!==e.payload.path&&At(c.currentRoute.value.path,e.payload.path);f();function v(t){!e.isHydrating&&t.fullPath!==Ba(i,window.location)&&a.push(t.fullPath)}let y=e.payload.state._layout;return c.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=Te(t.meta),e.isHydrating&&y&&!pe(t.meta.layout)&&(t.meta.layout=y),e._processingMiddleware=!0;{let r=new Set([...La,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of Ni(t))r.add(e)}let i=Ia({path:t.path});if(i.appMiddleware)for(let e in i.appMiddleware)i.appMiddleware[e]?r.add(e):r.delete(e);for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await Ra[i]?.().then(e=>e.default||e):i;if(!r)throw Ct.NUXT_E2004({entry:String(i),validMiddleware:void 0});try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||Mt({status:404,statusText:`Page Not Found: ${u}`});return await e.runWithContext(()=>It(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return Dt(i)&&i.fatal&&(await e.runWithContext(()=>It(i)),v(t)),i}catch(n){let r=Mt(n);return r.fatal&&(await e.runWithContext(()=>It(r)),v(t)),r}}}}),c.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)}),c.afterEach(t=>{if(t.matched.length===0&&!m.value)return e.runWithContext(()=>It(Mt({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in h&&(h.name=void 0),c.currentRoute.value.fullPath===g){if(_){let t=c.resolve(e.payload.path);`name`in t&&(t.name=void 0),await c.replace({...t,force:!0});let n=()=>{e[`~restoreDeferredRoute`]&&(e[`~restoreDeferredRoute`]=void 0,c.currentRoute.value=c.resolve(u),f(),c.replace({...h,force:!0}).catch(()=>{}))};e[`~restoreDeferredRoute`]=n,e.hooks.hookOnce(`app:suspense:resolve`,n)}else await c.replace({...h,force:!0})}c.options.scrollBehavior=I.scrollBehavior}catch(t){await Ft(e,t)}}),{provide:{router:c}}}},1),Ha=M(()=>{let e=Lt();pt(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),Ua=M(e=>{let t;async function n(){let r;try{r=await Fa()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,Se);try{let n=await Nn(jn(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}pt(()=>{t=setTimeout(n,Se)})});function Wa(e={}){let t=e.path||window.location.pathname,n=new URL(t,window.location.href);if(n.host!==window.location.host)throw Ct.NUXT_E2010({path:t});if(n.protocol&&Et(n.protocol))throw Ct.NUXT_E2002({toPath:t,protocol:n.protocol});let r={};try{r=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:le().payload.state}))}catch{}window.location.pathname===t?window.location.reload():window.location.href=t}}var Ga=M({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&Nt(navigator.userAgent)&&Wa()})}}),Ka=M({name:`nuxt:chunk-reload`,setup(e){let t=Lt(),n=ne(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){Wa({path:Wt(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),qa=M({name:`nuxt:island-link-navigation`,setup(e){}}),Ja=M({name:`nuxt:global-components`}),Ya={},Xa=M({name:`nuxt:prefetch`,setup(e){let t=Lt();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;t&&typeof Ya[t]==`function`&&await Ya[t]()})}),e.hooks.hook(`link:prefetch`,e=>{if(jt(e))return;let n=t.resolve(e);if(!n)return;let r=n.meta.layout,i=Ni(n.meta.middleware).filter(e=>typeof e==`string`);for(let e of i){let t=Ra[e];typeof t==`function`&&t()}typeof r==`string`&&r in Ya&&ct(Ya[r])})}}),Za=M(()=>{}),Qa=`5.4.0`;function $a(e,t){for(let n in t)Object.hasOwn(t,n)&&(typeof t[n]==`object`&&e[n]?$a(e[n],t[n]):e[n]=t[n])}var B={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function eo(e,t){let n=B.themes[e]||{},r;do r=n[t],r===void 0?n.$extend?n=B.themes[n.$extend]||{}:(n=null,r=B[t]):n=null;while(n);return r}function to(e){let t=[e],n=B.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=B.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function no(e){let t=[e],n=B.themes[e]||{};do n.$extend?(t.push(n.$extend),n=B.themes[n.$extend]||{}):n=null;while(n);return t}var ro=(()=>{if(typeof window>`u`)return!1;let e=!1;try{let t=Object.defineProperty({},"passive",{get(){e=!0}});window.addEventListener(`test`,null,t)}catch{}return e})(),io=typeof window<`u`&&typeof navigator<`u`&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ao=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),oo={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},so={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function co(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function lo(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var V=[],uo=null,fo={};function po(e){let t=fo[e];return t||=fo[e]=[],t}var mo=function(){};typeof window<`u`&&(mo=window.Element);function H(e){return function(t){return eo(t.theme,e)}}var ho=`__floating-vue__popper`,go=()=>f({name:`VPopper`,provide(){return{[ho]:{parentPopper:this}}},inject:{[ho]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:H(`disabled`)},positioningDisabled:{type:Boolean,default:H(`positioningDisabled`)},placement:{type:String,default:H(`placement`),validator:e=>ao.includes(e)},delay:{type:[String,Number,Object],default:H(`delay`)},distance:{type:[Number,String],default:H(`distance`)},skidding:{type:[Number,String],default:H(`skidding`)},triggers:{type:Array,default:H(`triggers`)},showTriggers:{type:[Array,Function],default:H(`showTriggers`)},hideTriggers:{type:[Array,Function],default:H(`hideTriggers`)},popperTriggers:{type:Array,default:H(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:H(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:H(`popperHideTriggers`)},container:{type:[String,Object,mo,Boolean],default:H(`container`)},boundary:{type:[String,mo],default:H(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:H(`strategy`)},autoHide:{type:[Boolean,Function],default:H(`autoHide`)},handleResize:{type:Boolean,default:H(`handleResize`)},instantMove:{type:Boolean,default:H(`instantMove`)},eagerMount:{type:Boolean,default:H(`eagerMount`)},popperClass:{type:[String,Array,Object],default:H(`popperClass`)},computeTransformOrigin:{type:Boolean,default:H(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:H(`autoMinSize`)},autoSize:{type:[Boolean,String],default:H(`autoSize`)},autoMaxSize:{type:Boolean,default:H(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:H(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:H(`preventOverflow`)},overflowPadding:{type:[Number,String],default:H(`overflowPadding`)},arrowPadding:{type:[Number,String],default:H(`arrowPadding`)},arrowOverflow:{type:Boolean,default:H(`arrowOverflow`)},flip:{type:Boolean,default:H(`flip`)},shift:{type:Boolean,default:H(`shift`)},shiftCrossAxis:{type:Boolean,default:H(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:H(`noAutoFocus`)},disposeTimeout:{type:Number,default:H(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId??this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[ho]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){this.parentPopper?.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){this.$_hideInProgress||(this.shownChildren.size>0?this.pendingHide=!0:this.hasPopperShowTriggerHover&&this.$_isAimingPopper()?this.parentPopper&&(this.parentPopper.lockedChild=this,this.parentPopper.lockedChildTimer&&clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3)):(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)))},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Zt({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push($t({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Xt({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Kt({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Yt({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{if(r.autoSize?.skip)return{};let i,a;return n.startsWith(`top`)||n.startsWith(`bottom`)?i=e.reference.width:a=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=i==null?null:`${i}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=a==null?null:`${a}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Jt({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await Gt(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),uo&&this.instantMove&&uo.instantMove&&uo!==this.parentPopper?(uo.$_applyHide(!0),this.$_applyShow(!0)):t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){this.shownChildren.size>0?this.pendingHide=!0:(this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,this.$_scheduleTimer&&clearTimeout(this.$_scheduleTimer),this.isShown&&(uo=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`)))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){this.$_disposeTimer&&clearTimeout(this.$_disposeTimer),this.$_scheduleTimer&&clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await lo(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...qt(this.$_referenceNode),...qt(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n<V.length;n++)t=V[n],t.showGroup!==e&&(t.hide(),t.$emit(`close-group`))}V.push(this),document.body.classList.add(`v-popper--some-open`);for(let e of no(this.theme))po(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit(`apply-show`),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await lo(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(this.$_scheduleTimer&&clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,co(V,this),V.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of no(this.theme)){let t=po(e);co(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}uo===this&&(uo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),this.$_disposeTimer&&clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await lo(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: ${this.container}`);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{(!this.isShown||this.$_hideInProgress)&&(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,oo,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],oo,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,so,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],so,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,ro?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(To>=e.left&&To<=e.right&&Eo>=e.top&&Eo<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=To-wo,n=Eo-U,r=e.left+e.width/2-wo+(e.top+e.height/2)-U+e.width+e.height,i=wo+t*r,a=U+n*r;return Do(wo,U,i,a,e.left,e.top,e.left,e.bottom)||Do(wo,U,i,a,e.left,e.top,e.right,e.top)||Do(wo,U,i,a,e.right,e.top,e.right,e.bottom)||Do(wo,U,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(io){let e=!ro||{passive:!0,capture:!0};document.addEventListener(`touchstart`,e=>_o(e,!0),e),document.addEventListener(`touchend`,e=>vo(e,!0),e)}else window.addEventListener(`mousedown`,e=>_o(e,!1),!0),window.addEventListener(`click`,e=>vo(e,!1),!0);window.addEventListener(`resize`,So)}function _o(e,t){if(B.autoHideOnMousedown)yo(e,t);else for(let t=0;t<V.length;t++){let n=V[t];try{n.mouseDownContains=n.popperNode().contains(e.target)}catch{}}}function vo(e,t){B.autoHideOnMousedown||yo(e,t)}function yo(e,t){let n={};for(let r=V.length-1;r>=0;r--){let i=V[r];try{let r=Array.from(i.shownChildren).some(t=>{let n=V.find(e=>e.randomId===t);return n&&n.popperNode().contains(e.target)}),a=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target)||r;i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&bo(i,a,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&a){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let r=i.parentPopper;for(;r&&bo(r,r.containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper}})}catch{}}}function bo(e,t,n){return n.closeAllPopover||n.closePopover&&t||xo(e,n)&&!t}function xo(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function So(){for(let e=0;e<V.length;e++)V[e].$_computePosition()}function Co(){for(let e=0;e<V.length;e++)V[e].hide()}var wo=0,U=0,To=0,Eo=0;typeof window<`u`&&window.addEventListener(`mousemove`,e=>{wo=To,U=Eo,To=e.clientX,Eo=e.clientY},ro?{passive:!0}:void 0);function Do(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var Oo=f({extends:go(),render(){var e;return c(`div`,{ref:`reference`,class:[`v-popper`,{"v-popper--shown":this.slotData.isShown}]},(e=this.$slots).default?.call(e,this.slotData))}}),ko=(e=`theme`)=>({computed:{themeClass(){return to(this[e])}}}),Ao=f({name:`VPopperContent`,mixins:[ko()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],mounted(){this.handleResize&&(this.$_resizeObserver=new ResizeObserver(()=>this.$emit(`resize`)),this.$_resizeObserver.observe(this.$refs.inner))},beforeUnmount(){var e;(e=this.$_resizeObserver)==null||e.disconnect()},methods:{toPx(e){return e!=null&&!Number.isNaN(e)?`${e}px`:null}},render(){var e;let{autoHide:t,classes:n,result:r,shown:i}=this;return c(`div`,{id:this.popperId,ref:`popover`,"data-allow-mismatch":``,class:[`v-popper__popper`,this.themeClass,n.popperClass,{"v-popper__popper--shown":i,"v-popper__popper--hidden":!i,"v-popper__popper--show-from":n.showFrom,"v-popper__popper--show-to":n.showTo,"v-popper__popper--hide-from":n.hideFrom,"v-popper__popper--hide-to":n.hideTo,"v-popper__popper--skip-transition":this.skipTransition,"v-popper__popper--arrow-overflow":r&&r.arrow.overflow,"v-popper__popper--no-positioning":!r}],style:r?{position:r.strategy,transform:`translate3d(${Math.round(r.x)}px,${Math.round(r.y)}px,0)`}:void 0,"aria-hidden":i||t?`false`:`true`,tabindex:t?0:void 0,"data-popper-placement":r?r.placement:void 0,onKeyup:e=>{e.key===`Escape`&&t&&this.$emit(`hide`)}},[c(`div`,{class:`v-popper__backdrop`,onClick:()=>t&&this.$emit(`hide`)}),c(`div`,{class:`v-popper__wrapper`,style:r?{transformOrigin:r.transformOrigin}:void 0},[c(`div`,{ref:`inner`,class:`v-popper__inner`},this.mounted?[c(`div`,(e=this.$slots).default?.call(e))]:void 0),c(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:r?{left:this.toPx(r.arrow.x),top:this.toPx(r.arrow.y)}:void 0},[c(`div`,{class:`v-popper__arrow-outer`}),c(`div`,{class:`v-popper__arrow-inner`})])])])}}),jo={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},Mo=function(){};typeof window<`u`&&(Mo=window.Element);var No=f({name:`VPopperWrapper`,mixins:[jo,ko(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Mo,Boolean],default:void 0},boundary:{type:[String,Mo],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}},render(){return c(Oo,{ref:`popper`,...this.$props,theme:this.finalTheme,targetNodes:this.getTargetNodes,popperNode:()=>this.$refs.popperContent.$el,class:[this.themeClass],onShow:()=>this.$emit(`show`),onHide:()=>this.$emit(`hide`),"onUpdate:shown":e=>this.$emit(`update:shown`,e),onApplyShow:()=>this.$emit(`apply-show`),onApplyHide:()=>this.$emit(`apply-hide`),onCloseGroup:()=>this.$emit(`close-group`),onCloseDirective:()=>this.$emit(`close-directive`),onAutoHide:()=>this.$emit(`auto-hide`),onResize:()=>this.$emit(`resize`)},{default:({popperId:e,isShown:t,shouldMountContent:n,skipTransition:r,autoHide:i,show:a,hide:o,handleResize:s,onResize:l,classes:u,result:d})=>{var f;return[(f=this.$slots).default?.call(f,{shown:t,show:a,hide:o}),c(Ao,{ref:`popperContent`,popperId:e,theme:this.finalTheme,shown:t,mounted:n,skipTransition:r,autoHide:i,handleResize:s,classes:u,result:d,onHide:o,onResize:l},{default:()=>{var e;return(e=this.$slots).popper?.call(e,{shown:t,hide:o})}})]}})}});function Po(e,t){return{...No,name:e,vPopperTheme:t}}var Fo=Po(`VDropdown`,`dropdown`),Io=Po(`VMenu`,`menu`),Lo=Po(`VTooltip`,`tooltip`),Ro=go(),zo=f({name:`VTooltipDirective`,mixins:[jo],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>eo(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>eo(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}},render(){return c(Ro,{ref:`popper`,...this.$attrs,theme:this.theme,targetNodes:this.targetNodes,popperNode:()=>this.$refs.popperContent.$el,onApplyShow:this.onShow,onApplyHide:this.onHide},{default:({popperId:e,isShown:t,shouldMountContent:n,skipTransition:r,autoHide:i,hide:a,handleResize:o,onResize:s,classes:l,result:u})=>c(Ao,{ref:`popperContent`,class:{"v-popper--tooltip-loading":this.loading},popperId:e,theme:this.theme,shown:t,mounted:n,skipTransition:r,autoHide:i,handleResize:o,classes:l,result:u,onHide:a,onResize:s},{default:()=>this.html?c(`div`,{innerHTML:this.finalContent}):c(`div`,{textContent:this.finalContent})})})}}),Bo=`v-popper--has-tooltip`;function Vo(e,t){let n=e.placement;if(!n&&t)for(let e of ao)t[e]&&(n=e);return n||=eo(e.theme||`tooltip`,`placement`),n}function Ho(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=Vo(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var Uo,Wo,Go=0;function Ko(){if(Uo)return;Wo=A([]),Uo=qe({name:`VTooltipDirectiveApp`,setup(){return{directives:Wo}},render(){return this.directives.map(e=>c(zo,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),Uo.mount(e)}function qo(e,t,n){Ko();let r=A(Ho(e,t,n)),i=A(!1),a={id:Go++,options:r,shown:i};return Wo.value.push(a),e.classList&&e.classList.add(Bo),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function Jo(e){if(e.$_popper){let t=Wo.value.indexOf(e.$_popper.item);t!==-1&&Wo.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Bo)}function Yo(e,{value:t,modifiers:n}){let r=Ho(e,t,n);if(!r.content||eo(r.theme||`tooltip`,`disabled`))Jo(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=qo(e,t,n),t.shown!==void 0&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var Xo={beforeMount:Yo,updated:Yo,beforeUnmount(e){Jo(e)}};function Zo(e){e.addEventListener(`mousedown`,$o),e.addEventListener(`click`,$o),e.addEventListener(`touchstart`,es,ro?{passive:!0}:!1)}function Qo(e){e.removeEventListener(`mousedown`,$o),e.removeEventListener(`click`,$o),e.removeEventListener(`touchstart`,es),e.removeEventListener(`touchend`,ts),e.removeEventListener(`touchcancel`,ns)}function $o(e){let t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function es(e){if(e.changedTouches.length===1){let t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener(`touchend`,ts),t.addEventListener(`touchcancel`,ns)}}function ts(e){let t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){let n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function ns(e){let t=e.currentTarget;t.$_vclosepopover_touch=!1}var rs={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(t===void 0||t)&&Zo(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(t===void 0||t?Zo(e):Qo(e))},beforeUnmount(e){Qo(e)}};function is(e,t={}){if(!e.$_vTooltipInstalled){e.$_vTooltipInstalled=!0,$a(B,t),e.directive(`tooltip`,Xo),e.directive(`close-popper`,rs);for(let t of[Lo,Fo,Io])e.component(t.name,t)}}var as={version:Qa,install:is,options:B};function os(e){e.use(as,{overflowPadding:20})}var ss=[Ei,Va,Ha,Ua,Ga,Ka,qa,Ja,Xa,Za,M(e=>{os(e.vueApp)})],cs={viewBox:`0 0 1053 86`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:`banner-devtools`},ls=f({__name:`BannerViteDevTools`,setup(e){return(e,t)=>(E(),y(`svg`,cs,[...t[0]||=[de(`<g clip-path="url(#clip0_3_25)"><path d="M32.087 10.9L49.292 57.772L66.218 10.9H89.375L63.707 76H33.947L8.279 10.9H32.087ZM97.094 76V10.9H119.414V76H97.094ZM152.569 76V26.896H127.552V10.9H199.906V26.896H174.889V76H152.569ZM208.076 76V10.9H272.339V26.71H230.396V35.452H271.688V50.797H230.396V60.19H273.548V76H208.076Z" fill="currentColor"></path><path d="M294.792 9.89331C281.775 28.5257 281.698 57.4071 294.792 76.1065H303.586C290.496 57.4071 290.572 28.5257 303.586 9.89331H294.792Z" fill="currentColor"></path><path d="M383.128 9.89314H374.333C387.35 28.5255 387.426 57.4069 374.333 76.1064H383.128C396.218 57.4069 396.142 28.5255 383.128 9.89314Z" fill="currentColor"></path><path d="M406.719 77V11.9H447.639C470.238 11.9 483.165 22.223 483.165 44.45C483.165 66.77 470.145 77 447.546 77H406.719ZM460.287 44.45C460.287 32.267 455.079 27.71 444.477 27.71H429.039V61.19H444.477C455.079 61.19 460.287 56.633 460.287 44.45ZM494.542 77V11.9H558.805V27.71H516.862V36.452H558.154V51.797H516.862V61.19H560.014V77H494.542ZM588.198 11.9L605.403 58.772L622.329 11.9H645.486L619.818 77H590.058L564.39 11.9H588.198ZM673.624 77V27.896H648.607V11.9H720.961V27.896H695.944V77H673.624ZM764.891 78.116C737.456 78.116 723.134 66.584 723.134 44.45C723.134 22.316 737.456 10.784 764.891 10.784C792.326 10.784 806.741 22.316 806.741 44.45C806.741 66.584 792.326 78.116 764.891 78.116ZM764.891 62.027C777.818 62.027 783.863 56.54 783.863 44.45C783.863 32.267 777.818 26.78 764.891 26.78C751.964 26.78 745.919 32.267 745.919 44.45C745.919 56.54 751.964 62.027 764.891 62.027ZM855.802 78.116C828.367 78.116 814.045 66.584 814.045 44.45C814.045 22.316 828.367 10.784 855.802 10.784C883.237 10.784 897.652 22.316 897.652 44.45C897.652 66.584 883.237 78.116 855.802 78.116ZM855.802 62.027C868.729 62.027 874.774 56.54 874.774 44.45C874.774 32.267 868.729 26.78 855.802 26.78C842.875 26.78 836.83 32.267 836.83 44.45C836.83 56.54 842.875 62.027 855.802 62.027ZM908.955 77V11.9H931.275V60.725H970.242V77H908.955ZM1011.9 78.116C985.302 78.116 974.049 71.234 974.049 55.238V55.145H996.648V55.238C996.648 60.632 1000.27 63.515 1011.9 63.515C1023.9 63.515 1026.69 61.283 1026.69 57.842C1026.69 54.773 1024.64 53.378 1020.18 53.006L1001.2 51.518C981.117 49.937 974.979 43.799 974.979 32.081C974.979 17.945 987.255 10.784 1012.27 10.784C1037.85 10.784 1048.17 17.387 1048.17 32.639V32.825H1025.94V32.639C1025.94 27.245 1022.59 25.199 1011.9 25.199C1000.65 25.199 997.206 27.245 997.206 30.872C997.206 34.034 999.717 35.243 1005.58 35.708L1024.36 37.103C1042.03 38.405 1049.29 44.078 1049.29 56.261C1049.29 70.304 1038.78 78.116 1011.9 78.116Z" fill="currentColor"></path><path d="M341.534 73.5459C340.625 74.7024 338.767 74.0592 338.767 72.59V58.4788C338.767 56.7677 337.38 55.3811 335.669 55.3811H320.089C318.829 55.3811 318.094 53.9561 318.829 52.9323L329.072 38.5911C330.538 36.5405 329.072 33.6906 326.55 33.6906H307.695C306.435 33.6906 305.7 32.2657 306.435 31.242L319.714 12.6493C320.006 12.2422 320.475 12.0002 320.974 12.0002H360.546C361.806 12.0002 362.54 13.4252 361.806 14.449L351.562 28.7902C350.096 30.8407 351.562 33.6906 354.085 33.6906H369.665C370.957 33.6906 371.683 35.1806 370.884 36.1984L341.537 73.5488L341.534 73.5459Z" fill="#9135FF"></path><mask id="mask0_3_25" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="306" y="12" width="66" height="63"><path d="M341.392 73.5457C340.483 74.7021 338.624 74.059 338.624 72.5897V58.4787C338.624 56.7674 337.238 55.3808 335.527 55.3808H319.946C318.686 55.3808 317.952 53.9558 318.686 52.9321L328.93 38.5908C330.396 36.5404 328.93 33.6904 326.407 33.6904H307.552C306.292 33.6904 305.558 32.2655 306.292 31.2417L319.572 12.6491C319.864 12.2419 320.333 12 320.831 12H360.403C361.663 12 362.398 13.425 361.663 14.4487L351.42 28.79C349.953 30.8404 351.42 33.6904 353.942 33.6904H369.523C370.815 33.6904 371.541 35.1803 370.741 36.1982L341.395 73.5485L341.392 73.5457Z" fill="black"></path></mask><g mask="url(#mask0_3_25)"><g filter="url(#filter0_f_3_25)"><path d="M340.18 62.5759C340.194 66.7421 331.189 70.1487 320.066 70.1847C308.944 70.2208 299.917 66.8726 299.904 62.7064C299.89 58.5402 308.895 55.1336 320.017 55.0976C331.14 55.0615 340.167 58.4097 340.18 62.5759Z" fill="#EEE6FF"></path></g><g filter="url(#filter1_f_3_25)"><path d="M333.95 36.7736C333.976 44.6397 315.692 51.0757 293.113 51.1489C270.534 51.222 252.209 44.9047 252.184 37.0387C252.158 29.1726 270.442 22.7366 293.021 22.6634C315.6 22.5902 333.925 28.9076 333.95 36.7736Z" fill="#EEE6FF"></path></g><g filter="url(#filter2_f_3_25)"><path d="M334.109 34.778C334.122 38.9442 315.44 42.3822 292.38 42.4569C269.32 42.5317 250.615 39.2149 250.602 35.0487C250.588 30.8825 269.271 27.4446 292.331 27.3698C315.391 27.2951 334.095 30.6118 334.109 34.778Z" fill="#8900FF"></path></g><g filter="url(#filter3_f_3_25)"><path d="M340.708 59.4281C340.722 63.5943 321.971 67.0325 298.826 67.1075C275.682 67.1825 256.909 63.866 256.895 59.6998C256.882 55.5336 275.633 52.0954 298.777 52.0204C321.922 51.9454 340.695 55.2619 340.708 59.4281Z" fill="#8900FF"></path></g><g filter="url(#filter4_f_3_25)"><path d="M342.807 61.0016C342.82 65.1678 324.069 68.606 300.925 68.681C277.781 68.756 259.007 65.4395 258.994 61.2733C258.98 57.1071 277.732 53.6689 300.876 53.5939C324.02 53.5189 342.793 56.8354 342.807 61.0016Z" fill="#8900FF"></path></g><g filter="url(#filter5_f_3_25)"><path d="M348.58 26.0173C349.202 15.392 363.221 7.56971 379.892 8.54583C396.563 9.52195 409.574 18.9268 408.952 29.5521C408.33 40.1775 394.311 47.9997 377.639 47.0236C360.968 46.0475 347.958 36.6426 348.58 26.0173Z" fill="#EEE6FF"></path></g><g filter="url(#filter6_f_3_25)"><path d="M350.839 33.0047C350.793 30.3802 363.938 28.0245 380.199 27.7432C396.459 27.4619 409.678 29.3614 409.723 31.986C409.769 34.6105 396.624 36.9662 380.363 37.2475C364.102 37.5288 350.884 35.6293 350.839 33.0047Z" fill="#8900FF"></path></g><g filter="url(#filter7_f_3_25)"><path d="M350.839 33.0047C350.793 30.3802 363.938 28.0245 380.199 27.7432C396.459 27.4619 409.678 29.3614 409.723 31.986C409.769 34.6105 396.624 36.9662 380.363 37.2475C364.102 37.5288 350.884 35.6293 350.839 33.0047Z" fill="#8900FF"></path></g><g filter="url(#filter8_f_3_25)"><path d="M281.167 55.0432C283.739 57.1638 297.179 45.113 311.186 28.1269C325.193 11.1408 334.464 -4.34828 331.892 -6.46889C329.321 -8.5895 315.881 3.46136 301.874 20.4475C287.866 37.4336 278.596 52.9226 281.167 55.0432Z" fill="#8900FF"></path></g><g filter="url(#filter9_f_3_25)"><path d="M346.601 35.117C349.232 37.1642 362.326 24.7387 375.848 7.36381C389.37 -10.011 398.2 -25.7557 395.569 -27.8028C392.939 -29.85 379.845 -17.4244 366.323 -0.0495851C352.8 17.3253 343.971 33.0699 346.601 35.117Z" fill="#8900FF"></path></g><g filter="url(#filter10_f_3_25)"><path d="M354.587 31.1204C358.151 33.8946 364.681 31.4665 369.171 25.6972C373.661 19.9279 374.411 13.0021 370.846 10.228C367.282 7.45385 360.753 9.88193 356.262 15.6512C351.772 21.4205 351.022 28.3463 354.587 31.1204Z" fill="#00C2FF"></path></g><g filter="url(#filter11_f_3_25)"><path d="M278.942 95.9583C281.573 98.0054 294.667 85.5799 308.189 68.2051C321.711 50.8302 330.541 35.0856 327.91 33.0384C325.28 30.9913 312.186 43.4168 298.664 60.7917C285.141 78.1665 276.312 93.9111 278.942 95.9583Z" fill="#8900FF"></path></g><g filter="url(#filter12_f_3_25)"><path d="M278.942 95.9583C281.573 98.0054 294.667 85.5799 308.189 68.2051C321.711 50.8302 330.541 35.0856 327.91 33.0384C325.28 30.9913 312.186 43.4168 298.664 60.7917C285.141 78.1665 276.312 93.9111 278.942 95.9583Z" fill="#8900FF"></path></g><g filter="url(#filter13_f_3_25)"><path d="M330.342 84.4194C332.973 86.4665 346.067 74.041 359.589 56.6661C373.111 39.2913 381.941 23.5466 379.311 21.4995C376.68 19.4523 363.586 31.8779 350.064 49.2527C336.542 66.6276 327.712 82.3722 330.342 84.4194Z" fill="#8900FF"></path></g><g filter="url(#filter14_f_3_25)"><path d="M345.748 72.9077C349.313 75.6818 357.963 70.5283 365.07 61.397C372.176 52.2657 375.048 42.6144 371.483 39.8403C367.919 37.0662 359.268 42.2197 352.162 51.351C345.055 60.4823 342.184 70.1335 345.748 72.9077Z" fill="#00C2FF"></path></g></g></g><defs><filter id="filter0_f_3_25" x="278.924" y="34.1176" width="82.2362" height="57.0471" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="10.4899" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter1_f_3_25" x="231.204" y="1.68307" width="123.726" height="70.4461" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="10.4899" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter2_f_3_25" x="238.014" y="14.7807" width="108.683" height="40.2653" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter3_f_3_25" x="244.307" y="39.4313" width="108.989" height="40.2653" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter4_f_3_25" x="246.406" y="41.0048" width="108.989" height="40.2653" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter5_f_3_25" x="327.579" y="-12.5161" width="102.374" height="80.6017" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="10.4899" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter6_f_3_25" x="338.251" y="15.1277" width="84.0606" height="34.7352" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter7_f_3_25" x="338.251" y="15.1277" width="84.0606" height="34.7352" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter8_f_3_25" x="268.151" y="-19.2987" width="76.7577" height="87.1718" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter9_f_3_25" x="333.55" y="-40.6113" width="75.0711" height="88.5369" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter10_f_3_25" x="339.748" y="-3.50744" width="45.9371" height="48.3633" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter11_f_3_25" x="265.891" y="20.2299" width="75.0711" height="88.5369" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter12_f_3_25" x="265.891" y="20.2299" width="75.0711" height="88.5369" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter13_f_3_25" x="317.291" y="8.69097" width="75.0711" height="88.5369" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><filter id="filter14_f_3_25" x="331.629" y="26.5018" width="53.9728" height="59.7445" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="6.29392" result="effect1_foregroundBlur_3_25"></feGaussianBlur></filter><clipPath id="clip0_3_25"><rect width="1053" height="86" fill="white"></rect></clipPath></defs>`,2)]]))}}),us={class:`p10 h-full flex flex-col items-center justify-center`},ds={class:`flex gap-2 animate-pulse items-center justify-center`},fs=f({__name:`VisualLoading`,props:{text:{}},setup(e){return(t,n)=>(E(),y(`div`,us,[h(t.$slots,`banner`),v(`div`,ds,[n[0]||=v(`div`,{class:`i-svg-spinners-8-dots-rotate`},null,-1),v(`span`,null,ve(e.text??`Loading...`),1)])]))}}),ps=Object.assign(f({__name:`Loading`,props:{text:{}},setup(e){return(n,r)=>(E(),t(fs,{text:e.text},{banner:fe(()=>[ue(ls)]),_:1},8,[`text`]))}}),{__name:`VisualLoading`}),ms=(e=`RouteProvider`)=>f({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean,routeRecord:Object},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return w(wt,Oe(r)),()=>e.vnode?c(e.vnode,{ref:e.vnodeRef}):e.vnode}}),hs=ms(),gs=new WeakMap,_s=f({name:`NuxtPage`,inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=le(),a=A(),o=_(wt,null),l=new Set,u;r({pageRef:a});let d=_(St,null),f,p=i.deferHydration(),m=!1,h=!1,g,v=0;if(i.isHydrating){let e=i.hooks.hookOnce(`app:error`,p),t=Lt().beforeEach(()=>{e(),t()})}e.pageKey&&ye(()=>e.pageKey,(e,t)=>{e!==t&&i.callHook(`page:loading:start`)});let y=!1;{let e=Lt().beforeResolve(()=>{y=!1});S(()=>{e(),p()})}return()=>c(ga,{name:e.name,route:e.route,...t},{default:bs(t=>{let r=vs(o,t.route,t.Component),_=o&&o.matched.length===t.route.matched.length;if(!t.Component){if(f&&!_&&!Ss(f))return f;p();return}if(f&&d&&!Ss(f)&&!d.isCurrent(t.route))return f;if(r&&o&&(!d||d?.isCurrent(o)))return(_||f)&&!Ss(f)?f:null;let b=ji(t,e.pageKey),x=ys(o,t.route,t.Component);!i.isHydrating&&u===b&&!x&&s(()=>{y||(y=!0,i.callHook(`page:loading:end`))}),m&&u!==b&&h&&v++,u=b;let S=!!(e.transition??t.route.meta.pageTransition??!1),C=S&&rt([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){i[`~transitionFinish`]?.(),delete i[`~transitionFinish`],delete i[`~transitionPromise`],i.callHook(`page:transition:finish`,t.Component)}}]),w=e.keepalive??t.route.meta.keepalive??!1,T=t.Component.type,E=T.name||T.__name;t.route.meta.keepalive&&E&&l.add(E);let D;if(l.size>0&&e.keepalive==null&&(!w||typeof w==`object`&&w&&w.include)){let e=typeof w==`object`&&w?{...w}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];D={...e,include:Array.from(new Set([...t,...l]))}}else D=w;return f=dt(S&&C,Mi(D,c(we,{key:v,suspensible:!0,onPending:()=>{m=!0,S&&!i[`~transitionPromise`]&&(i[`~transitionPromise`]=new Promise(e=>{i[`~transitionFinish`]=e})),g=i.callHook(`page:start`,t.Component)},onResolve:async()=>{m=!1,h=!0,i.isHydrating&&i[`~restoreDeferredRoute`]?.();try{await s(),i._route.sync?.(),await g,await i.callHook(`page:finish`,t.Component),!y&&!x&&(y=!0,await i.callHook(`page:loading:end`))}finally{p()}}},{default:()=>{let e={key:b||void 0,vnode:n.default?xs(n.default,t):t.Component,route:t.route,renderKey:b||void 0,trackRootNodes:S,vnodeRef:a,routeRecord:void 0};if(!D)return c(hs,e);let r=T,i=gs.get(r);return i||(i=ms(E),gs.set(r,i)),c(i,e)}}))).default(),f})})}});function vs(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);if(r===-1)return!1;let i=t.matched.slice(0,r).filter(e=>e.components?.default);if(!i.length)return!1;let a=e.matched.filter(e=>e.components?.default);return i.some((e,t)=>e.components?.default!==a[t]?.components?.default)||n&&ji({route:t,Component:n})!==ji({route:e,Component:n})}function ys(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function bs(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!Ae(n)?[Ee()]:[n]});return t._n=!0,t}function xs(e,t){let n=e(t);return n.length===1?c(n[0]):c(se,void 0,n)}function Ss(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var Cs=0,ws=Te(new Map),Ts=N(()=>Array.from(ws.values()).flat());function Es(e){let t=De(e),n=()=>{};function r(e){n();let t=Cs++;ws.set(t,e),n=()=>{ws.delete(t)}}return ye(t,e=>{r(e)},{immediate:!0}),k(()=>{n()}),()=>{n()}}var Ds={class:`w12 flex-none`},Os={class:`border-r border-y border-base rounded-r-xl flex flex-col gap-1 p1 of-y-auto max-h-96vh bg-glass:80`,style:{position:`fixed`,left:`0`,top:`50%`,transform:`translateY(-50%)`,"z-index":`64`}},ks=f({__name:`PanelSideNav`,props:{items:{}},setup(e){let n=e,r=N(()=>n.items??Ts.value);return(e,n)=>{let i=oe(`tooltip`);return E(),y(`div`,Ds,[(E(),t(ke,{to:`body`},[v(`div`,Os,[(E(!0),y(se,null,O(r.value,e=>Ce((E(),t(xe(e.to?p(gt):`button`),x({key:e.title,ref_for:!0},e.to?{to:e.to}:{type:`button`},{title:e.title,"aria-label":e.title,class:`rounded-full p2 hover:bg-active op-fade hover:op100 flex items-center justify-center`,"exact-active-class":`text-primary op100!`,onClick:t=>e.action?.()}),{default:fe(()=>[v(`div`,{class:C([e.icon,`text-lg`])},null,2)]),_:2},1040,[`title`,`aria-label`,`onClick`])),[[i,{placement:`right`,content:e.title}]])),128))])]))])}}}),As=e({docsBase:T,reporters:ee});function js(e){let t=e||le();return t.ssrContext?.head||t.runWithContext(()=>{if(u()){let e=_(`usehead`);if(!e)throw As.NUXT_E6001();return e}})}function Ms(e,t={}){return bi(e,{head:t.head||js(t.nuxt),...t})}function Ns(e,t={}){return Ci(e,{head:t.head||js(t.nuxt),...t})}var Ps=/^[\w+.-]{2,}:\/\//;function Fs(e){return e.endsWith(`/`)?e:`${e}/`}function Is(e){return(e.endsWith(`/`)?e.slice(0,-1):e)||`/`}function Ls(e,...t){let n=e;for(let e of t)e&&e!==`/`&&(n=n?Fs(n)+e.replace(/^\.?\//,``):e);return n}function Rs(e,t){if(!t||t===`/`||Ps.test(e))return e;let n=Is(t);return e.startsWith(n)?e:Ls(n,e)}function zs(e,t){let n=e.match(Ps);return t+(n?e.slice(n[0].length):e)}function W(e,t){let n=`\x1B[${e}m`,r=`\x1B[${t}m`;return((e,...t)=>{if(Array.isArray(e)&&`raw`in e){let i=e,a=``;for(let e=0;e<i.length;e++)a+=i[e],e<t.length&&(a+=String(t[e]));return`${n}${a}${r}`}return`${n}${String(e)}${r}`})}var Bs={blue:W(34,39),cyan:W(36,39),gray:W(90,39),green:W(32,39),red:W(31,39),yellow:W(33,39),bold:W(1,22),dim:W(2,22),reset:W(0,0),underline:W(4,24)},G={bus:{agentManifestChanged:`agent:manifest:changed`,agentToolRegistered:`agent:tool:registered`,agentToolUnregistered:`agent:tool:unregistered`,agentResourceRegistered:`agent:resource:registered`,agentResourceUnregistered:`agent:resource:unregistered`},client:{isTrustedUpdated:`rpc:is-trusted:updated`,error:`rpc:error`,connectionStatus:`connection:status`,connectionError:`connection:error`},broadcast:{authRevoked:`devframe:auth:revoked`,cacheInvalidate:`devframe:rpc:cache:invalidate`,clientStateUpdated:`devframe:rpc:client-state:updated`,clientStatePatch:`devframe:rpc:client-state:patch`,streamingChunk:`devframe:streaming:chunk`,streamingEnd:`devframe:streaming:end`,streamingUploadCancel:`devframe:streaming:upload-cancel`},inPageChannel:{panelStateUpdated:`devframe:in-page:panel-state:updated`,panelStatePatch:`devframe:in-page:panel-state:patch`},postMessage:{remoteAssetsError:`devframe:remote-assets-error`,inPageChannel:`devframe:in-page-channel`}},Vs=en(Bs);function Hs(e,{method:t=`warn`}={}){console[t](Vs(e))}function Us(e){return g({...e,reporters:[Hs,...e.reporters??[]]})}function Ws(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Gs=Math.random.bind(Math),Ks=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function qs(e=21){let t=``,n=e;for(;n--;)t+=Ks[Gs()*64|0];return t}var Js=6e4,Ys=e=>e,Xs=Ys,{clearTimeout:Zs,setTimeout:Qs}=globalThis;function $s(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Ys,deserialize:s=Xs,resolver:c,bind:l=`rpc`,timeout:u=Js,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=Ws(),_=qs();s.i=_;let v;async function y(n=s){return u>=0&&(v=Qs(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{Zs(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(Zs(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function ec(e,t){return t.safety?t.safety:e===`static`||e===`query`||e==null?`read`:`action`}var tc=Object.freeze({type:`object`,additionalProperties:!0});function nc(e){let t=e[`~standard`];if(t.jsonSchema)try{return t.jsonSchema.input({target:`draft-2020-12`})}catch{return tc}return tc}function rc(e){if(!e||e.length===0)return{type:`object`,properties:{}};let t={},n=[];for(let r=0;r<e.length;r++){let i=`arg${r}`;t[i]=nc(e[r]),n.push(i)}return{type:`object`,properties:t,required:n,additionalProperties:!1}}function ic(e,t){if(Array.isArray(e))return e;if(e==null)return[];if(typeof e!=`object`)return;let n=e;if(t!=null)return Array.from({length:t},(e,t)=>n[`arg${t}`]);if(`arg0`in n){let e=[];for(;`arg${e.length}`in n;)e.push(n[`arg${e.length}`]);return e}return Object.keys(n).length===0?[]:void 0}function ac(e,t){return ic(e,t)??[e]}function oc(e){return typeof e==`string`?`'${e}'`:new uc().serialize(e)}var sc=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,cc=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[sc.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function lc(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&cc[n]?cc[n]:n+128,s=a<128&&cc[a]?cc[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var uc=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?lc(e,t):n===`number`&&r===`number`?e-t:lc(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(lc),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})(),dc=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],fc=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],pc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,mc=[],hc=class{_data=new gc;_hash=new gc([...dc]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)mc[n]=e[t+n]|0;else{let e=mc[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=mc[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;mc[n]=t+mc[n-7]+i+mc[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+fc[n]+mc[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=gc.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new gc(t,i)}},gc=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(pc.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function _c(e){return new hc().finalize(e).toBase64()}function vc(e){return _c(oc(e))}function yc(e){return vc(e)}function bc(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var xc=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Sc(e=21){let t=``,n=e;for(;n--;)t+=xc[Math.random()*64|0];return t}var Cc=Symbol.for(`immer-nothing`),wc=Symbol.for(`immer-draftable`),K=Symbol.for(`immer-state`),Tc=[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},`This object has been frozen and should not be mutated`,function(e){return`Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? `+e},`An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.`,`Immer forbids circular references`,"The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},`Object.defineProperty() cannot be used on an Immer draft`,`Object.setPrototypeOf() cannot be used on an Immer draft`,`Immer only supports deleting array indices`,`Immer only supports setting array indices and the 'length' property`,function(e){return`'original' expects a draft, got: ${e}`}];function q(e,...t){{let n=Tc[e],r=Gc(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var J=Object,Ec=J.getPrototypeOf,Dc=`constructor`,Oc=`prototype`,kc=`configurable`,Ac=`enumerable`,jc=`writable`,Mc=`value`,Y=e=>!!e&&!!e[K];function X(e){return e?Fc(e)||Vc(e)||!!e[wc]||!!e[Dc]?.[wc]||Hc(e)||Uc(e):!1}var Nc=J[Oc][Dc].toString(),Pc=new WeakMap;function Fc(e){if(!e||!Wc(e))return!1;let t=Ec(e);if(t===null||t===J[Oc])return!0;let n=J.hasOwnProperty.call(t,Dc)&&t[Dc];if(n===Object)return!0;if(!Gc(n))return!1;let r=Pc.get(n);return r===void 0&&(r=Function.toString.call(n),Pc.set(n,r)),r===Nc}function Ic(e,t,n=!0){Lc(e)===0?(n?Reflect.ownKeys(e):J.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Lc(e){let t=e[K];return t?t.type_:Vc(e)?1:Hc(e)?2:Uc(e)?3:0}var Rc=(e,t,n=Lc(e))=>n===2?e.has(t):J[Oc].hasOwnProperty.call(e,t),Z=(e,t,n=Lc(e))=>n===2?e.get(t):e[t],zc=(e,t,n,r=Lc(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Bc(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Vc=Array.isArray,Hc=e=>e instanceof Map,Uc=e=>e instanceof Set,Wc=e=>typeof e==`object`,Gc=e=>typeof e==`function`,Kc=e=>typeof e==`boolean`;function qc(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Jc=e=>Wc(e)?e?.[K]:null,Q=e=>e.copy_||e.base_,Yc=e=>e.modified_?e.copy_:e.base_;function Xc(e,t){if(Hc(e))return new Map(e);if(Uc(e))return new Set(e);if(Vc(e))return Array[Oc].slice.call(e);let n=Fc(e);if(t===!0||t===`class_only`&&!n){let t=J.getOwnPropertyDescriptors(e);delete t[K];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[jc]===!1&&(a[jc]=!0,a[kc]=!0),(a.get||a.set)&&(t[i]={[kc]:!0,[jc]:!0,[Ac]:a[Ac],[Mc]:e[i]})}return J.create(Ec(e),t)}{let t=Ec(e);if(t!==null&&n)return{...e};let r=J.create(t);return J.assign(r,e)}}function Zc(e,t=!1){return el(e)||Y(e)||!X(e)||(Lc(e)>1&&J.defineProperties(e,{set:$c,add:$c,clear:$c,delete:$c}),J.freeze(e),t&&Ic(e,(e,t)=>{Zc(t,!0)},!1)),e}function Qc(){q(2)}var $c={[Mc]:Qc};function el(e){return e===null||!Wc(e)||J.isFrozen(e)}var tl=`MapSet`,nl=`Patches`,rl=`ArrayMethods`,il={};function al(e){let t=il[e];return t||q(0,e),t}var ol=e=>!!il[e];function sl(e,t){il[e]||(il[e]=t)}var cl,ll=()=>cl,ul=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ol(tl)?al(tl):void 0,arrayMethodsPlugin_:ol(rl)?al(rl):void 0});function dl(e,t){t&&(e.patchPlugin_=al(nl),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function fl(e){pl(e),e.drafts_.forEach(hl),e.drafts_=null}function pl(e){e===cl&&(cl=e.parent_)}var ml=e=>cl=ul(cl,e);function hl(e){let t=e[K];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function gl(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[K].modified_&&(fl(t),q(4)),X(e)&&(e=_l(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[K].base_,e,t)}else e=_l(t,n);return vl(t,e,!0),fl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Cc?void 0:e}function _l(e,t){if(el(t))return t;let n=t[K];if(!n)return El(t,e.handledSet_,e);if(!bl(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);wl(n,e)}return n.copy_}function vl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Zc(t,n)}function yl(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var bl=(e,t)=>e.scope_===t,xl=[];function Sl(e,t,n,r){let i=Q(e),a=e.type_;if(r!==void 0&&Z(i,r,a)===t){zc(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Ic(i,(e,n)=>{if(Y(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??xl;for(let e of o)zc(i,e,n,a)}function Cl(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!bl(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Yc(i);Sl(e,i.draft_??i,a,n),wl(i,r)})}function wl(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}yl(e)}}function Tl(e,t,n){let{scope_:r}=e;if(Y(n)){let i=n[K];bl(i,r)&&i.callbacks_.push(function(){Fl(e),Sl(e,n,Yc(i),t)})}else X(n)&&e.callbacks_.push(function(){let i=Q(e);e.type_===3?i.has(n)&&El(n,r.handledSet_,r):Z(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&El(Z(e.copy_,t,e.type_),r.handledSet_,r)})}function El(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Y(e)||t.has(e)||!X(e)||el(e)||(t.add(e),Ic(e,(r,i)=>{if(Y(i)){let t=i[K];bl(t,n)&&(zc(e,r,Yc(t),e.type_),yl(t))}else X(i)&&El(i,t,n)})),e}function Dl(e,t){let n=Vc(e),r={type_:+!!n,scope_:t?t.scope_:ll(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=Ol;n&&(i=[r],a=kl);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Ol={get(e,t){if(t===K)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Q(e);if(!Rc(i,t,e.type_))return Ml(e,i,t);let a=i[t];if(e.finalized_||!X(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&qc(t))return a;if(a===Al(e.base_,t)||jl(e,t,a)){Fl(e);let n=e.type_===1?+t:t,r=Ll(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Q(e)},ownKeys(e){return Reflect.ownKeys(Q(e))},set(e,t,n){let r=Nl(Q(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Al(Q(e),t),i=r?.[K];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.delete(t),!0;if(Bc(n,r)&&(n!==void 0||Rc(e.base_,t,e.type_)))return!0;Fl(e),Pl(e)}return e.copy_[t]===n&&(n!==void 0||Rc(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Tl(e,t,n)),!0},deleteProperty(e,t){return Fl(e),Al(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Pl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Q(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[jc]:!0,[kc]:e.type_!==1||t!==`length`,[Ac]:r[Ac],[Mc]:n[t]}},defineProperty(){q(11)},getPrototypeOf(e){return Ec(e.base_)},setPrototypeOf(){q(12)}},kl={};for(let e in Ol){let t=Ol[e];kl[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}kl.deleteProperty=function(e,t){return isNaN(parseInt(t))&&q(13),kl.set.call(this,e,t,void 0)},kl.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&q(14),Ol.set.call(this,e[0],t,n,e[0])};function Al(e,t){let n=e[K];return(n?Q(n):e)[t]}function jl(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!X(n)||n[K]?!1:e.baseRefs_.has(n)}function Ml(e,t,n){let r=Nl(t,n);return r?Mc in r?r[Mc]:r.get?.call(e.draft_):void 0}function Nl(e,t){if(!(t in e))return;let n=Ec(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Ec(n)}}function Pl(e){e.modified_||(e.modified_=!0,e.parent_&&Pl(e.parent_))}function Fl(e){e.copy_||=(e.assigned_=new Map,Xc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Il=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Gc(e)&&!Gc(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Gc(t)||q(6),n!==void 0&&!Gc(n)&&q(7);let r;if(X(e)){let i=ml(this),a=Ll(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?fl(i):pl(i)}return dl(i,n),gl(r,i)}if(!e||!Wc(e)){if(r=t(e),r===void 0&&(r=e),r===Cc&&(r=void 0),this.autoFreeze_&&Zc(r,!0),n){let t=[],i=[];al(nl).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}q(1,e)},this.produceWithPatches=(e,t)=>{if(Gc(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Kc(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Kc(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Kc(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){X(e)||q(8),Y(e)&&(e=Rl(e));let t=ml(this),n=Ll(t,e,void 0);return n[K].isManual_=!0,pl(t),n}finishDraft(e,t){let n=e&&e[K];(!n||!n.isManual_)&&q(9);let{scope_:r}=n;return dl(r,t),gl(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=al(nl).applyPatches_;return Y(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Ll(e,t,n,r){let[i,a]=Hc(t)?al(tl).proxyMap_(t,n):Uc(t)?al(tl).proxySet_(t,n):Dl(t,n);return(n?.scope_??ll()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Cl(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Rl(e){return Y(e)||q(10,e),zl(e)}function zl(e){if(!X(e)||el(e))return e;let t=e[K],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Xc(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Xc(e,!0);return Ic(n,(e,t)=>{zc(n,e,zl(t))},r),t&&(t.finalized_=!1),n}function Bl(){Tc.push(`Sets cannot have "replace" patches.`,function(e){return`Unsupported patch operation: `+e},function(e){return`Cannot apply patch, path doesn't resolve: `+e},`Patching reserved attributes like __proto__, prototype and constructor is not allowed`);function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=Jc(Z(e,n.key_)),i=Z(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||Rc(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=Z(n,r),!Wc(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[K];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;Ic(e.assigned_,(e,l)=>{let u=Z(o,e,c),f=Z(s,e,c),p=l?Rc(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===Cc?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=Lc(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===Dc)&&q(19),Gc(o)&&n===Oc&&q(19),o=Z(o,n),(o===null||!Wc(o))&&q(18,i.join(`/`))}let s=Lc(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:q(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:q(17,a)}}),e}function u(e){if(!X(e))return e;if(Vc(e))return e.map(u);if(Hc(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(Uc(e))return new Set(Array.from(e).map(u));let t=Object.create(Ec(e));for(let n in e)t[n]=u(e[n]);return Rc(e,wc)&&(t[wc]=e[wc]),t}function d(e){return Y(e)?u(e):e}sl(nl,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var Vl=new Il,Hl=Vl.produce,Ul=Vl.produceWithPatches.bind(Vl),Wl=Vl.applyPatches.bind(Vl),Gl=1e3;function Kl(e,t){if(e.add(t),e.size>Gl){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function ql(e){let{enablePatches:t=!1}=e;t&&Bl();let n=bc(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=Sc())=>{i.has(t)||(Bl(),r=Wl(r,e),Kl(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=Sc())=>{if(!i.has(a)){if(Kl(i,a),t){let[t,i]=Ul(r,e);if(t===r)return;r=t,n.emit(`updated`,r,i,a)}else{let t=Hl(r,e);if(t===r)return;r=t,n.emit(`updated`,r,void 0,a)}}},syncIds:i}}var Jl=typeof self==`object`?self:globalThis,Yl=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),Xl=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function Zl(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=Yl.has(e)?Jl[e]:void 0;return n(new(r??Jl.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&Xl.has(a))return n(new Jl[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function Ql(e){return Zl(new Map,e)(0)}var $l=``,{toString:eu}={},{keys:tu}=Object;function nu(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=eu.call(e).slice(8,-1);switch(n){case`Array`:return[1,$l];case`Object`:return[2,$l];case`Date`:return[3,$l];case`RegExp`:return[4,$l];case`Map`:return[5,$l];case`Set`:return[6,$l];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function ru([e,t]){return e===0&&(t===`function`||t===`symbol`)}function iu(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=nu(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of tu(r))(e||!ru(nu(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(ru(nu(n))||ru(nu(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!ru(nu(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function au(e,t={}){let n=[];return iu(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:ou,stringify:su}=JSON,cu={json:!0,lossy:!0};function lu(e){return Ql(ou(e))}function uu(e){return su(au(e,cu))}function du(e){return Ql(e)}function fu(e){return uu(e)}function pu(e){return lu(e)}var mu=256,hu=class extends Error{name=`StreamClosedError`};function gu(e={}){let t=e.id??Sc(),n=Math.max(0,e.replayWindow??0),r=bc(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new hu(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&(a.length-n===1?a.shift():a.splice(0,a.length-n))),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=vu(e);i.abort(e),r.emit(`end`,t)}function u(){o||(o=!0,i.signal.aborted||i.abort(`stream closed`),r.emit(`end`,void 0))}function d(e){o||i.signal.aborted||i.abort(e??`aborted`)}let f=new WritableStream({write(e){c(e)},close(){u()},abort(e){l(e)}});return{id:t,signal:i.signal,get closed(){return o},get lastSeq(){return s},write:c,error:l,close:u,abort:d,writable:f,events:r,buffer:a}}function _u(e={}){let t=e.id??Sc(),n=Math.max(1,e.highWaterMark??mu),r=[],i=0,a=!1,o=!1,s,c,l,u;function d(){if(c){if(r.length>0){let e=r.shift(),t=c;c=void 0,t.resolve({value:e,done:!1})}else if(a){let e=c;if(c=void 0,s){let t=Error(s.message);t.name=s.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function f(){if(l){for(;r.length>0;){let e=r.shift();try{l.enqueue(e)}catch{break}}if(a&&l){try{if(s){let e=Error(s.message);e.name=s.name,l.error(e)}else l.close()}catch{}l=void 0}}}function p(t,s){if(!(a||o)&&!(t<=i)){if(i=t,r.push(s),r.length>n){let t=r.length-n;r.splice(0,t),e.onOverflow?.(t)}d(),u&&f()}}function m(e){a||(a=!0,s=e,d(),u&&f())}function h(){o||a||(o=!0,e.onCancel?.(),m(void 0))}function g(){return u||(u=new ReadableStream({start(e){l=e,f()},cancel(){h()}}),u)}return{id:t,get cancelled(){return o},get done(){return a},get lastSeenSeq(){return i},get readable(){return g()},cancel:h,_push:p,_end:m,[Symbol.asyncIterator](){return{next(){if(r.length>0)return Promise.resolve({value:r.shift(),done:!1});if(a){if(s){let e=Error(s.message);return e.name=s.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{c={resolve:e,reject:t}})},return(){return h(),Promise.resolve({value:void 0,done:!0})}}}}}function vu(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}var yu=128;function bu(e){return e.replace(/[^\w-]+/g,`_`).slice(0,yu)}var xu=`__connection.json`,Su=`__DEVFRAME_CONNECTION__`,Cu=`x-birpc-session`,wu=`__rpc-dump/index.json`,Tu=`devframe:services`,Eu=`devframe_otp`,Du=`devframe_auth_token`;G.postMessage.remoteAssetsError;var Ou=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>yc(e))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){let n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}has(e,t){return this.cacheMap.get(e)?.has(this.keySerializer(t))??!1}apply(e,t){let n=this.cacheMap.get(e.m)||new Map;n.set(this.keySerializer(e.a),t),this.cacheMap.set(e.m,n)}validate(e){return this.options.functions.includes(e)}clear(e){e?this.cacheMap.delete(e):this.cacheMap.clear()}},ku=Us({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,fix:"Remove `jsonSerializable: false`, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});function Au(e){if(e.agent&&e.jsonSerializable===!1)throw ku.DF0019({name:e.name});e.agent&&!e.jsonSerializable&&(e.jsonSerializable=!0)}async function ju(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function Mu(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function Nu(e,t,n){let r=n.slice();if(!t||t.length===0)return r;for(let r=0;r<t.length;r++){let i=t[r];if(!i)continue;let a=await ju(i,n[r]);if(a.issues)throw ku.DF0043({name:e,index:r,issues:Mu(a.issues)})}return r}async function Pu(e,t,n){if(!t)return n;let r=await ju(t,n);if(r.issues)throw ku.DF0044({name:e,issues:Mu(r.issues)});return n}async function Fu(e,t){if(!e.setup)return{};if(typeof t==`object`&&t){e.__cache??=new WeakMap;let n=e.__cache,r=n.get(t);return r||(r=Promise.resolve(e.setup(t)),r.catch(()=>{n.get(t)===r&&n.delete(t)}),n.set(t,r)),await r}if(!e.__promise){let n=Promise.resolve(e.setup(t));n.catch(()=>{e.__promise===n&&(e.__promise=void 0)}),e.__promise=n}return await e.__promise}async function Iu(e,t){let n=e.handler;if(!n){let r=await Fu(e,t);if(!r.handler)throw ku.DF0024({name:e.name});n=r.handler}let r=e.args,i=e.returns;if(!r&&!i)return n;let a=n;return async(...t)=>{let n=await Nu(e.name,r,t),o=await a(...n);return await Pu(e.name,i,o)}}var Lu=class{context;definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return Iu(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw ku.DF0021({name:e.name});Au(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw ku.DF0022({name:e.name});Au(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await Iu(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw ku.DF0023({name:String(e)});return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}};function Ru(e,t=``){return JSON.stringify(e,function(e,n){let r=this,i=r==null?n:r[e];if(i===void 0){if(Array.isArray(r))throw Bu(t,`undefined`,r,e);return n}return i!==null&&zu(i,r,e,t),n})}function zu(e,t,n,r){if(typeof e==`bigint`)throw Bu(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw Bu(r,`Map`,t,n);if(e instanceof Set)throw Bu(r,`Set`,t,n);if(e instanceof Date)throw Bu(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw Bu(r,e.constructor?.name??`class instance`,t,n)}function Bu(e,t,n,r){let i=Vu(n,r);return ku.DF0020({name:e||`<anonymous>`,type:t,path:i})}function Vu(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}var Hu=`__DEVFRAME_CONNECTION_META__`,Uu=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function Wu(e){let t=[()=>window?.[e],()=>globalThis?.[e],()=>parent.window?.[e]];for(let e of t)try{let t=e();if(t)return t}catch{}}function Gu(){return Wu(Su)}function Ku(){return Wu(Hu)}function qu(e){if(e)return e;try{let e=localStorage.getItem(Uu);if(e)return e}catch{}return Wu(Uu)}function Ju(e){globalThis[Su]=e,globalThis[Hu]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&Yu(e.authToken)}function Yu(e){try{localStorage.setItem(Uu,e)}catch{}globalThis[Uu]=e;let t=Gu();t&&(globalThis[Su]={...t,authToken:e})}function Xu(e){let t=Rs(xu,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function Zu(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function Qu(){let e=Gu();if(e)return Zu(e,qu()??e.authToken??e.connectionMeta.authToken);let t=Ku();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??Xu(`./`),authToken:qu(t.authToken)}}async function $u(e={}){if(e.connection){let t=Zu(e.connection,qu(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return Ju(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:Xu(t[0]??`./`),authToken:qu(e.authToken??e.connectionMeta.authToken)};return Ju(n),n}let n=Qu();if(n){let t=Zu(n,qu(e.authToken??n.authToken??n.connectionMeta.authToken));return Ju(t),t}let r=[];for(let n of t){let t=Rs(xu,n),i=Xu(n);try{let n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch connection meta from ${i}: ${n.status}`);let r=await n.json(),a=n.url||i,o={connectionMeta:r,metaBaseUrl:r.baseUrl?new URL(r.baseUrl,a).href:a,authToken:qu(e.authToken??r.authToken)};return Ju(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var ed=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function td(e=Eu){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function nd(e){try{let t=new URL(globalThis.location.href),n=new URLSearchParams(t.hash.replace(/^#/,``));if(!n.has(e))return;n.delete(e),t.hash=n.toString(),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function rd(e=Eu){let t=td(e);return t&&nd(e),t}async function id(e,t={}){let n=rd(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function ad(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(Tu,{initialValue:{}}).then(e=>(t=e.value(),e.on(`updated`,e=>{t=e}),e)),r);return i(),{state:i,has:e=>e in t,keys:()=>Object.keys(t),get:r=>{let i=t[r];if(!i)return;let a=n.get(i);return a||(a={...i,rpc:e.scope(i.scope).rpc},n.set(i,a)),a}}}function od(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:G.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.mutate(()=>o(e,n),r)}}),e.client.register({name:G.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=ql({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise((t,n)=>{if(e.isTrusted)d().then(t,n);else{t(u);let n=!1;e.events.on(G.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var sd=new Map;function cd(e=sd){let t=new Map;return{serialize:n=>{let r;return n.t===`q`?r=n.m:(r=t.get(n.i),t.delete(n.i)),!(n.t===`s`&&`e`in n)&&r&&e.get(r)?.jsonSerializable===!0?Ru(n,r??``):`s:${fu(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?pu(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function ld(){}function ud(e){let t=e.search(/\n\n|\r\n\r\n/);if(!(t<0))return{frame:e.slice(0,t),rest:e.slice(t+(e[t]===`\r`?4:2))}}function dd(e){let t=`message`,n=[];for(let r of e.split(/\r?\n/))r.startsWith(`:`)||(r.startsWith(`event:`)?t=r.slice(6).trimStart():r.startsWith(`data:`)&&n.push(r.slice(5).replace(/^ /,``)));return{event:t,data:n}}function fd(e){let{onConnected:t=ld,onError:n=ld,onDisconnected:r=ld,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${Du}=${encodeURIComponent(e.authToken)}`);let s=cd(i),c=new AbortController,l=!1,u,d,f,p,m=new Promise((e,t)=>{f=e,p=t});m.catch(()=>{});function h(e){l||(l=!0,p(e),n(e),r())}function g(){l||(l=!0,p(Error(`Devframe SSE stream closed`)),r())}function _(e,n){e===`session`?(f(n),t()):u?.(n)}async function v(e){let t=e.getReader();d=t;let n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;for(r+=n.decode(i,{stream:!0});;){let e=ud(r);if(!e)break;r=e.rest;let{event:t,data:n}=dd(e.frame);n.length>0&&_(t,n.join(`
|
|
4
|
-
`))}}g()}return(async()=>{try{let e=await a(o,{headers:{accept:`text/event-stream`},signal:c.signal});if(!e.ok||!e.body)throw Error(`Devframe SSE stream request failed: ${e.status}`);await v(e.body)}catch(e){if(c.signal.aborted){g();return}h(e instanceof Error?e:Error(String(e)))}})(),{close:()=>{l=!0,c.abort(),d?.cancel().catch(()=>{})},on:e=>{u=e},post:async e=>{let t;try{t=await m}catch{return}if(l)n(Error(`Devframe SSE channel is closed; message dropped`));else try{let n=await a(o,{method:`POST`,headers:{"content-type":`text/plain; charset=utf-8`,[Cu]:t},body:e});if(n.status===200){let e=await n.text();e&&u?.(e);return}if(!n.ok)throw Error(`Devframe SSE POST failed: ${n.status}`)}catch(e){n(e instanceof Error?e:Error(String(e)))}},serialize:s.serialize,deserialize:s.deserialize}}function pd(e,t){let{channel:n,rpcOptions:r={}}=t;return $s(e,{...n,timeout:-1,...r,proxify:!1})}function md(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=Promise.withResolvers();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(G.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new ed(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new ed(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(G.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new ed(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(G.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let v=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(G.client.connectionError,e),m(new ed(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new ed(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=pd(a.functions,{channel:v,rpcOptions:o});a.register({name:G.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new ed(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(G.client.connectionError,e),m(e),i.emit(G.client.isTrustedUpdated,!1)}});let b=n;async function x(e){b=e;let t=await y.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new ed(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(G.client.connectionError,e)}return i.emit(G.client.isTrustedUpdated,c),t.isTrusted}async function S(e){let t=(await y.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(b=t,c=!0,d.resolve(!0),f(`connected`),i.emit(G.client.isTrustedUpdated,!0)),t}async function C(e={}){await y.$call(`anonymous:devframe:auth:request-code`,{ua:navigator.userAgent,origin:location.origin,...e.reissue?{reissue:!0}:{}})}async function w(){return c?!0:x(b??``)}async function T(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t;try{return await Promise.race([d.promise,new Promise((n,r)=>{t=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e)})]),c}finally{clearTimeout(t)}}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:w,requestTrustWithToken:x,requestTrustWithCode:S,requestAuthCode:C,ensureTrusted:T,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(G.client.error,n,t),Promise.reject(n)):g(y.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t)i.emit(G.client.error,t,String(e[0]));else return y.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(G.client.error,n,t),Promise.reject(n)):g(y.$callOptional(...e),t)},close:()=>{v.close()}}}function hd(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})();if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`;return new URL(e.path??`/`,`${r.protocol}//${t}`).href}return new URL(e.path??``,r).href}let i=e??``;return/^https?:\/\//i.test(i)?i:new URL(i,r).href}function gd(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=hd(n.sse,r??`./`,location);return md({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>fd({url:l,authToken:t,definitions:e.definitions,...s,onConnected(){s.onConnected?.()},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(){e.onDisconnected(),s.onDisconnected?.()}})})}function _d(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:vd(r)?_d(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function vd(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function yd(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function bd(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function xd(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Sd(e){if(e.error)throw _d(e.error);return e.output}function Cd(e){return e.some(e=>e!=null)}function wd(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function Td(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?du(e):e}function a(e,t){return i(wd(e),t)}async function o(e){n.has(e.path)||n.set(e.path,t(e.path).then(t=>a(t,e.serialization)));let r=await n.get(e.path);return xd(r)?Sd(r):r}async function s(e,n){return r.has(e)||r.set(e,t(e).then(e=>a(e,n))),await r.get(e)}async function c(t,n){if(!(t in e))throw Error(`[devframe-rpc] Function "${t}" not found in dump store`);let r=e[t];if(yd(r)){if(Cd(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(bd(r)){let e=yc(n),i=r.records[e];if(i)return Sd(await s(i,r.serialization));if(r.fallback)return Sd(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!Cd(n))return r;throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await c(e,t),callOptional:async(t,n)=>{if(t in e)return await c(t,n)},callEvent:async(e,t)=>{}}}async function Ed(e){let t=Td(await e.fetchJsonFromBases(wu),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,requestAuthCode:async()=>{},ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var Dd=``;function Od(e,t){return`${e}${Dd}${t}`}function kd(e){let t=new Map,n=new Map;e.client.register({name:G.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(Od(e,n))?._push(r,i)}}),e.client.register({name:G.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=Od(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:G.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=Od(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(G.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(Dd);if(t<0)continue;let i=n.slice(0,t),a=n.slice(t+1);e.callEvent(`devframe:streaming:subscribe`,i,a,{afterSeq:r.lastSeenSeq})}});function r(n,r,i={}){let a=Od(n,r),o=t.get(a);if(o)return o;let s=_u({id:r,highWaterMark:i.highWaterMark,onOverflow(e){console.warn(`[devframe] DF0029: Stream "${n}#${r}" dropped ${e} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent(`devframe:streaming:cancel`,n,r),t.delete(a)}});if(t.set(a,s),e.isTrusted)e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:0});else{let i=e.events.on(G.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=Od(t,r),a=n.get(i);if(a)return a;let o=gu({id:r});return o.events.on(`chunk`,(n,i)=>{e.callEvent(`devframe:streaming:upload-chunk`,t,r,n,i)}),o.events.on(`end`,a=>{e.callEvent(`devframe:streaming:upload-end`,t,r,a),n.delete(i)}),n.set(i,o),o}return{subscribe:r,upload:i}}function Ad(){}var jd=new Map;function Md(e){let t=e.url;e.authToken&&(t=`${t}?${Du}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Ad,onError:i=Ad,onDisconnected:a=Ad,definitions:o=jd}=e;n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{let t=e instanceof Error?e:Error(e.type);i(t)}),n.addEventListener(`close`,e=>{a(e)});let s=cd(o);return{close:()=>{n.close()},on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN)n.send(e);else if(n.readyState===WebSocket.CONNECTING){let t=()=>{i(),n.readyState===WebSocket.OPEN&&n.send(e)},r=()=>i();function i(){n.removeEventListener(`open`,t),n.removeEventListener(`close`,r)}n.addEventListener(`open`,t),n.addEventListener(`close`,r)}else i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:s.serialize,deserialize:s.deserialize}}function Nd(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})(),i=r.protocol===`https:`?`wss:`:`ws:`;if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`,n=new URL(e.path??`/`,`${i}//${t}`);return n.protocol=i,n.href}let t=new URL(e.path??``,r);return t.protocol=i,t.href}if(typeof e==`number`)return`${i}//${r.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return zs(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function Pd(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=Nd(n.websocket,r??`./`,location);return md({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Md({url:l,authToken:t,definitions:e.definitions,...s,onConnected(e){s.onConnected?.(e)},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(t){e.onDisconnected(),s.onDisconnected?.(t)}})})}function Fd(e){return e.includes(`:`)}function Id(e,t){return Fd(t)?t:`${e}:${t}`}function Ld(e){return{async get(t){return(await e()).value()?.[t]},async set(t,n){(await e()).mutate(e=>{if(e===void 0)return{[t]:n};e[t]=n})},async delete(t){(await e()).mutate(e=>{e!==void 0&&delete e[t]})},async all(){return(await e()).value()??{}},async onChange(t){return(await e()).on(`updated`,e=>t(e??{}))}}}function Rd(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=(async()=>(await e.ensureTrusted(),e.sharedState.get(r)))().catch(e=>{throw i=void 0,e}),i}return Ld(a)}function zd(e,t){return{global:Rd(e,t,`global`),project:Rd(e,t,`project`)}}function Bd(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(Fd(n.name))throw Error(`[devframe] Scoped client RPC registration for namespace "${t}" received an already-namespaced function name "${n.name}". Pass a bare name without a ":" separator.`);e.client.register({...n,name:`${t}:${n.name}`})},call:((n,...r)=>e.call(Id(t,n),...r)),callEvent:((n,...r)=>e.callEvent(Id(t,n),...r)),callOptional:((n,...r)=>e.callOptional(Id(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(Id(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(Id(t,n),r,i),upload:(n,r)=>e.streaming.upload(Id(t,n),r)}},settings:zd(e,t),scope:e.scope}}function Vd(){if(typeof document<`u`){let e=document.modelContext;if(e)return e}if(typeof navigator<`u`){let e=navigator.modelContext;if(e)return e}}function Hd(e,t={}){let n=t.modelContext??Vd();if(!n)return()=>{};let r=n,i=new Map,a=new Map;function o(t,n){let o=bu(t.name),s=a.get(o);if(s&&s!==t.name){console.warn(`[devframe] WebMCP tool name "${o}" (from "${t.name}") collides with "${s}"; keeping the first registration.`);return}let c=new AbortController,l=ec(t.type,n),u=r.registerTool({name:o,description:n.description,inputSchema:rc(t.args),annotations:{title:n.title??t.name,readOnlyHint:l===`read`,destructiveHint:l===`destructive`},execute:n=>Ud(t,e.context,n)},{signal:c.signal});u&&`then`in u&&u.then(()=>{},()=>{}),a.set(o,t.name),i.set(t.name,()=>{c.abort(),u&&`unregister`in u&&typeof u.unregister==`function`&&u.unregister(),a.delete(o)})}function s(t){let n=t?[t]:[...e.definitions.keys()];for(let t of n){i.get(t)?.(),i.delete(t);let n=e.definitions.get(t),r=n?.agent;n&&r&&o(n,r)}}s();let c=e.onChanged(e=>s(e));return()=>{c();for(let e of i.values())e();i.clear()}}async function Ud(e,t,n){try{let r=ac(n,e.args?.length);return{content:[{type:`text`,text:Wd(await(await Iu(e,t))(...r))}]}}catch(e){return{isError:!0,content:[{type:`text`,text:Gd(e)}]}}}function Wd(e){return e===void 0?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2)}function Gd(e){if(!(e instanceof Error))return String(e);let t=e.cause instanceof Error?` (cause: ${e.cause.message})`:``;return`${e.name}: ${e.message}${t}`}function Kd(e,t){if(t.backend===`static`)return`static`;let n=t.websocket!==void 0,r=t.sse!==void 0;if(e===`websocket`){if(!n)throw Error(`[devframe] transport: 'websocket' was requested, but this server does not advertise a WebSocket endpoint`);return`websocket`}if(e===`sse`){if(!r)throw Error(`[devframe] transport: 'sse' was requested, but this server does not advertise an SSE endpoint`);return`sse`}if(t.backend===`sse`&&r)return`sse`;if(n)return`websocket`;if(r)return`sse`;throw Error(`[devframe] This server advertises no RPC transport (backend "none"), so there is nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function qd(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=bc(),a=Array.isArray(t)?t:[t],o=await $u(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new Ou({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new Lu(f),m=e.webmcp===!1?void 0:Hd(p),h,g=!1,_=0,v;function y(){_++,v=void 0,d.clear(),r===!0&&d.updateOptions({functions:[]})}r&&(p.register({name:G.broadcast.cacheInvalidate,type:`event`,handler:y}),i.on(G.client.connectionStatus,y),i.on(G.client.isTrustedUpdated,y));async function b(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(Rs(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let x=e.callTimeout??0,S=x>0?x:1/0,C,w={authToken:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){let a=performance.now()+S;if(await n.onRequest?.call(this,e,t,i),r===!0&&e.i&&C.isTrusted&&!e.m.startsWith(`anonymous:`)&&e.m!==`devframe:rpc:cacheable-functions`){function t(){if(performance.now()>=a)throw new ed(`timeout`,`[devframe] RPC call "${e.m}" timed out after ${x}ms`)}for(;!v&&(t(),!(g||C.status!==`connected`));){let e=_;v=C.callOptional(`devframe:rpc:cacheable-functions`).then(t=>{e===_&&d.updateOptions({functions:t??[]})}).catch(t=>{throw e===_&&(v=void 0),t}),await v}await v,t()}let o=_;if(r&&e.i&&!g&&C.isTrusted&&d.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);o===_&&!g&&d.apply(e,n)}else await t(e)}}},T=Kd(e.transport??`auto`,s);C=T===`static`?await Ed({fetchJsonFromBases:b}):T===`sse`?gd({...w,sseOptions:e.sseOptions}):Pd({...w,wsOptions:e.wsOptions});let E;try{E=new BroadcastChannel(`devframe-auth`)}catch{}let D,O=!1;function ee(e){return((...t)=>O||!D?e(...t):D.then(()=>e(...t)))}function te(){g=!0,y();try{h?.(),m?.()}finally{try{E?.close()}finally{C.close?.()}}}let k={events:i,get isTrusted(){return C.isTrusted},get status(){return C.status},get connectionError(){return C.connectionError},get transport(){return C.transport??T},get connection(){return o},connectionMeta:s,ensureTrusted:C.ensureTrusted,requestTrust:C.requestTrust,requestTrustWithToken:async e=>(Yu(e),o={...o,authToken:e},C.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await C.requestTrustWithCode(e);if(!t)return!1;Yu(t),o={...o,authToken:t};try{E?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},requestAuthCode:e=>C.requestAuthCode(e),call:ee(C.call),callEvent:ee(C.callEvent),callOptional:ee(C.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:te};k.sharedState=od(k),k.streaming=kd(k),k.services=ad(k);let ne=new Map;k.scope=(e=>{if(!e)return k;let t=ne.get(e);return t||(t=Bd(k,e),ne.set(e,t)),t}),f.rpc=k;function A(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function re(){if(e.simpleAuth!==!1&&A()&&typeof globalThis.prompt==`function`)for(await k.requestAuthCode().catch(()=>{});!k.isTrusted;){let e=globalThis.prompt(`devframe: enter the authentication code shown in your terminal`);if(e==null)return;let t=e.trim();if(t&&await k.requestTrustWithCode(t))return}}async function ie(){let t=await C.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await id(k,{param:n}):!1;t||r||k.isTrusted||await re()}return D=ie().then(()=>{O=!0},()=>{O=!0}),s.mcp&&Aa(async()=>{let{setupBrowserAgentRpcBridge:e}=await import(`./B48W2q7f.js`);return{setupBrowserAgentRpcBridge:e}},[],import.meta.url).then(({setupBrowserAgentRpcBridge:e})=>{g||(h=e(k))}).catch(()=>{}),E&&(E.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&k.requestTrustWithToken(e.data.authToken)}),k}function Jd(e={}){return qd({...e,simpleAuth:!1})}var Yd=`/__devtools/`;`${Yd}`;var $=Te({connected:!1,error:null,inspectStatus:`checking`}),Xd=n(void 0),Zd=bc(),Qd;function $d(e={}){Zd.emit(`updated`,e)}async function ef(e){Qd?.(),Qd=(await e.sharedState.get(`vite:inspect:module-updated`,{initialValue:{ids:null,updatedAt:0}})).on(`updated`,t=>{e.cacheManager.clear(),$d({ids:t.ids??void 0})})}async function tf(){let e=ne();$.connected=!1,$.error=null,$.inspectStatus=`checking`;try{Xd.value=await Jd({baseURL:[Yd,e.app.baseURL],cacheOptions:!0,connectionMeta:e.app.connection,wsOptions:{onConnected:()=>{$.connected=!0,$.error=null},onError:e=>{$.error=e},onDisconnected:()=>{$.connected=!1}},rpcOptions:{onGeneralError:(e,t)=>{$.error=e,console.error(`[vite-devtools] RPC error on executing "${t}":`,e)},onFunctionError:(e,t)=>{$.error=e,console.error(`[vite-devtools] RPC error on executing "${t}":`,e)}}});let t=await Xd.value.call(`devtoolskit:internal:rpc:server:list`);$.inspectStatus=`vite:inspect:get-metadata`in t?`available`:`unavailable`,Xd.value.cacheManager.updateOptions({functions:Object.keys(t).filter(e=>t[e]?.cacheable)}),$.inspectStatus===`available`&&await ef(Xd.value),$.connected=!0}catch(e){$.connected=!1,$.error=e}}function nf(){return Xd}function rf(e){let t=Zd.on(`updated`,e);return _e()&&k(t),t}var af={key:0,class:`text-red`},of={key:2,class:`h-screen flex items-center justify-center p8`},sf={key:3,class:`grid grid-cols-[max-content_1fr] h-screen w-screen max-w-screen max-h-screen of-hidden`},cf={class:`of-auto h-screen max-h-screen relative`},lf=f({__name:`app`,setup(e){return Qt(),Ns({title:`Vite DevTools`}),tf(),Es(()=>[{title:`Home`,icon:`i-ph-house-duotone`,to:`/home`},{title:`Modules Graph`,icon:`i-ph-graph-duotone`,to:`/graph`},{title:`Plugins`,icon:`i-ph-plugs-duotone`,to:`/plugins`}]),(e,n)=>{let r=ps,i=_s;return p($).error?(E(),y(`div`,af,ve(p($).error),1)):!p($).connected||p($).inspectStatus===`checking`?(E(),t(r,{key:1,text:`Connecting...`})):p($).inspectStatus===`unavailable`?(E(),y(`div`,of,[...n[0]||=[v(`p`,{class:`text-base op50`},` Vite DevTools is only available in dev mode. `,-1)]])):(E(),y(`div`,sf,[ue(ks),v(`div`,cf,[ue(i)])]))}}}),uf={__name:`nuxt-error-page`,props:{error:Object},setup(e){let n=e.error,r=Number(n.statusCode||500),a=r===404,s=n.statusMessage??(a?`Page Not Found`:`Internal Server Error`),c=n.message||n.toString(),l=d(()=>Aa(()=>import(`./CqzDam8I.js`),__vite__mapDeps([14,1,2,3,6,15]),import.meta.url)),u=d(()=>Aa(()=>import(`./tNxfX9P9.js`),__vite__mapDeps([16,1,6,17]),import.meta.url)),f=a?l:u;return(e,n)=>(E(),t(p(f),o(i({status:p(r),statusText:p(s),statusCode:p(r),statusMessage:p(s),description:p(c),stack:p(void 0)})),null,16))}},df=()=>null,ff={key:0},pf={__name:`nuxt-root`,setup(e){let n=le(),r=n.deferHydration();if(n.isHydrating){let e=n.hooks.hookOnce(`app:error`,r),t=Lt().beforeEach(()=>{e(),t()})}window.location.pathname,w(wt,kt()),n.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let i=zt();function a(e,t,r){let i=n.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,t,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return l((e,t,r)=>{if(n.hooks.callHook(`vue:error`,e,t,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),Nt(navigator.userAgent))return Bt(n,e),!1;if(Dt(e)&&(e.fatal||e.unhandled))return n.runWithContext(()=>It(e)),a(e,t,r),!1}),(e,n)=>(E(),t(we,{onResolve:p(r)},{default:fe(()=>[p(!1)?(E(),y(`div`,ff)):p(i)?(E(),t(p(uf),{key:1,error:p(i)},null,8,[`error`])):p(!1)?(E(),t(p(df),{key:2,context:p(!1)},null,8,[`context`])):p(!1)?(E(),t(xe(p(!1)),{key:3})):(E(),t(p(lf),{key:4}))]),_:1},8,[`onResolve`]))}},mf;{let e;mf=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?je(pf):qe(pf),r=me({vueApp:n});async function i(e){await r.callHook(`app:error`,e),r.payload.error||=Mt(e)}i.__nuxt_default=!0,n.config.errorHandler=i,r.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)}),!t&&re.id&&r.hook(`app:suspense:resolve`,()=>{document.getElementById(re.id)?.remove()});try{await be(r,ss)}catch(e){i(e)}try{await r.hooks.callHook(`app:created`,n),await r.hooks.callHook(`app:beforeMount`,n),n.mount(ae),await r.hooks.callHook(`app:mounted`,n),await s()}catch(e){i(e)}return n},e=mf().catch(e=>{throw D.NUXT_E1009({cause:e}),e})}export{ps as a,Co as c,Ms as i,Aa as l,nf as n,ls as o,Sc as r,Io as s,rf as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e,Et as t,H as n,J as r,Ot as i,P as a,St as o,Tt as s,_t as c,bt as l,ct as u,dt as d,ft as f,ht as p,pt as m,q as h,st as g,vt as _,wt as v,x as y,yt as b}from"./CgY19zhT.js";function x(e,t,n={}){let r,i,a,o=!0,s=()=>{o=!0,a()};g(e,s,{flush:`sync`,...n});let c=typeof t==`function`?t:t.get,l=typeof t==`function`?void 0:t.set,u=d((e,t)=>(i=e,a=t,{get(){return o&&=(r=c(r),!1),i(),r},set(e){l?.(e)}}));return u.trigger=s,u}function S(e={}){function t(e){return typeof e==`function`}let n=t(e)?{mounted:e,updated:e}:e,{mounted:r,unmounted:i}=n;if(!t(r))return e;let a=new WeakMap;return{...n,mounted(e,t,n,i){let o=a.get(e)??f();a.set(e,o),o.run(()=>{r?.(e,t,n,i)})},unmounted(e,n,r,o){var s;(s=a.get(e))==null||s.stop(),a.delete(e),t(i)&&i(e,n,r,o)}}}function C(e,t){return m()?(c(e,t),!0):!1}var w=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var T=e=>e!=null,E=Object.prototype.toString,D=e=>E.call(e)===`[object Object]`,O=()=>{},k=A();function A(){var e,t;return w&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function j(...e){if(e.length!==1)return v(...e);let t=e[0];return typeof t==`function`?b(d(()=>({get:t,set:O}))):l(t)}function M(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var ee=e=>e();function N(n,r={}){let i,a,s=O,c=O,l=e(!1),u=e=>{clearTimeout(e),s(),s=O},d;return Object.assign(e=>{let o=t(n),f=t(r.maxWait);return i&&u(i),o<=0||f!==void 0&&f<=0?(a&&=(u(a),void 0),l.value=!1,Promise.resolve(e())):(l.value=!0,new Promise((t,n)=>{s=r.rejectOnCancel?n:t,c=t,d=e,f&&!a&&(a=setTimeout(()=>{i&&u(i),a=void 0,l.value=!1,t(d())},f)),i=setTimeout(()=>{a&&u(a),a=void 0,l.value=!1,t(e())},o)}))},{cancel:()=>{i&&=(u(i),void 0),a&&=(u(a),void 0),l.value=!1,c=O},flush:()=>{if(l.value){i&&=(clearTimeout(i),void 0),a&&=(clearTimeout(a),void 0),l.value=!1;let e=c;s=O,c=O,e(d())}},isPending:o(l)})}function te(...e){let n=0,r,i=!0,a=O,o,s,c,l,u;!p(e[0])&&typeof e[0]==`object`?{delay:s,trailing:c=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,c=!0,l=!0,u=!1]=e;let d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=O)};return e=>{let f=t(s),p=Date.now()-n,m=()=>o=e();return d(),f<=0?(n=Date.now(),m()):(p>f?(n=Date.now(),(l||!i)&&m()):c&&(o=new Promise((e,t)=>{a=u?t:e,r=setTimeout(()=>{n=Date.now(),i=!0,e(m()),d()},Math.max(0,f-p))})),!l&&!r&&(r=setTimeout(()=>i=!0,f)),i=!1,o)}}function ne(e=ee,t={}){let{initialState:n=`active`}=t,r=j(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:o(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function P(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(i,e,n):setTimeout(r,e)})}function F(e){return Array.isArray(e)?e:[e]}function I(e){return e||a()}function re(e){if(!p(e))return _(e);let t=new Proxy({},{get(t,n,r){return i(Reflect.get(e.value,n,r))},set(t,n,r){return p(e.value[n])&&!p(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return _(t)}function ie(e){return re(y(e))}function ae(e,...n){let r=n.flat(),i=r[0];return ie(()=>Object.fromEntries(typeof i==`function`?Object.entries(s(e)).filter(([e,n])=>!i(t(n),e)):Object.entries(s(e)).filter(e=>!r.includes(e[0]))))}function L(e,t=200,n={}){return M(N(t,n),e)}function oe(e,t=200,n=!0,r=!0,i=!1){return M(te(t,n,r,i),e)}function R(e,t,n={}){let{eventFilter:r=ee,...i}=n;return g(e,M(r,t),i)}function se(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=ne(r,{initialState:i});return{stop:R(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function z(e,t=!0,r){I(r)?h(e,r):t?e():n(e)}function ce(e,t){I(t)&&r(e,t)}function B(e,r=!1){function i(i,{flush:a=`sync`,deep:o=!1,timeout:s,throwOnTimeout:c}={}){let l=null,u=[new Promise(t=>{l=g(e,e=>{i(e)!==r&&(l?l():n(()=>l?.()),t(e))},{flush:a,deep:o,immediate:!0})})];return s!=null&&u.push(P(s,c).then(()=>t(e)).finally(()=>l?.())),Promise.race(u)}function a(a,o){if(!p(a))return i(e=>e===a,o);let{flush:s=`sync`,deep:c=!1,timeout:l,throwOnTimeout:u}=o??{},d=null,f=[new Promise(t=>{d=g([e,a],([e,i])=>{r!==(e===i)&&(d?d():n(()=>d?.()),t(e))},{flush:s,deep:c,immediate:!0})})];return l!=null&&f.push(P(l,u).then(()=>t(e)).finally(()=>(d?.(),t(e)))),Promise.race(f)}function o(e){return i(e=>!!e,e)}function s(e){return a(null,e)}function c(e){return a(void 0,e)}function l(e){return i(Number.isNaN,e)}function u(e,n){return i(n=>{let r=Array.from(n);return r.includes(e)||r.includes(t(e))},n)}function d(e){return f(1,e)}function f(e=1,t){let n=-1;return i(()=>(n+=1,n>=e),t)}return Array.isArray(t(e))?{toMatch:i,toContains:u,changed:d,changedTimes:f,get not(){return B(e,!r)}}:{toMatch:i,toBe:a,toBeTruthy:o,toBeNull:s,toBeNaN:l,toBeUndefined:c,changed:d,changedTimes:f,get not(){return B(e,!r)}}}function le(e){return B(e)}function ue(n=!1,r={}){let{truthyValue:i=!0,falsyValue:a=!1}=r,o=p(n),s=e(n);function c(e){if(arguments.length)return s.value=e,s.value;{let e=t(i);return s.value=s.value===e?t(a):e,s.value}}return o?c:[s,c]}function de(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return R(e,t,{...a,eventFilter:N(r,{maxWait:i})})}function fe(e,t,n){return g(e,t,{...n,immediate:!0})}function pe(e,t,n){return g(e,t,{...n,once:!0})}var V=w?window:void 0;w&&window.document,w&&window.navigator,w&&window.location;function H(e){let n=t(e);return n?.$el??n}function U(...e){let n=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=y(()=>{let n=F(t(e[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0});return fe(()=>[r.value?.map(e=>H(e))??[V].filter(e=>e!=null),F(t(r.value?e[1]:e[0])),F(i(r.value?e[2]:e[1])),t(r.value?e[3]:e[2])],([e,t,r,i],a,o)=>{if(!e?.length||!t?.length||!r?.length)return;let s=D(i)?{...i}:i,c=e.flatMap(e=>t.flatMap(t=>r.map(r=>n(e,t,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var W=!1;function me(e,n,r={}){let{window:i=V,ignore:a=[],capture:o=!0,detectIframe:s=!1,controls:c=!1}=r;if(!i)return c?{stop:O,cancel:O,trigger:O}:O;if(k&&!W){W=!0;let e={passive:!0};Array.from(i.document.body.children).forEach(t=>t.addEventListener(`click`,O,e)),i.document.documentElement.addEventListener(`click`,O,e)}let l=!0,u=e=>t(a).some(t=>{if(typeof t==`string`)return Array.from(i.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=H(t);return n&&(e.target===n||e.composedPath().includes(n))}});function d(e){let n=t(e);return n&&n.$.subTree.shapeFlag===16}function f(e,n){let r=t(e),i=r.$.subTree&&r.$.subTree.children;return i==null||!Array.isArray(i)?!1:i.some(e=>e.el===n.target||n.composedPath().includes(e.el))}let p=t=>{let r=H(e);t.target!=null&&(!(r instanceof Element)&&d(e)&&f(e,t)||r&&r!==t.target&&!t.composedPath().includes(r)&&(`detail`in t&&t.detail===0&&(l=!u(t)),l?n(t):l=!0))},m=!1,h=[U(i,`click`,e=>{m||(m=!0,setTimeout(()=>{m=!1},0),p(e))},{passive:!0,capture:o}),U(i,`pointerdown`,t=>{let n=H(e);l=!u(t)&&!(!n||t.composedPath().includes(n))},{passive:!0}),s&&U(i,`blur`,t=>{setTimeout(()=>{let r=H(e),a=i.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;a?.tagName===`IFRAME`&&!r?.contains(i.document.activeElement)&&n(t)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(e=>e());return c?{stop:g,cancel:()=>{l=!1},trigger:e=>{l=!0,p(e),l=!1}}:g}function he(){let t=e(!1),n=a();return n&&h(()=>{t.value=!0},n),t}function G(e){let t=he();return y(()=>(t.value,!!e()))}function K(e,n,r={}){let{window:i=V,...a}=r,o,s=G(()=>i&&`MutationObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=y(()=>{let n=F(t(e)).map(H).filter(T);return new Set(n)}),u=g(l,e=>{c(),s.value&&e.size&&(o=new MutationObserver(n),e.forEach(e=>o.observe(e,a)))},{immediate:!0,flush:`post`}),d=()=>o?.takeRecords(),f=()=>{u(),c()};return C(f),{isSupported:s,stop:f,takeRecords:d}}function ge(e,t,n={}){let{window:r=V,document:i=r?.document,flush:a=`sync`}=n;if(!r||!i)return O;let o,s=e=>{o?.(),o=e},c=u(()=>{let n=H(e);if(n){let{stop:e}=K(i,e=>{e.map(e=>[...e.removedNodes]).flat().some(e=>e===n||e.contains(n))&&t(e)},{window:r,childList:!0,subtree:!0});s(e)}},{flush:a}),l=()=>{c(),s()};return C(l),l}function _e(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function q(...e){let n,r,i={};e.length===3?(n=e[0],r=e[1],i=e[2]):e.length===2?typeof e[1]==`object`?(n=!0,r=e[0],i=e[1]):(n=e[0],r=e[1]):(n=!0,r=e[0]);let{target:a=V,eventName:o=`keydown`,passive:s=!1,dedupe:c=!1}=i,l=_e(n);return U(a,o,e=>{e.repeat&&t(c)||l(e)&&r(e)},s)}function ve(e,t,n={}){return q(e,t,{...n,eventName:`keydown`})}var ye=500,be=10;function xe(e,t,n){var r,i;let a=y(()=>H(e)),o,s,c,l=!1;function u(){o&&=(clearTimeout(o),void 0),s=void 0,c=void 0,l=!1}function d(e){let t=n?.delay;return typeof t==`function`?t(e):t??ye}function f(e){var t,r,i;let[o,d,f]=[c,s,l];if(u(),!n?.onMouseUp||!d||!o||n!=null&&(t=n.modifiers)!=null&&t.self&&e.target!==a.value)return;n!=null&&(r=n.modifiers)!=null&&r.prevent&&e.preventDefault(),n!=null&&(i=n.modifiers)!=null&&i.stop&&e.stopPropagation();let p=e.x-d.x,m=e.y-d.y,h=Math.sqrt(p*p+m*m);n.onMouseUp(e.timeStamp-o,h,f,e)}function p(e){var r,i,f;n!=null&&(r=n.modifiers)!=null&&r.self&&e.target!==a.value||(u(),n!=null&&(i=n.modifiers)!=null&&i.prevent&&e.preventDefault(),n!=null&&(f=n.modifiers)!=null&&f.stop&&e.stopPropagation(),s={x:e.x,y:e.y},c=e.timeStamp,o=setTimeout(()=>{l=!0,t(e)},d(e)))}function m(e){var t,r,i;if(n!=null&&(t=n.modifiers)!=null&&t.self&&e.target!==a.value||!s||n?.distanceThreshold===!1)return;n!=null&&(r=n.modifiers)!=null&&r.prevent&&e.preventDefault(),n!=null&&(i=n.modifiers)!=null&&i.stop&&e.stopPropagation();let o=e.x-s.x,c=e.y-s.y;Math.sqrt(o*o+c*c)>=(n?.distanceThreshold??be)&&u()}let h={capture:n==null||(r=n.modifiers)==null?void 0:r.capture,once:n==null||(i=n.modifiers)==null?void 0:i.once},g=[U(a,`pointerdown`,p,h),U(a,`pointermove`,m,h),U(a,[`pointerup`,`pointerleave`,`pointercancel`],f,h)];return()=>g.forEach(e=>e())}function Se(n,r,i){let{immediate:a=!0,delay:o=0,onError:s=globalThis.reportError??O,onSuccess:c=O,resetOnExecute:u=!0,shallow:d=!0,throwError:f}=i??{},p=d?e(r):l(r),m=e(!1),h=e(!1),g=e(void 0),_=0;async function v(e=0,...i){let a=_+=1;u&&(p.value=t(r)),g.value=void 0,m.value=!1,h.value=!0,e>0&&await P(e);let o=typeof n==`function`?n(...i):n;try{let e=await o;return a===_&&(p.value=e,m.value=!0),c(e),e}catch(e){if(a===_&&(g.value=e),s(e),f)throw e}finally{a===_&&(h.value=!1)}}a&&v(o);let y={state:p,isReady:m,isLoading:h,error:g,execute:v,executeImmediate:(...e)=>v(0,...e)};function b(){return new Promise((e,t)=>{le(h).toBe(!1).then(()=>e(y)).catch(t)})}return{...y,then(e,t){return b().then(e,t)}}}var J=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},Y=`__vueuse_ssr_handlers__`,Ce=we();function we(){return Y in J||(J[Y]=J[Y]||{}),J[Y]}function Te(e,t){return Ce[e]||t}function Ee(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var De={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},X=`vueuse-storage`;function Oe(r,i,a,o={}){let{flush:s=`pre`,deep:c=!0,listenToStorageChanges:u=!0,writeDefaults:d=!0,mergeDefaults:f=!1,shallow:p,window:m=V,eventFilter:h,onError:_=e=>{console.error(e)},initOnMounted:v}=o,b=(p?e:l)(typeof i==`function`?i():i),x=y(()=>t(r));if(!a)try{a=Te(`getDefaultStorage`,()=>V?.localStorage)()}catch(e){_(e)}if(!a)return b;let S=t(i),C=Ee(S),w=o.serializer??De[C],{pause:T,resume:E}=se(b,e=>k(e),{flush:s,deep:c,eventFilter:h});g(x,()=>j(),{flush:s});let D=!1;m&&u&&(a instanceof Storage?U(m,`storage`,e=>{(!v||D)&&j(e)},{passive:!0}):U(m,X,e=>{(!v||D)&&M(e)})),v?z(()=>{D=!0,j()}):j();function O(e,t){if(m){let n={key:x.value,oldValue:e,newValue:t,storageArea:a};m.dispatchEvent(a instanceof Storage?new StorageEvent(`storage`,n):new CustomEvent(X,{detail:n}))}}function k(e){try{let t=a.getItem(x.value);if(e==null)O(t,null),a.removeItem(x.value);else{let n=w.write(e);t!==n&&(a.setItem(x.value,n),O(t,n))}}catch(e){_(e)}}function A(e){let t=e?e.newValue:a.getItem(x.value);if(t==null)return d&&S!=null&&a.setItem(x.value,w.write(S)),S;if(!e&&f){let e=w.read(t);return typeof f==`function`?f(e,S):C===`object`&&!Array.isArray(e)?{...S,...e}:e}return typeof t==`string`?w.read(t):t}function j(e){if(!(e&&e.storageArea!==a)){if(e&&e.key==null)b.value=S;else if(!(e&&e.key!==x.value)){T();try{let t=w.write(b.value);(e===void 0||e?.newValue!==t)&&(b.value=A(e))}catch(e){_(e)}finally{e?n(E):E()}}}}function M(e){j(e.detail)}return b}function ke(n,r){let i=e(d()),a=j(n),o=y({get(){let e=a.value,t=r?.getIndexOf?r.getIndexOf(i.value,e):e.indexOf(i.value);return t<0&&(t=r?.fallbackIndex??0),t},set(e){s(e)}});function s(e){let t=a.value,n=t.length,r=t[(e%n+n)%n];return i.value=r,r}function c(e=1){return s(o.value+e)}function l(e=1){return c(e)}function u(e=1){return c(-e)}function d(){return t(r?.initialValue??t(n)[0])??void 0}return g(a,()=>s(o.value)),{state:i,index:o,next:l,prev:u,go:s}}function Z(e,n,r={}){let{window:i=V,...a}=r,o,s=G(()=>i&&`ResizeObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=y(()=>{let n=t(e);return Array.isArray(n)?n.map(e=>H(e)):[H(n)]}),u=g(l,e=>{if(c(),s.value&&i){o=new ResizeObserver(n);for(let t of e)t instanceof Element&&o.observe(t,a)}},{immediate:!0,flush:`post`}),d=()=>{c(),u()};return C(d),{isSupported:s,stop:d}}function Ae(t,n={}){let{reset:r=!0,windowResize:i=!0,windowScroll:a=!0,immediate:o=!0,updateTiming:s=`sync`}=n,c=e(0),l=e(0),u=e(0),d=e(0),f=e(0),p=e(0),m=e(0),h=e(0);function _(){let e=H(t);if(!e){r&&(c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let n=e.getBoundingClientRect();c.value=n.height,l.value=n.bottom,u.value=n.left,d.value=n.right,f.value=n.top,p.value=n.width,m.value=n.x,h.value=n.y}function v(){s===`sync`?_():s===`next-frame`&&requestAnimationFrame(()=>_())}return Z(t,v),g(()=>H(t),e=>!e&&v()),K(t,v,{attributeFilter:[`style`,`class`]}),a&&U(`scroll`,v,{capture:!0,passive:!0}),i&&U(`resize`,v,{passive:!0}),z(()=>{o&&v()}),{height:c,bottom:l,left:u,right:d,top:f,width:p,x:m,y:h,update:v}}function je(t,n={}){let{delayEnter:r=0,delayLeave:i=0,triggerOnRemoval:a=!1,window:o=V}=n,s=e(!1),c,l=e=>{let t=e?r:i;c&&=(clearTimeout(c),void 0),t?c=setTimeout(()=>s.value=e,t):s.value=e};return o&&(U(t,`mouseenter`,()=>l(!0),{passive:!0}),U(t,`mouseleave`,()=>l(!1),{passive:!0}),a&&ge(y(()=>H(t)),()=>l(!1))),s}function Me(t,n={width:0,height:0},r={}){let{window:i=V,box:a=`content-box`}=r,o=y(()=>{var e;return(e=H(t))==null||(e=e.namespaceURI)==null?void 0:e.includes(`svg`)}),s=e(n.width),c=e(n.height),{stop:l}=Z(t,([e])=>{let n=a===`border-box`?e.borderBoxSize:a===`content-box`?e.contentBoxSize:e.devicePixelContentBoxSize;if(i&&o.value){let e=H(t);if(e){let t=e.getBoundingClientRect();s.value=t.width,c.value=t.height}}else if(n){let e=F(n);s.value=e.reduce((e,{inlineSize:t})=>e+t,0),c.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=e.contentRect.width,c.value=e.contentRect.height},r);z(()=>{let e=H(t);if(e&&`offsetWidth`in e){if(a===`content-box`&&i){let t=i.getComputedStyle(e),n=Number.parseFloat(t.paddingLeft)+Number.parseFloat(t.paddingRight),r=Number.parseFloat(t.paddingTop)+Number.parseFloat(t.paddingBottom),a=Number.parseFloat(t.borderLeftWidth)+Number.parseFloat(t.borderRightWidth),o=Number.parseFloat(t.borderTopWidth)+Number.parseFloat(t.borderBottomWidth);s.value=e.offsetWidth-n-a,c.value=e.offsetHeight-r-o}else s.value=e.offsetWidth,c.value=e.offsetHeight}else e&&(s.value=n.width,c.value=n.height)});let u=g(()=>H(t),e=>{s.value=e?n.width:0,c.value=e?n.height:0});function d(){l(),u()}return{width:s,height:c,stop:d}}function Ne(n,r,i={}){let{root:a,rootMargin:o,threshold:s=0,window:c=V,immediate:l=!0}=i,u=G(()=>c&&`IntersectionObserver`in c),d=y(()=>F(t(n)).map(H).filter(T)),f=O,p=e(l),m=u.value?g(()=>[d.value,H(a),t(o),p.value],([e,t,n])=>{if(f(),!p.value||!e.length)return;let i=new IntersectionObserver(r,{root:H(t),rootMargin:n,threshold:s});e.forEach(e=>e&&i.observe(e)),f=()=>{i.disconnect(),f=O}},{immediate:l,flush:`post`}):O,h=()=>{f(),m(),p.value=!1};return C(h),{isSupported:u,isActive:p,pause(){f(),p.value=!1},resume(){p.value=!0},stop:h}}function Pe(t,n={}){let{window:r=V,scrollTarget:i,threshold:a=0,rootMargin:o,once:s=!1,initialValue:c=!1}=n,l=e(c),u=Ne(t,e=>{let t=l.value,n=0;for(let r of e)r.time>=n&&(n=r.time,t=r.isIntersecting);l.value=t,s&&pe(l,()=>{u.stop()})},{root:i,window:r,threshold:a,rootMargin:o});return n.controls?{...u,isVisible:l}:l}function Q(e){return typeof Window<`u`&&e instanceof Window?e.document.documentElement:typeof Document<`u`&&e instanceof Document?e.documentElement:e}var Fe=1;function Ie(n,r={}){let{throttle:i=0,idle:a=200,onStop:o=O,onScroll:s=O,offset:c={left:0,right:0,top:0,bottom:0},observe:l={mutation:!1},eventListenerOptions:u={capture:!1,passive:!0},behavior:d=`auto`,window:f=V,onError:p=e=>{console.error(e)}}=r,m=typeof l==`boolean`?{mutation:l}:l,h=e(0),g=e(0),v=y({get(){return h.value},set(e){x(e,void 0)}}),b=y({get(){return g.value},set(e){x(void 0,e)}});function x(e,r){var i,a;if(!f)return;let o=t(n);if(!o)return;(i=o instanceof Document?f.document.body:o)==null||i.scrollTo({top:t(r)??b.value,left:t(e)??v.value,behavior:t(d)});let s=(o==null||(a=o.document)==null?void 0:a.documentElement)||o?.documentElement||o;v!=null&&(h.value=s.scrollLeft),b!=null&&(g.value=s.scrollTop)}let S=e(!1),C=_({left:!0,right:!1,top:!0,bottom:!1}),w=_({left:!1,right:!1,top:!1,bottom:!1}),T=e=>{S.value&&(S.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,o(e))},E=L(T,i+a),D=e=>{var t;if(!f)return;let n=(e==null||(t=e.document)==null?void 0:t.documentElement)||e?.documentElement||H(e),{display:r,flexDirection:i,direction:a}=f.getComputedStyle(n),o=a===`rtl`?-1:1,s=n.scrollLeft;w.left=s<h.value,w.right=s>h.value;let l=Math.abs(s*o)<=(c.left||0),u=Math.abs(s*o)+n.clientWidth>=n.scrollWidth-(c.right||0)-Fe;r===`flex`&&i===`row-reverse`?(C.left=u,C.right=l):(C.left=l,C.right=u),h.value=s;let d=n.scrollTop;e===f.document&&!d&&(d=f.document.body.scrollTop),w.top=d<g.value,w.bottom=d>g.value;let p=Math.abs(d)<=(c.top||0),m=Math.abs(d)+n.clientHeight>=n.scrollHeight-(c.bottom||0)-Fe;r===`flex`&&i===`column-reverse`?(C.top=m,C.bottom=p):(C.top=p,C.bottom=m),g.value=d},k=e=>{if(!f)return;let t=e.target.documentElement??e.target;D(t),S.value=!0,E(e),s(e)};return U(n,`scroll`,i?oe(k,i,!0,!1):k,u),z(()=>{try{let e=t(n);if(!e)return;D(e)}catch(e){p(e)}}),m?.mutation&&n!=null&&n!==f&&n!==document&&K(n,()=>{let e=t(n);e&&D(e)},{attributes:!0,childList:!0,subtree:!0}),U(n,`scrollend`,T,u),{x:v,y:b,isScrolling:S,arrivedState:C,directions:w,measure(){let e=t(n);f&&e&&D(e)}}}function Le(r,i,a={}){let{direction:o=`bottom`,interval:s=100,canLoadMore:c=()=>!0}=a,l=_(Ie(r,{...a,offset:{[o]:a.distance??0,...a.offset}})),u=e(),d=y(()=>!!u.value),f=y(()=>Q(t(r))),p=Pe(f),m=y(()=>f.value?c(f.value):!1);function h(){if(l.measure(),!f.value||!p.value||!m.value||u.value)return;let{scrollHeight:e,clientHeight:t,scrollWidth:r,clientWidth:a}=f.value,c=o===`bottom`||o===`top`?e<=t:r<=a;(l.arrivedState[o]||c)&&(u.value=Promise.all([i(l),new Promise(e=>setTimeout(e,s))]).finally(()=>{u.value=null,n(()=>h())}))}return ce(g(()=>[l.arrivedState[o],p.value,m.value],h,{immediate:!0,flush:`post`})),{isLoading:d,reset(){n(()=>h())}}}function Re(e,t,n={}){let{window:r=V}=n;return Oe(e,t,r?.localStorage,n)}var ze={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function Be(t={}){let{type:n=`page`,touch:r=!0,resetOnTouchEnds:i=!1,initialValue:a={x:0,y:0},window:o=V,target:s=o,scroll:c=!0,eventFilter:l}=t,u=null,d=0,f=0,p=e(a.x),m=e(a.y),h=e(null),g=typeof n==`function`?n:ze[n],_=e=>{let t=g(e);u=e,t&&([p.value,m.value]=t,h.value=`mouse`),o&&(d=o.scrollX,f=o.scrollY)},v=e=>{if(e.touches.length>0){let t=g(e.touches[0]);t&&([p.value,m.value]=t,h.value=`touch`)}},y=()=>{if(!u||!o)return;let e=g(u);u instanceof MouseEvent&&e&&(p.value=e[0]+o.scrollX-d,m.value=e[1]+o.scrollY-f)},b=()=>{p.value=a.x,m.value=a.y},x=l?e=>l(()=>_(e),{}):e=>_(e),S=l?e=>l(()=>v(e),{}):e=>v(e),C=l?()=>l(()=>y(),{}):()=>y();if(s){let e={passive:!0};U(s,[`mousemove`,`dragover`],x,e),r&&n!==`movement`&&(U(s,[`touchstart`,`touchmove`],S,e),i&&U(s,`touchend`,b,e)),c&&n===`page`&&U(o,`scroll`,C,e)}return{x:p,y:m,sourceType:h}}function Ve(t,n={}){let{windowResize:r=!0,windowScroll:i=!0,handleOutside:a=!0,window:o=V}=n,s=n.type||`page`,{x:c,y:l,sourceType:u}=Be(n),d=e(t??o?.document.body),f=e(0),p=e(0),m=e(0),h=e(0),_=e(0),v=e(0),y=e(!0);function b(){if(!o)return;let e=H(d);if(e&&e instanceof Element)for(let t of e.getClientRects()){let{left:e,top:n,width:r,height:i}=t;m.value=e+(s===`page`?o.pageXOffset:0),h.value=n+(s===`page`?o.pageYOffset:0),_.value=i,v.value=r;let u=c.value-m.value,d=l.value-h.value;if(y.value=r===0||i===0||u<0||d<0||u>r||d>i,(a||!y.value)&&(f.value=u,p.value=d),!y.value)break}}let x=[];function S(){x.forEach(e=>e()),x.length=0}if(z(()=>{b()}),o){let{stop:e}=Z(d,b),{stop:t}=K(d,b,{attributeFilter:[`style`,`class`]}),n=g([d,c,l],b);x.push(e,t,n),U(document,`mouseleave`,()=>y.value=!0,{passive:!0}),i&&x.push(U(`scroll`,b,{capture:!0,passive:!0})),r&&x.push(U(`resize`,b,{passive:!0}))}return{x:c,y:l,sourceType:u,elementX:f,elementY:p,elementPositionX:m,elementPositionY:h,elementHeight:_,elementWidth:v,isOutside:y,stop:S}}function He(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!t||t.tagName===`BODY`?!1:He(t)}}function Ue(e){let t=e||window.event,n=t.target;return He(n)?!1:t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)}var $=new WeakMap;function We(n,r=!1){let i=e(r),a=null,o=``;g(j(n),e=>{let n=Q(t(e));if(n){let e=n;if($.get(e)||$.set(e,e.style.overflow),e.style.overflow!==`hidden`&&(o=e.style.overflow),e.style.overflow===`hidden`)return i.value=!0;if(i.value)return e.style.overflow=`hidden`}},{immediate:!0});let s=()=>{let e=Q(t(n));e&&!i.value&&(k&&(a=U(e,`touchmove`,e=>{Ue(e)},{passive:!1})),e.style.overflow=`hidden`,i.value=!0)},c=()=>{let e=Q(t(n));e&&i.value&&(k&&a?.(),e.style.overflow=o,$.delete(e),i.value=!1)};return C(c),y({get(){return i.value},set(e){e?s():c()}})}export{ae as C,ue as D,L as E,de as O,T as S,C as T,Ie as _,Se as a,S as b,je as c,Le as d,Ne as f,Z as g,Ve as h,xe as i,Me as l,Be as m,ve as n,ke as o,Re as p,q as r,Ae as s,me as t,Pe as u,We as v,F as w,w as x,x as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,Ct as n,H as r,J as i,Kt as a,N as o,Ot as s,Q as c,S as l,T as u,Wt as d,Y as f,Z as p,bt as m,ct as h,et as g,g as _,j as v,lt as y,ot as b,q as x,qt as S,st as C,ut as w,vt as T,w as E,x as D}from"./CgY19zhT.js";import{nt as O,t as k}from"./davnVqEL.js";import{f as A,p as j}from"./BQP5SyRf.js";import{n as M}from"./-2hSMOj2.js";import{a as N,n as ee,t as P}from"#entry";import{t as F}from"./BDNMzG2s.js";import{A as I,C as L,D as R,E as z,O as B,S as V,_ as H,a as U,b as W,c as G,d as te,f as K,g as q,h as J,k as Y,l as ne,m as X,n as Z,o as re,r as ie,s as ae,t as oe,u as se,v as Q,x as ce}from"./DnZCvkEg.js";import{D as le,E as ue,O as de,a as fe,m as pe,n as me,o as he,y as ge}from"./D5PRIZYS.js";var $=o({__name:`DisplayNumberBadge`,props:{number:{},color:{default:`badge-color-gray op75`},icon:{},prefix:{},suffix:{},format:{default:`locale`}},setup(t){let n=t,r=D(()=>n.format===`percent`?Number(n.number).toLocaleString(void 0,{style:`percent`,minimumFractionDigits:2,maximumFractionDigits:2}):Number(n.number).toLocaleString());return(n,i)=>(f(),u(`div`,{class:d([t.color,`px-0.4em py-0.2em font-mono line-height-none flex items-center`])},[t.icon?(f(),u(`div`,{key:0,class:d([t.icon,`mr-1`])},null,2)):E(``,!0),e(` `+S(t.prefix||``)+S(r.value)+S(t.suffix||``)+` `,1),c(n.$slots,`after`)],2))}}),_e={class:`op50 text-xs flex justify-center items-center`},ve=o({__name:`FlowmapNodePluginInfo`,props:{modules:{},calls:{},duration:{}},setup(e){return(t,n)=>(f(),u(`span`,_e,[v($,{number:e.modules,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${e.modules}`},null,8,[`number`,`title`]),n[1]||=l(`span`,{class:`op40`},`|`,-1),v($,{number:e.calls,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${e.calls}`},null,8,[`number`,`title`]),n[2]||=l(`span`,{class:`op40`},`|`,-1),v(J,{duration:e.duration,class:`flex gap-1 items-center px1`,title:`Total build cost: ${s(H)(e.duration,!0)}`},{default:y(()=>[...n[0]||=[l(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`])]))}}),ye={class:`flex flex-col h-full min-h-0`},be={class:`select-none flex-1 min-h-0 of-x-hidden of-y-auto ws-nowrap w-auto p4 flex flex-col`,style:{"scrollbar-gutter":`stable`}},xe={class:`flex`},Se={class:`flex items-center justify-center relative w-60 h14`},Ce={class:`op50 text-xs flex items-center justify-center gap-1 h6`},we=[`datetime`],Te={class:`flex items-center justify-center relative w-60 h14`},Ee={class:`op50 text-xs flex items-center justify-center gap-1 h6`},De=[`datetime`],Oe=Object.assign(o({__name:`PluginFlowTimeline`,props:{buildMetrics:{}},setup(t){let n=t;function r(e){let t={duration:0,calls:e.length,modules:0},n=new Set;return e.forEach(e=>{n.has(e.module)||(n.add(e.module),t.modules++),t.duration+=e.duration}),t}let i=D(()=>r(n.buildMetrics.resolveIdMetrics)),a=D(()=>r(n.buildMetrics.loadMetrics)),o=D(()=>r(n.buildMetrics.transformMetrics)),d=D(()=>{let e=n.buildMetrics.calls;if(e?.length)return e[0].timestamp_start}),p=D(()=>{let e=n.buildMetrics.calls;if(e?.length)return e.at(-1).timestamp_end});return(n,r)=>{let m=se,h=ve;return f(),u(`div`,ye,[c(n.$slots,`header`),l(`div`,be,[l(`div`,xe,[v(m,{active:!1,"class-node-inner":`w60`},{content:y(()=>[l(`div`,{class:`p2 w-full text-center`,onClick:r[0]||=e=>s(K).pluginDetailSelectedHook=``},[v(X,{name:t.buildMetrics.plugin_name,class:`font-mono text-sm ws-nowrap text-ellipsis line-clamp-1`},null,8,[`name`])])]),_:1})]),l(`div`,Se,[r[5]||=l(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),r[6]||=l(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),l(`span`,Ce,[r[4]||=l(`i`,{class:`i-ph-airplane-takeoff-thin text-4 inline-flex`},null,-1),d.value?(f(),u(`time`,{key:0,datetime:new Date(d.value).toISOString()},S(new Date(d.value).toLocaleString()),9,we)):E(``,!0)])]),v(m,{"class-node-inner":`w60`,"class-node-outer":`${!i.value.modules&&!i.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0},active:s(K).pluginDetailSelectedHook===`resolve`},{content:y(()=>[l(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[1]||=e=>s(K).pluginDetailSelectedHook=`resolve`},[r[7]||=l(`span`,{class:`flex items-center justify-center gap-1`},[l(`i`,{class:`i-ph-magnifying-glass-duotone`}),e(` Resolve Id `)],-1),l(`div`,null,[v(h,{modules:i.value.modules,calls:i.value.calls,duration:i.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`class-node-outer`,`active`]),v(m,{active:s(K).pluginDetailSelectedHook===`load`,"class-node-inner":`w60`,"class-node-outer":`${!a.value.modules&&!a.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0}},{content:y(()=>[l(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[2]||=e=>s(K).pluginDetailSelectedHook=`load`},[r[8]||=l(`span`,{class:`flex items-center justify-center gap-1`},[l(`i`,{class:`i-ph-upload-simple-duotone`}),e(` Load `)],-1),l(`div`,null,[v(h,{modules:a.value.modules,calls:a.value.calls,duration:a.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),v(m,{active:s(K).pluginDetailSelectedHook===`transform`,"class-node-inner":`w60`,"class-node-outer":`${!o.value.modules&&!o.value.calls?`b-dashed!`:``}`},{content:y(()=>[l(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[3]||=e=>s(K).pluginDetailSelectedHook=`transform`},[r[9]||=l(`span`,{class:`flex items-center justify-center gap-1`},[l(`i`,{class:`i-ph-magic-wand-duotone`}),e(` Transform `)],-1),l(`div`,null,[v(h,{modules:o.value.modules,calls:o.value.calls,duration:o.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),l(`div`,Te,[r[11]||=l(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),r[12]||=l(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),r[13]||=l(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-14 w-2 h-2 border-4 rounded-full`},null,-1),l(`span`,Ee,[r[10]||=l(`i`,{class:`i-ph-airplane-landing-thin text-4 inline-flex`},null,-1),p.value?(f(),u(`time`,{key:0,datetime:new Date(p.value).toISOString()},S(new Date(p.value).toLocaleString()),9,De)):E(``,!0)])])])])}}}),{__name:`FlowmapPluginFlowTimeline`}),ke={role:`row`,class:`border-b border-base bg-base flex flex-row`},Ae={key:0,role:`columnheader`,class:`bg-base flex-none w32 ws-nowrap p1 text-center font-600`},je={key:1,role:`columnheader`,class:`bg-base flex-1 min-w100 ws-nowrap p1 text-left font-600`},Me={class:`flex flex-row gap1 items-center w-full`},Ne={class:`w-6 h-6 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`},Pe={class:`p2 flex flex-col gap2`},Fe=[`title`],Ie=[`checked`,`onChange`],Le={class:`text-sm`},Re={key:2,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none ws-nowrap p1 text-center font-600 w-27`},ze={class:`w-6 h-6 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`},Be={key:3,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none min-w52 ws-nowrap p1 text-center font-600`},Ve={key:4,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none min-w52 ws-nowrap p1 text-center font-600`},He={key:0,role:`cell`,class:`flex items-center justify-center flex-none w32 ws-nowrap op80`},Ue={key:1,role:`cell`,class:`flex-1 min-w100 text-left text-ellipsis line-clamp-2`},We={key:2,role:`cell`,class:`flex items-center justify-center flex-none text-center text-sm w-27`},Ge={key:3,role:`cell`,class:`flex items-center justify-center flex-none text-center font-mono text-sm min-w52 op80`},Ke={key:4,role:`cell`,class:`flex items-center justify-center flex-none text-center font-mono text-sm min-w52 op80`},qe={key:1,role:`table`,class:`min-w-max h-full`},Je={class:`p4`},Ye={class:`w-full h-48 flex items-center justify-center op50 italic`},Xe={key:0},Ze={key:1},Qe=Object.assign(F(o({__name:`PluginDetailsTable`,props:{modules:{},buildMetrics:{},selectedFields:{},root:{}},setup(n){let r=n,i={resolve:`Resolve Id`,load:`Load`,transform:`Transform`},a=D(()=>r.modules.map(e=>({mod:e,type:Y(e.id)}))),o=D(()=>R.filter(e=>a.value.some(t=>e.match.test(t.mod.id)))),c=D(()=>{let e=new Map;for(let{mod:t,type:n}of a.value)e.set(t.id,n.name);return e}),h=m(K.value.pluginDetailsModuleTypes??o.value.map(e=>e.name)),g=D(()=>new Set(h.value)),{state:b,next:x}=he([``,`desc`,`asc`],{initialValue:K.value.pluginDetailsDurationSortType}),C=D(()=>{let e=K.value.pluginDetailSelectedHook,t=K.value.pluginDetailsShowType,n=t!==`all`&&[`load`,`transform`].includes(e),i=new Map(c.value),a=[];for(let o of r.buildMetrics.calls){if(!o.module||e&&o.type!==e||n&&(t===`changed`?o.unchanged:!o.unchanged))continue;let r=i.get(o.module);r||(r=Y(o.module).name,i.set(o.module,r)),g.value.has(r)&&a.push(o)}return b.value&&a.sort((e,t)=>b.value===`asc`?e.duration-t.duration:t.duration-e.duration),a});function w(e){h.value?.includes(e.name)?h.value=h.value?.filter(t=>t!==e.name):h.value?.push(e.name),K.value.pluginDetailsModuleTypes=h.value}function T(){x(),K.value.pluginDetailsDurationSortType=b.value}function O(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}return(r,a)=>{let c=ce;return C.value.length&&n.selectedFields.length?(f(),t(W,{key:0,class:`plugin-details-table min-w-max h-full min-h-0`,role:`table`,items:C.value,"key-prop":`id`,"page-mode":!1,scroller:`fixed`,"item-size":36},{before:y(()=>[l(`div`,ke,[n.selectedFields.includes(`hookName`)?(f(),u(`div`,Ae,` Hook name `)):E(``,!0),n.selectedFields.includes(`module`)?(f(),u(`div`,je,[l(`button`,Me,[a[0]||=e(` Module `,-1),v(s(V),null,{popper:y(()=>[l(`div`,Pe,[(f(!0),u(_,null,p(o.value,e=>(f(),u(`label`,{key:e.name,title:e.description,class:`cursor-pointer module-type-filter border border-base rounded-md px2 py1 flex items-center gap-1 select-none`},[l(`input`,{type:`checkbox`,class:`mr1`,checked:h.value?.includes(e.name),onChange:t=>w(e)},null,40,Ie),l(`div`,{class:d([e.icon,`icon-catppuccin`])},null,2),l(`div`,Le,S(e.description||e.name),1)],8,Fe))),128))])]),default:y(()=>[l(`span`,Ne,[l(`i`,{class:d([`i-ph-funnel-duotone text-xs`,h.value.length===o.value.length?`op50`:`text-primary op100`])},null,2)])]),_:1})])])):E(``,!0),n.selectedFields.includes(`duration`)?(f(),u(`div`,Re,[l(`button`,{class:`flex flex-row gap1 items-center justify-center w-full`,onClick:T},[a[1]||=e(` Duration `,-1),l(`span`,ze,[l(`i`,{class:d([`text-xs`,[s(b)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,s(b)?`op100 text-primary`:`op50`]])},null,2)])])])):E(``,!0),n.selectedFields.includes(`startTime`)?(f(),u(`div`,Be,` Start Time `)):E(``,!0),n.selectedFields.includes(`endTime`)?(f(),u(`div`,Ve,` End Time `)):E(``,!0)])]),default:y(({item:e,index:t})=>[l(`div`,{role:`row`,class:d([`border-base border-b border-dashed flex flex-row h-9`,[t===C.value.length-1?`border-b-0`:``]])},[n.selectedFields.includes(`hookName`)?(f(),u(`div`,He,[v(L,{text:i[e.type]},null,8,[`text`])])):E(``,!0),n.selectedFields.includes(`module`)?(f(),u(`div`,Ue,[v(c,{id:e.module,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:n.root,link:O(e.graphModuleId)},null,8,[`id`,`cwd`,`link`])])):E(``,!0),n.selectedFields.includes(`duration`)?(f(),u(`div`,We,[v(J,{duration:e.duration},null,8,[`duration`])])):E(``,!0),n.selectedFields.includes(`startTime`)?(f(),u(`div`,Ge,S(s(Q)(e.timestamp_start)),1)):E(``,!0),n.selectedFields.includes(`endTime`)?(f(),u(`div`,Ke,S(s(Q)(e.timestamp_end)),1)):E(``,!0)],2)]),_:1},8,[`items`])):(f(),u(`div`,qe,[l(`div`,Je,[l(`div`,Ye,[n.selectedFields.length?(f(),u(`p`,Ze,` No data `)):(f(),u(`p`,Xe,` No columns selected `))])])]))}}}),[[`__scopeId`,`data-v-ba6a4bd9`]]),{__name:`DataPluginDetailsTable`}),$e={class:`p2 h-full w-full`},et={class:`flex border border-base rounded-2 h-full relative of-hidden`},tt={key:0,class:`of-hidden border-r border-base shrink-0 h-full min-h-0 flex flex-col`},nt={class:`px2 h10 border-b border-base bg-base rounded-t-2 flex items-center justify-end`},rt={class:`flex-1 h-full min-w-0 min-h-0 flex flex-col`},it={class:`flex items-center justify-between border-b border-base px2 h10 bg-base rounded-t-2 of-x-auto ws-nowrap`},at={class:`flex items-center h-full`},ot={key:0,class:`flex items-center justify-center gap1 h-full text-xs py1`},st={class:`op50 flex items-center gap-1`},ct=[`title`],lt={class:`text-xs op50`},ut={class:`flex-1 min-h-0 of-x-auto overscroll-contain`},dt=Object.assign(o({__name:`PluginFlow`,props:{modules:{},buildMetrics:{},root:{}},setup(t){let n=t,[r,i]=le(!0),a=[{match:/hookName/,name:`hookName`,description:`Hook name`,icon:`i-ph-function-duotone`},{match:/module/,name:`module`,description:`Module`,icon:`i-ph-package-duotone`},{match:/duration/,name:`duration`,description:`Duration`,icon:`i-ph-clock-countdown-duotone`},{match:/startTime/,name:`startTime`,description:`Start Time`,icon:`i-ph-clock-duotone`},{match:/endTime/,name:`endTime`,description:`End Time`,icon:`i-ph-clock-duotone`}],o=m({selected:K.value.pluginDetailsTableFields,search:!1}),c=D(()=>K.value.pluginDetailsTableFields?K.value.pluginDetailsTableFields:a.map(e=>e.name)),{state:d,next:p}=he([`changed`,`unchanged`,`all`],{initialValue:K.value.pluginDetailsShowType}),h=D(()=>d.value===`all`?`Show Changed`:d.value===`changed`?`Show Unchanged`:`Show All`),g=D(()=>!(![`load`,`transform`].includes(K.value.pluginDetailSelectedHook)||!n.buildMetrics.calls?.filter(e=>e.type===K.value.pluginDetailSelectedHook).filter(e=>e.unchanged).length)),_=D(()=>{let e=n.buildMetrics.calls?.filter(e=>e.type===K.value.pluginDetailSelectedHook).filter(e=>e.unchanged),t=e.reduce((e,t)=>e+t.duration,0);return{count:e.length,duration:t}});C(()=>o.value.selected,e=>{K.value.pluginDetailsTableFields=e});function b(){p(),K.value.pluginDetailsShowType=d.value}return(n,d)=>{let p=Oe,m=Qe;return f(),u(`div`,$e,[l(`div`,et,[s(r)?(f(),u(`div`,tt,[v(p,{"build-metrics":t.buildMetrics},{header:y(()=>[l(`div`,nt,[l(`button`,{class:`w8 h8 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`,onClick:d[0]||=e=>s(i)(!1)},[...d[3]||=[l(`i`,{class:`i-ph-sidebar-simple-duotone inline-flex op50`},null,-1)]])])]),_:1},8,[`build-metrics`])])):E(``,!0),l(`div`,rt,[l(`div`,it,[l(`div`,at,[s(r)?E(``,!0):(f(),u(`button`,{key:0,class:`w8 h8 rounded-full cursor-pointer mr1 hover:bg-active flex items-center justify-center`,onClick:d[1]||=e=>s(i)(!0)},[...d[4]||=[l(`i`,{class:`i-ph-sidebar-duotone inline-flex op50`},null,-1)]])),v(Z,{modelValue:o.value,"onUpdate:modelValue":d[2]||=e=>o.value=e,"selected-container-class":`px0! py1 border-none bg-none flex-nowrap! h-full`,rules:a,class:`[&_[icon-catppuccin]]:filter-none! h-full border-none`},null,8,[`modelValue`])]),g.value?(f(),u(`div`,ot,[l(`p`,st,[v($,{number:_.value.count},null,8,[`number`]),d[5]||=e(` module unchanged, but cost `,-1),v(J,{duration:_.value.duration},null,8,[`duration`])]),l(`button`,{class:`rounded-md px2 py1 select-none h-full border border-base rounded-lg hover:bg-active`,title:h.value,onClick:b},[l(`div`,lt,S(h.value),1)],8,ct)])):E(``,!0)]),l(`div`,ut,[v(m,{modules:t.modules,"build-metrics":t.buildMetrics,"selected-fields":c.value,root:t.root},null,8,[`modules`,`build-metrics`,`selected-fields`,`root`])])])])])}}}),{__name:`FlowmapPluginFlow`}),ft={class:`flex gap-1 items-center flex-wrap`},pt={key:0,class:`i-ph-arrow-right-bold text-sm op-fade`},mt=[`onClick`],ht=o({__name:`ChartNavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=D(()=>{let e=[],t=n.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,t)=>(f(),u(`div`,ft,[(f(!0),u(_,null,p(i.value,(e,t)=>(f(),u(_,{key:e.id},[t>0?(f(),u(`div`,pt)):E(``,!0),l(`button`,{class:`hover:bg-active rounded px1`,onClick:t=>r(`select`,e)},[l(`span`,null,S(e.text||e.id),1)],8,mt)],64))),128))]))}}),gt={class:`grid grid-cols-[max-content_1fr] gap-2 p4`},_t={class:`flex flex-col gap-4`},vt={key:0,class:`grid grid-cols-[300px_1fr] gap-1`},yt=[`onClick`],bt={key:0,class:`flex gap2 items-center pl2 hover:bg-active`},xt={class:`font-mono text-sm`},St=[`onClick`],Ct=[`title`],wt=o({__name:`PluginsSunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(t,{emit:n}){let r=t,i=n,o=b(`el`);h(()=>o.value?.append(r.graph.el));function s(e){return re(r.graph.options.getColor?.(e)||`#000`)}return(n,r)=>{let d=g(`tooltip`);return f(),u(`div`,gt,[l(`div`,{ref_key:`el`,ref:o,class:`w-500px`},null,512),l(`div`,_t,[v(ht,{class:`border-b border-base py2`,selected:t.selected,options:t.graph.options,onSelect:r[0]||=e=>i(`select`,e)},null,8,[`selected`,`options`]),t.selected?(f(),u(`div`,vt,[(f(!0),u(_,null,p(t.selected.children,o=>(f(),u(_,{key:o.id},[l(`button`,{class:`ws-nowrap text-nowrap text-left overflow-hidden text-ellipsis text-sm hover:bg-active rounded px2`,onClick:e=>i(`select`,o)},[o.meta?.type===`hook`?(f(),u(`div`,bt,[r[1]||=l(`i`,{class:`i-ph-function-duotone inline-flex`},null,-1),l(`span`,xt,S(o.text),1)])):c(n.$slots,`module`,{child:o},()=>[l(`span`,null,S(o.text||o.id),1)],void 0,1)],8,yt),l(`button`,{class:`relative flex gap-1 items-center hover:bg-active rounded`,onClick:e=>i(`select`,o)},[l(`div`,{class:`h-5 rounded shadow border border-base`,style:a({background:s(o),width:`${o.size/t.selected.size*100}%`})},null,4),v(J,{duration:o.size,class:`text-xs`},null,8,[`duration`]),o.children.length>0&&o.meta?.type!==`hook`?w((f(),u(`div`,{key:0,title:`${o.children.length} dependencies`,class:`text-xs op-fade`},[e(` (`+S(o.children.length)+`) `,1)],8,Ct)),[[d,`${o.children.length} dependencies`]]):E(``,!0)],8,St)],64))),128))])):E(``,!0)])])}}});function Tt(e){let{data:t,nameKey:a,sizeKey:o,rootText:c,nodeType:l,graphOptions:u,onUpdate:d}=e,f=n(void 0),p=n(void 0),h=m(void 0),g=n(void 0),_,v=D(()=>{if(e.tree)return e.tree.value;let n=s(t),r=new Map,i=0,u={id:`~root`,text:c,size:0,sizeSelf:0,children:[]};if(!n?.length)return{map:r,root:u,maxDepth:i};let d=[];d.unshift(()=>{u.size+=u.children.reduce((e,t)=>e+t.size,0),u.subtext=q(u.size).join(` `),u.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function f(e,t,n,a,o){if(r.has(t))return r.get(t);o>i&&(i=o);let s={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:a};return r.set(t,s),a.children.push(s),d.unshift(()=>{let t=s.sizeSelf;s.size+=s.children.reduce((e,t)=>e+t.size,0),s.subtext=q(s.size).join(` `),s.children.length&&t/s.size>.1&&s.children.push({id:`${s.id}-self`,text:``,size:t,sizeSelf:t,subtext:q(t).join(` `),children:[],meta:{...e,path:``,type:l},parent:s}),s.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),s}function p(e){let t=e[a].split(`/`).filter(Boolean),n=u,i=``,s=0;t.forEach((c,u)=>{if(i+=(i?`/`:``)+c,s++,u===t.length-1){let t={id:e[a],text:c,size:e[o],sizeSelf:e[o],subtext:q(e[o]).join(` `),children:[],meta:{...e,path:c,type:l}};n.children.push(t),r.set(e[a],t)}else n=f(e,i,c,n,s)})}return n.forEach(p),d.forEach(e=>e()),{map:r,root:u,maxDepth:i}}),y=D(()=>({animate:K.value.chartAnimation,palette:{stroke:M.value?`#222`:`#555`,fg:M.value?`#fff`:`#000`,bg:M.value?`#111`:`#fff`},getColor:ae(v.value.root,M.value?.8:.9,M.value?1:1.1),getSubtext:e=>e.subtext,...u}));function b(e,t){h.value=e?.meta,e?.children.length||(e=e?.parent),g.value?.select(e,t)}function x(){_?.(),p.value=v.value.root,d?.(),r(()=>{let e=h.value&&v.value.map.get(h.value[a])||null;e&&b(e,!1)}),_=()=>{g.value?.dispose(),g.value=void 0,h.value=void 0}}return r(()=>{C(()=>[v.value,y.value],()=>{x()},{deep:!0,immediate:!1}),x()}),i(()=>{_?.()}),{tree:v,chartOptions:y,graph:g,nodeHover:f,nodeSelected:p,selectedNode:h,selectNode:b,buildGraph:x}}var Et={key:1,class:`relative h-full w-full`},Dt={class:`bg-glass absolute left-2 top-2 z-panel-content p2 border border-base rounded-lg flex flex-col gap-2`},Ot={class:`font-mono px1`},kt={class:`text-xs font-mono flex items-center gap-3 ml2`},At={class:`flex gap-2`},jt={class:`of-auto h-full pt-30`},Mt={key:2,class:`flex items-center justify-center w-full h-full`},Nt={key:0,class:`border border-base rounded-lg shadow-lg px3 py2 bg-glass pointer-events-none text-sm max-w-80`},Pt={key:0,class:`flex items-center gap2`},Ft={key:0,class:`flex font-semibold font-mono text-base mb2`},It={key:1,class:`border-t border-base pt2 flex flex-col gap-1.5 min-w-48`},Lt={class:`flex justify-between items-center py1`},Rt=[`datetime`],zt={class:`flex justify-between items-center py1`},Bt=[`datetime`],Vt={class:`flex justify-between items-center py1 border-t border-base border-dashed pt2`},Ht={key:2},Ut=Object.assign(o({__name:`PluginDetailsLoader`,props:{plugin:{},query:{},modules:{},root:{}},emits:[`close`],setup(n,{emit:r}){let i=n,a=r,o=ee(),{state:c,isLoading:p,execute:m}=fe(async()=>await o.value.call(`vite:inspect:get-plugin-details`,i.query,i.plugin),null),h=ue(()=>{m()},100);C(()=>[i.query.vite,i.query.env,i.plugin],()=>{m()}),P(()=>{h()});let g=D(()=>{let e=new Set;return c.value?.calls?.filter(t=>!e.has(t.module)&&(e.add(t.module),!0))??[]}),b=D(()=>c.value?.loadMetrics.reduce((e,t)=>e+t.duration,0)),x=D(()=>c.value?.transformMetrics.reduce((e,t)=>e+t.duration,0)),w=D(()=>c.value?.resolveIdMetrics.reduce((e,t)=>e+t.duration,0)),O=D(()=>c.value?.calls?.reduce((e,t)=>e+t.duration,0)),k=D(()=>i.modules.map(e=>({mod:e,path:oe(e.id,i.root),type:Y(e.id)}))),A=D(()=>R.filter(e=>k.value.some(t=>e.match.test(t.mod.id))));function j(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}let M=D(()=>{let e=new Map;if(!c.value)return{root:t({id:`~root`,text:`Project`,children:[]}),map:new Map,maxDepth:3};function t(t,n){e.set(t.id,t);let r=G(t,n,(e,t)=>(t?.meta?.duration??0)-(e?.meta?.duration??0));return r.children&&r.children.forEach(e=>{e.parent=r}),r}function n(e,n){let r=n.filter(e=>!A.value.some(t=>Y(e.module).name===t.name));return[...A.value.map((r,i)=>{let a=n.filter(e=>Y(e.module).name===r.name);return t({id:`${e}-${r.name}-${i}`,text:r.description,children:a.map((n,r)=>t({id:`${e}-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:r.description,id:`${e}-${r.name}-${i}`,duration:a.reduce((e,t)=>e+t.duration,0)}})}),t({id:`${e}-other`,text:`Other`,children:r.map((n,r)=>t({id:`${e}-other-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:`Other`,id:`${e}-other`,duration:r.reduce((e,t)=>e+t.duration,0)}})]}let r=n(`resolveId`,c.value.resolveIdMetrics),i=n(`loads`,c.value.loadMetrics),a=n(`transforms`,c.value.transformMetrics);function o(e,n,r){return t({id:e,text:n,children:r.sort((e,t)=>t.size-e.size),meta:{id:e,type:`hook`,title:n,duration:{"~loads":b.value,"~resolves":w.value,"~transforms":x.value}[e]}})}return{root:t({id:`~root`,text:`Project`,children:[o(`~resolves`,`Resolve Id`,r),o(`~loads`,`Load`,i),o(`~transforms`,`Transform`,a)]}),map:e,maxDepth:3}}),F=T(pe()),{tree:I,chartOptions:L,graph:z,nodeHover:B,nodeSelected:V,selectedNode:W,selectNode:q,buildGraph:Z}=Tt({data:[],tree:M,nameKey:`id`,sizeKey:`duration`,rootText:`Project`,graphOptions:{onClick(e){e&&(B.value=e),W.value=e?.meta},onHover(e){e&&(B.value=e),e===null&&(B.value=void 0)},onLeave(){B.value=void 0},onSelect(e){V.value=e||I.value.root,W.value=e?.meta},getSubtext(e){return H(e.size,!0)}},onUpdate(){z.value=new U(I.value.root,L.value)}});return C(()=>K.value.pluginDetailsViewType,()=>{Z()}),(r,i)=>{let o=N,m=dt,h=ce,C=ne;return f(),u(_,null,[s(p)?(f(),t(o,{key:0})):s(c)?.calls?.length?(f(),u(`div`,Et,[v(te,{class:`absolute right-2 top-1.5`,onClick:i[0]||=e=>a(`close`)}),l(`div`,Dt,[l(`div`,Ot,[v(X,{name:s(c)?.plugin_name},null,8,[`name`])]),l(`div`,kt,[v(J,{duration:w.value,class:`flex gap-1 items-center`,title:`Resolve Id hooks cost: ${s(H)(w.value,!0)}`},{default:y(()=>[...i[3]||=[l(`span`,{class:`i-ph-magnifying-glass-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),v(J,{duration:b.value,class:`flex gap-1 items-center`,title:`Load hooks cost: ${s(H)(b.value,!0)}`},{default:y(()=>[...i[4]||=[l(`span`,{class:`i-ph-upload-simple-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),v(J,{duration:x.value,class:`flex gap-1 items-center`,title:`Transform hooks cost: ${s(H)(x.value,!0)}`},{default:y(()=>[...i[5]||=[l(`span`,{class:`i-ph-magic-wand-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),i[7]||=l(`span`,{class:`op40`},`|`,-1),v(J,{duration:O.value,class:`flex gap-1 items-center`,title:`Total build cost: ${s(H)(O.value,!0)}`},{default:y(()=>[...i[6]||=[l(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),i[8]||=l(`span`,{class:`op40`},`|`,-1),v($,{number:g.value.length,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${g.value.length}`},null,8,[`number`,`title`]),i[9]||=l(`span`,{class:`op40`},`|`,-1),v($,{number:s(c)?.calls?.length??0,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${s(c)?.calls?.length??0}`},null,8,[`number`,`title`])]),l(`div`,At,[l(`button`,{class:d([s(K).pluginDetailsViewType===`flow`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:i[1]||=e=>s(K).pluginDetailsViewType=`flow`},[...i[10]||=[l(`div`,{class:`i-ph-git-branch-duotone rotate-180`},null,-1),e(` Build Flow `,-1)]],2),l(`button`,{class:d([s(K).pluginDetailsViewType===`sunburst`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:i[2]||=e=>s(K).pluginDetailsViewType=`sunburst`},[...i[11]||=[l(`div`,{"i-ph-chart-sunburst-duotone":``},null,-1),e(` Sunburst `,-1)]],2)])]),l(`div`,jt,[s(K).pluginDetailsViewType===`flow`?(f(),t(m,{key:0,modules:n.modules,"build-metrics":s(c),root:n.root},null,8,[`modules`,`build-metrics`,`root`])):E(``,!0),s(K).pluginDetailsViewType===`sunburst`&&s(z)?(f(),t(wt,{key:1,graph:s(z),selected:s(V),onSelect:s(q)},{module:y(({child:e})=>[v(h,{id:e.text,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:n.root,link:j(e.meta?.graphModuleId)},null,8,[`id`,`cwd`,`link`])]),_:1},8,[`graph`,`selected`,`onSelect`])):E(``,!0)])])):(f(),u(`div`,Mt,[...i[12]||=[l(`span`,{class:`italic op50`},` No data `,-1)]])),v(C,{"hover-x":F.x,"hover-y":F.y},{default:y(()=>[s(B)?(f(),u(`div`,Nt,[s(B).meta?.title?(f(),u(`div`,Pt,[e(S(s(B).meta.title)+` `,1),v(J,{duration:s(B).meta.duration},null,8,[`duration`])])):(f(),u(_,{key:1},[s(B).meta?.module?(f(),u(`div`,Ft,[v(h,{id:s(B).meta.module,cwd:n.root,link:!1},null,8,[`id`,`cwd`])])):E(``,!0),s(B).meta?.module?(f(),u(`div`,It,[l(`div`,Lt,[i[13]||=l(`label`,{class:`text-xs opacity-70`},`Start Time`,-1),l(`time`,{datetime:new Date(s(B).meta.timestamp_start).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},S(s(Q)(s(B).meta.timestamp_start)),9,Rt)]),l(`div`,zt,[i[14]||=l(`label`,{class:`text-xs opacity-70`},`End Time`,-1),l(`time`,{datetime:new Date(s(B).meta.timestamp_end).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},S(s(Q)(s(B).meta.timestamp_end)),9,Bt)]),l(`div`,Vt,[i[15]||=l(`label`,{class:`text-xs op70`},`Duration`,-1),v(J,{duration:s(B).meta.duration},null,8,[`duration`])])])):(f(),u(`div`,Ht,[v(J,{duration:s(B).meta?.duration},null,8,[`duration`])]))],64))])):E(``,!0)]),_:1},8,[`hover-x`,`hover-y`])],64)}}}),{__name:`DataPluginDetailsLoader`}),Wt={class:`flex flex-col gap-2 p4`},Gt={class:`flex pb2`},Kt={class:`w-8 text-right text-xs op50`},qt={class:`overflow-hidden text-ellipsis break-all line-clamp-2`},Jt=o({__name:`PluginsFlatList`,props:{plugins:{},itemSize:{},pageMode:{type:Boolean,default:!0},scroller:{default:`dynamic`}},setup(e){let t=A();return(n,r)=>(f(),u(`div`,Wt,[v(W,{items:e.plugins,"key-prop":`plugin_id`,"item-size":e.itemSize,"page-mode":e.pageMode,scroller:e.scroller},{default:y(({item:e})=>[l(`div`,Gt,[v(s(k),{to:{path:s(t).path,query:{plugin:e.plugin_id}},class:`font-mono border rounded border-base w-full px2 py1 text-sm hover:bg-active flex gap-4 items-center`},{default:y(()=>[l(`div`,Kt,` #`+S(e.plugin_id),1),l(`span`,qt,[v(X,{name:e.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`,`item-size`,`page-mode`,`scroller`])]))}}),Yt={key:1,class:`h-full flex flex-col gap-3 items-center justify-center p8 text-center`},Xt={class:`font-mono text-sm max-w-180 ws-pre-wrap`},Zt={key:2,class:`relative min-h-screen`},Qt={class:`sticky left-4 right-4 top-4 z-panel-nav p-4`},$t={class:`fixed bottom-4 py-1 px-2 bg-glass left-1/2 translate-x--1/2 border border-base rounded-full text-center text-xs`},en={class:`op50`},tn=o({__name:`plugins`,setup(r){let i=ee(),a=A(),o=j(),s=n(null),c=n([]),d=m(!0),p=m(null),h=D(()=>typeof a.query.plugin==`string`?a.query.plugin:void 0),g=m({search:a.query.search||``,selected:a.query.plugin_types?W(a.query.plugin_types):null}),_=D(()=>s.value?.instances[0]),y=D(()=>_.value?.environments[0]||``),b=D(()=>_.value?.root||``),C=D(()=>!_.value?.vite||!y.value?null:{vite:_.value.vite,env:y.value}),w=D(()=>_.value?.plugins.map((e,t)=>L(e,t))??[]),T=D(()=>[...B.filter(e=>w.value.some(t=>e.match.test(t.name))),z]),k=D(()=>{let e=w.value;return g.value.selected&&(e=e.filter(e=>{let t=I(e.name);return g.value.selected.includes(t.name)})),e}),M=ge(()=>k.value,()=>new ie(k.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),F=D(()=>g.value.search?M.value.search(g.value.search).map(e=>e.item):k.value);de(g.value,e=>{o.replace({query:G({...a.query,search:e.search||void 0,plugin_types:e.selected||void 0})})},{debounce:500});function L(e,t){let n=e&&typeof e==`object`?e:{};return{plugin_id:t,name:typeof n.name==`string`?n.name:`plugin-${t}`,enforce:n.enforce===`pre`||n.enforce===`post`?n.enforce:void 0}}function R(){h.value&&o.replace({query:{...a.query,plugin:void 0}})}async function V(e={}){e.silent||(d.value=!0),p.value=null;try{s.value=await i.value.call(`vite:inspect:get-metadata`),C.value?c.value=(await i.value.call(`vite:inspect:get-modules-list`,C.value)).map(U):c.value=[]}catch(e){p.value=e}finally{e.silent||(d.value=!1)}}let H=ue(()=>{V({silent:!0})},100);function U(e){return{...e,imports:e.deps.map(e=>({module_id:e}))}}function W(e){return Array.isArray(e)?e.map(String):[String(e)]}function G(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}return x(()=>{V()}),P(()=>{H()}),me(`Escape`,e=>{e.preventDefault(),e.isTrusted&&!e.repeat&&R()}),(n,r)=>{let i=N,a=Ut;return d.value?(f(),t(i,{key:0,text:`Loading plugins...`})):p.value?(f(),u(`div`,Yt,[r[3]||=l(`div`,{class:`i-ph-warning-duotone text-4xl text-amber`},null,-1),l(`div`,Xt,S(p.value.message),1),l(`button`,{class:`btn-action`,onClick:r[0]||=e=>V()},[...r[2]||=[l(`span`,{class:`i-ph-arrow-clockwise-duotone`},null,-1),e(` Retry `,-1)]])])):(f(),u(`div`,Zt,[l(`div`,Qt,[v(Z,{modelValue:g.value,"onUpdate:modelValue":r[1]||=e=>g.value=e,rules:T.value},null,8,[`modelValue`,`rules`])]),v(Jt,{plugins:F.value??[],scroller:`window`},null,8,[`plugins`]),l(`div`,$t,[l(`span`,en,S(F.value.length)+` of `+S(w.value.length||0),1)]),h.value&&C.value?(f(),u(`div`,{key:0,class:`fixed inset-0 backdrop-blur-8 backdrop-brightness-95 z-panel-content`,onClick:O(R,[`self`])},[(f(),u(`div`,{key:h.value,class:`fixed right-0 bottom-0 top-20 left-20 z-panel-content bg-glass border-l border-t border-base rounded-tl-xl`},[v(a,{plugin:h.value,query:C.value,modules:c.value,root:b.value,onClose:R},null,8,[`plugin`,`query`,`modules`,`root`])]))])):E(``,!0)]))}}});export{tn as default};
|