@nuxt/devtools 0.3.1 → 0.3.2
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 +1 -60
- package/cli.mjs +1 -1
- package/dist/chunks/module-main.mjs +230 -8365
- package/dist/chunks/vscode.mjs +12 -41561
- 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.ec308af3.js → Badge.b694092e.js} +1 -1
- package/dist/client/_nuxt/DrawerRight.vue.f3060893.js +1 -0
- package/dist/client/_nuxt/{DurationDisplay.vue.9b5b62d4.js → DurationDisplay.vue.0d7e7768.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.178a1de3.js → FilepathItem.vue.c7d65dc2.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.a0bbd67e.js → LaunchPage.vue.b1763741.js} +1 -1
- package/dist/client/_nuxt/NCheckbox.vue.f03c4497.js +1 -0
- package/dist/client/_nuxt/{NCodeBlock.vue.593cb41f.js → NCodeBlock.vue.f41a0d29.js} +1 -1
- package/dist/client/_nuxt/{NIconButton.vue.a83f99ea.js → NIconButton.vue.8aefaa88.js} +1 -1
- package/dist/client/_nuxt/{NIconTitle.vue.ce90e41b.js → NIconTitle.vue.6c944aa7.js} +1 -1
- package/dist/client/_nuxt/{NMarkdown.vue.11f68fad.js → NMarkdown.vue.ae60adfb.js} +1 -1
- package/dist/client/_nuxt/NSectionBlock.cef5b3bf.js +1 -0
- package/dist/client/_nuxt/{NSelect.vue.e19311d6.js → NSelect.vue.bd089297.js} +1 -1
- package/dist/client/_nuxt/{NSwitch.vue.76c93e66.js → NSwitch.vue.ce97ebe7.js} +1 -1
- package/dist/client/_nuxt/NTextInput.vue.188f5529.js +1 -0
- package/dist/client/_nuxt/{NTip.vue.ac67cde4.js → NTip.vue.2f192405.js} +1 -1
- package/dist/client/_nuxt/{NpmVersionCheck.vue.0eab98c7.js → NpmVersionCheck.vue.2469b5b3.js} +1 -1
- package/dist/client/_nuxt/{NuxtLogo.38adb408.js → NuxtLogo.7b90e5d5.js} +1 -1
- package/dist/client/_nuxt/{PanelLeftRight.vue.90cdedcf.js → PanelLeftRight.vue.73b30819.js} +1 -1
- package/dist/client/_nuxt/StateEditor.vue.96fdf802.js +1 -0
- package/dist/client/_nuxt/{TabIcon.vue.8236980c.js → TabIcon.vue.ee21be15.js} +1 -1
- package/dist/client/_nuxt/{__inspecting.143a746c.js → __inspecting.6125f0dc.js} +1 -1
- package/dist/client/_nuxt/assets.3fa6901a.js +16 -0
- package/dist/client/_nuxt/assets.a19ea08e.css +1 -0
- package/dist/client/_nuxt/{components.1b7f02b2.js → components.5589dfe1.js} +1 -1
- package/dist/client/_nuxt/{context.fe69916a.js → context.10127184.js} +1 -1
- package/dist/client/_nuxt/custom-_name_.3535f298.js +1 -0
- package/dist/client/_nuxt/{default.e6b60844.js → default.20732cb9.js} +1 -1
- package/dist/client/_nuxt/editor.58d10855.js +1 -0
- package/dist/client/_nuxt/entry.2594199e.css +32 -0
- package/dist/client/_nuxt/{entry.216b69f8.js → entry.e1ce6ad4.js} +102 -102
- package/dist/client/_nuxt/{error-404.51bdc645.js → error-404.d7646546.js} +1 -1
- package/dist/client/_nuxt/{error-500.15ac1dfe.js → error-500.6cac56ab.js} +1 -1
- package/dist/client/_nuxt/{error-component.0a7a48e4.js → error-component.a8114c77.js} +2 -2
- package/dist/client/_nuxt/{hooks.aa487478.js → hooks.196bb064.js} +1 -1
- package/dist/client/_nuxt/{imports.01c0f8be.js → imports.0af9087e.js} +1 -1
- package/dist/client/_nuxt/{index.517491fb.js → index.6a39516e.js} +1 -1
- package/dist/client/_nuxt/{index.3b3b7aca.js → index.ce8efa93.js} +1 -1
- package/dist/client/_nuxt/layouts.f9116de3.js +1 -0
- package/dist/client/_nuxt/{middleware.e73473f1.js → middleware.6a82419a.js} +1 -1
- package/dist/client/_nuxt/{modules.304ea21e.js → modules.44c94367.js} +1 -1
- package/dist/client/_nuxt/{none.3e2499ec.js → none.c8faecb4.js} +1 -1
- package/dist/client/_nuxt/{overview.b79bf694.js → overview.8e443c04.js} +1 -1
- package/dist/client/_nuxt/{pages.fafa9fe0.js → pages.0df70537.js} +1 -1
- package/dist/client/_nuxt/{payload.ee430f3a.js → payload.a31b3317.js} +1 -1
- package/dist/client/_nuxt/{plugins.5095ec46.js → plugins.4a0a667e.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.b20fbeb6.js → runtime-configs.2e7a9840.js} +1 -1
- package/dist/client/_nuxt/{server-routes.7352d340.js → server-routes.47766769.js} +1 -1
- package/dist/client/_nuxt/settings.d06b4aaf.js +1 -0
- package/dist/client/_nuxt/{storage.2e73159a.js → storage.eb42392f.js} +1 -1
- package/dist/client/_nuxt/terminals.1710aa98.js +1 -0
- package/dist/client/_nuxt/unocss-runtime.4fc34dc6.js +2 -0
- package/dist/client/_nuxt/virtual-files.1b4b12ba.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/modules/assets/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/storage/index.html +2 -2
- package/dist/client/modules/terminals/index.html +2 -2
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/client/settings/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/devtools.client.mjs +7 -2
- package/package.json +26 -25
- package/dist/cli.d.ts +0 -2
- package/dist/cli.mjs +0 -406
- package/dist/client/_nuxt/DrawerRight.vue.a85afa62.js +0 -1
- package/dist/client/_nuxt/NCheckbox.vue.4a02f339.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.c955e75e.js +0 -1
- package/dist/client/_nuxt/NTextInput.vue.d770ca6c.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.c57dfe46.js +0 -1
- package/dist/client/_nuxt/assets.d6a1ab2b.js +0 -16
- package/dist/client/_nuxt/custom-_name_.02ebd30e.js +0 -1
- package/dist/client/_nuxt/editor.e10c09a2.js +0 -1
- package/dist/client/_nuxt/entry.654353dc.css +0 -32
- package/dist/client/_nuxt/icons.43eaabec.js +0 -1
- package/dist/client/_nuxt/icons.d5925320.js +0 -1
- package/dist/client/_nuxt/icons.eca62571.js +0 -1
- package/dist/client/_nuxt/layouts.e447e192.js +0 -1
- package/dist/client/_nuxt/settings.b6d3cae9.js +0 -1
- package/dist/client/_nuxt/terminals.65080a19.js +0 -1
- package/dist/client/_nuxt/unocss-runtime.5708ce83.js +0 -2
- package/dist/client/_nuxt/virtual-files.9eb05502.js +0 -1
- package/dist/shared/devtools.696fb428.mjs +0 -4
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,N as s,o as t,f as o,h as n,t as r,u}from"./entry.216b69f8.js";const f=a({__name:"layouts",setup(l){const e=s();return(c,p)=>(t(),o("div",null,[n("pre",null,r(u(e)),1)]))}});export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as w}from"./NIconTitle.vue.ce90e41b.js";import{_ as C}from"./NSelect.vue.e19311d6.js";import{_ as N}from"./NCheckbox.vue.4a02f339.js";import{_ as U}from"./TabIcon.vue.8236980c.js";import{_ as $}from"./NSwitch.vue.76c93e66.js";import{a as B,a8 as D,o as n,f as d,i as a,h as o,w as i,u as l,H as p,F as x,v,S as F,t as g,c as I,x as O}from"./entry.216b69f8.js";const E={px6:"","max-w-100":"",py8:""},H={py3:"",flex:"~ col gap-1",border:"b base"},L=o("h3",{"text-lg":"",mb1:""}," UI Scale ",-1),j=["value"],z={py3:"",flex:"~ col gap-1",border:"b base"},R=o("h3",{"text-lg":"",mb1:""}," Features ",-1),q=o("span",null,"Close DevTools when clicking outside",-1),A=o("span",null,"Show experimental features",-1),G={py3:"",flex:"~ col gap-1"},J=o("h3",{"text-lg":"",mb1:""}," Tabs ",-1),Z=B({__name:"settings",setup(K){const{interactionCloseOnOutsideClick:r,showExperimentalFeatures:u,scale:m,hiddenTabs:s}=F(),h=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],y=D();function V(c,t){t?s.value=s.value.filter(_=>_!==c):s.value.push(c)}return(c,t)=>{const _=w,b=C,f=N,T=U,S=$;return n(),d("div",E,[a(_,{class:"text-xl op75",icon:"i-carbon-settings",text:"DevTools Settings"}),o("div",H,[L,a(b,{modelValue:l(m),"onUpdate:modelValue":t[0]||(t[0]=e=>p(m)?m.value=e:null),n:"primary"},{default:i(()=>[(n(),d(x,null,v(h,e=>o("option",{key:e[0],value:e[1]},g(e[0]),9,j)),64))]),_:1},8,["modelValue"])]),o("div",z,[R,a(f,{modelValue:l(r),"onUpdate:modelValue":t[1]||(t[1]=e=>p(r)?r.value=e:null),"n-primary":""},{default:i(()=>[q]),_:1},8,["modelValue"]),a(f,{modelValue:l(u),"onUpdate:modelValue":t[2]||(t[2]=e=>p(u)?u.value=e:null),"n-primary":""},{default:i(()=>[A]),_:1},8,["modelValue"])]),o("div",G,[J,(n(!0),d(x,null,v(l(y).all.value,e=>(n(),I(S,{key:e.name,"n-primary":"",flex:"~ row-reverse",py1:"","model-value":!l(s).includes(e.name),"onUpdate:modelValue":k=>V(e.name,k)},{default:i(()=>[o("div",{flex:"~ gap-2","items-center":"","flex-auto":"","justify-start":"",class:O(l(s).includes(e.name)?"op25":"")},[a(T,{"text-xl":"",icon:e.icon,title:e.title},null,8,["icon","title"]),o("span",null,g(e.title),1)],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))])])}}});export{Z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as T,E as b,ak as N,P as A,aG as E,aH as I,e as V,C as f,o,f as _,h as c,i as B,u as e,c as m,y,t as x,F as C,aI as R,a7 as q,V as F,m as L,r as M,v as z,l as w,w as D,x as h,aq as U,I as j,af as G}from"./entry.216b69f8.js";import{_ as g}from"./NIconButton.vue.a83f99ea.js";const H={border:"t base",flex:"~ gap-2","items-center":"",p2:""},P={op50:"","text-sm":""},S=T({__name:"TerminalView",props:{id:null},setup(p){const r=p,d=b(),v=N(),n=b();let s;A(async()=>{s=new E.Terminal({convertEol:!0,cols:80,screenReaderMode:!0});const t=new I.FitAddon;s.loadAddon(t),s.open(d.value),t.fit(),V(window,"resize",()=>{t.fit()}),n.value=await f.getTerminalDetail(r.id),n.value?.buffer&&s.write(n.value.buffer),v.hook("devtools:terminal:data",({id:i,data:l})=>{i===r.id&&s.write(l)})});function u(){f.runTerminalAction(r.id,"clear"),s?.clear()}return(t,i)=>{const l=g;return o(),_(C,null,[c("div",{ref_key:"container",ref:d,"h-full":"","w-full":"","of-auto":"","bg-black":""},null,512),c("div",H,[B(l,{title:"Clear",icon:"i-carbon-clean",onClick:i[0]||(i[0]=k=>u())}),e(n)?.restartable?(o(),m(l,{key:0,title:"Restart",icon:"carbon-renew",onClick:i[1]||(i[1]=k=>("rpc"in t?t.rpc:e(f)).runTerminalAction(p.id,"restart"))})):y("",!0),e(n)?.terminatable?(o(),m(l,{key:1,title:"Terminate",icon:"carbon-delete",onClick:i[2]||(i[2]=k=>("rpc"in t?t.rpc:e(f)).runTerminalAction(p.id,"terminate"))})):y("",!0),c("span",P,x(e(n)?.description),1)])],64)}}}),J={key:0,"h-full":"","w-full":"","of-hidden":"",grid:"~ rows-[max-content_1fr_max-content]"},K={flex:"~",border:"b base","items-center":"","navbar-glass":"","flex-1":""},O={key:1,p10:""},Q={key:1,"h-full":"","items-center":"",flex:"","justify-center":""},W=c("em",{op50:""},"No terminal attached",-1),X=[W],ne=T({__name:"terminals",setup(p){const r=R(),d=q(),v=F(),n=L(()=>{const u=d.query.id;return r.value?.find(t=>t.id===u)});function s(u){f.runTerminalAction(u,"remove"),v.replace("/modules/terminals")}return M(()=>{!d.query.id&&r.value?.length&&v.replace(`/modules/terminals?id=${encodeURIComponent(r.value[0].id)}`)}),(u,t)=>{const i=j,l=g,k=G,$=S;return e(r)?.length?(o(),_("div",J,[c("div",K,[(o(!0),_(C,null,z(e(r),a=>(o(),m(k,{key:a.id,border:"r base",flex:"~ gap-2","items-center":"",px3:"",py2:"",class:h(a.id===e(n)?.id?"bg-active":""),to:`/modules/terminals?id=${encodeURIComponent(a.id)}`},{default:D(()=>[a.icon?(o(),m(i,{key:0,icon:a.icon},null,8,["icon"])):y("",!0),c("span",{class:h(a.id===e(n)?.id?"":"op50")},x(a.name)+x(a.isTerminated?" (terminated)":""),3),a.isTerminated?(o(),m(l,{key:1,icon:"carbon-close","mx--2":"",onClick:U(Y=>s(a.id),["stop"])},null,8,["onClick"])):y("",!0)]),_:2},1032,["class","to"]))),128))]),e(n)?(o(),m($,{id:e(n).id,key:e(n).id},null,8,["id"])):(o(),_("div",O,[w(" Terminal "),c("code",null,x(e(d).query.id),1),w(" not found ")]))])):(o(),_("div",Q,X))}}});export{ne as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$ as be,_ as q}from"./entry.216b69f8.js";const X=Object.freeze({left:0,top:0,width:16,height:16}),U=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ue=Object.freeze({...X,...U}),ve=Object.freeze({...ue,body:"",hidden:!1}),Se=Object.freeze({width:null,height:null}),fe=Object.freeze({...Se,...U});function xe(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}function J(t,e){const r=xe(t,e);for(const n in ve)n in U?n in t&&!(n in r)&&(r[n]=U[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function ke(t,e){const r=t.icons,n=t.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(e||Object.keys(r).concat(Object.keys(n))).forEach(o),i}function Q(t,e,r){const n=t.icons,i=t.aliases||Object.create(null);let o={};function a(c){o=J(n[c]||i[c],o)}return a(e),r.forEach(a),J(t,o)}function $e(t,e){if(t.icons[e])return Q(t,e,[]);const r=ke(t,[e])[e];return r?Q(t,e,r):null}({...X});Object.keys(X).concat(["provider"]);const Ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ce=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ee(t,e,r){if(e===1)return t;if(r=r||100,typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;const n=t.split(Ae);if(n===null||!n.length)return t;const i=[];let o=n.shift(),a=Ce.test(o);for(;;){if(a){const c=parseFloat(o);isNaN(c)?i.push(o):i.push(Math.ceil(c*e*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}const Z=t=>t==="unset"||t==="undefined"||t==="none";function Ee(t,e){const r={...ue,...t},n={...fe,...e},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(S=>{const u=[],d=S.hFlip,x=S.vFlip;let w=S.rotate;d?x?w+=2:(u.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),u.push("scale(-1 1)"),i.top=i.left=0):x&&(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(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){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}w%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,p;a===null?(p=c===null?"1em":c==="auto"?f:c,l=ee(p,h/f)):(l=a==="auto"?h:a,p=c===null?ee(l,f/h):c==="auto"?f:c);const y={},b=(S,u)=>{Z(u)||(y[S]=u.toString())};return b("width",l),b("height",p),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 _e(t){return t.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(t,e){const r="rgb",n=e[0],i=e.length;i>1&&e[1],i>2&&e[2],i>3&&e[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 Oe=/\swidth\s*=\s*["'](\w+)["']/,je=/\sheight\s*=\s*["'](\w+)["']/,N=/<svg\s+/;function Me(t,e,r){const n=t.slice(0,t.indexOf(">")),i=(o,a)=>{const c=a.exec(n),h=c!=null,f=e[o];return!f&&!Z(f)&&(typeof r=="number"?r>0&&(e[o]=`${r}em`):c&&(e[o]=c[1])),h};return[i("width",Oe),i("height",je)]}async function he(t,e,r,n,i,o){const{scale:a,addXmlNs:c=!1}=n??{},{additionalProps:h={},iconCustomizer:f}=n?.customizations??{},l=await i?.()??{};await f?.(e,r,l),Object.keys(h).forEach(u=>{const d=h[u];d!=null&&(l[u]=d)}),o?.(l);const[p,y]=Me(t,l,a);c&&(!t.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const b=Object.keys(l).map(u=>u==="width"&&p||u==="height"&&y?null:`${u}="${l[u]}"`).filter(u=>u!=null);if(b.length&&(t=t.replace(N,`<svg ${b.join(" ")} `)),n){const{defaultStyle:u,defaultClass:d}=n;d&&!t.includes("class=")&&(t=t.replace(N,`<svg class="${d}" `)),u&&!t.includes("style=")&&(t=t.replace(N,`<svg style="${u}" `))}const S=n?.usedProps;return S&&(Object.keys(h).forEach(u=>{const d=l[u];d!=null&&(S[u]=d)}),typeof l.width<"u"&&l.width!==null&&(S.width=l.width),typeof l.height<"u"&&l.height!==null&&(S.height=l.height)),t}async function te(t,e,r,n){let i;if(typeof t=="function")i=await t(r);else{const o=t[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,e,r):i,i.startsWith("<svg")?await he(n?.customizations?.trimCustomSvg===!0?_e(i):i,e,r,n,void 0):(console.warn(`Custom icon "${r}" in "${e}" is not a valid SVG`),i)}}async function de(t,e,r,n){let i;const{customize:o}=n?.customizations??{};for(const a of r)if(i=$e(t,a),i){let c={...fe};typeof o=="function"&&(c=o(c));const{attributes:{width:h,height:f,...l},body:p}=Ee(i,c),y=n?.scale;return await he(`<svg >${p}</svg>`,e,a,n,()=>({...l}),b=>{const S=(u,d)=>{const x=b[u];let w;if(!Z(x)){if(x)return;typeof y=="number"?y&&(w=`${y}em`):w=d}w?b[u]=w:delete b[u]};S("width",h),S("height",f)})}}const pe=async(t,e,r)=>{const n=r?.customCollections?.[t];if(n)if(typeof n=="function"){const i=await n(e);if(i){if(typeof i=="string")return await te(()=>i,t,e,r);if("icons"in i){const o=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await de(i,t,o,r)}}}else return await te(n,t,e,r)};var Le=["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 ze(t){const e=new Map;function r(n){if(Le.includes(n))return e.has(n)||e.set(n,be(`${t}@iconify-json/${n}/icons.json`)),e.get(n)}return async(n,i,o)=>{let a=await pe(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 de(c,n,h,o)}return a}}function Pe(t){const e=t.length;let r=-1,n,i="";const o=t.charCodeAt(0);for(;++r<e;){if(n=t.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&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}const G=Pe;function M(t=[]){return Array.isArray(t)?t:[t]}function H(t){return Array.from(new Set(t))}function E(t){return typeof t=="string"}function R(t){return E(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ie(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>R(e)):[t]:[R(t)]}function Te(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function W(t){return t==null?"":Te(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function V(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ge(t,e){const r=t,n=e;if(Array.isArray(r))return[...n];const i={...r};return V(r)&&V(n)&&Object.keys(n).forEach(o=>{V(r[o])&&V(n[o])||Array.isArray(r[o])&&Array.isArray(n[o])?i[o]=ge(r[o],n[o]):Object.assign(i,{[o]:n[o]})}),i}function D(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?D(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:D(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?D(n):n;return r}return t}function Re(t){return E(t[0])}function Fe(t){return E(t[0])}const Ve=/[\w\u00A0-\uFFFF-_:%-?]/,re="$$shortcut-no-merge";function Be(t=""){return Ve.test(t)}function De(t){return typeof t=="function"?{match:t}:t}function ne(t){return t.length===3}function Ue(t){return t!=null}function He(){}class qe{constructor(){this._map=new Map}get(e,r){const n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}}const B={};function Ne(t=["-",":"]){const e=t.join("|");return B[e]||(B[e]=new RegExp(`((?:[!@\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),B[e].lastIndex=0,B[e]}function Ge(t,e=["-",":"],r=5){const n=Ne(e);let i=!1,o=t.toString();const a=new Set;do{const c=o;o=o.replace(n,(h,f,l,p)=>e.includes(l)?(a.add(f+l),p.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 We(t,e=["-",":"],r=5){const{expanded:n}=Ge(t.toString(),e,r);return typeof t=="string"?n:t.length()?t.overwrite(0,t.length(),n):t}const ie=new Set;function me(t){ie.has(t)||(console.warn("[unocss]",t),ie.add(t))}const Ye=/\\?[\s'"`;{}]+/g,Ke=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,ye=/\[(\\\W|[\w-])+:['"]?\S+?['"]?\]/g,Xe=new RegExp(`^${ye.source}$`),Ze=t=>{const e=new Set;for(const r of t.matchAll(ye))t[r.index-1]?.match(/^[\s'"`]/)&&e.add(r[0]);for(const r of t.matchAll(Ke))e.add(r[0]);return t.split(Ye).forEach(r=>{Be(r)&&!Xe.test(r)&&e.add(r)}),[...e]},Je={name:"split",order:0,extract({code:t}){return Ze(t)}};function Qe(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}const Y="default",K="preflights",et="shortcuts",tt={[K]:-100,[et]:-10,[Y]:0};function we(t){return M(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}function rt(t){const e=t.shortcuts?we(t.shortcuts):void 0;if(t.shortcuts=e,t.prefix||t.layer){const r=n=>{n[2]||(n[2]={});const i=n[2];i.prefix==null&&t.prefix&&(i.prefix=M(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};e?.forEach(r),t.rules?.forEach(r)}return t}function se(t={},e={}){const r=Object.assign({},e,t),n=(r.presets||[]).flatMap(M).map(rt),i=[...n.filter(u=>u.enforce==="pre"),...n.filter(u=>!u.enforce),...n.filter(u=>u.enforce==="post")],o=Object.assign({},tt,...n.map(u=>u.layers),r.layers);function a(u){return H([...i.flatMap(d=>M(d[u]||[])),...M(r[u]||[])])}const c=a("extractors");c.length||c.push(Je),c.sort((u,d)=>(u.order||0)-(d.order||0));const h=a("rules"),f={},l=h.length,p=h.map((u,d)=>{if(Re(u)){M(u[2]?.prefix||"").forEach(w=>{f[w+u[0]]=[d,u[1],u[2],u]});return}return[d,...u]}).filter(Boolean).reverse(),y=D([...i.map(u=>u.theme||{}),r.theme||{}].reduce((u,d)=>ge(u,d),{}));a("extendTheme").forEach(u=>u(y));const b={templates:H(i.map(u=>M(u.autocomplete?.templates)).flat()),extractors:i.map(u=>M(u.autocomplete?.extractors)).flat().sort((u,d)=>(u.order||0)-(d.order||0))};let S=M(a("separators"));return S.length||(S=[":","-"]),{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:p,rulesStaticMap:f,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:b,variants:a("variants").map(De).sort((u,d)=>(u.order||0)-(d.order||0)),shortcuts:we(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:S}}const nt="0.50.6";class it{constructor(e={},r={}){this.userConfig=e,this.defaults=r,this.version=nt,this._cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.events=Qe(),this.config=se(e,r),this.events.emit("config",this.config)}setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=se(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){const i={get original(){return e},code:e,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(e,r){const n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;const n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let i=e;for(const f of this.config.preprocess)i=f(e);if(this.isBlocked(i)){this.blocked.add(e),this._cache.set(n,null);return}const o=await this.matchVariants(e,i);if(!o||this.isBlocked(o[1])){this.blocked.add(e),this._cache.set(n,null);return}const a=this.makeContext(e,[r||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);const c=await 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(Ue);if(h?.length)return this._cache.set(n,h),h;this._cache.set(n,null)}async generate(e,r={}){const{id:n,scope:i,preflights:o=!0,safelist:a=!0,minify:c=!1}=r,h=E(e)?await this.applyExtractors(e,n):Array.isArray(e)?new Set(e):e;a&&this.config.safelist.forEach(g=>h.add(g));const f=c?"":`
|
|
2
|
-
`,l=new Set([Y]),p=new Set,y=new Map;let b={};const S=Array.from(h).map(async g=>{if(p.has(g))return;const $=await this.parseToken(g);if($!=null){p.add(g);for(const A of $){const C=A[3]||"",_=A[4]?.layer;y.has(C)||y.set(C,[]),y.get(C).push(A),_&&l.add(_)}}});await Promise.all(S),await(async()=>{if(!o)return;const g={generator:this,theme:this.config.theme},$=new Set([]);this.config.preflights.forEach(({layer:A=K})=>{l.add(A),$.add(A)}),b=Object.fromEntries(await Promise.all(Array.from($).map(async A=>{const _=(await Promise.all(this.config.preflights.filter(j=>(j.layer||K)===A).map(async j=>await j.getCSS(g)))).filter(Boolean).join(f);return[A,_]})))})();const u=this.config.sortLayers(Array.from(l).sort((g,$)=>(this.config.layers[g]??0)-(this.config.layers[$]??0)||g.localeCompare($))),d={},x=g=>{if(d[g])return d[g];let $=Array.from(y).sort((C,_)=>(this.parentOrders.get(C[0])??0)-(this.parentOrders.get(_[0])??0)||C[0]?.localeCompare(_[0]||"")||0).map(([C,_])=>{const j=_.length,T=_.filter(m=>(m[4]?.layer||Y)===g).sort((m,k)=>m[0]-k[0]||(m[4]?.sort||0)-(k[4]?.sort||0)||m[5]?.currentSelector?.localeCompare(k[5]?.currentSelector??"")||m[1]?.localeCompare(k[1]||"")||m[2]?.localeCompare(k[2]||"")||0).map(([,m,k,,O,,L])=>[[[(m&&ct(m,i))??"",O?.sort??0]],k,!!(L??O?.noMerge)]);if(!T.length)return;const F=T.reverse().map(([m,k,O],L)=>{if(!O&&this.config.mergeSelectors)for(let I=L+1;I<j;I++){const z=T[I];if(z&&!z[2]&&(m&&z[0]||m==null&&z[0]==null)&&z[1]===k)return m&&z[0]&&z[0].push(...m),null}const P=m?H(m.sort((I,z)=>I[1]-z[1]||I[0]?.localeCompare(z[0]||"")||0).map(I=>I[0]).filter(Boolean)):[];return P.length?`${P.join(`,${f}`)}{${k}}`:k}).filter(Boolean).reverse().join(f);if(!C)return F;const v=C.split(" $$ ");return`${v.join("{")}{${f}${F}${f}}${v.map(m=>"").join("}")}`}).filter(Boolean).join(f);o&&($=[b[g],$].filter(Boolean).join(f));const A=c?"":`/* layer: ${g} */${f}`;return d[g]=$?A+$:""},w=(g=u,$)=>g.filter(A=>!$?.includes(A)).map(A=>x(A)||"").filter(Boolean).join(f);return{get css(){return w()},layers:u,matched:p,getLayers:w,getLayer:x}}async matchVariants(e,r){const n=new Set,i=[];let o=r||e,a=!1;const c={rawSelector:e,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=await h.match(o,c);if(f){E(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 "${e}"`)}return[e,o,i,n]}applyVariants(e,r=e[4],n=e[1]){const o=r.slice().sort((f,l)=>(f.order||0)-(l.order||0)).reduceRight((f,l)=>p=>{const y=l.body?.(p.entries)||p.entries,b=Array.isArray(l.parent)?l.parent:[l.parent,void 0];return(l.handle??ut)({...p,entries:y,selector:l.selector?.(p.selector,y)||p.selector,parent:b[0]||p.parent,parentOrder:b[1]||p.parentOrder,layer:l.layer||p.layer,sort:l.sort||p.sort},f)},f=>f)({prefix:"",selector:lt(n),pseudo:"",entries:e[2]}),{parent:a,parentOrder:c}=o;a!=null&&c!=null&&this.parentOrders.set(a,c);const h={selector:[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(e,r,n){const i=R(r);if(E(i))return i;const{selector:o,entries:a,parent:c}=this.applyVariants([0,n||e.rawSelector,i,void 0,e.variantHandlers]),h=`${o}{${W(a)}}`;return c?`${c}{${h}}`:h}async parseUtil(e,r,n=!1,i){const[o,a,c]=E(e)?await this.matchVariants(e):e;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],p=R(h[1]),y=h[2];return E(p)?[[l,p,y]]:[[l,o,p,y,c]]}r.variantHandlers=c;const{rulesDynamic:f}=this.config;for(const[l,p,y,b]of f){if(b?.internal&&!n)continue;let S=a;if(b?.prefix){const w=M(b.prefix);if(i){const g=M(i);if(!w.some($=>g.includes($)))continue}else{const g=w.find($=>a.startsWith($));if(g==null)continue;S=a.slice(g.length)}}const u=S.match(p);if(!u)continue;const d=await y(u,r);if(!d)continue;this.config.details&&r.rules.push([p,y,b]);const x=Ie(d).filter(w=>w.length);if(x.length)return x.map(w=>E(w)?[l,w,b]:[l,o,w,b,c])}}stringifyUtil(e,r){if(!e)return;if(ne(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];const{selector:n,entries:i,parent:o,layer:a,sort:c,noMerge:h}=this.applyVariants(e),f=W(i);if(!f)return;const{layer:l,sort:p,...y}=e[3]??{},b={...y,layer:a??l,sort:c??p};return[e[0],n,f,o,b,this.config.details?r:void 0,h]}async expandShortcut(e,r,n=5){if(n===0)return;const i=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:He;let o,a;for(const c of this.config.shortcuts){let h=e;if(c[2]?.prefix){const l=M(c[2].prefix).find(p=>e.startsWith(p));if(l==null)continue;h=e.slice(l.length)}if(Fe(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(E(a)&&(a=We(a.trim()).split(/\s+/g)),!a){const[c,h]=E(e)?await this.matchVariants(e):e;if(c!==h){const f=await this.expandShortcut(h,r,n-1);f&&(a=f[0].map(l=>E(l)?c.replace(h,l):l))}}if(a)return[(await Promise.all(a.map(async c=>(E(c)?(await this.expandShortcut(c,r,n-1))?.[0]:void 0)||[c]))).flat(1).filter(Boolean),o]}async stringifyShortcuts(e,r,n,i={layer:this.config.shortcutsLayer}){const o=new qe,a=(await Promise.all(H(n).map(async l=>{const p=E(l)?await this.parseUtil(l,r,!0,i.prefix):[[1/0,"{inline}",R(l),void 0,[]]];return p||me(`unmatched utility "${l}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((l,p)=>l[0]-p[0]),[c,,h]=e,f=[];for(const l of a){if(ne(l)){f.push([l[0],void 0,l[1],void 0,l[2],r,void 0]);continue}const{selector:p,entries:y,parent:b,sort:S,noMerge:u}=this.applyVariants(l,[...l[4],...h],c);o.getFallback(p,b,[[],l[0]])[0].push([y,!!(u??l[3]?.noMerge),S??0])}return f.concat(o.map(([l,p],y,b)=>{const S=(d,x,w)=>{const g=Math.max(...w.map(A=>A[1])),$=w.map(A=>A[0]);return(d?[$.flat(1)]:$).map(A=>{const C=W(A);if(C)return[p,y,C,b,{...i,noMerge:x,sort:g},r,void 0]})};return[[l.filter(([,d])=>d).map(([d,,x])=>[d,x]),!0],[l.filter(([,d])=>!d).map(([d,,x])=>[d,x]),!1]].map(([d,x])=>[...S(!1,x,d.filter(([w])=>w.some(g=>g[0]===re))),...S(!0,x,d.filter(([w])=>w.every(g=>g[0]!==re)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>E(r)?r===e:r.test(e))}}function st(t,e){return new it(t,e)}const ot=/\s\$\$\s+/g,at=t=>t.match(/\s\$\$\s/);function ct(t,e){return at(t)?t.replace(ot,e?` ${e} `:" "):e?`${e} ${t}`:t}const oe=/^\[(.+?)(~?=)"(.*)"\]$/;function lt(t){return oe.test(t)?t.replace(oe,(e,r,n,i)=>`[${G(r)}${n}"${G(i)}"]`):`.${G(t)}`}function ut(t,e){return e(t)}function ft(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ht(t){let e=t.startsWith("<svg>")?t.replace("<svg>","<svg >"):t;return!e.includes(" xmlns:xlink=")&&e.includes(" xlink:")&&(e=e.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),e.includes(" xmlns=")||(e=e.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),ft(e)}const dt=3;function pt(t){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:p="icons",unit:y}=r,b={addXmlNs:!0,scale:n,customCollections:c,autoInstall:l,warn:void 0,customizations:{...f,additionalProps:{...h},trimCustomSvg:!0,async iconCustomizer(u,d,x){await f.iconCustomizer?.(u,d,x),y&&(x.width||(x.width=`${n}${y}`),x.height||(x.height=`${n}${y}`))}}};let S;return{name:"@unocss/preset-icons",enforce:"pre",options:r,layers:{icons:-30},rules:[[/^([a-z0-9:-]+)(?:\?(mask|bg|auto))?$/,async([u,d,x=i])=>{let w="",g="",$;S=S||await t(r);const A={};if(d.includes(":"))[w,g]=d.split(":"),$=await S(w,g,{...b,usedProps:A});else{const _=d.split(/-/g);for(let j=dt;j>=1&&(w=_.slice(0,j).join("-"),g=_.slice(j).join("-"),$=await S(w,g,{...b,usedProps:A}),!$);j--);}if(!$){a&&me(`failed to load icon "${u}"`);return}const C=`url("data:image/svg+xml;utf8,${ht($)}")`;return x==="auto"&&(x=$.includes("currentColor")?"mask":"bg"),x==="mask"?{"--un-icon":C,"-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",...A}:{background:`${C} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...A}},{layer:p,prefix:o}]]}}}const gt=pt(async t=>{const{cdn:e}=t;return e?ze(e):pe});var mt=t=>t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():""),ae=t=>t.charAt(0).toUpperCase()+t.slice(1),ce=t=>t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),le=["Webkit","Moz","ms"];function yt(t){const e={};function r(n){const i=e[n];if(i)return i;let o=mt(n);if(o!=="filter"&&o in t)return e[n]=ce(o);o=ae(o);for(let a=0;a<le.length;a++){const c=`${le[a]}${o}`;if(c in t)return e[n]=ce(ae(c))}return n}return({entries:n})=>n.forEach(i=>{i[0].startsWith("--")||(i[0]=r(i[0]))})}function wt(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function bt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,r=window.document,n=()=>r.documentElement,i=e.__unocss||{},o=Object.assign({},t,i.runtime),a=o.defaults||{},c=o.cloakAttribute??"un-cloak";o.autoPrefix&&(a.postprocess=M(a.postprocess)).unshift(yt(r.createElement("div").style)),o.configResolved?.(i,a);const h=st(i,a),f=new Map;let l=!0,p=new Set,y,b,S=[];const u=()=>new Promise(v=>{S.push(v),b!=null&&clearTimeout(b),b=setTimeout(()=>w().then(()=>{const m=S;S=[],m.forEach(k=>k())}),0)});function d(v){if(v.nodeType!==1)return;const m=v;m.hasAttribute(c)&&m.removeAttribute(c),m.querySelectorAll(`[${c}]`).forEach(k=>{k.removeAttribute(c)})}function x(v,m){let k=f.get(v);if(!k)if(k=r.createElement("style"),f.set(v,k),m==null)n().prepend(k);else{const O=x(m),L=O.parentNode;L?L.insertBefore(k,O.nextSibling):n().prepend(k)}return k}async function w(){const v=await h.generate(p);return v.layers.reduce((m,k)=>(x(k,m).innerHTML=v.getLayer(k)??"",k),void 0),p=v.matched,{...v,getStyleElement:m=>f.get(m),getStyleElements:()=>f}}async function g(v){const m=p.size;await h.applyExtractors(v,void 0,p),m!==p.size&&await u()}async function $(){const v=r.body,m=v&&v.outerHTML;m&&(await g(`${m} ${wt(m)}`),d(n()),d(v))}const A=new MutationObserver(v=>{l||v.forEach(async m=>{if(m.target.nodeType!==1)return;const k=m.target;for(const O of f)if(k===O[1])return;if(m.type==="childList")m.addedNodes.forEach(async O=>{if(O.nodeType!==1)return;const L=O;y&&!y(L)||(await g(L.outerHTML),d(L))});else{if(y&&!y(k))return;if(m.attributeName!==c){const O=Array.from(k.attributes).map(P=>P.value?`${P.name}="${P.value}"`:P.name).join(" "),L=`<${k.tagName.toLowerCase()} ${O}>`;await g(L)}k.hasAttribute(c)&&k.removeAttribute(c)}})});let C=!1;function _(){if(C)return;const v=n()||r.body;v&&(A.observe(v,{childList:!0,subtree:!0,attributes:!0}),C=!0)}function j(){$(),_()}function T(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",j):j()}const F=e.__unocss_runtime=e.__unocss_runtime={version:h.version,uno:h,async extract(v){E(v)||(v.forEach(m=>p.add(m)),v=""),await g(v)},extractAll:$,inspect(v){y=v},toggleObserver(v){v===void 0?l=!l:l=!!v,!C&&!l&&T()},update:w};o.ready?.(F)!==!1&&(l=!1,T())}bt({defaults:{presets:[gt({prefix:["i-",""],collections:{logos:()=>q(()=>import("./icons.eca62571.js"),[],import.meta.url).then(t=>t.default),carbon:()=>q(()=>import("./icons.43eaabec.js"),[],import.meta.url).then(t=>t.default),ri:()=>q(()=>import("./icons.d5925320.js"),[],import.meta.url).then(t=>t.default)},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as S}from"./NTextInput.vue.d770ca6c.js";import{u as a,m as _,a2 as V,al as j,a as B,E as D,ad as E,a7 as L,r as T,o as d,c as U,w as F,h as y,i as C,H as A,f as v,v as I,F as R,l as z,t as N,x as O,af as W}from"./entry.216b69f8.js";import{_ as P}from"./NCodeBlock.vue.593cb41f.js";import{_ as q}from"./PanelLeftRight.vue.90cdedcf.js";import{h as H}from"./index.c769634a.js";import{F as K}from"./fuse.esm.88e2763d.js";function X(u,r,p){const[e={},s]=typeof r=="string"?[{},r]:[r,p],n=e.key||H([s,a(e.baseURL),typeof u=="string"?u:"",a(e.params||e.query)]);if(!n||typeof n!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+n);if(!u)throw new Error("[nuxt] [useFetch] request is missing.");const i=n===s?"$f"+n:n,c=_(()=>{let f=u;return typeof f=="function"&&(f=f()),a(f)}),{server:m,lazy:x,default:b,transform:t,pick:o,watch:g,immediate:k,...w}=e,h=V({...w,cache:typeof e.cache=="boolean"?void 0:e.cache}),l={server:m,lazy:x,default:b,transform:t,pick:o,immediate:k,watch:[h,c,...g||[]]};let $;return j(i,()=>($?.abort?.(),$=typeof AbortController<"u"?new AbortController:{},typeof c.value=="string"&&c.value.startsWith("/"),(e.$fetch||globalThis.$fetch)(c.value,{signal:$.signal,...h})),l)}const G={pb2:"",p3:"","navbar-glass":"",border:"b base"},J=y("div",{"x-divider":""},null,-1),M={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Q={border:"b base","text-sm":"","flex-none":"",px4:"",py2:"",op75:""},Y={key:1,"h-full":"",flex:"","items-center":"","justify-center":"",op50:""},re=B({__name:"virtual-files",async setup(u){let r,p;const e=D(""),{data:s}=([r,p]=E(()=>X("/_vfs.json",{key:"vfs-list",baseURL:"/",responseType:"json"},"$3wSzD6RdXF")),r=await r,p(),r),n=_(()=>L().query?.id),i=D();T(()=>{if(!n.value)return;const t=`/_vfs.json/${encodeURIComponent(n.value)}`;fetch(t).then(o=>o.json()).then(o=>i.value=o.current)});function c(t){if(s.value?.rootDir)return t.startsWith(s.value?.rootDir)?t.slice(s.value.rootDir.length):t}const m=_(()=>s.value?s.value.entries.filter(t=>!t.id.startsWith(`${s.value?.rootDir||""}/.nuxt/`)).sort((t,o)=>t.id.localeCompare(o.id)):[]),x=_(()=>new K(m.value,{keys:["id","path"]})),b=_(()=>e.value?x.value.search(e.value).map(t=>t.item):m.value);return(t,o)=>{const g=S,k=W,w=P,h=q;return d(),U(h,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:F(()=>[y("div",G,[C(g,{modelValue:a(e),"onUpdate:modelValue":o[0]||(o[0]=l=>A(e)?e.value=l:null),icon:"carbon-search",placeholder:"Search...",n:"primary"},null,8,["modelValue"])]),(d(!0),v(R,null,I(a(b),l=>(d(),v(R,{key:l.id},[C(k,{px2:"","text-sm":"",py1:"","font-mono":"",block:"",truncate:"","select-none":"",to:`/modules/virtual-files?id=${encodeURIComponent(l.id)}`,class:O(l.id===a(i)?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:F(()=>[z(N(c(l.id)),1)]),_:2},1032,["to","class"]),J],64))),128))]),right:F(()=>[a(i)?.content?(d(),v("div",M,[y("div",Q,[y("code",null,N(a(i).id),1)]),C(w,{"h-full":"","text-sm":"","of-auto":"",code:a(i).content,lang:"typescript"},null,8,["code"])])):(d(),v("span",Y,"Select one file to start"))]),_:1})}}});export{re as default};
|