@x18n/ui 0.0.3 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/index.d.mts +27 -1
  2. package/dist/index.mjs +62 -12
  3. package/dist/nitro.json +3 -3
  4. package/dist/public/200.html +1 -1
  5. package/dist/public/404.html +1 -1
  6. package/dist/public/_nuxt/B4prFwj0.js +3 -0
  7. package/dist/public/_nuxt/BAuZ_bOg.js +1 -0
  8. package/dist/public/_nuxt/BDNMzG2s.js +1 -0
  9. package/dist/public/_nuxt/BF0GwwSj.js +1 -0
  10. package/dist/public/_nuxt/BL7WZl0t.js +1 -0
  11. package/dist/public/_nuxt/BOzFHLxb.js +1 -0
  12. package/dist/public/_nuxt/BPDtdGtS.js +1 -0
  13. package/dist/public/_nuxt/BQsRGoRo.js +1 -0
  14. package/dist/public/_nuxt/BhEbR39R.js +1 -0
  15. package/dist/public/_nuxt/BriO7i_e.js +1 -0
  16. package/dist/public/_nuxt/{2T7o9vZw.js → Bw3sjlsE.js} +1 -1
  17. package/dist/public/_nuxt/Bx_-K8sr.js +1 -0
  18. package/dist/public/_nuxt/C7ReGOzp.js +1 -0
  19. package/dist/public/_nuxt/CSj9m9n-.js +1 -0
  20. package/dist/public/_nuxt/C_0Sx1sV.js +1 -0
  21. package/dist/public/_nuxt/Ccxs59XZ.js +1 -0
  22. package/dist/public/_nuxt/ChbLIx1c.js +1 -0
  23. package/dist/public/_nuxt/CiBP4H8h.js +1 -0
  24. package/dist/public/_nuxt/CleZzkRG.js +1 -0
  25. package/dist/public/_nuxt/CoPvbHfg.js +1 -0
  26. package/dist/public/_nuxt/CvZr1WUA.js +1 -0
  27. package/dist/public/_nuxt/D0iElgch.js +1 -0
  28. package/dist/public/_nuxt/D1ZHlQ5G.js +1 -0
  29. package/dist/public/_nuxt/D4dwYDex.js +2 -0
  30. package/dist/public/_nuxt/DCrEftnh.js +1 -0
  31. package/dist/public/_nuxt/DH5mSOoi.js +1 -0
  32. package/dist/public/_nuxt/{B2lY2QM5.js → Df7YC0e0.js} +1 -1
  33. package/dist/public/_nuxt/DiDiLO9x.js +1 -0
  34. package/dist/public/_nuxt/DoHg1T7s.js +2 -0
  35. package/dist/public/_nuxt/DqvFL0Kd.js +1 -0
  36. package/dist/public/_nuxt/OQ06FBli.js +1 -0
  37. package/dist/public/_nuxt/UNS2zuJ1.js +1 -0
  38. package/dist/public/_nuxt/_cWgq-kS.js +1 -0
  39. package/dist/public/_nuxt/builds/latest.json +1 -1
  40. package/dist/public/_nuxt/builds/meta/a7ef99ac-b138-4298-b2dc-ae64ec7bd8dc.json +1 -0
  41. package/dist/public/_nuxt/entry.By1Oc4Ii.css +1 -0
  42. package/dist/public/_nuxt/error-404.B3F8lAkA.css +1 -0
  43. package/dist/public/_nuxt/error-500.BO-H0E44.css +1 -0
  44. package/dist/public/_nuxt/g7nJ86t7.js +5 -0
  45. package/dist/public/_nuxt/k4SpML6D.js +1 -0
  46. package/dist/public/_nuxt/pmF1D2Eh.js +1 -0
  47. package/dist/public/_nuxt/xKaCciGs.js +1 -0
  48. package/dist/public/index.html +1 -1
  49. package/package.json +15 -13
  50. package/dist/public/_nuxt/6U3VBVNw.js +0 -3
  51. package/dist/public/_nuxt/B3c8VNtz.js +0 -1
  52. package/dist/public/_nuxt/B_NBUgT3.js +0 -1
  53. package/dist/public/_nuxt/C-abT7Ra.js +0 -1
  54. package/dist/public/_nuxt/CKRUbA4H.js +0 -1
  55. package/dist/public/_nuxt/CUAtu6-x.js +0 -1
  56. package/dist/public/_nuxt/CuHl-Wxz.js +0 -1
  57. package/dist/public/_nuxt/CvRF2CKC.js +0 -1
  58. package/dist/public/_nuxt/D6gh7el6.js +0 -1
  59. package/dist/public/_nuxt/DCQwHjae.js +0 -4
  60. package/dist/public/_nuxt/DgJ_0G3r.js +0 -1
  61. package/dist/public/_nuxt/DgTv_6EB.js +0 -1
  62. package/dist/public/_nuxt/DvXI0X_5.js +0 -1
  63. package/dist/public/_nuxt/UAC6JKNO.js +0 -1
  64. package/dist/public/_nuxt/builds/meta/45c30525-030d-44d4-bb10-65a4ca3668c9.json +0 -1
  65. package/dist/public/_nuxt/entry.puki6KUo.css +0 -1
  66. package/dist/public/_nuxt/error-404.BJfOvlY_.css +0 -1
  67. package/dist/public/_nuxt/error-500.DRhgjSut.css +0 -1
  68. package/dist/public/_nuxt/kCfYtaXI.js +0 -1
  69. package/dist/public/_nuxt/qB8tKtt1.js +0 -2
  70. package/dist/public/_nuxt/xg14vwJh.js +0 -1
@@ -1,4 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CUAtu6-x.js","./6U3VBVNw.js","./qB8tKtt1.js","./B3c8VNtz.js","./2T7o9vZw.js","./CvRF2CKC.js","./CuHl-Wxz.js","./DgJ_0G3r.js","./C-abT7Ra.js","./B_NBUgT3.js","./UAC6JKNO.js","./kCfYtaXI.js","./DgTv_6EB.js","./DvXI0X_5.js","./D6gh7el6.js","./xg14vwJh.js","./error-404.BJfOvlY_.css","./CKRUbA4H.js","./error-500.DRhgjSut.css"])))=>i.map(i=>d[i]);
2
- import{_ as e,a as t,d as n,f as r,g as i,h as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h,v as g}from"./2T7o9vZw.js";import{A as _,B as v,C as y,D as b,F as x,J as S,K as C,L as w,M as T,N as E,P as ee,Q as D,R as te,S as O,T as k,U as ne,W as re,Y as A,_ as j,_t as ie,a as ae,b as M,bt as N,c as P,d as F,g as oe,h as se,i as ce,j as I,k as le,l as L,m as ue,q as de,r as fe,s as R,u as pe,v as me,vt as he,x as ge,y as _e,z as ve}from"./6U3VBVNw.js";import{a as ye,c as be,n as xe,o as Se,r as Ce,t as we}from"./qB8tKtt1.js";import{A as Te,C as Ee,D as De,E as Oe,M as ke,O as Ae,S as je,T as Me,_ as Ne,a as Pe,b as Fe,c as Ie,d as z,f as Le,g as Re,h as ze,i as Be,j as Ve,k as He,l as Ue,m as We,n as Ge,o as Ke,p as qe,r as Je,s as Ye,t as Xe,u as Ze,v as Qe,w as $e,x as et,y as tt}from"./B3c8VNtz.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function nt(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n<r.length-1?`├▶`:`╰▶`)} ${t}`)].join(`
3
- `)}}var rt=/"(?:_|\\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*:/,it=/"(?: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*:/,at=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ot(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t)st(e);else return t}function st(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ct(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(!at.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(rt.test(e)||it.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,ot)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var lt=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function ut(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 lt(`${`[${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 dt=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function ft(e=`GET`){return dt.has(e.toUpperCase())}function pt(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 mt=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),ht=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function gt(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return ht.test(t)?`json`:t===`text/event-stream`?`stream`:mt.has(t)||t.startsWith(`text/`)?`text`:`blob`}function _t(e,t,n,r){let i=vt(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 vt(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 bt=new Set([408,409,425,429,500,502,503,504]),xt=new Set([101,204,205,304]);function St(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:+!ft(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):bt.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=ut(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:_t(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=Ae(s.request,s.options.baseURL)),s.options.query&&(s.request=He(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&&ft(s.options.method)){if(pt(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)&&!xt.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||gt(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||ct;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={})=>St({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var Ct=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})(),wt=Ct.fetch?(...e)=>Ct.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),Tt=Ct.Headers,Et=Ct.AbortController,Dt=St({fetch:wt,Headers:Tt,AbortController:Et}),Ot=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,kt=()=>Ot().app,At=()=>kt().baseURL,jt=()=>kt().buildAssetsDir,Mt=(...e)=>Me(Nt(),jt(),...e),Nt=(...e)=>{let t=kt(),n=t.cdnURL||t.baseURL;return e.length?Me(n,...e):n};globalThis.__buildAssetsURL=Mt,globalThis.__publicAssetsURL=Nt,globalThis.$fetch||(globalThis.$fetch=Dt.create({baseURL:At()}));var Pt=globalThis.$fetch;`global`in globalThis||(globalThis.global=globalThis);function Ft(e,t){t.push(p),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 It(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 Lt(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=>It(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 Rt=new Set([`link`,`style`,`script`,`noscript`]),zt=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),Bt=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),Vt=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),Ht=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),Ut=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),Wt=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),Gt=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),Kt={critical:-8,high:-1,low:2},qt=e=>typeof e==`number`?Number.isFinite(e):e;function Jt(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Yt(e){let t=new d;for(let n in e||{})t.hook(n,e[n]);return t}function Xt(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}function Zt(e,t,n){let r=e.push,i=e;i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>It(i,e),i.render=()=>n(i);function a(){t.callHook(`entries:updated`,i),i._b||i.render()}return i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,a()},i.push=(n,o)=>{let s=o?.onRendered?t.hook(`dom:rendered`,o.onRendered):void 0,c=r(n,o),l=e.entries.get(c._i);return l&&(l._o=n),i.dirty=!0,a(),{_i:c._i,patch(e){c.patch(e),i.dirty=!0,a()},dispose(){s?.(),e.entries.has(c._i)&&(c.dispose(),i.invalidate())}}},i}var Qt=/^(?:viewport|description|keywords|robots)$/,$t=[`name`,`property`,`http-equiv`];function en(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return Gt.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function tn(e){let{props:t,tag:n,key:r}=e;if(Ht.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 $t){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!Qt.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}`:zt.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function nn(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return String(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 rn(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=rn(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=Jt(n),a=i?void 0:rn(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 an=/[\s"'<>/=\x00-\x1F\x7F]/;function on(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 sn(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=Bt.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(Jt(r))continue;let i=r.startsWith(`data-`),a=n&&!Ut.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||an.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=on(r,s);else if(Ut.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=n,e[r]=JSON.stringify(s))}else e[r]=s}else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function cn(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n},e=n(void 0,e)),rn(e,n)}function ln(e,t){let n=sn({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&Rt.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 un(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function dn(e,t){if(!e)return[];typeof e==`function`&&(e=e()),e=cn(e,t);let n=[];for(let t in e){let r=e[t];if(r!==void 0){if(Array.isArray(r))for(let e of r)un(n,ln(t,e));else un(n,ln(t,r))}}return n}var fn=/</g,pn=/<\/script/g,mn=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,hn=()=>100;function gn(e){for(let t in e)return!1;return!0}var _n=/^tags:|:render/;function vn(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 yn(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 bn(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(mn)}function xn(e){let t=!1;for(let n of e.tags.sort(mn)){let r=n._d||nn(n);if(!r)continue;let i=e.tagMap.get(r);if(!i)e.tagMap.set(r,n);else if((n.tagDuplicateStrategy||(Wt.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`&&en(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 Sn(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 Cn(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(Vt.has(i)&&(!gn(a)||qt(r)||qt(n.textContent))&&(i!==`meta`||qt(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(fn,`\\u003C`):typeof e==`string`?e.replace(pn,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=tn(n)}e[t++]=n}}return e.length=t,e}function wn(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??hn,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};vn(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&&Xt(e,`entries:resolve`,{entries:a,...r})),vn(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||gn(t.options)))a=t._precomputedTags;else{if(a=dn(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!gn(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};Xt(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=tn(r),r._d||(r._h=nn(r))}t._tags=a}}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&_n.test(e)){yn(r.tags);break}let o=xn(r);return Sn(r,e),bn(r,o),Xt(e,`tags:beforeResolve`,r),Xt(e,`tags:resolve`,r),Xt(e,`tags:afterResolve`,r),Cn(r.tags)}var Tn=/\s+/;function En(e={}){return t=>kn(t,e)}function Dn(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function On(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(Tn))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function kn(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom;if(!n||e._du||r&&r._d===n&&!e.dirty&&!Dn(e))return!1;let i=n.defaultView;e._du=!0;let a=!1;try{let o=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,i,a){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===a&&c[1]===n&&c[2]===r){o(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(i,e)),f=()=>{a.removeEventListener(n,u),i.getAttribute(l)===``&&i.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};a.addEventListener(n,u),d._l.set(s,[a,n,r,u,f]),i.setAttribute(l,``),o(s,f,!0)},c=function({id:e,$el:t,tag:n}){if(d._e.set(e,t),!n.tag.endsWith(`Attrs`)){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),o(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let i=n.innerHTML;i!=null&&i!==``&&(i!==t.innerHTML&&(t.innerHTML=i),o(`${e}:html`,()=>{t.innerHTML===i&&(t.innerHTML=``)},!0));let a=`${e}:el`;o(a,f[a]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let a=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof a==`function`){let o=r.slice(2);t?.dataset?.[`${r}fired`]&&a.call(t,new((i?.Event)||Event)(o)),s(e,r,o,a,t,n.tag===`bodyAttrs`&&i?i:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&a)for(let e of a){let n=`${c}:${e}`;o(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&a)for(let[e,n]of a){let r=`${c}:${e}`;o(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else a!==!1&&a!==null&&(t.getAttribute(r)!==a&&t.setAttribute(r,a===!0?``:String(a)),o(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(Xt(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=On(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=wn(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,i={tag:e,id:r,shouldRender:!0};e.tag===`meta`&&e._d&&en(e._d)&&(_[e._d]=t+1),g.push(i),e.tag===`title`?(n.title=e.textContent,o(`title:`,()=>n.title=d._t)):(i.$el=d._e.get(r),i.$el?c(i):Bt.has(e.tag)&&p.push(i))}if(p.length){let e=new Set(d._e.values());for(let t of[...n.body.children,...n.head.children]){let n=t.tagName.toLowerCase();if(!Bt.has(n)||e.has(t))continue;let r={innerHTML:t.innerHTML};for(let e of t.getAttributeNames())r[e]=t.getAttribute(e);let i=sn({tag:n,props:{}},r);i.key=t.getAttribute(`data-hid`)||void 0;let a=tn(i)||nn(i),o=a,s=1;for(;d._e.has(o);)o=`${a}:${s++}`;d._e.set(o,t)}}for(let e of p){let t=d._e.get(e.id);e.$el=t||n.createElement(e.tag.tag),c(e),t||(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el)}m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,a=!0,Xt(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return a&&(e.dirty||Dn(e))&&kn(e,t),a}var An=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(Kt[e.tagPriority]||0);function jn(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||En({document:e.document}),n=Zt(Lt(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:An,init:[]}),Yt(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}var Mn=`usehead`;function Nn(){if(ge()){let e=O(Mn);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function Pn(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(Mn,e)}}.install}function Fn(e,t){return t&&typeof e==`function`&&(e.key=t),e}var In=/\\/g,Ln=/</g,Rn=/"/g,zn=/%\w+(?:\.\w+)?/g,Bn=`%separator`;function Vn(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){let e=String(typeof r==`number`?r:r||``);return n?e.replace(In,`\\\\`).replace(Ln,`\\u003C`).replace(Rn,`\\"`):e}}function Hn(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(zn);if(!a)return e;let o=e.includes(Bn);return e=e.replace(zn,e=>{if(e===Bn||!a.includes(e))return e;let n=Vn(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(Bn).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var Un=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Wn=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),Gn=Fn({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=Wn(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=Wn(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(Un))}}}),Kn=Fn({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 qn(e){return typeof e?.then==`function`}var Jn=256;function Yn(e,t){if(t===e.length)return;if(t===Jn){let n=Array(e.length),r=!1;for(;t<e.length;t++){let i=Zn(e[t]);n[t]=i,r||=qn(i)}return r?n:void 0}let n=Zn(e[t]);if(qn(n)){let r=Array(e.length);r[t]=n;for(let n=t+1;n<e.length;n++)r[n]=Zn(e[n]);return r}let r=Yn(e,t+1);return r&&(r[t]=n),r}function Xn(e,t,n){if(n===t.length)return;if(n===Jn){let r=Array(t.length),i=!1;for(;n<t.length;n++){let a=Zn(e[t[n]]);r[n]=a,i||=qn(a)}return i?r:void 0}let r=Zn(e[t[n]]);if(qn(r)){let i=Array(t.length);i[n]=r;for(let r=n+1;r<t.length;r++)i[r]=Zn(e[t[r]]);return i}let i=Xn(e,t,n+1);return i&&(i[n]=r),i}function Zn(e){if(typeof e==`function`)return e;if(qn(e))return Promise.resolve(e).then(Zn);if(Array.isArray(e)){let t=Yn(e,0);return t?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=Xn(e,t,0);if(n)return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var Qn=Fn(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=Zn(a);qn(o)?(t.set(i,a),n.entries.splice(r,1),Promise.resolve(o).then(n=>{t.get(i)===a&&(t.delete(i),i.input=n,delete i._tags,e.invalidate?.())},()=>{t.get(i)===a&&t.delete(i)})):t.delete(i)}}}}},`promises`),$n={meta:`content`,link:`href`,htmlAttrs:`lang`},er=[`innerHTML`,`textContent`];function tr(e,t,n,r=!1){return typeof e==`string`&&e.includes(`%`)?Hn(e,t,n,r):e}var nr=Fn(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=tr(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=$n[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=tr(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of er)typeof e[t]==`string`&&(e[t]=tr(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=tr(n.textContent,e._templateParams,e._separator))}}}),`template-params`);function rr(e={}){let t=En(),n,r=0;return n=jn({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=Pn(n),n}var ir={disableDefaults:!0,plugins:[Kn,Qn,nr,Gn]},ar=f({name:`nuxt:head`,enforce:`pre`,setup(e){Ft(e,rr(ir))}}),or=/(:\w+)\([^)]+\)/g,sr=/(:\w+)[?+*]/g,cr=/:\w+/g,lr=(e,t)=>t.path.replace(or,`$1`).replace(sr,`$1`).replace(cr,t=>e.params[t.slice(1)]?.toString()||``),ur=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&lr(e.route,n));return typeof r==`function`?r(e.route):r},dr=(e,t)=>({default:()=>e?M(ce,e===!0?{}:e,t):t});function fr(e){return Array.isArray(e)?e:[e]}var pr=()=>({}),mr=e=>e.startsWith(`/`);function hr(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function gr(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&hr(e.default)}var B=Object.assign;function _r(e,t){let n={};for(let r in t){let i=t[r];n[r]=V(i)?i.map(e):e(i)}return n}var vr=()=>{},V=Array.isArray;function yr(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var br=Symbol(``);function xr(e,t){return B(Error(),{type:e,[br]:!0},t)}function H(e,t){return e instanceof Error&&br in e&&(t==null||!!(e.type&t))}var Sr=Symbol(``),Cr=Symbol(``),wr=Symbol(``),Tr=Symbol(``),Er=Symbol(``),Dr=Symbol(``),Or=typeof document<`u`,kr=/#/g,Ar=/&/g,jr=/\//g,Mr=/=/g,Nr=/\?/g,Pr=/\+/g,Fr=/%5B/g,Ir=/%5D/g,Lr=/%5E/g,Rr=/%60/g,zr=/%7B/g,Br=/%7C/g,Vr=/%7D/g,Hr=/%20/g;function Ur(e){return e==null?``:encodeURI(``+e).replace(Br,`|`).replace(Fr,`[`).replace(Ir,`]`)}function Wr(e){return Ur(e).replace(zr,`{`).replace(Vr,`}`).replace(Lr,`^`)}function Gr(e){return Ur(e).replace(Pr,`%2B`).replace(Hr,`+`).replace(kr,`%23`).replace(Ar,`%26`).replace(Rr,"`").replace(zr,`{`).replace(Vr,`}`).replace(Lr,`^`)}function Kr(e){return Gr(e).replace(Mr,`%3D`)}function qr(e){return Ur(e).replace(kr,`%23`).replace(Nr,`%3F`)}function Jr(e){return qr(e).replace(jr,`%2F`)}function Yr(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Xr=/\/$/,Zr=e=>e.replace(Xr,``);function Qr(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=oi(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Yr(o)}}function $r(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function ei(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ti(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ni(t.matched[r],n.matched[i])&&ri(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ni(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ri(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ii(e[n],t[n]))return!1;return!0}function ii(e,t){return V(e)?ai(e,t):V(t)?ai(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function ai(e,t){return V(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function oi(e,t){if(mr(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var U={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function si(e){if(!e){if(Or){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Zr(e)}var ci=/^[^#]+#/;function li(e,t){return e.replace(ci,`#`)+t}function ui(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var di=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function fi(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=ui(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function pi(e,t){return(history.state?history.state.position-t:-1)+e}var mi=new Map;function hi(e){mi.set(e,di())}function gi(e){let t=mi.get(e);return mi.delete(e),t}function _i(e,t=!1){for(let n of mi.keys()){let r=parseInt(n,10);(r===e||!t&&r>e)&&mi.delete(n)}}function vi(e){return typeof e==`string`||e&&typeof e==`object`}function yi(e){return typeof e==`string`||typeof e==`symbol`}function bi(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Pr,` `),i=r.indexOf(`=`),a=Yr(i<0?r:r.slice(0,i)),o=i<0?null:Yr(r.slice(i+1));if(a in t){let e=t[a];V(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function xi(e){let t=``;for(let n in e){let r=e[n];n=Kr(n),r==null?r!==void 0&&(t+=(t.length?`&`:``)+n):(V(r)?r.map(e=>e&&Gr(e)):[r&&Gr(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Si(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=V(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Ci(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function wi(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(xr(4,{from:n,to:t})):e instanceof Error?c(e):vi(e)?c(xr(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Ti(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(hr(s)){let c=(s.__vccOpts||s)[t];c&&a.push(wi(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=gr(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&wi(c,n,r,o,e,i)()}))}}}return a}function Ei(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>ni(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>ni(e,s))||i.push(s))}return[n,r,i]}var Di=()=>location.protocol+`//`+location.host;function Oi(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),ei(n,``)}return ei(n,e)+r+i}function ki(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Oi(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(B({},e.state,{scroll:di()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function Ai(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function ji(e){let{history:t,location:n}=window,r={value:Oi(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:Di()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){let o=B({},t.state,Ai(i.value.back,e,i.value.forward,!0),n,{position:i.value.position});a(e,o,!0),_i(o.position,!0),r.value=e}function s(e,n){let o=B({},i.value,t.state,{forward:e,scroll:di()});a(o.current,o,!0),a(e,B({},Ai(r.value,e,null),{position:o.position+1},n),!1),_i(o.position),r.value=e}return{location:r,state:i,push:s,replace:o}}function Mi(e){e=si(e);let t=ji(e),n=ki(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=B({location:``,base:e,go:r,createHref:li.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}function Ni(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Mi(e)}var Pi={type:0,value:``},Fi=/[a-zA-Z0-9_]/;function Ii(e){if(!e)return[[]];if(e===`/`)return[[Pi]];if(!mr(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:Fi.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Li=`[^/]+?`,Ri={sensitive:!1,strict:!1,start:!0,end:!0},zi=/[.+*?^${}()[\]/\\]/g;function Bi(e,t){let n=B({},Ri,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(zi,`\\$&`),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||Li;if(u!==Li){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(V(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=V(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 Vi(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 Hi(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Vi(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Ui(r))return 1;if(Ui(i))return-1}return i.length-r.length}function Ui(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Wi={strict:!1,end:!0,sensitive:!1};function Gi(e,t,n){let r=B(Bi(Ii(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ki(e,t){let n=[],r=new Map;t=yr(Wi,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Ji(e);s.aliasOf=r&&r.record;let l=yr(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(Ji(B({},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&&!mr(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Gi(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Xi(d)&&o(e.name)),ea(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)}:vr}function o(e){if(yi(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=Qi(e,n);n.splice(t,0,e),e.record.name&&!Xi(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 xr(1,{location:e});s=i.record.name,a=B(qi(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&qi(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 xr(1,{location:e,currentLocation:t});s=i.record.name,a=B({},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:Zi(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 qi(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Ji(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Yi(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 Yi(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 Xi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Zi(e){return e.reduce((e,t)=>B(e,t.meta),{})}function Qi(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Hi(e,t[i])<0?r=i:n=i+1}let i=$i(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function $i(e){let t=e;for(;t=t.parent;)if(ea(t)&&Hi(e,t)===0)return t}function ea({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ta(e){let t=O(wr),n=O(Tr),r=R(()=>{let n=D(e.to);return t.resolve(n)}),i=R(()=>{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(ni.bind(null,i));if(o>-1)return o;let s=oa(e[t-2]);return t>1&&oa(i)===s&&a[a.length-1].path!==s?a.findIndex(ni.bind(null,e[t-2])):o}),a=R(()=>i.value>-1&&aa(n.params,r.value.params)),o=R(()=>i.value>-1&&i.value===n.matched.length-1&&ri(n.params,r.value.params));function s(n={}){if(ia(n)){let n=t[D(e.replace)?`replace`:`push`](D(e.to)).catch(vr);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:R(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function na(e){return e.length===1?e[0]:e}var ra=j({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:ta,setup(e,{slots:t}){let n=C(ta(e)),{options:r}=O(wr),i=R(()=>({[sa(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[sa(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&na(t.default(n));return e.custom?r:M(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function ia(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 aa(e,t){for(let n in t){let r=t[n],i=e[n];if(V(r)){if(!V(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function oa(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var sa=(e,t,n)=>e??t??n,ca=j({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=O(Er),i=R(()=>e.route||r.value),a=O(Cr,0),o=R(()=>{let e=D(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=R(()=>i.value.matched[o.value]);T(Cr,R(()=>o.value+1)),T(Sr,s),T(Er,i);let c=new Set;T(Dr,c);let l=de(),u=U,{app:d}=me().appContext;return w(()=>[l.value,s.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||!ni(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,f=o&&o.components[a];if(!f)return la(n.default,{Component:f,route:r});let p=o.props[a],m=p?p===!0?r.params:typeof p==`function`?p(r):p:null,h=e=>{e.component.isUnmounted&&(o.instances[a]=null)},g=e=>k(()=>{if(u===r||i.value!==r||e.el.getRootNode()!==d._container.getRootNode())return;let t=u;u=r;for(let e of c)e(r,t)}),_=M(f,B({},m,t,{onVnodeUnmounted:h,onVnodeMounted:g,onVnodeUpdated:g,ref:l}));return la(n.default,{Component:_,route:r})||_}}});function la(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var ua=ca;function da(e){let t=e.matcher||Ki(e.routes,e),n=e.parseQuery||bi,r=e.stringifyQuery||xi,i=e.history,a=Ci(),o=Ci(),s=Ci(),c=A(U),l=A(0),u=U;Or&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=_r.bind(null,e=>``+e),f=_r.bind(null,Jr),p=_r.bind(null,Yr);function m(e,n){let r,i;yi(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return l.value++,()=>{a(),l.value++}}function h(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),l.value++)}function g(){t.clearRoutes(),l.value++}function _(){return t.getRoutes().map(e=>e.record)}function v(e){return!!t.getRecordMatcher(e)}function y(e,a){if(l.value,typeof e==`string`){a||=e.startsWith(`/`)?U:c.value;let r=Qr(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return B(r,o,{params:p(o.params),redirectedFrom:void 0,href:s})}a=B({},a||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?U:c.value));let o;if(e.path!=null)o=B({},e,{path:Qr(n,e.path,a.path).path});else{let t=B({},e.params);for(let e in t)t[e]??delete t[e];o=B({},e,{params:f(t)}),a.params=f(a.params)}let s=t.resolve(o,a),u=e.hash||``;s.params=d(p(s.params));let m=$r(r,B({},e,{hash:Wr(u),path:s.path})),h=i.createHref(m);return B({fullPath:m,hash:u,query:r===xi?Si(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function b(e){return typeof e==`string`?Qr(n,e,c.value.path):B({},e)}function x(e,t){if(u!==e)return xr(8,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(B(b(e),{replace:!0}))}function T(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={}),B({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=u=y(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,l=T(n,i);if(l)return E(B(b(l),{state:typeof l==`object`?B({},a,l.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&ti(r,i,n)&&(f=xr(16,{to:d,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):O(d,i)).catch(e=>H(e)?H(e,2)?e:oe(e):P(e,d,i)).then(e=>{if(e){if(H(e,2))return E(B({replace:s},b(e.to),{state:typeof e.to==`object`?B({},a,e.to.state):a,force:o}),t||d)}else e=re(d,i,!0,s,a);return ne(d,i,e),e})}function ee(e,t){let n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function te(e){let t=le.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function O(e,t){let n,[r,i,s]=Ei(e,t);n=Ti(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(wi(r,e,t))});let c=ee.bind(null,e,t);return n.push(c),ue(n).then(()=>{n=[];for(let r of a.list())n.push(wi(r,e,t));return n.push(c),ue(n)}).then(()=>{n=Ti(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(wi(r,e,t))});return n.push(c),ue(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(V(r.beforeEnter))for(let i of r.beforeEnter)n.push(wi(i,e,t));else n.push(wi(r.beforeEnter,e,t))}return n.push(c),ue(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ti(s,`beforeRouteEnter`,e,t,te),n.push(c),ue(n))).then(()=>{n=[];for(let r of o.list())n.push(wi(r,e,t));return n.push(c),ue(n)}).catch(e=>H(e,8)?e:Promise.reject(e))}function ne(e,t,n){s.list().forEach(r=>te(()=>r(e,t,n)))}function re(e,t,n,r,a){let o=x(e,t);if(o)return o;let s=t===U,l=Or?history.state:{};n&&(r||s?i.replace(e.fullPath,B({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,se(e,t,n,s),oe()}let j;function ie(){j||=i.listen((e,t,n)=>{if(!L.listening)return;let r=y(e),a=T(r,L.currentRoute.value);if(a){E(B(a,{replace:!0,force:!0}),r).catch(vr);return}u=r;let o=c.value;Or&&n.delta&&hi(pi(o.fullPath,n.delta)),O(r,o).catch(e=>H(e,12)?e:H(e,2)?(E(B(b(e.to),{force:!0}),r).then(e=>{H(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(vr),Promise.reject()):(n.delta&&i.go(-n.delta,!1),P(e,r,o))).then(e=>{e||=re(r,o,!1),e&&(n.delta&&!H(e,8)?i.go(-n.delta,!1):n.type===`pop`&&H(e,20)&&i.go(-1,!1)),ne(r,o,e)}).catch(vr)})}let ae=Ci(),M=Ci(),N;function P(e,t,n){oe(e);let r=M.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function F(){return N&&c.value!==U?Promise.resolve():new Promise((e,t)=>{ae.add([e,t])})}function oe(e){return N||(N=!e,ie(),ae.list().forEach(([t,n])=>e?n(e):t()),ae.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!Or||!a)return Promise.resolve();let o=!r&&gi(pi(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return k().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&fi(e)).catch(e=>t===c.value&&P(e,t,n))}let ce=e=>i.go(e),I,le=new Set,L={currentRoute:c,listening:!0,addRoute:m,removeRoute:h,clearRoutes:g,hasRoute:v,getRoutes:_,resolve:y,options:e,push:C,replace:w,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:M.add,isReady:F,install(e){e.component(`RouterLink`,ra),e.component(`RouterView`,ua),e.config.globalProperties.$router=L,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>D(c)}),Or&&!I&&c.value===U&&(I=!0,C(i.location).catch(e=>{}));let t={};for(let e in U)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(wr,L),e.provide(Tr,S(t)),e.provide(Er,c);let n=e.unmount;le.add(e),e.unmount=function(){le.delete(e),le.size<1&&(u=U,j&&j(),j=null,c.value=U,I=!1,N=!1),n()}}};function ue(e){return e.reduce((e,t)=>e.then(()=>te(t)),Promise.resolve())}return L}var fa=(e,t)=>({default:()=>e?M(we,e===!0?{}:e,t):t.default?.()}),pa=/(:\w+)\([^)]+\)/g,ma=/(:\w+)[?+*]/g,ha=/:\w+/g;function ga(e){let t=e?.meta.key??e.path.replace(pa,`$1`).replace(ma,`$1`).replace(ha,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function _a(e,t){return e===t||t===U?!1:ga(e)!==ga(t)||!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default)}function va(e){return Array.isArray(e)?e:[e]}function ya(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?va(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?va(n.onBeforeLeave):void 0});return et(...t)}function ba(e){e[`~transitionPromise`]||=new Promise(t=>{e[`~transitionFinish`]=t})}function xa(e){e[`~transitionFinish`]?.(),delete e[`~transitionFinish`],delete e[`~transitionPromise`]}var Sa={scrollBehavior(e,n,r){let i=t(),a=z(),o=a.options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===n.path.replace(/\/$/,``)?n.hash&&!e.hash?r??{left:0,top:0}:e.hash?{el:e.hash,top:Ca(e.hash),behavior:o}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,n):e.meta.scrollToTop)===!1?!1:n===U?wa(e,n,r,o):new Promise(t=>{let s=()=>{requestAnimationFrame(()=>{a.currentRoute.value.fullPath===e.fullPath?t(wa(e,n,r,o)):t(!1)})};i.hooks.hookOnce(`page:loading:end`,()=>{let e=i[`~transitionPromise`];e?e.then(s):s()})})}};function Ca(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function wa(e,t,n,r){return n||(e.hash?{el:e.hash,top:Ca(e.hash),behavior:_a(e,t)?r:`instant`}:{left:0,top:0})}var Ta={hashMode:!0,scrollBehaviorType:`auto`,sensitive:!1,...Sa},Ea=Ke(async e=>{if(!e.meta?.validate)return;let t=await Promise.resolve(e.meta.validate(e));if(t!==!0)return tt({fatal:!0,status:t&&(t.status||t.statusCode)||404,statusText:t&&(t.statusText||t.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})}),Da=g({docsBase:a,reporters:i}),Oa=`modulepreload`,ka=function(e,t){return new URL(e,t).href},Aa={},ja=function(e){return e.pathname.endsWith(`.css`)},Ma=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},W=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=ka(t,n);let r=s(t),i=ja(r);return Ma(Aa,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Oa,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Na=Pt;function Pa(e){return pr(e)}var Fa;function Ia(){let e;return e=Na(Mt(`builds/meta/${u().app.buildId}.json`),{responseType:`json`}).then(e=>{if(!e||typeof e!=`object`||!Array.isArray(e.prerendered))throw Da.NUXT_E5004();return e}),Fa=e,e.catch(t=>{Fa===e&&(Fa=void 0),Da.NUXT_E5002({cause:t})}),e}function La(){return Fa||Ia()}function Ra(e){let t=typeof e==`string`?e:e.path;try{return Pa(t)}catch(e){return Da.NUXT_E5003({path:t,cause:e}),{}}}var za=[Ea,Ke(e=>{let t=Ra({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return ze(n)?(window.location.href=n,!1):n}})],Ba={},Va=[{name:`keys-key`,path:`/keys/:key()`,component:()=>W(()=>import(`./CUAtu6-x.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)},{name:`locales-locale`,path:`/locales/:locale()`,component:()=>W(()=>import(`./C-abT7Ra.js`),__vite__mapDeps([8,1,3,4,6]),import.meta.url)},{name:`extract`,path:`/extract`,component:()=>W(()=>import(`./B_NBUgT3.js`),__vite__mapDeps([9,1,2]),import.meta.url)},{name:`keys`,path:`/keys`,component:()=>W(()=>import(`./UAC6JKNO.js`),__vite__mapDeps([10,1,2,3,4,7]),import.meta.url)},{name:`project`,path:`/project`,component:()=>W(()=>import(`./kCfYtaXI.js`),__vite__mapDeps([11,1]),import.meta.url)},{name:`usages`,path:`/usages`,component:()=>W(()=>import(`./DgTv_6EB.js`),__vite__mapDeps([12,1,2,5]),import.meta.url)},{name:`index`,path:`/`,component:()=>W(()=>import(`./DvXI0X_5.js`),__vite__mapDeps([13,1]),import.meta.url)}],Ha=/\/(?=$|[?#])/;function Ua(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),Ve(n,``)}let s=Ve(r,e),c=!n||Ee(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var Wa=f({name:`nuxt:router`,enforce:`pre`,async setup(e){let t=u().app.baseURL;t.includes(`#`)||(t+=`#`);let n=Ta.history?.(t)??Ni(t),r=Ta.routes?await Ta.routes(Va)??Va:Va,i,a=da({...Ta,scrollBehavior:(e,t,n)=>{if(t===U)i=n;else if(Ta.scrollBehavior){if(a.options.scrollBehavior=Ta.scrollBehavior,`scrollRestoration`in window.history){let e=a.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return Ta.scrollBehavior(e,U,i||n)}},history:n,routes:r});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(a);let o=A(a.currentRoute.value);a.afterEach((e,t)=>{o.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>o.value});let s=Ua(t,window.location,e.payload.path);Ve(window.location.pathname,t);let c=A(a.currentRoute.value),l=()=>{c.value=a.currentRoute.value};a.afterEach((e,t)=>{let n=e.matched.at(-1)?.components?.default,r=t.matched.at(-1)?.components?.default;n===r?ur({route:e,Component:{type:n}})===ur({route:t,Component:{type:r}})&&l():e.matched.length<t.matched.length&&e.matched.every((e,n)=>e.components?.default===t.matched[n]?.components?.default)&&l()});let d={sync:l};for(let e in c.value)Object.defineProperty(d,e,{get:()=>c.value[e],enumerable:!0});e._route=S(d),e._middleware||={global:[],named:{}};let f=Pe();a.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&f.value&&await e.runWithContext(Je),r&&await e.callHook(`page:loading:end`)}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)});try{await a.isReady()}catch(t){await Ge(e,t)}let p=s===a.currentRoute.value.fullPath?a.currentRoute.value:a.resolve(s),m=a.currentRoute.value.fullPath,h=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&s.replace(Ha,``)!==e.payload.path.replace(Ha,``)&&Ee(a.currentRoute.value.path,e.payload.path);l();function g(r){!e.isHydrating&&r.fullPath!==Ua(t,window.location)&&n.push(r.fullPath)}a.beforeEach(t=>{if(!e.isHydrating&&pr(t.path).noScripts)return window.location.assign(a.resolve(t.fullPath).href),!1});let _=e.payload.state._layout;return a.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=C(t.meta),e.isHydrating&&_&&!ne(t.meta.layout)&&(t.meta.layout=_),e._processingMiddleware=!0;{let r=new Set([...za,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of fr(t))r.add(e)}let i=Ra({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 Ba[i]?.().then(e=>e.default||e):i;if(!r)throw Le.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||tt({status:404,statusText:`Page Not Found: ${s}`});return await e.runWithContext(()=>Be(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return Fe(i)&&i.fatal&&(await e.runWithContext(()=>Be(i)),g(t)),i}catch(n){let r=tt(n);return r.fatal&&(await e.runWithContext(()=>Be(r)),g(t)),r}}}}),a.afterEach(t=>{if(t.matched.length===0&&!f.value)return e.runWithContext(()=>Be(tt({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in p&&(p.name=void 0),a.currentRoute.value.fullPath===m){if(h){let t=a.resolve(e.payload.path);`name`in t&&(t.name=void 0),await a.replace({...t,force:!0});let n=()=>{e[`~restoreDeferredRoute`]&&(e[`~restoreDeferredRoute`]=void 0,a.currentRoute.value=a.resolve(s),l(),a.replace({...p,force:!0}).catch(()=>{}))};e[`~restoreDeferredRoute`]=n,e.hooks.hookOnce(`app:suspense:resolve`,n)}else await a.replace({...p,force:!0})}a.options.scrollBehavior=Ta.scrollBehavior}catch(t){await Ge(e,t)}}),{provide:{router:a}}}}),Ga=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Ka=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),qa=e=>{let n=t();n.isHydrating?n.hooks.hookOnce(`app:suspense:resolve`,()=>{Ga(()=>e())}):Ga(()=>e())},Ja=f(()=>{let e=z();qa(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),Ya=f(e=>{let t;async function r(){let i;try{i=await La()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(r,n);try{let n=await Pt(Mt(`builds/latest.json`)+`?${Date.now()}`);n.id!==i?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}qa(()=>{t=setTimeout(r,n)})});function Xa(e={}){let n=e.path||window.location.pathname,r=new URL(n,window.location.href);if(r.host!==window.location.host)throw Le.NUXT_E2010({path:n});if(r.protocol&&$e(r.protocol))throw Le.NUXT_E2002({toPath:n,protocol:r.protocol});let i={};try{i=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||i?.path!==n||i?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:n,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:t().payload.state}))}catch{}window.location.pathname===n?window.location.reload():window.location.href=n}}var Za=f({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&Re(navigator.userAgent)&&Xa()})}}),Qa=f({name:`nuxt:chunk-reload`,setup(e){let t=z(),n=u(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){Xa({path:Oe(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),$a=/2g/;function eo(){let e=navigator.connection;return!e||!e.saveData&&!$a.test(e.effectiveType||``)}function to(e){let{pathname:t,search:n}=new URL(e,window.location.href);return t+n}function no(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}function ro(e){return Promise.all(e.map(e=>{let t=e.components?.default;return typeof t==`function`?Promise.resolve(t()).catch(()=>{}):void 0}))}function io(e,t){let{fullPath:n,path:r,matched:i}=t.resolve(e);if(!i.length)return;let a=o()?._prefetch;a?a.schedule({key:`route:${r}`,priority:`route`,scope:`navigation`,group:to(n),run:e=>e.aborted?void 0:ro(i)}):ro(i)}var ao=(...e)=>e.find(e=>e!==void 0);function oo(e){let n=e.componentName||`NuxtLink`;function r(e){return!1}function i(t,n,r){let i=r??e.trailingSlash;if(!t||i!==`append`&&i!==`remove`)return t;if(typeof t==`string`)return co(t,i);let a=`path`in t&&t.path!==void 0?t.path:n(t).path;return{...t,name:void 0,path:co(a,i)}}function a(t){let n=z(),a=u(),o=n.options?.history?.createHref??(e=>Oe(a.app.baseURL,e)),s=R(()=>!!D(t.target)&&D(t.target)!==`_self`),c=R(()=>{let e=D(t.to)||D(t.href)||``;return typeof e==`string`&&ze(e)}),l=R(()=>{if(D(t.external))return!0;let e=D(t.to)||D(t.href)||``;return typeof e==`object`?!1:e===``||c.value}),d=R(()=>{let e=D(t.to)||D(t.href)||``;return l.value?e:i(e,n.resolve,D(t.trailingSlash))}),f=R(()=>{let i=D(t.trailingSlash)??e.trailingSlash;if(!d.value||c.value||r(d.value)){let e=d.value;return typeof e==`string`?Qe(e):e}if(l.value){let e=typeof d.value==`object`&&`path`in d.value?Ue(d.value):d.value,t=typeof e==`object`?n.resolve(e).href:e,r=typeof t==`string`?Qe(t):t;return r===null?null:co(r,i)}return typeof d.value==`object`?n.resolve(d.value)?.href??null:co(Ne(d.value)?o(d.value):n.resolve(d.value).href,i)});return{to:d,hasTarget:s,isAbsoluteUrl:c,isExternal:l,href:f,async navigate(e){f.value!==null&&await Ie(f.value,{replace:D(t.replace),external:l.value||s.value})}}}function o(e){let t=z(),n=a(e),r=ee(`RouterLink`),i=r&&typeof r!=`string`?r.useLink:void 0,o=n.isExternal.value?void 0:i?.({...e,to:n.to,viewTransition:D(e.viewTransition)});return{...n,isActive:o?.isActive??R(()=>n.to.value===t.currentRoute.value.path),isExactActive:o?.isExactActive??R(()=>n.to.value===t.currentRoute.value.path),route:o?.route??R(()=>t.resolve(n.to.value))}}return j({name:n,props:{to:{type:[String,Object],required:!1},href:{type:[String,Object],required:!1},target:{type:String,required:!1},rel:{type:String,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},prefetchedClass:{type:String,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,required:!1}},useLink:o,setup(n,{slots:i}){let o=z(),s=ee(`RouterLink`),{to:c,href:l,navigate:u,isExternal:d,hasTarget:f,isAbsoluteUrl:p}=a(n),m=A(!1),h=de(null),g=e=>{h.value=n.custom?e?.$el?.nextElementSibling:e?.$el};function v(t){return typeof n.prefetchOn==`string`?n.prefetchOn===t:n.prefetchOn?.[t]??e.prefetchOn?.[t]}function y(){return!!((n.prefetch??e.prefetch)!==!1&&n.noPrefetch!==!0&&n.target!==`_blank`&&eo())}function x(e){return!!(!m.value&&v(e)&&y())}function S(){let e=typeof c.value==`string`?c.value:d.value?Ue(c.value):o.resolve(c.value).fullPath;return d.value?new URL(e,window.location.href).href:e}function C(){m.value?d.value||t()._prefetch?.promote(to(S())):v(`interaction`)&&w()}async function w(e=t()){if(m.value||l.value===null)return;m.value=!0;let n=S();await Promise.all([e.hooks.callHook(`link:prefetch`,n)?.catch(()=>{}),!d.value&&!f.value&&io(c.value,o)])}if(!n.custom&&x(`visibility`)){let e=t(),n,r=null;_(()=>{let t=lo();qa(()=>{n=Ga(()=>{h?.value?.tagName&&(r=t.observe(h.value,async()=>{r?.(),r=null,await w(e)}))})})}),b(()=>{n&&Ka(n),r?.(),r=null})}return()=>{let t=n.target||null,a=ao(n.noRel?``:n.rel,e.externalRelAttribute,p.value||f.value?`noopener noreferrer`:``)||null,_=e=>({navigate:u,get route(){if(!l.value)return;let e=new URL(l.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return De(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l.value}},rel:a,target:t,isExternal:d.value||f.value,isActive:!1,isExactActive:!1,...e,href:typeof e?.href==`string`?Qe(e.href):l.value,prefetch:w,prefetched:m.value,shouldPrefetch:x});if(!d.value&&!f.value&&!r(c.value)){let t={ref:g,to:c.value,activeClass:n.activeClass||e.activeClass,exactActiveClass:n.exactActiveClass||e.exactActiveClass,replace:n.replace,ariaCurrentValue:n.ariaCurrentValue,custom:n.custom};return n.custom||((v(`interaction`)||m.value)&&y()&&(t.onPointerenter=C,t.onFocus=C,t.onPointerdown=C),m.value&&(t.class=n.prefetchedClass||e.prefetchedClass),t.rel=n.rel||void 0),M(s,t,n.custom&&i.default?{default:e=>i.default(_(e))}:i.default)}return n.custom?i.default?i.default(_()):null:M(`a`,{ref:h,href:l.value||null,rel:a,target:t,onClick:async e=>{if(!(d.value||f.value)){e.preventDefault();try{let e=Ye(l.value??``);return await(n.replace?o.replace(e):o.push(e))}finally{if(r(c.value)){let e=c.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},i.default?.())}}})}var so=oo(h);function co(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?Te:ke;return je(e)&&!e.startsWith(`http`)?e:n(e,!0)}function lo(){let e=t();if(e._observer)return e._observer;let n=null,r=new Map;return e._observer={observe:(e,t)=>(n||=new IntersectionObserver(e=>{for(let t of e){let e=r.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),r.set(e,t),n.observe(e),()=>{r.delete(e),n?.unobserve(e),r.size===0&&(n?.disconnect(),n=null)})}}var uo=f({name:`nuxt:island-link-navigation`,setup(e){}}),fo=f({name:`nuxt:global-components`}),po={},mo=[`route`,`payload`,`island`,`hint`],ho=12,go={route:8,payload:8,island:4,hint:8};function _o(e={}){let t={...go,...e.concurrency},n=e.total??ho,r=e.canPrefetch,i=e.defer,a={route:[],payload:[],island:[],hint:[]},o=mo.map(e=>a[e]),s=new WeakSet,c=new Map,l={route:0,payload:0,island:0,hint:0},u=0,d=new Map,f=new AbortController,p=new AbortController;p.abort();function m(e){c.get(e.key)===e&&c.delete(e.key)}function h(e){m(e),Promise.resolve().then(()=>e.run(p.signal,!1)).catch(()=>{})}function g(){if(!r||r())for(;u<n;){let e=mo.find(e=>a[e].length&&l[e]<t[e]);if(!e)return;let n=a[e].shift();_(n,s.delete(n))}}function _(e,t){let n=e.scope===`app`?f:new AbortController;e.scope===`navigation`&&d.set(e,n),l[e.priority]++,u++;let r=!1,a=()=>{r||(r=!0,l[e.priority]--,u--,d.delete(e),m(e),g())};n.signal.addEventListener(`abort`,a,{once:!0});let o=()=>Promise.resolve().then(()=>e.run(n.signal,t)).then(a,a);i?i(o,t,e.priority):o()}let v=(e,t)=>t!==void 0&&e.group===t&&e.priority!==`hint`;return{schedule(e){let t=[];for(let n of Array.isArray(e)?e:[e])c.has(n.key)?h(n):(c.set(n.key,n),t.push(n));for(let e=t.length-1;e>=0;e--)a[t[e].priority].unshift(t[e]);g()},promote(e){for(let t of o){let n=[],r=[];for(let i of t)i.group===e&&s.add(i),(i.group===e?n:r).push(i);t.length=0,t.push(...n,...r)}g()},reset(e){for(let t of o)for(let n=t.length-1;n>=0;n--){let r=t[n];r.scope===`navigation`&&!v(r,e)&&(t.splice(n,1),h(r))}for(let[t,n]of[...d])v(t,e)||n.abort();g()},resume:g}}var vo=1e3;function yo(e,t,n){if(t||n===`route`)return e();let r=globalThis.scheduler;r?.postTask?r.postTask(e,{priority:`background`}).catch(()=>{}):Ga(e,{timeout:vo})}function bo(e=t()){if(e._prefetch)return e._prefetch;let n=!1,r=_o({canPrefetch:()=>eo()&&!n&&document.visibilityState!==`hidden`,defer:yo});e._prefetch=r,navigator.connection?.addEventListener?.(`change`,()=>r.resume()),document.addEventListener(`visibilitychange`,()=>r.resume());let i=e.$router;return i.beforeEach(()=>{n=!0}),i.afterEach(e=>{n=!1,r.reset(to(e.fullPath))}),i.onError(()=>{n=!1,r.resume()}),r}var xo=[ar,Wa,Ja,Ya,Za,Qa,uo,fo,f({name:`nuxt:prefetch`,setup(e){let t=z();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;typeof t==`string`&&t in po&&await no(po[t])})});let{schedule:n}=bo(e);e.hooks.hook(`link:prefetch`,async e=>{if(je(e))return;let r=t.resolve(e);if(!r)return;let i=r.meta.layout,a=fr(r.meta.middleware).filter(e=>typeof e==`string`);n({key:`route:chunks:${e}`,priority:`route`,scope:`navigation`,group:to(e),run:e=>{if(e.aborted)return;let t=[];for(let e of a){let n=Ba[e];typeof n==`function`&&t.push(n())}return typeof i==`string`&&i in po&&t.push(no(po[i])),Promise.all(t).catch(()=>{})}})})}}),f(()=>{})];function So(e=me()){let t=e;t&&!t.sp&&(t.sp=[])}function G(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 Co={blue:G(34,39),cyan:G(36,39),gray:G(90,39),green:G(32,39),red:G(31,39),yellow:G(33,39),bold:G(1,22),dim:G(2,22),reset:G(0,0),underline:G(4,24)},K={bus:{agentManifestChanged:`agent:manifest:changed`,agentToolRegistered:`agent:tool:registered`,agentToolUnregistered:`agent:tool:unregistered`,agentResourceRegistered:`agent:resource:registered`,agentResourceUnregistered:`agent:resource:unregistered`},client:{isTrustedUpdated:`rpc:is-trusted:updated`,error:`rpc:error`,connectionStatus:`connection:status`,connectionError:`connection:error`},broadcast:{authRevoked:`devframe:auth:revoked`,cacheInvalidate:`devframe:rpc:cache:invalidate`,clientStateUpdated:`devframe:rpc:client-state:updated`,clientStatePatch:`devframe:rpc:client-state:patch`,streamingChunk:`devframe:streaming:chunk`,streamingEnd:`devframe:streaming:end`,streamingUploadCancel:`devframe:streaming:upload-cancel`},inPageChannel:{panelStateUpdated:`devframe:in-page:panel-state:updated`,panelStatePatch:`devframe:in-page:panel-state:patch`},postMessage:{remoteAssetsError:`devframe:remote-assets-error`,inPageChannel:`devframe:in-page-channel`}},wo=nt(Co);function To(e,{method:t=`warn`}={}){console[t](wo(e))}function Eo(t){return e({...t,reporters:[To,...t.reporters??[]]})}function Do(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Oo=Math.random.bind(Math),ko=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Ao(e=21){let t=``,n=e;for(;n--;)t+=ko[Oo()*64|0];return t}var jo=6e4,Mo=e=>e,No=Mo,{clearTimeout:Po,setTimeout:Fo}=globalThis;function Io(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Mo,deserialize:s=No,resolver:c,bind:l=`rpc`,timeout:u=jo,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=Do(),_=Ao();s.i=_;let v;async function y(n=s){return u>=0&&(v=Fo(()=>{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{Po(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(Po(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function Lo(e,t){return t.safety?t.safety:e===`static`||e===`query`||e==null?`read`:`action`}var Ro=Object.freeze({type:`object`,additionalProperties:!0});function zo(e){let t=e[`~standard`];if(t.jsonSchema)try{return t.jsonSchema.input({target:`draft-2020-12`})}catch{return Ro}return Ro}function Bo(e){if(!e||e.length===0)return{type:`object`,properties:{}};let t={},n=[];for(let r=0;r<e.length;r++){let i=`arg${r}`;t[i]=zo(e[r]),n.push(i)}return{type:`object`,properties:t,required:n,additionalProperties:!1}}function Vo(e,t){if(Array.isArray(e))return e;if(e==null)return[];if(typeof e!=`object`)return;let n=e;if(t!=null)return Array.from({length:t},(e,t)=>n[`arg${t}`]);if(`arg0`in n){let e=[];for(;`arg${e.length}`in n;)e.push(n[`arg${e.length}`]);return e}return Object.keys(n).length===0?[]:void 0}function Ho(e,t){return Vo(e,t)??[e]}function Uo(e){return typeof e==`string`?`'${e}'`:new qo().serialize(e)}var Wo=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,Go=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[Wo.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Ko(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&Go[n]?Go[n]:n+128,s=a<128&&Go[a]?Go[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var qo=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Ko(e,t):n===`number`&&r===`number`?e-t:Ko(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(Ko),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})(),Jo=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Yo=[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],Xo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,Zo=[],Qo=class{_data=new $o;_hash=new $o([...Jo]);_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)Zo[n]=e[t+n]|0;else{let e=Zo[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=Zo[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;Zo[n]=t+Zo[n-7]+i+Zo[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+Yo[n]+Zo[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=$o.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 $o(t,i)}},$o=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(Xo.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 es(e){return new Qo().finalize(e).toBase64()}function ts(e){return es(Uo(e))}function ns(e){return ts(e)}function rs(){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 is=/^[\w+.-]{2,}:\/\//;function as(e){return e.endsWith(`/`)?e:`${e}/`}function os(e){return(e.endsWith(`/`)?e.slice(0,-1):e)||`/`}function ss(e,...t){let n=e;for(let e of t)e&&e!==`/`&&(n=n?as(n)+e.replace(/^\.?\//,``):e);return n}function cs(e,t){if(!t||t===`/`||is.test(e))return e;let n=os(t);return e.startsWith(n)?e:ss(n,e)}function ls(e,t){let n=e.match(is);return t+(n?e.slice(n[0].length):e)}var us=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function ds(e=21){let t=``,n=e;for(;n--;)t+=us[Math.random()*64|0];return t}var fs=Symbol.for(`immer-nothing`),ps=Symbol.for(`immer-draftable`),q=Symbol.for(`immer-state`),ms=[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 J(e,...t){{let n=ms[e],r=Fs(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var Y=Object,hs=Y.getPrototypeOf,gs=`constructor`,_s=`prototype`,vs=`configurable`,ys=`enumerable`,bs=`writable`,xs=`value`,X=e=>!!e&&!!e[q];function Z(e){return e?ws(e)||js(e)||!!e[ps]||!!e[gs]?.[ps]||Ms(e)||Ns(e):!1}var Ss=Y[_s][gs].toString(),Cs=new WeakMap;function ws(e){if(!e||!Ps(e))return!1;let t=hs(e);if(t===null||t===Y[_s])return!0;let n=Y.hasOwnProperty.call(t,gs)&&t[gs];if(n===Object)return!0;if(!Fs(n))return!1;let r=Cs.get(n);return r===void 0&&(r=Function.toString.call(n),Cs.set(n,r)),r===Ss}function Ts(e,t,n=!0){Es(e)===0?(n?Reflect.ownKeys(e):Y.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Es(e){let t=e[q];return t?t.type_:js(e)?1:Ms(e)?2:Ns(e)?3:0}var Ds=(e,t,n=Es(e))=>n===2?e.has(t):Y[_s].hasOwnProperty.call(e,t),Os=(e,t,n=Es(e))=>n===2?e.get(t):e[t],ks=(e,t,n,r=Es(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function As(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var js=Array.isArray,Ms=e=>e instanceof Map,Ns=e=>e instanceof Set,Ps=e=>typeof e==`object`,Fs=e=>typeof e==`function`,Is=e=>typeof e==`boolean`;function Ls(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Rs=e=>Ps(e)?e?.[q]:null,zs=e=>e.copy_||e.base_,Bs=e=>e.modified_?e.copy_:e.base_;function Vs(e,t){if(Ms(e))return new Map(e);if(Ns(e))return new Set(e);if(js(e))return Array[_s].slice.call(e);let n=ws(e);if(t===!0||t===`class_only`&&!n){let t=Y.getOwnPropertyDescriptors(e);delete t[q];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[bs]===!1&&(a[bs]=!0,a[vs]=!0),(a.get||a.set)&&(t[i]={[vs]:!0,[bs]:!0,[ys]:a[ys],[xs]:e[i]})}return Y.create(hs(e),t)}{let t=hs(e);if(t!==null&&n)return{...e};let r=Y.create(t);return Y.assign(r,e)}}function Hs(e,t=!1){return Gs(e)||X(e)||!Z(e)||(Es(e)>1&&Y.defineProperties(e,{set:Ws,add:Ws,clear:Ws,delete:Ws}),Y.freeze(e),t&&Ts(e,(e,t)=>{Hs(t,!0)},!1)),e}function Us(){J(2)}var Ws={[xs]:Us};function Gs(e){return e===null||!Ps(e)||Y.isFrozen(e)}var Ks=`MapSet`,qs=`Patches`,Js=`ArrayMethods`,Ys={};function Xs(e){let t=Ys[e];return t||J(0,e),t}var Zs=e=>!!Ys[e];function Qs(e,t){Ys[e]||(Ys[e]=t)}var $s,ec=()=>$s,tc=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Zs(Ks)?Xs(Ks):void 0,arrayMethodsPlugin_:Zs(Js)?Xs(Js):void 0});function nc(e,t){t&&(e.patchPlugin_=Xs(qs),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function rc(e){ic(e),e.drafts_.forEach(oc),e.drafts_=null}function ic(e){e===$s&&($s=e.parent_)}var ac=e=>$s=tc($s,e);function oc(e){let t=e[q];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function sc(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[q].modified_&&(rc(t),J(4)),Z(e)&&(e=cc(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[q].base_,e,t)}else e=cc(t,n);return lc(t,e,!0),rc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===fs?void 0:e}function cc(e,t){if(Gs(t))return t;let n=t[q];if(!n)return _c(t,e.handledSet_,e);if(!dc(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);hc(n,e)}return n.copy_}function lc(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hs(t,n)}function uc(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var dc=(e,t)=>e.scope_===t,fc=[];function pc(e,t,n,r){let i=zs(e),a=e.type_;if(r!==void 0&&Os(i,r,a)===t){ks(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Ts(i,(e,n)=>{if(X(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??fc;for(let e of o)ks(i,e,n,a)}function mc(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!dc(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Bs(i);pc(e,i.draft_??i,a,n),hc(i,r)})}function hc(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)}uc(e)}}function gc(e,t,n){let{scope_:r}=e;if(X(n)){let i=n[q];dc(i,r)&&i.callbacks_.push(function(){Ec(e),pc(e,n,Bs(i),t)})}else Z(n)&&e.callbacks_.push(function(){let i=zs(e);e.type_===3?i.has(n)&&_c(n,r.handledSet_,r):Os(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&_c(Os(e.copy_,t,e.type_),r.handledSet_,r)})}function _c(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||X(e)||t.has(e)||!Z(e)||Gs(e)||(t.add(e),Ts(e,(r,i)=>{if(X(i)){let t=i[q];dc(t,n)&&(ks(e,r,Bs(t),e.type_),uc(t))}else Z(i)&&_c(i,t,n)})),e}function vc(e,t){let n=js(e),r={type_:+!!n,scope_:t?t.scope_:ec(),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=yc;n&&(i=[r],a=bc);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var yc={get(e,t){if(t===q)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=zs(e);if(!Ds(i,t,e.type_))return Cc(e,i,t);let a=i[t];if(e.finalized_||!Z(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Ls(t))return a;if(a===xc(e.base_,t)||Sc(e,t,a)){Ec(e);let n=e.type_===1?+t:t,r=Oc(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in zs(e)},ownKeys(e){return Reflect.ownKeys(zs(e))},set(e,t,n){let r=wc(zs(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=xc(zs(e),t),i=r?.[q];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.delete(t),!0;if(As(n,r)&&(n!==void 0||Ds(e.base_,t,e.type_)))return!0;Ec(e),Tc(e)}return e.copy_[t]===n&&(n!==void 0||Ds(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),gc(e,t,n)),!0},deleteProperty(e,t){return Ec(e),xc(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Tc(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=zs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[bs]:!0,[vs]:e.type_!==1||t!==`length`,[ys]:r[ys],[xs]:n[t]}},defineProperty(){J(11)},getPrototypeOf(e){return hs(e.base_)},setPrototypeOf(){J(12)}},bc={};for(let e in yc){let t=yc[e];bc[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}bc.deleteProperty=function(e,t){return isNaN(parseInt(t))&&J(13),bc.set.call(this,e,t,void 0)},bc.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&J(14),yc.set.call(this,e[0],t,n,e[0])};function xc(e,t){let n=e[q];return(n?zs(n):e)[t]}function Sc(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Z(n)||n[q]?!1:e.baseRefs_.has(n)}function Cc(e,t,n){let r=wc(t,n);return r?xs in r?r[xs]:r.get?.call(e.draft_):void 0}function wc(e,t){if(!(t in e))return;let n=hs(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=hs(n)}}function Tc(e){e.modified_||(e.modified_=!0,e.parent_&&Tc(e.parent_))}function Ec(e){e.copy_||=(e.assigned_=new Map,Vs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Dc=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Fs(e)&&!Fs(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Fs(t)||J(6),n!==void 0&&!Fs(n)&&J(7);let r;if(Z(e)){let i=ac(this),a=Oc(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?rc(i):ic(i)}return nc(i,n),sc(r,i)}if(!e||!Ps(e)){if(r=t(e),r===void 0&&(r=e),r===fs&&(r=void 0),this.autoFreeze_&&Hs(r,!0),n){let t=[],i=[];Xs(qs).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}J(1,e)},this.produceWithPatches=(e,t)=>{if(Fs(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]},Is(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Is(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Is(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Z(e)||J(8),X(e)&&(e=kc(e));let t=ac(this),n=Oc(t,e,void 0);return n[q].isManual_=!0,ic(t),n}finishDraft(e,t){let n=e&&e[q];(!n||!n.isManual_)&&J(9);let{scope_:r}=n;return nc(r,t),sc(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=Xs(qs).applyPatches_;return X(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Oc(e,t,n,r){let[i,a]=Ms(t)?Xs(Ks).proxyMap_(t,n):Ns(t)?Xs(Ks).proxySet_(t,n):vc(t,n);return(n?.scope_??ec()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?mc(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 kc(e){return X(e)||J(10,e),Ac(e)}function Ac(e){if(!Z(e)||Gs(e))return e;let t=e[q],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Vs(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Vs(e,!0);return Ts(n,(e,t)=>{ks(n,e,Ac(t))},r),t&&(t.finalized_=!1),n}function jc(){ms.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=Rs(Os(e,n.key_)),i=Os(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||Ds(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=Os(n,r),!Ps(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?.[q];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;Ts(e.assigned_,(e,l)=>{let u=Os(o,e,c),f=Os(s,e,c),p=l?Ds(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===fs?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=Es(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===gs)&&J(19),Fs(o)&&n===_s&&J(19),o=Os(o,n),(o===null||!Ps(o))&&J(18,i.join(`/`))}let s=Es(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:J(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:J(17,a)}}),e}function u(e){if(!Z(e))return e;if(js(e))return e.map(u);if(Ms(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(Ns(e))return new Set(Array.from(e).map(u));let t=Object.create(hs(e));for(let n in e)t[n]=u(e[n]);return Ds(e,ps)&&(t[ps]=e[ps]),t}function d(e){return X(e)?u(e):e}Qs(qs,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var Mc=new Dc,Nc=Mc.produce,Pc=Mc.produceWithPatches.bind(Mc),Fc=Mc.applyPatches.bind(Mc),Ic=1e3;function Lc(e,t){if(e.add(t),e.size>Ic){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function Rc(e){let{enablePatches:t=!1}=e;t&&jc();let n=rs(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=ds())=>{i.has(t)||(jc(),r=Fc(r,e),Lc(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=ds())=>{if(!i.has(a)){if(Lc(i,a),t){let[t,i]=Pc(r,e);if(t===r)return;r=t,n.emit(`updated`,r,i,a)}else{let t=Nc(r,e);if(t===r)return;r=t,n.emit(`updated`,r,void 0,a)}}},syncIds:i}}var zc=typeof self==`object`?self:globalThis,Bc=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),Vc=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function Hc(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=Bc.has(e)?zc[e]:void 0;return n(new(r??zc.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&Vc.has(a))return n(new zc[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function Uc(e){return Hc(new Map,e)(0)}var Wc=``,{toString:Gc}={},{keys:Kc}=Object;function qc(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Gc.call(e).slice(8,-1);switch(n){case`Array`:return[1,Wc];case`Object`:return[2,Wc];case`Date`:return[3,Wc];case`RegExp`:return[4,Wc];case`Map`:return[5,Wc];case`Set`:return[6,Wc];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function Jc([e,t]){return e===0&&(t===`function`||t===`symbol`)}function Yc(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]=qc(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 Kc(r))(e||!Jc(qc(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||!(Jc(qc(n))||Jc(qc(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!Jc(qc(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function Xc(e,t={}){let n=[];return Yc(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:Zc,stringify:Qc}=JSON,$c={json:!0,lossy:!0};function el(e){return Uc(Zc(e))}function tl(e){return Qc(Xc(e,$c))}function nl(e){return Uc(e)}function rl(e){return tl(e)}function il(e){return el(e)}var al=256,ol=class extends Error{name=`StreamClosedError`};function sl(e={}){let t=e.id??ds(),n=Math.max(0,e.replayWindow??0),r=rs(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new ol(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&(a.length-n===1?a.shift():a.splice(0,a.length-n))),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=ll(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 cl(e={}){let t=e.id??ds(),n=Math.max(1,e.highWaterMark??al),r=[],i=0,a=!1,o=!1,s,c,l,u;function d(){if(c){if(r.length>0){let e=r.shift(),t=c;c=void 0,t.resolve({value:e,done:!1})}else if(a){let e=c;if(c=void 0,s){let t=Error(s.message);t.name=s.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function f(){if(l){for(;r.length>0;){let e=r.shift();try{l.enqueue(e)}catch{break}}if(a&&l){try{if(s){let e=Error(s.message);e.name=s.name,l.error(e)}else l.close()}catch{}l=void 0}}}function p(t,s){if(!(a||o)&&!(t<=i)){if(i=t,r.push(s),r.length>n){let t=r.length-n;r.splice(0,t),e.onOverflow?.(t)}d(),u&&f()}}function m(e){a||(a=!0,s=e,d(),u&&f())}function h(){o||a||(o=!0,e.onCancel?.(),m(void 0))}function g(){return u||(u=new ReadableStream({start(e){l=e,f()},cancel(){h()}}),u)}return{id:t,get cancelled(){return o},get done(){return a},get lastSeenSeq(){return i},get readable(){return g()},cancel:h,_push:p,_end:m,[Symbol.asyncIterator](){return{next(){if(r.length>0)return Promise.resolve({value:r.shift(),done:!1});if(a){if(s){let e=Error(s.message);return e.name=s.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{c={resolve:e,reject:t}})},return(){return h(),Promise.resolve({value:void 0,done:!0})}}}}}function ll(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}var ul=128;function dl(e){return e.replace(/[^\w-]+/g,`_`).slice(0,ul)}var fl=`__connection.json`,pl=`__DEVFRAME_CONNECTION__`,ml=`x-birpc-session`,hl=`__rpc-dump/index.json`,gl=`devframe:services`,_l=`devframe_otp`,vl=`devframe_auth_token`;K.postMessage.remoteAssetsError;var yl=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>ns(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()}},bl=Eo({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,fix:"Remove `jsonSerializable: false`, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});function xl(e){if(e.agent&&e.jsonSerializable===!1)throw bl.DF0019({name:e.name});e.agent&&!e.jsonSerializable&&(e.jsonSerializable=!0)}async function Sl(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function Cl(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function wl(e,t,n){let r=n.slice();if(!t||t.length===0)return r;for(let r=0;r<t.length;r++){let i=t[r];if(!i)continue;let a=await Sl(i,n[r]);if(a.issues)throw bl.DF0043({name:e,index:r,issues:Cl(a.issues)})}return r}async function Tl(e,t,n){if(!t)return n;let r=await Sl(t,n);if(r.issues)throw bl.DF0044({name:e,issues:Cl(r.issues)});return n}async function El(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 Dl(e,t){let n=e.handler;if(!n){let r=await El(e,t);if(!r.handler)throw bl.DF0024({name:e.name});n=r.handler}let r=e.args,i=e.returns;if(!r&&!i)return n;let a=n;return async(...t)=>{let n=await wl(e.name,r,t),o=await a(...n);return await Tl(e.name,i,o)}}var Ol=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 Dl(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 bl.DF0021({name:e.name});xl(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 bl.DF0022({name:e.name});xl(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 Dl(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw bl.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 kl(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 jl(t,`undefined`,r,e);return n}return i!==null&&Al(i,r,e,t),n})}function Al(e,t,n,r){if(typeof e==`bigint`)throw jl(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw jl(r,`Map`,t,n);if(e instanceof Set)throw jl(r,`Set`,t,n);if(e instanceof Date)throw jl(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw jl(r,e.constructor?.name??`class instance`,t,n)}function jl(e,t,n,r){let i=Ml(n,r);return bl.DF0020({name:e||`<anonymous>`,type:t,path:i})}function Ml(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}var Nl=`__DEVFRAME_CONNECTION_META__`,Pl=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function Fl(e){let t=[()=>window?.[e],()=>globalThis?.[e],()=>parent.window?.[e]];for(let e of t)try{let t=e();if(t)return t}catch{}}function Il(){return Fl(pl)}function Ll(){return Fl(Nl)}function Rl(e){if(e)return e;try{let e=localStorage.getItem(Pl);if(e)return e}catch{}return Fl(Pl)}function zl(e){globalThis[pl]=e,globalThis[Nl]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&Bl(e.authToken)}function Bl(e){try{localStorage.setItem(Pl,e)}catch{}globalThis[Pl]=e;let t=Il();t&&(globalThis[pl]={...t,authToken:e})}function Vl(e){let t=cs(fl,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function Hl(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function Ul(){let e=Il();if(e)return Hl(e,Rl()??e.authToken??e.connectionMeta.authToken);let t=Ll();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??Vl(`./`),authToken:Rl(t.authToken)}}async function Wl(e={}){if(e.connection){let t=Hl(e.connection,Rl(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return zl(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:Vl(t[0]??`./`),authToken:Rl(e.authToken??e.connectionMeta.authToken)};return zl(n),n}let n=Ul();if(n){let t=Hl(n,Rl(e.authToken??n.authToken??n.connectionMeta.authToken));return zl(t),t}let r=[];for(let n of t){let t=cs(fl,n),i=Vl(n);try{let n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch connection meta from ${i}: ${n.status}`);let r=await n.json(),a=n.url||i,o={connectionMeta:r,metaBaseUrl:r.baseUrl?new URL(r.baseUrl,a).href:a,authToken:Rl(e.authToken??r.authToken)};return zl(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var Gl=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function Kl(e=_l){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function ql(e){try{let t=new URL(globalThis.location.href),n=new URLSearchParams(t.hash.replace(/^#/,``));if(!n.has(e))return;n.delete(e),t.hash=n.toString(),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function Jl(e=_l){let t=Kl(e);return t&&ql(e),t}async function Yl(e,t={}){let n=Jl(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function Xl(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(gl,{initialValue:{}}).then(e=>(t=e.value(),e.on(`updated`,e=>{t=e}),e)),r);return i(),{state:i,has:e=>e in t,keys:()=>Object.keys(t),get:r=>{let i=t[r];if(!i)return;let a=n.get(i);return a||(a={...i,rpc:e.scope(i.scope).rpc},n.set(i,a)),a}}}function Zl(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:K.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.mutate(()=>o(e,n),r)}}),e.client.register({name:K.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=Rc({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise((t,n)=>{if(e.isTrusted)d().then(t,n);else{t(u);let n=!1;e.events.on(K.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var Ql=new Map;function $l(e=Ql){let t=new Map;return{serialize:n=>{let r;return n.t===`q`?r=n.m:(r=t.get(n.i),t.delete(n.i)),!(n.t===`s`&&`e`in n)&&r&&e.get(r)?.jsonSerializable===!0?kl(n,r??``):`s:${rl(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?il(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function eu(){}function tu(e){let t=e.search(/\n\n|\r\n\r\n/);if(!(t<0))return{frame:e.slice(0,t),rest:e.slice(t+(e[t]===`\r`?4:2))}}function nu(e){let t=`message`,n=[];for(let r of e.split(/\r?\n/))r.startsWith(`:`)||(r.startsWith(`event:`)?t=r.slice(6).trimStart():r.startsWith(`data:`)&&n.push(r.slice(5).replace(/^ /,``)));return{event:t,data:n}}function ru(e){let{onConnected:t=eu,onError:n=eu,onDisconnected:r=eu,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${vl}=${encodeURIComponent(e.authToken)}`);let s=$l(i),c=new AbortController,l=!1,u,d,f,p,m=new Promise((e,t)=>{f=e,p=t});m.catch(()=>{});function h(e){l||(l=!0,p(e),n(e),r())}function g(){l||(l=!0,p(Error(`Devframe SSE stream closed`)),r())}function _(e,n){e===`session`?(f(n),t()):u?.(n)}async function v(e){let t=e.getReader();d=t;let n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;for(r+=n.decode(i,{stream:!0});;){let e=tu(r);if(!e)break;r=e.rest;let{event:t,data:n}=nu(e.frame);n.length>0&&_(t,n.join(`
4
- `))}}g()}return(async()=>{try{let e=await a(o,{headers:{accept:`text/event-stream`},signal:c.signal});if(!e.ok||!e.body)throw Error(`Devframe SSE stream request failed: ${e.status}`);await v(e.body)}catch(e){if(c.signal.aborted){g();return}h(e instanceof Error?e:Error(String(e)))}})(),{close:()=>{l=!0,c.abort(),d?.cancel().catch(()=>{})},on:e=>{u=e},post:async e=>{let t;try{t=await m}catch{return}if(l)n(Error(`Devframe SSE channel is closed; message dropped`));else try{let n=await a(o,{method:`POST`,headers:{"content-type":`text/plain; charset=utf-8`,[ml]:t},body:e});if(n.status===200){let e=await n.text();e&&u?.(e);return}if(!n.ok)throw Error(`Devframe SSE POST failed: ${n.status}`)}catch(e){n(e instanceof Error?e:Error(String(e)))}},serialize:s.serialize,deserialize:s.deserialize}}function iu(e,t){let{channel:n,rpcOptions:r={}}=t;return Io(e,{...n,timeout:-1,...r,proxify:!1})}function au(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=Promise.withResolvers();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(K.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new Gl(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new Gl(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(K.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new Gl(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(K.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let v=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(K.client.connectionError,e),m(new Gl(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new Gl(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=iu(a.functions,{channel:v,rpcOptions:o});a.register({name:K.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new Gl(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(K.client.connectionError,e),m(e),i.emit(K.client.isTrustedUpdated,!1)}});let b=n;async function x(e){b=e;let t=await y.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new Gl(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(K.client.connectionError,e)}return i.emit(K.client.isTrustedUpdated,c),t.isTrusted}async function S(e){let t=(await y.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(b=t,c=!0,d.resolve(!0),f(`connected`),i.emit(K.client.isTrustedUpdated,!0)),t}async function C(e={}){await y.$call(`anonymous:devframe:auth:request-code`,{ua:navigator.userAgent,origin:location.origin,...e.reissue?{reissue:!0}:{}})}async function w(){return c?!0:x(b??``)}async function T(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t;try{return await Promise.race([d.promise,new Promise((n,r)=>{t=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e)})]),c}finally{clearTimeout(t)}}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:w,requestTrustWithToken:x,requestTrustWithCode:S,requestAuthCode:C,ensureTrusted:T,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(K.client.error,n,t),Promise.reject(n)):g(y.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t)i.emit(K.client.error,t,String(e[0]));else return y.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(K.client.error,n,t),Promise.reject(n)):g(y.$callOptional(...e),t)},close:()=>{v.close()}}}function ou(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})();if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`;return new URL(e.path??`/`,`${r.protocol}//${t}`).href}return new URL(e.path??``,r).href}let i=e??``;return/^https?:\/\//i.test(i)?i:new URL(i,r).href}function su(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=ou(n.sse,r??`./`,location);return au({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>ru({url:l,authToken:t,definitions:e.definitions,...s,onConnected(){s.onConnected?.()},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(){e.onDisconnected(),s.onDisconnected?.()}})})}function cu(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:lu(r)?cu(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function lu(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function uu(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function du(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function fu(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function pu(e){if(e.error)throw cu(e.error);return e.output}function mu(e){return e.some(e=>e!=null)}function hu(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function gu(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?nl(e):e}function a(e,t){return i(hu(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 fu(r)?pu(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(uu(r)){if(mu(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(du(r)){let e=ns(n),i=r.records[e];if(i)return pu(await s(i,r.serialization));if(r.fallback)return pu(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!mu(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 _u(e){let t=gu(await e.fetchJsonFromBases(hl),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,requestAuthCode:async()=>{},ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var vu=``;function yu(e,t){return`${e}${vu}${t}`}function bu(e){let t=new Map,n=new Map;e.client.register({name:K.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(yu(e,n))?._push(r,i)}}),e.client.register({name:K.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=yu(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:K.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=yu(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(K.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(vu);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=yu(n,r),o=t.get(a);if(o)return o;let s=cl({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(K.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=yu(t,r),a=n.get(i);if(a)return a;let o=sl({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 xu(){}var Su=new Map;function Cu(e){let t=e.url;e.authToken&&(t=`${t}?${vl}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=xu,onError:i=xu,onDisconnected:a=xu,definitions:o=Su}=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=$l(o);return{close:()=>{n.close()},on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN)n.send(e);else if(n.readyState===WebSocket.CONNECTING){let t=()=>{i(),n.readyState===WebSocket.OPEN&&n.send(e)},r=()=>i();function i(){n.removeEventListener(`open`,t),n.removeEventListener(`close`,r)}n.addEventListener(`open`,t),n.addEventListener(`close`,r)}else i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:s.serialize,deserialize:s.deserialize}}function wu(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})(),i=r.protocol===`https:`?`wss:`:`ws:`;if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`,n=new URL(e.path??`/`,`${i}//${t}`);return n.protocol=i,n.href}let t=new URL(e.path??``,r);return t.protocol=i,t.href}if(typeof e==`number`)return`${i}//${r.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return ls(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function Tu(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=wu(n.websocket,r??`./`,location);return au({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Cu({url:l,authToken:t,definitions:e.definitions,...s,onConnected(e){s.onConnected?.(e)},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(t){e.onDisconnected(),s.onDisconnected?.(t)}})})}function Eu(e){return e.includes(`:`)}function Du(e,t){return Eu(t)?t:`${e}:${t}`}function Ou(e){return{async get(t){return(await e()).value()?.[t]},async set(t,n){(await e()).mutate(e=>{if(e===void 0)return{[t]:n};e[t]=n})},async delete(t){(await e()).mutate(e=>{e!==void 0&&delete e[t]})},async all(){return(await e()).value()??{}},async onChange(t){return(await e()).on(`updated`,e=>t(e??{}))}}}function ku(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=(async()=>(await e.ensureTrusted(),e.sharedState.get(r)))().catch(e=>{throw i=void 0,e}),i}return Ou(a)}function Au(e,t){return{global:ku(e,t,`global`),project:ku(e,t,`project`)}}function ju(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(Eu(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(Du(t,n),...r)),callEvent:((n,...r)=>e.callEvent(Du(t,n),...r)),callOptional:((n,...r)=>e.callOptional(Du(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(Du(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(Du(t,n),r,i),upload:(n,r)=>e.streaming.upload(Du(t,n),r)}},settings:Au(e,t),scope:e.scope}}function Mu(){if(typeof document<`u`){let e=document.modelContext;if(e)return e}if(typeof navigator<`u`){let e=navigator.modelContext;if(e)return e}}function Nu(e,t={}){let n=t.modelContext??Mu();if(!n)return()=>{};let r=n,i=new Map,a=new Map;function o(t,n){let o=dl(t.name),s=a.get(o);if(s&&s!==t.name){console.warn(`[devframe] WebMCP tool name "${o}" (from "${t.name}") collides with "${s}"; keeping the first registration.`);return}let c=new AbortController,l=Lo(t.type,n),u=r.registerTool({name:o,description:n.description,inputSchema:Bo(t.args),annotations:{title:n.title??t.name,readOnlyHint:l===`read`,destructiveHint:l===`destructive`},execute:n=>Pu(t,e.context,n)},{signal:c.signal});u&&`then`in u&&u.then(()=>{},()=>{}),a.set(o,t.name),i.set(t.name,()=>{c.abort(),u&&`unregister`in u&&typeof u.unregister==`function`&&u.unregister(),a.delete(o)})}function s(t){let n=t?[t]:[...e.definitions.keys()];for(let t of n){i.get(t)?.(),i.delete(t);let n=e.definitions.get(t),r=n?.agent;n&&r&&o(n,r)}}s();let c=e.onChanged(e=>s(e));return()=>{c();for(let e of i.values())e();i.clear()}}async function Pu(e,t,n){try{let r=Ho(n,e.args?.length);return{content:[{type:`text`,text:Fu(await(await Dl(e,t))(...r))}]}}catch(e){return{isError:!0,content:[{type:`text`,text:Iu(e)}]}}}function Fu(e){return e===void 0?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2)}function Iu(e){if(!(e instanceof Error))return String(e);let t=e.cause instanceof Error?` (cause: ${e.cause.message})`:``;return`${e.name}: ${e.message}${t}`}function Lu(e,t){if(t.backend===`static`)return`static`;let n=t.websocket!==void 0,r=t.sse!==void 0;if(e===`websocket`){if(!n)throw Error(`[devframe] transport: 'websocket' was requested, but this server does not advertise a WebSocket endpoint`);return`websocket`}if(e===`sse`){if(!r)throw Error(`[devframe] transport: 'sse' was requested, but this server does not advertise an SSE endpoint`);return`sse`}if(t.backend===`sse`&&r)return`sse`;if(n)return`websocket`;if(r)return`sse`;throw Error(`[devframe] This server advertises no RPC transport (backend "none"), so there is nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function Ru(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=rs(),a=Array.isArray(t)?t:[t],o=await Wl(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new yl({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new Ol(f),m=e.webmcp===!1?void 0:Nu(p),h,g=!1,_=0,v;function y(){_++,v=void 0,d.clear(),r===!0&&d.updateOptions({functions:[]})}r&&(p.register({name:K.broadcast.cacheInvalidate,type:`event`,handler:y}),i.on(K.client.connectionStatus,y),i.on(K.client.isTrustedUpdated,y));async function b(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(cs(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let x=e.callTimeout??0,S=x>0?x:1/0,C,w={authToken:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){let a=performance.now()+S;if(await n.onRequest?.call(this,e,t,i),r===!0&&e.i&&C.isTrusted&&!e.m.startsWith(`anonymous:`)&&e.m!==`devframe:rpc:cacheable-functions`){function t(){if(performance.now()>=a)throw new Gl(`timeout`,`[devframe] RPC call "${e.m}" timed out after ${x}ms`)}for(;!v&&(t(),!(g||C.status!==`connected`));){let e=_;v=C.callOptional(`devframe:rpc:cacheable-functions`).then(t=>{e===_&&d.updateOptions({functions:t??[]})}).catch(t=>{throw e===_&&(v=void 0),t}),await v}await v,t()}let o=_;if(r&&e.i&&!g&&C.isTrusted&&d.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);o===_&&!g&&d.apply(e,n)}else await t(e)}}},T=Lu(e.transport??`auto`,s);C=T===`static`?await _u({fetchJsonFromBases:b}):T===`sse`?su({...w,sseOptions:e.sseOptions}):Tu({...w,wsOptions:e.wsOptions});let E;try{E=new BroadcastChannel(`devframe-auth`)}catch{}let ee,D=!1;function te(e){return((...t)=>D||!ee?e(...t):ee.then(()=>e(...t)))}function O(){g=!0,y();try{h?.(),m?.()}finally{try{E?.close()}finally{C.close?.()}}}let k={events:i,get isTrusted(){return C.isTrusted},get status(){return C.status},get connectionError(){return C.connectionError},get transport(){return C.transport??T},get connection(){return o},connectionMeta:s,ensureTrusted:C.ensureTrusted,requestTrust:C.requestTrust,requestTrustWithToken:async e=>(Bl(e),o={...o,authToken:e},C.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await C.requestTrustWithCode(e);if(!t)return!1;Bl(t),o={...o,authToken:t};try{E?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},requestAuthCode:e=>C.requestAuthCode(e),call:te(C.call),callEvent:te(C.callEvent),callOptional:te(C.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:O};k.sharedState=Zl(k),k.streaming=bu(k),k.services=Xl(k);let ne=new Map;k.scope=(e=>{if(!e)return k;let t=ne.get(e);return t||(t=ju(k,e),ne.set(e,t)),t}),f.rpc=k;function re(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function A(){if(e.simpleAuth!==!1&&re()&&typeof globalThis.prompt==`function`)for(await k.requestAuthCode().catch(()=>{});!k.isTrusted;){let e=globalThis.prompt(`devframe: enter the authentication code shown in your terminal`);if(e==null)return;let t=e.trim();if(t&&await k.requestTrustWithCode(t))return}}async function j(){let t=await C.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await Yl(k,{param:n}):!1;t||r||k.isTrusted||await A()}return ee=j().then(()=>{D=!0},()=>{D=!0}),s.mcp&&W(async()=>{let{setupBrowserAgentRpcBridge:e}=await import(`./B2lY2QM5.js`);return{setupBrowserAgentRpcBridge:e}},[],import.meta.url).then(({setupBrowserAgentRpcBridge:e})=>{g||(h=e(k))}).catch(()=>{}),E&&(E.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&k.requestTrustWithToken(e.data.authToken)}),k}var zu=Ru;function Bu(e){return{project:()=>e.call(`x18n:project`),keys:t=>e.call(`x18n:keys`,{project:t}),key:(t,n)=>e.call(`x18n:key`,{project:t,key:n}),usages:t=>e.call(`x18n:usages`,{project:t}),analysis:t=>e.call(`x18n:analysis`,{project:t}),explain:()=>e.call(`x18n:explain`),extractCandidates:t=>e.call(`x18n:extract-candidates`,{project:t})}}function Vu(){throw Error(`This report is read-only.`)}function Hu(e){return{mode:`static`,capabilities:{write:!1,prompts:!1,openInEditor:!1},...Bu(e),translatePrompt:Vu,plan:Vu,apply:Vu,extractApply:Vu,openInEditor:Vu,onChange:()=>()=>{}}}async function Uu(e){let{openInEditor:t}=await e.call(`x18n:project`),n=await e.sharedState.get(`x18n:state`);return{mode:`server`,capabilities:{write:!0,prompts:!0,openInEditor:t},...Bu(e),translatePrompt:t=>e.call(`x18n:translate-prompt`,t),plan:t=>e.call(`x18n:plan`,t),apply:t=>e.call(`x18n:apply`,t),extractApply:t=>e.call(`x18n:extract-apply`,t),openInEditor:t=>e.call(`x18n:open-in-editor`,t),onChange:e=>n.on(`updated`,t=>e(t))}}var Wu=A();async function Gu(e){let t=sessionStorage.getItem(`x18n:otp`);sessionStorage.removeItem(`x18n:otp`),!(t&&await e.requestTrustWithCode(t))&&(e.isTrusted||await e.requestTrust()||await new Promise(t=>{Wu.value=async n=>{let r=await e.requestTrustWithCode(n);return r&&(Wu.value=void 0,t()),r}}))}var Ku;function qu(){return Ku??=zu({otpParam:!1,simpleAuth:!1}).then(async e=>e.transport===`static`?Hu(e):(await Gu(e),Uu(e))),Ku}var Ju={app:{name:`x18n`,loading:`Loading the project…`,error:`Could not connect: {message}`,project:`Project`,static:`Read-only report`,staticHint:"A snapshot built with `x18n build`. Run `x18n ui` to edit."},auth:{title:`Connect to x18n`,hint:"Enter the 6-digit code that `x18n ui` printed in the terminal.",code:`Auth code`,submit:`Connect`,rejected:`That code did not work. Check the terminal for the current one.`},nav:{overview:`Overview`,keys:`Keys`,usages:`Usages`,extract:`Extract`,project:`Project`},overview:{keys:`Keys`,resources:`Resources`,usages:`Usages`,locales:`Locales`,coverage:`Coverage`,source:`source`,missing:`{missing} missing, {empty} empty`,diagnostics:`Diagnostics`,errors:`{count} errors`,warnings:`{count} warnings`,clean:`No problems found.`,presets:`Presets`,noPresets:`No preset detected.`,recent:`Recent changes`,noRecent:`Nothing changed since the page opened.`},keys:{search:`Search keys and values`,namespace:`Namespace`,allNamespaces:`All namespaces`,missingIn:`Missing in`,anyLocale:`Any locale`,missingInLocale:`Missing in {locale}`,unused:`Unused`,withDiagnostics:`With problems`,count:`{shown} of {total} keys`,grid:`Keys and values per locale`,key:`Key`,unusedHint:`No code uses this key`,diagnosticsHint:`Problems on this key`,editValue:`Value of {key} in {locale}`,empty:`No keys match.`,helpMove:`Arrows or j/k to move`,helpEdit:`Enter to edit, Esc to cancel`,helpOpen:`o to open the key`,helpSearch:`/ to search`},value:{missing:`missing`,empty:`empty`},edit:{rejected:`Not saved: {key} in {locale}: {message}.`,placeholdersMissing:`missing placeholders {names}`,placeholdersExtra:`unexpected placeholders {names}`,saveAnyway:`Save anyway`,dismiss:`Dismiss`},detail:{back:`Back to keys`,notFound:`This key is not defined.`,values:`Values`,edit:`Edit`,diagnostics:`Problems`,usages:`Usages ({count})`,noUsages:`No code uses this key.`,possible:`possible`,openInEditor:`Open in editor`},prompt:{copy:`Copy translate prompt`,copied:`Copied`,hint:`Copy a prompt for an LLM or agent that translates the missing messages`},locale:{openInGrid:`Show in the grid`,progress:`{translated} of {total} translated ({percent}%)`,missing:`Missing ({count})`,empty:`Empty ({count})`,problems:`Placeholder and syntax problems ({count})`},usages:{missing:`Not defined ({count})`,unused:`Unused ({count})`,dynamic:`Dynamic ({count})`,all:`All ({count})`,missingHint:`Keys used in code but not defined in the source locale.`,unusedHint:`Keys defined in the source locale that no code uses.`,dynamicHint:`Usages with a computed key. Keys under their prefix count as used.`,filter:`Filter by file or key`},extract:{hint:`Hard-coded strings with a proposed key. Edit keys, untick strings to skip, then apply.`,none:`No hard-coded strings found.`,key:`Key`,apply:`Extract {count} strings`,done:`Extracted {count} keys, changed {files} files.`},project:{presets:`Presets`,finders:`Locale finders`,resources:`{count} resources`,formats:`Formats`,scanners:`Scanners`,files:`{count} files`,problems:`Problems`,conflict:`.{extension}: {winner} wins over {loser}`,config:`Config and where each value comes from`}},Yu=new Map;function Xu(e,t){for(let[n,r]of Object.entries(e))typeof r==`string`?Yu.set(`${t}${n}`,r):Xu(r,`${t}${n}.`)}Xu(Ju,``);function Q(e,t={}){return(Yu.get(e)??e).replace(/\{(\w+)\}/g,(e,n)=>String(t[n]??e))}var Zu=A(),Qu=A(),$=de(),$u=de(0),ed=A([]),td=R(()=>Qu.value?.projects.find(e=>e.name===$.value));function nd(e){let t=A(),n=0;return te(()=>{let r=Zu.value,i=$.value;if($u.value,!r||!i)return;let a=++n;e(r,i).then(e=>{a===n&&(t.value=e)})}),t}function rd(e){return e===`dark`||e===`light`||e===`high-contrast`}function id(e){let t=document.documentElement;t.classList.toggle(`dark`,e!==`light`),t.classList.toggle(`high-contrast`,e===`high-contrast`)}function ad(){let e=new URLSearchParams(location.search).get(`theme`);id(rd(e)?e:matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),window.addEventListener(`message`,e=>{e.source===window.parent&&e.source!==window&&e.data?.type===`x18n:theme`&&rd(e.data.theme)&&id(e.data.theme)})}var od=(e=`RouteProvider`)=>j({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean,routeRecord:Object},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return T(We,S(r)),()=>e.vnode?M(e.vnode,{ref:e.vnodeRef}):e.vnode}}),sd=od(),cd=new WeakMap,ld=j({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:n,slots:r,expose:i}){let a=t(),o=de(),s=O(We,null),c=new Set,l;i({pageRef:o});let u=O(qe,null),d,f=a.deferHydration(),p=!1,m=!1,h,g=0;if(a.isHydrating){let e=a.hooks.hookOnce(`app:error`,f),t=z().beforeEach(()=>{e(),t()})}e.pageKey&&w(()=>e.pageKey,(e,t)=>{e!==t&&a.callHook(`page:loading:start`)});let _=!1;{let e=z().beforeResolve(()=>{_=!1});b(()=>{e(),f()})}return()=>M(ua,{name:e.name,route:e.route,...n},{default:fd(t=>{let n=ud(s,t.route,t.Component),i=s&&s.matched.length===t.route.matched.length;if(!t.Component)return d&&!i&&!md(d)?d:(f(),e.transition??t.route.meta.pageTransition??!1?fa(ya([e.transition,t.route.meta.pageTransition,!1]),null).default():void 0);if(d&&u&&!md(d)&&!u.isCurrent(t.route))return d;if(n&&s&&(!u||u?.isCurrent(s)))return(i||d)&&!md(d)?d:null;let v=ur(t,e.pageKey),y=dd(s,t.route,t.Component);!a.isHydrating&&l===v&&!y&&k(()=>{_||(_=!0,a.callHook(`page:loading:end`))}),p&&l!==v&&m&&g++,l=v;let b=!!(e.transition??t.route.meta.pageTransition??!1),x=b&&ya([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){xa(a),a.callHook(`page:transition:finish`,t.Component)}}]),S=e.keepalive??t.route.meta.keepalive??!1,C=t.Component.type,w=C.name||C.__name;t.route.meta.keepalive&&w&&c.add(w);let T;if(c.size>0&&e.keepalive==null&&(!S||typeof S==`object`&&S&&S.include)){let e=typeof S==`object`&&S?{...S}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];T={...e,include:Array.from(new Set([...t,...c]))}}else T=S;return d=fa(b&&x,dr(T,M(ae,{key:g,suspensible:!0,onPending:()=>{p=!0,b&&ba(a),h=a.callHook(`page:start`,t.Component)},onResolve:async()=>{p=!1,m=!0,a.isHydrating&&a[`~restoreDeferredRoute`]?.();try{await k(),a._route.sync?.(),await h,await a.callHook(`page:finish`,t.Component),!_&&!y&&(_=!0,await a.callHook(`page:loading:end`))}finally{f()}}},{default:()=>{let e={key:v||void 0,vnode:r.default?pd(r.default,t):t.Component,route:t.route,renderKey:v||void 0,trackRootNodes:b,vnodeRef:o,routeRecord:void 0};if(!T)return M(sd,e);let n=C,i=cd.get(n);return i||(i=od(w),cd.set(n,i)),M(i,e)}}))).default(),d})})}});function ud(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&&ur({route:t,Component:n})!==ur({route:e,Component:n})}function dd(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function fd(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!y(n)?[pe()]:[n]});return t._n=!0,t}function pd(e,t){let n=e(t);return n.length===1?M(n[0]):M(fe,void 0,n)}function md(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var hd={class:`h-full flex flex-col bg-base color-base font-sans text-compact`},gd={class:`h-10 shrink-0 flex items-center gap-1 px-2 border-b border-base`},_d={class:`font-semibold px2 flex items-center gap-1`},vd={class:`flex items-center gap-1`},yd=[`title`],bd=[`aria-label`],xd=[`value`],Sd={class:`flex-auto min-h-0 of-auto`},Cd={class:`text-lg font-semibold`},wd={class:`op-fade`},Td=[`aria-label`],Ed={key:0,class:`color-red`},Dd={class:`btn-primary self-start`,type:`submit`},Od={key:1,class:`p-4 color-red`},kd={key:2,class:`p-4 op-fade`},Ad=j({__name:`app`,setup(e){let t=[{to:`/`,label:Q(`nav.overview`),icon:`i-ph-gauge-duotone`},{to:`/keys`,label:Q(`nav.keys`),icon:`i-ph-rows-duotone`},{to:`/usages`,label:Q(`nav.usages`),icon:`i-ph-code-duotone`},{to:`/extract`,label:Q(`nav.extract`),icon:`i-ph-magic-wand-duotone`},{to:`/project`,label:Q(`nav.project`),icon:`i-ph-info-duotone`}],n=de(),r=de(``),i=de(!1);async function a(){i.value=!await Wu.value?.(r.value.trim())}async function o(){let e=await Zu.value.project();Qu.value=e,e.projects.some(e=>e.name===$.value)||($.value=e.projects[0]?.name)}return ad(),_(async()=>{try{let e=await qu();Zu.value=e,await o(),e.onChange(e=>{ed.value=e.changedKeys,$u.value++,o()})}catch(e){n.value=e instanceof Error?e.message:String(e)}}),(e,o)=>(I(),F(`div`,hd,[P(`header`,gd,[P(`span`,_d,[o[2]||=P(`span`,{class:`i-ph-translate-duotone color-active`},null,-1),ue(` `+N(D(Q)(`app.name`)),1)]),P(`nav`,vd,[(I(),F(fe,null,E(t,e=>se(D(so),{key:e.to,to:e.to,class:`btn-text text-sm`,"active-class":e.to===`/`?``:`btn-action-active`,"exact-active-class":`btn-action-active`},{default:ve(()=>[P(`span`,{class:ie(e.icon)},null,2),ue(` `+N(e.label),1)]),_:2},1032,[`to`,`active-class`])),64))]),o[3]||=P(`div`,{class:`flex-auto`},null,-1),D(Zu)?.mode===`static`?(I(),F(`span`,{key:0,class:`badge-muted`,title:D(Q)(`app.staticHint`)},N(D(Q)(`app.static`)),9,yd)):pe(``,!0),(D(Qu)?.projects.length??0)>1?v((I(),F(`select`,{key:1,"onUpdate:modelValue":o[0]||=e=>re($)?$.value=e:null,class:`input-base text-sm font-mono`,"aria-label":D(Q)(`app.project`)},[(I(!0),F(fe,null,E(D(Qu)?.projects,e=>(I(),F(`option`,{key:e.name,value:e.name},N(e.name),9,xd))),128))],8,bd)),[[ye,D($)]]):pe(``,!0)]),P(`main`,Sd,[D(Wu)?(I(),F(`form`,{key:0,class:`max-w-sm mx-auto mt-20 flex flex-col gap-3`,onSubmit:be(a,[`prevent`])},[P(`h1`,Cd,N(D(Q)(`auth.title`)),1),P(`p`,wd,N(D(Q)(`auth.hint`)),1),v(P(`input`,{"onUpdate:modelValue":o[1]||=e=>r.value=e,class:`input-base font-mono text-lg tracking-widest`,inputmode:`numeric`,autocomplete:`one-time-code`,"aria-label":D(Q)(`auth.code`),autofocus:``},null,8,Td),[[Se,r.value]]),i.value?(I(),F(`p`,Ed,N(D(Q)(`auth.rejected`)),1)):pe(``,!0),P(`button`,Dd,N(D(Q)(`auth.submit`)),1)],32)):n.value?(I(),F(`p`,Od,N(D(Q)(`app.error`,{message:n.value})),1)):D($)?(I(),L(D(ld),{key:3})):(I(),F(`p`,kd,N(D(Q)(`app.loading`)),1))])]))}}),jd={__name:`nuxt-error-page`,props:{error:Object},setup(e){let t=e.error,n=Number(t.statusCode||500),r=n===404,i=t.statusMessage??(r?`Page Not Found`:`Internal Server Error`),a=t.message||t.toString(),o=oe(()=>W(()=>import(`./D6gh7el6.js`),__vite__mapDeps([14,1,15,4,16]),import.meta.url)),s=oe(()=>W(()=>import(`./CKRUbA4H.js`),__vite__mapDeps([17,1,15,4,18]),import.meta.url)),c=r?o:s;return(e,t)=>(I(),L(D(c),he(_e({status:D(n),statusText:D(i),statusCode:D(n),statusMessage:D(i),description:D(a),stack:D(void 0)})),null,16))}},Md=()=>null,Nd={key:0},Pd={__name:`nuxt-root`,setup(e){let n=t(),r=n.deferHydration();if(n.isHydrating){let e=n.hooks.hookOnce(`app:error`,r),t=z().beforeEach(()=>{e(),t()})}window.location.pathname,T(We,Ze()),n.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let i=Pe();function a(e,t,r){let i=n.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,t,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return le((e,t,r)=>{if(n.hooks.callHook(`vue:error`,e,t,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),Re(navigator.userAgent))return Xe(n,e),!1;if(Fe(e)&&(e.fatal||e.unhandled))return n.runWithContext(()=>Be(e)),So(),a(e,t,r),!1}),(e,t)=>(I(),L(ae,{onResolve:D(r)},{default:ve(()=>[D(!1)?(I(),F(`div`,Nd)):D(i)?(I(),L(D(jd),{key:1,error:D(i)},null,8,[`error`])):D(!1)?(I(),L(D(Md),{key:2,context:D(!1)},null,8,[`context`])):D(!1)?(I(),L(x(D(!1)),{key:3})):(I(),L(D(Ad),{key:4}))]),_:1},8,[`onResolve`]))}},Fd;{let e;Fd=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?Ce(Pd):xe(Pd),i=l({vueApp:n});async function a(e){await i.callHook(`app:error`,e),i.payload.error||=tt(e)}a.__nuxt_default=!0,n.config.errorHandler=a,i.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===a&&(n.config.errorHandler=void 0)}),!t&&s.id&&i.hook(`app:suspense:resolve`,()=>{document.getElementById(s.id)?.remove()});try{await m(i,xo)}catch(e){a(e)}try{await i.hooks.callHook(`app:created`,n),await i.hooks.callHook(`app:beforeMount`,n),n.mount(r),await i.hooks.callHook(`app:mounted`,n),await k()}catch(e){a(e)}return n},e=Fd().catch(e=>{throw c.NUXT_E1009({cause:e}),e})}export{nd as a,so as c,rn as d,ed as i,Mn as l,td as n,Q as o,$ as r,ds as s,Zu as t,Nn as u};
@@ -1 +0,0 @@
1
- import{N as e,Q as t,_ as n,bt as r,d as i,j as a,m as o,r as s,s as c}from"./6U3VBVNw.js";import{o as l,r as u,t as d}from"#entry";var f={key:0,class:`color-red-500 op-fade italic`},p={key:1,class:`color-amber-500 op-fade italic`},m={key:2,class:`font-mono color-active`},h={key:3,class:`whitespace-pre-wrap break-words`},g={key:0,class:`rounded-sm bg-sky-500/20 color-sky-700 dark:color-sky-300 font-mono`,"data-placeholder":``},_=n({__name:`MessageText`,props:{value:{type:[String,Number,Boolean,null]},placeholders:{}},setup(n){let u=n,d=c(()=>{if(typeof u.value!=`string`)return[];let e=[],t=0;for(let n of u.placeholders??[])n.start>t&&e.push({text:u.value.slice(t,n.start),placeholder:!1}),e.push({text:u.value.slice(n.start,n.end),placeholder:!0}),t=n.end;return t<u.value.length&&e.push({text:u.value.slice(t),placeholder:!1}),e});return(c,u)=>n.value===void 0?(a(),i(`span`,f,r(t(l)(`value.missing`)),1)):n.value===``?(a(),i(`span`,p,r(t(l)(`value.empty`)),1)):typeof n.value==`string`?(a(),i(`span`,h,[(a(!0),i(s,null,e(d.value,(e,t)=>(a(),i(s,{key:t},[e.placeholder?(a(),i(`span`,g,r(e.text),1)):(a(),i(s,{key:1},[o(r(e.text),1)],64))],64))),128))])):(a(),i(`span`,m,r(JSON.stringify(n.value)),1))}});function v(e,t=!1){return d.value.apply({project:u.value,ops:e,force:t})}function y(e,t,n,r=!1){return v([{type:`set`,key:e,locale:t,value:n}],r)}function b(e){return[e.missing.length?l(`edit.placeholdersMissing`,{names:e.missing.join(`, `)}):``,e.extra.length?l(`edit.placeholdersExtra`,{names:e.extra.join(`, `)}):``].filter(Boolean).join(`; `)}export{_ as i,b as n,y as r,v as t};
@@ -1 +0,0 @@
1
- import{B as e,N as t,Q as n,_ as r,_t as i,bt as a,c as o,d as s,h as c,j as l,l as u,m as d,q as f,r as p,s as m,z as h}from"./6U3VBVNw.js";import{o as g}from"./qB8tKtt1.js";import{a as _,c as v,o as y}from"#entry";import{t as b}from"./CvRF2CKC.js";var x={class:`p-4 grid gap-3 max-w-5xl`},S={class:`flex gap-1`,role:`tablist`},C=[`aria-selected`,`onClick`],w={class:`op-fade`},T={class:`font-mono font-semibold`},E={class:`op-fade`},D={class:`op-fade`},O={class:`font-mono text-mini op-fade`},k=[`placeholder`,`aria-label`],A=[`title`],j={key:1,class:`op-fade`},M=r({__name:`usages`,setup(r){let M=_((e,t)=>e.analysis(t)),N=_((e,t)=>e.usages(t)),P=f(`missing`),F=f(``),I=m(()=>{let e=new Map;for(let t of M.value?.undefinedUsages??[]){let n=e.get(t.key??t.raw)??[];e.set(t.key??t.raw,n),n.push(t)}return[...e]}),L=m(()=>(N.value??[]).filter(e=>e.dynamic!==!1)),R=m(()=>(N.value??[]).filter(e=>!F.value||e.path.includes(F.value)||(e.key??e.raw).includes(F.value))),z=m(()=>[{id:`missing`,label:y(`usages.missing`,{count:I.value.length})},{id:`unused`,label:y(`usages.unused`,{count:M.value?.unused.length??0})},{id:`dynamic`,label:y(`usages.dynamic`,{count:L.value.length})},{id:`all`,label:y(`usages.all`,{count:N.value?.length??0})}]);return(r,f)=>(l(),s(`div`,x,[o(`div`,S,[(l(!0),s(p,null,t(z.value,e=>(l(),s(`button`,{key:e.id,role:`tab`,"aria-selected":P.value===e.id,class:i([`btn-action-sm`,P.value===e.id?`btn-action-active`:``]),onClick:t=>P.value=e.id},a(e.label),11,C))),128))]),P.value===`missing`?(l(),s(p,{key:0},[o(`p`,w,a(n(y)(`usages.missingHint`)),1),(l(!0),s(p,null,t(I.value,([e,n])=>(l(),s(`div`,{key:e,class:`border border-base rounded p-2 grid gap-1`},[o(`span`,T,a(e),1),(l(!0),s(p,null,t(n,(e,t)=>(l(),u(b,{key:t,usage:e},null,8,[`usage`]))),128))]))),128))],64)):P.value===`unused`?(l(),s(p,{key:1},[o(`p`,E,a(n(y)(`usages.unusedHint`)),1),(l(!0),s(p,null,t(n(M)?.unused,e=>(l(),u(n(v),{key:e,to:`/keys/${encodeURIComponent(e)}`,class:`font-mono hover:bg-hover px-2 py-0.5 rounded`},{default:h(()=>[d(a(e),1)]),_:2},1032,[`to`]))),128))],64)):P.value===`dynamic`?(l(),s(p,{key:2},[o(`p`,D,a(n(y)(`usages.dynamicHint`)),1),(l(!0),s(p,null,t(L.value,(e,t)=>(l(),s(`div`,{key:t,class:`grid gap-1`},[o(`span`,O,a(e.path)+`:`+a(e.line)+` · `+a(e.raw),1),c(b,{usage:e},null,8,[`usage`])]))),128))],64)):(l(),s(p,{key:3},[e(o(`input`,{"onUpdate:modelValue":f[0]||=e=>F.value=e,class:`input-base w-72`,placeholder:n(y)(`usages.filter`),"aria-label":n(y)(`usages.filter`)},null,8,k),[[g,F.value]]),(l(!0),s(p,null,t(R.value,(e,t)=>(l(),s(`div`,{key:t,class:`flex gap-3 font-mono text-mini px-2 py-0.5 hover:bg-hover`},[o(`span`,{class:`op-fade w-72 truncate`,title:e.path},a(e.path)+`:`+a(e.line),9,A),e.key?(l(),u(n(v),{key:0,to:`/keys/${encodeURIComponent(e.key)}`},{default:h(()=>[d(a(e.key),1)]),_:2},1032,[`to`])):(l(),s(`span`,j,a(e.raw),1))]))),128))],64))]))}});export{M as default};
@@ -1 +0,0 @@
1
- import{N as e,Q as t,_ as n,_t as r,bt as i,c as a,d as o,h as s,j as c,l,m as u,r as d,s as f,u as p,yt as m,z as h}from"./6U3VBVNw.js";import{c as g,i as _,n as v,o as y}from"#entry";var b={key:0,class:`p-4 grid gap-4 max-w-5xl`},x={class:`grid grid-cols-2 md:grid-cols-4 gap-2`},S={class:`text-2xl font-mono tabular-nums`},C={class:`op-fade text-mini uppercase tracking-wide`},w={class:`border border-base rounded`},T={class:`px-3 py-2 border-b border-base font-semibold`},E={class:`font-mono`},D={key:0,class:`badge-muted`},O=[`title`],k={class:`font-mono tabular-nums text-right`},A={class:`op-fade text-mini tabular-nums`},j={class:`grid md:grid-cols-2 gap-4`},M={class:`border border-base rounded`},N={class:`px-3 py-2 border-b border-base font-semibold flex gap-3`},P={class:`font-normal color-red-500 tabular-nums`},F={class:`font-normal color-amber-500 tabular-nums`},I={key:0,class:`px-3 py-2 op-fade`},L={class:`font-mono flex-auto`},R={class:`font-mono tabular-nums`},z={class:`border border-base rounded`},B={class:`px-3 py-2 border-b border-base font-semibold`},V={class:`px-3 py-2 flex flex-wrap gap-1`},H={key:0,class:`op-fade`},U={class:`px-3 py-2 border-y border-base font-semibold`},W={class:`px-3 py-2 flex flex-wrap gap-1`},G={key:0,class:`op-fade`},K=n({__name:`index`,setup(n){let K=f(()=>v.value&&[{label:y(`overview.keys`),value:v.value.keys,to:`/keys`},{label:y(`overview.resources`),value:v.value.resources,to:`/project`},{label:y(`overview.usages`),value:v.value.usages,to:`/usages`},{label:y(`overview.locales`),value:v.value.locales.length,to:`/keys`}]);return(n,f)=>t(v)?(c(),o(`div`,b,[a(`section`,x,[(c(!0),o(d,null,e(K.value,e=>(c(),o(`div`,{key:e.label,class:`border border-base rounded p-3`},[s(t(g),{to:e.to,class:`block`},{default:h(()=>[a(`div`,S,i(e.value),1),a(`div`,C,i(e.label),1)]),_:2},1032,[`to`])]))),128))]),a(`section`,w,[a(`h2`,T,i(t(y)(`overview.coverage`)),1),(c(!0),o(d,null,e(t(v).locales,e=>(c(),l(t(g),{key:e.code,to:`/locales/${encodeURIComponent(e.code)}`,class:`grid grid-cols-[2rem_8rem_1fr_6rem_8rem] items-center gap-3 px-3 py-1.5 hover:bg-hover`},{default:h(()=>[a(`span`,null,i(e.flag),1),a(`span`,E,[u(i(e.code)+` `,1),e.code===t(v).sourceLocale?(c(),o(`span`,D,i(t(y)(`overview.source`)),1)):p(``,!0)]),a(`span`,{class:`h-1.5 rounded bg-sunken of-hidden`,title:e.displayName},[a(`span`,{class:`block h-full bg-primary-500`,style:m({width:`${e.percent}%`})},null,4)],8,O),a(`span`,k,i(e.percent)+`%`,1),a(`span`,A,i(t(y)(`overview.missing`,{missing:e.missing,empty:e.empty})),1)]),_:2},1032,[`to`]))),128))]),a(`div`,j,[a(`section`,M,[a(`h2`,N,[u(i(t(y)(`overview.diagnostics`))+` `,1),a(`span`,P,i(t(y)(`overview.errors`,{count:t(v).diagnostics.errors})),1),a(`span`,F,i(t(y)(`overview.warnings`,{count:t(v).diagnostics.warnings})),1)]),t(v).diagnostics.byCode.length?p(``,!0):(c(),o(`p`,I,i(t(y)(`overview.clean`)),1)),(c(!0),o(d,null,e(t(v).diagnostics.byCode,e=>(c(),o(`div`,{key:e.code,class:`flex items-center gap-2 px-3 py-1`},[a(`span`,{class:r(e.severity===`error`?`i-ph-x-circle-duotone color-red-500`:`i-ph-warning-duotone color-amber-500`)},null,2),a(`span`,L,i(e.code),1),a(`span`,R,i(e.count),1)]))),128))]),a(`section`,z,[a(`h2`,B,i(t(y)(`overview.presets`)),1),a(`div`,V,[(c(!0),o(d,null,e(t(v).presets,e=>(c(),o(`span`,{key:e,class:`badge-active font-mono`},i(e),1))),128)),t(v).presets.length?p(``,!0):(c(),o(`span`,H,i(t(y)(`overview.noPresets`)),1))]),a(`h2`,U,i(t(y)(`overview.recent`)),1),a(`div`,W,[(c(!0),o(d,null,e(t(_),e=>(c(),l(t(g),{key:e,to:`/keys/${encodeURIComponent(e)}`,class:`badge-muted font-mono`},{default:h(()=>[u(i(e),1)]),_:2},1032,[`to`]))),128)),t(_).length?p(``,!0):(c(),o(`span`,G,i(t(y)(`overview.noRecent`)),1))])])])])):p(``,!0)}});export{K as default};
@@ -1 +0,0 @@
1
- import{A as e,B as t,G as n,H as r,I as i,L as a,N as o,Q as s,T as c,Y as l,Z as u,_ as d,_t as f,bt as p,c as m,d as h,h as ee,j as g,m as _,q as v,r as y,s as b,u as x,v as S,vt as te,w as ne,y as re,yt as C}from"./6U3VBVNw.js";import{a as w,i as T,o as E,s as D}from"./qB8tKtt1.js";import{d as ie,u as ae}from"./B3c8VNtz.js";import{a as oe,o as O,t as k}from"#entry";import{i as se,n as ce,r as le}from"./DgJ_0G3r.js";function A(e,t){return r()?(n(e,t),!0):!1}var j=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;function M(e){return Array.isArray(e)?e:[e]}function N(e){return e||S()}function P(t,n=!0,r){N(r)?e(t,r):n?t():c(t)}var F=j?window:void 0;j&&window.document,j&&window.navigator,j&&window.location;function I(e){let t=u(e);return t?.$el??t}function L(){let t=l(!1),n=S();return n&&e(()=>{t.value=!0},n),t}function R(e){let t=L();return b(()=>(t.value,!!e()))}function z(e,t,n={}){let{window:r=F,...i}=n,o,s=R(()=>r&&`ResizeObserver`in r),c=()=>{o&&=(o.disconnect(),void 0)},l=b(()=>{let t=u(e);return Array.isArray(t)?t.map(e=>I(e)):[I(t)]}),d=a(l,e=>{if(c(),s.value&&r){o=new ResizeObserver(t);for(let t of e)t instanceof Element&&o.observe(t,i)}},{immediate:!0,flush:`post`}),f=()=>{c(),d()};return A(f),{isSupported:s,stop:f}}function B(e,t={width:0,height:0},n={}){let{window:r=F,box:i=`content-box`}=n,o=b(()=>{var t;return(t=I(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),s=l(t.width),c=l(t.height),{stop:u}=z(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&o.value){let t=I(e);if(t){let e=t.getBoundingClientRect();s.value=e.width,c.value=e.height}}else if(n){let e=M(n);s.value=e.reduce((e,{inlineSize:t})=>e+t,0),c.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=t.contentRect.width,c.value=t.contentRect.height},n);P(()=>{let n=I(e);if(n&&`offsetWidth`in n){if(i===`content-box`&&r){let e=r.getComputedStyle(n),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),i=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),a=Number.parseFloat(e.borderLeftWidth)+Number.parseFloat(e.borderRightWidth),o=Number.parseFloat(e.borderTopWidth)+Number.parseFloat(e.borderBottomWidth);s.value=n.offsetWidth-t-a,c.value=n.offsetHeight-i-o}else s.value=n.offsetWidth,c.value=n.offsetHeight}else n&&(s.value=t.width,c.value=t.height)});let d=a(()=>I(e),e=>{s.value=e?t.width:0,c.value=e?t.height:0});function f(){u(),d()}return{width:s,height:c,stop:f}}function ue(e,t){let{containerStyle:n,wrapperProps:r,scrollTo:i,calculateRange:a,currentList:o,containerRef:s}=`itemHeight`in t?de(t,e):Q(t,e);return{list:o,scrollTo:i,containerProps:{ref:s,onScroll:()=>{a()},style:n},wrapperProps:r}}function V(e){let t=l(null),n=B(t),r=v([]),i=l(e);return{state:v({start:0,end:10}),source:i,currentList:r,size:n,containerRef:t}}function H(e,t,n){return r=>{if(typeof n==`number`)return Math.ceil(r/n);let{start:i=0}=e.value,a=0,o=0;for(let e=i;e<t.value.length;e++){let t=n(e);if(a+=t,o=e,a>r)break}return o-i}}function U(e,t){return n=>{if(typeof t==`number`)return Math.floor(n/t)+1;let r=0,i=0;for(let a=0;a<e.value.length;a++){let e=t(a);if(r+=e,r>=n){i=a;break}}return i+1}}function W(e,t,n,r,{containerRef:i,state:a,currentList:o,source:s}){return()=>{let c=i.value;if(c){let i=n(e===`vertical`?c.scrollTop:c.scrollLeft),l=r(e===`vertical`?c.clientHeight:c.clientWidth),u=i-t,d=i+l+t;a.value={start:u<0?0:u,end:d>s.value.length?s.value.length:d},o.value=s.value.slice(a.value.start,a.value.end).map((e,t)=>({data:e,index:t+a.value.start}))}}}function G(e,t){return n=>typeof e==`number`?n*e:t.value.slice(0,n).reduce((t,n,r)=>t+e(r),0)}function K(e,t,n,r,i){a([e.width,e.height,t,n,r],()=>{i()})}function q(e,t){return b(()=>typeof e==`number`?t.value.length*e:t.value.reduce((t,n,r)=>t+e(r),0))}var J={horizontal:`scrollLeft`,vertical:`scrollTop`},Y={horizontal:`left`,vertical:`top`},X={behavior:`auto`,block:`start`,inline:`nearest`};function Z(e,t,n,r,i){return(a,o=X)=>{if(!r.value)return;o={...X,...o};let s=0,c=o[e===`horizontal`?`inline`:`block`];if(c){let t=e===`horizontal`?r.value.clientWidth:r.value.clientHeight,o=typeof i==`number`?i:i(a);if(c===`center`)s=t/2-o/2;else if(c===`end`)s=t-o;else if(c===`nearest`){let i=r.value[J[e]];n(a)>i+t/2&&(s=t-o)}}r.value.scrollTo({[Y[e]]:n(a)-s,behavior:o.behavior}),t()}}function Q(e,t){let n=V(t),{state:r,source:i,currentList:a,size:o,containerRef:s}=n,c={overflowX:`auto`},{itemWidth:l,overscan:u=5}=e,d=H(r,i,l),f=W(`horizontal`,u,U(i,l),d,n),p=G(l,i),m=b(()=>p(r.value.start)),h=q(l,i);return K(o,i,h,s,f),{scrollTo:Z(`horizontal`,f,p,s,l),calculateRange:f,wrapperProps:b(()=>({style:{height:`100%`,width:`${h.value-m.value}px`,marginLeft:`${m.value}px`,display:`flex`}})),containerStyle:c,currentList:a,containerRef:s}}function de(e,t){let n=V(t),{state:r,source:i,currentList:a,size:o,containerRef:s}=n,c={overflowY:`auto`},{itemHeight:l,overscan:u=5}=e,d=H(r,i,l),f=W(`vertical`,u,U(i,l),d,n),p=G(l,i),m=b(()=>p(r.value.start)),h=q(l,i);return K(o,i,h,s,f),{calculateRange:f,scrollTo:Z(`vertical`,f,p,s,l),containerStyle:c,wrapperProps:b(()=>({style:{width:`100%`,height:`${h.value-m.value}px`,marginTop:`${m.value}px`}})),currentList:a,containerRef:s}}function fe(e,t){let n=e.toLowerCase(),r=t.toLowerCase(),i=r.indexOf(n);if(i!==-1)return 1e3-i;let a=0,o=-1;for(let e of n){let t=r.indexOf(e,o+1);if(t===-1)return-1;a+=t===o+1?2:1,o=t}return a}var pe={class:`h-full flex flex-col`},me={class:`shrink-0 flex flex-wrap items-center gap-2 px-3 py-2 border-b border-base`},he={class:`flex items-center gap-1 input-base w-72`},ge=[`placeholder`,`aria-label`],_e=[`aria-label`],ve={value:``},ye=[`value`],be=[`aria-label`],xe={value:``},Se=[`value`],Ce={class:`flex items-center gap-1 select-none`},we={class:`flex items-center gap-1 select-none`},Te={class:`op-fade tabular-nums`},Ee={key:0,class:`shrink-0 flex items-center gap-2 px-3 py-1.5 bg-amber-500/10 border-b border-base`,role:`alert`},De=[`aria-label`,`aria-rowcount`],Oe={class:`px-3 flex items-center`,role:`columnheader`},ke={key:0,class:`badge-muted normal-case`},Ae=[`aria-rowindex`,`data-key`],je=[`title`,`onClick`,`onDblclick`],Me={class:`truncate`},Ne=[`title`],Pe=[`title`],Fe=[`data-locale`,`onClick`,`onDblclick`],Ie=[`aria-label`],Le=[`title`],Re={key:0,class:`p-4 op-fade`},ze={class:`shrink-0 px-3 py-1 border-t border-base text-mini op-fade flex gap-3`},Be={key:0},$=30,Ve=d({__name:`index`,setup(e){let n=ae(),r=ie(),l=oe((e,t)=>e.keys(t)),u=v(``),d=v(``),S=v(typeof n.query.missing==`string`?n.query.missing:``),A=v(!1),j=v(!1),M=b(()=>{let e=l.value?.locales??[],t=l.value?.sourceLocale;return[...e.filter(e=>e===t),...e.filter(e=>e!==t)]}),N=b(()=>[...new Set((l.value?.rows??[]).flatMap(e=>e.namespace??[]))].sort()),P=b(()=>{let e=u.value.trim(),t=(l.value?.rows??[]).filter(e=>(!d.value||e.namespace===d.value)&&(!S.value||e.missing.includes(S.value))&&(!A.value||e.unused)&&(!j.value||e.diagnostics>0));return e?t.map(t=>{let n=Object.values(t.values).map(t=>fe(e,String(t))/2);return{row:t,score:Math.max(fe(e,t.key),...n)}}).filter(e=>e.score>=0).sort((e,t)=>t.score-e.score).map(e=>e.row):t}),{list:F,containerProps:I,wrapperProps:L,scrollTo:R}=ue(P,{itemHeight:$,overscan:12}),z=v({row:0,col:0}),B=v(),V=v(),H=i(`searchInput`),U=i(`editor`);a(P,()=>{z.value={row:Math.min(z.value.row,Math.max(P.value.length-1,0)),col:z.value.col}});let W=b(()=>`minmax(16rem, 1.2fr) repeat(${M.value.length}, minmax(12rem, 1fr))`);function G(e,t){let n={row:Math.max(0,Math.min(P.value.length-1,e)),col:Math.max(0,Math.min(M.value.length,t))};z.value=n;let r=I.ref.value;if(r){let e=n.row*$;(e<r.scrollTop||e+60>r.scrollTop+r.clientHeight)&&R(n.row)}}async function K(e,t){if(!k.value?.capabilities.write)return;let n=e.values[t];B.value={key:e.key,locale:t,draft:n==null?``:String(n)},await c(),U.value?.[0]?.focus()}async function q(e=!1){let t=B.value;if(!t)return;B.value=void 0;let n=await le(t.key,t.locale,t.draft,e);V.value=n.applied?void 0:{key:t.key,locale:t.locale,value:t.draft,message:n.problems.map(ce).join(`; `)},I.ref.value?.focus()}function J(){B.value=void 0,I.ref.value?.focus()}async function Y(){let e=V.value;e&&(B.value={key:e.key,locale:e.locale,draft:e.value},await q(!0))}function X(e){r.push(`/keys/${encodeURIComponent(e.key)}`)}function Z(){let e=P.value[z.value.row];if(!e)return;let t=M.value[z.value.col-1];t?K(e,t):X(e)}let Q={ArrowDown:()=>G(z.value.row+1,z.value.col),ArrowUp:()=>G(z.value.row-1,z.value.col),ArrowRight:()=>G(z.value.row,z.value.col+1),ArrowLeft:()=>G(z.value.row,z.value.col-1),PageDown:()=>G(z.value.row+20,z.value.col),PageUp:()=>G(z.value.row-20,z.value.col),Home:()=>G(0,z.value.col),End:()=>G(P.value.length-1,z.value.col),Enter:Z,F2:Z,o:()=>P.value[z.value.row]&&X(P.value[z.value.row]),j:()=>G(z.value.row+1,z.value.col),k:()=>G(z.value.row-1,z.value.col),"/":()=>H.value?.focus()};function de(e){if(B.value||e.metaKey||e.ctrlKey||e.altKey)return;let t=Q[e.key];t&&(e.preventDefault(),t())}function Ve(e){e.stopPropagation(),e.key===`Escape`?(e.preventDefault(),J()):(e.key===`Enter`||e.key===`Tab`)&&(e.preventDefault(),q().then(()=>{e.key===`Tab`&&G(z.value.row,z.value.col+1)}))}return(e,n)=>(g(),h(`div`,pe,[m(`div`,me,[m(`label`,he,[n[10]||=m(`span`,{class:`i-ph-magnifying-glass op-mute`},null,-1),t(m(`input`,{ref_key:`searchInput`,ref:H,"onUpdate:modelValue":n[0]||=e=>u.value=e,class:`bg-transparent outline-none flex-auto`,placeholder:s(O)(`keys.search`),"aria-label":s(O)(`keys.search`),onKeydown:[n[1]||=D(e=>s(I).ref.value?.focus(),[`escape`]),n[2]||=D(e=>s(I).ref.value?.focus(),[`enter`])]},null,40,ge),[[E,u.value]])]),N.value.length?t((g(),h(`select`,{key:0,"onUpdate:modelValue":n[3]||=e=>d.value=e,class:`input-base`,"aria-label":s(O)(`keys.namespace`)},[m(`option`,ve,p(s(O)(`keys.allNamespaces`)),1),(g(!0),h(y,null,o(N.value,e=>(g(),h(`option`,{key:e,value:e},p(e),9,ye))),128))],8,_e)),[[w,d.value]]):x(``,!0),t(m(`select`,{"onUpdate:modelValue":n[4]||=e=>S.value=e,class:`input-base`,"aria-label":s(O)(`keys.missingIn`)},[m(`option`,xe,p(s(O)(`keys.anyLocale`)),1),(g(!0),h(y,null,o(M.value,e=>(g(),h(`option`,{key:e,value:e},p(s(O)(`keys.missingInLocale`,{locale:e})),9,Se))),128))],8,be),[[w,S.value]]),m(`label`,Ce,[t(m(`input`,{"onUpdate:modelValue":n[5]||=e=>A.value=e,type:`checkbox`},null,512),[[T,A.value]]),_(` `+p(s(O)(`keys.unused`)),1)]),m(`label`,we,[t(m(`input`,{"onUpdate:modelValue":n[6]||=e=>j.value=e,type:`checkbox`},null,512),[[T,j.value]]),_(` `+p(s(O)(`keys.withDiagnostics`)),1)]),n[11]||=m(`div`,{class:`flex-auto`},null,-1),m(`span`,Te,p(s(O)(`keys.count`,{shown:P.value.length,total:s(l)?.rows.length??0})),1)]),V.value?(g(),h(`div`,Ee,[n[12]||=m(`span`,{class:`i-ph-warning-duotone color-amber-500`},null,-1),m(`span`,null,p(s(O)(`edit.rejected`,{key:V.value.key,locale:V.value.locale,message:V.value.message})),1),m(`button`,{class:`btn-action-sm`,onClick:Y},p(s(O)(`edit.saveAnyway`)),1),m(`button`,{class:`btn-text text-sm`,onClick:n[7]||=e=>V.value=void 0},p(s(O)(`edit.dismiss`)),1)])):x(``,!0),m(`div`,ne(s(I),{class:`flex-auto min-h-0 of-auto outline-none`,tabindex:`0`,role:`grid`,"aria-label":s(O)(`keys.grid`),"aria-rowcount":P.value.length,onKeydown:de}),[m(`div`,{class:`sticky top-0 z-grid-head grid bg-base border-b border-base font-semibold text-mini uppercase tracking-wide`,style:C({gridTemplateColumns:W.value,height:`${$}px`}),role:`row`},[m(`div`,Oe,p(s(O)(`keys.key`)),1),(g(!0),h(y,null,o(M.value,e=>(g(),h(`div`,{key:e,class:`px-3 flex items-center gap-1 border-l border-base font-mono`,role:`columnheader`},[_(p(e)+` `,1),e===s(l)?.sourceLocale?(g(),h(`span`,ke,p(s(O)(`overview.source`)),1)):x(``,!0)]))),128))],4),m(`div`,te(re(s(L))),[(g(!0),h(y,null,o(s(F),({data:e,index:r})=>(g(),h(`div`,{key:e.key,class:f([`grid border-b border-mute`,r===z.value.row?`bg-hover`:``]),style:C({gridTemplateColumns:W.value,height:`${$}px`}),role:`row`,"aria-rowindex":r+1,"data-key":e.key},[m(`div`,{class:f([`px-3 flex items-center gap-1 font-mono truncate cursor-pointer`,r===z.value.row&&z.value.col===0?`outline outline-1 outline-primary-500 -outline-offset-1`:``]),role:`gridcell`,title:e.key,onClick:e=>G(r,0),onDblclick:t=>X(e)},[m(`span`,Me,p(e.key),1),e.unused?(g(),h(`span`,{key:0,class:`i-ph-ghost-duotone op-mute shrink-0`,title:s(O)(`keys.unusedHint`)},null,8,Ne)):x(``,!0),e.diagnostics?(g(),h(`span`,{key:1,class:`badge bg-red-500/10 color-red-500 shrink-0`,title:s(O)(`keys.diagnosticsHint`)},p(e.diagnostics),9,Pe)):x(``,!0)],42,je),(g(!0),h(y,null,o(M.value,(i,a)=>(g(),h(`div`,{key:i,class:f([`px-3 flex items-center border-l border-mute min-w-0`,r===z.value.row&&z.value.col===a+1?`outline outline-1 outline-primary-500 -outline-offset-1`:``]),role:`gridcell`,"data-locale":i,onClick:e=>G(r,a+1),onDblclick:t=>K(e,i)},[B.value&&B.value.key===e.key&&B.value.locale===i?t((g(),h(`input`,{key:0,ref_for:!0,ref_key:`editor`,ref:U,"onUpdate:modelValue":n[8]||=e=>B.value.draft=e,class:`w-full bg-transparent outline-none`,"aria-label":s(O)(`keys.editValue`,{key:e.key,locale:i}),onKeydown:Ve,onBlur:n[9]||=e=>q()},null,40,Ie)),[[E,B.value.draft]]):(g(),h(`span`,{key:1,class:`truncate`,title:String(e.values[i]??``)},[ee(se,{value:e.values[i]},null,8,[`value`])],8,Le))],42,Fe))),128))],14,Ae))),128))],16),s(l)&&!P.value.length?(g(),h(`p`,Re,p(s(O)(`keys.empty`)),1)):x(``,!0)],16,De),m(`div`,ze,[m(`span`,null,p(s(O)(`keys.helpMove`)),1),s(k)?.capabilities.write?(g(),h(`span`,Be,p(s(O)(`keys.helpEdit`)),1)):x(``,!0),m(`span`,null,p(s(O)(`keys.helpOpen`)),1),m(`span`,null,p(s(O)(`keys.helpSearch`)),1)])]))}});export{Ve as default};
@@ -1 +0,0 @@
1
- {"id":"45c30525-030d-44d4-bb10-65a4ca3668c9","timestamp":1792470012901,"prerendered":[]}
@@ -1 +0,0 @@
1
- *,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after,:before{--un-content:""}:host,html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}code,kbd,pre,samp{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}dialog,fieldset,legend,menu,ol,ul{padding:0}menu,ol,ul{margin:0;list-style:none}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}[hidden]:where(:not([hidden=until-found])){display:none}@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--un-bg-opacity:100%;--un-border-opacity:100%;--un-leading:initial;--un-outline-opacity:100%;--un-outline-style:solid;--un-ring-opacity:100%;--un-text-opacity:100%}}@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-leading{syntax:"*";inherits:false}@property --un-outline-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-inset-ring-color{syntax:"*";inherits:false}@property --un-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow-color{syntax:"*";inherits:false}@property --un-ring-color{syntax:"*";inherits:false}@property --un-ring-inset{syntax:"*";inherits:false}@property --un-ring-offset-color{syntax:"*";inherits:false}@property --un-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --un-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow-color{syntax:"*";inherits:false}@property --un-ring-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-numeric-figure{syntax:"*";inherits:false}@property --un-numeric-fraction{syntax:"*";inherits:false}@property --un-numeric-spacing{syntax:"*";inherits:false}@property --un-ordinal{syntax:"*";inherits:false}@property --un-slashed-zero{syntax:"*";inherits:false}:host,:root{--spacing:.25rem;--container-5xl:64rem;--radius-DEFAULT:.25rem;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--tracking-wide:.025em;--fontWeight-semibold:600;--fontWeight-normal:400;--container-6xl:72rem;--colors-amber-500:oklch(76.9% .188 70.08);--colors-red-500:oklch(63.7% .237 25.331);--font-sans: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";--container-sm:24rem;--tracking-widest:.1em;--radius-sm:.25rem;--colors-sky-500:oklch(68.5% .169 237.323);--fontWeight-medium:500;--leading-none:1;--colors-primary-500:#3480bd;--colors-red-DEFAULT:oklch(70.4% .191 22.216);--colors-sky-700:oklch(50% .134 242.749);--colors-white:#fff;--colors-neutral-950:oklch(14.5% 0 0);--colors-neutral-500:oklch(55.6% 0 0);--text-2xl-fontSize:1.5rem;--text-2xl-lineHeight:2rem;--text-lg-fontSize:1.125rem;--text-lg-lineHeight:1.75rem;--text-sm-fontSize:.875rem;--text-sm-lineHeight:1.25rem;--text-3xl-fontSize:1.875rem;--text-3xl-lineHeight:2.25rem;--colors-sky-300:oklch(82.8% .111 230.318);--radius-md:.375rem;--colors-gray-500:oklch(55.1% .027 264.364);--text-xs-fontSize:.75rem;--text-xs-lineHeight:1rem;--default-transition-timingFunction:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--colors-black:#000;--colors-primary-600:#1667a3;--colors-neutral-600:oklch(43.9% 0 0);--colors-primary-300:#74beff;--colors-neutral-400:oklch(70.8% 0 0);--colors-neutral-800:oklch(26.9% 0 0);--colors-neutral-200:oklch(92.2% 0 0);--colors-primary-400:#549ede;--default-font-family:var(--font-sans);--default-monoFont-family:var(--font-mono)}*,::backdrop,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-featureSettings,normal);font-variation-settings:var(--default-font-variationSettings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-monoFont-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-monoFont-featureSettings,normal);font-variation-settings:var(--default-monoFont-variationSettings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden~=until-found])){display:none!important}#__nuxt,body,html{height:100%;margin:0}html.dark{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html.high-contrast #__nuxt>div{color:#fff;background:#000}html.high-contrast *{border-color:#fffa!important}.i-ph-arrow-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M224 128a8 8 0 0 1-8 8H59.31l58.35 58.34a8 8 0 0 1-11.32 11.32l-72-72a8 8 0 0 1 0-11.32l72-72a8 8 0 0 1 11.32 11.32L59.31 120H216a8 8 0 0 1 8 8'/%3E%3C/svg%3E")}.i-ph-arrow-left,.i-ph-arrow-square-out,.i-ph-check,.i-ph-check-circle-duotone,.i-ph-circle,.i-ph-clipboard-text-duotone,.i-ph-code-duotone,.i-ph-gauge-duotone,.i-ph-ghost-duotone,.i-ph-info-duotone,.i-ph-magic-wand-duotone,.i-ph-magnifying-glass,.i-ph-pencil-simple,.i-ph-rows-duotone,.i-ph-translate-duotone,.i-ph-warning-duotone,.i-ph-x-circle-duotone{-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1.11em;height:1.11em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph-arrow-square-out{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M224 104a8 8 0 0 1-16 0V59.32l-66.33 66.34a8 8 0 0 1-11.32-11.32L196.68 48H152a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8Zm-40 24a8 8 0 0 0-8 8v72H48V80h72a8 8 0 0 0 0-16H48a16 16 0 0 0-16 16v128a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-72a8 8 0 0 0-8-8'/%3E%3C/svg%3E")}.i-ph-check{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m229.66 77.66l-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69L218.34 66.34a8 8 0 0 1 11.32 11.32'/%3E%3C/svg%3E")}.i-ph-check-circle-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96' opacity='.2'/%3E%3Cpath d='M173.66 98.34a8 8 0 0 1 0 11.32l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 0M232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88'/%3E%3C/g%3E%3C/svg%3E")}.i-ph-circle{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88'/%3E%3C/svg%3E")}.i-ph-clipboard-text-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M208 48v168a8 8 0 0 1-8 8H56a8 8 0 0 1-8-8V48a8 8 0 0 1 8-8h40a39.83 39.83 0 0 0-8 24v8h80v-8a39.83 39.83 0 0 0-8-24h40a8 8 0 0 1 8 8' opacity='.2'/%3E%3Cpath d='M168 152a8 8 0 0 1-8 8H96a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8m-8-40H96a8 8 0 0 0 0 16h64a8 8 0 0 0 0-16m56-64v168a16 16 0 0 1-16 16H56a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h36.26a47.92 47.92 0 0 1 71.48 0H200a16 16 0 0 1 16 16M96 64h64a32 32 0 0 0-64 0m104-16h-26.75A47.9 47.9 0 0 1 176 64v8a8 8 0 0 1-8 8H88a8 8 0 0 1-8-8v-8a47.9 47.9 0 0 1 2.75-16H56v168h144Z'/%3E%3C/g%3E%3C/svg%3E")}.i-ph-code-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='m240 128l-48 40H64l-48-40l48-40h128Z' opacity='.2'/%3E%3Cpath d='M69.12 94.15L28.5 128l40.62 33.85a8 8 0 1 1-10.24 12.29l-48-40a8 8 0 0 1 0-12.29l48-40a8 8 0 0 1 10.24 12.3m176 27.7l-48-40a8 8 0 1 0-10.24 12.3L227.5 128l-40.62 33.85a8 8 0 1 0 10.24 12.29l48-40a8 8 0 0 0 0-12.29m-82.39-89.37a8 8 0 0 0-10.25 4.79l-64 176a8 8 0 0 0 4.79 10.26A8.1 8.1 0 0 0 96 224a8 8 0 0 0 7.52-5.27l64-176a8 8 0 0 0-4.79-10.25'/%3E%3C/g%3E%3C/svg%3E")}.i-ph-gauge-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M232 152v24a8 8 0 0 1-8 8H32a8 8 0 0 1-8-8v-22.87C24 95.65 70.15 48.2 127.63 48A104 104 0 0 1 232 152' opacity='.2'/%3E%3Cpath d='M207.06 72.67A111.24 111.24 0 0 0 128 40h-.4C66.07 40.21 16 91 16 153.13V176a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-24a111.25 111.25 0 0 0-32.94-79.33M224 176H119.71l54.76-75.3a8 8 0 0 0-12.94-9.42L99.92 176H32v-22.87c0-3.08.15-6.12.43-9.13H56a8 8 0 0 0 0-16H35.27c10.32-38.86 44-68.24 84.73-71.66V80a8 8 0 0 0 16 0V56.33A96.14 96.14 0 0 1 221 128h-21a8 8 0 0 0 0 16h23.67c.21 2.65.33 5.31.33 8Z'/%3E%3C/g%3E%3C/svg%3E")}.i-ph-ghost-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M216 120v96l-29.33-24l-29.34 24L128 192l-29.33 24l-29.34-24L40 216v-96a88 88 0 0 1 176 0' opacity='.2'/%3E%3Cpath d='M112 116a12 12 0 1 1-12-12a12 12 0 0 1 12 12m44-12a12 12 0 1 0 12 12a12 12 0 0 0-12-12m68 16v96a8 8 0 0 1-13.07 6.19l-24.26-19.85l-24.27 19.85a8 8 0 0 1-10.13 0L128 202.34l-24.27 19.85a8 8 0 0 1-10.13 0l-24.27-19.85l-24.26 19.85A8 8 0 0 1 32 216v-96a96 96 0 0 1 192 0m-16 0a80 80 0 0 0-160 0v79.12l16.27-13.31a8 8 0 0 1 10.13 0l24.27 19.85l24.26-19.85a8 8 0 0 1 10.14 0l24.26 19.85l24.27-19.85a8 8 0 0 1 10.13 0L208 199.12Z'/%3E%3C/g%3E%3C/svg%3E")}.i-ph-info-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96' opacity='.2'/%3E%3Cpath d='M144 176a8 8 0 0 1-8 8a16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16a16 16 0 0 1 16 16v40a8 8 0 0 1 8 8m88-48A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88m-92-32a12 12 0 1 0-12-12a12 12 0 0 0 12 12'/%3E%3C/g%3E%3C/svg%3E")}.i-ph-magic-wand-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M176 112L74.34 213.66a8 8 0 0 1-11.31 0L42.34 193a8 8 0 0 1 0-11.31L144 80Z' opacity='.2'/%3E%3Cpath d='M248 152a8 8 0 0 1-8 8h-16v16a8 8 0 0 1-16 0v-16h-16a8 8 0 0 1 0-16h16v-16a8 8 0 0 1 16 0v16h16a8 8 0 0 1 8 8M56 72h16v16a8 8 0 0 0 16 0V72h16a8 8 0 0 0 0-16H88V40a8 8 0 0 0-16 0v16H56a8 8 0 0 0 0 16m128 120h-8v-8a8 8 0 0 0-16 0v8h-8a8 8 0 0 0 0 16h8v8a8 8 0 0 0 16 0v-8h8a8 8 0 0 0 0-16m35.31-112L80 219.31a16 16 0 0 1-22.62 0l-20.7-20.68a16 16 0 0 1 0-22.63L176 36.69a16 16 0 0 1 22.63 0l20.68 20.68a16 16 0 0 1 0 22.63m-54.63 32L144 91.31l-96 96L68.68 208ZM208 68.69L187.31 48l-32 32L176 100.69Z'/%3E%3C/g%3E%3C/svg%3E")}.i-ph-magnifying-glass{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m229.66 218.34l-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32M40 112a72 72 0 1 1 72 72a72.08 72.08 0 0 1-72-72'/%3E%3C/svg%3E")}.i-ph-pencil-simple{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m227.31 73.37l-44.68-44.69a16 16 0 0 0-22.63 0L36.69 152A15.86 15.86 0 0 0 32 163.31V208a16 16 0 0 0 16 16h44.69a15.86 15.86 0 0 0 11.31-4.69L227.31 96a16 16 0 0 0 0-22.63M92.69 208H48v-44.69l88-88L180.69 120ZM192 108.68L147.31 64l24-24L216 84.68Z'/%3E%3C/svg%3E")}.i-ph-rows-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M216 152v40a8 8 0 0 1-8 8H48a8 8 0 0 1-8-8v-40a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8m-8-96H48a8 8 0 0 0-8 8v40a8 8 0 0 0 8 8h160a8 8 0 0 0 8-8V64a8 8 0 0 0-8-8' opacity='.2'/%3E%3Cpath d='M208 136H48a16 16 0 0 0-16 16v40a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-40a16 16 0 0 0-16-16m0 56H48v-40h160zm0-144H48a16 16 0 0 0-16 16v40a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16m0 56H48V64h160z'/%3E%3C/g%3E%3C/svg%3E")}.i-ph-translate-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M224 184h-80l40-80ZM96 127.56A95.78 95.78 0 0 0 128 56H64a95.78 95.78 0 0 0 32 71.56' opacity='.2'/%3E%3Cpath d='m247.15 212.42l-56-112a8 8 0 0 0-14.31 0l-21.71 43.43A88 88 0 0 1 108 126.93A103.65 103.65 0 0 0 135.69 64H160a8 8 0 0 0 0-16h-56V32a8 8 0 0 0-16 0v16H32a8 8 0 0 0 0 16h87.63A87.7 87.7 0 0 1 96 116.35a87.7 87.7 0 0 1-19-31a8 8 0 1 0-15.08 5.34A103.6 103.6 0 0 0 84 127a87.55 87.55 0 0 1-52 17a8 8 0 0 0 0 16a103.46 103.46 0 0 0 64-22.08a104.2 104.2 0 0 0 51.44 21.31l-26.6 53.19a8 8 0 0 0 14.31 7.16L148.94 192h70.11l13.79 27.58A8 8 0 0 0 240 224a8 8 0 0 0 7.15-11.58M156.94 176L184 121.89L211.05 176Z'/%3E%3C/g%3E%3C/svg%3E")}.i-ph-warning-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M215.46 216H40.54c-12.62 0-20.54-13.21-14.41-23.91l87.46-151.87c6.3-11 22.52-11 28.82 0l87.46 151.87c6.13 10.7-1.79 23.91-14.41 23.91' opacity='.2'/%3E%3Cpath d='M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72m-13.87 15.71a8.5 8.5 0 0 1-7.48 4.2H40.55a8.5 8.5 0 0 1-7.48-4.2a7.59 7.59 0 0 1 0-7.72l87.45-151.87a8.75 8.75 0 0 1 15 0l87.45 151.87a7.59 7.59 0 0 1-.04 7.72M120 144v-40a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12'/%3E%3C/g%3E%3C/svg%3E")}.i-ph-x-circle-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1.11em' height='1.11em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96' opacity='.2'/%3E%3Cpath d='M165.66 101.66L139.31 128l26.35 26.34a8 8 0 0 1-11.32 11.32L128 139.31l-26.34 26.35a8 8 0 0 1-11.32-11.32L116.69 128l-26.35-26.34a8 8 0 0 1 11.32-11.32L128 116.69l26.34-26.35a8 8 0 0 1 11.32 11.32M232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88'/%3E%3C/g%3E%3C/svg%3E")}.badge,.badge-active,.badge-muted{font-size:var(--text-xs-fontSize);line-height:var(--un-leading,var(--text-xs-lineHeight));--un-leading:var(--leading-none);line-height:var(--leading-none);--un-font-weight:var(--fontWeight-medium);font-weight:var(--fontWeight-medium);padding-inline:calc(var(--spacing) * 1.5);padding-block:calc(var(--spacing) * .5);border-radius:var(--radius-md);gap:calc(var(--spacing));align-items:center;display:inline-flex}.badge-active{color:color-mix(in srgb,var(--colors-primary-600) var(--un-text-opacity),transparent);background-color:color-mix(in oklab,#99999920 var(--un-bg-opacity),transparent)}.badge-muted{color:color-mix(in srgb,var(--colors-neutral-600) var(--un-text-opacity),transparent);background-color:color-mix(in oklab,#8881 var(--un-bg-opacity),transparent)}.btn-action-sm{font-size:var(--text-sm-fontSize);line-height:var(--un-leading,var(--text-sm-lineHeight));border-color:color-mix(in oklab,#9992 var(--un-border-opacity),transparent);opacity:.75}.btn-action-sm,.btn-primary{padding-inline:calc(var(--spacing) * 2);padding-block:calc(var(--spacing));--un-outline-style:none;border-radius:var(--radius-DEFAULT);gap:calc(var(--spacing) * 2);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration));border-width:1px;outline-style:none;align-items:center;display:flex}.btn-primary{color:color-mix(in srgb,var(--colors-white) var(--un-text-opacity),transparent);background-color:color-mix(in srgb,var(--colors-primary-500) var(--un-bg-opacity),transparent);border-color:#0000}.text-compact{--un-leading:1.5;font-size:12px;line-height:1.5}.text-mini{--un-leading:1.45;font-size:11px;line-height:1.45}.dark .badge-active,.dark .color-active{color:color-mix(in srgb,var(--colors-primary-300) var(--un-text-opacity),transparent)}.dark .badge-muted{color:color-mix(in srgb,var(--colors-neutral-400) var(--un-text-opacity),transparent)}.btn-action-active{color:color-mix(in srgb,var(--colors-primary-600) var(--un-text-opacity),transparent);background-color:color-mix(in oklab,#99999920 var(--un-bg-opacity),transparent);border-color:color-mix(in srgb,var(--colors-primary-600) 25%,transparent)!important;opacity:1!important}.dark .btn-action-active{color:color-mix(in srgb,var(--colors-primary-300) var(--un-text-opacity),transparent);border-color:color-mix(in srgb,var(--colors-primary-400) 25%,transparent)!important}.color-active{color:color-mix(in srgb,var(--colors-primary-600) var(--un-text-opacity),transparent)}.color-base{color:color-mix(in srgb,var(--colors-neutral-800) var(--un-text-opacity),transparent)}.dark .color-base{color:color-mix(in srgb,var(--colors-neutral-200) var(--un-text-opacity),transparent)}.btn-text{opacity:.75;gap:calc(var(--spacing) * 2);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration));border-color:#0000;align-items:center;display:inline-flex}.btn-text,.input-base{padding-inline:calc(var(--spacing) * 2);padding-block:calc(var(--spacing));--un-outline-style:none;border-radius:var(--radius-DEFAULT);border-width:1px;outline-style:none}.input-base{border-color:color-mix(in oklab,#9992 var(--un-border-opacity),transparent);background-color:#0000}.btn-icon-compact{--un-outline-style:none;border-radius:var(--radius-DEFAULT);opacity:.65;width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration));outline-style:none;justify-content:center;align-items:center;display:flex}.border-base{border-color:color-mix(in oklab,#9992 var(--un-border-opacity),transparent)}.border-mute{border-color:color-mix(in oklab,#9991 var(--un-border-opacity),transparent)}.dark .input-base:focus{border-color:color-mix(in srgb,var(--colors-primary-400) 25%,transparent)}.input-base:focus{border-color:color-mix(in srgb,var(--colors-primary-600) 25%,transparent)}.bg-active{background-color:color-mix(in oklab,#99999920 var(--un-bg-opacity),transparent)}.bg-base{background-color:color-mix(in srgb,var(--colors-white) var(--un-bg-opacity),transparent)}.dark .bg-base{background-color:color-mix(in oklab,#111 var(--un-bg-opacity),transparent)}.bg-code{background-color:color-mix(in srgb,var(--colors-gray-500) 5%,transparent)}.bg-hover{background-color:color-mix(in oklab,#99999915 var(--un-bg-opacity),transparent)}.bg-sunken{background-color:color-mix(in srgb,var(--colors-black) 4%,transparent)}.dark .bg-sunken{background-color:color-mix(in srgb,var(--colors-white) 6%,transparent)}.btn-action-sm:hover,.btn-icon-compact:hover,.hover\:bg-hover:hover{background-color:color-mix(in oklab,#99999915 var(--un-bg-opacity),transparent)}.btn-action-sm:hover,.btn-icon-compact:hover{opacity:1}.btn-primary:hover{background-color:color-mix(in srgb,var(--colors-primary-600) var(--un-bg-opacity),transparent)}.btn-text:hover{background-color:color-mix(in oklab,#99999915 var(--un-bg-opacity),transparent);opacity:1}.op-fade{opacity:.65}.op-mute{opacity:.4}.btn-action-sm:disabled{pointer-events:none;opacity:.3!important}.btn-icon-compact:disabled{opacity:.3;pointer-events:none}.btn-primary:disabled{opacity:.5;pointer-events:none}.btn-text:disabled{pointer-events:none;opacity:.3!important}.btn-action-sm:focus-visible,.btn-icon-compact:focus-visible,.btn-primary:focus-visible,.btn-text:focus-visible{--un-ring-shadow:var(--un-ring-inset,) 0 0 0 calc(2px + var(--un-ring-offset-width)) var(--un-ring-color,currentColor);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);--un-ring-color:color-mix(in srgb, var(--colors-primary-500) 40%, transparent)}.z-grid-head{z-index:20}@supports (color:color-mix(in lab,red,red)){.btn-primary{color:color-mix(in oklab,var(--colors-white) var(--un-text-opacity),transparent);background-color:color-mix(in oklab,var(--colors-primary-500) var(--un-bg-opacity),transparent)}.badge-active{color:color-mix(in oklab,var(--colors-primary-600) var(--un-text-opacity),transparent)}.dark .badge-active{color:color-mix(in oklab,var(--colors-primary-300) var(--un-text-opacity),transparent)}.badge-muted{color:color-mix(in oklab,var(--colors-neutral-600) var(--un-text-opacity),transparent)}.dark .badge-muted{color:color-mix(in oklab,var(--colors-neutral-400) var(--un-text-opacity),transparent)}.btn-action-active{color:color-mix(in oklab,var(--colors-primary-600) var(--un-text-opacity),transparent);border-color:color-mix(in oklab,var(--colors-primary-600) 25%,transparent)!important}.dark .btn-action-active{color:color-mix(in oklab,var(--colors-primary-300) var(--un-text-opacity),transparent);border-color:color-mix(in oklab,var(--colors-primary-400) 25%,transparent)!important}.color-active{color:color-mix(in oklab,var(--colors-primary-600) var(--un-text-opacity),transparent)}.dark .color-active{color:color-mix(in oklab,var(--colors-primary-300) var(--un-text-opacity),transparent)}.color-base{color:color-mix(in oklab,var(--colors-neutral-800) var(--un-text-opacity),transparent)}.dark .color-base{color:color-mix(in oklab,var(--colors-neutral-200) var(--un-text-opacity),transparent)}.dark .input-base:focus{border-color:color-mix(in oklab,var(--colors-primary-400) 25%,transparent)}.input-base:focus{border-color:color-mix(in oklab,var(--colors-primary-600) 25%,transparent)}.bg-base{background-color:color-mix(in oklab,var(--colors-white) var(--un-bg-opacity),transparent)}.bg-code{background-color:color-mix(in oklab,var(--colors-gray-500) 5%,transparent)}.bg-sunken{background-color:color-mix(in oklab,var(--colors-black) 4%,transparent)}.dark .bg-sunken{background-color:color-mix(in oklab,var(--colors-white) 6%,transparent)}.btn-primary:hover{background-color:color-mix(in oklab,var(--colors-primary-600) var(--un-bg-opacity),transparent)}.btn-action-sm:focus-visible,.btn-icon-compact:focus-visible,.btn-primary:focus-visible,.btn-text:focus-visible{--un-ring-color:color-mix(in oklab, var(--colors-primary-500) 40%, transparent)}}@property --scroll-fade-t{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-b{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-s{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-e{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-mask{syntax:"*";inherits:false}@property --shimmer-angle{syntax:"<angle>";inherits:true;initial-value:20deg}@property --shimmer-image{syntax:"*";inherits:false}@property --shimmer-text-fill{syntax:"*";inherits:false}.text-2xl{font-size:var(--text-2xl-fontSize);line-height:var(--un-leading,var(--text-2xl-lineHeight))}.text-lg{font-size:var(--text-lg-fontSize);line-height:var(--un-leading,var(--text-lg-lineHeight))}.text-sm{font-size:var(--text-sm-fontSize);line-height:var(--un-leading,var(--text-sm-lineHeight))}.dark .dark\:text-white{color:color-mix(in srgb,var(--colors-white) var(--un-text-opacity),transparent)}.text-\[56px\]{font-size:56px}.text-neutral-500{color:color-mix(in srgb,var(--colors-neutral-500) var(--un-text-opacity),transparent)}.text-neutral-950{color:color-mix(in srgb,var(--colors-neutral-950) var(--un-text-opacity),transparent)}.hover\:text-\[\#00DC82\]:hover{color:color-mix(in oklab,#00dc82 var(--un-text-opacity),transparent)}.color-amber-500{color:color-mix(in srgb,var(--colors-amber-500) var(--un-text-opacity),transparent)}.color-red{color:color-mix(in srgb,var(--colors-red-DEFAULT) var(--un-text-opacity),transparent)}.color-red-500{color:color-mix(in srgb,var(--colors-red-500) var(--un-text-opacity),transparent)}.color-sky-700{color:color-mix(in srgb,var(--colors-sky-700) var(--un-text-opacity),transparent)}.dark .dark\:color-sky-300{color:color-mix(in srgb,var(--colors-sky-300) var(--un-text-opacity),transparent)}.text-inherit{color:inherit}.leading-none{--un-leading:var(--leading-none);line-height:var(--leading-none)}.tracking-wide{--un-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--un-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.font-medium{--un-font-weight:var(--fontWeight-medium);font-weight:var(--fontWeight-medium)}.font-mono{font-family:var(--font-mono)}.font-normal{--un-font-weight:var(--fontWeight-normal);font-weight:var(--fontWeight-normal)}.font-sans{font-family:var(--font-sans)}.font-semibold{--un-font-weight:var(--fontWeight-semibold);font-weight:var(--fontWeight-semibold)}.tab{tab-size:4}.m-2{margin:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mt-20{margin-top:calc(var(--spacing) * 20)}.p-0{padding:calc(var(--spacing) * 0)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.px{padding-inline:calc(var(--spacing) * 4)}.px-2,.px2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing))}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pr-3{padding-right:calc(var(--spacing) * 3)}.text-center{text-align:center}.text-right{text-align:right}.appearance-none{appearance:none}.outline,.outline-1{outline-style:var(--un-outline-style);outline-width:1px}.outline-primary-500{outline-color:color-mix(in srgb,var(--colors-primary-500) var(--un-outline-opacity),transparent)}.-outline-offset-1{outline-offset:-1px}.outline-none{--un-outline-style:none;outline-style:none}.b,.border{border-width:1px}.border-y{border-block-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-0{border-width:0}.rounded{border-radius:var(--radius-DEFAULT)}.rounded-sm{border-radius:var(--radius-sm)}.bg-amber-500\/10{background-color:color-mix(in srgb,var(--colors-amber-500) 10%,transparent)}.bg-primary-500{background-color:color-mix(in srgb,var(--colors-primary-500) var(--un-bg-opacity),transparent)}.bg-red-500\/10{background-color:color-mix(in srgb,var(--colors-red-500) 10%,transparent)}.bg-sky-500\/20{background-color:color-mix(in srgb,var(--colors-sky-500) 20%,transparent)}.bg-transparent{background-color:#0000}.bg-white{background-color:color-mix(in srgb,var(--colors-white) var(--un-bg-opacity),transparent)}.dark .dark\:bg-neutral-950{background-color:color-mix(in srgb,var(--colors-neutral-950) var(--un-bg-opacity),transparent)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.flex{display:flex}.flex-auto{flex:auto}.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.gap-1{gap:calc(var(--spacing))}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.grid{display:grid}.grid-cols-\[2rem_8rem_1fr_6rem_8rem\]{grid-template-columns:2rem 8rem 1fr 6rem 8rem}.grid-cols-\[6rem_1fr_auto\]{grid-template-columns:6rem 1fr auto}.grid-cols-\[auto_3rem_1fr_16rem\]{grid-template-columns:auto 3rem 1fr 16rem}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-10{height:calc(var(--spacing) * 10)}.h-2,.h2{height:calc(var(--spacing) * 2)}.h-full{height:100%}.h1{height:calc(var(--spacing))}.max-w-520px{max-width:520px}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-sm{max-width:var(--container-sm)}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-screen{min-height:100vh}.min-w-0{min-width:calc(var(--spacing) * 0)}.w-72{width:calc(var(--spacing) * 72)}.w-8{width:calc(var(--spacing) * 8)}.w-full{width:100%}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.uppercase{text-transform:uppercase}.normal-case{text-transform:none}.italic{font-style:italic}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.items-start{align-items:flex-start}.items-center{align-items:center}.self-start{align-self:flex-start}.top-0{top:calc(var(--spacing) * 0)}.justify-center{justify-content:center}.place-content-center{place-content:center}.sticky{position:sticky}.static{position:static}.of-auto{overflow:auto}.of-hidden,.overflow-hidden{overflow:hidden}.of-x-auto{overflow-x:auto}.filter{filter:var(--un-blur,) var(--un-brightness,) var(--un-contrast,) var(--un-grayscale,) var(--un-hue-rotate,) var(--un-invert,) var(--un-saturate,) var(--un-sepia,) var(--un-drop-shadow,)}.table{display:table}.tabular-nums{--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,)}@supports (color:color-mix(in lab,red,red)){.dark .dark\:text-white{color:color-mix(in oklab,var(--colors-white) var(--un-text-opacity),transparent)}.text-neutral-500{color:color-mix(in oklab,var(--colors-neutral-500) var(--un-text-opacity),transparent)}.text-neutral-950{color:color-mix(in oklab,var(--colors-neutral-950) var(--un-text-opacity),transparent)}.color-amber-500{color:color-mix(in oklab,var(--colors-amber-500) var(--un-text-opacity),transparent)}.color-red{color:color-mix(in oklab,var(--colors-red-DEFAULT) var(--un-text-opacity),transparent)}.color-red-500{color:color-mix(in oklab,var(--colors-red-500) var(--un-text-opacity),transparent)}.color-sky-700{color:color-mix(in oklab,var(--colors-sky-700) var(--un-text-opacity),transparent)}.dark .dark\:color-sky-300{color:color-mix(in oklab,var(--colors-sky-300) var(--un-text-opacity),transparent)}.outline-primary-500{outline-color:color-mix(in oklab,var(--colors-primary-500) var(--un-outline-opacity),transparent)}.bg-amber-500\/10{background-color:color-mix(in oklab,var(--colors-amber-500) 10%,transparent)}.bg-primary-500{background-color:color-mix(in oklab,var(--colors-primary-500) var(--un-bg-opacity),transparent)}.bg-red-500\/10{background-color:color-mix(in oklab,var(--colors-red-500) 10%,transparent)}.bg-sky-500\/20{background-color:color-mix(in oklab,var(--colors-sky-500) 20%,transparent)}.bg-white{background-color:color-mix(in oklab,var(--colors-white) var(--un-bg-opacity),transparent)}.dark .dark\:bg-neutral-950{background-color:color-mix(in oklab,var(--colors-neutral-950) var(--un-bg-opacity),transparent)}}@media (width>=40rem){.sm\:text-3xl{font-size:var(--text-3xl-fontSize);line-height:var(--un-leading,var(--text-3xl-lineHeight))}.sm\:text-\[72px\]{font-size:72px}}@media (width>=48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}
@@ -1 +0,0 @@
1
- .grid[data-v-153e7c9b]{display:grid}.mb-2[data-v-153e7c9b]{margin-bottom:.5rem}.mb-4[data-v-153e7c9b]{margin-bottom:1rem}.max-w-520px[data-v-153e7c9b]{max-width:520px}.min-h-screen[data-v-153e7c9b]{min-height:100vh}.w-full[data-v-153e7c9b]{width:100%}.flex[data-v-153e7c9b]{display:flex}.cursor-pointer[data-v-153e7c9b]{cursor:pointer}.appearance-none[data-v-153e7c9b]{appearance:none}.place-content-center[data-v-153e7c9b]{place-content:center}.items-center[data-v-153e7c9b]{align-items:center}.justify-center[data-v-153e7c9b]{justify-content:center}.overflow-hidden[data-v-153e7c9b]{overflow:hidden}.border-0[data-v-153e7c9b]{border-width:0}.bg-transparent[data-v-153e7c9b]{background-color:#0000}.bg-white[data-v-153e7c9b]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.p-0[data-v-153e7c9b]{padding:0}.px-2[data-v-153e7c9b]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-153e7c9b]{text-align:center}.text-\[56px\][data-v-153e7c9b]{font-size:56px}.text-2xl[data-v-153e7c9b]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-153e7c9b]{font-size:.875rem;line-height:1.25rem}.text-neutral-500[data-v-153e7c9b]{--un-text-opacity:1;color:rgb(115 115 115/var(--un-text-opacity))}.text-neutral-950[data-v-153e7c9b]{--un-text-opacity:1;color:rgb(10 10 10/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-153e7c9b]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.text-inherit[data-v-153e7c9b]{color:inherit}.font-medium[data-v-153e7c9b]{font-weight:500}.font-semibold[data-v-153e7c9b]{font-weight:600}.leading-none[data-v-153e7c9b]{line-height:1}.tracking-wide[data-v-153e7c9b]{letter-spacing:.025em}.font-sans[data-v-153e7c9b]{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-153e7c9b]{--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-153e7c9b]{text-decoration-line:underline}.underline-offset-3[data-v-153e7c9b]{text-underline-offset:3px}.antialiased[data-v-153e7c9b]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-neutral-950[data-v-153e7c9b]{--un-bg-opacity:1;background-color:rgb(10 10 10/var(--un-bg-opacity))}.dark\:text-white[data-v-153e7c9b]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (width>=640px){.sm\:text-\[72px\][data-v-153e7c9b]{font-size:72px}.sm\:text-3xl[data-v-153e7c9b]{font-size:1.875rem;line-height:2.25rem}}
@@ -1 +0,0 @@
1
- .grid[data-v-3e04049c]{display:grid}.mb-2[data-v-3e04049c]{margin-bottom:.5rem}.mb-4[data-v-3e04049c]{margin-bottom:1rem}.max-w-520px[data-v-3e04049c]{max-width:520px}.min-h-screen[data-v-3e04049c]{min-height:100vh}.place-content-center[data-v-3e04049c]{place-content:center}.overflow-hidden[data-v-3e04049c]{overflow:hidden}.bg-white[data-v-3e04049c]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-3e04049c]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-3e04049c]{text-align:center}.text-\[56px\][data-v-3e04049c]{font-size:56px}.text-2xl[data-v-3e04049c]{font-size:1.5rem;line-height:2rem}.text-neutral-500[data-v-3e04049c]{--un-text-opacity:1;color:rgb(115 115 115/var(--un-text-opacity))}.text-neutral-950[data-v-3e04049c]{--un-text-opacity:1;color:rgb(10 10 10/var(--un-text-opacity))}.font-medium[data-v-3e04049c]{font-weight:500}.font-semibold[data-v-3e04049c]{font-weight:600}.leading-none[data-v-3e04049c]{line-height:1}.tracking-wide[data-v-3e04049c]{letter-spacing:.025em}.font-sans[data-v-3e04049c]{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-3e04049c]{--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-3e04049c]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-neutral-950[data-v-3e04049c]{--un-bg-opacity:1;background-color:rgb(10 10 10/var(--un-bg-opacity))}.dark\:text-white[data-v-3e04049c]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (width>=640px){.sm\:text-\[72px\][data-v-3e04049c]{font-size:72px}.sm\:text-3xl[data-v-3e04049c]{font-size:1.875rem;line-height:2.25rem}}
@@ -1 +0,0 @@
1
- import{A as e,N as t,Q as n,Y as r,_ as i,_t as a,bt as o,c as s,d as c,j as l,m as u,r as d,s as f,u as p}from"./6U3VBVNw.js";import{o as m,r as h,t as g}from"#entry";var _={key:0,class:`p-4 grid gap-4 max-w-5xl`},v={class:`border border-base rounded`},y={class:`px-3 py-2 border-b border-base font-semibold`},b={class:`font-mono flex-auto`},x={class:`op-fade`},S={class:`border border-base rounded`},C={class:`px-3 py-2 border-b border-base font-semibold`},w={class:`cursor-pointer font-mono`},T={class:`op-fade`},E={class:`grid md:grid-cols-2 gap-4`},D={class:`border border-base rounded`},O={class:`px-3 py-2 border-b border-base font-semibold`},k={class:`flex-auto`},A={class:`op-fade`},j={class:`tabular-nums`},M={class:`border border-base rounded`},N={class:`px-3 py-2 border-b border-base font-semibold`},P={class:`flex-auto`},F={class:`op-fade`},I={class:`tabular-nums`},L={key:0,class:`border border-base rounded`},R={class:`px-3 py-2 border-b border-base font-semibold`},z={class:`font-mono`},B={key:0,class:`font-mono op-fade`},V={class:`border border-base rounded`},H={class:`px-3 py-2 border-b border-base font-semibold`},U={class:`flex-auto`},W={class:`op-fade`},G={class:`bg-code m-2 p-2 rounded text-mini of-x-auto`},K=i({__name:`project`,setup(i){let K=r();e(async()=>{K.value=await g.value.explain()});let q=f(()=>K.value?.projects.find(e=>e.name===h.value));return(e,r)=>q.value?(l(),c(`div`,_,[s(`section`,v,[s(`h2`,y,o(n(m)(`project.presets`)),1),(l(!0),c(d,null,t(q.value.presets,e=>(l(),c(`div`,{key:e.name,class:`flex gap-2 px-3 py-1`},[s(`span`,{class:a(e.reason===`listed`||e.reason===`detected`?`i-ph-check-circle-duotone color-active`:`i-ph-circle op-mute`)},null,2),s(`span`,b,o(e.name),1),s(`span`,x,o(e.reason),1)]))),128))]),s(`section`,S,[s(`h2`,C,o(n(m)(`project.finders`)),1),(l(!0),c(d,null,t(q.value.finders,e=>(l(),c(`details`,{key:e.id,class:`px-3 py-1`},[s(`summary`,w,[u(o(e.id)+` `,1),s(`span`,T,o(n(m)(`project.resources`,{count:e.resources.length})),1)]),(l(!0),c(d,null,t(e.resources,e=>(l(),c(`div`,{key:e,class:`font-mono text-mini op-fade pl-4`},o(e),1))),128))]))),128))]),s(`div`,E,[s(`section`,D,[s(`h2`,O,o(n(m)(`project.formats`)),1),(l(!0),c(d,null,t(q.value.formats.filter(e=>e.resources>0),e=>(l(),c(`div`,{key:e.id,class:`flex gap-2 px-3 py-1 font-mono`},[s(`span`,k,[u(o(e.id)+` `,1),s(`span`,A,o(e.extensions.join(`, `)),1)]),s(`span`,j,o(e.resources),1)]))),128))]),s(`section`,M,[s(`h2`,N,o(n(m)(`project.scanners`)),1),(l(!0),c(d,null,t(q.value.scanners,e=>(l(),c(`div`,{key:e.id,class:`flex gap-2 px-3 py-1 font-mono`},[s(`span`,P,[u(o(e.id)+` `,1),s(`span`,F,o(e.extensions.join(`, `)),1)]),s(`span`,I,o(n(m)(`project.files`,{count:e.files})),1)]))),128))])]),q.value.errors.length||q.value.conflicts.length?(l(),c(`section`,L,[s(`h2`,R,o(n(m)(`project.problems`)),1),(l(!0),c(d,null,t(q.value.errors,(e,t)=>(l(),c(`div`,{key:`e${t}`,class:`px-3 py-1 color-red-500`},[s(`span`,z,o(e.code),1),u(` `+o(e.message)+` `,1),e.path?(l(),c(`span`,B,o(e.path),1)):p(``,!0)]))),128)),(l(!0),c(d,null,t(q.value.conflicts,e=>(l(),c(`div`,{key:e.extension,class:`px-3 py-1 color-amber-500`},o(n(m)(`project.conflict`,{extension:e.extension,winner:e.winner,loser:e.loser})),1))),128))])):p(``,!0),s(`section`,V,[s(`h2`,H,o(n(m)(`project.config`)),1),(l(!0),c(d,null,t(q.value.config.origins,(e,t)=>(l(),c(`div`,{key:t,class:`flex gap-2 px-3 py-1 font-mono`},[s(`span`,U,o(t),1),s(`span`,W,o(e),1)]))),128)),s(`pre`,G,o(JSON.stringify(q.value.config,null,2)),1)])])):p(``,!0)}});export{K as default};