@nuxt/devtools 0.2.0 → 0.2.3
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 +10 -0
- package/dist/chunks/module-main.mjs +15 -15
- package/dist/chunks/vscode.mjs +4 -3
- package/dist/cli.mjs +1 -1
- 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.4e9c300b.js → Badge.4a77fa78.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.b36b22b8.js → FilepathItem.vue.979135a2.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.c9d8bfbe.js → LaunchPage.vue.b76c79ef.js} +1 -1
- package/dist/client/_nuxt/{NButton.vue.b50294f1.js → NButton.vue.1a112b83.js} +1 -1
- package/dist/client/_nuxt/{NCheckbox.vue.69c13749.js → NCheckbox.vue.a0c90a66.js} +1 -1
- package/dist/client/_nuxt/{NIcon.vue.656cdb1e.js → NIcon.vue.87f21f5b.js} +1 -1
- package/dist/client/_nuxt/{NTextInput.vue.928c9e2a.js → NTextInput.vue.fd5ccf6b.js} +1 -1
- package/dist/client/_nuxt/{NuxtLogo.f9908c64.js → NuxtLogo.042990f0.js} +1 -1
- package/dist/client/_nuxt/{SectionBlock.914c7802.js → SectionBlock.6f644f93.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.99c457ec.js → StateEditor.vue.36646f40.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.24b581fe.js → StateEditor.vue.a07128f1.js} +1 -1
- package/dist/client/_nuxt/{TabIcon.vue.c3d4f8eb.js → TabIcon.vue.5b095463.js} +1 -1
- package/dist/client/_nuxt/{__inspecting.f0beaf14.js → __inspecting.8e04d312.js} +1 -1
- package/dist/client/_nuxt/{asyncData.d4a4cc23.js → asyncData.1fda28f3.js} +1 -1
- package/dist/client/_nuxt/{components.2f7ee4ee.js → components.54475639.js} +1 -1
- package/dist/client/_nuxt/composables.d26f66f1.js +1 -0
- package/dist/client/_nuxt/{context.f290c514.js → context.9698c0b7.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_.6fcfe01b.js → custom-_name_.3bf9ba62.js} +1 -1
- package/dist/client/_nuxt/{default.7c4cf2ae.js → default.ddc4865a.js} +1 -1
- package/dist/client/_nuxt/editor.09625e23.js +1 -0
- package/dist/client/_nuxt/{entry.3f184dda.js → entry.86f6ad34.js} +1 -1
- package/dist/client/_nuxt/{error-404.42d6fea6.js → error-404.e8158634.js} +1 -1
- package/dist/client/_nuxt/{error-500.c25057d1.js → error-500.47af0385.js} +1 -1
- package/dist/client/_nuxt/{error-component.f5255ea4.js → error-component.c0967733.js} +2 -2
- package/dist/client/_nuxt/{hooks.f2f7f7c0.js → hooks.5083417d.js} +1 -1
- package/dist/client/_nuxt/{imports.c6403530.js → imports.dd507f13.js} +1 -1
- package/dist/client/_nuxt/{index.cb924a24.js → index.5d8d473c.js} +1 -1
- package/dist/client/_nuxt/layouts.87dc2998.js +1 -0
- package/dist/client/_nuxt/{middleware.986c1dcb.js → middleware.69b6216a.js} +1 -1
- package/dist/client/_nuxt/{modules.67212f2b.js → modules.81a5998b.js} +1 -1
- package/dist/client/_nuxt/{none.64c3c69e.js → none.31b2b728.js} +1 -1
- package/dist/client/_nuxt/{nuxt-link.7c2ecc54.js → nuxt-link.5c23b37c.js} +1 -1
- package/dist/client/_nuxt/overview.03a7bccb.js +1 -0
- package/dist/client/_nuxt/{pages.28f6050f.js → pages.e8864866.js} +1 -1
- package/dist/client/_nuxt/{payload.482e4157.js → payload.7a85ff3c.js} +1 -1
- package/dist/client/_nuxt/{plugins.dc220904.js → plugins.1128c839.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.a7793337.js → runtime-configs.6a712d37.js} +1 -1
- package/dist/client/_nuxt/{server-routes.7dbce087.js → server-routes.3adfcc71.js} +1 -1
- package/dist/client/_nuxt/{state.99106176.js → state.567d3ef4.js} +1 -1
- package/dist/client/_nuxt/{unocss-runtime.bcfb14a2.js → unocss-runtime.25c772f5.js} +1 -1
- package/dist/client/_nuxt/{virtual-files.1c188f74.js → virtual-files.5e4c425c.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/dirs.d.ts +2 -1
- package/dist/dirs.mjs +20 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -1
- package/dist/shared/{devtools.edb7b427.mjs → devtools.20f5aa36.mjs} +2 -2
- package/dist/shared/{devtools.894440bf.mjs → devtools.e021beee.mjs} +1 -1
- package/package.json +5 -4
- package/dist/client/_nuxt/composables.a4d79ae5.js +0 -1
- package/dist/client/_nuxt/editor.cdd0d584.js +0 -1
- package/dist/client/_nuxt/layouts.c6fb5d9f.js +0 -1
- package/dist/client/_nuxt/overview.39e81b24.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ad as i,o as a,f as r,h as e,t as s,a0 as n,a1 as l}from"./entry.
|
|
1
|
+
import{ad as i,o as a,f as r,h as e,t as s,a0 as n,a1 as l}from"./entry.86f6ad34.js";import{_ as d}from"./_plugin-vue_export-helper.c27b6911.js";const c=t=>(n("data-v-583914b6"),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"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},m=["textContent"],g=["textContent"],b={__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}'}]}),(x,u)=>(a(),r("div",p,[h,e("div",f,[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(b,[["__scopeId","data-v-583914b6"]]);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.86f6ad34.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.e8158634.js"),["./error-404.e8158634.js","./nuxt-link.5c23b37c.js","./entry.86f6ad34.js","./entry.aace963d.css","./_plugin-vue_export-helper.c27b6911.js","./error-404.2618a69f.css"],import.meta.url).then(e=>e.default||e)):n(()=>o(()=>import("./error-500.47af0385.js"),["./error-500.47af0385.js","./entry.86f6ad34.js","./entry.aace963d.css","./_plugin-vue_export-helper.c27b6911.js","./error-500.12a2683b.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 $,q as C,l as w,o as p,f as h,h as e,k as i,K as l,u as n,F,z as N,t as c,L as T,b as L,c as V,w as H,m as z,i as f}from"./entry.
|
|
1
|
+
import{a as $,q as C,l as w,o as p,f as h,h as e,k as i,K as l,u as n,F,z as N,t as c,L as T,b as L,c as V,w as H,m as z,i as f}from"./entry.86f6ad34.js";import{_ as D}from"./SectionBlock.6f644f93.js";import{e as E}from"./state.567d3ef4.js";import"./NIcon.vue.87f21f5b.js";/* empty css */import"./_plugin-vue_export-helper.c27b6911.js";import"./asyncData.1fda28f3.js";const I={"w-full":""},O={border:"b base"},j={p1:"","ws-nowrap":"","select-none":"","text-right":"","font-bold":""},q={colspan:"2","font-bold":"",p1:"","text-left":"",pl5:""},A={p1:"","text-center":"","font-bold":"","ws-nowrap":""},K={p1:"","text-center":"","font-bold":"","ws-nowrap":""},M={p1:"","text-right":"","font-bold":"","ws-nowrap":""},P={"text-center":"","ws-nowrap":"","text-sm":"",op25:"","w-0":""},R={"text-sm":""},G={"ws-nowrap":""},J={"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 m(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 S(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 B(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(),h("table",I,[e("thead",O,[e("tr",null,[e("th",j,[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",q,[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",K,[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",M,[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),h(F,null,N(n(x),s=>(p(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[e("td",P,c(n(g).indexOf(s.start)),1),e("td",{"text-right":"","w-0":"","ws-nowrap":"",style:T({color:B(v(s.name))})},[e("code",R,c(v(s.name)),1)],4),e("td",G,[e("code",J,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(S(s.duration))},[i(c(m(s.duration)),1),W],2)]))),128))])]))}}),rt=$({__name:"hooks",setup(b){const d=E(),a=L(),r=w(()=>a.value?.getClientHooksMetrics());return(k,g)=>{const x=X,m=D;return p(),h("div",null,[n(r)?.length?(p(),V(m,{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"])):z("",!0),f(m,{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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as D}from"./NTextInput.vue.
|
|
1
|
+
import{_ as D}from"./NTextInput.vue.fd5ccf6b.js";import{a as M,l as w,p as z,o as t,c as k,w as b,h as n,f as p,u as e,m as v,i as x,k as C,F as V,t as I,z as N,K as F,M as T,N as j,O as E,x as B,P as K,r as L,q as U}from"./entry.86f6ad34.js";import{_ as S}from"./FilepathItem.vue.979135a2.js";import{r as P,_ as H}from"./NButton.vue.1a112b83.js";import{u as q,o as A}from"./editor.09625e23.js";import{_ as O}from"./SectionBlock.6f644f93.js";import{f as R,h as G,i as J,j as Q,g as W}from"./state.567d3ef4.js";import{F as X}from"./fuse.esm.88e2763d.js";import"./NIcon.vue.87f21f5b.js";import"./nuxt-link.5c23b37c.js";/* empty css */import"./StateEditor.vue.36646f40.js";import"./context.9698c0b7.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./asyncData.1fda28f3.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=H,c=S,m=z("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(P))(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,N(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:F(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,N(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,N(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 peer-active:n-active-base peer-focus-visible:n-focus-base n-switch-slider n-checked:n-switch-slider-checked"},[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=T(a,"modelValue",r,{passive:!0});return(d,s)=>(t(),p("label",{class:"n-disabled:n-disabled n-switch n-switch-base",checked:e(o)||null,disabled:a.disabled||null},[j(n("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>B(o)?o.value=u:null),type:"checkbox",class:"absolute op0 peer",disabled:a.disabled,onKeypress:s[1]||(s[1]=K(u=>o.value=!e(o),["enter"]))},null,40,_e),[[E,e(o)]]),he,n("span",null,[L(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},Te=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=>B(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=>B(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{Te as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a}from"./NuxtLogo.
|
|
1
|
+
import{_ as a}from"./NuxtLogo.042990f0.js";import{_ as c}from"./Badge.4a77fa78.js";import{_ as p}from"./NButton.vue.1a112b83.js";import{a as _,f as l,h as e,i as o,w as m,j as u,k as t,o as d}from"./entry.86f6ad34.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./NIcon.vue.87f21f5b.js";import"./nuxt-link.5c23b37c.js";/* empty css */import"./StateEditor.vue.36646f40.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.567d3ef4.js";import{a as t,f as o,h as s,t as r,u as n,o as u}from"./entry.86f6ad34.js";import"./asyncData.1fda28f3.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,f as a,o as n}from"./entry.
|
|
1
|
+
import{a as e,f as a,o as n}from"./entry.86f6ad34.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 S}from"./nuxt-link.
|
|
1
|
+
import{_ as S}from"./nuxt-link.5c23b37c.js";import{_ as V}from"./FilepathItem.vue.979135a2.js";import{f as I,i as $,g as T,k as L,l as q}from"./state.567d3ef4.js";import{a as F,l as k,Q as z,o,f as n,h as a,u as t,c as f,w as m,k as w,t as h,H as A,m as c,i as b,F as P,z as M,q as C,E as H}from"./entry.86f6ad34.js";import{_ as O}from"./SectionBlock.6f644f93.js";import"./editor.09625e23.js";import"./context.9698c0b7.js";import"./asyncData.1fda28f3.js";import"./NIcon.vue.87f21f5b.js";/* empty css */import"./_plugin-vue_export-helper.c27b6911.js";const Q={border:"~ base",p4:"",flex:"~ gap2"},U={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},G={"text-lg":"","of-hidden":"","ws-nowrap":"","text-ellipsis":""},J={key:2},K={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),it={key:1,flex:"~","flex-auto":"","items-end":"",mt2:"","justify-end":""},rt=["src"],lt=F({__name:"ModuleItem",props:{mod:null},async setup(u){let p,x;const i=u,d=I(),r=k(()=>i.mod.entryPath&&$(i.mod.entryPath)),s=k(()=>i.mod.meta?.name?i.mod.meta.name:i.mod.entryPath?r.value?T(i.mod.entryPath):d.value?.rootDir?L(i.mod.entryPath,d.value?.rootDir):"":""),B=([p,x]=z(()=>q()),p=await p,x(),p),e=k(()=>({name:s,...i.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/",j="https://github.com/",D="https://www.npmjs.com/package/";return(_,N)=>{const v=S,E=V;return o(),n("div",Q,[a("div",U,[a("div",G,[t(r)?(o(),f(v,{key:0,to:D+(t(e).npm||t(e).name),target:"_blank",hover:"underline text-primary"},{default:m(()=>[w(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(A)).openInEditor(u.mod.entryPath))},h(t(e).name),1)):(o(),n("span",J,h(t(e).name),1))]),t(e).description?(o(),n("div",K,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(()=>[w(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(()=>[w(h(t(e).github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):c("",!0),u.mod.entryPath?(o(),n("div",tt,[et,b(E,{filepath:u.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):c("",!0)]),a("div",ot,[t(e).icon||t(r)?(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",it,[(o(!0),n(P,null,M(t(e).maintainers,g=>(o(),f(v,{key:g.name,target:"_blank",to:j+g.github,title:g.name},{default:m(()=>[a("img",{src:l+g.github,"rounded-full":"","w-6":"","h-6":""},null,8,rt)]),_: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=F({__name:"modules",setup(u){const p=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"],x=I(),i=k(()=>x.value?._installedModules||[]),d=C([]),r=C([]);return H(()=>{d.value.length=0,r.value.length=0;for(const s of i.value)p.includes(s.meta?.name)||(s.entryPath&&$(s.entryPath)?d.value.push(s):r.value.push(s))}),(s,B)=>{const e=lt,y=O;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(P,null,M(t(d),l=>(o(),f(e,{key:l.meta?.name||l.entryPath,mod:l},null,8,["mod"]))),128))]),_:1},8,["description"]),t(r).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(r).length}`},{default:m(()=>[(o(!0),n(P,null,M(t(r),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.86f6ad34.js";const t={};function n(r,s){return o(r.$slots,"default")}const _=e(t,[["render",n]]);export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a3 as h,A as y,a as C,l as b,ae as _,q as g,s as q,af as k,a9 as p,p as A,ag as P}from"./entry.
|
|
1
|
+
import{a3 as h,A as y,a as C,l as b,ae as _,q as g,s as q,af as k,a9 as p,p as A,ag as P}from"./entry.86f6ad34.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;q(()=>{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}))})})}),k(()=>{u&&R(u),i?.(),i=null})}return()=>{if(!c.value)return p(A("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=()=>P(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 _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as B}from"./NuxtLogo.042990f0.js";import{_ as $}from"./Badge.4a77fa78.js";import{_ as j}from"./nuxt-link.5c23b37c.js";import{_ as R}from"./NCheckbox.vue.a0c90a66.js";import{a as k,o,f as r,i as a,w as s,u as t,x as T,h as e,y as A,b as I,l as P,A as F,k as n,t as c,F as b,c as u,m as i,j as L,p as O,R as U}from"./entry.86f6ad34.js";import{_ as W}from"./NButton.vue.1a112b83.js";import{f as E,m as G,c as H,h as M,n as Y}from"./state.567d3ef4.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./NIcon.vue.87f21f5b.js";/* empty css */import"./StateEditor.vue.36646f40.js";import"./asyncData.1fda28f3.js";const q={px4:"",py2:"",flex:"~ col"},z=e("span",null,"Close DevTools when clicking outside",-1),J=k({__name:"SettingsPanel",setup(y){const{interactionCloseOnOutsideClick:d}=A();return(l,p)=>{const f=R;return o(),r("div",q,[a(f,{modelValue:t(d),"onUpdate:modelValue":p[0]||(p[0]=m=>T(d)?d.value=m:null),"n-primary":""},{default:s(()=>[z]),_:1},8,["modelValue"])])}}}),K="0.2.3",Q={"h-full":"","w-full":"",flex:""},X={key:0},Z={key:1,flex:"~ col gap2","w-full":"","h-full":"",ma:"","max-w-300":"",p10:"",px20:""},ee=e("div",{"flex-auto":""},null,-1),te={flex:"~ col","items-center":"","mt-20":""},oe={flex:"~","justify-center":"","items-center":"","mt--10":""},ne={"text-center":"","text-sm":"","mt--1":"",op30:"",mb6:""},se={flex:"~ gap2 wrap"},le={key:0,p4:"","theme-card-green":"",flex:"~ col auto"},ie=e("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),ae=e("div",{"text-3xl":"","carbon-tree-view-alt":""},null,-1),re=e("div",{"text-3xl":"","carbon-nominal":""},null,-1),ce=e("div",{"text-3xl":"","carbon-function":""},null,-1),ue=e("div",{"text-3xl":"","carbon-3d-mpr-toggle":""},null,-1),de=e("div",{"text-3xl":"","carbon-plug":""},null,-1),_e={flex:"~ col gap2"},pe={key:0,px4:"","theme-banner-yellow":"","justify-center":""},me=e("span",{"flex-none":"","i-carbon-unlink":""},null,-1),he={flex:"~ gap-6 wrap","items-center":"","justify-center":"","mt-5":""},xe=e("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[e("div",{"i-carbon-star":""}),n(" Star on GitHub ")],-1),ge=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":""}),n(" Ideas & Suggestions ")],-1),fe=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":""}),n(" Project Roadmap ")],-1),ve=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":""}),n(" Bug Reports ")],-1),be=e("button",{flex:"~ gap1","items-center":"",mxa:"","inline-block":"",op50:"","hover:op80":""},[e("div",{"i-carbon-settings":""}),n(" Settings ")],-1),ke=e("div",{"flex-auto":""},null,-1),ye={flex:"~ col gap2"},we={px4:"","justify-center":"","theme-banner-lightblue":""},Ce=e("span",{"flex-none":"","i-carbon-keyboard":""},null,-1),Le=k({__name:"overview",setup(y){const d=I(),l=E(),p=G(),f=H(),m=M(),w=Y(),h=P(()=>p.value?.find(x=>x.name==="nuxt")),C=F();function V(){L.value=!0,C.push("/")}return(x,Ve)=>{const N=B,v=$,_=j,D=J,S=O("VDropdown"),g=W;return o(),r("div",Q,[t(l)?(o(),r("div",Z,[ee,e("div",te,[e("div",oe,[a(N,{"h-18":""}),e("button",{"mr--16":"","mt--6":"",onClick:V},[a(v,{"bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})])]),e("div",ne,[n(" Nuxt DevTools "),e("code",null,"v"+c(t(K)),1)])]),e("div",se,[t(h)?(o(),r("div",le,[ie,e("code",null,c(`v${t(h).current}`),1),t(h).latest?(o(),r(b,{key:0},[t(h).needsUpdate?(o(),u(v,{key:0,"bg-green-400:10":"","text-green-400":"","mt--1":"",title:"updates available",textContent:"updates available"})):(o(),u(v,{key:1,"bg-gray-400:10":"","text-gray-400":"","mt--1":"",title:"latest",textContent:"latest"}))],64)):i("",!0)])):i("",!0),t(l)?(o(),r(b,{key:1},[t(l)&&t(l).pages&&t(d)?(o(),u(_,{key:0,p4:"","theme-card-lime":"","min-w-40":"",flex:"~ col auto",to:"/modules/pages"},{default:s(()=>[ae,e("div",null,c(t(w).length)+" pages",1)]),_:1})):i("",!0),t(l)?(o(),u(_,{key:1,p4:"","theme-card-lime":"","min-w-40":"",flex:"~ col auto",to:"/modules/components"},{default:s(()=>[re,e("div",null,c(t(f).length)+" components",1)]),_:1})):i("",!0),t(l)&&t(m)?(o(),u(_,{key:2,p4:"","min-w-40":"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:s(()=>[ce,e("div",null,c(t(m).imports.length)+" imports",1)]),_:1})):i("",!0),t(l)?(o(),u(_,{key:3,p4:"","min-w-40":"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:s(()=>[ue,e("div",null,c(t(l)._installedModules.length)+" modules",1)]),_:1})):i("",!0),t(l)?(o(),u(_,{key:4,p4:"","min-w-40":"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:s(()=>[de,e("div",null,c(t(l).plugins.length)+" plugins",1)]),_:1})):i("",!0)],64)):i("",!0)]),e("div",_e,[("showConnectionWarning"in x?x.showConnectionWarning:t(U))?(o(),r("div",pe,[me,n("Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")])):i("",!0)]),e("div",he,[xe,ge,fe,ve,a(S,null,{popper:s(()=>[a(D)]),default:s(()=>[be]),_:1})]),ke,e("div",ye,[e("div",we,[Ce,n("You can press "),a(g,{n:"xs lightblue"},{default:s(()=>[n(" Alt ")]),_:1}),a(g,{n:"xs lightblue"},{default:s(()=>[n(" D ")]),_:1}),n(" or "),a(g,{n:"xs lightblue"},{default:s(()=>[n(" ⌥ Option ")]),_:1}),a(g,{n:"xs lightblue"},{default:s(()=>[n(" D ")]),_:1}),n(" to toggle the DevTools. ")])])])):(o(),r("div",X," Loading... "))])}}});export{Le as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./NTextInput.vue.
|
|
1
|
+
import{_ as S}from"./NTextInput.vue.fd5ccf6b.js";import{_ as K}from"./Badge.4a77fa78.js";import{_ as U}from"./NButton.vue.1a112b83.js";import{a as I,q as L,l as b,p as z,u as e,o,f as s,h as t,t as k,c as w,w as C,S as F,F as v,z as V,m as $,i as x,k as P,K as B,U as M,V as W,W as E,D as j,x as A,P as q,H}from"./entry.86f6ad34.js";import{p as O,f as G,u as J,a as Q,o as X}from"./state.567d3ef4.js";import{o as T}from"./editor.09625e23.js";import{_ as Y}from"./SectionBlock.6f644f93.js";import{_ as Z}from"./LaunchPage.vue.b76c79ef.js";import"./NIcon.vue.87f21f5b.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./nuxt-link.5c23b37c.js";/* empty css */import"./StateEditor.vue.36646f40.js";import"./asyncData.1fda28f3.js";import"./context.9698c0b7.js";import"./TabIcon.vue.5b095463.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=I({__name:"RoutePathItem",props:{route:null},emits:["navigate"],setup(m,{emit:p}){const i=m,h=L([]),c=b(()=>{const n=O(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=U,g=z("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:B(_[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=I({__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&&T(u.file)}return(c,u)=>{const d=K,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:B(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(T))(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:""},Ie={key:1,op50:""},Oe=I({__name:"pages",setup(m){const p=M(),i=W(),h=G(),c=J(),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("");E(i).toBeTruthy().then(l=>{r.value=l.path}),E(p).toBeTruthy().then(l=>{l.afterEach(()=>{j(()=>{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]=D=>A(r)?r.value=D:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:B(e(i).path===e(r)?"":e(a).length?"text-green":"text-orange"),onKeydown:q(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",Ie,"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(H)).runWizard("enablePages")}}]},null,8,["actions"]))}}});export{Oe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as p}from"./StateEditor.vue.
|
|
1
|
+
import{_ as p}from"./StateEditor.vue.a07128f1.js";import"./StateEditor.vue.36646f40.js";import{a as _,o as s,f as c,F as x,z as h,i as o,b as y,l as b,u as n,w as l,c as S,m as d}from"./entry.86f6ad34.js";import{_ as k}from"./SectionBlock.6f644f93.js";import"./composables.d26f66f1.js";import"./NIcon.vue.87f21f5b.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,(m,t)=>(s(),c("div",{key:t},[o(u,{state:m,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,m)=>{const t=v,r=k,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(),S(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})):d("",!0)])):d("",!0)}}});export{G as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as h}from"./Badge.
|
|
1
|
+
import{_ as h}from"./Badge.4a77fa78.js";import{f,k as v}from"./state.567d3ef4.js";import{o as k}from"./editor.09625e23.js";import{a as x,l as _,o as e,f as d,h as l,t as g,u as t,K as y,c as a,m as u,i as C,w as b,F as B,z as I}from"./entry.86f6ad34.js";import{_ as P}from"./SectionBlock.6f644f93.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./asyncData.1fda28f3.js";import"./context.9698c0b7.js";import"./NIcon.vue.87f21f5b.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?v(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]=N=>("openInEditor"in c?c.openInEditor:t(k))(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)])])}}}),z={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",z,[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.a07128f1.js";import"./StateEditor.vue.36646f40.js";import{_ as u}from"./SectionBlock.6f644f93.js";import{a as f,b as _,l as r,u as o,f as d,i as e,w as s,m as g,o as C}from"./entry.86f6ad34.js";import{f as v}from"./state.567d3ef4.js";import"./composables.d26f66f1.js";import"./NIcon.vue.87f21f5b.js";/* empty css */import"./_plugin-vue_export-helper.c27b6911.js";import"./asyncData.1fda28f3.js";const x={key:0},V=f({__name:"runtime-configs",setup(b){const n=_(),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,f as o,o as r}from"./entry.
|
|
1
|
+
import{a as e,f as o,o as r}from"./entry.86f6ad34.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{a3 as h,b as v,l,A as b,U as C,H as a,$ as S}from"./entry.
|
|
1
|
+
import{a3 as h,b as v,l,A as b,U as C,H as a,$ as S}from"./entry.86f6ad34.js";import{u as P}from"./asyncData.1fda28f3.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 S("https://cdn.jsdelivr.net/npm/@nuxt/modules@latest/modules.json"),f)}function H(){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 O(){return i("usePackageVersions",()=>a.usePackageVersions())}function z(){return i("getServerPages",()=>a.getServerPages())}function B(){return i("getComponentsRelationships",()=>a.getComponentsRelationships())}function E(){return i("getServerHooks",()=>a.getServerHooks(),{default:()=>[]})}function V(){return i("getServerLayouts",()=>a.getServerLayouts())}function F(){return i("getAutoImports",()=>a.getAutoImports())}function U(){return i("getServerConfig",()=>a.getServerConfig())}function w(){return i("getCustomTabs",()=>a.getCustomTabs())}function D(){const e=b(),s=w(),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 Z(){const e=C(),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,B as b,H as c,D as d,E as e,U as f,N as g,F as h,R as i,q as j,L as k,j as l,O as m,Z as n,W as o,M as p,z as u};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as be,_ as q}from"./entry.3f184dda.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.0";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?"":`
|
|
1
|
+
import{$ as be,_ as q}from"./entry.86f6ad34.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.0";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
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.7b11eba5.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"}})]}});
|