@vitejs/devtools-vite 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/index.mjs +30 -12
  2. package/dist/nitro.json +1 -1
  3. package/dist/public/200.html +1 -1
  4. package/dist/public/404.html +1 -1
  5. package/dist/public/_nuxt/{Dv2CAM3-.js → 457Jr4Pr.js} +1 -1
  6. package/dist/public/_nuxt/{5c1DPrly.js → B1xYalZA.js} +1 -1
  7. package/dist/public/_nuxt/{CcqwYoEJ.js → B4Gu6iiy.js} +2 -2
  8. package/dist/public/_nuxt/BC_sx2n1.js +2 -0
  9. package/dist/public/_nuxt/{CP22b8pv.js → BD4CFFZd.js} +1 -1
  10. package/dist/public/_nuxt/{DLDDv_7k.js → BJv-YGcz.js} +1 -1
  11. package/dist/public/_nuxt/{CJN_wQsK.js → BKuuhLmM.js} +1 -1
  12. package/dist/public/_nuxt/BaWrej0D.js +2 -0
  13. package/dist/public/_nuxt/{ClCG_dzz.js → C3lVFA1Q.js} +1 -1
  14. package/dist/public/_nuxt/CHXuaNaj.js +1 -0
  15. package/dist/public/_nuxt/{B4-kpPlj.js → CJwKXY9k.js} +1 -1
  16. package/dist/public/_nuxt/CQYaOgKz.js +1 -0
  17. package/dist/public/_nuxt/{ZaXNuNF4.js → CWPpjZx6.js} +1 -1
  18. package/dist/public/_nuxt/D3MExTHO.js +3 -0
  19. package/dist/public/_nuxt/builds/latest.json +1 -1
  20. package/dist/public/_nuxt/builds/meta/9ed128ae-36cf-47ec-9da9-d8526939fcad.json +1 -0
  21. package/dist/public/_nuxt/diff.worker-DFeiLCV8.js +10 -0
  22. package/dist/public/_nuxt/{entry.C93siYgZ.css → entry.WUs_YScM.css} +1 -1
  23. package/dist/public/_nuxt/error-404.YVLV_SWG.css +1 -0
  24. package/dist/public/_nuxt/error-500.DoVxOHYG.css +1 -0
  25. package/dist/public/_nuxt/{65vBZ263.js → r__Gyeey.js} +1 -1
  26. package/dist/public/index.html +1 -1
  27. package/package.json +6 -6
  28. package/dist/public/_nuxt/CPH0XTIl.js +0 -3
  29. package/dist/public/_nuxt/DFhP8lOG.js +0 -1
  30. package/dist/public/_nuxt/DNSDuWiF.js +0 -2
  31. package/dist/public/_nuxt/builds/meta/eb3b8c17-0790-417e-a6ed-95ac58726921.json +0 -1
  32. package/dist/public/_nuxt/cxI2zS99.js +0 -1
  33. package/dist/public/_nuxt/diff.worker-CjOQCDrL.js +0 -10
  34. package/dist/public/_nuxt/error-404.DSf_TRDj.css +0 -1
  35. package/dist/public/_nuxt/error-500.CSLpiw1A.css +0 -1
  36. package/dist/public/_nuxt/ynzAfXmP.js +0 -2
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CcqwYoEJ.js","./CPH0XTIl.js","./ynzAfXmP.js","./NLJpu4QF.js","./rpc.CVTFzytL.css","./Dv2CAM3-.js","./DLDDv_7k.js","./ZaXNuNF4.js","./CAlSLYmJ.js","./5c1DPrly.js","./BDNMzG2s.js","./ClCG_dzz.js","./filepath.CX8PXv9n.css","./graph.qvMalRQi.css","./CP22b8pv.js","./65vBZ263.js","./plugins.CtM-Tp_V.css","./DFhP8lOG.js","./B4-kpPlj.js","./cxI2zS99.js","./error-404.DSf_TRDj.css","./CJN_wQsK.js","./error-500.CSLpiw1A.css"])))=>i.map(i=>d[i]);
2
- import{$ as e,$t as t,C as n,Ct as r,Dt as i,Et as a,F as o,H as s,I as c,Jt as l,K as u,M as d,N as f,Qt as p,R as m,S as h,T as g,V as _,W as v,Xt as y,Y as b,Z as x,_ as S,_t as ee,a as C,bt as w,c as T,d as E,dt as te,en as ne,f as D,ft as O,g as re,i as k,j as ie,jt as A,lt as j,n as M,nn as ae,nt as oe,o as se,qt as ce,r as N,rt as P,t as F,u as I,v as le,w as ue,wt as de,x as L,xt as R,y as fe,z as pe}from"./CPH0XTIl.js";import{a as me,r as he,t as ge}from"./ynzAfXmP.js";import{A as _e,B as z,C as ve,D as ye,E as be,F as xe,H as Se,I as Ce,K as we,L as B,M as V,N as Te,O as Ee,P as H,R as De,S as Oe,T as ke,U as Ae,V as je,W as Me,_ as U,a as Ne,b as Pe,c as Fe,d as Ie,f as Le,g as Re,h as ze,i as W,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 Je,s as G,t as Ye,u as Xe,v as K,w as Ze,x as Qe,y as $e,z as et}from"./Dv2CAM3-.js";import{_ as tt,a as nt,c as rt,f as it,g as at,h as ot,i as q,m as st,n as ct,o as J,p as Y,r as lt,s as ut,t as dt,v as ft}from"./DLDDv_7k.js";import{a as pt,f as mt,i as ht,m as gt,o as _t,r as vt,s as yt,u as bt}from"./NLJpu4QF.js";import{a as xt,c as St,d as Ct,f as wt,i as Tt,l as Et,n as Dt,o as Ot,r as kt,s as At,u as jt}from"./cxI2zS99.js";import{i as X,t as Mt}from"./ZaXNuNF4.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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Nt=/"(?:_|\\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*:/,Pt=/"(?: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*:/,Ft=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function It(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){Lt(e);return}return t}function Lt(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Rt(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(!Ft.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(Nt.test(e)||Pt.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,It)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var zt=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function Bt(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 zt(`${`[${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 Vt=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function Ht(e=`GET`){return Vt.has(e.toUpperCase())}function Ut(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 Wt=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),Gt=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Kt(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return Gt.test(t)?`json`:t===`text/event-stream`?`stream`:Wt.has(t)||t.startsWith(`text/`)?`text`:`blob`}function qt(e,t,n,r){let i=Jt(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 Jt(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 Yt(e,t){if(t)if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}var Xt=new Set([408,409,425,429,500,502,503,504]),Zt=new Set([101,204,205,304]);function Qt(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:+!Ht(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):Xt.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=Bt(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:qt(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 Yt(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=bt(s.request,s.options.baseURL)),s.options.query&&(s.request=mt(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&&Ht(s.options.method))if(Ut(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 Yt(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!Zt.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||Kt(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||Rt;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 Yt(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await Yt(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={})=>Qt({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var $t=(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`)})(),en=$t.fetch?(...e)=>$t.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),tn=$t.Headers,nn=$t.AbortController,rn=Qt({fetch:en,Headers:tn,AbortController:nn}),an=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,on=()=>an().app,sn=()=>on().baseURL,cn=()=>on().buildAssetsDir,ln=(...e)=>_t(un(),cn(),...e),un=(...e)=>{let t=on(),n=t.cdnURL||t.baseURL;return e.length?_t(n,...e):n};globalThis.__buildAssetsURL=ln,globalThis.__publicAssetsURL=un,globalThis.$fetch||(globalThis.$fetch=rn.create({baseURL:sn()}));var dn=globalThis.$fetch;`global`in globalThis||(globalThis.global=globalThis);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 pn(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 mn=ae({docsBase:t,reporters:ne}),hn=(()=>{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()}})(),gn=e=>st({},...hn(``,typeof e==`string`?e.toLowerCase():e).map(e=>e.data).reverse()),_n=dn,vn=gn,yn;function bn(){let e;return e=_n(ln(`builds/meta/${C().app.buildId}.json`),{responseType:`json`}).then(e=>{if(!e||typeof e!=`object`||!Array.isArray(e.prerendered))throw mn.NUXT_E5004();return e}),yn=e,e.catch(t=>{yn===e&&(yn=void 0),mn.NUXT_E5002({cause:t})}),e}function xn(){return yn||bn()}function Sn(e){let t=typeof e==`string`?e:e.path;try{return vn(t.toLowerCase())}catch(e){return mn.NUXT_E5003({path:t,cause:e}),{}}}var Cn=2**32-1,wn=Cn-1;function Tn(e){return!(!Number.isInteger(e)||e<0||e>wn)}function En(e){return!(!Number.isInteger(e)||e<0||e>Cn)}function Dn(e){return Uint8Array.fromBase64(e).buffer}function On(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function kn(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer}var An=typeof Uint8Array.fromBase64==`function`,jn=typeof process==`object`&&process.versions?.node!==void 0,Mn=An?Dn:jn?On:kn;function Nn(e,t){return Pn(JSON.parse(e),t)}function Pn(e,t){if(typeof e==`number`)return a(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let n=e,r=Array(n.length),i=null;function a(e,o=!1){if(e===-1)return;if(e===-3)return NaN;if(e===-4)return 1/0;if(e===-5)return-1/0;if(e===-6)return-0;if(o||typeof e!=`number`)throw Error(`Invalid input`);if(e in r)return r[e];let s=n[e];if(!s||typeof s!=`object`)r[e]=s;else if(Array.isArray(s))if(typeof s[0]==`string`){let o=s[0],c=t&&Object.hasOwn(t,o)?t[o]:void 0;if(c){let t=s[1];if(typeof t!=`number`&&(t=n.push(s[1])-1),i??=new Set,i.has(t))throw Error(`Invalid circular reference`);return i.add(t),r[e]=c(a(t)),i.delete(t),r[e]}switch(o){case`Date`:r[e]=new Date(s[1]);break;case`Set`:let t=new Set;r[e]=t;for(let e=1;e<s.length;e+=1)t.add(a(s[e]));break;case`Map`:let i=new Map;r[e]=i;for(let e=1;e<s.length;e+=2)i.set(a(s[e]),a(s[e+1]));break;case`RegExp`:r[e]=new RegExp(s[1],s[2]);break;case`Object`:{let t=s[1];if(typeof n[t]==`object`&&n[t][0]!==`BigInt`)throw Error(`Invalid input`);r[e]=Object(a(t));break}case`BigInt`:r[e]=BigInt(s[1]);break;case`null`:let c=Object.create(null);r[e]=c;for(let e=1;e<s.length;e+=2){if(s[e]===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");c[s[e]]=a(s[e+1])}break;case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Float16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:case`DataView`:{if(n[s[1]][0]!==`ArrayBuffer`)throw Error(`Invalid data`);let t=globalThis[o],i=a(s[1]);r[e]=s[2]===void 0?new t(i):new t(i,s[2],s[3]);break}case`ArrayBuffer`:{let t=s[1];if(typeof t!=`string`)throw Error(`Invalid ArrayBuffer encoding`);let n=Mn(t);r[e]=n;break}case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:{let t=o.slice(9);r[e]=Temporal[t].from(s[1]);break}case`URL`:{let t=new URL(s[1]);r[e]=t;break}case`URLSearchParams`:{let t=new URLSearchParams(s[1]);r[e]=t;break}default:throw Error(`Unknown type ${o}`)}}else if(s[0]===-7){let t=s[1];if(!En(t))throw Error(`Invalid input`);let n=[];r[e]=n,n[wn]=void 0,delete n[wn];for(let e=2;e<s.length;e+=2){let r=s[e];if(!Tn(r)||r>=t)throw Error(`Invalid input`);n[r]=a(s[e+1])}n.length=t}else{let t=Array(s.length);r[e]=t;for(let e=0;e<s.length;e+=1){let n=s[e];n!==-2&&(t[e]=a(n))}}else{let t={};r[e]=t;for(let e of Object.keys(s)){if(e===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");let n=s[e];t[e]=a(n)}}return r[e]}return a(0)}async function Fn(e){return null}var Z=null;async function In(){if(Z)return Z;let e=document.getElementById(`__NUXT_DATA__`);if(!e)return{};let t=await Ln(e.textContent||``),n=e.dataset.src?await Fn(e.dataset.src):void 0;return Z={...t,...n,...window.__NUXT__},Z.config?.public&&(Z.config.public=R(Z.config.public)),Z}async function Ln(e){return await Nn(e,k()._payloadRevivers)}function Rn(e,t){k()._payloadRevivers[e]=t}function zn(e){try{return JSON.parse(e)}catch{return e}}var Bn=[[`NuxtError`,e=>q(e)],[`EmptyShallowRef`,e=>a(e===`_`?void 0:e===`0n`?BigInt(0):zn(e))],[`EmptyRef`,e=>r(e===`_`?void 0:e===`0n`?BigInt(0):zn(e))],[`ShallowRef`,e=>a(e)],[`ShallowReactive`,e=>de(e)],[`Ref`,e=>r(e)],[`Reactive`,e=>R(e)]],Vn=N({name:`nuxt:revive-payload:client`,order:-30,async setup(e){let t,n;for(let[e,t]of Bn)Rn(e,t);Object.assign(e.payload,([t,n]=D(()=>e.runWithContext(In)),t=await t,n(),t)),delete window.__NUXT__}},1);function Hn(e,t){t.push(se),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 Un(e,t,n){let r=e.push,i=e;return i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>fn(i,e),i.render=()=>n(i),i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,t.callHook(`entries:updated`,i)},i.push=(n,a)=>{let o=a?.onRendered?t.hook(`dom:rendered`,a.onRendered):void 0,s=r(n,a),c=e.entries.get(s._i);return c&&(c._o=n),i.dirty=!0,t.callHook(`entries:updated`,i),{_i:s._i,patch(e){s.patch(e),i.dirty=!0,t.callHook(`entries:updated`,i)},dispose(){o?.(),e.entries.has(s._i)&&(s.dispose(),i.invalidate())}}},t.hook(`entries:updated`,()=>{i.render()}),i}var Wn=/\s+/;function Gn(e={}){return t=>Yn(t,e)}function Kn(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function qn(e){for(let t in e._s)e._s[t]();for(let t in e._p)e._p[t]();e._s={},e._p={},e._e.clear(),e._l.clear()}function Jn(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 e of[...t.body.children,...t.head.children]){let t=e.tagName.toLowerCase();if(!Ct.has(t))continue;let r={innerHTML:e.innerHTML};for(let t of e.getAttributeNames())r[t]=e.getAttribute(t);let i=At({tag:t,props:{}},r);i.key=e.getAttribute(`data-hid`)||void 0;let a=Tt(i)||xt(i),o=a,s=1;for(;n._e.has(o);)o=`${a}:${s++}`;n._e.set(o,e)}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(Wn))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function Yn(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom,i=!!r&&r._d!==n;if(!n||!i&&!e.dirty&&!Kn(e)||e._du)return!1;let a=n.defaultView;e._du=!0;let o=!1;try{let r=function(e,t,n,r){let i=`${e}:${t}`;d._s[i]=!r&&d._p[i]||n,delete d._p[i]},i=function(e){let t=d._p[e];return delete d._p[e],t},s=function(e,t,n,i,a,o){let s=`event:${t}`,c=`${e}:${s}`,l=d._l.get(c);if(l&&l[0]===o&&l[1]===n&&l[2]===i){r(e,s,l[4]);return}l?.[4]();let u=`data-${t}`,f=(e=>i.call(a,e)),p=()=>{o.removeEventListener(n,f),a.getAttribute(u)===``&&a.removeAttribute(u),d._l.get(c)?.[3]===f&&d._l.delete(c)};o.addEventListener(n,f),d._l.set(c,[o,n,i,f,p]),a.setAttribute(u,``),r(e,s,p,!0)},c=function({id:e,$el:t,tag:n}){let o=n.tag.endsWith(`Attrs`);if(d._e.set(e,t),!o){let a=n.textContent;a!=null&&a!==``&&(a!==t.textContent&&(t.textContent=a),r(e,`text`,()=>{t.textContent===a&&(t.textContent=``)},!0));let o=n.innerHTML;o!=null&&o!==``&&(o!==t.innerHTML&&(t.innerHTML=o),r(e,`html`,()=>{t.innerHTML===o&&(t.innerHTML=``)},!0));let s=`${e}:el`;d._s[s]=i(s)||(()=>{t?.remove(),d._e.delete(e)})}for(let r in n.props){let o=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof o==`function`){let i=r.slice(2);t?.dataset?.[`${r}fired`]&&o.call(t,new((a?.Event)||Event)(i)),s(e,r,i,o,t,n.tag===`bodyAttrs`&&a?a:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&o)for(let e of o){let n=`${c}:${e}`;d._s[n]=i(n)||(()=>t.classList.remove(e)),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&o)for(let[e,n]of o){let r=`${c}:${e}`;d._s[r]=i(r)||(()=>t.style.removeProperty(e)),t.style.setProperty(e,n)}else o!==!1&&o!==null&&(t.getAttribute(r)!==o&&t.setAttribute(r,o===!0?``:String(o)),d._s[c]=i(c)||(()=>t.removeAttribute(r)))}},l={shouldRender:!0,tags:[]};if(Et(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=e._dom;u?._d!==n&&(u&&qn(u),u=void 0),u?u._p=u._s:u=Jn(e,n),u._s={};let d=u,f=[],p={};e.dirty=!1;let m=St(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),h=[],g={};for(let e of m){let t=g[e._d]||0,i=(t?`${e._d}:${t}`:e._d)||e._h,a={tag:e,id:i,shouldRender:!0};if(e.tag===`meta`&&e._d&&Ot(e._d)&&(g[e._d]=t+1),h.push(a),e.tag===`title`){n.title=e.textContent,r(`title`,``,()=>n.title=d._t);continue}a.$el=d._e.get(i),a.$el?c(a):Ct.has(e.tag)&&f.push(a)}for(let e of f)e.$el=n.createElement(e.tag.tag),c(e),(p[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el);p.head&&n.head.appendChild(p.head),p.bodyOpen&&n.body.insertBefore(p.bodyOpen,n.body.firstChild),p.bodyClose&&n.body.appendChild(p.bodyClose);for(let e in d._p)d._p[e]();e._dom=d,o=!0,Et(e,`dom:rendered`,{renders:h})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return o&&(e.dirty||Kn(e))&&Yn(e,t),o}var Xn=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(wt[e.tagPriority]||0);function Zn(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||Gn({document:e.document}),n=Un(pn(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:Xn,init:[]}),jt(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}function Qn(e={}){let t=Gn(),n,r=0;return n=Zn({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=kt(n),n}function $n(e,t){return t&&typeof e==`function`&&(e.key=t),e}var er=/\\/g,tr=/</g,nr=/"/g,rr=/%\w+(?:\.\w+)?/g,ir=`%separator`;function ar(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(er,`\\\\`).replace(tr,`\\u003C`).replace(nr,`\\"`):r||``}function or(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(rr);if(!a)return e;let o=e.includes(ir);return e=e.replace(rr,e=>{if(e===ir||!a.includes(e))return e;let n=ar(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(ir).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var sr=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,cr=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),lr=$n({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=cr(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=cr(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(sr))}}}),ur=$n({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 dr(e){return typeof e?.then==`function`}function fr(e){if(typeof e==`function`)return e;if(dr(e))return Promise.resolve(e).then(fr);if(Array.isArray(e)){let t=e.map(fr);return t.some(dr)?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=t.map(t=>fr(e[t]));if(n.some(dr))return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var pr=$n(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=fr(a);if(!dr(o)){t.delete(i);continue}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)})}}}}},`promises`),mr={meta:`content`,link:`href`,htmlAttrs:`lang`},hr=[`innerHTML`,`textContent`],gr={disableDefaults:!0,plugins:[ur,pr,$n(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=or(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=mr[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=or(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of hr)typeof e[t]==`string`&&(e[t]=or(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=or(n.textContent,e._templateParams,e._separator))}}}),`template-params`),lr]},_r=N({name:`nuxt:head`,enforce:`pre`,setup(e){Hn(e,Qn(gr))}}),vr=/(:\w+)\([^)]+\)/g,yr=/(:\w+)[?+*]/g,br=/:\w+/g,xr=(e,t)=>t.path.replace(vr,`$1`).replace(yr,`$1`).replace(br,t=>e.params[t.slice(1)]?.toString()||``),Q=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&xr(e.route,n));return typeof r==`function`?r(e.route):r},Sr=(e,t)=>({default:()=>e?c(S,e===!0?{}:e,t):t});function Cr(e){return Array.isArray(e)?e:[e]}var wr=()=>location.protocol+`//`+location.host;function Tr(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),Be(n,``)}return Be(n,e)+r+i}function Er(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Tr(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(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(H({},e.state,{scroll:Fe()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Dr(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Fe():null}}function Or(e){let{history:t,location:n}=window,r={value:Tr(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:wr()+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){a(e,H({},t.state,Dr(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=H({},i.value,t.state,{forward:e,scroll:Fe()});a(o.current,o,!0),a(e,H({},Dr(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function kr(e){e=ve(e);let t=Or(e),n=Er(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=H({location:``,base:e,go:r,createHref:He.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 Ar={type:0,value:``},jr=/[a-zA-Z0-9_]/;function Mr(e){if(!e)return[[]];if(e===`/`)return[[Ar]];if(!e.startsWith(`/`))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:jr.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`);break}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Nr=`[^/]+?`,Pr={sensitive:!1,strict:!1,start:!0,end:!0},Fr=/[.+*?^${}()[\]/\\]/g;function Ir(e,t){let n=H({},Pr,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(Fr,`\\$&`),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||Nr;if(u!==Nr){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(Ce(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Ce(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 Lr(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 Rr(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Lr(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(zr(r))return 1;if(zr(i))return-1}return i.length-r.length}function zr(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Br={strict:!1,end:!0,sensitive:!1};function Vr(e,t,n){let r=H(Ir(Mr(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Hr(e,t){let n=[],r=new Map;t=et(Br,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Wr(e);s.aliasOf=r&&r.record;let l=et(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(Wr(H({},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&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Vr(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Kr(d)&&o(e.name)),Xr(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)}:z}function o(e){if($e(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=Jr(e,n);n.splice(t,0,e),e.record.name&&!Kr(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 xe(1,{location:e});s=i.record.name,a=H(Ur(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ur(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 xe(1,{location:e,currentLocation:t});s=i.record.name,a=H({},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:qr(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 Ur(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Wr(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Gr(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 Gr(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 Kr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qr(e){return e.reduce((e,t)=>H(e,t.meta),{})}function Jr(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Rr(e,t[i])<0?r=i:n=i+1}let i=Yr(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Yr(e){let t=e;for(;t=t.parent;)if(Xr(t)&&Rr(e,t)===0)return t}function Xr({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Zr(e){let t=m(Se),n=m(je),r=L(()=>{let n=A(e.to);return t.resolve(n)}),i=L(()=>{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(Oe.bind(null,i));if(o>-1)return o;let s=ni(e[t-2]);return t>1&&ni(i)===s&&a[a.length-1].path!==s?a.findIndex(Oe.bind(null,e[t-2])):o}),a=L(()=>i.value>-1&&ti(n.params,r.value.params)),o=L(()=>i.value>-1&&i.value===n.matched.length-1&&Qe(n.params,r.value.params));function s(n={}){if(ei(n)){let n=t[A(e.replace)?`replace`:`push`](A(e.to)).catch(z);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:L(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Qr(e){return e.length===1?e[0]:e}var $r=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:Zr,setup(e,{slots:t}){let n=R(Zr(e)),{options:r}=m(Se),i=L(()=>({[ri(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[ri(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Qr(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 ei(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 ti(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Ce(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function ni(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var ri=(e,t,n)=>e??t??n,ii=f({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let i=m(Ae),a=L(()=>e.route||i.value),o=m(Me,0),s=L(()=>{let e=A(o),{matched:t}=a.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),l=L(()=>a.value.matched[s.value]);x(Me,L(()=>s.value+1)),x(De,l),x(Ae,a);let u=r();return j(()=>[u.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||!Oe(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=a.value,i=e.name,o=l.value,s=o&&o.components[i];if(!s)return ai(n.default,{Component:s,route:r});let d=o.props[i],f=c(s,H({},d?d===!0?r.params:typeof d==`function`?d(r):d:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[i]=null)},ref:u}));return ai(n.default,{Component:f,route:r})||f}}});function ai(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var oi=ii;function si(e){let t=Hr(e.routes,e),n=e.parseQuery||ke,r=e.stringifyQuery||Ve,i=e.history,o=V(),c=V(),l=V(),u=a(G),d=G;K&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let f=Te.bind(null,e=>``+e),p=Te.bind(null,Le),m=Te.bind(null,Xe);function h(e,n){let r,i;return $e(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function g(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function _(){return t.getRoutes().map(e=>e.record)}function v(e){return!!t.getRecordMatcher(e)}function y(e,a){if(a=H({},a||u.value),typeof e==`string`){let r=be(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return H(r,o,{params:m(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=H({},e,{path:be(n,e.path,a.path).path});else{let t=H({},e.params);for(let e in t)t[e]??delete t[e];o=H({},e,{params:p(t)}),a.params=p(a.params)}let s=t.resolve(o,a),c=e.hash||``;s.params=f(m(s.params));let l=_e(r,H({},e,{hash:Ie(c),path:s.path})),d=i.createHref(l);return H({fullPath:l,hash:c,query:r===Ve?Ze(e.query):e.query||{}},s,{redirectedFrom:void 0,href:d})}function b(e){return typeof e==`string`?be(n,e,u.value.path):H({},e)}function x(e,t){if(d!==e)return xe(8,{from:t,to:e})}function S(e){return w(e)}function ee(e){return S(H(b(e),{replace:!0}))}function C(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=b(i):{path:i},i.params={}),H({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function w(e,t){let n=d=y(e),i=u.value,a=e.state,o=e.force,s=e.replace===!0,c=C(n,i);if(c)return w(H(b(c),{state:typeof c==`object`?H({},a,c.state):a,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let f;return!o&&Pe(r,i,n)&&(f=xe(16,{to:l,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):te(l,i)).catch(e=>B(e)?B(e,2)?e:oe(e):M(e,l,i)).then(e=>{if(e){if(B(e,2))return w(H({replace:s},b(e.to),{state:typeof e.to==`object`?H({},a,e.to.state):a,force:o}),t||l)}else e=D(l,i,!0,s,a);return ne(l,i,e),e})}function T(e,t){let n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function E(e){let t=P.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function te(e,t){let n,[r,i,a]=Ke(e,t);n=Ue(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(U(r,e,t))});let s=T.bind(null,e,t);return n.push(s),I(n).then(()=>{n=[];for(let r of o.list())n.push(U(r,e,t));return n.push(s),I(n)}).then(()=>{n=Ue(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(U(r,e,t))});return n.push(s),I(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(Ce(r.beforeEnter))for(let i of r.beforeEnter)n.push(U(i,e,t));else n.push(U(r.beforeEnter,e,t));return n.push(s),I(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ue(a,`beforeRouteEnter`,e,t,E),n.push(s),I(n))).then(()=>{n=[];for(let r of c.list())n.push(U(r,e,t));return n.push(s),I(n)}).catch(e=>B(e,8)?e:Promise.reject(e))}function ne(e,t,n){l.list().forEach(r=>E(()=>r(e,t,n)))}function D(e,t,n,r,a){let o=x(e,t);if(o)return o;let s=t===G,c=K?history.state:{};n&&(r||s?i.replace(e.fullPath,H({scroll:s&&c&&c.scroll},a)):i.push(e.fullPath,a)),u.value=e,se(e,t,n,s),oe()}let O;function re(){O||=i.listen((e,t,n)=>{if(!F.listening)return;let r=y(e),a=C(r,F.currentRoute.value);if(a){w(H(a,{replace:!0,force:!0}),r).catch(z);return}d=r;let o=u.value;K&&ye(Re(o.fullPath,n.delta),Fe()),te(r,o).catch(e=>B(e,12)?e:B(e,2)?(w(H(b(e.to),{force:!0}),r).then(e=>{B(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(z),Promise.reject()):(n.delta&&i.go(-n.delta,!1),M(e,r,o))).then(e=>{e||=D(r,o,!1),e&&(n.delta&&!B(e,8)?i.go(-n.delta,!1):n.type===`pop`&&B(e,20)&&i.go(-1,!1)),ne(r,o,e)}).catch(z)})}let k=V(),ie=V(),j;function M(e,t,n){oe(e);let r=ie.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ae(){return j&&u.value!==G?Promise.resolve():new Promise((e,t)=>{k.add([e,t])})}function oe(e){return j||(j=!e,re(),k.list().forEach(([t,n])=>e?n(e):t()),k.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!K||!a)return Promise.resolve();let o=!r&&ze(Re(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return s().then(()=>a(t,n,o)).then(e=>t===u.value&&e&&Ee(e)).catch(e=>t===u.value&&M(e,t,n))}let ce=e=>i.go(e),N,P=new Set,F={currentRoute:u,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:_,resolve:y,options:e,push:S,replace:ee,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:o.add,beforeResolve:c.add,afterEach:l.add,onError:ie.add,isReady:ae,install(e){e.component(`RouterLink`,$r),e.component(`RouterView`,oi),e.config.globalProperties.$router=F,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>A(u)}),K&&!N&&u.value===G&&(N=!0,S(i.location).catch(e=>{}));let t={};for(let e in G)Object.defineProperty(t,e,{get:()=>u.value[e],enumerable:!0});e.provide(Se,F),e.provide(je,de(t)),e.provide(Ae,u);let n=e.unmount;P.add(e),e.unmount=function(){P.delete(e),P.size<1&&(d=G,O&&O(),O=null,u.value=G,N=!1,j=!1),n()}}};function I(e){return e.reduce((e,t)=>e.then(()=>E(t)),Promise.resolve())}return F}var ci=[rt(async e=>{let t,n;if(!e.meta?.validate)return;let r=([t,n]=D(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);if(r!==!0)return q({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),rt(e=>{let t=Sn({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return vt(n,{acceptRelative:!0})?(window.location.href=n,!1):n}})],li={},ui=[{name:`graph`,path:`/graph`,component:()=>X(()=>import(`./CcqwYoEJ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url)},{name:`home`,path:`/home`,component:()=>X(()=>import(`./CP22b8pv.js`),__vite__mapDeps([14,1,2,3,4,11]),import.meta.url)},{name:`plugins`,path:`/plugins`,component:()=>X(()=>import(`./65vBZ263.js`),__vite__mapDeps([15,1,2,3,4,5,6,9,8,10,11,12,16]),import.meta.url)},{name:`index`,path:`/`,component:()=>X(()=>import(`./DFhP8lOG.js`),__vite__mapDeps([17,1,6,3]),import.meta.url)}];function di(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),gt(n,``)}let s=gt(r,e),c=!n||ht(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var fi=N({name:`nuxt:router`,enforce:`pre`,async setup(e){let t,n,r=C().app.baseURL,i=W.history?.(r)??kr(r),o=W.routes?([t,n]=D(()=>W.routes(ui)),t=await t,n(),t??ui):ui,s,c=si({...W,scrollBehavior:(e,t,n)=>{if(t===G){s=n;return}if(W.scrollBehavior){if(c.options.scrollBehavior=W.scrollBehavior,`scrollRestoration`in window.history){let e=c.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return W.scrollBehavior(e,G,s||n)}},history:i,routes:o});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(c);let l=a(c.currentRoute.value);c.afterEach((e,t)=>{l.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});let u=di(r,window.location,e.payload.path),d=a(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;if(n===r){Q({route:e,Component:{type:n}})===Q({route:t,Component:{type:r}})&&f();return}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=de(p),e._middleware||={global:[],named:{}};let m=ut();c.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&m.value&&await e.runWithContext(lt),r&&await e.callHook(`page:loading:end`)});try{[t,n]=D(()=>c.isReady()),await t,n()}catch(r){[t,n]=D(()=>ct(e,r)),await t,n()}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&&ht(c.currentRoute.value.path,e.payload.path);f();function v(t){!e.isHydrating&&t.fullPath!==di(r,window.location)&&i.push(t.fullPath)}let y=e.payload.state._layout;return c.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=R(t.meta),e.isHydrating&&y&&!ee(t.meta.layout)&&(t.meta.layout=y),e._processingMiddleware=!0;{let r=new Set([...ci,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of Cr(t))r.add(e)}let i=Sn({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 li[i]?.().then(e=>e.default||e):i;if(!r)throw ot.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||q({status:404,statusText:`Page Not Found: ${u}`});return await e.runWithContext(()=>J(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return nt(i)&&i.fatal&&(await e.runWithContext(()=>J(i)),v(t)),i}catch(n){let r=q(n);return r.fatal&&(await e.runWithContext(()=>J(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(()=>J(q({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=W.scrollBehavior}catch(t){await ct(e,t)}}),{provide:{router:c}}}},1),pi=N(()=>{let e=Y();Je(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),mi=N(e=>{let t;async function n(){let r;try{r=await xn()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,I);try{let n=await dn(ln(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}Je(()=>{t=setTimeout(n,I)})});function hi(e={}){let t=e.path||window.location.pathname,n=new URL(t,window.location.href);if(n.host!==window.location.host)throw ot.NUXT_E2010({path:t});if(n.protocol&&pt(n.protocol))throw ot.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:k().payload.state}))}catch{}window.location.pathname===t?window.location.reload():window.location.href=t}}var gi=N({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&ft(navigator.userAgent)&&hi()})}}),_i=N({name:`nuxt:chunk-reload`,setup(e){let t=Y(),n=C(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){hi({path:yt(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),vi=N({name:`nuxt:global-components`}),$={},yi=N({name:`nuxt:prefetch`,setup(e){let t=Y();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;t&&typeof $[t]==`function`&&await $[t]()})}),e.hooks.hook(`link:prefetch`,e=>{if(vt(e))return;let n=t.resolve(e);if(!n)return;let r=n.meta.layout,i=Cr(n.meta.middleware).filter(e=>typeof e==`string`);for(let e of i){let t=li[e];typeof t==`function`&&t()}typeof r==`string`&&r in $&&We($[r])})}}),bi=N(()=>{});function xi(e){e.use(Mt,{overflowPadding:20})}var Si=[Vn,_r,fi,pi,mi,gi,_i,vi,yi,bi,N(e=>{xi(e.vueApp)})],Ci=(e=`RouteProvider`)=>f({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},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 x(tt,de(r)),()=>e.vnode?c(e.vnode,{ref:e.vnodeRef}):e.vnode}}),wi=Ci(),Ti=new WeakMap,Ei=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:i}){let a=k(),o=r(),l=m(tt,null),u=new Set,d;i({pageRef:o});let f=m(at,null),p,h=a.deferHydration(),g=!1,_=!1,y,b=0;if(a.isHydrating){let e=a.hooks.hookOnce(`app:error`,h),t=Y().beforeEach(()=>{e(),t()})}e.pageKey&&j(()=>e.pageKey,(e,t)=>{e!==t&&a.callHook(`page:loading:start`)});let x=!1;{let e=Y().beforeResolve(()=>{x=!1});v(()=>{e(),h()})}return()=>c(oi,{name:e.name,route:e.route,...t},{default:ki(t=>{let r=Di(l,t.route,t.Component),i=l&&l.matched.length===t.route.matched.length;if(!t.Component){if(p&&!i&&!ji(p))return p;h();return}if(p&&f&&!ji(p)&&!f.isCurrent(t.route))return p;if(r&&l&&(!f||f?.isCurrent(l)))return(i||p)&&!ji(p)?p:null;let m=Q(t,e.pageKey),v=Oi(l,t.route,t.Component);!a.isHydrating&&d===m&&!v&&s(()=>{x||(x=!0,a.callHook(`page:loading:end`))}),g&&d!==m&&_&&b++,d=m;let S=!!(e.transition??t.route.meta.pageTransition??!1),ee=S&&Ne([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){a[`~transitionFinish`]?.(),delete a[`~transitionFinish`],delete a[`~transitionPromise`],a.callHook(`page:transition:finish`,t.Component)}}]),C=e.keepalive??t.route.meta.keepalive??!1,w=t.Component.type,T=w.name||w.__name;t.route.meta.keepalive&&T&&u.add(T);let E;if(u.size>0&&e.keepalive==null&&(!C||typeof C==`object`&&C&&C.include)){let e=typeof C==`object`&&C?{...C}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];E={...e,include:Array.from(new Set([...t,...u]))}}else E=C;return p=Ge(S&&ee,Sr(E,c(le,{key:b,suspensible:!0,onPending:()=>{g=!0,S&&!a[`~transitionPromise`]&&(a[`~transitionPromise`]=new Promise(e=>{a[`~transitionFinish`]=e})),y=a.callHook(`page:start`,t.Component)},onResolve:async()=>{g=!1,_=!0,a.isHydrating&&a[`~restoreDeferredRoute`]?.();try{await s(),a._route.sync?.(),await y,await a.callHook(`page:finish`,t.Component),!x&&!v&&(x=!0,await a.callHook(`page:loading:end`))}finally{h()}}},{default:()=>{let e={key:m||void 0,vnode:n.default?Ai(n.default,t):t.Component,route:t.route,renderKey:m||void 0,trackRootNodes:S,vnodeRef:o};if(!E)return c(wi,e);let r=w,i=Ti.get(r);return i||(i=Ci(T),Ti.set(r,i)),c(i,e)}}))).default(),p})})}});function Di(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&&Q({route:t,Component:n})!==Q({route:e,Component:n})}function Oi(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function ki(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!pe(n)?[ue()]:[n]});return t._n=!0,t}function Ai(e,t){let n=e(t);return n.length===1?c(n[0]):c(re,void 0,n)}function ji(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var Mi=0,Ni=R(new Map),Pi=L(()=>Array.from(Ni.values()).flat());function Fi(e){let t=i(e),n=()=>{};function r(e){n();let t=Mi++;Ni.set(t,e),n=()=>{Ni.delete(t)}}return j(t,e=>{r(e)},{immediate:!0}),w(()=>{n()}),()=>{n()}}var Ii={class:`w12 flex-none`},Li={class:`border-r border-y border-base rounded-r-xl flex flex-col gap-1 p1 of-y-auto max-h-96vh bg-glass`,style:{position:`fixed`,left:`0`,top:`50%`,transform:`translateY(-50%)`,"z-index":`64`}},Ri=f({__name:`PanelSideNav`,props:{items:{}},setup(t){let r=t,i=L(()=>r.items??Pi.value);return(t,r)=>{let a=oe(`tooltip`);return b(),g(`div`,Ii,[(b(),n(fe,{to:`body`},[h(`div`,Li,[(b(!0),g(re,null,e(i.value,e=>O((b(),n(P(e.to?A(Ye):`button`),_({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:te(()=>[h(`div`,{class:ce([e.icon,`text-lg`])},null,2)]),_:2},1040,[`title`,`aria-label`,`onClick`])),[[a,{placement:`right`,content:e.title}]])),128))])]))])}}}),zi={key:0,class:`text-red`},Bi={key:2,class:`grid grid-cols-[max-content_1fr] h-screen w-screen max-w-screen max-h-screen of-hidden`},Vi={class:`of-auto h-screen max-h-screen relative`},Hi=f({__name:`app`,setup(e){return Dt({title:`Vite DevTools`}),ge(),Fi(()=>[{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,t)=>{let r=me,i=Ei;return A(he).error?(b(),g(`div`,zi,y(A(he).error),1)):A(he).connected?(b(),g(`div`,Bi,[ie(Ri),h(`div`,Vi,[ie(i)])])):(b(),n(r,{key:1,text:`Connecting...`}))}}}),Ui={__name:`nuxt-error-page`,props:{error:Object},setup(e){let t=e.error,r=Number(t.statusCode||500),i=r===404,a=t.statusMessage??(i?`Page Not Found`:`Internal Server Error`),s=t.message||t.toString(),c=d(()=>X(()=>import(`./B4-kpPlj.js`),__vite__mapDeps([18,1,5,6,3,19,10,20]),import.meta.url)),u=d(()=>X(()=>import(`./CJN_wQsK.js`),__vite__mapDeps([21,1,19,10,22]),import.meta.url)),f=i?c:u;return(e,t)=>(b(),n(A(f),l(o({status:A(r),statusText:A(a),statusCode:A(r),statusMessage:A(a),description:A(s),stack:A(void 0)})),null,16))}},Wi=()=>null,Gi={key:0},Ki={__name:`nuxt-root`,setup(e){let t=k(),r=t.deferHydration();if(t.isHydrating){let e=t.hooks.hookOnce(`app:error`,r),n=Y().beforeEach(()=>{e(),n()})}window.location.pathname,x(tt,it()),t.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let i=ut();function a(e,n,r){let i=t.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,n,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return u((e,n,r)=>{if(t.hooks.callHook(`vue:error`,e,n,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),ft(navigator.userAgent))return dt(t,e),!1;if(nt(e)&&(e.fatal||e.unhandled))return t.runWithContext(()=>J(e)),a(e,n,r),!1}),(e,t)=>(b(),n(le,{onResolve:A(r)},{default:te(()=>[A(!1)?(b(),g(`div`,Gi)):A(i)?(b(),n(A(Ui),{key:1,error:A(i)},null,8,[`error`])):A(!1)?(b(),n(A(Wi),{key:2,context:A(!1)},null,8,[`context`])):A(!1)?(b(),n(P(A(!1)),{key:3})):(b(),n(A(Hi),{key:4}))]),_:1},8,[`onResolve`]))}},qi;{let e;qi=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?qe(Ki):we(Ki),r=M({vueApp:n});async function i(e){await r.callHook(`app:error`,e),r.payload.error||=q(e)}i.__nuxt_default=!0,n.config.errorHandler=i,r.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)}),!t&&T.id&&r.hook(`app:suspense:resolve`,()=>{document.getElementById(T.id)?.remove()});try{await F(r,Si)}catch(e){i(e)}try{await r.hooks.callHook(`app:created`,n),await r.hooks.callHook(`app:beforeMount`,n),n.mount(E),await r.hooks.callHook(`app:mounted`,n),await s()}catch(e){i(e)}return n},e=qi().catch(e=>{throw p.NUXT_E1009({cause:e}),e})}
@@ -1 +0,0 @@
1
- {"id":"eb3b8c17-0790-417e-a6ed-95ac58726921","timestamp":1784616168515,"prerendered":[]}
@@ -1 +0,0 @@
1
- import{$t as e,Ct as t,G as n,L as r,P as i,R as a,U as o,W as s,en as c,gt as ee,i as l,kt as u,nn as te,p as d,ut as ne,vt as re}from"./CPH0XTIl.js";var f=te({docsBase:e,reporters:c});function p(e,t){return t&&typeof e==`function`&&(e.key=t),e}var m=new Set([`link`,`style`,`script`,`noscript`]),h=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),g=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),ie=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),_=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),v=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),ae=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),y=new Set([`theme-color`,`google-site-verification`,`og`,`article`,`book`,`profile`,`twitter`,`author`]),b={critical:-8,high:-1,low:2};function x(e){return e===`__proto__`||e===`constructor`||e===`prototype`}var S={META:new Set([`twitter`,`fediverse`]),OG:new Set([`og`,`book`,`article`,`profile`,`fb`,`payment`]),MEDIA:new Set([`ogImage`,`ogVideo`,`ogAudio`,`twitterImage`]),HTTP_EQUIV:new Set([`contentType`,`defaultStyle`,`xUaCompatible`])},oe={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`},C=/([A-Z])/g,w=/^(?:og|twitter)/,T={appleItunesApp:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>`${E(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`?E(e):`${E(e)}:${t}`}},contentSecurityPolicy:{metaKey:`http-equiv`,unpack:{entrySeparator:`; `,resolve:({key:e,value:t})=>`${E(e)} ${t}`}},charset:{}};function E(e){let t=e.replace(C,`-$1`).toLowerCase(),n=t.indexOf(`-`);return n===-1?t:S.META.has(t.slice(0,n))||S.OG.has(t.slice(0,n))?e.replace(C,`:$1`).toLowerCase():t}function D(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>String(t)!==`false`&&e))}function O(e){return Array.isArray(e)?e.map(O):!e||typeof e!=`object`?e:Object.fromEntries(Object.entries(e).map(([e,t])=>[E(e),O(t)]))}function k(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`?k(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 A(e,t){let n=D(t),r=E(e),i=j(r);return y.has(r)?M(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 j(e){if(T[e]?.metaKey===`http-equiv`||S.HTTP_EQUIV.has(e))return`http-equiv`;let t=E(e),n=t.indexOf(`:`);return n===-1?`name`:S.OG.has(t.slice(0,n))?`property`:`name`}function se(e){return oe[e]||E(e)}function ce(e,t){return t===`refresh`?`${e.seconds};url=${e.url}`:k(O(e),{keyValueSeparator:`=`,entrySeparator:`, `,resolve:({value:e,key:t})=>e===null?``:typeof e==`boolean`?t:void 0,...T[t]?.unpack})}function M(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=M({[`${r}${t===`url`?``:`:${t}`}`]:a});(t===`url`?n:i).push(...e)}t.push(...n,...i)}else t.push(...typeof e==`string`?M({[r]:e}):A(r,e));continue}if(typeof i==`object`&&i)if(S.MEDIA.has(r)){let e=r.startsWith(`twitter`)?`twitter`:`og`,n=r.replace(w,``).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 y.has(E(r))?t.push(...A(r,i)):n[r]=D(i);else n[r]=i}let r=Object.entries(n).map(([e,t])=>{if(e===`charset`)return{charset:t===null?`_null`:t};let n=j(e),r=se(e),i=t===null?`_null`:typeof t==`object`?ce(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 le=p({key:`flatMeta`,hooks:{"entries:normalize":e=>{let t=!1,n=[],r=[];for(let i of e.tags){if(i.tag!==`_flatMeta`){n.push(i);continue}t=!0;for(let e of M(i.props))r.push({...i,tag:`meta`,props:e})}if(t){for(let e of r)n.push(e);e.tags=n}}}});function N(e){let t=new d;for(let n in e||{})t.hook(n,e[n]);return t}function P(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}var F=/^(?:viewport|description|keywords|robots)$/,I=[`name`,`property`,`http-equiv`];function L(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.indexOf(`:`,t+1);return y.has(e.slice(t+1,n===-1?e.length:n))}function R(e){let{props:t,tag:n,key:r}=e;if(_.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 I){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!F.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}`:h.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function z(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 B(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=B(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=x(n),a=i?void 0:B(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 V=/[\s"'<>/=\x00-\x1F\x7F]/;function H(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 U(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=g.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(x(r))continue;let i=r.startsWith(`data-`),a=n&&!v.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||V.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=H(r,s);else if(v.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=t.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 W(e,t){let n=U({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&m.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 G(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function ue(e,t){if(!e)return[];typeof e==`function`&&(e=e());let n;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)),e=B(e,n);let r=[];for(let t in e){let n=e[t];if(n!==void 0)if(Array.isArray(n))for(let e of n)G(r,W(t,e));else G(r,W(t,n))}return r}var de=/</g,fe=/<\/script/g,K=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,pe=()=>100;function q(e){for(let t in e)return!1;return!0}var me=/^tags:|:render/;function J(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 he(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 ge(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(K)}function _e(e){let t=!1;for(let n of e.tags.sort(K)){let r=n._d||z(n);if(!r)continue;let i=e.tagMap.get(r);if(!i){e.tagMap.set(r,n);continue}if((n.tagDuplicateStrategy||(ae.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`&&L(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 ve(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 ye(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(!(!ie.has(i)||q(a)&&!r&&!n.textContent)&&!(i===`meta`&&!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(de,`\\u003C`):typeof e==`string`?e.replace(fe,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&=i(n.textContent),n._d=R(n)}e[t++]=n}}return e.length=t,e}function be(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??pe,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};J(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&&P(e,`entries:resolve`,{entries:a,...r})),J(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||q(t.options)))a=t._precomputedTags;else{if(a=ue(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!q(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};P(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=R(r),r._d||(r._h=z(r))}t._tags=a}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&me.test(e)){he(r.tags);break}let o=_e(r);return ve(r,e),ge(r,o),P(e,`tags:beforeResolve`,r),P(e,`tags:resolve`,r),P(e,`tags:afterResolve`,r),ye(r.tags)}var Y=`usehead`;function X(){if(r()){let e=a(Y);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function xe(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(Y,e)}}.install}var Se=Object.assign((e,t)=>re(t)?u(t):t,{_static:!0});function Z(e,t={}){let n=t.head||X();return n.ssr?n.push(e||{},t):Ce(n,e,t)}function Ce(e,r,a={}){let c=ee();if(c&&!c.active)return{patch(){},dispose(){},_i:-1};let l=t(!1);if(a.onRendered&&c){let e=a.onRendered;a={...a,onRendered:t=>c.run(()=>e(t))}}let u;return ne(()=>{let t=l.value?{}:B(r,Se);u?u.patch(t):u=e.push(t,a)}),i()&&(s(()=>{u.dispose()}),n(()=>{l.value=!0}),o(()=>{l.value=!1})),u}function Q(e){if(e._flatMeta)return e;let t={};for(let n in e)!Object.hasOwn(e,n)||n===`title`||n===`titleTemplate`||(t[n]=e[n]);return{title:e.title,titleTemplate:e.titleTemplate,_flatMeta:t}}function we(e={},t={}){(t.head||X()).use(le);let n=Z(Q(e),t),r=n.patch;return n.__patched||=(n.patch=e=>r(Q(e)),!0),n}function $(e){let t=e||l();return t.ssrContext?.head||t.runWithContext(()=>{if(r()){let e=a(`usehead`);if(!e)throw f.NUXT_E6001();return e}})}function Te(e,t={}){return Z(e,{head:t.head||$(t.nuxt),...t})}function Ee(e,t={}){return we(e,{head:t.head||$(t.nuxt),...t})}export{z as a,be as c,g as d,b as f,R as i,P as l,Ee as n,L as o,xe as r,U as s,Te as t,N as u};
@@ -1,10 +0,0 @@
1
- (function(){
2
- /**
3
- * @license
4
- * Copyright 2019 Google LLC
5
- * SPDX-License-Identifier: Apache-2.0
6
- */
7
- let e=Symbol(`Comlink.proxy`),t=Symbol(`Comlink.endpoint`),n=Symbol(`Comlink.releaseProxy`),r=Symbol(`Comlink.finalizer`),i=Symbol(`Comlink.thrown`),a=e=>typeof e==`object`&&!!e||typeof e==`function`,o=new Map([[`proxy`,{canHandle:t=>a(t)&&t[e],serialize(e){let{port1:t,port2:n}=new MessageChannel;return c(e,t),[n,[n]]},deserialize(e){return e.start(),d(e)}}],[`throw`,{canHandle:e=>a(e)&&i in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(Error(e.value.message),e.value):e.value}}]]);function s(e,t){for(let n of e)if(t===n||n===`*`||n instanceof RegExp&&n.test(t))return!0;return!1}function c(e,t=globalThis,n=[`*`]){t.addEventListener(`message`,function a(o){if(!o||!o.data)return;if(!s(n,o.origin)){console.warn(`Invalid origin '${o.origin}' for comlink proxy`);return}let{id:l,type:d,path:f}=Object.assign({path:[]},o.data),p=(o.data.argumentList||[]).map(T),m;try{let t=f.slice(0,-1).reduce((e,t)=>e[t],e),n=f.reduce((e,t)=>e[t],e);switch(d){case`GET`:m=n;break;case`SET`:t[f.slice(-1)[0]]=T(o.data.value),m=!0;break;case`APPLY`:m=n.apply(t,p);break;case`CONSTRUCT`:m=C(new n(...p));break;case`ENDPOINT`:{let{port1:t,port2:n}=new MessageChannel;c(e,n),m=S(t,[t])}break;case`RELEASE`:m=void 0;break;default:return}}catch(e){m={value:e,[i]:0}}Promise.resolve(m).catch(e=>({value:e,[i]:0})).then(n=>{let[i,o]=w(n);t.postMessage(Object.assign(Object.assign({},i),{id:l}),o),d===`RELEASE`&&(t.removeEventListener(`message`,a),u(t),r in e&&typeof e[r]==`function`&&e[r]())}).catch(e=>{let[n,r]=w({value:TypeError(`Unserializable return value`),[i]:0});t.postMessage(Object.assign(Object.assign({},n),{id:l}),r)})}),t.start&&t.start()}function l(e){return e.constructor.name===`MessagePort`}function u(e){l(e)&&e.close()}function d(e,t){let n=new Map;return e.addEventListener(`message`,function(e){let{data:t}=e;if(!t||!t.id)return;let r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}}),v(e,n,[],t)}function f(e){if(e)throw Error(`Proxy has been released and is not useable`)}function p(e){return E(e,new Map,{type:`RELEASE`}).then(()=>{u(e)})}let m=new WeakMap,h=`FinalizationRegistry`in globalThis&&new FinalizationRegistry(e=>{let t=(m.get(e)||0)-1;m.set(e,t),t===0&&p(e)});function g(e,t){let n=(m.get(t)||0)+1;m.set(t,n),h&&h.register(e,t,e)}function _(e){h&&h.unregister(e)}function v(e,r,i=[],a=function(){}){let o=!1,s=new Proxy(a,{get(t,a){if(f(o),a===n)return()=>{_(s),p(e),r.clear(),o=!0};if(a===`then`){if(i.length===0)return{then:()=>s};let t=E(e,r,{type:`GET`,path:i.map(e=>e.toString())}).then(T);return t.then.bind(t)}return v(e,r,[...i,a])},set(t,n,a){f(o);let[s,c]=w(a);return E(e,r,{type:`SET`,path:[...i,n].map(e=>e.toString()),value:s},c).then(T)},apply(n,a,s){f(o);let c=i[i.length-1];if(c===t)return E(e,r,{type:`ENDPOINT`}).then(T);if(c===`bind`)return v(e,r,i.slice(0,-1));let[l,u]=b(s);return E(e,r,{type:`APPLY`,path:i.map(e=>e.toString()),argumentList:l},u).then(T)},construct(t,n){f(o);let[a,s]=b(n);return E(e,r,{type:`CONSTRUCT`,path:i.map(e=>e.toString()),argumentList:a},s).then(T)}});return g(s,e),s}function y(e){return Array.prototype.concat.apply([],e)}function b(e){let t=e.map(w);return[t.map(e=>e[0]),y(t.map(e=>e[1]))]}let x=new WeakMap;function S(e,t){return x.set(e,t),e}function C(t){return Object.assign(t,{[e]:!0})}function w(e){for(let[t,n]of o)if(n.canHandle(e)){let[r,i]=n.serialize(e);return[{type:`HANDLER`,name:t,value:r},i]}return[{type:`RAW`,value:e},x.get(e)||[]]}function T(e){switch(e.type){case`HANDLER`:return o.get(e.name).deserialize(e.value);case`RAW`:return e.value}}function E(e,t,n,r){return new Promise(i=>{let a=D();t.set(a,i),e.start&&e.start(),e.postMessage(Object.assign({id:a},n),r)})}function D(){return[,,,,].fill(0).map(()=>Math.floor(Math.random()*(2**53-1)).toString(16)).join(`-`)}let O=Object.freeze({diffTimeout:1,diffEditCost:4,matchThreshold:.5,matchDistance:1e3,patchDeleteThreshold:.5,patchMargin:4,matchMaxBits:32});function k(e){if(e?.__resolved)return e;let t={...O,...e};return Object.defineProperty(t,"__resolved",{value:!0,enumerable:!1}),t}function A(e,t){return[e,t]}function j(e,t,n,r=!0,i){let a=k(n);i===void 0&&(i=a.diffTimeout<=0?Number.MAX_VALUE:new Date().getTime()+a.diffTimeout*1e3);let o=i;if(e==null||t==null)throw Error(`Null input. (diff_main)`);if(e===t)return e?[A(0,e)]:[];let s=r,c=R(e,t),l=e.substring(0,c);e=e.substring(c),t=t.substring(c),c=z(e,t);let u=e.substring(e.length-c);e=e.substring(0,e.length-c),t=t.substring(0,t.length-c);let d=M(e,t,a,s,o);return l&&d.unshift(A(0,l)),u&&d.push(A(0,u)),Y(d),d}function M(e,t,n,r,i){let a;if(!e)return[A(1,t)];if(!t)return[A(-1,e)];let o=e.length>t.length?e:t,s=e.length>t.length?t:e,c=o.indexOf(s);if(c!==-1)return a=[A(1,o.substring(0,c)),A(0,s),A(1,o.substring(c+s.length))],e.length>t.length&&(a[0][0]=a[2][0]=-1),a;if(s.length===1)return[A(-1,e),A(1,t)];let l=V(e,t,n);if(l){let e=l[0],t=l[1],a=l[2],o=l[3],s=l[4],c=j(e,a,n,r,i),u=j(t,o,n,r,i);return c.concat([A(0,s)],u)}return r&&e.length>100&&t.length>100?N(e,t,n,i):P(e,t,n,i)}function N(e,t,n,r){let i=I(e,t);e=i.chars1,t=i.chars2;let a=i.lineArray,o=j(e,t,n,!1,r);L(o,a),H(o),o.push(A(0,``));let s=0,c=0,l=0,u=``,d=``;for(;s<o.length;){switch(o[s][0]){case 1:l++,d+=o[s][1];break;case-1:c++,u+=o[s][1];break;case 0:if(c>=1&&l>=1){o.splice(s-c-l,c+l),s=s-c-l;let e=j(u,d,n,!1,r);for(let t=e.length-1;t>=0;t--)o.splice(s,0,e[t]);s+=e.length}l=0,c=0,u=``,d=``;break}s++}return o.pop(),o}function P(e,t,n,r){let i=e.length,a=t.length,o=Math.ceil((i+a)/2),s=o,c=2*o,l=Array(c),u=Array(c);for(let e=0;e<c;e++)l[e]=-1,u[e]=-1;l[s+1]=0,u[s+1]=0;let d=i-a,f=d%2!=0,p=0,m=0,h=0,g=0;for(let _=0;_<o&&!(new Date().getTime()>r);_++){for(let o=-_+p;o<=_-m;o+=2){let h=s+o,g;g=o===-_||o!==_&&l[h-1]<l[h+1]?l[h+1]:l[h-1]+1;let v=g-o;for(;g<i&&v<a&&e.charAt(g)===t.charAt(v);)g++,v++;if(l[h]=g,g>i)m+=2;else if(v>a)p+=2;else if(f){let a=s+d-o;if(a>=0&&a<c&&u[a]!==-1){let o=i-u[a];if(g>=o)return F(e,t,n,g,v,r)}}}for(let o=-_+h;o<=_-g;o+=2){let p=s+o,m;m=o===-_||o!==_&&u[p-1]<u[p+1]?u[p+1]:u[p-1]+1;let v=m-o;for(;m<i&&v<a&&e.charAt(i-m-1)===t.charAt(a-v-1);)m++,v++;if(u[p]=m,m>i)g+=2;else if(v>a)h+=2;else if(!f){let a=s+d-o;if(a>=0&&a<c&&l[a]!==-1){let o=l[a],c=s+o-a;if(m=i-m,o>=m)return F(e,t,n,o,c,r)}}}}return[A(-1,e),A(1,t)]}function F(e,t,n,r,i,a){let o=e.substring(0,r),s=t.substring(0,i),c=e.substring(r),l=t.substring(i),u=j(o,s,n,!1,a),d=j(c,l,n,!1,a);return u.concat(d)}function I(e,t){let n=[],r={},i=4e4;n[0]=``;function a(e){let t=``,a=0,o=-1,s=n.length;for(;o<e.length-1;){o=e.indexOf(`
8
- `,a),o===-1&&(o=e.length-1);let c=e.substring(a,o+1);(r.hasOwnProperty?Object.prototype.hasOwnProperty.call(r,c):r[c]!==void 0)?t+=String.fromCharCode(r[c]):(s===i&&(c=e.substring(a),o=e.length),t+=String.fromCharCode(s),r[c]=s,n[s++]=c),a=o+1}return t}let o=a(e);return i=65535,{chars1:o,chars2:a(t),lineArray:n}}function L(e,t){for(let n=0;n<e.length;n++){let r=e[n][1],i=[];for(let e=0;e<r.length;e++)i[e]=t[r.charCodeAt(e)];e[n][1]=i.join(``)}}function R(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function z(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function B(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function V(e,t,n){if(n.diffTimeout<=0)return null;let r=e.length>t.length?e:t,i=e.length>t.length?t:e;if(r.length<4||i.length*2<r.length)return null;function a(e,t,n){let r=e.substring(n,n+Math.floor(e.length/4)),i=-1,a=``,o,s,c,l;for(;(i=t.indexOf(r,i+1))!==-1;){let r=R(e.substring(n),t.substring(i)),u=z(e.substring(0,n),t.substring(0,i));a.length<u+r&&(a=t.substring(i-u,i)+t.substring(i,i+r),o=e.substring(0,n-u),s=e.substring(n+r),c=t.substring(0,i-u),l=t.substring(i+r))}return a.length*2>=e.length?[o,s,c,l,a]:null}let o=a(r,i,Math.ceil(r.length/4)),s=a(r,i,Math.ceil(r.length/2)),c;if(!o&&!s)return null;c=s?o&&o[4].length>s[4].length?o:s:o;let l,u,d,f;e.length>t.length?(l=c[0],u=c[1],d=c[2],f=c[3]):(d=c[0],f=c[1],l=c[2],u=c[3]);let p=c[4];return[l,u,d,f,p]}function H(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===0?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===1?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,A(-1,i)),e[n[r-1]+1][0]=1,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&Y(e),J(e),a=1;a<e.length;){if(e[a-1][0]===-1&&e[a][0]===1){let t=e[a-1][1],n=e[a][1],r=B(t,n),i=B(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,A(0,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,A(0,t.substring(0,i))),e[a-1][0]=1,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=-1,e[a+1][1]=t.substring(i),a++),a++}a++}}let U=/[^a-z0-9]/i,W=/\s/,G=/[\r\n]/,K=/\n\r?\n$/,q=/^\r?\n\r?\n/;function J(e){function t(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(U),a=r.match(U),o=i&&n.match(W),s=a&&r.match(W),c=o&&n.match(G),l=s&&r.match(G),u=c&&e.match(K),d=l&&t.match(q);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}let n=1;for(;n<e.length-1;){if(e[n-1][0]===0&&e[n+1][0]===0){let r=e[n-1][1],i=e[n][1],a=e[n+1][1],o=z(r,i);if(o){let e=i.substring(i.length-o);r=r.substring(0,r.length-o),i=e+i.substring(0,i.length-o),a=e+a}let s=r,c=i,l=a,u=t(r,i)+t(i,a);for(;i.charAt(0)===a.charAt(0);){r+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);let e=t(r,i)+t(i,a);e>=u&&(u=e,s=r,c=i,l=a)}e[n-1][1]!==s&&(s?e[n-1][1]=s:(e.splice(n-1,1),n--),e[n][1]=c,l?e[n+1][1]=l:(e.splice(n+1,1),n--))}n++}}function Y(e){e.push(A(0,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case 1:r++,a+=e[t][1],t++;break;case-1:n++,i+=e[t][1],t++;break;case 0:n+r>1?(n!==0&&r!==0&&(o=R(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===0?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,A(0,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=z(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,A(-1,i)),t++),a.length&&(e.splice(t,0,A(1,a)),t++),t++):t!==0&&e[t-1][0]===0?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``;break}e[e.length-1][1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===0&&e[t+1][0]===0&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&Y(e)}function X(e,t){let n=j(e.replace(/\r\n/g,`
9
- `),t.replace(/\r\n/g,`
10
- `));return H(n),n}c({calculateDiff:X})})();
@@ -1 +0,0 @@
1
- .grid[data-v-cec47b3a]{display:grid}.mb-2[data-v-cec47b3a]{margin-bottom:.5rem}.mb-4[data-v-cec47b3a]{margin-bottom:1rem}.max-w-520px[data-v-cec47b3a]{max-width:520px}.min-h-screen[data-v-cec47b3a]{min-height:100vh}.w-full[data-v-cec47b3a]{width:100%}.flex[data-v-cec47b3a]{display:flex}.place-content-center[data-v-cec47b3a]{place-content:center}.items-center[data-v-cec47b3a]{align-items:center}.justify-center[data-v-cec47b3a]{justify-content:center}.overflow-hidden[data-v-cec47b3a]{overflow:hidden}.bg-white[data-v-cec47b3a]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-cec47b3a]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-cec47b3a]{text-align:center}.text-\[80px\][data-v-cec47b3a]{font-size:80px}.text-2xl[data-v-cec47b3a]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-cec47b3a]{font-size:.875rem;line-height:1.25rem}.text-\[\#020420\][data-v-cec47b3a]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-cec47b3a]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-cec47b3a]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.font-medium[data-v-cec47b3a]{font-weight:500}.font-semibold[data-v-cec47b3a]{font-weight:600}.leading-none[data-v-cec47b3a]{line-height:1}.tracking-wide[data-v-cec47b3a]{letter-spacing:.025em}.font-sans[data-v-cec47b3a]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-cec47b3a]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline[data-v-cec47b3a]{text-decoration-line:underline}.underline-offset-3[data-v-cec47b3a]{text-underline-offset:3px}.antialiased[data-v-cec47b3a]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-cec47b3a]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-cec47b3a]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (width>=640px){.sm\:text-\[110px\][data-v-cec47b3a]{font-size:110px}.sm\:text-3xl[data-v-cec47b3a]{font-size:1.875rem;line-height:2.25rem}}
@@ -1 +0,0 @@
1
- .grid[data-v-d86c2c38]{display:grid}.mb-2[data-v-d86c2c38]{margin-bottom:.5rem}.mb-4[data-v-d86c2c38]{margin-bottom:1rem}.max-w-520px[data-v-d86c2c38]{max-width:520px}.min-h-screen[data-v-d86c2c38]{min-height:100vh}.place-content-center[data-v-d86c2c38]{place-content:center}.overflow-hidden[data-v-d86c2c38]{overflow:hidden}.bg-white[data-v-d86c2c38]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-d86c2c38]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-d86c2c38]{text-align:center}.text-\[80px\][data-v-d86c2c38]{font-size:80px}.text-2xl[data-v-d86c2c38]{font-size:1.5rem;line-height:2rem}.text-\[\#020420\][data-v-d86c2c38]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-d86c2c38]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-d86c2c38]{font-weight:600}.leading-none[data-v-d86c2c38]{line-height:1}.tracking-wide[data-v-d86c2c38]{letter-spacing:.025em}.font-sans[data-v-d86c2c38]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-d86c2c38]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-d86c2c38]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-d86c2c38]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-d86c2c38]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (width>=640px){.sm\:text-\[110px\][data-v-d86c2c38]{font-size:110px}.sm\:text-3xl[data-v-d86c2c38]{font-size:1.875rem;line-height:2.25rem}}
@@ -1,2 +0,0 @@
1
- import{C as e,Et as t,N as n,S as r,T as i,Xt as a,Y as o,a as s,bt as c,dt as l,et as u,gt as d,j as f,k as p,tn as m,xt as h}from"./CPH0XTIl.js";import{d as g,u as _}from"./NLJpu4QF.js";function v(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(`
2
- `)}}var y={viewBox:`0 0 1053 86`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:`banner-devtools`},b=n({__name:`BannerViteDevTools`,setup(e){return(e,t)=>(o(),i(`svg`,y,[...t[0]||=[p(`<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)]]))}}),ee={class:`p10 h-full flex flex-col items-center justify-center`},te={class:`flex gap-2 animate-pulse items-center justify-center`},ne=n({__name:`VisualLoading`,props:{text:{}},setup(e){return(t,n)=>(o(),i(`div`,ee,[u(t.$slots,`banner`),r(`div`,te,[n[0]||=r(`div`,{class:`i-svg-spinners-8-dots-rotate`},null,-1),r(`span`,null,a(e.text??`Loading...`),1)])]))}}),re=Object.assign(n({__name:`Loading`,props:{text:{}},setup(t){return(n,r)=>(o(),e(ne,{text:t.text},{banner:l(()=>[f(b)]),_:1},8,[`text`]))}}),{__name:`VisualLoading`});function ie(e){return typeof e==`string`?`'${e}'`:new ae().serialize(e)}var ae=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(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(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}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}(),oe=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],se=[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],ce=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,x=[],le=class{_data=new ue;_hash=new ue([...oe]);_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)x[n]=e[t+n]|0;else{let e=x[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=x[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;x[n]=t+x[n-7]+i+x[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+se[n]+x[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=ue.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 ue(t,i)}},ue=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(ce.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 de(e){return new le().finalize(e).toBase64()}function fe(e){return de(ie(e))}function pe(e){return fe(e)}function S(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 me={blue:S(34,39),cyan:S(36,39),gray:S(90,39),green:S(32,39),red:S(31,39),yellow:S(33,39),bold:S(1,22),dim:S(2,22),reset:S(0,0),underline:S(4,24)};function he(){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 ge=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function _e(e=21){let t=``,n=e;for(;n--;)t+=ge[Math.random()*64|0];return t}var ve=Symbol.for(`immer-nothing`),ye=Symbol.for(`immer-draftable`),C=Symbol.for(`immer-state`),be=[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 w(e,...t){{let n=be[e],r=N(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var T=Object,E=T.getPrototypeOf,xe=`constructor`,Se=`prototype`,Ce=`configurable`,we=`enumerable`,Te=`writable`,Ee=`value`,D=e=>!!e&&!!e[C];function O(e){return e?ke(e)||Ne(e)||!!e[ye]||!!e[xe]?.[ye]||Pe(e)||Fe(e):!1}var De=T[Se][xe].toString(),Oe=new WeakMap;function ke(e){if(!e||!M(e))return!1;let t=E(e);if(t===null||t===T[Se])return!0;let n=T.hasOwnProperty.call(t,xe)&&t[xe];if(n===Object)return!0;if(!N(n))return!1;let r=Oe.get(n);return r===void 0&&(r=Function.toString.call(n),Oe.set(n,r)),r===De}function Ae(e,t,n=!0){k(e)===0?(n?Reflect.ownKeys(e):T.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function k(e){let t=e[C];return t?t.type_:Ne(e)?1:Pe(e)?2:Fe(e)?3:0}var A=(e,t,n=k(e))=>n===2?e.has(t):T[Se].hasOwnProperty.call(e,t),j=(e,t,n=k(e))=>n===2?e.get(t):e[t],je=(e,t,n,r=k(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Me(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Ne=Array.isArray,Pe=e=>e instanceof Map,Fe=e=>e instanceof Set,M=e=>typeof e==`object`,N=e=>typeof e==`function`,Ie=e=>typeof e==`boolean`;function Le(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Re=e=>M(e)?e?.[C]:null,P=e=>e.copy_||e.base_,ze=e=>e.modified_?e.copy_:e.base_;function Be(e,t){if(Pe(e))return new Map(e);if(Fe(e))return new Set(e);if(Ne(e))return Array[Se].slice.call(e);let n=ke(e);if(t===!0||t===`class_only`&&!n){let t=T.getOwnPropertyDescriptors(e);delete t[C];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Te]===!1&&(a[Te]=!0,a[Ce]=!0),(a.get||a.set)&&(t[i]={[Ce]:!0,[Te]:!0,[we]:a[we],[Ee]:e[i]})}return T.create(E(e),t)}else{let t=E(e);if(t!==null&&n)return{...e};let r=T.create(t);return T.assign(r,e)}}function Ve(e,t=!1){return We(e)||D(e)||!O(e)?e:(k(e)>1&&T.defineProperties(e,{set:Ue,add:Ue,clear:Ue,delete:Ue}),T.freeze(e),t&&Ae(e,(e,t)=>{Ve(t,!0)},!1),e)}function He(){w(2)}var Ue={[Ee]:He};function We(e){return e===null||!M(e)||T.isFrozen(e)}var Ge=`MapSet`,Ke=`Patches`,qe=`ArrayMethods`,Je={};function F(e){let t=Je[e];return t||w(0,e),t}var Ye=e=>!!Je[e];function Xe(e,t){Je[e]||(Je[e]=t)}var Ze,Qe=()=>Ze,$e=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ye(Ge)?F(Ge):void 0,arrayMethodsPlugin_:Ye(qe)?F(qe):void 0});function et(e,t){t&&(e.patchPlugin_=F(Ke),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function tt(e){nt(e),e.drafts_.forEach(it),e.drafts_=null}function nt(e){e===Ze&&(Ze=e.parent_)}var rt=e=>Ze=$e(Ze,e);function it(e){let t=e[C];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function at(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[C].modified_&&(tt(t),w(4)),O(e)&&(e=ot(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[C].base_,e,t)}else e=ot(t,n);return st(t,e,!0),tt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===ve?void 0:e}function ot(e,t){if(We(t))return t;let n=t[C];if(!n)return ht(t,e.handledSet_,e);if(!lt(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);pt(n,e)}return n.copy_}function st(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ve(t,n)}function ct(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var lt=(e,t)=>e.scope_===t,ut=[];function dt(e,t,n,r){let i=P(e),a=e.type_;if(r!==void 0&&j(i,r,a)===t){je(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Ae(i,(e,n)=>{if(D(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??ut;for(let e of o)je(i,e,n,a)}function ft(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!lt(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=ze(i);dt(e,i.draft_??i,a,n),pt(i,r)})}function pt(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)}ct(e)}}function mt(e,t,n){let{scope_:r}=e;if(D(n)){let i=n[C];lt(i,r)&&i.callbacks_.push(function(){Ct(e),dt(e,n,ze(i),t)})}else O(n)&&e.callbacks_.push(function(){let i=P(e);e.type_===3?i.has(n)&&ht(n,r.handledSet_,r):j(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ht(j(e.copy_,t,e.type_),r.handledSet_,r)})}function ht(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||D(e)||t.has(e)||!O(e)||We(e)?e:(t.add(e),Ae(e,(r,i)=>{if(D(i)){let t=i[C];lt(t,n)&&(je(e,r,ze(t),e.type_),ct(t))}else O(i)&&ht(i,t,n)}),e)}function gt(e,t){let n=Ne(e),r={type_:+!!n,scope_:t?t.scope_:Qe(),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=_t;n&&(i=[r],a=vt);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var _t={get(e,t){if(t===C)return e;if(t===`constructor`||t===`__proto__`){let n=P(e)[t];return new Proxy(n||{},{get:(e,t)=>t===`__proto__`||t===`prototype`?Object.freeze(Object.create(null)):Reflect.get(e,t),set:()=>!0,apply:(e,t,n)=>Reflect.apply(e,t,n)})}let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=P(e);if(!A(i,t,e.type_))return bt(e,i,t);let a=i[t];if(e.finalized_||!O(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Le(t))return a;if(a===yt(e.base_,t)){Ct(e);let n=e.type_===1?+t:t,r=Tt(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t===`constructor`||t===`__proto__`||t===`prototype`?!1:t in P(e)},ownKeys(e){return Reflect.ownKeys(P(e))},set(e,t,n){if(t===`constructor`||t===`__proto__`||t===`prototype`)return!0;let r=xt(P(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=yt(P(e),t),i=r?.[C];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Me(n,r)&&(n!==void 0||A(e.base_,t,e.type_)))return!0;Ct(e),St(e)}return e.copy_[t]===n&&(n!==void 0||A(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),mt(e,t,n),!0)},deleteProperty(e,t){return Ct(e),yt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),St(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=P(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Te]:!0,[Ce]:e.type_!==1||t!==`length`,[we]:r[we],[Ee]:n[t]}},defineProperty(){w(11)},getPrototypeOf(e){return E(e.base_)},setPrototypeOf(){w(12)}},vt={};for(let e in _t){let t=_t[e];vt[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}vt.deleteProperty=function(e,t){return isNaN(parseInt(t))&&w(13),vt.set.call(this,e,t,void 0)},vt.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&w(14),_t.set.call(this,e[0],t,n,e[0])};function yt(e,t){let n=e[C];return(n?P(n):e)[t]}function bt(e,t,n){let r=xt(t,n);return r?Ee in r?r[Ee]:r.get?.call(e.draft_):void 0}function xt(e,t){if(!(t in e))return;let n=E(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=E(n)}}function St(e){e.modified_||(e.modified_=!0,e.parent_&&St(e.parent_))}function Ct(e){e.copy_||=(e.assigned_=new Map,Be(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wt=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(N(e)&&!N(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}N(t)||w(6),n!==void 0&&!N(n)&&w(7);let r;if(O(e)){let i=rt(this),a=Tt(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?tt(i):nt(i)}return et(i,n),at(r,i)}else if(!e||!M(e)){if(r=t(e),r===void 0&&(r=e),r===ve&&(r=void 0),this.autoFreeze_&&Ve(r,!0),n){let t=[],i=[];F(Ke).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else w(1,e)},this.produceWithPatches=(e,t)=>{if(N(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]},Ie(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ie(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ie(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){O(e)||w(8),D(e)&&(e=Et(e));let t=rt(this),n=Tt(t,e,void 0);return n[C].isManual_=!0,nt(t),n}finishDraft(e,t){let n=e&&e[C];(!n||!n.isManual_)&&w(9);let{scope_:r}=n;return et(r,t),at(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=F(Ke).applyPatches_;return D(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Tt(e,t,n,r){let[i,a]=Pe(t)?F(Ge).proxyMap_(t,n):Fe(t)?F(Ge).proxySet_(t,n):gt(t,n);return(n?.scope_??Qe()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?ft(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 Et(e){return D(e)||w(10,e),Dt(e)}function Dt(e){if(!O(e)||We(e))return e;let t=e[C],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Be(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Be(e,!0);return Ae(n,(e,t)=>{je(n,e,Dt(t))},r),t&&(t.finalized_=!1),n}function Ot(){be.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=Re(j(e,n.key_)),i=j(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||A(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=j(n,r),!M(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?.[C];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;Ae(e.assigned_,(e,l)=>{let u=j(o,e,c),f=j(s,e,c),p=l?A(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===ve?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=k(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===xe)&&w(19),N(o)&&n===Se&&w(19),o=j(o,n),M(o)||w(18,i.join(`/`))}let s=k(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:w(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:w(17,a)}}),e}function u(e){if(!O(e))return e;if(Ne(e))return e.map(u);if(Pe(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(Fe(e))return new Set(Array.from(e).map(u));let t=Object.create(E(e));for(let n in e)t[n]=u(e[n]);return A(e,ye)&&(t[ye]=e[ye]),t}function d(e){return D(e)?u(e):e}Xe(Ke,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}var kt=new wt,At=kt.produce,jt=kt.produceWithPatches.bind(kt),Mt=kt.applyPatches.bind(kt),Nt=1e3;function Pt(e,t){if(e.add(t),e.size>Nt){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function Ft(e){let{enablePatches:t=!1}=e,n=he(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=_e())=>{i.has(t)||(Ot(),r=Mt(r,e),Pt(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=_e())=>{if(!i.has(a))if(Pt(i,a),t){let[t,i]=jt(r,e);r=t,n.emit(`updated`,r,i,a)}else r=At(r,e),n.emit(`updated`,r,void 0,a)},syncIds:i}}var It=typeof self==`object`?self:globalThis;function Lt(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;return n(new It[e](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)}}return n(new It[a](o),i)};return r}function Rt(e){return Lt(new Map,e)(0)}var I=``,{toString:zt}={},{keys:Bt}=Object;function Vt(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=zt.call(e).slice(8,-1);switch(n){case`Array`:return[1,I];case`Object`:return[2,I];case`Date`:return[3,I];case`RegExp`:return[4,I];case`Map`:return[5,I];case`Set`:return[6,I];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function Ht([e,t]){return e===0&&(t===`function`||t===`symbol`)}function Ut(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]=Vt(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 Bt(r))(e||!Ht(Vt(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||!(Ht(Vt(n))||Ht(Vt(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!Ht(Vt(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function Wt(e,t={}){let n=[];return Ut(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:Gt,stringify:Kt}=JSON,qt={json:!0,lossy:!0};function Jt(e){return Rt(Gt(e))}function Yt(e){return Kt(Wt(e,qt))}function Xt(e){return Rt(e)}function Zt(e){return Yt(e)}function Qt(e){return Jt(e)}var $t=256,en=class extends Error{name=`StreamClosedError`};function tn(e={}){let t=e.id??_e(),n=Math.max(0,e.replayWindow??0),r=he(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new en(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&a.splice(0,a.length-n)),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=rn(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 nn(e={}){let t=e.id??_e(),n=Math.max(1,e.highWaterMark??$t),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});return}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 rn(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)}}}function an(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function on(e){return e.includes(`:`)}function L(e,t){return on(t)?t:`${e}:${t}`}var sn=`q`,cn=`s`;function ln(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var un=Math.random.bind(Math),dn=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function fn(e=21){let t=``,n=e;for(;n--;)t+=dn[un()*64|0];return t}var pn=6e4,mn=e=>e,hn=mn,{clearTimeout:gn,setTimeout:_n}=globalThis;function vn(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=mn,deserialize:s=hn,resolver:c,bind:l=`rpc`,timeout:u=pn,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:sn};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}=ln(),_=fn();s.i=_;let v;async function y(n=s){return u>=0&&(v=_n(()=>{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{gn(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.prototype.hasOwnProperty.call(_,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===sn){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:cn,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:cn,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&&(gn(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}var yn=`__connection.json`,bn=`__rpc-dump/index.json`,xn=`devframe_otp`,Sn=`devframe_auth_token`,Cn=v(me);function wn(e,{method:t=`warn`}={}){console[t](Cn(e))}var R=m({docsBase:`https://devfra.me/errors`,reporters:[wn],codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is not \`true\` — MCP requires JSON-serializable data.`,fix:"Set `jsonSerializable: true` if the payload is JSON-safe, 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`."}}});function Tn(e){let t=e.cause instanceof Error?e.cause:En(e.cause)?Tn(e.cause):e.cause,n=t===void 0?Error(e.message):Error(e.message,{cause:t});n.name=e.name;for(let t of Object.keys(e))t!==`name`&&t!==`message`&&t!==`cause`&&(n[t]=e[t]);return n}function En(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}async function Dn(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 On(e,t){if(e.handler)return e.handler;let n=await Dn(e,t);if(!n.handler)throw R.DF0024({name:e.name});return n.handler}var kn=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>pe(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()}},An=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 On(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 R.DF0021({name:e.name});jn(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 R.DF0022({name:e.name});jn(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 On(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw R.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 jn(e){if(e.agent&&e.jsonSerializable!==!0)throw R.DF0019({name:e.name})}function Mn(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 z(t,`undefined`,r,e);return n}if(i===null)return n;if(typeof i==`bigint`)throw z(t,`BigInt`,r,e);if(typeof i==`object`){if(i instanceof Map)throw z(t,`Map`,r,e);if(i instanceof Set)throw z(t,`Set`,r,e);if(i instanceof Date)throw z(t,`Date`,r,e);if(Array.isArray(i))return n;let a=Object.getPrototypeOf(i);if(a!==null&&a!==Object.prototype)throw z(t,i.constructor?.name??`class instance`,r,e)}return n})}function z(e,t,n,r){let i=Nn(n,r);return R.DF0020({name:e||`<anonymous>`,type:t,path:i})}function Nn(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}function Pn(e=xn){try{return new URLSearchParams(globalThis.location?.search).get(e)||void 0}catch{return}}function Fn(e){try{let t=new URL(globalThis.location.href);if(!t.searchParams.has(e))return;t.searchParams.delete(e),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function In(e=xn){let t=Pn(e);return t&&Fn(e),t}async function Ln(e,t={}){let n=In(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function Rn(e){let t=new Map,n=new Map,r=new Set,i=e.connectionMeta.backend===`static`;function a(e,t){let r=n.get(e);return r&&typeof r==`object`&&!Array.isArray(r)&&typeof t==`object`&&!Array.isArray(t)?{...r,...t}:t}e.client.register({name:`devframe:rpc:client-state:updated`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.mutate(()=>a(e,n),r)}}),e.client.register({name:`devframe:rpc:client-state:patch`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.patch(n,r)}});function o(t,n){let r=[];return r.push(n.on(`updated`,(n,r,a)=>{i||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,a):e.callEvent(`devframe:rpc:server-state:set`,t,n,a))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return r.add(e),()=>{r.delete(e)}},get:async(s,c)=>{if(c?.initialValue!==void 0&&n.set(s,c.initialValue),t.has(s))return t.get(s);let l=Ft({initialValue:c?.initialValue,enablePatches:!1});async function u(){if(i||e.callEvent(`devframe:rpc:server-state:subscribe`,s),c?.initialValue!==void 0){t.set(s,l);for(let e of r)e(s);return e.call(`devframe:rpc:server-state:get`,s).then(e=>{e!==void 0&&l.mutate(()=>a(s,e))}).catch(e=>{console.error(`Error getting server state`,e)}),o(s,l),l}else{let n=await e.call(`devframe:rpc:server-state:get`,s);l.mutate(()=>a(s,n)),t.set(s,l);for(let e of r)e(s);return o(s,l),l}}return new Promise(t=>{if(e.isTrusted)u().then(t);else{t(l);let n=!1;e.events.on(`rpc:is-trusted:updated`,e=>{e&&!n&&(n=!0,u())})}})}}}function zn(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function Bn(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function Vn(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Hn(e){if(e.error)throw Tn(e.error);return e.output}function Un(e){return e.some(e=>e!=null)}function Wn(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function Gn(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?Xt(e):e}function a(e,t){return i(Wn(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 Vn(r)?Hn(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(zn(r)){if(Un(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(Bn(r)){let e=pe(n),i=r.records[e];if(i)return Hn(await s(i,r.serialization));if(r.fallback)return Hn(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!Un(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 Kn(e){let t=Gn(await e.fetchJsonFromBases(bn),e.fetchJsonFromBases);return{isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,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))}}var qn=``;function Jn(e,t){return`${e}${qn}${t}`}function Yn(e){let t=new Map,n=new Map;e.client.register({name:`devframe:streaming:chunk`,type:`event`,handler(e,n,r,i){t.get(Jn(e,n))?._push(r,i)}}),e.client.register({name:`devframe:streaming:end`,type:`event`,handler(e,n,r){let i=Jn(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:`devframe:streaming:upload-cancel`,type:`event`,handler(e,t){let r=Jn(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(`rpc:is-trusted:updated`,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(qn);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=Jn(n,r),o=t.get(a);if(o)return o;let s=nn({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(`rpc:is-trusted:updated`,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=Jn(t,r),a=n.get(i);if(a)return a;let o=tn({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 Xn(e,t){let{channel:n,rpcOptions:r={}}=t;return vn(e,{...n,timeout:-1,...r,proxify:!1})}function Zn(){}var Qn=new Map;function $n(e){let t=e.url;e.authToken&&(t=`${t}?${Sn}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Zn,onError:i=Zn,onDisconnected:a=Zn,definitions:o=Qn}=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=new Map;return{on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN){n.send(e);return}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);return}i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:e=>{let t;return e.t===`q`?t=e.m:(t=s.get(e.i),s.delete(e.i)),!(e.t===`s`&&`e`in e)&&t&&o.get(t)?.jsonSerializable===!0?Mn(e,t??``):`s:${Zt(e)}`},deserialize:e=>{let t=e.startsWith(`s:`)?Qt(e.slice(2)):JSON.parse(e);return t.t===`q`&&t.i&&t.m&&s.set(t.i,t.m),t}}}var er=``,tr=`?`,nr=`major`,B=`model`,V=`name`,H=`type`,U=`vendor`,W=`version`,G=`architecture`,rr=`console`,K=`mobile`,q=`tablet`,J=`smarttv`,Y=`wearable`,ir=`embedded`,ar=500,or=`Amazon`,sr=`Apple`,cr=`ASUS`,lr=`BlackBerry`,X=`Browser`,ur=`Chrome`,dr=`Edge`,fr=`Firefox`,pr=`Google`,mr=`Huawei`,hr=`LG`,gr=`Microsoft`,_r=`Motorola`,vr=`Opera`,yr=`Samsung`,br=`Sharp`,xr=`Sony`,Sr=`Xiaomi`,Cr=`Zebra`,wr=`Facebook`,Tr=`Chromium OS`,Er=`Mac OS`;function Dr(e,t={}){let n={};for(let r of Object.keys(e)){let i=t[r];i&&i.length%2==0?n[r]=[...i,...e[r]]:n[r]=e[r]}return n}function Or(e){let t={};for(let n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function kr(e){return e.toLowerCase()}function Ar(e,t){return typeof e==`string`&&kr(t).includes(kr(e))}function jr(e){return typeof e==`string`?e.replace(/[^\d.]/g,er).split(`.`)[0]:void 0}function Mr(e,t){let n=e.replace(/^\s+/,er);return t===void 0?n:n.substring(0,t)}function Nr(e,t,n){let r=n??{};for(let n=0;n<t.length;n+=2){let i=t[n],a=t[n+1];for(let t=0;t<i.length;t++){let n=i[t];if(!n)break;let o=n.exec(e);if(o){for(let e=0;e<a.length;e++){let t=o[e+1],n=a[e];if(Array.isArray(n)){let e=n[0],i=n.length;if(i===2){let i=n[1];typeof i==`function`?r[e]=i(t,void 0,r):r[e]=i}else if(i===3){let i=n[1],a=n[2];typeof i==`function`&&!(`exec`in i)&&!(`test`in i)?r[e]=t?i(t,a,r):void 0:r[e]=t?t.replace(i,a):void 0}else i===4&&(r[e]=t?n[3](t.replace(n[1],n[2]),void 0,r):void 0)}else r[n]=t||void 0}return r}}}return r}function Pr(e,t){for(let n in t){let r=t[n];if(Array.isArray(r)&&r.length>0){for(let t=0;t<r.length;t++)if(Ar(r[t],e))return n===tr?void 0:n}else if(Ar(r,e))return n===tr?void 0:n}return e}var Fr={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},Ir={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,"8.1":`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},Lr={browser:[[/\b(?:crmo|crios)\/([\w.]+)/i],[W,[V,`Chrome`]],[/edg(?:e|ios|a)?\/([\w.]+)/i],[W,[V,`Edge`]],[/(opera mini)\/([-\w.]+)/i,/(opera [mobileta]{3,6})\b.+version\/([-\w.]+)/i,/(opera)(?:.+version\/|[/ ]+)([\w.]+)/i],[V,W],[/opios[/ ]+([\w.]+)/i],[W,[V,`${vr} Mini`]],[/\bop(?:rg)?x\/([\w.]+)/i],[W,[V,`${vr} GX`]],[/\bopr\/([\w.]+)/i],[W,[V,vr]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[/ ]?([\w.]+)/i],[W,[V,`Baidu`]],[/(kindle)\/([\w.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[/ ]?([\w.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[/ ]?([\w.]*)/i,/(?:ms|\()(ie) ([\w.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w.]+)/i,/(heytap|ovi)browser\/([\d.]+)/i,/(weibo)__([\d.]+)/i],[V,W],[/\bddg\/([\w.]+)/i],[W,[V,`DuckDuckGo`]],[/(?:\buc? ?browser|juc.+ucweb)[/ ]?([\w.]+)/i],[W,[V,`UC${X}`]],[/microm.+\bqbcore\/([\w.]+)/i,/\bqbcore\/([\w.]+).+microm/i,/micromessenger\/([\w.]+)/i],[W,[V,`WeChat`]],[/konqueror\/([\w.]+)/i],[W,[V,`Konqueror`]],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i],[W,[V,`IE`]],[/ya(?:search)?browser\/([\w.]+)/i],[W,[V,`Yandex`]],[/slbrowser\/([\w.]+)/i],[W,[V,`Smart Lenovo ${X}`]],[/(avast|avg)\/([\w.]+)/i],[[V,/(.+)/,`$1 Secure ${X}`],W],[/\bfocus\/([\w.]+)/i],[W,[V,`${fr} Focus`]],[/\bopt\/([\w.]+)/i],[W,[V,`${vr} Touch`]],[/coc_coc\w+\/([\w.]+)/i],[W,[V,`Coc Coc`]],[/dolfin\/([\w.]+)/i],[W,[V,`Dolphin`]],[/coast\/([\w.]+)/i],[W,[V,`${vr} Coast`]],[/miuibrowser\/([\w.]+)/i],[W,[V,`MIUI ${X}`]],[/fxios\/([-\w.]+)/i],[W,[V,fr]],[/\bqihu|(qi?ho{0,2}|360)browser/i],[[V,`360 ${X}`]],[/(oculus|sailfish|huawei|vivo)browser\/([\w.]+)/i],[[V,/(.+)/,`$1 ${X}`],W],[/samsungbrowser\/([\w.]+)/i],[W,[V,`${yr} Internet`]],[/(comodo_dragon)\/([\w.]+)/i],[[V,/_/g,` `],W],[/metasr[/ ]?([\d.]+)/i],[W,[V,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d.]+)/i],[[V,`Sogou Mobile`],W],[/(electron)\/([\w.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i,/m?(qqbrowser|2345Explorer)[/ ]?([\w.]+)/i],[V,W],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[V],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i],[[V,wr],W],[/(Klarna)\/([\w.]+)/i,/(kakao(?:talk|story))[/ ]([\w.]+)/i,/(naver)\(.*?(\d+\.[\w.]+).*\)/i,/safari (line)\/([\w.]+)/i,/\b(line)\/([\w.]+)\/iab/i,/(alipay)client\/([\w.]+)/i,/(twitter)(?:and| f.+e\/([\w.]+))/i,/(chromium|instagram|snapchat)[/ ]([-\w.]+)/i],[V,W],[/\bgsa\/([\w.]+) .*safari\//i],[W,[V,`GSA`]],[/musical_ly(?:.+app_?version\/|_)([\w.]+)/i],[W,[V,`TikTok`]],[/headlesschrome(?:\/([\w.]+)| )/i],[W,[V,`${ur} Headless`]],[/ wv\).+(chrome)\/([\w.]+)/i],[[V,`${ur} WebView`],W],[/droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i],[W,[V,`Android ${X}`]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w.]+)/i],[V,W],[/version\/([\w.,]+) .*mobile\/\w+ (safari)/i],[W,[V,`Mobile Safari`]],[/version\/([\w(.|,)]+) .*(mobile ?safari|safari)/i],[W,V],[/webkit.+?(mobile ?safari|safari)(\/[\w.]+)/i],[V,[W,Pr,Fr]],[/(webkit|khtml)\/([\w.]+)/i],[V,W],[/(navigator|netscape\d?)\/([-\w.]+)/i],[[V,`Netscape`],W],[/mobile vr; rv:([\w.]+)\).+firefox/i],[W,[V,`${fr} Reality`]],[/ekiohf.+(flow)\/([\w.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[/ ]?([\w.+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w.]+)$/i,/(firefox)\/([\w.]+)/i,/(mozilla)\/([\w.]+) .+rv:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[. ]?browser)[-/ ]?v?([\w.]+)/i,/(links) \(([\w.]+)/i,/panasonic;(viera)/i],[V,W],[/(cobalt)\/([\w.]+)/i],[V,[W,/master.|lts./,``]]],cpu:[[/(amd|x(?:(?:86|64)[-_])?|wow|win)64[;)]/i],[[G,`amd64`]],[/(ia32(?=;))/i],[[G,kr]],[/((?:i[346]|x)86)[;)]/i],[[G,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[G,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[G,`armhf`]],[/windows (ce|mobile); ppc;/i],[[G,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[G,/ower/,er,kr]],[/(sun4\w)[;)]/i],[[G,`sparc`]],[/(avr32|ia64(?=;)|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[G,kr]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[B,[U,yr],[H,q]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?\d+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[B,[U,yr],[H,K]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[B,[U,sr],[H,K]],[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[B,[U,sr],[H,q]],[/(macintosh);/i],[B,[U,sr]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[B,[U,br],[H,K]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[B,[U,mr],[H,q]],[/(?:huawei|honor)([-\w ]+)[;)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][0-359c][adn]?)\b(?!.+d\/s)/i],[B,[U,mr],[H,K]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?[\w ]+)(?: bui|\))/i,/oid[^)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?\d?\w?[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[B,/_/g,` `],[U,Sr],[H,K]],[/oid[^)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?pad[\w ]+)(?: bui|\))/i],[[B,/_/g,` `],[U,Sr],[H,q]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[B,[U,`OPPO`],[H,K]],[/\b(opd2\d{3}a?) bui/i],[B,[U,`OPPO`],[H,q]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[B,[U,`Vivo`],[H,K]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[B,[U,`Realme`],[H,K]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w() ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[B,[U,_r],[H,K]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[B,[U,_r],[H,q]],[/((?=lg)?[vl]k-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[B,[U,hr],[H,q]],[/(lm(?:-?f100[nv]?|-[\w.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?(\w+) bui/i],[B,[U,hr],[H,K]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab[\w ]+|yt[-\w]{6}|tb[-\w]{6})/i],[B,[U,`Lenovo`],[H,q]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w.]*)/i],[[B,/_/g,` `],[U,`Nokia`],[H,K]],[/(pixel c)\b/i],[B,[U,pr],[H,q]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[B,[U,pr],[H,K]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]?\d\.))/i],[B,[U,xr],[H,K]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[B,`Xperia Tablet`],[U,xr],[H,q]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[B,[U,`OnePlus`],[H,K]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[B,[U,or],[H,q]],[/((?:sd|kf)[0349hijor-uw]+)( bui|\)).+silk\//i],[[B,/(.+)/g,`Fire Phone $1`],[U,or],[H,K]],[/(playbook);[-\w),; ]+(rim)/i],[B,U,[H,q]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[B,[U,lr],[H,K]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[B,[U,cr],[H,q]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[B,[U,cr],[H,K]],[/(nexus 9)/i],[B,[U,`HTC`],[H,q]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!;|\.)|sony(?!-bra))[-_ ]?([-\w]*)/i],[U,[B,/_/g,` `],[H,K]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[B,[U,`Acer`],[H,q]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[B,[U,`Meizu`],[H,K]],[/; ((?:power )?armor[\w ]{0,8})(?: bui|\))/i],[B,[U,`Ulefone`],[H,K]],[/(blackberry|benq|palm(?=-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[U,B,[H,K]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[U,B,[H,q]],[/(surface duo)/i],[B,[U,gr],[H,q]],[/droid [\d.]+; (fp\du?)(?: b|\))/i],[B,[U,`Fairphone`],[H,K]],[/(u304aa)/i],[B,[U,`AT&T`],[H,K]],[/\bsie-(\w*)/i],[B,[U,`Siemens`],[H,K]],[/\b(rct\w+) b/i],[B,[U,`RCA`],[H,q]],[/\b(venue[\d ]{2,7}) b/i],[B,[U,`Dell`],[H,q]],[/\b(q(?:mv|ta)\w+) b/i],[B,[U,`Verizon`],[H,q]],[/\b(?:barnes[& ]+noble |bn[rt])([\w+ ]*) b/i],[B,[U,`Barnes & Noble`],[H,q]],[/\b(tm\d{3}\w+) b/i],[B,[U,`NuVision`],[H,q]],[/\b(k88) b/i],[B,[U,`ZTE`],[H,q]],[/\b(nx\d{3}j) b/i],[B,[U,`ZTE`],[H,K]],[/\b(gen\d{3}) b.+49h/i],[B,[U,`Swiss`],[H,K]],[/\b(zur\d{3}) b/i],[B,[U,`Swiss`],[H,q]],[/\b((zeki)?tb.*\b) b/i],[B,[U,`Zeki`],[H,q]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[U,`Dragon Touch`],B,[H,q]],[/\b(ns-?\w{0,9}) b/i],[B,[U,`Insignia`],[H,q]],[/\b((nxa|next)-?\w{0,9}) b/i],[B,[U,`NextBook`],[H,q]],[/\b(xtreme_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[U,`Voice`],B,[H,K]],[/\b(lvtel-)?(v1[12]) b/i],[[U,`LvTel`],B,[H,K]],[/\b(ph-1) /i],[B,[U,`Essential`],[H,K]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[B,[U,`Envizen`],[H,q]],[/\b(trio[-\w. ]+) b/i],[B,[U,`MachSpeed`],[H,q]],[/\btu_(1491) b/i],[B,[U,`Rotor`],[H,q]],[/(shield[\w ]+) b/i],[B,[U,`Nvidia`],[H,q]],[/(sprint) (\w+)/i],[U,B,[H,K]],[/(kin\.[onetw]{3})/i],[[B,/\./g,` `],[U,gr],[H,K]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[B,[U,Cr],[H,q]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[B,[U,Cr],[H,K]],[/smart-tv.+(samsung)/i],[U,[H,J]],[/hbbtv.+maple;(\d+)/i],[[B,/^/,`SmartTV`],[U,yr],[H,J]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[U,hr],[H,J]],[/(apple) ?tv/i],[U,[B,`${sr} TV`],[H,J]],[/crkey/i],[[B,`${ur}cast`],[U,pr],[H,J]],[/droid.+aft(\w+)( bui|\))/i],[B,[U,or],[H,J]],[/\(dtv[);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[B,[U,br],[H,J]],[/(bravia[\w ]+)( bui|\))/i],[B,[U,xr],[H,J]],[/(mitv-\w{5}) bui/i],[B,[U,Sr],[H,J]],[/Hbbtv.*(technisat) (.*);/i],[U,B,[H,J]],[/\b(roku)[\dx]*[)/]((?:dvp-)?[\d.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w+ ]*; *(\w[^;]*);([^;]*)/i],[[U,Mr],[B,Mr],[H,J]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[H,J]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[U,B,[H,rr]],[/droid.+; (shield) bui/i],[B,[U,`Nvidia`],[H,rr]],[/(playstation [345portablevi]+)/i],[B,[U,xr],[H,rr]],[/\b(xbox(?: one)?(?!; xbox))[); ]/i],[B,[U,gr],[H,rr]],[/((pebble))app/i],[U,B,[H,Y]],[/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i],[B,[U,sr],[H,Y]],[/droid.+; (glass) \d/i],[B,[U,pr],[H,Y]],[/droid.+; (wt63?0{2,3})\)/i],[B,[U,Cr],[H,Y]],[/(quest( \d| pro)?)/i],[B,[U,wr],[H,Y]],[/(tesla)(?: qtcarbrowser|\/[-\w.]+)/i],[U,[H,ir]],[/(aeobc)\b/i],[B,[U,or],[H,ir]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[B,[H,K]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[B,[H,q]],[/\b((tablet|tab)[;/]|focus\/\d(?!.+mobile))/i],[[H,q]],[/(phone|mobile(?:[;/]| [ \w/.]*safari)|pda(?=.+windows ce))/i],[[H,K]],[/(android[-\w. ]{0,9});.+buil/i],[B,[U,`Generic`]]],engine:[[/windows.+ edge\/([\w.]+)/i],[W,[V,`${dr}HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i],[W,[V,`Blink`]],[/(presto)\/([\w.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w.]+)/i,/ekioh(flow)\/([\w.]+)/i,/(khtml|tasman|links)[/ ]\(?([\w.]+)/i,/(icab)[/ ]([23]\.[\d.]+)/i,/\b(libweb)/i],[V,W],[/rv:([\w.]{1,9})\b.+(gecko)/i],[W,V]],os:[[/microsoft (windows) (vista|xp)/i],[V,W],[/(windows (?:phone(?: os)?|mobile))[/ ]?([.\w ]*)/i],[V,[W,Pr,Ir]],[/windows nt 6\.2; (arm)/i,/windows[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i,/(?:win(?=[39n])|win 9x )([nt\d.]+)/i],[[W,Pr,Ir],[V,`Windows`]],[/ip[honead]{2,4}\b(?:.*os (\w+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[/ ])([\d.]+)/i,/cfnetwork\/.+darwin/i],[[W,/_/g,`.`],[V,`iOS`]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[V,Er],[W,/_/g,`.`]],[/droid ([\w.]+)\b.+(android[- ]x86|harmonyos)/i],[W,V],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-/ ]?([\w.]*)/i,/(blackberry)\w*\/([\w.]*)/i,/(tizen|kaios)[/ ]([\w.]+)/i,/\((series40);/i],[V,W],[/\(bb(10);/i],[W,[V,lr]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-/ ]?([\w.]*)/i],[W,[V,`Symbian`]],[/mozilla\/[\d.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w.]+)/i],[W,[V,`${fr} OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w.]+)/i],[W,[V,`webOS`]],[/watch(?: ?os[,/]|\d,\d\/)([\d.]+)/i],[W,[V,`watchOS`]],[/crkey\/([\d.]+)/i],[W,[V,`${ur}cast`]],[/(cros) \w+(?:\)| ([\w.]+)\b)/i],[[V,Tr],W],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w.]*)/i,/(mint)[/() ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-/ ]?(?!chrom|package)([-\w.]*)/i,/(hurd|linux) ?([\w.]*)/i,/(gnu) ?([\w.]*)/i,/\b([-e-hrntopcs]{0,5}bsd|dragonfly)[/ ]?(?!amd|[ix346]{1,2}86)([\w.]*)/i,/(haiku) (\w+)/i],[V,W],[/(sunos) ?([\w.]*)/i],[[V,`Solaris`],W],[/((?:open)?solaris)[-/ ]?([\w.]*)/i,/(aix) ((\d)(?=[.) ])[\w.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w.]*)/i],[V,W]]};function Rr(e){return typeof e==`object`&&!!e}Object.freeze(Or([V,W,nr])),Object.freeze(Or([G])),Object.freeze(Or([B,U,H,rr,K,J,q,Y,ir])),Object.freeze(Or([V,W])),Object.freeze(Or([V,W]));function zr(){if(!(typeof window>`u`||!window.navigator))return window.navigator}function Br(e){return e.length>ar?Mr(e,ar):e}function Vr(e){if(typeof e==`string`)return{ua:Br(e),isSelfNavigator:!1,navigator:void 0,userAgentData:void 0,regexMap:Lr};let t=zr(),n=Br(t&&t.userAgent?t.userAgent:er);return{ua:n,isSelfNavigator:!!(t&&t.userAgent===n),navigator:t,userAgentData:t?.userAgentData,regexMap:Lr}}function Hr(e,t){if(!t&&!Rr(e))return Vr(e);let n=zr(),r=Rr(e)?void 0:e,i=Rr(e)?e:t,a=Br(r||(n&&n.userAgent?n.userAgent:er)),o=n?.userAgentData;return{ua:a,isSelfNavigator:!!(n&&n.userAgent===a),navigator:n,userAgentData:o,regexMap:i?Dr(Lr,i):Lr}}function Ur(e){let t={name:void 0,version:void 0,major:void 0};return Nr(e.ua,e.regexMap.browser,t),t.major=jr(t.version),e.isSelfNavigator&&e.navigator?.brave&&typeof e.navigator.brave.isBrave==`function`&&(t.name=`Brave`),t}function Wr(e){let t={architecture:void 0};return Nr(e.ua,e.regexMap.cpu,t),t}function Gr(e){let t={vendor:void 0,model:void 0,type:void 0};return Nr(e.ua,e.regexMap.device,t),e.isSelfNavigator&&!t.type&&e.userAgentData?.mobile&&(t.type=K),e.isSelfNavigator&&t.model===`Macintosh`&&e.navigator&&e.navigator.standalone!==void 0&&e.navigator.maxTouchPoints&&e.navigator.maxTouchPoints>2&&(t.model=`iPad`,t.type=q),t}function Kr(e){let t={name:void 0,version:void 0};return Nr(e.ua,e.regexMap.engine,t),t}function qr(e){let t={name:void 0,version:void 0};return Nr(e.ua,e.regexMap.os,t),e.isSelfNavigator&&!t.name&&e.userAgentData?.platform&&e.userAgentData.platform!==`Unknown`&&(t.name=e.userAgentData.platform.replace(/chrome os/i,Tr).replace(/macos/i,Er)),t}function Jr(e,t){let n,r,i,a,o,s,c=()=>n||=Hr(e,t);return{get ua(){return c().ua},get browser(){return r||=Ur(c()),r},get engine(){return i||=Kr(c()),i},get os(){return a||=qr(c()),a},get device(){return o||=Gr(c()),o},get cpu(){return s||=Wr(c()),s}}}var Z=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function Yr(e,t,n){let r=n.protocol===`https:`?`wss:`:`ws:`,i=(()=>{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??`${n.hostname}:${e.port}`,i=new URL(e.path??`/`,`${r}//${t}`);return i.protocol=r,i.href}let t=new URL(e.path??``,i);return t.protocol=r,t.href}if(typeof e==`number`)return`${r}//${n.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return g(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,i);return o.protocol=r,o.href}function Xr(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=!1,u=`connecting`,d=null,f=an(),p=Yr(n.websocket,r??`./`,location);function m(e,t=null){if(t?d=t:e===`connected`&&(d=null),e===u)return;let n=u;u=e,i.emit(`connection:status`,e,n)}let h=new Set;function g(e){for(let t of[...h])t.reject(e)}function _(){return u===`disconnected`||u===`error`?new Z(`connection`,`[devframe] Not connected to the devframe server`,{cause:d??void 0}):u===`unauthorized`?new Z(`auth`,`[devframe] Not authorized by the devframe server`,{cause:d??void 0}):null}function v(e,t){return new Promise((n,r)=>{let a=!1,o,s={reject(e){a||(l(),i.emit(`rpc:error`,e,t),r(e))}};function l(){a=!0,h.delete(s),o&&clearTimeout(o)}h.add(s),c>0&&(o=setTimeout(()=>{s.reject(new Z(`timeout`,`[devframe] RPC call "${t}" timed out after ${c}ms`))},c)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(`rpc:error`,n,t),r(n)})})}let y=new Map;for(let e of n.jsonSerializableMethods??[])y.set(e,{jsonSerializable:!0});let b=Xn(a.functions,{channel:$n({url:p,authToken:t,definitions:y,...s,onConnected(e){s.onConnected?.(e)},onError(e){m(`error`,e),i.emit(`connection:error`,e),g(new Z(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e})),s.onError?.(e)},onDisconnected(e){u!==`error`&&m(`disconnected`),g(new Z(`connection`,`[devframe] Disconnected from the devframe server`,{cause:d??void 0})),s.onDisconnected?.(e)}}),rpcOptions:o});a.register({name:`devframe:auth:revoked`,type:`event`,handler:()=>{l=!1;let e=new Z(`auth`,`[devframe] The devframe server revoked this client's trust`);m(`unauthorized`,e),i.emit(`connection:error`,e),g(e),i.emit(`rpc:is-trusted:updated`,!1)}});let ee=t;function te(){let e=Jr(navigator.userAgent);return[e.browser.name,e.browser.version,`|`,e.os.name,e.os.version,e.device.type].filter(e=>e).join(` `)}async function ne(e){ee=e;let t=await b.$call(`anonymous:devframe:auth`,{authToken:e,ua:te(),origin:location.origin});if(l=t.isTrusted,l)f.resolve(!0),m(`connected`);else{let e=new Z(`auth`,`[devframe] The devframe server refused this client's credentials`);m(`unauthorized`,e),i.emit(`connection:error`,e)}return i.emit(`rpc:is-trusted:updated`,l),t.isTrusted}async function re(e){let t=(await b.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:te(),origin:location.origin}))?.authToken??null;return t&&(ee=t,l=!0,f.resolve(!0),m(`connected`),i.emit(`rpc:is-trusted:updated`,!0)),t}async function ie(){return l?!0:ne(ee??``)}async function ae(e=6e4){if(l&&f.resolve(!0),e<=0)return f.promise;let t=()=>{};return await Promise.race([f.promise.then(t),new Promise((n,r)=>{let i=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e);t=()=>clearTimeout(i)})]),l}return{get isTrusted(){return l},get status(){return u},get connectionError(){return d},requestTrust:ie,requestTrustWithToken:ne,requestTrustWithCode:re,ensureTrusted:ae,call:(...e)=>{let t=String(e[0]),n=_();return n?(i.emit(`rpc:error`,n,t),Promise.reject(n)):v(b.$call(...e),t)},callEvent:(...e)=>{let t=_();if(t){i.emit(`rpc:error`,t,String(e[0]));return}return b.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=_();return n?(i.emit(`rpc:error`,n,t),Promise.reject(n)):v(b.$callOptional(...e),t)}}}function Zr(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return{async get(e){return(await a()).value()[e]},async set(e,t){(await a()).mutate(n=>{n[e]=t})},async delete(e){(await a()).mutate(t=>{delete t[e]})},async all(){return(await a()).value()},async onChange(e){return(await a()).on(`updated`,t=>e(t))}}}function Qr(e,t){return{global:Zr(e,t,`global`),project:Zr(e,t,`project`)}}function $r(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(on(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(L(t,n),...r)),callEvent:((n,...r)=>e.callEvent(L(t,n),...r)),callOptional:((n,...r)=>e.callOptional(L(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(L(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(L(t,n),r,i),upload:(n,r)=>e.streaming.upload(L(t,n),r)}},settings:Qr(e,t),scope:e.scope}}var ei=`__DEVFRAME_CONNECTION_META__`,Q=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function ti(e){let t=[()=>e,()=>localStorage.getItem(Q)??void 0,()=>window?.[Q],()=>globalThis?.[Q],()=>parent.window?.[Q]];for(let e of t)try{let t=e();if(t)return t}catch{}}function ni(e){try{localStorage.setItem(Q,e)}catch{}globalThis[Q]=e}function ri(){let e=[()=>window?.[ei],()=>globalThis?.[ei],()=>parent.window?.[ei]];for(let t of e)try{let e=t();if(e)return e}catch{}}async function ii(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=he(),a=Array.isArray(t)?t:[t],o=e.connectionMeta||ri(),s=a[0]??`./`,c=e.connectionMeta?void 0:o?.baseUrl;function l(){if(c)return c;let e=_(yn,s);try{return new URL(e,globalThis.location?.href).href}catch{return e}}if(!o){let e=[];for(let t of a)try{o=await fetch(_(yn,t)).then(e=>e.json()),s=t,globalThis[ei]={...o,baseUrl:l()};break}catch(t){e.push(t)}if(!o)throw Error(`Failed to get connection meta from ${a.join(`, `)}`,{cause:e})}let u=new kn({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),d={rpc:void 0},f=ti(e.authToken||o.authToken);f&&ni(f);let p=new An(d);async function m(e){let t=[s,...a.filter(e=>e!==s)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(_(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 h=o.backend===`static`?await Kn({fetchJsonFromBases:m}):Xr({authToken:f,connectionMeta:o,metaBaseUrl:l(),events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&u?.validate(e.m)){if(u.has(e.m,e.a))return i(u.cached(e.m,e.a));let n=await t(e);u.apply(e,n)}else await t(e)}},wsOptions:e.wsOptions}),g;try{g=new BroadcastChannel(`devframe-auth`)}catch{}let v={events:i,get isTrusted(){return h.isTrusted},get status(){return h.status},get connectionError(){return h.connectionError},connectionMeta:o,ensureTrusted:h.ensureTrusted,requestTrust:h.requestTrust,requestTrustWithToken:async e=>(ni(e),h.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await h.requestTrustWithCode(e);if(!t)return!1;ni(t);try{g?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},call:h.call,callEvent:h.callEvent,callOptional:h.callOptional,client:p,sharedState:void 0,streaming:void 0,cacheManager:u,scope:void 0};v.sharedState=Rn(v),v.streaming=Yn(v);let y=new Map;v.scope=(e=>{if(!e)return v;let t=y.get(e);return t||(t=$r(v,e),y.set(e,t)),t}),d.rpc=v;function b(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function ee(){if(!(e.simpleAuth===!1||!b())&&typeof globalThis.prompt==`function`)for(;!v.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 v.requestTrustWithCode(t))return}}async function te(){let t=await h.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await Ln(v,{param:n}):!1;t||r||v.isTrusted||await ee()}return te(),g&&(g.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&v.requestTrustWithToken(e.data.authToken)}),v}function ai(e={}){return ii(e)}var oi=`/__devtools/`;`${oi}`;var $=h({connected:!1,error:null}),si=t(void 0),ci=he(),li;function ui(e={}){ci.emit(`updated`,e)}async function di(e){li?.(),li=(await e.sharedState.get(`vite:inspect:module-updated`,{initialValue:{version:0,ids:null,updatedAt:0}})).on(`updated`,e=>{ui({ids:e.ids??void 0})})}async function fi(){let e=s();try{si.value=await ai({baseURL:[oi,e.app.baseURL],connectionMeta:e.app.connection,wsOptions:{onConnected:()=>{$.connected=!0},onError:e=>{$.error=e},onDisconnected:()=>{$.connected=!1}},rpcOptions:{onGeneralError:(e,t)=>{$.error=e,console.error(`[vite-devtools] RPC error on executing "${t}":`)},onFunctionError:(e,t)=>{$.error=e,console.error(`[vite-devtools] RPC error on executing "${t}":`)}}}),await di(si.value),$.connected=!0}catch(e){$.error=e}}function pi(){return si}function mi(e){let t=ci.on(`updated`,e);return d()&&c(t),t}export{re as a,pi as i,mi as n,b as o,$ as r,fi as t};