@nuxt/devtools 0.1.5 → 0.1.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.
- package/README.md +2 -0
- package/dist/chunks/module-main.mjs +683 -666
- package/dist/chunks/vscode.mjs +34 -30
- package/dist/cli.mjs +21 -60
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/{Badge.ec9e349b.js → Badge.d9b6d9b1.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.29183a21.js → FilepathItem.vue.31689a0a.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.f4239533.js → LaunchPage.vue.65011890.js} +1 -1
- package/dist/client/_nuxt/{NButton.vue.09cc4471.js → NButton.vue.56759fc1.js} +1 -1
- package/dist/client/_nuxt/{NIcon.vue.701f4547.js → NIcon.vue.c1ad97a9.js} +1 -1
- package/dist/client/_nuxt/NTextInput.vue.b6c079ee.js +1 -0
- package/dist/client/_nuxt/{NuxtLogo.9f2db884.js → NuxtLogo.9303af79.js} +1 -1
- package/dist/client/_nuxt/SectionBlock.48da9d80.css +1 -0
- package/dist/client/_nuxt/SectionBlock.885bbad5.js +1 -0
- package/dist/client/_nuxt/{Settings.vue.b55fa306.js → Settings.vue.dda6fcf5.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.989cce56.css → StateEditor.c82309e2.css} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.ab9d7157.js → StateEditor.vue.0f1b994b.js} +1 -1
- package/dist/client/_nuxt/StateEditor.vue.3374c6ec.js +1 -0
- package/dist/client/_nuxt/{TabIcon.vue.6890c56a.js → TabIcon.vue.8d3722ca.js} +1 -1
- package/dist/client/_nuxt/{__inspecting.12d34e8c.js → __inspecting.6fe111b0.js} +1 -1
- package/dist/client/_nuxt/{asyncData.c8345f31.js → asyncData.d544d421.js} +1 -1
- package/dist/client/_nuxt/{components.08e98322.js → components.25d13f1f.js} +1 -1
- package/dist/client/_nuxt/composables.80d3af7a.js +1 -0
- package/dist/client/_nuxt/{context.d25709fd.js → context.b32078d3.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_.89baf527.js → custom-_name_.14809d72.js} +1 -1
- package/dist/client/_nuxt/default.7ecded8d.js +1 -0
- package/dist/client/_nuxt/editor.b2159474.js +1 -0
- package/dist/client/_nuxt/entry.43bdd1fb.css +1 -0
- package/dist/client/_nuxt/{entry.d28dd037.js → entry.b1094864.js} +1 -1
- package/dist/client/_nuxt/{error-404.bdee7391.js → error-404.2ee33711.js} +1 -1
- package/dist/client/_nuxt/{error-500.c5180cef.js → error-500.ef980084.js} +1 -1
- package/dist/client/_nuxt/{error-component.ae83d235.js → error-component.7b202115.js} +2 -2
- package/dist/client/_nuxt/{hooks.8f89faa2.js → hooks.ca7ea52c.js} +1 -1
- package/dist/client/_nuxt/imports.f7013fa4.js +1 -0
- package/dist/client/_nuxt/{index.fe0907d3.js → index.2ad8ed93.js} +1 -1
- package/dist/client/_nuxt/layouts.b684dcc1.js +1 -0
- package/dist/client/_nuxt/{middleware.5410fce5.js → middleware.e10aa06d.js} +1 -1
- package/dist/client/_nuxt/{modules.6fc7bd71.js → modules.0b22b757.js} +1 -1
- package/dist/client/_nuxt/{none.76eeebc3.js → none.38bfd553.js} +1 -1
- package/dist/client/_nuxt/{nuxt-link.3aeeed3f.js → nuxt-link.752dfef9.js} +1 -1
- package/dist/client/_nuxt/{overview.e7e9880f.js → overview.d488d202.js} +1 -1
- package/dist/client/_nuxt/{pages.40900507.js → pages.22ce604b.js} +1 -1
- package/dist/client/_nuxt/payload.5372dcff.js +1 -0
- package/dist/client/_nuxt/{plugins.8195b406.js → plugins.f9b29762.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.7cc77728.js → runtime-configs.99425f61.js} +1 -1
- package/dist/client/_nuxt/{server-routes.ffdf17b0.js → server-routes.763958ec.js} +1 -1
- package/dist/client/_nuxt/{state.a5c5a841.js → state.65ceafcf.js} +1 -1
- package/dist/client/_nuxt/{unocss-runtime.1fec3315.js → unocss-runtime.c4939419.js} +1 -1
- package/dist/client/_nuxt/{virtual-files.a26c8c69.js → virtual-files.13f3141f.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/layouts/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/shared/{devtools.28239661.mjs → devtools.e6742cbd.mjs} +1 -1
- package/package.json +4 -3
- package/dist/client/_nuxt/NTextInput.vue.276e32b3.js +0 -1
- package/dist/client/_nuxt/SectionBlock.082cb101.css +0 -1
- package/dist/client/_nuxt/SectionBlock.8ff5d737.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.d668b11c.js +0 -1
- package/dist/client/_nuxt/composables.8c342cc5.js +0 -1
- package/dist/client/_nuxt/default.975e4e70.js +0 -1
- package/dist/client/_nuxt/editor.f74d7351.js +0 -1
- package/dist/client/_nuxt/entry.e7b3d8fd.css +0 -1
- package/dist/client/_nuxt/imports.f7970750.js +0 -1
- package/dist/client/_nuxt/layouts.d5a3dabe.js +0 -1
- package/dist/client/_nuxt/payload.36dbfdde.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ab as i,o as a,e as r,f as e,t as s,Y as n,Z as l}from"./entry.b1094864.js";import{_ as d}from"./_plugin-vue_export-helper.c27b6911.js";const c=t=>(n("data-v-8e50e92f"),t=t(),l(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},f=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},m=["textContent"],g=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return i({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;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";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(b,u)=>(a(),r("div",p,[f,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,m),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,g)])]))}},y=d(x,[["__scopeId","data-v-8e50e92f"]]);export{y as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.
|
|
1
|
+
import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.b1094864.js";const g={__name:"nuxt-error-page",props:{error:Object},setup(c){const{error:t}=c;(t.stack||"").split(`
|
|
2
2
|
`).splice(1).map(e=>({text:e.replace("webpack:/","").replace(".vue",".js").trim(),internal:e.includes("node_modules")&&!e.includes(".cache")||e.includes("internal")||e.includes("new Promise")})).map(e=>`<span class="stack${e.internal?" internal":""}">${e.text}</span>`).join(`
|
|
3
|
-
`);const r=Number(t.statusCode||500),a=r===404,u=t.statusMessage??(a?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),p=void 0,_=a?n(()=>o(()=>import("./error-404.
|
|
3
|
+
`);const r=Number(t.statusCode||500),a=r===404,u=t.statusMessage??(a?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),p=void 0,_=a?n(()=>o(()=>import("./error-404.2ee33711.js"),["./error-404.2ee33711.js","./nuxt-link.752dfef9.js","./entry.b1094864.js","./entry.43bdd1fb.css","./_plugin-vue_export-helper.c27b6911.js","./error-404.1469f10f.css"],import.meta.url).then(e=>e.default||e)):n(()=>o(()=>import("./error-500.ef980084.js"),["./error-500.ef980084.js","./entry.b1094864.js","./entry.43bdd1fb.css","./_plugin-vue_export-helper.c27b6911.js","./error-500.92b94fae.css"],import.meta.url).then(e=>e.default||e));return(e,d)=>(l(),m(s(_),E(f({statusCode:s(r),statusMessage:s(u),description:s(i),stack:s(p)})),null,16))}},x=g;export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as $,x as C,k as w,o as p,e as m,f as e,j as i,M as l,u as n,F as S,B as F,t as c,N as T,b as V,c as D,w as H,l as L,h as
|
|
1
|
+
import{a as $,x as C,k as w,o as p,e as m,f as e,j as i,M as l,u as n,F as S,B as F,t as c,N as T,b as V,c as D,w as H,l as L,h as f}from"./entry.b1094864.js";import{_ as j}from"./SectionBlock.885bbad5.js";import{e as z}from"./state.65ceafcf.js";import"./NIcon.vue.c1ad97a9.js";/* empty css */import"./_plugin-vue_export-helper.c27b6911.js";import"./asyncData.d544d421.js";const E={"w-full":""},I={border:"b base"},M={p1:"","ws-nowrap":"","select-none":"","text-right":"","font-bold":""},O={colspan:"2","font-bold":"",p1:"","text-left":"",pl5:""},A={p1:"","text-center":"","font-bold":"","ws-nowrap":""},P={p1:"","text-center":"","font-bold":"","ws-nowrap":""},R={p1:"","text-right":"","font-bold":"","ws-nowrap":""},q={"text-center":"","ws-nowrap":"","text-sm":"",op25:"","w-0":""},G={"text-sm":""},J={"ws-nowrap":""},K={"text-sm":""},Q={"text-center":"","text-sm":"","w-0":""},U={"text-center":"","text-sm":"","w-0":""},W=e("span",{op50:"","text-xs":"","ml-1":""},"ms",-1),X=$({__name:"HooksTable",props:{hooks:null},setup(b){const d=b,a=C("duration"),r=C("asc"),k={duration:(t,o)=>(o.duration??1/0)-(t.duration??1/0),name:(t,o)=>t.name.localeCompare(o.name),listener:(t,o)=>o.listeners-t.listeners,start:(t,o)=>o.start-t.start,executions:(t,o)=>o.executions.length-t.executions.length},g=w(()=>d.hooks.map(t=>t.start).sort((t,o)=>t-o)),x=w(()=>{const t=k[a.value],o=[...d.hooks].sort(t);return r.value==="desc"&&o.reverse(),o});function h(t){return t?t<1?"<1":t.toFixed(2):"-"}function v(t){const o=t.split(":");return o.length===1?"":`${o[0]}:`}function y(t){const o=t.split(":");return o.length===1?t:o.slice(1).join(":")}function B(t){return t?t<.5?"text-gray:50":t>1e3?"text-red-400":t>500?"text-orange-400":t>200?"text-yellow-400":"":"text-gray-400"}function N(t){let o=0;for(let _=0;_<t.length;_++)o=t.charCodeAt(_)+((o<<5)-o);return`hsl(${o%360}, 65%, 50%)`}function u(t){a.value===t?r.value=r.value==="asc"?"desc":"asc":a.value=t}return(t,o)=>(p(),m("table",E,[e("thead",I,[e("tr",null,[e("th",M,[e("button",{onClick:o[0]||(o[0]=s=>u("start"))},[i(" Order "),e("div",{"text-xs":"","ml--1":"",class:l([n(a)==="start"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",O,[e("button",{onClick:o[1]||(o[1]=s=>u("name"))},[i(" Hook name "),e("div",{"text-xs":"","ml--1":"",class:l([n(a)==="name"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",A,[e("button",{onClick:o[2]||(o[2]=s=>u("listener"))},[i(" Listeners "),e("div",{"text-xs":"","ml--1":"",class:l([n(a)==="listener"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",P,[e("button",{onClick:o[3]||(o[3]=s=>u("executions"))},[i(" Executions "),e("div",{"text-xs":"","ml--1":"",class:l([n(a)==="executions"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",R,[e("button",{onClick:o[4]||(o[4]=s=>u("duration"))},[i(" Duration "),e("div",{"text-xs":"","ml--1":"",class:l([n(a)==="duration"?"op50":"op0",n(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),e("tbody",null,[(p(!0),m(S,null,F(n(x),s=>(p(),m("tr",{key:s.name,border:"b dashed transparent hover:base"},[e("td",q,c(n(g).indexOf(s.start)),1),e("td",{"text-right":"","w-0":"","ws-nowrap":"",style:T({color:N(v(s.name))})},[e("code",G,c(v(s.name)),1)],4),e("td",J,[e("code",K,c(y(s.name)),1)]),e("td",Q,c(s.listeners),1),e("td",U,c(s.executions.length+1),1),e("td",{"text-right":"","text-sm":"","w-0":"",class:l(B(s.duration))},[i(c(h(s.duration)),1),W],2)]))),128))])]))}}),rt=$({__name:"hooks",setup(b){const d=z(),a=V(),r=w(()=>a.value?.getHooksMetrics());return(k,g)=>{const x=X,h=j;return p(),m("div",null,[n(r)?.length?(p(),D(h,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n(r).length}`,padding:"pl4 pr6"},{default:H(()=>[f(x,{hooks:n(r)},null,8,["hooks"])]),_:1},8,["description"])):L("",!0),f(h,{icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${n(d).length}`,padding:"pl4 pr6"},{default:H(()=>[f(x,{hooks:n(d)},null,8,["hooks"])]),_:1},8,["description"])])}}});export{rt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as D}from"./NTextInput.vue.b6c079ee.js";import{a as M,k as w,O as F,o as t,c as k,w as b,f as n,e as p,u as e,l as v,h as x,j as C,F as V,t as I,B,M as j,m as z,p as T,v as E,q as N,s as L,r as H,x as U}from"./entry.b1094864.js";import{_ as S}from"./FilepathItem.vue.31689a0a.js";import{r as K,_ as P}from"./NButton.vue.56759fc1.js";import{u as q,o as A}from"./editor.b2159474.js";import{_ as O}from"./SectionBlock.885bbad5.js";import{f as R,h as G,i as J,j as Q,g as W}from"./state.65ceafcf.js";import{F as X}from"./fuse.esm.88e2763d.js";import"./NIcon.vue.c1ad97a9.js";import"./nuxt-link.752dfef9.js";/* empty css */import"./StateEditor.vue.0f1b994b.js";import"./context.b32078d3.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./asyncData.d544d421.js";const Y={"hover:text-primary":""},Z={key:0,"text-primary":""},ee={"max-w-100":""},te={"text-sm":"",px4:"",py3:""},oe=["innerHTML"],se={flex:"~ gap2",n:"primary xs"},ae={border:"t base",px4:"",py3:""},ne={"text-sm":""},ie=n("span",{op50:""},"It has been referenced ",-1),le={"text-primary":""},re=n("span",{op50:""}," times by:",-1),me={flex:"~ col gap-2","text-sm":"","items-start":"",pt3:""},de={key:1,op50:"","text-sm":""},ue=M({__name:"ComposableItem",props:{item:null,metadata:null,filepath:null},setup(a){const r=a,y=q(),o=w(()=>r.item.as||r.item.name),d=w(()=>r.metadata?.injectionUsage?.[o.value]?.count||0),s=w(()=>r.metadata?.injectionUsage?.[o.value]?.moduleIds||[]);return(u,f)=>{const i=P,c=S,m=F("VDropdown");return t(),k(m,{disabled:!r.metadata},{popper:b(()=>[n("div",ee,[n("div",te,[a.item.meta?.description?(t(),p("div",{key:0,class:"markdown-body","text-sm":"",pb3:"",innerHTML:("renderMarkdown"in u?u.renderMarkdown:e(K))(a.item.meta.description)},null,8,oe)):v("",!0),n("div",se,[x(i,{"n-solid":"",onClick:f[0]||(f[0]=_=>e(y)(e(o)))},{default:b(()=>[C(" Copy ")]),_:1}),a.filepath?(t(),k(i,{key:0,"n-solid":"",onClick:f[1]||(f[1]=_=>a.filepath&&("openInEditor"in u?u.openInEditor:e(A))(a.filepath))},{default:b(()=>[C(" Source ")]),_:1})):v("",!0),a.item.meta?.docsUrl?(t(),k(i,{key:1,"n-solid":"",to:a.item.meta?.docsUrl,target:"_blank"},{default:b(()=>[C(" Docs ")]),_:1},8,["to"])):v("",!0)])]),n("div",ae,[e(d)?(t(),p(V,{key:0},[n("div",ne,[ie,n("strong",le,I(e(d)),1),re]),n("div",me,[(t(!0),p(V,null,B(e(s),_=>(t(),k(c,{key:_,filepath:_},null,8,["filepath"]))),128))])],64)):(t(),p("div",de," Not in use via auto import. "))])])]),default:b(()=>[n("button",Y,[n("code",{px2:"",py1:"",rounded:"","font-mono":"","text-sm":"","bg-gray:5":"",class:j(a.metadata&&!e(d)?"op30 hover:op100":"")},[C(I(e(o))+" ",1),e(d)?(t(),p("sup",Z,"x"+I(e(d)),1)):v("",!0)],2)])]),_:1},8,["disabled"])}}}),ce={flex:"~ wrap gap2",p2:"",pl4:""},pe=M({__name:"ComposableTree",props:{map:null,root:null,metadata:null},setup(a){return(r,y)=>{const o=S,d=ue;return t(),p("div",null,[(t(!0),p(V,null,B(a.map.entries(),([s,u])=>(t(),p("div",{key:s},[x(o,{filepath:s,op50:"","hover:underline":""},null,8,["filepath"]),n("div",ce,[(t(!0),p(V,null,B(u,f=>(t(),k(d,{key:f.as,item:f,metadata:a.metadata,filepath:s.match(/^[\w@]/)?void 0:s},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),fe=["checked","disabled"],_e=["disabled"],he=n("div",{class:"n-transition n-switch-slider n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base"},[n("div",{class:"n-transition n-switch-thumb n-checked:n-switch-thumb-checked"})],-1),be=M({__name:"NSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(a,{emit:r}){const o=z(a,"modelValue",r,{passive:!0});return(d,s)=>(t(),p("label",{class:"n-switch n-switch-base n-disabled:n-disabled",checked:e(o)||null,disabled:a.disabled||null},[T(n("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>N(o)?o.value=u:null),type:"checkbox",class:"absolute op0 peer",disabled:a.disabled,onKeypress:s[1]||(s[1]=L(u=>o.value=!e(o),["enter"]))},null,40,_e),[[E,e(o)]]),he,n("span",null,[H(d.$slots,"default")])],8,fe))}}),ve={key:0,"h-full":"","of-auto":""},ye={flex:"~ col gap4",border:"b base",px4:"","flex-1":"","navbar-glass":"",pt4:"",pb2:""},ke={key:0},ze=M({__name:"imports",setup(a){const r=R(),y=U(!1),o=U(""),d=G(),s=w(()=>d.value?.metadata),u=w(()=>d.value?.imports.filter(c=>c.as||c.name).sort((c,m)=>(c.as||c.name).localeCompare(m.as||m.name))||[]),f=w(()=>new X(u.value,{keys:["from","as","name"]})),i=w(()=>{const c=new Map,m=new Map,_=new Map;let $=o.value?f.value.search(o.value).map(l=>l.item):u.value;y.value&&s.value&&($=$.filter(l=>(l.as||l.name)in s.value.injectionUsage));const g={user:0,lib:0,builtin:0};return $.forEach(l=>{const h=J(l.from)?Q(W(l.from))?_:m:c;h.has(l.from)||h.set(l.from,[]),h.get(l.from).push(l),g[h===c?"user":h===m?"lib":"builtin"]++}),{user:c,lib:m,builtin:_,count:g}});return(c,m)=>{const _=D,$=be,g=pe,l=O;return e(r)?(t(),p("div",ve,[n("div",ye,[x(_,{modelValue:e(o),"onUpdate:modelValue":m[0]||(m[0]=h=>N(o)?o.value=h:null),placeholder:"Search...",icon:"carbon-search",p:"x5 y2",n:"primary"},null,8,["modelValue"]),e(s)?(t(),p("div",ke,[x($,{modelValue:e(y),"onUpdate:modelValue":m[1]||(m[1]=h=>N(y)?y.value=h:null),n:"primary sm"},{default:b(()=>[C(" Show used only ")]),_:1},8,["modelValue"])])):v("",!0)]),e(i).user.size?(t(),k(l,{key:0,icon:"carbon-function",text:"User composables",description:`${e(i).count.user} composables from ${e(i).user.size} modules`},{default:b(()=>[x(g,{map:e(i).user,root:e(r).rootDir,metadata:e(s)},null,8,["map","root","metadata"])]),_:1},8,["description"])):v("",!0),e(i).builtin.size?(t(),k(l,{key:1,icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${e(i).count.builtin} composables`},{default:b(()=>[x(g,{map:e(i).builtin,root:e(r).rootDir,metadata:e(s)},null,8,["map","root","metadata"])]),_:1},8,["description"])):v("",!0),e(i).lib.size?(t(),k(l,{key:2,icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${e(i).count.lib} composables from ${e(i).lib.size} packages`},{default:b(()=>[x(g,{map:e(i).lib,root:e(r).rootDir,metadata:e(s)},null,8,["map","root","metadata"])]),_:1},8,["description"])):v("",!0)])):v("",!0)}}});export{ze as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a}from"./NuxtLogo.
|
|
1
|
+
import{_ as a}from"./NuxtLogo.9303af79.js";import{_ as c}from"./Badge.d9b6d9b1.js";import{_ as p}from"./NButton.vue.56759fc1.js";import{a as _,e as l,f as e,h as o,w as m,i as u,j as t,o as d}from"./entry.b1094864.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./NIcon.vue.c1ad97a9.js";import"./nuxt-link.752dfef9.js";/* empty css */import"./StateEditor.vue.0f1b994b.js";const x={flex:"~ col gap4","h-screen":"","items-center":"","justify-center":"","text-center":"","w-160":"",mxa:""},f={flex:"~","justify-center":"","items-center":""},h=e("p",{"text-xl":"","font-bold":"",my2:""}," 👋 Welcome trying the preview of Nuxt DevTools! ",-1),v=e("p",{"text-lg":""},[e("b",{"font-bold":""},"Nuxt DevTools"),t(" is a set of visual tools that help you to know your app/site better, and enhance your development experience with Nuxt. ")],-1),g=e("p",{"text-lg":""},[t(" Be aware that "),e("span",{px2:"",rounded:"","font-bold":"","bg-orange:10":"","py0.5":"","text-orange":""},"Nuxt DevTools is still in early preview"),t(", features might be incomplete and unstable. "),e("a",{href:"https://github.com/nuxt/devtools",target:"_blank","text-primary":"","hover-underline":""},"Create an issue or discussion"),t(" if you find any bugs or have any suggestions. Thank you and have fun! ")],-1),y=e("span",null,"Get Started",-1),G=_({__name:"index",setup(b){function n(){u.value=!1}return(w,N)=>{const s=a,i=c,r=p;return d(),l("div",x,[e("div",f,[o(s,{"h-16":""}),o(i,{"bg-green-400:10":"","text-green-400":"","mr--15":"","mt--5":"",title:"preview",textContent:"preview"})]),h,v,g,o(r,{to:"/modules/overview","mt-4":"",n:"xl primary",onClick:n},{default:m(()=>[y]),_:1})])}}});export{G as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./state.65ceafcf.js";import{a as t,e as o,f as s,t as r,u as n,o as u}from"./entry.b1094864.js";import"./asyncData.d544d421.js";const f=t({__name:"layouts",setup(l){const e=a();return(p,c)=>(u(),o("div",null,[s("pre",null,r(n(e)),1)]))}});export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,e as a,o as n}from"./entry.
|
|
1
|
+
import{a as e,e as a,o as n}from"./entry.b1094864.js";const s=e({__name:"middleware",setup(o){return(t,r)=>(n(),a("div",null," WIP "))}});export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as V}from"./nuxt-link.
|
|
1
|
+
import{_ as V}from"./nuxt-link.752dfef9.js";import{_ as E}from"./FilepathItem.vue.31689a0a.js";import{f as I,i as $,g as T,k as L,l as A}from"./state.65ceafcf.js";import{a as j,k,P as H,o,e as n,f as a,u as t,c as f,w as m,j as P,t as h,J,l as c,h as b,F as w,B as M,x as C,H as O}from"./entry.b1094864.js";import{_ as U}from"./SectionBlock.885bbad5.js";import"./editor.b2159474.js";import"./context.b32078d3.js";import"./asyncData.d544d421.js";import"./NIcon.vue.c1ad97a9.js";/* empty css */import"./_plugin-vue_export-helper.c27b6911.js";const q={border:"~ base",p4:"",flex:"~ gap2"},z={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},G={"text-lg":"","of-hidden":"","ws-nowrap":"","text-ellipsis":""},K={key:2},Q={key:0,op50:"","text-sm":"","mt--1":""},R=a("div",{"flex-auto":""},null,-1),W={key:1,flex:"~ gap-2",title:"Documentation"},X=a("span",{"text-lg":"",op50:"","i-carbon-link":""},null,-1),Y={key:2,flex:"~ gap-2"},Z=a("span",{"text-lg":"",op50:"","i-carbon-logo-github":""},null,-1),tt={key:3,flex:"~ gap-2",title:"Open on filesystem"},et=a("span",{"text-lg":"",op50:"","i-carbon-folder-move-to":""},null,-1),ot={flex:"~ col"},nt={key:0,p4:"",rounded:"","flex-none":"","h-20":"","w-20":"","bg-gray:3":"",flex:""},at=["src","alt"],st=a("div",{op50:"",ma:"","i-carbon-circle-dash":"","text-4xl":""},null,-1),rt={key:1,flex:"~","items-end":"","flex-auto":"",mt2:"","justify-end":""},it=["src"],lt=j({__name:"ModuleItem",props:{mod:null},async setup(u){let p,x;const r=u,d=I(),i=k(()=>r.mod.entryPath&&$(r.mod.entryPath)),s=k(()=>r.mod.meta?.name?r.mod.meta.name:r.mod.entryPath?i.value?T(r.mod.entryPath):d.value?.rootDir?L(r.mod.entryPath,d.value?.rootDir):"":""),B=([p,x]=H(()=>A()),p=await p,x(),p),e=k(()=>({name:s,...r.mod?.meta,...(B||[]).find?.(_=>_.npm===s.value||_.name===s.value)})),y="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",l="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",F="https://github.com/",D="https://www.npmjs.com/package/";return(_,N)=>{const v=V,S=E;return o(),n("div",q,[a("div",z,[a("div",G,[t(i)?(o(),f(v,{key:0,to:D+(t(e).npm||t(e).name),target:"_blank",hover:"underline text-primary"},{default:m(()=>[P(h(t(e).name),1)]),_:1},8,["to"])):u.mod.entryPath?(o(),n("button",{key:1,role:"button",hover:"underline text-primary",onClick:N[0]||(N[0]=g=>("rpc"in _?_.rpc:t(J)).openInEditor(u.mod.entryPath))},h(t(e).name),1)):(o(),n("span",K,h(t(e).name),1))]),t(e).description?(o(),n("div",Q,h(t(e).description),1)):c("",!0),R,t(e).website?(o(),n("div",W,[X,b(v,{to:t(e).website,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:m(()=>[P(h(t(e).website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):c("",!0),t(e).github?(o(),n("div",Y,[Z,b(v,{to:t(e).github,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:m(()=>[P(h(t(e).github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):c("",!0),u.mod.entryPath?(o(),n("div",tt,[et,b(S,{filepath:u.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):c("",!0)]),a("div",ot,[t(e).icon||t(i)?(o(),n("div",nt,[t(e).icon?(o(),n("img",{key:0,src:y+t(e).icon,alt:t(s),ma:""},null,8,at)):c("",!0),st])):c("",!0),t(e).maintainers?.length?(o(),n("div",rt,[(o(!0),n(w,null,M(t(e).maintainers,g=>(o(),f(v,{key:g.name,target:"_blank",to:F+g.github,title:g.name},{default:m(()=>[a("img",{src:l+g.github,"rounded-full":"","w-6":"","h-6":""},null,8,it)]),_:2},1032,["to","title"]))),128))])):c("",!0)])])}}}),ct=a("div",null,[a("span",{op50:""},"Find more modules at "),a("a",{href:"https://nuxt.com/modules",target:"_blank",hover:"text-primary underline"},"nuxt.com/modules")],-1),kt=j({__name:"modules",setup(u){const p=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"],x=I(),r=k(()=>x.value?._installedModules||[]),d=C([]),i=C([]);return O(()=>{d.value.length=0,i.value.length=0;for(const s of r.value)p.includes(s.meta?.name)||(s.entryPath&&$(s.entryPath)?d.value.push(s):i.value.push(s))}),(s,B)=>{const e=lt,y=U;return o(),n("div",null,[b(y,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap2",description:`Total modules: ${t(d).length}`},{footer:m(()=>[ct]),default:m(()=>[(o(!0),n(w,null,M(t(d),l=>(o(),f(e,{key:l.meta?.name||l.entryPath,mod:l},null,8,["mod"]))),128))]),_:1},8,["description"]),t(i).length?(o(),f(y,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap2",description:`Total modules: ${t(i).length}`},{default:m(()=>[(o(!0),n(w,null,M(t(i),l=>(o(),f(e,{key:l.meta?.name||l.entryPath,mod:l},null,8,["mod"]))),128))]),_:1},8,["description"])):c("",!0)])}}});export{kt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./_plugin-vue_export-helper.c27b6911.js";import{r as o}from"./entry.
|
|
1
|
+
import{_ as e}from"./_plugin-vue_export-helper.c27b6911.js";import{r as o}from"./entry.b1094864.js";const t={};function n(r,s){return o(r.$slots,"default")}const _=e(t,[["render",n]]);export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a3 as h,C as y,a as C,k as b,ac as _,x as g,y as k,ad as q,a7 as p,O as P,ae as A}from"./entry.b1094864.js";const m=globalThis.requestIdleCallback||(t=>{const a=Date.now(),e={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-a))};return setTimeout(()=>{t(e)},1)}),R=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),T=t=>{const a=h();a.isHydrating?a.hooks.hookOnce("app:suspense:resolve",()=>{m(t)}):m(t)};async function x(t,a=y()){if(a._routePreloaded||(a._routePreloaded=new Set),a._routePreloaded.has(t))return;const e=a._preloadPromises=a._preloadPromises||[];if(e.length>4)return Promise.all(e).then(()=>x(t,a));a._routePreloaded.add(t);const o=a.resolve(t).matched.map(l=>l.components?.default).filter(l=>typeof l=="function");for(const l of o){const n=Promise.resolve(l()).catch(()=>{}).finally(()=>e.splice(e.indexOf(n)));e.push(n)}await Promise.all(e)}const N=(...t)=>t.find(a=>a!==void 0),S="noopener noreferrer";function w(t){const a=t.componentName||"NuxtLink";return C({name:a,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:o}){const l=y(),n=b(()=>e.to||e.href||""),c=b(()=>e.external||e.target&&e.target!=="_self"?!0:typeof n.value=="object"?!1:n.value===""||_(n.value,!0)),d=g(!1),s=g(null);if(e.prefetch!==!1&&e.noPrefetch!==!0&&typeof n.value=="string"&&e.target!=="_blank"&&!E()){const f=h();let u,i=null;k(()=>{const v=B();T(()=>{u=m(()=>{s?.value?.tagName&&(i=v.observe(s.value,async()=>{i?.(),i=null,await Promise.all([f.hooks.callHook("link:prefetch",n.value).catch(()=>{}),!c.value&&x(n.value,l).catch(()=>{})]),d.value=!0}))})})}),q(()=>{u&&R(u),i?.(),i=null})}return()=>{if(!c.value)return p(P("RouterLink"),{ref:v=>{s.value=v?.$el},to:n.value,...d.value&&!e.custom?{class:e.prefetchedClass||t.prefetchedClass}:{},activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom},o.default);const r=typeof n.value=="object"?l.resolve(n.value)?.href??null:n.value||null,f=e.target||null,u=e.noRel?null:N(e.rel,t.externalRelAttribute,r?S:"")||null,i=()=>A(r,{replace:e.replace});return e.custom?o.default?o.default({href:r,navigate:i,route:l.resolve(r),rel:u,target:f,isExternal:c.value,isActive:!1,isExactActive:!1}):null:p("a",{ref:s,href:r,rel:u,target:f},o.default?.())}}})}const L=w({componentName:"NuxtLink"});function B(){const t=h();if(t._observer)return t._observer;let a=null;const e=new Map,o=(n,c)=>(a||(a=new IntersectionObserver(d=>{for(const s of d){const r=e.get(s.target);(s.isIntersecting||s.intersectionRatio>0)&&r&&r()}})),e.set(n,c),a.observe(n),()=>{e.delete(n),a.unobserve(n),e.size===0&&(a.disconnect(),a=null)});return t._observer={observe:o}}function E(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}export{L as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as N}from"./NuxtLogo.
|
|
1
|
+
import{_ as N}from"./NuxtLogo.9303af79.js";import{_ as B}from"./Badge.d9b6d9b1.js";import{_ as j}from"./nuxt-link.752dfef9.js";import{_ as S}from"./Settings.vue.dda6fcf5.js";import{a as D,b as I,k as R,C as F,e as i,u as t,f as e,h as p,j as c,t as l,F as x,c as a,l as s,w as r,i as L,O as W,o,Q as $}from"./entry.b1094864.js";import{f as A,m as P,c as T,h as U,n as E}from"./state.65ceafcf.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./NButton.vue.56759fc1.js";import"./NIcon.vue.c1ad97a9.js";/* empty css */import"./StateEditor.vue.0f1b994b.js";import"./asyncData.d544d421.js";const M="0.1.6",O={"h-full":"","w-full":"",flex:""},Q={key:0},q={key:1,flex:"~ col gap2","w-full":"","h-full":"",ma:"","max-w-300":"",p10:"",px20:""},z=e("div",{"flex-auto":""},null,-1),G={flex:"~ col","items-center":"","mt-20":""},H={flex:"~","justify-center":"","items-center":"","mt--10":""},J={"text-center":"","text-sm":"","mt--1":"",op30:"",mb6:""},K={flex:"~ gap2 wrap"},X={key:0,p4:"","theme-card-green":"",flex:"~ col auto"},Y=e("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),Z=e("div",{"text-3xl":"","carbon-tree-view-alt":""},null,-1),ee=e("div",{"text-3xl":"","carbon-nominal":""},null,-1),te=e("div",{"text-3xl":"","carbon-function":""},null,-1),oe=e("div",{"text-3xl":"","carbon-3d-mpr-toggle":""},null,-1),ne=e("div",{"text-3xl":"","carbon-plug":""},null,-1),se={flex:"~ col gap2"},ie={key:0,px4:"","theme-banner-yellow":"","justify-center":""},le=e("span",{"flex-none":"","i-carbon-unlink":""},null,-1),ae={flex:"~ gap-6 wrap","items-center":"","justify-center":"","mt-5":""},re=e("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[e("div",{"i-carbon-data-enrichment":""}),c(" Ideas & Suggestions ")],-1),ce=e("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[e("div",{"i-carbon-plan":""}),c(" Project Roadmap ")],-1),ue=e("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[e("div",{"i-carbon-debug":""}),c(" Bug Reports ")],-1),de=e("button",{flex:"~ gap1","items-center":"",mxa:"","inline-block":"",op50:"","hover:op80":""},[e("div",{"i-carbon-settings":""}),c(" Settings ")],-1),me=e("div",{"flex-auto":""},null,-1),Be=D({__name:"overview",setup(pe){const g=I(),n=A(),f=P(),v=T(),h=U(),b=E(),d=R(()=>f.value?.find(m=>m.name==="nuxt")),k=F();function w(){L.value=!0,k.push("/")}return(m,_e)=>{const y=N,_=B,u=j,C=S,V=W("VDropdown");return o(),i("div",O,[t(n)?(o(),i("div",q,[z,e("div",G,[e("div",H,[p(y,{"h-18":""}),e("button",{"mr--16":"","mt--6":"",onClick:w},[p(_,{"bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})])]),e("div",J,[c(" Nuxt DevTools "),e("code",null,"v"+l(t(M)),1)])]),e("div",K,[t(d)?(o(),i("div",X,[Y,e("code",null,l(`v${t(d).current}`),1),t(d).latest?(o(),i(x,{key:0},[t(d).needsUpdate?(o(),a(_,{key:0,"bg-green-400:10":"","text-green-400":"","mt--1":"",title:"updates available",textContent:"updates available"})):(o(),a(_,{key:1,"bg-gray-400:10":"","text-gray-400":"","mt--1":"",title:"latest",textContent:"latest"}))],64)):s("",!0)])):s("",!0),t(n)?(o(),i(x,{key:1},[t(n)&&t(n).pages&&t(g)?(o(),a(u,{key:0,p4:"","theme-card-lime":"","min-w-40":"",flex:"~ col auto",to:"/modules/pages"},{default:r(()=>[Z,e("div",null,l(t(b).length)+" pages",1)]),_:1})):s("",!0),t(n)?(o(),a(u,{key:1,p4:"","theme-card-lime":"","min-w-40":"",flex:"~ col auto",to:"/modules/components"},{default:r(()=>[ee,e("div",null,l(t(v).length)+" components",1)]),_:1})):s("",!0),t(n)&&t(h)?(o(),a(u,{key:2,p4:"","min-w-40":"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:r(()=>[te,e("div",null,l(t(h).imports.length)+" imports",1)]),_:1})):s("",!0),t(n)?(o(),a(u,{key:3,p4:"","min-w-40":"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:r(()=>[oe,e("div",null,l(t(n)._installedModules.length)+" modules",1)]),_:1})):s("",!0),t(n)?(o(),a(u,{key:4,p4:"","min-w-40":"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:r(()=>[ne,e("div",null,l(t(n).plugins.length)+" plugins",1)]),_:1})):s("",!0)],64)):s("",!0)]),e("div",se,[("showConnectionWarning"in m?m.showConnectionWarning:t($))?(o(),i("div",ie,[le,c("Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")])):s("",!0)]),e("div",ae,[re,ce,ue,p(V,null,{popper:r(()=>[p(C)]),default:r(()=>[de]),_:1})]),me])):(o(),i("div",Q," Loading... "))])}}});export{Be as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./NTextInput.vue.
|
|
1
|
+
import{_ as S}from"./NTextInput.vue.b6c079ee.js";import{_ as U}from"./Badge.d9b6d9b1.js";import{_ as j}from"./NButton.vue.56759fc1.js";import{a as B,x as L,k as b,O as D,u as e,o,e as s,f as t,t as k,c as w,w as C,R as F,F as v,B as V,l as $,h as x,j as P,M as I,S as K,T as z,U as T,G as A,q as O,s as W,J as q}from"./entry.b1094864.js";import{p as G,f as J,u as H,a as Q,o as X}from"./state.65ceafcf.js";import{o as E}from"./editor.b2159474.js";import{_ as Y}from"./SectionBlock.885bbad5.js";import{_ as Z}from"./LaunchPage.vue.65011890.js";import"./NIcon.vue.c1ad97a9.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./nuxt-link.752dfef9.js";/* empty css */import"./StateEditor.vue.0f1b994b.js";import"./asyncData.d544d421.js";import"./context.b32078d3.js";import"./TabIcon.vue.8d3722ca.js";const ee={block:"","cursor-pointer":""},te={p2:""},oe=["onSubmit"],ne=t("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),ae={flex:"~","items-center":"","font-mono":"",p2:"","text-sm":""},se={key:1},re=B({__name:"RoutePathItem",props:{route:null},emits:["navigate"],setup(m,{emit:p}){const i=m,h=L([]),c=b(()=>{const n=G(i.route.path);return h.value=Array.from({length:n.length},()=>""),n}),u=b(()=>c.value.map((n,a)=>n[0]===":"?h.value[a]:n).join("").replace(/\/+/g,"/")),d=b(()=>i.route.path.includes(":"));function r(){p("navigate",u.value)}return(n,a)=>{const R=S,l=j,g=D("VDropdown");return e(d)?(o(),w(g,{key:1},{popper:C(({hide:_})=>[t("div",te,[t("form",{flex:"~ col",onSubmit:F(()=>{r(),_()},["prevent"])},[e(d)?(o(),s(v,{key:0},[ne,t("div",ae,[(o(!0),s(v,null,V(e(c),(f,y)=>(o(),s(v,{key:y},[f[0]===":"?(o(),w(R,{key:0,modelValue:e(h)[y],"onUpdate:modelValue":N=>e(h)[y]=N,"w-20":"","n-sm":"",placeholder:f.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",se,k(f),1))],64))),128))])],64)):$("",!0),x(l,{block:"",n:"primary"},{default:C(()=>[P(" Navigate ")]),_:1})],40,oe)])]),default:C(()=>[t("code",ee,[(o(!0),s(v,null,V(e(c),(_,f)=>(o(),s("span",{key:f,class:I(_[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},k(_[0]===":"?_.slice(1):_),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:r},[t("code",null,k(m.route.path),1)]))}}}),le={"w-full":""},ie=t("thead",{border:"b base"},[t("tr",null,[t("th",{"text-left":""}),t("th",{"text-left":""}," Route Path "),t("th",{"text-left":""}," Name "),t("th",null," Layout ")])],-1),ue={"w-20":"","pr-1":""},ce={"justify-end":"","items-center":"",flex:""},pe={"text-sm":""},de={flex:"inline gap3","items-center":""},me={op0:"","group-hover:op100":"",flex:"~ gap1"},he=["onClick"],_e=t("div",{"i-carbon-script-reference":""},null,-1),fe=[_e],ge={"text-left":"","font-mono":"",op50:"","text-sm":"","w-0":"","ws-nowrap":"","pr-1":""},ve={"text-center":"","font-mono":"","w-0":"","ws-nowrap":"","text-sm":""},ye={key:0},xe=["onClick"],be=B({__name:"RoutesTable",props:{pages:null,layouts:null,matched:null,matchedPending:null},emits:["navigate"],setup(m){const p=m,i=b(()=>[...p.pages].sort((c,u)=>c.path.localeCompare(u.path)));function h(c){const u=p.layouts.find(d=>d.name===c);u&&E(u.file)}return(c,u)=>{const d=U,r=re;return o(),s("div",null,[t("table",le,[ie,t("tbody",null,[(o(!0),s(v,null,V(e(i),n=>(o(),s("tr",{key:n.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[t("td",ue,[t("div",ce,[m.matched.find(a=>a.name===n.name)?(o(),w(d,{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):$("",!0),m.matchedPending.find(a=>a.name===n.name)?(o(),w(d,{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):$("",!0)])]),t("td",pe,[t("div",de,[x(r,{route:n,class:I(m.matched.find(a=>a.name===n.name)?"text-primary":m.matchedPending.find(a=>a.name===n.name)?"text-teal":""),onNavigate:u[0]||(u[0]=a=>c.$emit("navigate",a))},null,8,["route","class"]),t("div",me,[n.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:a=>("openInEditor"in c?c.openInEditor:e(E))(n.file)},fe,8,he)):$("",!0)])])]),t("td",ge,k(n.name),1),t("td",ve,[n.meta.layout===!1?(o(),s("span",ye,"-")):n.meta.layout?(o(),s("button",{key:1,onClick:a=>h(n.meta.layout)},k(n.meta.layout),9,xe)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:u[1]||(u[1]=a=>h("default"))}," (default) "))])]))),128))])])])}}}),ke={key:0,"h-full":"","of-auto":""},$e={border:"b base",flex:"~ col gap1","navbar-glass":"",px6:"",py4:""},we=t("span",{op50:""},"Navigate from ",-1),Ce={"font-mono":""},Re=t("span",{op50:""}," to ",-1),Ne={key:1,op50:""},Ve=t("span",null,[P("Press "),t("b",{"font-bold":""},"Enter"),P(" to navigate")],-1),Pe={key:0,"text-orange":"",op75:""},Be={key:1,op50:""},Ge=B({__name:"pages",setup(m){const p=K(),i=z(),h=J(),c=H(),u=Q(),d=b(()=>(p.value?.getRoutes()||[]).map(l=>X(l,["path","name","meta","props","children"])).map(l=>({...c.value?.find(g=>g.name&&g.name===l.name),...l}))),r=L("");T(i).toBeTruthy().then(l=>{r.value=l.path}),T(p).toBeTruthy().then(l=>{l.afterEach(()=>{A(()=>{r.value=i.value.path})})});async function n(){r.value!==i.value.path&&p.value.push(r.value||"/")}const a=b(()=>r.value===i.value.path?[]:p.value.resolve(r.value||"/").matched);function R(l){p.value.push(l)}return(l,g)=>{const _=S,f=be,y=Y,N=Z;return e(h)?.pages&&e(p)?(o(),s("div",ke,[t("div",$e,[t("div",null,[e(i).path!==e(r)?(o(),s(v,{key:0},[we,t("span",Ce,k(e(i).path),1),Re],64)):(o(),s("span",Ne,"Current route"))]),x(_,{modelValue:e(r),"onUpdate:modelValue":g[0]||(g[0]=M=>O(r)?r.value=M:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:I(e(i).path===e(r)?"":e(a).length?"text-green":"text-orange"),onKeydown:W(n,["enter"])},null,8,["modelValue","class","onKeydown"]),t("div",null,[e(i).path!==e(r)?(o(),s(v,{key:0},[Ve,e(a).length?$("",!0):(o(),s("span",Pe," (no match)"))],64)):(o(),s("span",Be,"Edit path above to navigate"))])]),e(a).length?(o(),w(y,{key:0,icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:C(()=>[x(f,{pages:e(a),layouts:e(u)||[],matched:[],"matched-pending":e(a),onNavigate:R},null,8,["pages","layouts","matched-pending"])]),_:1})):$("",!0),x(y,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${e(d).length} routes registered in your application`,padding:"pr5"},{default:C(()=>[x(f,{pages:e(d),layouts:e(u)||[],matched:e(i).matched,"matched-pending":e(a),onNavigate:R},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"])])):(o(),w(N,{key:1,icon:"carbon-tree-view-alt",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",handle(){return("rpc"in l?l.rpc:e(q)).runWizard("enablePages")}}]},null,8,["actions"]))}}});export{Ge as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as p}from"./StateEditor.vue.3374c6ec.js";import"./StateEditor.vue.0f1b994b.js";import{a as _,o as s,e as c,F as x,B as h,h as o,b as y,k as b,u as n,w as l,c as k,l as m}from"./entry.b1094864.js";import{_ as S}from"./SectionBlock.885bbad5.js";import"./composables.80d3af7a.js";import"./NIcon.vue.c1ad97a9.js";/* empty css */import"./_plugin-vue_export-helper.c27b6911.js";const g={key:1,italic:"",op35:"",mt2:"",px4:""},v=_({__name:"StateGroup",props:{state:null,prefix:{default:""}},setup(e){return(i,a)=>{const u=p;return s(),c("div",null,[e.state&&Object.keys(e.state).length>0?(s(!0),c(x,{key:0},h(e.state,(d,t)=>(s(),c("div",{key:t},[o(u,{state:d,name:t.startsWith(e.prefix)?t.slice(e.prefix.length):t},null,8,["state","name"])]))),128)):(s(),c("div",g," No data "))])}}}),B={key:0},G=_({__name:"payload",setup(e){const i=y(),a=b(()=>i.value?.nuxt.payload);return(u,d)=>{const t=v,r=S,f=p;return n(i)?(s(),c("div",B,[o(r,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:l(()=>[o(t,{state:n(a).state,prefix:"$s"},null,8,["state"])]),_:1}),o(r,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{default:l(()=>[o(t,{state:n(a).data},null,8,["state"])]),_:1}),n(a).functions&&Object.keys(n(a).functions).length?(s(),k(r,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions (experimental)"},{default:l(()=>[o(f,{"ml--6":"",state:n(a).functions},null,8,["state"])]),_:1})):m("",!0)])):m("",!0)}}});export{G as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as h}from"./Badge.
|
|
1
|
+
import{_ as h}from"./Badge.d9b6d9b1.js";import{f,k}from"./state.65ceafcf.js";import{o as v}from"./editor.b2159474.js";import{a as x,k as _,o as e,e as d,f as l,t as g,u as t,M as y,c as a,l as u,h as C,w as b,F as B,B as I}from"./entry.b1094864.js";import{_ as P}from"./SectionBlock.885bbad5.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./asyncData.d544d421.js";import"./context.b32078d3.js";import"./NIcon.vue.c1ad97a9.js";/* empty css */const $={flex:"~ gap2","items-center":""},E={op25:"","text-right":"","text-sm":"",w8:""},S={"font-mono":"","text-sm":""},w=x({__name:"PluginItem",props:{plugin:null,index:null},setup(p){const n=p,m=f(),i=_(()=>typeof n.plugin=="string"?{src:n.plugin}:n.plugin),r=_(()=>m.value?k(i.value.src,m.value.rootDir,!0):"");return(c,o)=>{const s=h;return e(),d("div",$,[l("div",E,g(p.index),1),l("button",{"hover:underline":"",class:y(t(r).startsWith(".")?"":"op50"),onClick:o[0]||(o[0]=V=>("openInEditor"in c?c.openInEditor:t(v))(t(i).src))},[l("code",S,g(t(r)),1)],2),l("div",null,[t(r).startsWith("#")?(e(),a(s,{key:0,"bg-rose-400:10":"","text-rose-400":"",textContent:"virtual"})):t(r).startsWith(".")?u("",!0):(e(),a(s,{key:1,"bg-gray-400:10":"","text-gray-400":"",textContent:"module"})),t(i).mode==="server"?(e(),a(s,{key:2,"bg-teal-400:10":"","text-teal-400":"",textContent:"server"})):u("",!0),t(i).mode==="client"?(e(),a(s,{key:3,"bg-orange-400:10":"","text-orange-400":"",textContent:"client"})):u("",!0)])])}}}),N={key:0},G=x({__name:"plugins",setup(p){const n=f();return(m,i)=>{const r=w,c=P;return t(n)?(e(),d("div",N,[C(c,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${t(n).plugins.length}`},{default:b(()=>[(e(!0),d(B,null,I(t(n).plugins,(o,s)=>(e(),a(r,{key:typeof o=="string"?o:o.src,plugin:o,index:s+1,py2:"","ml--4":"",border:"b base"},null,8,["plugin","index"]))),128))]),_:1},8,["description"])])):u("",!0)}}});export{G as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as m}from"./StateEditor.vue.
|
|
1
|
+
import{_ as m}from"./StateEditor.vue.3374c6ec.js";import"./StateEditor.vue.0f1b994b.js";import{_ as u}from"./SectionBlock.885bbad5.js";import{a as _,b as f,k as r,u as o,e as d,h as e,w as s,l as g,o as C}from"./entry.b1094864.js";import{f as v}from"./state.65ceafcf.js";import"./composables.80d3af7a.js";import"./NIcon.vue.c1ad97a9.js";/* empty css */import"./_plugin-vue_export-helper.c27b6911.js";import"./asyncData.d544d421.js";const x={key:0},V=_({__name:"runtime-configs",setup(b){const n=f(),c=v(),l=r(()=>n.value?.nuxt.payload),p=r(()=>{const t={...c.value?.runtimeConfig};return delete t.public,delete t.app,t});return(t,h)=>{const a=m,i=u;return o(n)?(C(),d("div",x,[e(i,{icon:"carbon-settings-services",text:"App Config"},{default:s(()=>[e(a,{"ml--6":"",state:o(n).appConfig},null,8,["state"])]),_:1}),e(i,{icon:"carbon-settings",text:"Public Runtime Config"},{default:s(()=>[e(a,{"ml--6":"",state:o(l).config?.public},null,8,["state"])]),_:1}),e(i,{icon:"carbon-locked",open:!1,text:"Private Runtime Config",description:"These values are not exposed to the client. Readonly in the DevTools."},{default:s(()=>[e(a,{"ml--6":"",state:o(p),readonly:""},null,8,["state"])]),_:1})])):g("",!0)}}});export{V as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,e as o,o as r}from"./entry.
|
|
1
|
+
import{a as e,e as o,o as r}from"./entry.b1094864.js";const c=e({__name:"server-routes",setup(t){return(n,a)=>(r(),o("div",null," WIP "))}});export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a3 as h,b as v,k as l,C,S,J as a,$ as b}from"./entry.b1094864.js";import{u as P}from"./asyncData.d544d421.js";function x(e=""){return!e||!e.includes("\\")?e:e.replace(/\\/g,"/")}const A=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function y(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const d=function(...e){e=e.map(t=>x(t));let s="",n=!1;for(let t=e.length-1;t>=-1&&!n;t--){const r=t>=0?e[t]:y();!r||r.length===0||(s=`${r}/${s}`,n=g(r))}return s=$(s,!n),n&&!g(s)?`/${s}`:s.length>0?s:"."};function $(e,s){let n="",t=0,r=-1,o=0,c=null;for(let u=0;u<=e.length;++u){if(u<e.length)c=e[u];else{if(c==="/")break;c="/"}if(c==="/"){if(!(r===u-1||o===1))if(o===2){if(n.length<2||t!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const p=n.lastIndexOf("/");p===-1?(n="",t=0):(n=n.slice(0,p),t=n.length-1-n.lastIndexOf("/")),r=u,o=0;continue}else if(n.length>0){n="",t=0,r=u,o=0;continue}}s&&(n+=n.length>0?"/..":"..",t=2)}else n.length>0?n+=`/${e.slice(r+1,u)}`:n=e.slice(r+1,u),t=u-r-1;r=u,o=0}else c==="."&&o!==-1?++o:o=-1}return n}const g=function(e){return A.test(e)},I=function(e,s){const n=d(e).split("/"),t=d(s).split("/"),r=[...n];for(const o of r){if(t[0]!==o)break;n.shift(),t.shift()}return[...n.map(()=>".."),...t].join("/")};function R(e){return!!e.match(/[/\\]node_modules[/\\]/)||m(e)}function m(e){return e[0]==="#"||!!e.match(/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/)}function N(e){if(m(e))return e;const s=e.replace(/\\/g,"/").match(/.*\/node_modules\/(.*)$/)?.[1];if(s)return s.startsWith("@")?s.split("/").slice(0,2).join("/"):s.split("/")[0]}function _(e){if(m(e))return e;const s=e.replace(/\\/g,"/").match(/.*\/node_modules\/(.*)$/)?.[1];if(s)return s}function q(e){if(e)return["nuxt","#app","#head","vue"].includes(e)}function L(e,s,n=!1){if(R(e))return n?_(e):N(e);try{let t=I(s,e);return!t.startsWith("./")&&!t.startsWith("../")&&(t=`./${t}`),t.startsWith("./.nuxt/")&&(t=`#build${t.slice(7)}`),t}catch{return e}}function M(e){return e.split(/(:\w+[\?\*]?)/).filter(Boolean)}function i(e,s,n){const t=h();return t.payload.unique||(t.payload.unique={}),t.payload.unique[e]||(t.payload.unique[e]=P(e,s,n)),t.payload.unique[e].data}function W(e,s,n=!1){return s.reduce((t,r)=>(r in e&&(!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}let f;async function j(){return f||(f=await b("https://cdn.jsdelivr.net/npm/@nuxt/modules@latest/modules.json"),f)}function O(){const e=v(),s=i("getComponents",()=>a.getComponents()),n=l(()=>Object.entries(e.value?.nuxt?.vueApp._context.components||{}).map(([t])=>({pascalName:t,global:!0})).filter(t=>!(s.value||[]).find(r=>r.pascalName===t.pascalName)));return l(()=>[...n.value,...s.value||[]].sort((t,r)=>t.pascalName.localeCompare(r.pascalName)))}function B(){return i("usePackageVersions",()=>a.usePackageVersions())}function z(){return i("getServerPages",()=>a.getServerPages())}function E(){return i("getComponentsRelationships",()=>a.getComponentsRelationships())}function H(){return i("getServerHooks",()=>a.getServerHooks(),{default:()=>[]})}function V(){return i("getServerLayouts",()=>a.getServerLayouts())}function F(){return i("getAutoImports",()=>a.getAutoImports())}function D(){return i("getServerConfig",()=>a.getServerConfig())}function k(){return i("getCustomTabs",()=>a.getCustomTabs())}function J(){const e=C(),s=k(),n=l(()=>e.getRoutes().filter(o=>o.path.startsWith("/modules/")&&o.meta.title&&!o.meta.wip).sort((o,c)=>(o.meta.order||100)-(c.meta.order||100)).map(o=>({name:o.name,path:o.path,...o.meta}))),t=l(()=>(s.value||[]).filter(o=>o.name.startsWith("builtin-"))),r=l(()=>(s.value||[]).filter(o=>!o.name.startsWith("builtin-")));return{custom:r,builtin:l(()=>[...n.value,...t.value]),all:l(()=>[...n.value,...t.value,...r.value])}}function U(){const e=S(),s=z();return l(()=>(e.value?.getRoutes()||[]).map(n=>W(n,["path","name","meta","props","children"])).map(n=>({...s.value?.find(t=>t.name&&t.name===n.name),...n})))}export{V as a,E as b,O as c,J as d,H as e,D as f,N as g,F as h,R as i,q as j,L as k,j as l,B as m,U as n,W as o,M as p,z as u};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as be,_ as q}from"./entry.
|
|
1
|
+
import{$ as be,_ as q}from"./entry.b1094864.js";function ve(e){const t=e.length;let r=-1,n,i="";const o=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){i+="�";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){i+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=e.charAt(r);continue}i+=`\\${e.charAt(r)}`}return i}const G=ve;function M(e=[]){return Array.isArray(e)?e:[e]}function D(e){return Array.from(new Set(e))}function _(e){return typeof e=="string"}function R(e){return _(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Se(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>R(t)):[e]:[R(e)]}function xe(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(e[i][0]===t&&e[i][1]===r)return!1;return!0})}function W(e){return e==null?"":xe(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function F(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ue(e,t){const r=e,n=t;if(Array.isArray(r))return[...n];const i={...r};return F(r)&&F(n)&&Object.keys(n).forEach(o=>{F(r[o])&&F(n[o])||Array.isArray(r[o])&&Array.isArray(n[o])?i[o]=ue(r[o],n[o]):Object.assign(i,{[o]:n[o]})}),i}function B(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?B(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:B(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?B(n):n;return r}return e}function ke(e){return _(e[0])}function $e(e){return _(e[0])}const Ae=/[\w\u00A0-\uFFFF-_:%-?]/,J="$$shortcut-no-merge";function Ee(e=""){return Ae.test(e)}function Ce(e){return typeof e=="function"?{match:e}:e}function Q(e){return e.length===3}function _e(e){return e!=null}function Oe(){}class je{constructor(){this._map=new Map}get(t,r){const n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(r)||i.set(r,n),i.get(r)}set(t,r,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>t(o,r,i)))}}const V={};function Me(e=["-",":"]){const t=e.join("|");return V[t]||(V[t]=new RegExp(`((?:[!@\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),V[t].lastIndex=0,V[t]}function ze(e,t=["-",":"],r=5){const n=Me(t);let i=!1,o=e.toString();const a=new Set;do{const c=o;o=o.replace(n,(h,f,l,d)=>t.includes(l)?(a.add(f+l),d.split(/\s/g).filter(Boolean).map(y=>y==="~"?f:y.replace(/^(!?)(.*)/,`$1${f}${l}$2`)).join(" ")):h),i=o!==c,r-=1}while(i&&r);return{prefixes:Array.from(a),expanded:o,hasChanged:i}}function Le(e,t=["-",":"],r=5){const{expanded:n}=ze(e.toString(),t,r);return typeof e=="string"?n:e.length()?e.overwrite(0,e.length(),n):e}const ee=new Set;function fe(e){ee.has(e)||(console.warn("[unocss]",e),ee.add(e))}const Pe=/\\?[\s'"`;{}]+/g,he=/\[(\\\W|[\w-])+:['"]?\S+?['"]?\]/g,Ie=new RegExp(`^${he.source}$`),Te=e=>{const t=new Set;for(const r of e.matchAll(he))e[r.index-1]?.match(/^[\s'"`]/)&&t.add(r[0]);return e.split(Pe).forEach(r=>{Ee(r)&&!Ie.test(r)&&t.add(r)}),[...t]},Re={name:"split",order:0,extract({code:e}){return Te(e)}};function Fe(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}const Y="default",K="preflights",Ve="shortcuts",Be={[K]:-100,[Ve]:-10,[Y]:0};function de(e){return M(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}function De(e){const t=e.shortcuts?de(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){const r=n=>{n[2]||(n[2]={});const i=n[2];i.prefix==null&&e.prefix&&(i.prefix=M(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}function te(e={},t={}){const r=Object.assign({},t,e),n=(r.presets||[]).flatMap(M).map(De),i=[...n.filter(u=>u.enforce==="pre"),...n.filter(u=>!u.enforce),...n.filter(u=>u.enforce==="post")],o=Object.assign(Be,...n.map(u=>u.layers),e.layers);function a(u){return D([...i.flatMap(p=>M(p[u]||[])),...M(r[u]||[])])}const c=a("extractors");c.length||c.push(Re),c.sort((u,p)=>(u.order||0)-(p.order||0));const h=a("rules"),f={},l=h.length,d=h.map((u,p)=>{if(ke(u)){M(u[2]?.prefix||"").forEach(m=>{f[m+u[0]]=[p,u[1],u[2],u]});return}return[p,...u]}).filter(Boolean).reverse(),y=B([...i.map(u=>u.theme||{}),r.theme||{}].reduce((u,p)=>ue(u,p),{}));a("extendTheme").forEach(u=>u(y));const w={templates:D(i.map(u=>M(u.autocomplete?.templates)).flat()),extractors:i.map(u=>M(u.autocomplete?.extractors)).flat().sort((u,p)=>(u.order||0)-(p.order||0))};let b=M(a("separators"));return b.length||(b=[":","-"]),{mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:u=>u,...r,presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:o,theme:y,rulesSize:l,rulesDynamic:d,rulesStaticMap:f,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:w,variants:a("variants").map(Ce),shortcuts:de(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:b}}const Ue="0.49.7";class He{constructor(t={},r={}){this.userConfig=t,this.defaults=r,this.version=Ue,this._cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.events=Fe(),this.config=te(t,r),this.events.emit("config",this.config)}setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=te(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){const i={get original(){return t},code:t,id:r};for(const o of this.config.extractors){const a=await o.extract(i);if(a)for(const c of a)n.add(c)}return n}makeContext(t,r){const n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;const n=`${t}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let i=t;for(const f of this.config.preprocess)i=f(t);if(this.isBlocked(i)){this.blocked.add(t),this._cache.set(n,null);return}const o=this.matchVariants(t,i);if(!o||this.isBlocked(o[1])){this.blocked.add(t),this._cache.set(n,null);return}const a=this.makeContext(t,[r||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);const c=this.expandShortcut(a.currentSelector,a),h=c?await this.stringifyShortcuts(a.variantMatch,a,c[0],c[1]):(await this.parseUtil(a.variantMatch,a))?.map(f=>this.stringifyUtil(f,a)).filter(_e);if(h?.length)return this._cache.set(n,h),h;this._cache.set(n,null)}async generate(t,r={}){const{id:n,scope:i,preflights:o=!0,safelist:a=!0,minify:c=!1}=r,h=_(t)?await this.applyExtractors(t,n):Array.isArray(t)?new Set(t):t;a&&this.config.safelist.forEach(g=>h.add(g));const f=c?"":`
|
|
2
2
|
`,l=new Set([Y]),d=new Set,y=new Map;let w={};const b=Array.from(h).map(async g=>{if(d.has(g))return;const x=await this.parseToken(g);if(x!=null){d.add(g);for(const k of x){const E=k[3]||"",C=k[4]?.layer;y.has(E)||y.set(E,[]),y.get(E).push(k),C&&l.add(C)}}});await Promise.all(b),await(async()=>{if(!o)return;const g={generator:this,theme:this.config.theme},x=new Set([]);this.config.preflights.forEach(({layer:k=K})=>{l.add(k),x.add(k)}),w=Object.fromEntries(await Promise.all(Array.from(x).map(async k=>{const C=(await Promise.all(this.config.preflights.filter(j=>(j.layer||K)===k).map(async j=>await j.getCSS(g)))).filter(Boolean).join(f);return[k,C]})))})();const u=this.config.sortLayers(Array.from(l).sort((g,x)=>(this.config.layers[g]??0)-(this.config.layers[x]??0)||g.localeCompare(x))),p={},v=g=>{if(p[g])return p[g];let x=Array.from(y).sort((E,C)=>(this.parentOrders.get(E[0])??0)-(this.parentOrders.get(C[0])??0)||E[0]?.localeCompare(C[0]||"")||0).map(([E,C])=>{const j=C.length,T=C.filter($=>($[4]?.layer||Y)===g).sort(($,O)=>$[0]-O[0]||($[4]?.sort||0)-(O[4]?.sort||0)||$[1]?.localeCompare(O[1]||"")||$[2]?.localeCompare(O[2]||"")||0).map(([,$,O,,z,,P])=>[[[($&&Ne($,i))??"",z?.sort??0]],O,!!(P??z?.noMerge)]);if(!T.length)return;const S=T.reverse().map(([$,O,z],P)=>{if(!z&&this.config.mergeSelectors)for(let I=P+1;I<j;I++){const L=T[I];if(L&&!L[2]&&($&&L[0]||$==null&&L[0]==null)&&L[1]===O)return $&&L[0]&&L[0].push(...$),null}const H=$?D($.sort((I,L)=>I[1]-L[1]||I[0]?.localeCompare(L[0]||"")||0).map(I=>I[0]).filter(Boolean)):[];return H.length?`${H.join(`,${f}`)}{${O}}`:O}).filter(Boolean).reverse().join(f);if(!E)return S;const A=E.split(" $$ ");return`${A.join("{")}{${f}${S}${f}}${A.map($=>"").join("}")}`}).filter(Boolean).join(f);o&&(x=[w[g],x].filter(Boolean).join(f));const k=c?"":`/* layer: ${g} */${f}`;return p[g]=x?k+x:""},m=(g=u,x)=>g.filter(k=>!x?.includes(k)).map(k=>v(k)||"").filter(Boolean).join(f);return{get css(){return m()},layers:u,matched:d,getLayers:m,getLayer:v}}matchVariants(t,r){const n=new Set,i=[];let o=r||t,a=!1;const c={rawSelector:t,theme:this.config.theme,generator:this};for(;;){a=!1;for(const h of this.config.variants){if(!h.multiPass&&n.has(h))continue;let f=h.match(o,c);if(f){_(f)&&(f={matcher:f}),o=f.matcher,i.unshift(f),n.add(h),a=!0;break}}if(!a)break;if(i.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,o,i,n]}applyVariants(t,r=t[4],n=t[1]){const o=r.slice().sort((f,l)=>(f.order||0)-(l.order||0)).reduceRight((f,l)=>d=>{const y=l.body?.(d.entries)||d.entries,w=Array.isArray(l.parent)?l.parent:[l.parent,void 0];return(l.handle??Xe)({...d,entries:y,selector:l.selector?.(d.selector,y)||d.selector,parent:w[0]||d.parent,parentOrder:w[1]||d.parentOrder,layer:l.layer||d.layer,sort:l.sort||d.sort},f)},f=>f)({prefix:"",selector:Ke(n),pseudo:"",entries:t[2]}),{parent:a,parentOrder:c}=o;a!=null&&c!=null&&this.parentOrders.set(a,c);const h={selector:Ye([o.prefix,o.selector,o.pseudo].join("")),entries:o.entries,parent:a,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(const f of this.config.postprocess)f(h);return h}constructCustomCSS(t,r,n){const i=R(r);if(_(i))return i;const{selector:o,entries:a,parent:c}=this.applyVariants([0,n||t.rawSelector,i,void 0,t.variantHandlers]),h=`${o}{${W(a)}}`;return c?`${c}{${h}}`:h}async parseUtil(t,r,n=!1,i){const[o,a,c]=_(t)?this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);const h=this.config.rulesStaticMap[a];if(h&&h[1]&&(n||!h[2]?.internal)){this.config.details&&r.rules.push(h[3]);const l=h[0],d=R(h[1]),y=h[2];return _(d)?[[l,d,y]]:[[l,o,d,y,c]]}r.variantHandlers=c;const{rulesDynamic:f}=this.config;for(const[l,d,y,w]of f){if(w?.internal&&!n)continue;let b=a;if(w?.prefix){const m=M(w.prefix);if(i){const g=M(i);if(!m.some(x=>g.includes(x)))continue}else{const g=m.find(x=>a.startsWith(x));if(g==null)continue;b=a.slice(g.length)}}const u=b.match(d);if(!u)continue;const p=await y(u,r);if(!p)continue;this.config.details&&r.rules.push([d,y,w]);const v=Se(p).filter(m=>m.length);if(v.length)return v.map(m=>_(m)?[l,m,w]:[l,o,m,w,c])}}stringifyUtil(t,r){if(!t)return;if(Q(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];const{selector:n,entries:i,parent:o,layer:a,sort:c,noMerge:h}=this.applyVariants(t),f=W(i);if(!f)return;const{layer:l,sort:d,...y}=t[3]??{},w={...y,layer:a??l,sort:c??d};return[t[0],n,f,o,w,this.config.details?r:void 0,h]}expandShortcut(t,r,n=5){if(n===0)return;const i=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:Oe;let o,a;for(const c of this.config.shortcuts){let h=t;if(c[2]?.prefix){const l=M(c[2].prefix).find(d=>t.startsWith(d));if(l==null)continue;h=t.slice(l.length)}if($e(c)){if(c[0]===h){o=o||c[2],a=c[1],i(c);break}}else{const f=h.match(c[0]);if(f&&(a=c[1](f,r)),a){o=o||c[2],i(c);break}}}if(_(a)&&(a=Le(a.trim()).split(/\s+/g)),!a){const[c,h]=_(t)?this.matchVariants(t):t;if(c!==h){const f=this.expandShortcut(h,r,n-1);f&&(a=f[0].map(l=>_(l)?c.replace(h,l):l))}}if(a)return[a.flatMap(c=>(_(c)?this.expandShortcut(c,r,n-1)?.[0]:void 0)||[c]).filter(Boolean),o]}async stringifyShortcuts(t,r,n,i={layer:this.config.shortcutsLayer}){const o=new je,a=(await Promise.all(D(n).map(async l=>{const d=_(l)?await this.parseUtil(l,r,!0,i.prefix):[[1/0,"{inline}",R(l),void 0,[]]];return d||fe(`unmatched utility "${l}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((l,d)=>l[0]-d[0]),[c,,h]=t,f=[];for(const l of a){if(Q(l)){f.push([l[0],void 0,l[1],void 0,l[2],r,void 0]);continue}const{selector:d,entries:y,parent:w,sort:b,noMerge:u}=this.applyVariants(l,[...l[4],...h],c);o.getFallback(d,w,[[],l[0]])[0].push([y,!!(u??l[3]?.noMerge),b??0])}return f.concat(o.map(([l,d],y,w)=>{const b=(p,v,m)=>{const g=Math.max(...m.map(k=>k[1])),x=m.map(k=>k[0]);return(p?[x.flat(1)]:x).map(k=>{const E=W(k);if(E)return[d,y,E,w,{...i,noMerge:v,sort:g},r,void 0]})};return[[l.filter(([,p])=>p).map(([p,,v])=>[p,v]),!0],[l.filter(([,p])=>!p).map(([p,,v])=>[p,v]),!1]].map(([p,v])=>[...b(!1,v,p.filter(([m])=>m.some(g=>g[0]===J))),...b(!0,v,p.filter(([m])=>m.every(g=>g[0]!==J)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>_(r)?r===t:r.test(t))}}function qe(e,t){return new He(e,t)}const Ge=/\s\$\$\s+/g,We=e=>e.match(/\s\$\$\s/);function Ne(e,t){return We(e)?e.replace(Ge,t?` ${t} `:" "):t?`${t} ${e}`:e}function Ye(e){const t=e.match(/::[\w-]+(\([\w-]+\))?/g);if(t){for(const r of t)e=e.replace(r,"");e+=t.join("")}return e}const re=/^\[(.+?)(~?=)"(.*)"\]$/;function Ke(e){return re.test(e)?e.replace(re,(t,r,n,i)=>`[${G(r)}${n}"${G(i)}"]`):`.${G(e)}`}function Xe(e,t){return t(e)}var Ze=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),ne=e=>e.charAt(0).toUpperCase()+e.slice(1),ie=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),se=["Webkit","Moz","ms"];function Je(e){const t={};function r(n){const i=t[n];if(i)return i;let o=Ze(n);if(o!=="filter"&&o in e)return t[n]=ie(o);o=ne(o);for(let a=0;a<se.length;a++){const c=`${se[a]}${o}`;if(c in e)return t[n]=ie(ne(c))}return n}return({entries:n})=>n.forEach(i=>{i[0].startsWith("--")||(i[0]=r(i[0]))})}function Qe(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function et(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const t=window,r=document,n=t.__unocss||{},i=Object.assign({},e,n.runtime),o=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=M(o.postprocess)).unshift(Je(r.createElement("div").style)),i.configResolved?.(n,o);const c=qe(n,o);let h=!0,f=new Set,l,d,y,w=[];const b=()=>new Promise(S=>{w.push(S),y!=null&&clearTimeout(y),y=setTimeout(()=>v().then(()=>{const A=w;w=[],A.forEach($=>$())}),0)});function u(S){if(S.nodeType!==1)return;const A=S;A.hasAttribute(a)&&A.removeAttribute(a),A.querySelectorAll(`[${a}]`).forEach($=>{$.removeAttribute(a)})}function p(){return l||(l=r.createElement("style"),r.documentElement.prepend(l)),l}async function v(){const S=await c.generate(f),A=p();return A.innerHTML=S.css,f=S.matched,{...S,styleElement:A}}async function m(S){const A=f.size;await c.applyExtractors(S,void 0,f),A!==f.size&&await b()}async function g(){const S=r.body,A=S&&S.outerHTML;A&&(await m(`${A} ${Qe(A)}`),u(r.documentElement),u(S))}const x=new MutationObserver(S=>{h||S.forEach(async A=>{if(A.target.nodeType!==1)return;const $=A.target;if($!==l)if(A.type==="childList")A.addedNodes.forEach(async O=>{if(O.nodeType!==1)return;const z=O;d&&!d(z)||(await m(z.outerHTML),u(z))});else{if(d&&!d($))return;if(A.attributeName!==a){const O=Array.from($.attributes).map(P=>P.value?`${P.name}="${P.value}"`:P.name).join(" "),z=`<${$.tagName.toLowerCase()} ${O}>`;await m(z)}$.hasAttribute(a)&&$.removeAttribute(a)}})});let k=!1;function E(){if(k)return;const S=r.documentElement||r.body;S&&(x.observe(S,{childList:!0,subtree:!0,attributes:!0}),k=!0)}function C(){g(),E()}function j(){r.readyState==="loading"?t.addEventListener("DOMContentLoaded",C):C()}const T=t.__unocss_runtime=t.__unocss_runtime={version:c.version,uno:c,async extract(S){_(S)||(S.forEach(A=>f.add(A)),S=""),await m(S)},extractAll:g,inspect(S){d=S},toggleObserver(S){S===void 0?h=!h:h=!!S,!k&&!h&&j()},update:v};i.ready?.(T)!==!1&&(h=!1,j())}const X=Object.freeze({left:0,top:0,width:16,height:16}),U=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),pe=Object.freeze({...X,...U}),tt=Object.freeze({...pe,body:"",hidden:!1}),rt=Object.freeze({width:null,height:null}),ge=Object.freeze({...rt,...U});function nt(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function oe(e,t){const r=nt(e,t);for(const n in tt)n in U?n in e&&!(n in r)&&(r[n]=U[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function it(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const c=n[a]&&n[a].parent,h=c&&o(c);h&&(i[a]=[c].concat(h))}return i[a]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(o),i}function ae(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(c){o=oe(n[c]||i[c],o)}return a(t),r.forEach(a),oe(e,o)}function st(e,t){if(e.icons[t])return ae(e,t,[]);const r=it(e,[t])[t];return r?ae(e,t,r):null}({...X});Object.keys(X).concat(["provider"]);const ot=/(-?[0-9.]*[0-9]+[0-9.]*)/g,at=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ce(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(ot);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=at.test(o);for(;;){if(a){const c=parseFloat(o);isNaN(c)?i.push(o):i.push(Math.ceil(c*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}const Z=e=>e==="unset"||e==="undefined"||e==="none";function ct(e,t){const r={...pe,...e},n={...ge,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(b=>{const u=[],p=b.hFlip,v=b.vFlip;let m=b.rotate;p?v?m+=2:(u.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),u.push("scale(-1 1)"),i.top=i.left=0):v&&(u.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),u.push("scale(1 -1)"),i.top=i.left=0);let g;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:g=i.height/2+i.top,u.unshift("rotate(90 "+g.toString()+" "+g.toString()+")");break;case 2:u.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:g=i.width/2+i.left,u.unshift("rotate(-90 "+g.toString()+" "+g.toString()+")");break}m%2===1&&(i.left!==i.top&&(g=i.left,i.left=i.top,i.top=g),i.width!==i.height&&(g=i.width,i.width=i.height,i.height=g)),u.length&&(o='<g transform="'+u.join(" ")+'">'+o+"</g>")});const a=n.width,c=n.height,h=i.width,f=i.height;let l,d;a===null?(d=c===null?"1em":c==="auto"?f:c,l=ce(d,h/f)):(l=a==="auto"?h:a,d=c===null?ce(l,f/h):c==="auto"?f:c);const y={},w=(b,u)=>{Z(u)||(y[b]=u.toString())};return w("width",l),w("height",d),y.viewBox=i.left.toString()+" "+i.top.toString()+" "+h.toString()+" "+f.toString(),{attributes:y,body:o}}""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);function lt(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').trim()}function s(e,t){const r="rgb",n=t[0],i=t.length;i>1&&t[1],i>2&&t[2],i>3&&t[3]}s("silver",[192]);s("gray",[128]);s("white",[255]);s("maroon",[128,0,0]);s("red",[255,0,0]);s("purple",[128,0]);s("fuchsia",[255,0]);s("green",[0,128]);s("lime",[0,255]);s("olive",[128,128,0]);s("yellow",[255,255,0]);s("navy",[0,0,128]);s("blue",[0,0,255]);s("teal",[0,128,128]);s("aqua",[0,255,255]);s("aliceblue",[240,248,255]);s("antiquewhite",[250,235,215]);s("aqua",[0,255,255]);s("aquamarine",[127,255,212]);s("azure",[240,255,255]);s("beige",[245,245,220]);s("bisque",[255,228,196]);s("black",[0]);s("blanchedalmond",[255,235,205]);s("blue",[0,0,255]);s("blueviolet",[138,43,226]);s("brown",[165,42,42]);s("burlywood",[222,184,135]);s("cadetblue",[95,158,160]);s("chartreuse",[127,255,0]);s("chocolate",[210,105,30]);s("coral",[255,127,80]);s("cornflowerblue",[100,149,237]);s("cornsilk",[255,248,220]);s("crimson",[220,20,60]);s("cyan",[0,255,255]);s("darkblue",[0,0,139]);s("darkcyan",[0,139,139]);s("darkgoldenrod",[184,134,11]);s("darkgray",[169]);s("darkgreen",[0,100]);s("darkgrey",[169]);s("darkkhaki",[189,183,107]);s("darkmagenta",[139,0]);s("darkolivegreen",[85,107,47]);s("darkorange",[255,140,0]);s("darkorchid",[153,50,204]);s("darkred",[139,0,0]);s("darksalmon",[233,150,122]);s("darkseagreen",[143,188]);s("darkslateblue",[72,61,139]);s("darkslategray",[47,79,79]);s("darkslategrey",[47,79,79]);s("darkturquoise",[0,206,209]);s("darkviolet",[148,0,211]);s("deeppink",[255,20,147]);s("deepskyblue",[0,191,255]);s("dimgray",[105]);s("dimgrey",[105]);s("dodgerblue",[30,144,255]);s("firebrick",[178,34,34]);s("floralwhite",[255,250,240]);s("forestgreen",[34,139]);s("fuchsia",[255,0]);s("gainsboro",[220]);s("ghostwhite",[248,248,255]);s("gold",[255,215,0]);s("goldenrod",[218,165,32]);s("gray",[128]);s("green",[0,128]);s("greenyellow",[173,255,47]);s("grey",[128]);s("honeydew",[240,255]);s("hotpink",[255,105,180]);s("indianred",[205,92,92]);s("indigo",[75,0,130]);s("ivory",[255,255,240]);s("khaki",[240,230,140]);s("lavender",[230,230,250]);s("lavenderblush",[255,240,245]);s("lawngreen",[124,252,0]);s("lemonchiffon",[255,250,205]);s("lightblue",[173,216,230]);s("lightcoral",[240,128,128]);s("lightcyan",[224,255,255]);s("lightgoldenrodyellow",[250,250,210]);s("lightgray",[211]);s("lightgreen",[144,238]);s("lightgrey",[211]);s("lightpink",[255,182,193]);s("lightsalmon",[255,160,122]);s("lightseagreen",[32,178,170]);s("lightskyblue",[135,206,250]);s("lightslategray",[119,136,153]);s("lightslategrey",[119,136,153]);s("lightsteelblue",[176,196,222]);s("lightyellow",[255,255,224]);s("lime",[0,255]);s("limegreen",[50,205]);s("linen",[250,240,230]);s("magenta",[255,0]);s("maroon",[128,0,0]);s("mediumaquamarine",[102,205,170]);s("mediumblue",[0,0,205]);s("mediumorchid",[186,85,211]);s("mediumpurple",[147,112,219]);s("mediumseagreen",[60,179,113]);s("mediumslateblue",[123,104,238]);s("mediumspringgreen",[0,250,154]);s("mediumturquoise",[72,209,204]);s("mediumvioletred",[199,21,133]);s("midnightblue",[25,25,112]);s("mintcream",[245,255,250]);s("mistyrose",[255,228,225]);s("moccasin",[255,228,181]);s("navajowhite",[255,222,173]);s("navy",[0,0,128]);s("oldlace",[253,245,230]);s("olive",[128,128,0]);s("olivedrab",[107,142,35]);s("orange",[255,165,0]);s("orangered",[255,69,0]);s("orchid",[218,112,214]);s("palegoldenrod",[238,232,170]);s("palegreen",[152,251]);s("paleturquoise",[175,238,238]);s("palevioletred",[219,112,147]);s("papayawhip",[255,239,213]);s("peachpuff",[255,218,185]);s("peru",[205,133,63]);s("pink",[255,192,203]);s("plum",[221,160]);s("powderblue",[176,224,230]);s("purple",[128,0]);s("rebeccapurple",[102,51,153]);s("red",[255,0,0]);s("rosybrown",[188,143,143]);s("royalblue",[65,105,225]);s("saddlebrown",[139,69,19]);s("salmon",[250,128,114]);s("sandybrown",[244,164,96]);s("seagreen",[46,139,87]);s("seashell",[255,245,238]);s("sienna",[160,82,45]);s("silver",[192]);s("skyblue",[135,206,235]);s("slateblue",[106,90,205]);s("slategray",[112,128,144]);s("slategrey",[112,128,144]);s("snow",[255,250,250]);s("springgreen",[0,255,127]);s("steelblue",[70,130,180]);s("tan",[210,180,140]);s("teal",[0,128,128]);s("thistle",[216,191]);s("tomato",[255,99,71]);s("turquoise",[64,224,208]);s("violet",[238,130]);s("wheat",[245,222,179]);s("white",[255]);s("whitesmoke",[245]);s("yellow",[255,255,0]);s("yellowgreen",[154,205,50]);const ut=/\swidth\s*=\s*["'](\w+)["']/,ft=/\sheight\s*=\s*["'](\w+)["']/,N=/<svg\s+/;function ht(e,t,r){const n=e.slice(0,e.indexOf(">")),i=(o,a)=>{const c=a.exec(n),h=c!=null,f=t[o];return!f&&!Z(f)&&(typeof r=="number"?r>0&&(t[o]=`${r}em`):c&&(t[o]=c[1])),h};return[i("width",ut),i("height",ft)]}async function me(e,t,r,n,i,o){const{scale:a,addXmlNs:c=!1}=n??{},{additionalProps:h={},iconCustomizer:f}=n?.customizations??{},l=await i?.()??{};await f?.(t,r,l),Object.keys(h).forEach(u=>{const p=h[u];p!=null&&(l[u]=p)}),o?.(l);const[d,y]=ht(e,l,a);c&&(!e.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const w=Object.keys(l).map(u=>u==="width"&&d||u==="height"&&y?null:`${u}="${l[u]}"`).filter(u=>u!=null);if(w.length&&(e=e.replace(N,`<svg ${w.join(" ")} `)),n){const{defaultStyle:u,defaultClass:p}=n;p&&!e.includes("class=")&&(e=e.replace(N,`<svg class="${p}" `)),u&&!e.includes("style=")&&(e=e.replace(N,`<svg style="${u}" `))}const b=n?.usedProps;return b&&(Object.keys(h).forEach(u=>{const p=l[u];p!=null&&(b[u]=p)}),typeof l.width<"u"&&l.width!==null&&(b.width=l.width),typeof l.height<"u"&&l.height!==null&&(b.height=l.height)),e}async function le(e,t,r,n){let i;if(typeof e=="function")i=await e(r);else{const o=e[r];i=typeof o=="function"?await o():o}if(i){const o=i.indexOf("<svg");o>0&&(i=i.slice(o));const{transform:a}=n?.customizations??{};return i=typeof a=="function"?await a(i,t,r):i,i.startsWith("<svg")?await me(n?.customizations?.trimCustomSvg===!0?lt(i):i,t,r,n,void 0):(console.warn(`Custom icon "${r}" in "${t}" is not a valid SVG`),i)}}async function ye(e,t,r,n){let i;const{customize:o}=n?.customizations??{};for(const a of r)if(i=st(e,a),i){let c={...ge};typeof o=="function"&&(c=o(c));const{attributes:{width:h,height:f,...l},body:d}=ct(i,c),y=n?.scale;return await me(`<svg >${d}</svg>`,t,a,n,()=>({...l}),w=>{const b=(u,p)=>{const v=w[u];let m;if(!Z(v)){if(v)return;typeof y=="number"?y&&(m=`${y}em`):m=p}m?w[u]=m:delete w[u]};b("width",h),b("height",f)})}}const we=async(e,t,r)=>{const n=r?.customCollections?.[e];if(n)if(typeof n=="function"){const i=await n(t);if(i){if(typeof i=="string")return await le(()=>i,e,t,r);if("icons"in i){const o=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await ye(i,e,o,r)}}}else return await le(n,e,t,r)};var dt=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","cryptocurrency-color","cryptocurrency","dashicons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconoir","icons8","il","ion","iwwa","jam","la","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","memory","mi","mingcute","mono-icons","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","subway","svg-spinners","system-uicons","tabler","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];function pt(e){const t=new Map;function r(n){if(dt.includes(n))return t.has(n)||t.set(n,be(`${e}@iconify-json/${n}/icons.json`)),t.get(n)}return async(n,i,o)=>{let a=await we(n,i,o);if(a)return a;const c=await r(n);if(c){const h=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await ye(c,n,h,o)}return a}}function gt(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function mt(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),gt(t)}const yt=3;function wt(e){return function(r={}){const{scale:n=1,mode:i="auto",prefix:o="i-",warn:a=!1,collections:c,extraProperties:h={},customizations:f={},autoInstall:l=!1,layer:d="icons",unit:y}=r,w={addXmlNs:!0,scale:n,customCollections:c,autoInstall:l,warn:void 0,customizations:{...f,additionalProps:{...h},trimCustomSvg:!0,async iconCustomizer(u,p,v){await f.iconCustomizer?.(u,p,v),y&&(v.width||(v.width=`${n}${y}`),v.height||(v.height=`${n}${y}`))}}};let b;return{name:"@unocss/preset-icons",enforce:"pre",options:r,layers:{icons:-30},rules:[[/^([a-z0-9:-]+)(?:\?(mask|bg|auto))?$/,async([u,p,v=i])=>{let m="",g="",x;b=b||await e(r);const k={};if(p.includes(":"))[m,g]=p.split(":"),x=await b(m,g,{...w,usedProps:k});else{const C=p.split(/-/g);for(let j=yt;j>=1&&(m=C.slice(0,j).join("-"),g=C.slice(j).join("-"),x=await b(m,g,{...w,usedProps:k}),!x);j--);}if(!x){a&&fe(`failed to load icon "${u}"`);return}const E=`url("data:image/svg+xml;utf8,${mt(x)}")`;return v==="auto"&&(v=x.includes("currentColor")?"mask":"bg"),v==="mask"?{"--un-icon":E,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...k}:{background:`${E} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...k}},{layer:d,prefix:o}]]}}}const bt=wt(async e=>{const{cdn:t}=e;return t?pt(t):we});et({defaults:{presets:[bt({prefix:["i-",""],collections:{logos:()=>q(()=>import("./icons.eca62571.js"),[],import.meta.url).then(e=>e.default),carbon:()=>q(()=>import("./icons.7b11eba5.js"),[],import.meta.url).then(e=>e.default),ri:()=>q(()=>import("./icons.d5925320.js"),[],import.meta.url).then(e=>e.default)},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Ke}from"./NTextInput.vue.
|
|
1
|
+
import{_ as Ke}from"./NTextInput.vue.b6c079ee.js";import{_ as et}from"./nuxt-link.752dfef9.js";import{u as ne,k as we,D as tt,x as Pe,a as nt,P as st,K as rt,H as at,e as Se,f as ye,h as it,q as ot,F as ct,B as lt,t as Be,o as ke,c as ut,w as ht,j as pt,M as gt}from"./entry.b1094864.js";import{u as dt}from"./asyncData.d544d421.js";import{u as mt}from"./composables.80d3af7a.js";import{F as ft}from"./fuse.esm.88e2763d.js";import"./NIcon.vue.c1ad97a9.js";const _t={ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1};function bt(e,u={}){u={..._t,...u};const v=qe(u);return v.dispatch(e),v.toString()}function qe(e){const u=[];let v=[];const n=m=>{u.push(m)};return{toString(){return u.join("")},getContext(){return v},dispatch(m){return e.replacer&&(m=e.replacer(m)),this["_"+(m===null?"null":typeof m)](m)},_object(m){const a=/\[object (.*)]/i,L=Object.prototype.toString.call(m),w=a.exec(L),S=w?w[1].toLowerCase():"unknown:["+L.toLowerCase()+"]";let i=null;if((i=v.indexOf(m))>=0)return this.dispatch("[CIRCULAR:"+i+"]");if(v.push(m),typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(m))return n("buffer:"),n(m.toString("utf8"));if(S!=="object"&&S!=="function"&&S!=="asyncfunction")if(this["_"+S])this["_"+S](m);else{if(e.ignoreUnknown)return n("["+S+"]");throw new Error('Unknown object type "'+S+'"')}else{let N=Object.keys(m);e.unorderedObjects&&(N=N.sort()),e.respectType!==!1&&!Ee(m)&&N.splice(0,0,"prototype","__proto__","letructor"),e.excludeKeys&&(N=N.filter(function(h){return!e.excludeKeys(h)})),n("object:"+N.length+":");for(const h of N)this.dispatch(h),n(":"),e.excludeValues||this.dispatch(m[h]),n(",")}},_array(m,a){if(a=typeof a<"u"?a:e.unorderedArrays!==!1,n("array:"+m.length+":"),!a||m.length<=1){for(const S of m)this.dispatch(S);return}const L=[],w=m.map(S=>{const i=qe(e);return i.dispatch(S),L.push(i.getContext()),i.toString()});return v=[...v,...L],w.sort(),this._array(w,!1)},_date(m){return n("date:"+m.toJSON())},_symbol(m){return n("symbol:"+m.toString())},_error(m){return n("error:"+m.toString())},_boolean(m){return n("bool:"+m.toString())},_string(m){n("string:"+m.length+":"),n(m.toString())},_function(m){n("fn:"),Ee(m)?this.dispatch("[native]"):this.dispatch(m.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(m.name)),e.respectFunctionProperties&&this._object(m)},_number(m){return n("number:"+m.toString())},_xml(m){return n("xml:"+m.toString())},_null(){return n("Null")},_undefined(){return n("Undefined")},_regexp(m){return n("regex:"+m.toString())},_uint8array(m){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(m))},_uint8clampedarray(m){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(m))},_int8array(m){return n("int8array:"),this.dispatch(Array.prototype.slice.call(m))},_uint16array(m){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(m))},_int16array(m){return n("int16array:"),this.dispatch(Array.prototype.slice.call(m))},_uint32array(m){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(m))},_int32array(m){return n("int32array:"),this.dispatch(Array.prototype.slice.call(m))},_float32array(m){return n("float32array:"),this.dispatch(Array.prototype.slice.call(m))},_float64array(m){return n("float64array:"),this.dispatch(Array.prototype.slice.call(m))},_arraybuffer(m){return n("arraybuffer:"),this.dispatch(new Uint8Array(m))},_url(m){return n("url:"+m.toString())},_map(m){n("map:");const a=[...m];return this._array(a,e.unorderedSets!==!1)},_set(m){n("set:");const a=[...m];return this._array(a,e.unorderedSets!==!1)},_file(m){return n("file:"),this.dispatch([m.name,m.size,m.type,m.lastModfied])},_blob(){if(e.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported
|
|
2
2
|
Use "options.replacer" or "options.ignoreUnknown"
|
|
3
3
|
`)},_domwindow(){return n("domwindow")},_bigint(m){return n("bigint:"+m.toString())},_process(){return n("process")},_timer(){return n("timer")},_pipe(){return n("pipe")},_tcp(){return n("tcp")},_udp(){return n("udp")},_tty(){return n("tty")},_statwatcher(){return n("statwatcher")},_securecontext(){return n("securecontext")},_connection(){return n("connection")},_zlib(){return n("zlib")},_context(){return n("context")},_nodescript(){return n("nodescript")},_httpparser(){return n("httpparser")},_dataview(){return n("dataview")},_signal(){return n("signal")},_fsevent(){return n("fsevent")},_tlswrap(){return n("tlswrap")}}}function Ee(e){return typeof e!="function"?!1:/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code]\s+}$/i.exec(Function.prototype.toString.call(e))!=null}class _e{constructor(u,v){u=this.words=u||[],this.sigBytes=v!==void 0?v:u.length*4}toString(u){return(u||yt).stringify(this)}concat(u){if(this.clamp(),this.sigBytes%4)for(let v=0;v<u.sigBytes;v++){const n=u.words[v>>>2]>>>24-v%4*8&255;this.words[this.sigBytes+v>>>2]|=n<<24-(this.sigBytes+v)%4*8}else for(let v=0;v<u.sigBytes;v+=4)this.words[this.sigBytes+v>>>2]=u.words[v>>>2];return this.sigBytes+=u.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new _e([...this.words])}}const yt={stringify(e){const u=[];for(let v=0;v<e.sigBytes;v++){const n=e.words[v>>>2]>>>24-v%4*8&255;u.push((n>>>4).toString(16),(n&15).toString(16))}return u.join("")}},kt={stringify(e){const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",v=[];for(let n=0;n<e.sigBytes;n+=3){const m=e.words[n>>>2]>>>24-n%4*8&255,a=e.words[n+1>>>2]>>>24-(n+1)%4*8&255,L=e.words[n+2>>>2]>>>24-(n+2)%4*8&255,w=m<<16|a<<8|L;for(let S=0;S<4&&n*8+S*6<e.sigBytes*8;S++)v.push(u.charAt(w>>>6*(3-S)&63))}return v.join("")}},Lt={parse(e){const u=e.length,v=[];for(let n=0;n<u;n++)v[n>>>2]|=(e.charCodeAt(n)&255)<<24-n%4*8;return new _e(v,u)}},wt={parse(e){return Lt.parse(unescape(encodeURIComponent(e)))}};class vt{constructor(){this._minBufferSize=0,this.blockSize=512/32,this.reset()}reset(){this._data=new _e,this._nDataBytes=0}_append(u){typeof u=="string"&&(u=wt.parse(u)),this._data.concat(u),this._nDataBytes+=u.sigBytes}_doProcessBlock(u,v){}_process(u){let v,n=this._data.sigBytes/(this.blockSize*4);u?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const m=n*this.blockSize,a=Math.min(m*4,this._data.sigBytes);if(m){for(let L=0;L<m;L+=this.blockSize)this._doProcessBlock(this._data.words,L);v=this._data.words.splice(0,m),this._data.sigBytes-=a}return new _e(v,a)}}class St extends vt{update(u){return this._append(u),this._process(),this}finalize(u){u&&this._append(u)}}const Nt=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],jt=[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],he=[];class At extends St{constructor(){super(),this.reset()}reset(){super.reset(),this._hash=new _e([...Nt])}_doProcessBlock(u,v){const n=this._hash.words;let m=n[0],a=n[1],L=n[2],w=n[3],S=n[4],i=n[5],N=n[6],h=n[7];for(let _=0;_<64;_++){if(_<16)he[_]=u[v+_]|0;else{const l=he[_-15],y=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,c=he[_-2],t=(c<<15|c>>>17)^(c<<13|c>>>19)^c>>>10;he[_]=y+he[_-7]+t+he[_-16]}const x=S&i^~S&N,g=m&a^m&L^a&L,A=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),j=(S<<26|S>>>6)^(S<<21|S>>>11)^(S<<7|S>>>25),b=h+j+x+jt[_]+he[_],p=A+g;h=N,N=i,i=S,S=w+b|0,w=L,L=a,a=m,m=b+p|0}n[0]=n[0]+m|0,n[1]=n[1]+a|0,n[2]=n[2]+L|0,n[3]=n[3]+w|0,n[4]=n[4]+S|0,n[5]=n[5]+i|0,n[6]=n[6]+N|0,n[7]=n[7]+h|0}finalize(u){super.finalize(u);const v=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(v/4294967296),this._data.words[(n+64>>>9<<4)+15]=v,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function Tt(e){return new At().finalize(e).toString(kt)}function xt(e,u={}){const v=typeof e=="string"?e:bt(e,u);return Tt(v).slice(0,10)}function Rt(e,u,v){const[n={},m]=typeof u=="string"?[{},u]:[u,v],a=n.key||xt([m,ne(n.baseURL),typeof e=="string"?e:"",ne(n.params||n.query)]);if(!a||typeof a!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+a);if(!e)throw new Error("[nuxt] [useFetch] request is missing.");const L=a===m?"$f"+a:a,w=we(()=>{let y=e;return typeof y=="function"&&(y=y()),ne(y)}),{server:S,lazy:i,default:N,transform:h,pick:_,watch:x,immediate:g,...A}=n,j=tt({...A,cache:typeof n.cache=="boolean"?void 0:n.cache}),b={server:S,lazy:i,default:N,transform:h,pick:_,immediate:g,watch:[j,w,...x||[]]};let p;return dt(L,()=>(p?.abort?.(),p=typeof AbortController<"u"?new AbortController:{},typeof w.value=="string"&&w.value.startsWith("/"),(n.$fetch||globalThis.$fetch)(w.value,{signal:p.signal,...j})),b)}var ze=typeof globalThis<"u"?globalThis:typeof{}<"u"?{}:typeof global<"u"?global:typeof self<"u"?self:{},ve={},Pt={get exports(){return ve},set exports(e){ve=e}};(function(e,u){(function(v,n){e.exports=n()})(ze,()=>{return v={770:function(m,a,L){var w=this&&this.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(a,"__esModule",{value:!0}),a.setDefaultDebugCall=a.createOnigScanner=a.createOnigString=a.loadWASM=a.OnigScanner=a.OnigString=void 0;const S=w(L(418));let i=null,N=!1;class h{static _utf8ByteLength(b){let p=0;for(let l=0,y=b.length;l<y;l++){const c=b.charCodeAt(l);let t=c,s=!1;if(c>=55296&&c<=56319&&l+1<y){const o=b.charCodeAt(l+1);o>=56320&&o<=57343&&(t=65536+(c-55296<<10)|o-56320,s=!0)}p+=t<=127?1:t<=2047?2:t<=65535?3:4,s&&l++}return p}constructor(b){const p=b.length,l=h._utf8ByteLength(b),y=l!==p,c=y?new Uint32Array(p+1):null;y&&(c[p]=l);const t=y?new Uint32Array(l+1):null;y&&(t[l]=p);const s=new Uint8Array(l);let o=0;for(let r=0;r<p;r++){const f=b.charCodeAt(r);let d=f,k=!1;if(f>=55296&&f<=56319&&r+1<p){const T=b.charCodeAt(r+1);T>=56320&&T<=57343&&(d=65536+(f-55296<<10)|T-56320,k=!0)}y&&(c[r]=o,k&&(c[r+1]=o),d<=127?t[o+0]=r:d<=2047?(t[o+0]=r,t[o+1]=r):d<=65535?(t[o+0]=r,t[o+1]=r,t[o+2]=r):(t[o+0]=r,t[o+1]=r,t[o+2]=r,t[o+3]=r)),d<=127?s[o++]=d:d<=2047?(s[o++]=192|(1984&d)>>>6,s[o++]=128|(63&d)>>>0):d<=65535?(s[o++]=224|(61440&d)>>>12,s[o++]=128|(4032&d)>>>6,s[o++]=128|(63&d)>>>0):(s[o++]=240|(1835008&d)>>>18,s[o++]=128|(258048&d)>>>12,s[o++]=128|(4032&d)>>>6,s[o++]=128|(63&d)>>>0),k&&r++}this.utf16Length=p,this.utf8Length=l,this.utf16Value=b,this.utf8Value=s,this.utf16OffsetToUtf8=c,this.utf8OffsetToUtf16=t}createString(b){const p=b._omalloc(this.utf8Length);return b.HEAPU8.set(this.utf8Value,p),p}}class _{constructor(b){if(this.id=++_.LAST_ID,!i)throw new Error("Must invoke loadWASM first.");this._onigBinding=i,this.content=b;const p=new h(b);this.utf16Length=p.utf16Length,this.utf8Length=p.utf8Length,this.utf16OffsetToUtf8=p.utf16OffsetToUtf8,this.utf8OffsetToUtf16=p.utf8OffsetToUtf16,this.utf8Length<1e4&&!_._sharedPtrInUse?(_._sharedPtr||(_._sharedPtr=i._omalloc(1e4)),_._sharedPtrInUse=!0,i.HEAPU8.set(p.utf8Value,_._sharedPtr),this.ptr=_._sharedPtr):this.ptr=p.createString(i)}convertUtf8OffsetToUtf16(b){return this.utf8OffsetToUtf16?b<0?0:b>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[b]:b}convertUtf16OffsetToUtf8(b){return this.utf16OffsetToUtf8?b<0?0:b>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[b]:b}dispose(){this.ptr===_._sharedPtr?_._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}a.OnigString=_,_.LAST_ID=0,_._sharedPtr=0,_._sharedPtrInUse=!1;class x{constructor(b){if(!i)throw new Error("Must invoke loadWASM first.");const p=[],l=[];for(let s=0,o=b.length;s<o;s++){const r=new h(b[s]);p[s]=r.createString(i),l[s]=r.utf8Length}const y=i._omalloc(4*b.length);i.HEAPU32.set(p,y/4);const c=i._omalloc(4*b.length);i.HEAPU32.set(l,c/4);const t=i._createOnigScanner(y,c,b.length);for(let s=0,o=b.length;s<o;s++)i._ofree(p[s]);i._ofree(c),i._ofree(y),t===0&&function(s){throw new Error(s.UTF8ToString(s._getLastOnigError()))}(i),this._onigBinding=i,this._ptr=t}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(b,p,l){let y=N,c=0;if(typeof l=="number"?(8&l&&(y=!0),c=l):typeof l=="boolean"&&(y=l),typeof b=="string"){b=new _(b);const t=this._findNextMatchSync(b,p,y,c);return b.dispose(),t}return this._findNextMatchSync(b,p,y,c)}_findNextMatchSync(b,p,l,y){const c=this._onigBinding;let t;if(t=l?c._findNextOnigScannerMatchDbg(this._ptr,b.id,b.ptr,b.utf8Length,b.convertUtf16OffsetToUtf8(p),y):c._findNextOnigScannerMatch(this._ptr,b.id,b.ptr,b.utf8Length,b.convertUtf16OffsetToUtf8(p),y),t===0)return null;const s=c.HEAPU32;let o=t/4;const r=s[o++],f=s[o++];let d=[];for(let k=0;k<f;k++){const T=b.convertUtf8OffsetToUtf16(s[o++]),P=b.convertUtf8OffsetToUtf16(s[o++]);d[k]={start:T,end:P,length:P-T}}return{index:r,captureIndices:d}}}a.OnigScanner=x;let g=!1,A=null;a.loadWASM=function(j){if(g)return A;let b,p,l,y;if(g=!0,function(c){return typeof c.instantiator=="function"}(j))b=j.instantiator,p=j.print;else{let c;(function(t){return t.data!==void 0})(j)?(c=j.data,p=j.print):c=j,b=function(t){return typeof Response<"u"&&t instanceof Response}(c)?typeof WebAssembly.instantiateStreaming=="function"?function(t){return s=>WebAssembly.instantiateStreaming(t,s)}(c):function(t){return async s=>{const o=await t.arrayBuffer();return WebAssembly.instantiate(o,s)}}(c):function(t){return s=>WebAssembly.instantiate(t,s)}(c)}return A=new Promise((c,t)=>{l=c,y=t}),function(c,t,s,o){(0,S.default)({print:t,instantiateWasm:(r,f)=>{if(typeof performance>"u"){const d=()=>Date.now();r.env.emscripten_get_now=d,r.wasi_snapshot_preview1.emscripten_get_now=d}return c(r).then(d=>f(d.instance),o),{}}}).then(r=>{i=r,s()})}(b,p,l,y),A},a.createOnigString=function(j){return new _(j)},a.createOnigScanner=function(j){return new x(j)},a.setDefaultDebugCall=function(j){N=j}},418:m=>{var a=(typeof document<"u"&&document.currentScript&&document.currentScript.src,function(L){var w,S,i=(L=L||{})!==void 0?L:{};i.ready=new Promise(function(I,B){w=I,S=B});var N,h=Object.assign({},i),_=!1,x="";function g(I){return i.locateFile?i.locateFile(I,x):x+I}N=function(I){let B;return typeof readbuffer=="function"?new Uint8Array(readbuffer(I)):(B=read(I,"binary"),y(typeof B=="object"),B)},typeof scriptArgs<"u"&&scriptArgs,typeof onig_print<"u"&&(typeof console>"u"&&(console={}),console.log=onig_print,console.warn=console.error=typeof printErr<"u"?printErr:onig_print);var A,j,b=i.print||console.log.bind(console),p=i.printErr||console.warn.bind(console);Object.assign(i,h),h=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(A=i.wasmBinary),i.noExitRuntime,typeof WebAssembly!="object"&&D("no native wasm support detected");var l=!1;function y(I,B){I||D(B)}var c,t,s,o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function r(I,B,X){for(var te=B+X,z=B;I[z]&&!(z>=te);)++z;if(z-B>16&&I.buffer&&o)return o.decode(I.subarray(B,z));for(var W="";B<z;){var Y=I[B++];if(128&Y){var de=63&I[B++];if((224&Y)!=192){var me=63&I[B++];if((Y=(240&Y)==224?(15&Y)<<12|de<<6|me:(7&Y)<<18|de<<12|me<<6|63&I[B++])<65536)W+=String.fromCharCode(Y);else{var Oe=Y-65536;W+=String.fromCharCode(55296|Oe>>10,56320|1023&Oe)}}else W+=String.fromCharCode((31&Y)<<6|de)}else W+=String.fromCharCode(Y)}return W}function f(I,B){return I?r(t,I,B):""}function d(I){c=I,i.HEAP8=new Int8Array(I),i.HEAP16=new Int16Array(I),i.HEAP32=new Int32Array(I),i.HEAPU8=t=new Uint8Array(I),i.HEAPU16=new Uint16Array(I),i.HEAPU32=s=new Uint32Array(I),i.HEAPF32=new Float32Array(I),i.HEAPF64=new Float64Array(I)}i.INITIAL_MEMORY;var k=[],T=[],P=[];function O(){if(i.preRun)for(typeof i.preRun=="function"&&(i.preRun=[i.preRun]);i.preRun.length;)U(i.preRun.shift());se(k)}function E(){se(T)}function C(){if(i.postRun)for(typeof i.postRun=="function"&&(i.postRun=[i.postRun]);i.postRun.length;)H(i.postRun.shift());se(P)}function U(I){k.unshift(I)}function G(I){T.unshift(I)}function H(I){P.unshift(I)}var V=0,q=null;function F(I){V++,i.monitorRunDependencies&&i.monitorRunDependencies(V)}function M(I){if(V--,i.monitorRunDependencies&&i.monitorRunDependencies(V),V==0&&q){var B=q;q=null,B()}}function D(I){i.onAbort&&i.onAbort(I),p(I="Aborted("+I+")"),l=!0,I+=". Build with -sASSERTIONS for more info.";var B=new WebAssembly.RuntimeError(I);throw S(B),B}var J,R,Q="data:application/octet-stream;base64,";function $(I){return I.startsWith(Q)}function ee(I){try{if(I==J&&A)return new Uint8Array(A);if(N)return N(I);throw"both async and sync fetching of the wasm failed"}catch(B){D(B)}}function ie(){return A||!_||typeof fetch!="function"?Promise.resolve().then(function(){return ee(J)}):fetch(J,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+J+"'";return I.arrayBuffer()}).catch(function(){return ee(J)})}function be(){var I={env:ue,wasi_snapshot_preview1:ue};function B(z,W){var Y=z.exports;i.asm=Y,d((j=i.asm.memory).buffer),i.asm.__indirect_function_table,G(i.asm.__wasm_call_ctors),M()}function X(z){B(z.instance)}function te(z){return ie().then(function(W){return WebAssembly.instantiate(W,I)}).then(function(W){return W}).then(z,function(W){p("failed to asynchronously prepare wasm: "+W),D(W)})}if(F(),i.instantiateWasm)try{return i.instantiateWasm(I,B)}catch(z){p("Module.instantiateWasm callback failed with error: "+z),S(z)}return(A||typeof WebAssembly.instantiateStreaming!="function"||$(J)||typeof fetch!="function"?te(X):fetch(J,{credentials:"same-origin"}).then(function(z){return WebAssembly.instantiateStreaming(z,I).then(X,function(W){return p("wasm streaming compile failed: "+W),p("falling back to ArrayBuffer instantiation"),te(X)})})).catch(S),{}}function se(I){for(;I.length>0;)I.shift()(i)}function re(I,B,X){t.copyWithin(I,B,B+X)}function pe(I){try{return j.grow(I-c.byteLength+65535>>>16),d(j.buffer),1}catch{}}function oe(I){var B,X=t.length,te=2147483648;if((I>>>=0)>te)return!1;for(var z=1;z<=4;z*=2){var W=X*(1+.2/z);if(W=Math.min(W,I+100663296),pe(Math.min(te,(B=Math.max(I,W))+(65536-B%65536)%65536)))return!0}return!1}$(J="onig.wasm")||(J=g(J)),R=typeof dateNow<"u"?dateNow:()=>performance.now();var ce=[null,[],[]];function le(I,B){var X=ce[I];B===0||B===10?((I===1?b:p)(r(X,0)),X.length=0):X.push(B)}function ae(I,B,X,te){for(var z=0,W=0;W<X;W++){var Y=s[B>>2],de=s[B+4>>2];B+=8;for(var me=0;me<de;me++)le(I,t[Y+me]);z+=de}return s[te>>2]=z,0}var Z,ue={emscripten_get_now:R,emscripten_memcpy_big:re,emscripten_resize_heap:oe,fd_write:ae};function ge(I){function B(){Z||(Z=!0,i.calledRun=!0,l||(E(),w(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),C()))}V>0||(O(),V>0||(i.setStatus?(i.setStatus("Running..."),setTimeout(function(){setTimeout(function(){i.setStatus("")},1),B()},1)):B()))}if(be(),i.___wasm_call_ctors=function(){return(i.___wasm_call_ctors=i.asm.__wasm_call_ctors).apply(null,arguments)},i.___errno_location=function(){return(i.___errno_location=i.asm.__errno_location).apply(null,arguments)},i._omalloc=function(){return(i._omalloc=i.asm.omalloc).apply(null,arguments)},i._ofree=function(){return(i._ofree=i.asm.ofree).apply(null,arguments)},i._getLastOnigError=function(){return(i._getLastOnigError=i.asm.getLastOnigError).apply(null,arguments)},i._createOnigScanner=function(){return(i._createOnigScanner=i.asm.createOnigScanner).apply(null,arguments)},i._freeOnigScanner=function(){return(i._freeOnigScanner=i.asm.freeOnigScanner).apply(null,arguments)},i._findNextOnigScannerMatch=function(){return(i._findNextOnigScannerMatch=i.asm.findNextOnigScannerMatch).apply(null,arguments)},i._findNextOnigScannerMatchDbg=function(){return(i._findNextOnigScannerMatchDbg=i.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},i.stackSave=function(){return(i.stackSave=i.asm.stackSave).apply(null,arguments)},i.stackRestore=function(){return(i.stackRestore=i.asm.stackRestore).apply(null,arguments)},i.stackAlloc=function(){return(i.stackAlloc=i.asm.stackAlloc).apply(null,arguments)},i.dynCall_jiji=function(){return(i.dynCall_jiji=i.asm.dynCall_jiji).apply(null,arguments)},i.UTF8ToString=f,q=function I(){Z||ge(),Z||(q=I)},i.preInit)for(typeof i.preInit=="function"&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return ge(),L.ready});m.exports=a}},n={},function m(a){var L=n[a];if(L!==void 0)return L.exports;var w=n[a]={exports:{}};return v[a].call(w.exports,w,w.exports,m),w.exports}(770);var v,n})})(Pt);var je={},It={get exports(){return je},set exports(e){je=e}};(function(e,u){(function(v,n){e.exports=n()})(ze,function(){return(()=>{var v={350:(m,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UseOnigurumaFindOptions=a.DebugFlags=void 0,a.DebugFlags={InDebugMode:typeof process<"u"&&!1},a.UseOnigurumaFindOptions=!1},36:(m,a)=>{var L;Object.defineProperty(a,"__esModule",{value:!0}),a.toOptionalTokenType=a.EncodedTokenAttributes=void 0,(L=a.EncodedTokenAttributes||(a.EncodedTokenAttributes={})).toBinaryStr=function(w){let S=w.toString(2);for(;S.length<32;)S="0"+S;return S},L.print=function(w){const S=L.getLanguageId(w),i=L.getTokenType(w),N=L.getFontStyle(w),h=L.getForeground(w),_=L.getBackground(w);console.log({languageId:S,tokenType:i,fontStyle:N,foreground:h,background:_})},L.getLanguageId=function(w){return(255&w)>>>0},L.getTokenType=function(w){return(768&w)>>>8},L.containsBalancedBrackets=function(w){return(1024&w)!=0},L.getFontStyle=function(w){return(30720&w)>>>11},L.getForeground=function(w){return(16744448&w)>>>15},L.getBackground=function(w){return(4278190080&w)>>>24},L.set=function(w,S,i,N,h,_,x){let g=L.getLanguageId(w),A=L.getTokenType(w),j=L.containsBalancedBrackets(w)?1:0,b=L.getFontStyle(w),p=L.getForeground(w),l=L.getBackground(w);return S!==0&&(g=S),i!==8&&(A=i),N!==null&&(j=N?1:0),h!==-1&&(b=h),_!==0&&(p=_),x!==0&&(l=x),(g<<0|A<<8|j<<10|b<<11|p<<15|l<<24)>>>0},a.toOptionalTokenType=function(w){return w}},996:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BasicScopeAttributesProvider=a.BasicScopeAttributes=void 0;const w=L(878);class S{constructor(_,x){this.languageId=_,this.tokenType=x}}a.BasicScopeAttributes=S;class i{constructor(_,x){this._getBasicScopeAttributes=new w.CachedFn(g=>{const A=this._scopeToLanguage(g),j=this._toStandardTokenType(g);return new S(A,j)}),this._defaultAttributes=new S(_,8),this._embeddedLanguagesMatcher=new N(Object.entries(x||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(_){return _===null?i._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(_)}_scopeToLanguage(_){return this._embeddedLanguagesMatcher.match(_)||0}_toStandardTokenType(_){const x=_.match(i.STANDARD_TOKEN_TYPE_REGEXP);if(!x)return 8;switch(x[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}a.BasicScopeAttributesProvider=i,i._NULL_SCOPE_METADATA=new S(0,0),i.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class N{constructor(_){if(_.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(_);const x=_.map(([g,A])=>w.escapeRegExpCharacters(g));x.sort(),x.reverse(),this.scopesRegExp=new RegExp(`^((${x.join(")|(")}))($|\\.)`,"")}}match(_){if(!this.scopesRegExp)return;const x=_.match(this.scopesRegExp);return x?this.values.get(x[1]):void 0}}},947:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LineTokens=a.BalancedBracketSelectors=a.StateStack=a.AttributedScopeStack=a.Grammar=a.createGrammar=void 0;const w=L(350),S=L(36),i=L(736),N=L(44),h=L(792),_=L(583),x=L(878),g=L(996),A=L(47);function j(o,r,f,d,k){const T=i.createMatchers(r,b),P=h.RuleFactory.getCompiledRuleId(f,d,k.repository);for(const O of T)o.push({debugSelector:r,matcher:O.matcher,ruleId:P,grammar:k,priority:O.priority})}function b(o,r){if(r.length<o.length)return!1;let f=0;return o.every(d=>{for(let k=f;k<r.length;k++)if(p(r[k],d))return f=k+1,!0;return!1})}function p(o,r){if(!o)return!1;if(o===r)return!0;const f=r.length;return o.length>f&&o.substr(0,f)===r&&o[f]==="."}a.createGrammar=function(o,r,f,d,k,T,P,O){return new l(o,r,f,d,k,T,P,O)};class l{constructor(r,f,d,k,T,P,O,E){if(this._rootScopeName=r,this.balancedBracketSelectors=P,this._onigLib=E,this._basicScopeAttributesProvider=new g.BasicScopeAttributesProvider(d,k),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=O,this._grammar=y(f,null),this._injections=null,this._tokenTypeMatchers=[],T)for(const C of Object.keys(T)){const U=i.createMatchers(C,b);for(const G of U)this._tokenTypeMatchers.push({matcher:G.matcher,type:T[C]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r=[],f=this._rootScopeName,d=(k=>k===this._rootScopeName?this._grammar:this.getExternalGrammar(k))(f);if(d){const k=d.injections;if(k)for(let P in k)j(r,P,k[P],this,d);const T=this._grammarRepository.injections(f);T&&T.forEach(P=>{const O=this.getExternalGrammar(P);if(O){const E=O.injectionSelector;E&&j(r,E,O,this,O)}})}return r.sort((k,T)=>k.priority-T.priority),r}getInjections(){if(this._injections===null&&(this._injections=this._collectInjections(),w.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const r of this._injections)console.log(` - ${r.debugSelector}`)}return this._injections}registerRule(r){const f=++this._lastRuleId,d=r(h.ruleIdFromNumber(f));return this._ruleId2desc[f]=d,d}getRule(r){return this._ruleId2desc[h.ruleIdToNumber(r)]}getExternalGrammar(r,f){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const d=this._grammarRepository.lookup(r);if(d)return this._includedGrammars[r]=y(d,f&&f.$base),this._includedGrammars[r]}}tokenizeLine(r,f,d=0){const k=this._tokenize(r,f,!1,d);return{tokens:k.lineTokens.getResult(k.ruleStack,k.lineLength),ruleStack:k.ruleStack,stoppedEarly:k.stoppedEarly}}tokenizeLine2(r,f,d=0){const k=this._tokenize(r,f,!0,d);return{tokens:k.lineTokens.getBinaryResult(k.ruleStack,k.lineLength),ruleStack:k.ruleStack,stoppedEarly:k.stoppedEarly}}_tokenize(r,f,d,k){let T;if(this._rootId===-1&&(this._rootId=h.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),f&&f!==t.NULL)T=!1,f.reset();else{T=!0;const U=this._basicScopeAttributesProvider.getDefaultAttributes(),G=this.themeProvider.getDefaults(),H=S.EncodedTokenAttributes.set(0,U.languageId,U.tokenType,null,G.fontStyle,G.foregroundId,G.backgroundId),V=this.getRule(this._rootId).getName(null,null);let q;q=V?c.createRootAndLookUpScopeName(V,H,this):c.createRoot("unknown",H),f=new t(null,this._rootId,-1,-1,!1,null,q,q)}r+=`
|
|
4
4
|
`;const P=this.createOnigString(r),O=P.content.length,E=new s(d,r,this._tokenTypeMatchers,this.balancedBracketSelectors),C=A._tokenizeString(this,P,T,0,f,E,!0,k);return N.disposeOnigString(P),{lineLength:O,lineTokens:E,ruleStack:C.stack,stoppedEarly:C.stoppedEarly}}}function y(o,r){return(o=x.clone(o)).repository=o.repository||{},o.repository.$self={$vscodeTextmateLocation:o.$vscodeTextmateLocation,patterns:o.patterns,name:o.scopeName},o.repository.$base=r||o.repository.$self,o}a.Grammar=l;class c{constructor(r,f,d){this.parent=r,this.scopePath=f,this.tokenAttributes=d}static createRoot(r,f){return new c(null,new _.ScopeStack(null,r),f)}static createRootAndLookUpScopeName(r,f,d){const k=d.getMetadataForScope(r),T=new _.ScopeStack(null,r),P=d.themeProvider.themeMatch(T),O=c.mergeAttributes(f,k,P);return new c(null,T,O)}get scopeName(){return this.scopePath.scopeName}equals(r){return c._equals(this,r)}static _equals(r,f){for(;;){if(r===f||!r&&!f)return!0;if(!r||!f||r.scopeName!==f.scopeName||r.tokenAttributes!==f.tokenAttributes)return!1;r=r.parent,f=f.parent}}static mergeAttributes(r,f,d){let k=-1,T=0,P=0;return d!==null&&(k=d.fontStyle,T=d.foregroundId,P=d.backgroundId),S.EncodedTokenAttributes.set(r,f.languageId,f.tokenType,null,k,T,P)}pushAttributed(r,f){if(r===null)return this;if(r.indexOf(" ")===-1)return c._pushAttributed(this,r,f);const d=r.split(/ /g);let k=this;for(const T of d)k=c._pushAttributed(k,T,f);return k}static _pushAttributed(r,f,d){const k=d.getMetadataForScope(f),T=r.scopePath.push(f),P=d.themeProvider.themeMatch(T),O=c.mergeAttributes(r.tokenAttributes,k,P);return new c(r,T,O)}getScopeNames(){return this.scopePath.getSegments()}}a.AttributedScopeStack=c;class t{constructor(r,f,d,k,T,P,O,E){this.parent=r,this.ruleId=f,this.beginRuleCapturedEOL=T,this.endRule=P,this.nameScopesList=O,this.contentNameScopesList=E,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=d,this._anchorPos=k}equals(r){return r!==null&&t._equals(this,r)}static _equals(r,f){return r===f||!!this._structuralEquals(r,f)&&r.contentNameScopesList.equals(f.contentNameScopesList)}static _structuralEquals(r,f){for(;;){if(r===f||!r&&!f)return!0;if(!r||!f||r.depth!==f.depth||r.ruleId!==f.ruleId||r.endRule!==f.endRule)return!1;r=r.parent,f=f.parent}}clone(){return this}static _reset(r){for(;r;)r._enterPos=-1,r._anchorPos=-1,r=r.parent}reset(){t._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(r,f,d,k,T,P,O){return new t(this,r,f,d,k,T,P,O)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(r){return r.getRule(this.ruleId)}toString(){const r=[];return this._writeString(r,0),"["+r.join(",")+"]"}_writeString(r,f){return this.parent&&(f=this.parent._writeString(r,f)),r[f++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,f}withContentNameScopesList(r){return this.contentNameScopesList===r?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,r)}withEndRule(r){return this.endRule===r?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,r,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(r){let f=this;for(;f&&f._enterPos===r._enterPos;){if(f.ruleId===r.ruleId)return!0;f=f.parent}return!1}}a.StateStack=t,t.NULL=new t(null,0,0,0,!1,null,null,null),a.BalancedBracketSelectors=class{constructor(o,r){this.allowAny=!1,this.balancedBracketScopes=o.flatMap(f=>f==="*"?(this.allowAny=!0,[]):i.createMatchers(f,b).map(d=>d.matcher)),this.unbalancedBracketScopes=r.flatMap(f=>i.createMatchers(f,b).map(d=>d.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(o){for(const r of this.unbalancedBracketScopes)if(r(o))return!1;for(const r of this.balancedBracketScopes)if(r(o))return!0;return this.allowAny}};class s{constructor(r,f,d,k){this.balancedBracketSelectors=k,this._emitBinaryTokens=r,this._tokenTypeOverrides=d,w.DebugFlags.InDebugMode?this._lineText=f:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(r,f){this.produceFromScopes(r.contentNameScopesList,f)}produceFromScopes(r,f){if(this._lastTokenEndIndex>=f)return;if(this._emitBinaryTokens){let k=r.tokenAttributes,T=!1;if(this.balancedBracketSelectors?.matchesAlways&&(T=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const P=r.getScopeNames();for(const O of this._tokenTypeOverrides)O.matcher(P)&&(k=S.EncodedTokenAttributes.set(k,0,S.toOptionalTokenType(O.type),null,-1,0,0));this.balancedBracketSelectors&&(T=this.balancedBracketSelectors.match(P))}if(T&&(k=S.EncodedTokenAttributes.set(k,0,8,T,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===k)return void(this._lastTokenEndIndex=f);if(w.DebugFlags.InDebugMode){const P=r.getScopeNames();console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,f).replace(/\n$/,"\\n")+"|");for(let O=0;O<P.length;O++)console.log(" * "+P[O])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(k),void(this._lastTokenEndIndex=f)}const d=r.getScopeNames();if(w.DebugFlags.InDebugMode){console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,f).replace(/\n$/,"\\n")+"|");for(let k=0;k<d.length;k++)console.log(" * "+d[k])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:f,scopes:d}),this._lastTokenEndIndex=f}getResult(r,f){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===f-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,f),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,f){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===f-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,f),this._binaryTokens[this._binaryTokens.length-2]=0);const d=new Uint32Array(this._binaryTokens.length);for(let k=0,T=this._binaryTokens.length;k<T;k++)d[k]=this._binaryTokens[k];return d}}a.LineTokens=s},965:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.parseInclude=a.TopLevelRepositoryReference=a.TopLevelReference=a.RelativeReference=a.SelfReference=a.BaseReference=a.ScopeDependencyProcessor=a.ExternalReferenceCollector=a.TopLevelRepositoryRuleReference=a.TopLevelRuleReference=void 0;const w=L(878);class S{constructor(t){this.scopeName=t}toKey(){return this.scopeName}}a.TopLevelRuleReference=S;class i{constructor(t,s){this.scopeName=t,this.ruleName=s}toKey(){return`${this.scopeName}#${this.ruleName}`}}a.TopLevelRepositoryRuleReference=i;class N{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(t){const s=t.toKey();this._seenReferenceKeys.has(s)||(this._seenReferenceKeys.add(s),this._references.push(t))}}function h(c,t,s,o){const r=s.lookup(c.scopeName);if(!r){if(c.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const f=s.lookup(t);c instanceof S?x({baseGrammar:f,selfGrammar:r},o):_(c.ruleName,{baseGrammar:f,selfGrammar:r,repository:r.repository},o);const d=s.injections(c.scopeName);if(d)for(const k of d)o.add(new S(k))}function _(c,t,s){t.repository&&t.repository[c]&&g([t.repository[c]],t,s)}function x(c,t){c.selfGrammar.patterns&&Array.isArray(c.selfGrammar.patterns)&&g(c.selfGrammar.patterns,{...c,repository:c.selfGrammar.repository},t),c.selfGrammar.injections&&g(Object.values(c.selfGrammar.injections),{...c,repository:c.selfGrammar.repository},t)}function g(c,t,s){for(const o of c){if(s.visitedRule.has(o))continue;s.visitedRule.add(o);const r=o.repository?w.mergeObjects({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&g(o.patterns,{...t,repository:r},s);const f=o.include;if(!f)continue;const d=y(f);switch(d.kind){case 0:x({...t,selfGrammar:t.baseGrammar},s);break;case 1:x(t,s);break;case 2:_(d.ruleName,{...t,repository:r},s);break;case 3:case 4:const k=d.scopeName===t.selfGrammar.scopeName?t.selfGrammar:d.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(k){const T={baseGrammar:t.baseGrammar,selfGrammar:k,repository:r};d.kind===4?_(d.ruleName,T,s):x(T,s)}else d.kind===4?s.add(new i(d.scopeName,d.ruleName)):s.add(new S(d.scopeName))}}}a.ExternalReferenceCollector=N,a.ScopeDependencyProcessor=class{constructor(c,t){this.repo=c,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new S(this.initialScopeName)]}processQueue(){const c=this.Q;this.Q=[];const t=new N;for(const s of c)h(s,this.initialScopeName,this.repo,t);for(const s of t.references)if(s instanceof S){if(this.seenFullScopeRequests.has(s.scopeName))continue;this.seenFullScopeRequests.add(s.scopeName),this.Q.push(s)}else{if(this.seenFullScopeRequests.has(s.scopeName)||this.seenPartialScopeRequests.has(s.toKey()))continue;this.seenPartialScopeRequests.add(s.toKey()),this.Q.push(s)}}};class A{constructor(){this.kind=0}}a.BaseReference=A;class j{constructor(){this.kind=1}}a.SelfReference=j;class b{constructor(t){this.ruleName=t,this.kind=2}}a.RelativeReference=b;class p{constructor(t){this.scopeName=t,this.kind=3}}a.TopLevelReference=p;class l{constructor(t,s){this.scopeName=t,this.ruleName=s,this.kind=4}}function y(c){if(c==="$base")return new A;if(c==="$self")return new j;const t=c.indexOf("#");if(t===-1)return new p(c);if(t===0)return new b(c.substring(1));{const s=c.substring(0,t),o=c.substring(t+1);return new l(s,o)}}a.TopLevelRepositoryReference=l,a.parseInclude=y},391:function(m,a,L){var w=this&&this.__createBinding||(Object.create?function(i,N,h,_){_===void 0&&(_=h),Object.defineProperty(i,_,{enumerable:!0,get:function(){return N[h]}})}:function(i,N,h,_){_===void 0&&(_=h),i[_]=N[h]}),S=this&&this.__exportStar||function(i,N){for(var h in i)h==="default"||Object.prototype.hasOwnProperty.call(N,h)||w(N,i,h)};Object.defineProperty(a,"__esModule",{value:!0}),S(L(947),a)},47:(m,a,L)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LocalStackElement=a._tokenizeString=void 0;const w=L(350),S=L(44),i=L(792),N=L(878);class h{constructor(l,y){this.stack=l,this.stoppedEarly=y}}function _(p,l,y,c,t,s,o,r){const f=l.content.length;let d=!1,k=-1;if(o){const O=function(E,C,U,G,H,V){let q=H.beginRuleCapturedEOL?0:-1;const F=[];for(let M=H;M;M=M.pop()){const D=M.getRule(E);D instanceof i.BeginWhileRule&&F.push({rule:D,stack:M})}for(let M=F.pop();M;M=F.pop()){const{ruleScanner:D,findOptions:J}=g(M.rule,E,M.stack.endRule,U,G===q),R=D.findNextMatchSync(C,G,J);if(w.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(D.toString())),!R){w.DebugFlags.InDebugMode&&console.log(" popping "+M.rule.debugName+" - "+M.rule.debugWhileRegExp),H=M.stack.pop();break}if(R.ruleId!==i.whileRuleId){H=M.stack.pop();break}R.captureIndices&&R.captureIndices.length&&(V.produce(M.stack,R.captureIndices[0].start),j(E,C,U,M.stack,V,M.rule.whileCaptures,R.captureIndices),V.produce(M.stack,R.captureIndices[0].end),q=R.captureIndices[0].end,R.captureIndices[0].end>G&&(G=R.captureIndices[0].end,U=!1))}return{stack:H,linePos:G,anchorPosition:q,isFirstLine:U}}(p,l,y,c,t,s);t=O.stack,c=O.linePos,y=O.isFirstLine,k=O.anchorPosition}const T=Date.now();for(;!d;){if(r!==0&&Date.now()-T>r)return new h(t,!0);P()}return new h(t,!1);function P(){w.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${c}: |${l.content.substr(c).replace(/\n$/,"\\n")}|`));const O=function(G,H,V,q,F,M){const D=function(ee,ie,be,se,re,pe){const oe=re.getRule(ee),{ruleScanner:ce,findOptions:le}=x(oe,ee,re.endRule,be,se===pe);let ae=0;w.DebugFlags.InDebugMode&&(ae=N.performanceNow());const Z=ce.findNextMatchSync(ie,se,le);if(w.DebugFlags.InDebugMode){const ue=N.performanceNow()-ae;ue>5&&console.warn(`Rule ${oe.debugName} (${oe.id}) matching took ${ue} against '${ie}'`),console.log(` scanning for (linePos: ${se}, anchorPosition: ${pe})`),console.log(ce.toString()),Z&&console.log(`matched rule id: ${Z.ruleId} from ${Z.captureIndices[0].start} to ${Z.captureIndices[0].end}`)}return Z?{captureIndices:Z.captureIndices,matchedRuleId:Z.ruleId}:null}(G,H,V,q,F,M),J=G.getInjections();if(J.length===0)return D;const R=function(ee,ie,be,se,re,pe,oe){let ce,le=Number.MAX_VALUE,ae=null,Z=0;const ue=pe.contentNameScopesList.getScopeNames();for(let ge=0,I=ee.length;ge<I;ge++){const B=ee[ge];if(!B.matcher(ue))continue;const X=ie.getRule(B.ruleId),{ruleScanner:te,findOptions:z}=x(X,ie,null,se,re===oe),W=te.findNextMatchSync(be,re,z);if(!W)continue;w.DebugFlags.InDebugMode&&(console.log(` matched injection: ${B.debugSelector}`),console.log(te.toString()));const Y=W.captureIndices[0].start;if(!(Y>=le)&&(le=Y,ae=W.captureIndices,ce=W.ruleId,Z=B.priority,le===re))break}return ae?{priorityMatch:Z===-1,captureIndices:ae,matchedRuleId:ce}:null}(J,G,H,V,q,F,M);if(!R)return D;if(!D)return R;const Q=D.captureIndices[0].start,$=R.captureIndices[0].start;return $<Q||R.priorityMatch&&$===Q?R:D}(p,l,y,c,t,k);if(!O)return w.DebugFlags.InDebugMode&&console.log(" no more matches."),s.produce(t,f),void(d=!0);const E=O.captureIndices,C=O.matchedRuleId,U=!!(E&&E.length>0)&&E[0].end>c;if(C===i.endRuleId){const G=t.getRule(p);w.DebugFlags.InDebugMode&&console.log(" popping "+G.debugName+" - "+G.debugEndRegExp),s.produce(t,E[0].start),t=t.withContentNameScopesList(t.nameScopesList),j(p,l,y,t,s,G.endCaptures,E),s.produce(t,E[0].end);const H=t;if(t=t.parent,k=H.getAnchorPos(),!U&&H.getEnterPos()===c)return w.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),t=H,s.produce(t,f),void(d=!0)}else{const G=p.getRule(C);s.produce(t,E[0].start);const H=t,V=G.getName(l.content,E),q=t.contentNameScopesList.pushAttributed(V,p);if(t=t.push(C,c,k,E[0].end===f,null,q,q),G instanceof i.BeginEndRule){const F=G;w.DebugFlags.InDebugMode&&console.log(" pushing "+F.debugName+" - "+F.debugBeginRegExp),j(p,l,y,t,s,F.beginCaptures,E),s.produce(t,E[0].end),k=E[0].end;const M=F.getContentName(l.content,E),D=q.pushAttributed(M,p);if(t=t.withContentNameScopesList(D),F.endHasBackReferences&&(t=t.withEndRule(F.getEndWithResolvedBackReferences(l.content,E))),!U&&H.hasSameRuleAs(t))return w.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),s.produce(t,f),void(d=!0)}else if(G instanceof i.BeginWhileRule){const F=G;w.DebugFlags.InDebugMode&&console.log(" pushing "+F.debugName),j(p,l,y,t,s,F.beginCaptures,E),s.produce(t,E[0].end),k=E[0].end;const M=F.getContentName(l.content,E),D=q.pushAttributed(M,p);if(t=t.withContentNameScopesList(D),F.whileHasBackReferences&&(t=t.withEndRule(F.getWhileWithResolvedBackReferences(l.content,E))),!U&&H.hasSameRuleAs(t))return w.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),s.produce(t,f),void(d=!0)}else{const F=G;if(w.DebugFlags.InDebugMode&&console.log(" matched "+F.debugName+" - "+F.debugMatchRegExp),j(p,l,y,t,s,F.captures,E),s.produce(t,E[0].end),t=t.pop(),!U)return w.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),t=t.safePop(),s.produce(t,f),void(d=!0)}}E[0].end>c&&(c=E[0].end,y=!1)}}function x(p,l,y,c,t){return w.UseOnigurumaFindOptions?{ruleScanner:p.compile(l,y),findOptions:A(c,t)}:{ruleScanner:p.compileAG(l,y,c,t),findOptions:0}}function g(p,l,y,c,t){return w.UseOnigurumaFindOptions?{ruleScanner:p.compileWhile(l,y),findOptions:A(c,t)}:{ruleScanner:p.compileWhileAG(l,y,c,t),findOptions:0}}function A(p,l){let y=0;return p||(y|=1),l||(y|=4),y}function j(p,l,y,c,t,s,o){if(s.length===0)return;const r=l.content,f=Math.min(s.length,o.length),d=[],k=o[0].end;for(let T=0;T<f;T++){const P=s[T];if(P===null)continue;const O=o[T];if(O.length===0)continue;if(O.start>k)break;for(;d.length>0&&d[d.length-1].endPos<=O.start;)t.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?t.produceFromScopes(d[d.length-1].scopes,O.start):t.produce(c,O.start),P.retokenizeCapturedWithRuleId){const C=P.getName(r,o),U=c.contentNameScopesList.pushAttributed(C,p),G=P.getContentName(r,o),H=U.pushAttributed(G,p),V=c.push(P.retokenizeCapturedWithRuleId,O.start,-1,!1,null,U,H),q=p.createOnigString(r.substring(0,O.end));_(p,q,y&&O.start===0,O.start,V,t,!1,0),S.disposeOnigString(q);continue}const E=P.getName(r,o);if(E!==null){const C=(d.length>0?d[d.length-1].scopes:c.contentNameScopesList).pushAttributed(E,p);d.push(new b(C,O.end))}}for(;d.length>0;)t.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}a._tokenizeString=_;class b{constructor(l,y){this.scopes=l,this.endPos=y}}a.LocalStackElement=b},974:(m,a)=>{function L(N,h){throw new Error("Near offset "+N.pos+": "+h+" ~~~"+N.source.substr(N.pos,50)+"~~~")}Object.defineProperty(a,"__esModule",{value:!0}),a.parseJSON=void 0,a.parseJSON=function(N,h,_){let x=new w(N),g=new S,A=0,j=null,b=[],p=[];function l(){b.push(A),p.push(j)}function y(){A=b.pop(),j=p.pop()}function c(t){L(x,t)}for(;i(x,g);){if(A===0){if(j!==null&&c("too many constructs in root"),g.type===3){j={},_&&(j.$vscodeTextmateLocation=g.toLocation(h)),l(),A=1;continue}if(g.type===2){j=[],l(),A=4;continue}c("unexpected token in root")}if(A===2){if(g.type===5){y();continue}if(g.type===7){A=3;continue}c("expected , or }")}if(A===1||A===3){if(A===1&&g.type===5){y();continue}if(g.type===1){let t=g.value;if(i(x,g)&&g.type===6||c("expected colon"),i(x,g)||c("expected value"),A=2,g.type===1){j[t]=g.value;continue}if(g.type===8){j[t]=null;continue}if(g.type===9){j[t]=!0;continue}if(g.type===10){j[t]=!1;continue}if(g.type===11){j[t]=parseFloat(g.value);continue}if(g.type===2){let s=[];j[t]=s,l(),A=4,j=s;continue}if(g.type===3){let s={};_&&(s.$vscodeTextmateLocation=g.toLocation(h)),j[t]=s,l(),A=1,j=s;continue}}c("unexpected token in dict")}if(A===5){if(g.type===4){y();continue}if(g.type===7){A=6;continue}c("expected , or ]")}if(A===4||A===6){if(A===4&&g.type===4){y();continue}if(A=5,g.type===1){j.push(g.value);continue}if(g.type===8){j.push(null);continue}if(g.type===9){j.push(!0);continue}if(g.type===10){j.push(!1);continue}if(g.type===11){j.push(parseFloat(g.value));continue}if(g.type===2){let t=[];j.push(t),l(),A=4,j=t;continue}if(g.type===3){let t={};_&&(t.$vscodeTextmateLocation=g.toLocation(h)),j.push(t),l(),A=1,j=t;continue}c("unexpected token in array")}c("unknown state")}return p.length!==0&&c("unclosed constructs"),j};class w{constructor(h){this.source=h,this.pos=0,this.len=h.length,this.line=1,this.char=0}}class S{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(h){return{filename:h,line:this.line,char:this.char}}}function i(N,h){h.value=null,h.type=0,h.offset=-1,h.len=-1,h.line=-1,h.char=-1;let _,x=N.source,g=N.pos,A=N.len,j=N.line,b=N.char;for(;;){if(g>=A)return!1;if(_=x.charCodeAt(g),_!==32&&_!==9&&_!==13){if(_!==10)break;g++,j++,b=0}else g++,b++}if(h.offset=g,h.line=j,h.char=b,_===34){for(h.type=1,g++,b++;;){if(g>=A)return!1;if(_=x.charCodeAt(g),g++,b++,_!==92){if(_===34)break}else g++,b++}h.value=x.substring(h.offset+1,g-1).replace(/\\u([0-9A-Fa-f]{4})/g,(p,l)=>String.fromCodePoint(parseInt(l,16))).replace(/\\(.)/g,(p,l)=>{switch(l){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return`
|