@nuxt/devtools 1.3.6 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/chunks/module-main.mjs +56 -5
  2. package/dist/client/200.html +21 -22
  3. package/dist/client/404.html +21 -22
  4. package/dist/client/_nuxt/{D1ai4dMD.js → -7tQh8ue.js} +1 -1
  5. package/dist/client/_nuxt/{wuvOqWUR.js → 0DKPJLdZ.js} +1 -1
  6. package/dist/client/_nuxt/{WM2j0JTY.js → 99S8uY5k.js} +1 -1
  7. package/dist/client/_nuxt/BLAdP9Oz.js +1 -0
  8. package/dist/client/_nuxt/{Cts2COMF.js → BMyxYGQm.js} +1 -1
  9. package/dist/client/_nuxt/{BqquXJFk.js → BP18yFEx.js} +1 -1
  10. package/dist/client/_nuxt/{BJ7-F_-K.js → BQl-tQOv.js} +1 -1
  11. package/dist/client/_nuxt/{BrtwsvwD.js → BZUqxYL0.js} +1 -1
  12. package/dist/client/_nuxt/{le4cTzpD.js → BaLIfrmo.js} +1 -1
  13. package/dist/client/_nuxt/{iVffBGw4.js → Bh1omw2R.js} +1 -1
  14. package/dist/client/_nuxt/{gXEBKoIH.js → BkolCBD4.js} +1 -1
  15. package/dist/client/_nuxt/{MxM3SGVW.js → Bllu6NyJ.js} +1 -1
  16. package/dist/client/_nuxt/{BNQzKmJG.js → BpkW35lO.js} +1 -1
  17. package/dist/client/_nuxt/{23UkCXk9.js → Bus6nM-z.js} +1 -1
  18. package/dist/client/_nuxt/{CeEyhwqV.js → Bwt-Gbvc.js} +1 -1
  19. package/dist/client/_nuxt/{DmAOJaWQ.js → By9REDlT.js} +1 -1
  20. package/dist/client/_nuxt/{D4gp4vy1.js → BzGSKhkq.js} +1 -1
  21. package/dist/client/_nuxt/{BBl1za1W.js → BzkN-UyG.js} +1 -1
  22. package/dist/client/_nuxt/{VY7KastK.js → C6wwj7pE.js} +2 -2
  23. package/dist/client/_nuxt/{DcU8UfXq.js → CAFgyn5d.js} +1 -1
  24. package/dist/client/_nuxt/{CGDVgZTR.js → CKZ42KS2.js} +1 -1
  25. package/dist/client/_nuxt/{B11h7Ese.js → CLQMbejQ.js} +1 -1
  26. package/dist/client/_nuxt/{DRbi-AHv.js → CN5QdCF_.js} +1 -1
  27. package/dist/client/_nuxt/{DCRELQON.js → CRBEBDvl.js} +1 -1
  28. package/dist/client/_nuxt/{CzF78jgR.js → CS0gb7jX.js} +1 -1
  29. package/dist/client/_nuxt/{mNWHE61E.js → CZ3tPvoZ.js} +1 -1
  30. package/dist/client/_nuxt/{4Dr4Cj7R.js → CZQflZba.js} +1 -1
  31. package/dist/client/_nuxt/{qjjxT3sB.js → CaJqtG8l.js} +1 -1
  32. package/dist/client/_nuxt/{CoViSLbB.js → CfJ91qCF.js} +1 -1
  33. package/dist/client/_nuxt/{BKyy5G7o.js → DALAf-yd.js} +1 -1
  34. package/dist/client/_nuxt/{D0a-fr3P.js → DCLVSMnX.js} +1 -1
  35. package/dist/client/_nuxt/{CSjnDvWq.js → DEFgdXN8.js} +1 -1
  36. package/dist/client/_nuxt/{CRLCUxrw.js → DJinuH1o.js} +1 -1
  37. package/dist/client/_nuxt/{BIR-zdoB.js → DK_JXXAF.js} +18 -18
  38. package/dist/client/_nuxt/{rLhPImdI.js → DNkCGu9V.js} +1 -1
  39. package/dist/client/_nuxt/{BHXtCixK.js → DPOdNjjh.js} +1 -1
  40. package/dist/client/_nuxt/{BOxnhk4W.js → DRptvKkQ.js} +1 -1
  41. package/dist/client/_nuxt/{CaYna3zI.js → Defveh6H.js} +1 -1
  42. package/dist/client/_nuxt/{BbLM2rJC.js → Dflne9qt.js} +1 -1
  43. package/dist/client/_nuxt/{BV7UswB-.js → DgiutZgW.js} +1 -1
  44. package/dist/client/_nuxt/{C1sxBnXr.js → Dkcrxbkn.js} +1 -1
  45. package/dist/client/_nuxt/{BD4ddXSe.js → Dmr9BwAJ.js} +1 -1
  46. package/dist/client/_nuxt/{C3yfYbN6.js → Dn64Kuww.js} +1 -1
  47. package/dist/client/_nuxt/{EGB1eG4E.js → DrwtQkzw.js} +1 -1
  48. package/dist/client/_nuxt/{zd9j1bFf.js → DtMLpJCs.js} +1 -1
  49. package/dist/client/_nuxt/{DI2S-mmO.js → DuFGBY9A.js} +1 -1
  50. package/dist/client/_nuxt/{CIBl9CV2.js → DwnntITU.js} +1 -1
  51. package/dist/client/_nuxt/Dxm8HtZr.js +1 -0
  52. package/dist/client/_nuxt/{BMGqu_eq.js → GiZoEwQH.js} +1 -1
  53. package/dist/client/_nuxt/{C1dTBAc9.js → H8AztYTG.js} +1 -1
  54. package/dist/client/_nuxt/{CKhZMZp5.js → JYG5gMLr.js} +1 -1
  55. package/dist/client/_nuxt/{DUMJFAjE.js → NWgDy8rj.js} +1 -1
  56. package/dist/client/_nuxt/{D-oZYQtF.js → PiOA0xLD.js} +1 -1
  57. package/dist/client/_nuxt/{DSpVgsos.js → Syz7eBvK.js} +1 -1
  58. package/dist/client/_nuxt/{D2vAxeLa.js → TIMkSDoD.js} +1 -1
  59. package/dist/client/_nuxt/{xooHg0zg.js → VV6dbUWb.js} +1 -1
  60. package/dist/client/_nuxt/{CJyLsSWQ.js → VtGdE5E6.js} +1 -1
  61. package/dist/client/_nuxt/{D1PyVebX.js → WGK50LCp.js} +1 -1
  62. package/dist/client/_nuxt/{BTgTnXCo.js → YOyY9aeM.js} +1 -1
  63. package/dist/client/_nuxt/builds/latest.json +1 -1
  64. package/dist/client/_nuxt/builds/meta/3221e7ca-ad23-40c3-8243-9520a1ede2e4.json +1 -0
  65. package/dist/client/_nuxt/{Cu-emya-.js → dsru6oeh.js} +1 -1
  66. package/dist/client/_nuxt/{entry.IakuBfY1.css → entry.hxdKUDpu.css} +1 -1
  67. package/dist/client/_nuxt/error-404.CSBAyIwS.css +1 -0
  68. package/dist/client/_nuxt/error-500.DL0jmuMi.css +1 -0
  69. package/dist/client/_nuxt/{DaiXQWiC.js → iHPNd0oS.js} +1 -1
  70. package/dist/client/_nuxt/{8B46VhQd.js → ix9IAXj6.js} +1 -1
  71. package/dist/client/_nuxt/{JA61WTyb.js → oBHhz7g1.js} +1 -1
  72. package/dist/client/_nuxt/{xLwx2Q8v.js → tRGVf0Jt.js} +1 -1
  73. package/dist/client/index.html +21 -22
  74. package/dist/module.json +1 -1
  75. package/package.json +11 -10
  76. package/dist/client/_nuxt/D5r6TWiw.js +0 -1
  77. package/dist/client/_nuxt/DKqjZTFM.js +0 -1
  78. package/dist/client/_nuxt/builds/meta/fa3e000a-5062-43b8-9d7a-e19f63f0ca92.json +0 -1
  79. package/dist/client/_nuxt/error-404.CdZ-8tbX.css +0 -1
  80. package/dist/client/_nuxt/error-500.4KK_ddFR.css +0 -1
  81. package/dist/client/_nuxt/fFj225Ww.js +0 -1
@@ -1 +1 @@
1
- import{_ as k}from"./CeEyhwqV.js";import{d as v,o as e,m as c,F as x,n as C,h as f,j as a,aa as N,ax as B,k as $,am as w,a as F,a2 as O,f as r,i as o,p as u,v as V,I as j,_ as E}from"./BIR-zdoB.js";import{_ as P}from"./D-oZYQtF.js";import{_ as R}from"./xLwx2Q8v.js";import"./DCRELQON.js";import"./xooHg0zg.js";import"./BTgTnXCo.js";const A={key:0,flex:"~ col gap-1"},G={key:1,mt2:"",px4:"",italic:"",op35:""},H=v({__name:"StateGroup",props:{state:{},prefix:{default:""}},setup(m){return(t,n)=>{const i=k;return e(),c("div",null,[t.state&&Object.keys(t.state).length>0?(e(),c("div",A,[(e(!0),c(x,null,C(t.state,(l,s)=>(e(),f(i,{key:s,state:l,name:s.startsWith(t.prefix)?s.slice(t.prefix.length):s},{actions:a(_=>[N(t.$slots,"actions",B({ref_for:!0},_))]),_:2},1032,["state","name"]))),128))])):(e(),c("div",G," No data "))])}}}),K={class:"markdown-body"},T=$("h1",null,"State & Async Data",-1),I=$("p",null,"// TODO",-1),L=[T,I],W={__name:"payload",setup(m,{expose:t}){return t({frontmatter:{}}),(i,l)=>(e(),c("div",K,L))}},q={key:0},tt=v({__name:"payload",setup(m){const t=w(),n=F(()=>t.value?.nuxt.payload);async function i(l){await t.value?.nuxt.hooks.callHookParallel("app:data:refresh",l)}return(l,s)=>{const _=H,d=P,h=E,b=k,S=W,g=R,D=O("tooltip");return e(),c(x,null,[r(t)?(e(),c("div",q,[o(d,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[o(_,{state:r(n).state,prefix:"$s"},null,8,["state"])]),_:1}),o(d,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[o(h,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:s[0]||(s[0]=y=>i())},{default:a(()=>[V(" Re-fetch all data ")]),_:1})]),default:a(()=>[o(_,{state:r(n).data},{actions:a(({isOpen:y,name:p})=>[y&&p?j((e(),f(h,{key:0,title:`Re-fetch '${p}'`,icon:"carbon-recycle",border:!1,onClick:z=>i([p])},null,8,["title","onClick"])),[[D,`Re-fetch '${p}'`,void 0,{bottom:!0}]]):u("",!0)]),_:1},8,["state"])]),_:1}),r(n).functions&&Object.keys(r(n).functions).length?(e(),f(d,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions"},{default:a(()=>[o(b,{"ml--6":"",state:r(n).functions},null,8,["state"])]),_:1})):u("",!0)])):u("",!0),o(g,null,{default:a(()=>[o(S)]),_:1})],64)}}});export{tt as default};
1
+ import{_ as k}from"./Bwt-Gbvc.js";import{d as v,o as e,m as c,F as x,n as C,h as f,j as a,aa as N,ax as B,k as $,am as w,a as F,a2 as O,f as r,i as o,p as u,v as V,I as j,_ as E}from"./DK_JXXAF.js";import{_ as P}from"./PiOA0xLD.js";import{_ as R}from"./tRGVf0Jt.js";import"./CRBEBDvl.js";import"./VV6dbUWb.js";import"./YOyY9aeM.js";const A={key:0,flex:"~ col gap-1"},G={key:1,mt2:"",px4:"",italic:"",op35:""},H=v({__name:"StateGroup",props:{state:{},prefix:{default:""}},setup(m){return(t,n)=>{const i=k;return e(),c("div",null,[t.state&&Object.keys(t.state).length>0?(e(),c("div",A,[(e(!0),c(x,null,C(t.state,(l,s)=>(e(),f(i,{key:s,state:l,name:s.startsWith(t.prefix)?s.slice(t.prefix.length):s},{actions:a(_=>[N(t.$slots,"actions",B({ref_for:!0},_))]),_:2},1032,["state","name"]))),128))])):(e(),c("div",G," No data "))])}}}),K={class:"markdown-body"},T=$("h1",null,"State & Async Data",-1),I=$("p",null,"// TODO",-1),L=[T,I],W={__name:"payload",setup(m,{expose:t}){return t({frontmatter:{}}),(i,l)=>(e(),c("div",K,L))}},q={key:0},tt=v({__name:"payload",setup(m){const t=w(),n=F(()=>t.value?.nuxt.payload);async function i(l){await t.value?.nuxt.hooks.callHookParallel("app:data:refresh",l)}return(l,s)=>{const _=H,d=P,h=E,b=k,S=W,g=R,D=O("tooltip");return e(),c(x,null,[r(t)?(e(),c("div",q,[o(d,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[o(_,{state:r(n).state,prefix:"$s"},null,8,["state"])]),_:1}),o(d,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[o(h,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:s[0]||(s[0]=y=>i())},{default:a(()=>[V(" Re-fetch all data ")]),_:1})]),default:a(()=>[o(_,{state:r(n).data},{actions:a(({isOpen:y,name:p})=>[y&&p?j((e(),f(h,{key:0,title:`Re-fetch '${p}'`,icon:"carbon-recycle",border:!1,onClick:z=>i([p])},null,8,["title","onClick"])),[[D,`Re-fetch '${p}'`,void 0,{bottom:!0}]]):u("",!0)]),_:1},8,["state"])]),_:1}),r(n).functions&&Object.keys(r(n).functions).length?(e(),f(d,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions"},{default:a(()=>[o(b,{"ml--6":"",state:r(n).functions},null,8,["state"])]),_:1})):u("",!0)])):u("",!0),o(g,null,{default:a(()=>[o(S)]),_:1})],64)}}});export{tt as default};
@@ -1 +1 @@
1
- import{_ as D}from"./4Dr4Cj7R.js";import{_ as B}from"./BqquXJFk.js";import{o as c,m as _,k as s,d as S,r as h,b$ as j,c0 as P,aC as U,a as p,ah as E,i as l,j as u,F as f,U as G,f as i,l as I,n as R,t as v,G as W,h as z,as as A,A as H}from"./BIR-zdoB.js";import{_ as L}from"./xLwx2Q8v.js";import"./BrtwsvwD.js";const q={class:"markdown-body"},J=s("h1",null,"Virtual Files",-1),K=s("p",null,"Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.",-1),M=[J,K],O={__name:"virtual-files",setup(x,{expose:o}){return o({frontmatter:{}}),(d,a)=>(c(),_("div",q,M))}},Q=["onClick"],T=s("div",{"x-divider":""},null,-1),X={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Y={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},Z=s("span",{op75:""},"Select a file to start",-1),re=S({__name:"virtual-files",setup(x){const o=h(""),n=j(),d=P(),a=h();U(()=>{if(!d.value)return;const e=`/_vfs.json/${encodeURIComponent(d.value)}`;fetch(e,{headers:{accept:"application/json"}}).then(t=>t.json()).then(t=>a.value=t.current)});function k(e){if(n.value?.rootDir)return e.startsWith(n.value?.rootDir)?e.slice(n.value.rootDir.length):e}const m=p(()=>n.value?n.value.entries.filter(e=>!e.id.startsWith(`${n.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),y=p(()=>new E(m.value,{keys:["id","path"]})),b=p(()=>o.value?y.value.search(o.value).map(e=>e.item):m.value);return(e,t)=>{const $=D,g=B,C=A,F=H,N=G,V=O,w=L;return c(),_(f,null,[l(N,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:u(()=>[l($,{search:i(o),"onUpdate:search":t[0]||(t[0]=r=>I(o)?o.value=r:null),"no-padding":"",p3:""},null,8,["search"]),(c(!0),_(f,null,R(i(b),r=>(c(),_(f,{key:r.id},[s("button",{block:"","w-full":"","select-none":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:W(r.id===i(a)?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:ee=>d.value=r.id},v(k(r.id)),11,Q),T],64))),128))]),right:u(()=>[i(a)?.content?(c(),_("div",X,[s("div",Y,[s("code",null,v(i(a).id),1)]),l(g,{"h-full":"","of-auto":"","text-sm":"",code:i(a).content,lang:"typescript"},null,8,["code"])])):(c(),z(F,{key:1},{default:u(()=>[l(C,{px6:"",py2:""},{default:u(()=>[Z]),_:1})]),_:1}))]),_:1}),l(w,null,{default:u(()=>[l(V)]),_:1})],64)}}});export{re as default};
1
+ import{_ as D}from"./CZQflZba.js";import{_ as B}from"./BP18yFEx.js";import{o as c,m as _,k as s,d as S,r as h,b$ as j,c0 as P,aC as U,a as p,ah as E,i as l,j as u,F as f,U as G,f as i,l as I,n as R,t as v,G as W,h as z,as as A,A as H}from"./DK_JXXAF.js";import{_ as L}from"./tRGVf0Jt.js";import"./BZUqxYL0.js";const q={class:"markdown-body"},J=s("h1",null,"Virtual Files",-1),K=s("p",null,"Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.",-1),M=[J,K],O={__name:"virtual-files",setup(x,{expose:o}){return o({frontmatter:{}}),(d,a)=>(c(),_("div",q,M))}},Q=["onClick"],T=s("div",{"x-divider":""},null,-1),X={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Y={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},Z=s("span",{op75:""},"Select a file to start",-1),re=S({__name:"virtual-files",setup(x){const o=h(""),n=j(),d=P(),a=h();U(()=>{if(!d.value)return;const e=`/_vfs.json/${encodeURIComponent(d.value)}`;fetch(e,{headers:{accept:"application/json"}}).then(t=>t.json()).then(t=>a.value=t.current)});function k(e){if(n.value?.rootDir)return e.startsWith(n.value?.rootDir)?e.slice(n.value.rootDir.length):e}const m=p(()=>n.value?n.value.entries.filter(e=>!e.id.startsWith(`${n.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),y=p(()=>new E(m.value,{keys:["id","path"]})),b=p(()=>o.value?y.value.search(o.value).map(e=>e.item):m.value);return(e,t)=>{const $=D,g=B,C=A,F=H,N=G,V=O,w=L;return c(),_(f,null,[l(N,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:u(()=>[l($,{search:i(o),"onUpdate:search":t[0]||(t[0]=r=>I(o)?o.value=r:null),"no-padding":"",p3:""},null,8,["search"]),(c(!0),_(f,null,R(i(b),r=>(c(),_(f,{key:r.id},[s("button",{block:"","w-full":"","select-none":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:W(r.id===i(a)?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:ee=>d.value=r.id},v(k(r.id)),11,Q),T],64))),128))]),right:u(()=>[i(a)?.content?(c(),_("div",X,[s("div",Y,[s("code",null,v(i(a).id),1)]),l(g,{"h-full":"","of-auto":"","text-sm":"",code:i(a).content,lang:"typescript"},null,8,["code"])])):(c(),z(F,{key:1},{default:u(()=>[l(C,{px6:"",py2:""},{default:u(()=>[Z]),_:1})]),_:1}))]),_:1}),l(w,null,{default:u(()=>[l(V)]),_:1})],64)}}});export{re as default};
@@ -1,4 +1,4 @@
1
- import{o as ee,m as Ee,k as Q,d as Yi,a as rr,v as Qh,t as al,f as q,e as mT,i as we,h as st,p as lt,F as dr,n as wn,aa as Al,_ as ff,r as bi,ao as bT,ap as $T,ab as wT,aq as _T,ar as ET,w as ST,j as ze,B as l1,as as OT,l as _n,at as TT,G as PT,au as IT,ah as kT,av as CT,aw as xT,ax as ts,a6 as AT,am as RT,a2 as DT,ay as MT,I as Gv}from"./BIR-zdoB.js";import{_ as NT}from"./xLwx2Q8v.js";import{u as FT,a as BT}from"./DRbi-AHv.js";import{_ as LT}from"./DaiXQWiC.js";import{_ as u1}from"./4Dr4Cj7R.js";import{_ as d1}from"./C1dTBAc9.js";import{_ as h1}from"./23UkCXk9.js";import{_ as jT}from"./CzF78jgR.js";import{_ as zT}from"./CSjnDvWq.js";import{_ as HT}from"./D-oZYQtF.js";import{_ as WT}from"./BTgTnXCo.js";import{D as Nu}from"./BcJws1i5.js";const VT={class:"markdown-body"},UT=Q("h1",null,"Components",-1),GT=Q("p",null,"Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.",-1),KT=Q("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),qT=Q("p",null,[Q("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),YT=[UT,GT,KT,qT],XT={__name:"components",setup(r,{expose:i}){return i({frontmatter:{}}),(t,n)=>(ee(),Ee("div",VT,YT))}},QT=/\d/,JT=["-","_","/","."];function ZT(r=""){if(!QT.test(r))return r!==r.toLowerCase()}function eP(r,i){const e=i??JT,t=[];if(!r||typeof r!="string")return t;let n="",a,o;for(const s of r){const l=e.includes(s);if(l===!0){t.push(n),n="",a=void 0;continue}const u=ZT(s);if(o===!1){if(a===!1&&u===!0){t.push(n),n=s,a=u;continue}if(a===!0&&u===!1&&n.length>1){const d=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=d+s,a=u;continue}}n+=s,a=u,o=l}return t.push(n),t}function tP(r){return r?r[0].toUpperCase()+r.slice(1):""}function c1(r,i){return r?(Array.isArray(r)?r:eP(r)).map(e=>tP(i?.normalize?e.toLowerCase():e)).join(""):""}const rP={"text-sm":"","font-mono":""},nP=Q("span",{mr1:"",op20:""},"<",-1),iP=Q("span",{ml1:"",op20:""},"/>",-1),f1=Yi({__name:"ComponentName",props:{component:{}},setup(r){const i=r,e=rr(()=>i.component.pascalName||c1(i.component.name||i.component.__name||i.component.kebabName||""));return(t,n)=>(ee(),Ee("code",rP,[nP,Qh(al(q(e)),1),iP]))}}),aP={flex:"~ col gap1","items-start":"","of-hidden":""},oP={flex:"~ gap2",px3:""},sP={px3:"",pb2:""},lP={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},uP={"text-sm":""},dP={"text-primary":""},hP=Q("span",{op50:""}," references",-1),cP={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},fP={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},vP={"text-sm":""},pP={"text-primary":""},gP=Q("span",{op50:""}," dependencies",-1),yP={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},v1=Yi({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const i=r,e=rr(()=>i.component.pascalName||c1(i.component.name||i.component.__name||i.component.kebabName||"")),t=rr(()=>i.component.filePath||i.component.file||i.component.__file||""),n=mT();return(a,o)=>{const s=f1,l=ff,u=d1,d=h1;return ee(),Ee("div",aP,[Q("div",oP,[we(s,{component:a.component},null,8,["component"]),we(l,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:o[0]||(o[0]=h=>q(n)(`<${q(e)}></${q(e)}>`,"component-name"))}),a.component.global?(ee(),st(u,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):lt("",!0)]),Q("div",sP,[q(t)?(ee(),st(d,{key:0,filepath:q(t),"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):lt("",!0)]),a.dependents?(ee(),Ee("div",lP,[Q("div",uP,[Q("strong",dP,al(a.dependents.length),1),hP]),a.dependents.length?(ee(),Ee("div",cP,[(ee(!0),Ee(dr,null,wn(a.dependents,h=>(ee(),st(d,{key:h,filepath:h},null,8,["filepath"]))),128))])):lt("",!0)])):lt("",!0),a.dependencies?(ee(),Ee("div",fP,[Q("div",vP,[Q("strong",pP,al(a.dependencies.length),1),gP]),a.dependencies.length?(ee(),Ee("div",yP,[(ee(!0),Ee(dr,null,wn(a.dependencies,h=>(ee(),st(d,{key:h,filepath:h},null,8,["filepath"]))),128))])):lt("",!0)])):lt("",!0),Al(a.$slots,"default")])}}});/**
1
+ import{o as ee,m as Ee,k as Q,d as Yi,a as rr,v as Qh,t as al,f as q,e as mT,i as we,h as st,p as lt,F as dr,n as wn,aa as Al,_ as ff,r as bi,ao as bT,ap as $T,ab as wT,aq as _T,ar as ET,w as ST,j as ze,B as l1,as as OT,l as _n,at as TT,G as PT,au as IT,ah as kT,av as CT,aw as xT,ax as ts,a6 as AT,am as RT,a2 as DT,ay as MT,I as Gv}from"./DK_JXXAF.js";import{_ as NT}from"./tRGVf0Jt.js";import{u as FT,a as BT}from"./CN5QdCF_.js";import{_ as LT}from"./iHPNd0oS.js";import{_ as u1}from"./CZQflZba.js";import{_ as d1}from"./H8AztYTG.js";import{_ as h1}from"./Bus6nM-z.js";import{_ as jT}from"./CS0gb7jX.js";import{_ as zT}from"./DEFgdXN8.js";import{_ as HT}from"./PiOA0xLD.js";import{_ as WT}from"./YOyY9aeM.js";import{D as Nu}from"./BcJws1i5.js";const VT={class:"markdown-body"},UT=Q("h1",null,"Components",-1),GT=Q("p",null,"Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.",-1),KT=Q("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),qT=Q("p",null,[Q("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),YT=[UT,GT,KT,qT],XT={__name:"components",setup(r,{expose:i}){return i({frontmatter:{}}),(t,n)=>(ee(),Ee("div",VT,YT))}},QT=/\d/,JT=["-","_","/","."];function ZT(r=""){if(!QT.test(r))return r!==r.toLowerCase()}function eP(r,i){const e=i??JT,t=[];if(!r||typeof r!="string")return t;let n="",a,o;for(const s of r){const l=e.includes(s);if(l===!0){t.push(n),n="",a=void 0;continue}const u=ZT(s);if(o===!1){if(a===!1&&u===!0){t.push(n),n=s,a=u;continue}if(a===!0&&u===!1&&n.length>1){const d=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=d+s,a=u;continue}}n+=s,a=u,o=l}return t.push(n),t}function tP(r){return r?r[0].toUpperCase()+r.slice(1):""}function c1(r,i){return r?(Array.isArray(r)?r:eP(r)).map(e=>tP(i?.normalize?e.toLowerCase():e)).join(""):""}const rP={"text-sm":"","font-mono":""},nP=Q("span",{mr1:"",op20:""},"<",-1),iP=Q("span",{ml1:"",op20:""},"/>",-1),f1=Yi({__name:"ComponentName",props:{component:{}},setup(r){const i=r,e=rr(()=>i.component.pascalName||c1(i.component.name||i.component.__name||i.component.kebabName||""));return(t,n)=>(ee(),Ee("code",rP,[nP,Qh(al(q(e)),1),iP]))}}),aP={flex:"~ col gap1","items-start":"","of-hidden":""},oP={flex:"~ gap2",px3:""},sP={px3:"",pb2:""},lP={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},uP={"text-sm":""},dP={"text-primary":""},hP=Q("span",{op50:""}," references",-1),cP={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},fP={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},vP={"text-sm":""},pP={"text-primary":""},gP=Q("span",{op50:""}," dependencies",-1),yP={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},v1=Yi({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const i=r,e=rr(()=>i.component.pascalName||c1(i.component.name||i.component.__name||i.component.kebabName||"")),t=rr(()=>i.component.filePath||i.component.file||i.component.__file||""),n=mT();return(a,o)=>{const s=f1,l=ff,u=d1,d=h1;return ee(),Ee("div",aP,[Q("div",oP,[we(s,{component:a.component},null,8,["component"]),we(l,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:o[0]||(o[0]=h=>q(n)(`<${q(e)}></${q(e)}>`,"component-name"))}),a.component.global?(ee(),st(u,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):lt("",!0)]),Q("div",sP,[q(t)?(ee(),st(d,{key:0,filepath:q(t),"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):lt("",!0)]),a.dependents?(ee(),Ee("div",lP,[Q("div",uP,[Q("strong",dP,al(a.dependents.length),1),hP]),a.dependents.length?(ee(),Ee("div",cP,[(ee(!0),Ee(dr,null,wn(a.dependents,h=>(ee(),st(d,{key:h,filepath:h},null,8,["filepath"]))),128))])):lt("",!0)])):lt("",!0),a.dependencies?(ee(),Ee("div",fP,[Q("div",vP,[Q("strong",pP,al(a.dependencies.length),1),gP]),a.dependencies.length?(ee(),Ee("div",yP,[(ee(!0),Ee(dr,null,wn(a.dependencies,h=>(ee(),st(d,{key:h,filepath:h},null,8,["filepath"]))),128))])):lt("",!0)])):lt("",!0),Al(a.$slots,"default")])}}});/**
2
2
  * vis-data
3
3
  * http://visjs.org/
4
4
  *
@@ -1 +1 @@
1
- import{_ as K}from"./BTgTnXCo.js";import{_ as Q}from"./gXEBKoIH.js";import{d as X,am as Y,c2 as ee,aG as le,aC as E,m,i as n,k as e,F as v,n as N,f as t,j as a,L as oe,_ as ne,as as te,o as r,h as j,t as y,G as A,p as P,v as U,l as c,C as D,B as ae,bZ as se,c3 as ie}from"./BIR-zdoB.js";import{_ as ue}from"./BV7UswB-.js";import{_ as de}from"./DaiXQWiC.js";import{_ as re}from"./BMGqu_eq.js";const ce={px8:"",py6:""},pe={grid:"~ md:cols-2 gap-x-10 gap-y-3","max-w-300":""},me={flex:"~ col gap-2"},_e=e("h3",{"text-lg":""}," Tabs ",-1),fe={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},ve={capitalize:"",op75:""},ge=e("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),he=e("div",{"flex-auto":""},null,-1),xe={flex:"~ col gap-2"},be=e("h3",{"text-lg":""}," Appearance ",-1),ye=e("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),ke=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),Ve=e("p",null,"UI Scale",-1),Ce=["value"],we=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),Te=e("span",null," Expand Sidebar ",-1),Se=e("span",null," Scrollable Sidebar ",-1),Ne=e("h3",{mt2:"","text-lg":""}," Features ",-1),Ue=e("span",null,"Close DevTools when clicking outside",-1),Oe=e("span",null,"Show help buttons",-1),$e=e("span",null,"Always show the floating panel",-1),Ie=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),Be=e("p",null,"Minimize floating panel on inactive",-1),De=["value"],ze=e("h3",{mt2:"","text-lg":""}," Feedback ",-1),Le=e("span",null,"Send anonymous statistics, help us improving DevTools",-1),Ee=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),je={flex:"~ gap-2"},Ae=e("div",{"i-carbon-data-enrichment":""},null,-1),Pe=e("div",{"i-carbon-debug":""},null,-1),Fe=e("h3",{mt2:"","text-lg":""}," Debug ",-1),Me={flex:"~ gap-2"},Re=e("div",{"i-carbon-breaking-change":""},null,-1),Qe=X({__name:"settings",setup(Ge){const{interactionCloseOnOutsideClick:k,showPanel:O,showHelpButtons:$,scale:I,hiddenTabs:g,pinnedTabs:u,hiddenTabCategories:h,minimizePanelInactive:V,sidebarExpanded:C,sidebarScrollable:B}=ae(),x=Y(),F=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],M=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],R=ee(le());function G(s,o){o?g.value=g.value.filter(d=>d!==s):g.value.push(s)}function H(s,o){o?h.value=h.value.filter(d=>d!==s):h.value.push(s)}function W(s){u.value.includes(s)?u.value=u.value.filter(o=>o!==s):u.value.push(s)}function z(s,o){const d=u.value.indexOf(s);if(d===-1)return;const _=d+o;if(_<0||_>=u.value.length)return;const b=[...u.value];b.splice(d,1),b.splice(_,0,s),u.value=b}async function Z(){confirm("Are you sure you to reset all local settings & state? The app will reload.")&&(Object.keys(localStorage).forEach(s=>{s.startsWith("nuxt-devtools-")&&localStorage.removeItem(s)}),await oe.clearOptions(),x.value?.app?.reload?.(),window.location.reload())}return E(()=>{x.value&&(x.value.app.frameState.value.closeOnOutsideClick=k.value)}),E(()=>{x.value&&(x.value.app.frameState.value.minimizePanelInactive=V.value)}),(s,o)=>{const d=K,_=Q,b=se,p=ne,w=te,q=ie,L=ue,f=de,J=re;return r(),m("div",ce,[n(d,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),e("div",pe,[e("div",me,[_e,(r(!0),m(v,null,N(t(R),([l,T])=>(r(),m(v,{key:l},[T.length?(r(),j(w,{key:0,p3:"",flex:"~ col gap-1",class:A(t(h).includes(l)?"op50 grayscale":"")},{default:a(()=>[n(_,{flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-lime":"","model-value":!t(h).includes(l),"onUpdate:modelValue":i=>H(l,i)},{default:a(()=>[e("div",fe,[e("span",ve,y(l),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),ge,(r(!0),m(v,null,N(T,i=>(r(),j(_,{key:i.name,flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-primary":"","model-value":!t(g).includes(i.name),"onUpdate:modelValue":S=>G(i.name,S)},{default:a(()=>[e("div",{flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"",class:A(t(g).includes(i.name)?"op25":"")},[n(b,{"text-xl":"",icon:i.icon,title:i.title},null,8,["icon","title"]),e("span",null,y(i.title),1),he,t(u).includes(i.name)?(r(),m(v,{key:0},[n(p,{icon:"i-carbon-caret-up",disabled:t(u).indexOf(i.name)===0,border:!1,onClick:S=>z(i.name,-1)},null,8,["disabled","onClick"]),n(p,{icon:"i-carbon-caret-down",disabled:t(u).indexOf(i.name)===t(u).length-1,border:!1,onClick:S=>z(i.name,1)},null,8,["disabled","onClick"])],64)):P("",!0),n(p,{icon:t(u).includes(i.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op50",border:!1,onClick:S=>W(i.name)},null,8,["icon","onClick"])],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):P("",!0)],64))),128))]),e("div",xe,[be,n(w,{p4:"",flex:"~ col gap-2"},{default:a(()=>[e("div",null,[n(q,null,{default:a(({toggle:l,isDark:T})=>[n(p,{n:"primary",onClick:l},{default:a(()=>[ye,U(" "+y(T.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),ke,Ve,n(L,{modelValue:t(I),"onUpdate:modelValue":o[0]||(o[0]=l=>c(I)?I.value=l:null),n:"primary"},{default:a(()=>[(r(),m(v,null,N(F,l=>e("option",{key:l[0],value:l[1]},y(l[0]),9,Ce)),64))]),_:1},8,["modelValue"]),we,n(f,{modelValue:t(C),"onUpdate:modelValue":o[1]||(o[1]=l=>c(C)?C.value=l:null),"n-primary":""},{default:a(()=>[Te]),_:1},8,["modelValue"]),n(f,{modelValue:t(B),"onUpdate:modelValue":o[2]||(o[2]=l=>c(B)?B.value=l:null),disabled:t(C),"n-primary":""},{default:a(()=>[Se]),_:1},8,["modelValue","disabled"])]),_:1}),Ne,n(w,{p4:"",flex:"~ col gap-2"},{default:a(()=>[n(f,{modelValue:t(k),"onUpdate:modelValue":o[3]||(o[3]=l=>c(k)?k.value=l:null),"n-primary":""},{default:a(()=>[Ue]),_:1},8,["modelValue"]),n(f,{modelValue:t($),"onUpdate:modelValue":o[4]||(o[4]=l=>c($)?$.value=l:null),"n-primary":""},{default:a(()=>[Oe]),_:1},8,["modelValue"]),n(f,{modelValue:t(O),"onUpdate:modelValue":o[5]||(o[5]=l=>c(O)?O.value=l:null),"n-primary":""},{default:a(()=>[$e]),_:1},8,["modelValue"]),Ie,Be,n(L,{modelValue:t(V),"onUpdate:modelValue":o[6]||(o[6]=l=>c(V)?V.value=l:null),modelModifiers:{number:!0},"n-primary":""},{default:a(()=>[(r(),m(v,null,N(M,l=>e("option",{key:l[0],value:l[1]},y(l[0]),9,De)),64))]),_:1},8,["modelValue"])]),_:1}),ze,n(w,{p4:"",flex:"~ col gap-2"},{default:a(()=>[n(f,{modelValue:t(D),"onUpdate:modelValue":o[7]||(o[7]=l=>c(D)?D.value=l:null),"n-primary":""},{default:a(()=>[Le,n(J,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op50:"",textContent:"Learn more"})]),_:1},8,["modelValue"]),Ee,e("div",je,[n(p,{n:"blue",to:"https://github.com/nuxt/devtools/discussions/29",target:"_blank"},{default:a(()=>[Ae,U(" Ideas & Suggestions ")]),_:1}),n(p,{n:"orange",to:"https://github.com/nuxt/devtools/issues",target:"_blank"},{default:a(()=>[Pe,U(" Bug Reports ")]),_:1})])]),_:1}),Fe,e("div",Me,[n(p,{n:"orange",onClick:Z},{default:a(()=>[Re,U(" Reset Local Settings & State ")]),_:1})])])])])}}});export{Qe as default};
1
+ import{_ as K}from"./YOyY9aeM.js";import{_ as Q}from"./BkolCBD4.js";import{d as X,am as Y,c2 as ee,aG as le,aC as E,m,i as n,k as e,F as v,n as N,f as t,j as a,L as oe,_ as ne,as as te,o as r,h as j,t as y,G as A,p as P,v as U,l as c,C as D,B as ae,bZ as se,c3 as ie}from"./DK_JXXAF.js";import{_ as ue}from"./DgiutZgW.js";import{_ as de}from"./iHPNd0oS.js";import{_ as re}from"./GiZoEwQH.js";const ce={px8:"",py6:""},pe={grid:"~ md:cols-2 gap-x-10 gap-y-3","max-w-300":""},me={flex:"~ col gap-2"},_e=e("h3",{"text-lg":""}," Tabs ",-1),fe={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},ve={capitalize:"",op75:""},ge=e("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),he=e("div",{"flex-auto":""},null,-1),xe={flex:"~ col gap-2"},be=e("h3",{"text-lg":""}," Appearance ",-1),ye=e("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1),ke=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),Ve=e("p",null,"UI Scale",-1),Ce=["value"],we=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),Te=e("span",null," Expand Sidebar ",-1),Se=e("span",null," Scrollable Sidebar ",-1),Ne=e("h3",{mt2:"","text-lg":""}," Features ",-1),Ue=e("span",null,"Close DevTools when clicking outside",-1),Oe=e("span",null,"Show help buttons",-1),$e=e("span",null,"Always show the floating panel",-1),Ie=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),Be=e("p",null,"Minimize floating panel on inactive",-1),De=["value"],ze=e("h3",{mt2:"","text-lg":""}," Feedback ",-1),Le=e("span",null,"Send anonymous statistics, help us improving DevTools",-1),Ee=e("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1),je={flex:"~ gap-2"},Ae=e("div",{"i-carbon-data-enrichment":""},null,-1),Pe=e("div",{"i-carbon-debug":""},null,-1),Fe=e("h3",{mt2:"","text-lg":""}," Debug ",-1),Me={flex:"~ gap-2"},Re=e("div",{"i-carbon-breaking-change":""},null,-1),Qe=X({__name:"settings",setup(Ge){const{interactionCloseOnOutsideClick:k,showPanel:O,showHelpButtons:$,scale:I,hiddenTabs:g,pinnedTabs:u,hiddenTabCategories:h,minimizePanelInactive:V,sidebarExpanded:C,sidebarScrollable:B}=ae(),x=Y(),F=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],M=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],R=ee(le());function G(s,o){o?g.value=g.value.filter(d=>d!==s):g.value.push(s)}function H(s,o){o?h.value=h.value.filter(d=>d!==s):h.value.push(s)}function W(s){u.value.includes(s)?u.value=u.value.filter(o=>o!==s):u.value.push(s)}function z(s,o){const d=u.value.indexOf(s);if(d===-1)return;const _=d+o;if(_<0||_>=u.value.length)return;const b=[...u.value];b.splice(d,1),b.splice(_,0,s),u.value=b}async function Z(){confirm("Are you sure you to reset all local settings & state? The app will reload.")&&(Object.keys(localStorage).forEach(s=>{s.startsWith("nuxt-devtools-")&&localStorage.removeItem(s)}),await oe.clearOptions(),x.value?.app?.reload?.(),window.location.reload())}return E(()=>{x.value&&(x.value.app.frameState.value.closeOnOutsideClick=k.value)}),E(()=>{x.value&&(x.value.app.frameState.value.minimizePanelInactive=V.value)}),(s,o)=>{const d=K,_=Q,b=se,p=ne,w=te,q=ie,L=ue,f=de,J=re;return r(),m("div",ce,[n(d,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),e("div",pe,[e("div",me,[_e,(r(!0),m(v,null,N(t(R),([l,T])=>(r(),m(v,{key:l},[T.length?(r(),j(w,{key:0,p3:"",flex:"~ col gap-1",class:A(t(h).includes(l)?"op50 grayscale":"")},{default:a(()=>[n(_,{flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-lime":"","model-value":!t(h).includes(l),"onUpdate:modelValue":i=>H(l,i)},{default:a(()=>[e("div",fe,[e("span",ve,y(l),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),ge,(r(!0),m(v,null,N(T,i=>(r(),j(_,{key:i.name,flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-primary":"","model-value":!t(g).includes(i.name),"onUpdate:modelValue":S=>G(i.name,S)},{default:a(()=>[e("div",{flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"",class:A(t(g).includes(i.name)?"op25":"")},[n(b,{"text-xl":"",icon:i.icon,title:i.title},null,8,["icon","title"]),e("span",null,y(i.title),1),he,t(u).includes(i.name)?(r(),m(v,{key:0},[n(p,{icon:"i-carbon-caret-up",disabled:t(u).indexOf(i.name)===0,border:!1,onClick:S=>z(i.name,-1)},null,8,["disabled","onClick"]),n(p,{icon:"i-carbon-caret-down",disabled:t(u).indexOf(i.name)===t(u).length-1,border:!1,onClick:S=>z(i.name,1)},null,8,["disabled","onClick"])],64)):P("",!0),n(p,{icon:t(u).includes(i.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op50",border:!1,onClick:S=>W(i.name)},null,8,["icon","onClick"])],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):P("",!0)],64))),128))]),e("div",xe,[be,n(w,{p4:"",flex:"~ col gap-2"},{default:a(()=>[e("div",null,[n(q,null,{default:a(({toggle:l,isDark:T})=>[n(p,{n:"primary",onClick:l},{default:a(()=>[ye,U(" "+y(T.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),ke,Ve,n(L,{modelValue:t(I),"onUpdate:modelValue":o[0]||(o[0]=l=>c(I)?I.value=l:null),n:"primary"},{default:a(()=>[(r(),m(v,null,N(F,l=>e("option",{key:l[0],value:l[1]},y(l[0]),9,Ce)),64))]),_:1},8,["modelValue"]),we,n(f,{modelValue:t(C),"onUpdate:modelValue":o[1]||(o[1]=l=>c(C)?C.value=l:null),"n-primary":""},{default:a(()=>[Te]),_:1},8,["modelValue"]),n(f,{modelValue:t(B),"onUpdate:modelValue":o[2]||(o[2]=l=>c(B)?B.value=l:null),disabled:t(C),"n-primary":""},{default:a(()=>[Se]),_:1},8,["modelValue","disabled"])]),_:1}),Ne,n(w,{p4:"",flex:"~ col gap-2"},{default:a(()=>[n(f,{modelValue:t(k),"onUpdate:modelValue":o[3]||(o[3]=l=>c(k)?k.value=l:null),"n-primary":""},{default:a(()=>[Ue]),_:1},8,["modelValue"]),n(f,{modelValue:t($),"onUpdate:modelValue":o[4]||(o[4]=l=>c($)?$.value=l:null),"n-primary":""},{default:a(()=>[Oe]),_:1},8,["modelValue"]),n(f,{modelValue:t(O),"onUpdate:modelValue":o[5]||(o[5]=l=>c(O)?O.value=l:null),"n-primary":""},{default:a(()=>[$e]),_:1},8,["modelValue"]),Ie,Be,n(L,{modelValue:t(V),"onUpdate:modelValue":o[6]||(o[6]=l=>c(V)?V.value=l:null),modelModifiers:{number:!0},"n-primary":""},{default:a(()=>[(r(),m(v,null,N(M,l=>e("option",{key:l[0],value:l[1]},y(l[0]),9,De)),64))]),_:1},8,["modelValue"])]),_:1}),ze,n(w,{p4:"",flex:"~ col gap-2"},{default:a(()=>[n(f,{modelValue:t(D),"onUpdate:modelValue":o[7]||(o[7]=l=>c(D)?D.value=l:null),"n-primary":""},{default:a(()=>[Le,n(J,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op50:"",textContent:"Learn more"})]),_:1},8,["modelValue"]),Ee,e("div",je,[n(p,{n:"blue",to:"https://github.com/nuxt/devtools/discussions/29",target:"_blank"},{default:a(()=>[Ae,U(" Ideas & Suggestions ")]),_:1}),n(p,{n:"orange",to:"https://github.com/nuxt/devtools/issues",target:"_blank"},{default:a(()=>[Pe,U(" Bug Reports ")]),_:1})])]),_:1}),Fe,e("div",Me,[n(p,{n:"orange",onClick:Z},{default:a(()=>[Re,U(" Reset Local Settings & State ")]),_:1})])])])])}}});export{Qe as default};
@@ -1 +1 @@
1
- import{d as B,r as T,a as k,at as W,f as t,o,m as s,k as e,t as $,h as y,j as x,bi as q,F as v,n as M,p as P,i as h,v as L,G as E,X as A,_ as G,ac as H,bj as j,b4 as X,b5 as J,ab as Q,aq as Y,b6 as Z,ar as ee,l as te,ae as oe,L as ne,M as ae}from"./BIR-zdoB.js";import{_ as D}from"./C1dTBAc9.js";import{_ as F}from"./23UkCXk9.js";import{_ as se}from"./D-oZYQtF.js";import{_ as re}from"./C3yfYbN6.js";import{_ as le}from"./xLwx2Q8v.js";import"./BTgTnXCo.js";import"./CRLCUxrw.js";import"./BrtwsvwD.js";const ie={block:"","cursor-pointer":""},ue={p2:""},ce=["onSubmit"],de=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),pe={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},_e={key:1},he=B({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:i}){const d=V,w=i,m=T([]),p=k(()=>{const u=N(d.route.path);return m.value=Array.from({length:u.length},()=>""),u});function N(u){return u.split(/(:\w+[?*]?(?:\(\))?)/).filter(Boolean).map(_=>_[0]===":"?_.replace(/\(\)$/,"?"):_)}const r=k(()=>p.value.map((u,_)=>u[0]===":"?m.value[_]:u).join("").replace(/\/+/g,"/")),n=k(()=>d.route.path.includes(":"));function f(){w("navigate",r.value)}return(u,_)=>{const a=A,l=G,c=W("VDropdown");return t(n)?(o(),y(c,{key:1},{popper:x(({hide:g})=>[e("div",ue,[e("form",{flex:"~ col",onSubmit:q(()=>{f(),g()},["prevent"])},[t(n)?(o(),s(v,{key:0},[de,e("div",pe,[(o(!0),s(v,null,M(t(p),(b,R)=>(o(),s(v,{key:R},[b[0]===":"?(o(),y(a,{key:0,modelValue:t(m)[R],"onUpdate:modelValue":I=>t(m)[R]=I,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",_e,$(b),1))],64))),128))])],64)):P("",!0),h(l,{type:"submit",block:"",n:"primary"},{default:x(()=>[L(" Navigate ")]),_:1})],40,ce)])]),default:x(()=>[e("code",ie,[(o(!0),s(v,null,M(t(p),(g,b)=>(o(),s("span",{key:b,class:E(g[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(g[0]===":"?g.slice(1):g),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:f},[e("code",null,$(u.route.path),1)]))}}}),me={"w-full":""},fe=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),ge={"w-20":"","pr-1":""},ve={flex:"","items-center":"","justify-end":""},ye={"text-sm":""},be={flex:"inline gap3","items-center":""},xe={op0:"","group-hover:op100":"",flex:"~ gap1"},ke=["onClick"],$e=e("div",{"i-carbon-script-reference":""},null,-1),we=[$e],Ne={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Re={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ce={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Pe={key:0},Ve=["onClick"],Ie=B({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const i=V,d=H(),w=j(),m=k(()=>[...i.pages].sort((r,n)=>r.path.localeCompare(n.path)));function p(r){const n=i.layouts.find(f=>f.name===r);n&&d(n.file)}function N(r){if(typeof r=="string")return w.value?.middleware.find(n=>n.name===r)?.path}return(r,n)=>{const f=D,u=he,_=F;return o(),s("div",null,[e("table",me,[fe,e("tbody",null,[(o(!0),s(v,null,M(t(m),a=>(o(),s("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",ge,[e("div",ve,[r.matched.find(l=>l.name===a.name)?(o(),y(f,{key:0,n:"green",title:"active",textContent:"active"})):r.matchedPending.find(l=>l.name===a.name)?(o(),y(f,{key:1,n:"teal",title:"next",textContent:"next"})):P("",!0)])]),e("td",ye,[e("div",be,[h(u,{route:a,class:E(r.matched.find(l=>l.name===a.name)?"text-primary":r.matchedPending.find(l=>l.name===a.name)?"text-teal":""),onNavigate:n[0]||(n[0]=l=>r.$emit("navigate",l))},null,8,["route","class"]),e("div",xe,[a.file||a.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>t(d)(a.file||a.meta?.file)},we,8,ke)):P("",!0)])])]),e("td",Ne,$(a.name),1),e("td",Re,[h(_,{filepath:N(a.meta.middleware),override:`${a.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ce,[a.meta.layout===!1?(o(),s("span",Pe,"-")):a.meta.layout?(o(),s("button",{key:1,onClick:l=>p(a.meta.layout)},$(a.meta.layout),9,Ve)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=l=>p("default"))}," (default) "))])]))),128))])])])}}}),Le={class:"markdown-body"},Me=e("h1",null,"Pages",-1),Te=e("p",null,[L("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),L(" directory.")],-1),Be=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Ee=e("hr",null,null,-1),Ae=e("h1",null,"Middlewares",-1),je=e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),De=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Fe=[Me,Te,Be,Ee,Ae,je,De],Se={__name:"pages",setup(V,{expose:i}){return i({frontmatter:{}}),(w,m)=>(o(),s("div",Le,Fe))}},ze={key:0,"h-full":"","of-auto":""},Ue={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Ke=e("span",{op50:""},"Navigate from ",-1),Oe={"font-mono":""},We=e("span",{op50:""}," to ",-1),qe={key:1,op50:""},Ge=e("span",null,[L("Press "),e("b",{"font-bold":""},"Enter"),L(" to navigate")],-1),He={key:0,"text-orange":"",op75:""},Xe={key:1,op50:""},Je={"min-h-14":""},Qe={key:1,class:"py-4 text-center"},Ye=e("span",{op50:""},"No routes matched",-1),Ze=[Ye],et={"w-full":""},tt=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),ot={mr1:""},pt=B({__name:"pages",setup(V){const i=X(),d=J(),w=Q(),m=j(),p=Y(),N=Z(),r=k(()=>m.value?.middleware||[]),n=T(""),f=T(0),u=k(()=>(r.value,n.value,p.value,f.value,i.value?.currentRoute?.value?.path));ee(()=>{d.value&&(n.value=i.value?.currentRoute?.value?.path),i.value?.beforeEach(c=>{n.value=c.fullPath}),i.value?.afterEach(c=>{n.value=c.fullPath})});async function _(){n.value!==i.value?.currentRoute?.value?.path&&i.value.push(n.value||"/")}const a=k(()=>i.value.resolve(n.value||"/").matched);function l(c){i.value.push(c),n.value=c}return(c,g)=>{const b=A,R=Ie,I=se,S=D,z=F,U=re,K=Se,O=le;return o(),s(v,null,[t(w)?.pages&&t(i)?(o(),s("div",ze,[e("div",Ue,[e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ke,e("span",Oe,$(t(u)),1),We],64)):(o(),s("span",qe,"Current route"))]),h(b,{modelValue:t(n),"onUpdate:modelValue":g[0]||(g[0]=C=>te(n)?n.value=C:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:E(t(u)===t(n)?"":t(a).length?"text-green":"text-orange"),onKeydown:oe(_,["enter"])},null,8,["modelValue","class"]),e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ge,t(a).length?P("",!0):(o(),s("span",He," (no match)"))],64)):(o(),s("span",Xe,"Edit path above to navigate"))])]),h(I,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:x(()=>[e("div",Je,[t(a).length?(o(),y(R,{key:0,pages:t(a),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])):(o(),s("div",Qe,Ze))])]),_:1}),h(I,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(N).length} routes registered in your application`,padding:"pr5"},{default:x(()=>[h(R,{pages:t(N),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(r).length?(o(),y(I,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(r).length} middleware registered in your application`,padding:"px13"},{default:x(()=>[e("table",et,[tt,(o(!0),s(v,null,M(t(r),C=>(o(),s("tr",{key:C.path,"h-7":""},[e("td",null,[e("span",ot,$(C.name),1),C.global?(o(),y(S,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):P("",!0)]),e("td",null,[h(z,{filepath:C.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):P("",!0)])):(o(),y(U,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",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",async handle(){return("rpc"in c?c.rpc:t(ne)).runWizard(await("ensureDevAuthToken"in c?c.ensureDevAuthToken:t(ae))(),"enablePages")}}]},null,8,["actions"])),h(O,null,{default:x(()=>[h(K)]),_:1})],64)}}});export{pt as default};
1
+ import{d as B,r as T,a as k,at as W,f as t,o,m as s,k as e,t as $,h as y,j as x,bi as q,F as v,n as M,p as P,i as h,v as L,G as E,X as A,_ as G,ac as H,bj as j,b4 as X,b5 as J,ab as Q,aq as Y,b6 as Z,ar as ee,l as te,ae as oe,L as ne,M as ae}from"./DK_JXXAF.js";import{_ as D}from"./H8AztYTG.js";import{_ as F}from"./Bus6nM-z.js";import{_ as se}from"./PiOA0xLD.js";import{_ as re}from"./Dn64Kuww.js";import{_ as le}from"./tRGVf0Jt.js";import"./YOyY9aeM.js";import"./DJinuH1o.js";import"./BZUqxYL0.js";const ie={block:"","cursor-pointer":""},ue={p2:""},ce=["onSubmit"],de=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),pe={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},_e={key:1},he=B({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:i}){const d=V,w=i,m=T([]),p=k(()=>{const u=N(d.route.path);return m.value=Array.from({length:u.length},()=>""),u});function N(u){return u.split(/(:\w+[?*]?(?:\(\))?)/).filter(Boolean).map(_=>_[0]===":"?_.replace(/\(\)$/,"?"):_)}const r=k(()=>p.value.map((u,_)=>u[0]===":"?m.value[_]:u).join("").replace(/\/+/g,"/")),n=k(()=>d.route.path.includes(":"));function f(){w("navigate",r.value)}return(u,_)=>{const a=A,l=G,c=W("VDropdown");return t(n)?(o(),y(c,{key:1},{popper:x(({hide:g})=>[e("div",ue,[e("form",{flex:"~ col",onSubmit:q(()=>{f(),g()},["prevent"])},[t(n)?(o(),s(v,{key:0},[de,e("div",pe,[(o(!0),s(v,null,M(t(p),(b,R)=>(o(),s(v,{key:R},[b[0]===":"?(o(),y(a,{key:0,modelValue:t(m)[R],"onUpdate:modelValue":I=>t(m)[R]=I,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",_e,$(b),1))],64))),128))])],64)):P("",!0),h(l,{type:"submit",block:"",n:"primary"},{default:x(()=>[L(" Navigate ")]),_:1})],40,ce)])]),default:x(()=>[e("code",ie,[(o(!0),s(v,null,M(t(p),(g,b)=>(o(),s("span",{key:b,class:E(g[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(g[0]===":"?g.slice(1):g),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:f},[e("code",null,$(u.route.path),1)]))}}}),me={"w-full":""},fe=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),ge={"w-20":"","pr-1":""},ve={flex:"","items-center":"","justify-end":""},ye={"text-sm":""},be={flex:"inline gap3","items-center":""},xe={op0:"","group-hover:op100":"",flex:"~ gap1"},ke=["onClick"],$e=e("div",{"i-carbon-script-reference":""},null,-1),we=[$e],Ne={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Re={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ce={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Pe={key:0},Ve=["onClick"],Ie=B({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const i=V,d=H(),w=j(),m=k(()=>[...i.pages].sort((r,n)=>r.path.localeCompare(n.path)));function p(r){const n=i.layouts.find(f=>f.name===r);n&&d(n.file)}function N(r){if(typeof r=="string")return w.value?.middleware.find(n=>n.name===r)?.path}return(r,n)=>{const f=D,u=he,_=F;return o(),s("div",null,[e("table",me,[fe,e("tbody",null,[(o(!0),s(v,null,M(t(m),a=>(o(),s("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",ge,[e("div",ve,[r.matched.find(l=>l.name===a.name)?(o(),y(f,{key:0,n:"green",title:"active",textContent:"active"})):r.matchedPending.find(l=>l.name===a.name)?(o(),y(f,{key:1,n:"teal",title:"next",textContent:"next"})):P("",!0)])]),e("td",ye,[e("div",be,[h(u,{route:a,class:E(r.matched.find(l=>l.name===a.name)?"text-primary":r.matchedPending.find(l=>l.name===a.name)?"text-teal":""),onNavigate:n[0]||(n[0]=l=>r.$emit("navigate",l))},null,8,["route","class"]),e("div",xe,[a.file||a.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>t(d)(a.file||a.meta?.file)},we,8,ke)):P("",!0)])])]),e("td",Ne,$(a.name),1),e("td",Re,[h(_,{filepath:N(a.meta.middleware),override:`${a.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ce,[a.meta.layout===!1?(o(),s("span",Pe,"-")):a.meta.layout?(o(),s("button",{key:1,onClick:l=>p(a.meta.layout)},$(a.meta.layout),9,Ve)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=l=>p("default"))}," (default) "))])]))),128))])])])}}}),Le={class:"markdown-body"},Me=e("h1",null,"Pages",-1),Te=e("p",null,[L("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),L(" directory.")],-1),Be=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Ee=e("hr",null,null,-1),Ae=e("h1",null,"Middlewares",-1),je=e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),De=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Fe=[Me,Te,Be,Ee,Ae,je,De],Se={__name:"pages",setup(V,{expose:i}){return i({frontmatter:{}}),(w,m)=>(o(),s("div",Le,Fe))}},ze={key:0,"h-full":"","of-auto":""},Ue={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Ke=e("span",{op50:""},"Navigate from ",-1),Oe={"font-mono":""},We=e("span",{op50:""}," to ",-1),qe={key:1,op50:""},Ge=e("span",null,[L("Press "),e("b",{"font-bold":""},"Enter"),L(" to navigate")],-1),He={key:0,"text-orange":"",op75:""},Xe={key:1,op50:""},Je={"min-h-14":""},Qe={key:1,class:"py-4 text-center"},Ye=e("span",{op50:""},"No routes matched",-1),Ze=[Ye],et={"w-full":""},tt=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),ot={mr1:""},pt=B({__name:"pages",setup(V){const i=X(),d=J(),w=Q(),m=j(),p=Y(),N=Z(),r=k(()=>m.value?.middleware||[]),n=T(""),f=T(0),u=k(()=>(r.value,n.value,p.value,f.value,i.value?.currentRoute?.value?.path));ee(()=>{d.value&&(n.value=i.value?.currentRoute?.value?.path),i.value?.beforeEach(c=>{n.value=c.fullPath}),i.value?.afterEach(c=>{n.value=c.fullPath})});async function _(){n.value!==i.value?.currentRoute?.value?.path&&i.value.push(n.value||"/")}const a=k(()=>i.value.resolve(n.value||"/").matched);function l(c){i.value.push(c),n.value=c}return(c,g)=>{const b=A,R=Ie,I=se,S=D,z=F,U=re,K=Se,O=le;return o(),s(v,null,[t(w)?.pages&&t(i)?(o(),s("div",ze,[e("div",Ue,[e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ke,e("span",Oe,$(t(u)),1),We],64)):(o(),s("span",qe,"Current route"))]),h(b,{modelValue:t(n),"onUpdate:modelValue":g[0]||(g[0]=C=>te(n)?n.value=C:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:E(t(u)===t(n)?"":t(a).length?"text-green":"text-orange"),onKeydown:oe(_,["enter"])},null,8,["modelValue","class"]),e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ge,t(a).length?P("",!0):(o(),s("span",He," (no match)"))],64)):(o(),s("span",Xe,"Edit path above to navigate"))])]),h(I,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:x(()=>[e("div",Je,[t(a).length?(o(),y(R,{key:0,pages:t(a),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])):(o(),s("div",Qe,Ze))])]),_:1}),h(I,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(N).length} routes registered in your application`,padding:"pr5"},{default:x(()=>[h(R,{pages:t(N),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(r).length?(o(),y(I,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(r).length} middleware registered in your application`,padding:"px13"},{default:x(()=>[e("table",et,[tt,(o(!0),s(v,null,M(t(r),C=>(o(),s("tr",{key:C.path,"h-7":""},[e("td",null,[e("span",ot,$(C.name),1),C.global?(o(),y(S,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):P("",!0)]),e("td",null,[h(z,{filepath:C.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):P("",!0)])):(o(),y(U,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",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",async handle(){return("rpc"in c?c.rpc:t(ne)).runWizard(await("ensureDevAuthToken"in c?c.ensureDevAuthToken:t(ae))(),"enablePages")}}]},null,8,["actions"])),h(O,null,{default:x(()=>[h(K)]),_:1})],64)}}});export{pt as default};
@@ -1 +1 @@
1
- import{d as p,a0 as m,o,m as l,aa as n,h as f,p as t,I as b,c5 as h,f as v,k,t as y,l as V,G as d,a6 as B}from"./BIR-zdoB.js";const g=["disabled"],w={key:0,value:"",disabled:"",hidden:""},C=p({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(i,{emit:r}){const s=m(i,"modelValue",r,{passive:!0});return(e,a)=>{const c=B;return o(),l("div",{class:d(["n-select flex flex items-center border rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base",e.disabled?"border-gray:10":"n-border-base"])},[n(e.$slots,"icon",{},()=>[e.icon?(o(),f(c,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):t("",!0)]),b(k("select",{"onUpdate:modelValue":a[0]||(a[0]=u=>V(s)?s.value=u:null),disabled:e.disabled,class:d(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(o(),l("option",w,y(e.placeholder),1)):t("",!0),n(e.$slots,"default")],10,g),[[h,v(s)]])],2)}}});export{C as _};
1
+ import{d as p,a0 as m,o,m as l,aa as n,h as f,p as t,I as b,c5 as h,f as v,k,t as y,l as V,G as d,a6 as B}from"./DK_JXXAF.js";const g=["disabled"],w={key:0,value:"",disabled:"",hidden:""},C=p({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(i,{emit:r}){const s=m(i,"modelValue",r,{passive:!0});return(e,a)=>{const c=B;return o(),l("div",{class:d(["n-select flex flex items-center border rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base",e.disabled?"border-gray:10":"n-border-base"])},[n(e.$slots,"icon",{},()=>[e.icon?(o(),f(c,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):t("",!0)]),b(k("select",{"onUpdate:modelValue":a[0]||(a[0]=u=>V(s)?s.value=u:null),disabled:e.disabled,class:d(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(o(),l("option",w,y(e.placeholder),1)):t("",!0),n(e.$slots,"default")],10,g),[[h,v(s)]])],2)}}});export{C as _};
@@ -1,2 +1,2 @@
1
- import{$ as Ce}from"./BIR-zdoB.js";function Me(t){const e=t.length;let r=-1,s,n="";const i=t.charCodeAt(0);for(;++r<e;){if(s=t.charCodeAt(r),s===0){n+="�";continue}if(s===37){n+="\\%";continue}if(s===44){n+="\\,";continue}if(s>=1&&s<=31||s===127||r===0&&s>=48&&s<=57||r===1&&s>=48&&s<=57&&i===45){n+=`\\${s.toString(16)} `;continue}if(r===0&&e===1&&s===45){n+=`\\${t.charAt(r)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}const q=Me;function j(t=[]){return Array.isArray(t)?t:[t]}function W(t){return Array.from(new Set(t))}function Oe(t,e){return t.reduce((r,s)=>(r.findIndex(i=>e(s,i))===-1&&r.push(s),r),[])}function E(t){return typeof t=="string"}function V(t){return E(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ee(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>V(e)):[t]:[V(t)]}function ke(t){return t.filter(([e,r],s)=>{if(e.startsWith("$$"))return!1;for(let n=s-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function K(t){return t==null?"":ke(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function B(t){return t&&typeof t=="object"&&!Array.isArray(t)}function pe(t,e,r=!1){const s=t,n=e;if(Array.isArray(n))return r&&Array.isArray(n)?[...s,...n]:[...n];const i={...s};return B(s)&&B(n)&&Object.keys(n).forEach(o=>{B(s[o])&&B(n[o])||Array.isArray(s[o])&&Array.isArray(n[o])?i[o]=pe(s[o],n[o],r):Object.assign(i,{[o]:n[o]})}),i}function H(t){let e,r,s;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(s=t[e])&&typeof s=="object"?H(s):s;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:H(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(s=t[e])&&typeof s=="object"?H(s):s;return r}return t}function je(t){return E(t[0])}function Le(t){return E(t[0])}function Pe(t){return typeof t=="function"?{match:t}:t}function ee(t){return t.length===3}function te(t){return t!=null}function ze(){}var Fe=Object.defineProperty,Te=(t,e,r)=>e in t?Fe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ie=(t,e,r)=>(Te(t,e+"",r),r);class Ne{constructor(){Ie(this,"_map",new Map)}get(e,r){const s=this._map.get(e);if(s)return s.get(r)}getFallback(e,r,s){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,s),n.get(r)}set(e,r,s){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,s),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,s])=>Array.from(s.entries()).map(([n,i])=>e(i,r,n)))}}class De extends Map{getFallback(e,r){const s=this.get(e);return s===void 0?(this.set(e,r),r):s}map(e){const r=[];return this.forEach((s,n)=>{r.push(e(s,n))}),r}flatMap(e){const r=[];return this.forEach((s,n)=>{r.push(...e(s,n))}),r}}var Re=Object.defineProperty,Ve=(t,e,r)=>e in t?Re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Be=(t,e,r)=>(Ve(t,e+"",r),r);class me extends Set{constructor(e){super(e),Be(this,"_map"),this._map??(this._map=new Map)}add(e){return this._map??(this._map=new Map),this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}}function X(t){return t instanceof me}const U={};function Ue(t=["-",":"]){const e=t.join("|");return U[e]||(U[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),U[e].lastIndex=0,U[e]}function He(t,e=["-",":"],r=5){const s=Ue(e);let n,i=t.toString();const o=new Set,a=new Map;do n=!1,i=i.replace(s,(u,c,h,w,v)=>{if(!e.includes(h))return u;n=!0,o.add(c+h);const _=v+c.length+h.length+1,y={length:u.length,items:[]};a.set(v,y);for(const d of[...w.matchAll(/\S+/g)]){const M=_+d.index;let m=a.get(M)?.items;m?a.delete(M):m=[{offset:M,length:d[0].length,className:d[0]}];for(const p of m)p.className=p.className==="~"?c:p.className.replace(/^(!?)(.*)/,`$1${c}${h}$2`),y.items.push(p)}return"$".repeat(u.length)}),r-=1;while(n&&r);let l;if(typeof t=="string"){l="";let u=0;for(const[c,h]of a)l+=t.slice(u,c),l+=h.items.map(w=>w.className).join(" "),u=c+h.length;l+=t.slice(u)}else{l=t;for(const[u,c]of a)l.overwrite(u,u+c.length,c.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:n,groupsByOffset:a,get expanded(){return l.toString()}}}function Ge(t,e=["-",":"],r=5){const s=He(t,e,r);return typeof t=="string"?s.expanded:t}const re=new Set;function ge(t){re.has(t)||(console.warn("[unocss]",t),re.add(t))}const We=/[\\:]?[\s'"`;{}]+/g;function Ye(t){return t.split(We)}const qe={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ye(t)}};function Ke(){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 G="default",J="preflights",Xe="shortcuts",Ze="imports",Je={[Ze]:-200,[J]:-100,[Xe]:-10,[G]:0};function ye(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ne="_uno_resolved";function Qe(t){let e=typeof t=="function"?t():t;if(ne in e)return e;e={...e},Object.defineProperty(e,ne,{value:!0,enumerable:!1});const r=e.shortcuts?ye(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){const s=n=>{n[2]||(n[2]={});const i=n[2];i.prefix==null&&e.prefix&&(i.prefix=j(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(s),e.rules?.forEach(s)}return e}function we(t){const e=Qe(t);if(!e.presets)return[e];const r=(e.presets||[]).flatMap(j).flatMap(we);return[e,...r]}function se(t={},e={}){const r=Object.assign({},e,t),s=Oe((r.presets||[]).flatMap(j).flatMap(we),(f,g)=>f.name===g.name),n=[...s.filter(f=>f.enforce==="pre"),...s.filter(f=>!f.enforce),...s.filter(f=>f.enforce==="post")],i=[...n,r],o=[...i].reverse(),a=Object.assign({},Je,...i.map(f=>f.layers));function l(f){return W(i.flatMap(g=>j(g[f]||[])))}const u=l("extractors");let c=o.find(f=>f.extractorDefault!==void 0)?.extractorDefault;c===void 0&&(c=qe),c&&!u.includes(c)&&u.unshift(c),u.sort((f,g)=>(f.order||0)-(g.order||0));const h=l("rules"),w={},v=h.length,_=h.map((f,g)=>{if(je(f)){j(f[2]?.prefix||"").forEach(A=>{w[A+f[0]]=[g,f[1],f[2],f]});return}return[g,...f]}).filter(Boolean).reverse();let y=et(i.map(f=>f.theme));const d=l("extendTheme");for(const f of d)y=f(y)||y;const M={templates:W(i.flatMap(f=>j(f.autocomplete?.templates))),extractors:i.flatMap(f=>j(f.autocomplete?.extractors)).sort((f,g)=>(f.order||0)-(g.order||0)),shorthands:tt(i.map(f=>f.autocomplete?.shorthands||{}))};let m=l("separators");m.length||(m=[":","-"]);const p={mergeSelectors:!0,warn:!0,sortLayers:f=>f,...r,blocklist:l("blocklist"),presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:y,rulesSize:v,rulesDynamic:_,rulesStaticMap:w,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:M,variants:l("variants").map(Pe).sort((f,g)=>(f.order||0)-(g.order||0)),shortcuts:ye(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:m,details:r.details??r.envMode==="dev"};for(const f of i)f?.configResolved?.(p);return p}function et(t){return t.map(e=>e?H(e):{}).reduce((e,r)=>pe(e,r),{})}function tt(t){return t.reduce((e,r)=>{const s={};for(const n in r){const i=r[n];Array.isArray(i)?s[n]=`(${i.join("|")})`:s[n]=i}return{...e,...s}},{})}const rt="0.61.0";var nt=Object.defineProperty,st=(t,e,r)=>e in t?nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,D=(t,e,r)=>(st(t,typeof e!="symbol"?e+"":e,r),r);const R={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector"};class it{constructor(e={},r={}){this.userConfig=e,this.defaults=r,D(this,"version",rt),D(this,"_cache",new Map),D(this,"config"),D(this,"blocked",new Set),D(this,"parentOrders",new Map),D(this,"events",Ke()),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,s=new Set){const n={original:e,code:e,id:r,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const o=await i.extract?.(n);if(o)if(X(o)&&X(s))for(const a of o)s.setCount(a,s.getCount(a)+o.getCount(a));else for(const a of o)s.add(a)}return s}makeContext(e,r){const s={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:R,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(s,...n),variantMatch:r};return s}async parseToken(e,r){if(this.blocked.has(e))return;const s=`${e}${r?` ${r}`:""}`;if(this._cache.has(s))return this._cache.get(s);let n=e;for(const u of this.config.preprocess)n=u(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(s,null);return}const i=await this.matchVariants(e,n);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(s,null);return}const o=this.makeContext(e,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(o.variants=[...i[3]]);const a=await this.expandShortcut(o.currentSelector,o),l=a?await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]):(await this.parseUtil(o.variantMatch,o))?.map(u=>this.stringifyUtil(u,o)).filter(te);if(l?.length)return this._cache.set(s,l),l;this._cache.set(s,null)}async generate(e,r={}){const{id:s,scope:n,preflights:i=!0,safelist:o=!0,minify:a=!1,extendedInfo:l=!1}=r,u=this.config.outputToCssLayers,c=E(e)?await this.applyExtractors(e,s,l?new me:new Set):Array.isArray(e)?new Set(e):e;if(o){const g={generator:this,theme:this.config.theme};this.config.safelist.flatMap(x=>typeof x=="function"?x(g):x).forEach(x=>{c.has(x)||c.add(x)})}const h=a?"":`
1
+ import{$ as Ce}from"./DK_JXXAF.js";function Me(t){const e=t.length;let r=-1,s,n="";const i=t.charCodeAt(0);for(;++r<e;){if(s=t.charCodeAt(r),s===0){n+="�";continue}if(s===37){n+="\\%";continue}if(s===44){n+="\\,";continue}if(s>=1&&s<=31||s===127||r===0&&s>=48&&s<=57||r===1&&s>=48&&s<=57&&i===45){n+=`\\${s.toString(16)} `;continue}if(r===0&&e===1&&s===45){n+=`\\${t.charAt(r)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}const q=Me;function j(t=[]){return Array.isArray(t)?t:[t]}function W(t){return Array.from(new Set(t))}function Oe(t,e){return t.reduce((r,s)=>(r.findIndex(i=>e(s,i))===-1&&r.push(s),r),[])}function E(t){return typeof t=="string"}function V(t){return E(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ee(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>V(e)):[t]:[V(t)]}function ke(t){return t.filter(([e,r],s)=>{if(e.startsWith("$$"))return!1;for(let n=s-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function K(t){return t==null?"":ke(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function B(t){return t&&typeof t=="object"&&!Array.isArray(t)}function pe(t,e,r=!1){const s=t,n=e;if(Array.isArray(n))return r&&Array.isArray(n)?[...s,...n]:[...n];const i={...s};return B(s)&&B(n)&&Object.keys(n).forEach(o=>{B(s[o])&&B(n[o])||Array.isArray(s[o])&&Array.isArray(n[o])?i[o]=pe(s[o],n[o],r):Object.assign(i,{[o]:n[o]})}),i}function H(t){let e,r,s;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(s=t[e])&&typeof s=="object"?H(s):s;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:H(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(s=t[e])&&typeof s=="object"?H(s):s;return r}return t}function je(t){return E(t[0])}function Le(t){return E(t[0])}function Pe(t){return typeof t=="function"?{match:t}:t}function ee(t){return t.length===3}function te(t){return t!=null}function ze(){}var Fe=Object.defineProperty,Te=(t,e,r)=>e in t?Fe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ie=(t,e,r)=>(Te(t,e+"",r),r);class Ne{constructor(){Ie(this,"_map",new Map)}get(e,r){const s=this._map.get(e);if(s)return s.get(r)}getFallback(e,r,s){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,s),n.get(r)}set(e,r,s){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,s),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,s])=>Array.from(s.entries()).map(([n,i])=>e(i,r,n)))}}class De extends Map{getFallback(e,r){const s=this.get(e);return s===void 0?(this.set(e,r),r):s}map(e){const r=[];return this.forEach((s,n)=>{r.push(e(s,n))}),r}flatMap(e){const r=[];return this.forEach((s,n)=>{r.push(...e(s,n))}),r}}var Re=Object.defineProperty,Ve=(t,e,r)=>e in t?Re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Be=(t,e,r)=>(Ve(t,e+"",r),r);class me extends Set{constructor(e){super(e),Be(this,"_map"),this._map??(this._map=new Map)}add(e){return this._map??(this._map=new Map),this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}}function X(t){return t instanceof me}const U={};function Ue(t=["-",":"]){const e=t.join("|");return U[e]||(U[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),U[e].lastIndex=0,U[e]}function He(t,e=["-",":"],r=5){const s=Ue(e);let n,i=t.toString();const o=new Set,a=new Map;do n=!1,i=i.replace(s,(u,c,h,w,v)=>{if(!e.includes(h))return u;n=!0,o.add(c+h);const _=v+c.length+h.length+1,y={length:u.length,items:[]};a.set(v,y);for(const d of[...w.matchAll(/\S+/g)]){const M=_+d.index;let m=a.get(M)?.items;m?a.delete(M):m=[{offset:M,length:d[0].length,className:d[0]}];for(const p of m)p.className=p.className==="~"?c:p.className.replace(/^(!?)(.*)/,`$1${c}${h}$2`),y.items.push(p)}return"$".repeat(u.length)}),r-=1;while(n&&r);let l;if(typeof t=="string"){l="";let u=0;for(const[c,h]of a)l+=t.slice(u,c),l+=h.items.map(w=>w.className).join(" "),u=c+h.length;l+=t.slice(u)}else{l=t;for(const[u,c]of a)l.overwrite(u,u+c.length,c.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:n,groupsByOffset:a,get expanded(){return l.toString()}}}function Ge(t,e=["-",":"],r=5){const s=He(t,e,r);return typeof t=="string"?s.expanded:t}const re=new Set;function ge(t){re.has(t)||(console.warn("[unocss]",t),re.add(t))}const We=/[\\:]?[\s'"`;{}]+/g;function Ye(t){return t.split(We)}const qe={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ye(t)}};function Ke(){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 G="default",J="preflights",Xe="shortcuts",Ze="imports",Je={[Ze]:-200,[J]:-100,[Xe]:-10,[G]:0};function ye(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ne="_uno_resolved";function Qe(t){let e=typeof t=="function"?t():t;if(ne in e)return e;e={...e},Object.defineProperty(e,ne,{value:!0,enumerable:!1});const r=e.shortcuts?ye(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){const s=n=>{n[2]||(n[2]={});const i=n[2];i.prefix==null&&e.prefix&&(i.prefix=j(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(s),e.rules?.forEach(s)}return e}function we(t){const e=Qe(t);if(!e.presets)return[e];const r=(e.presets||[]).flatMap(j).flatMap(we);return[e,...r]}function se(t={},e={}){const r=Object.assign({},e,t),s=Oe((r.presets||[]).flatMap(j).flatMap(we),(f,g)=>f.name===g.name),n=[...s.filter(f=>f.enforce==="pre"),...s.filter(f=>!f.enforce),...s.filter(f=>f.enforce==="post")],i=[...n,r],o=[...i].reverse(),a=Object.assign({},Je,...i.map(f=>f.layers));function l(f){return W(i.flatMap(g=>j(g[f]||[])))}const u=l("extractors");let c=o.find(f=>f.extractorDefault!==void 0)?.extractorDefault;c===void 0&&(c=qe),c&&!u.includes(c)&&u.unshift(c),u.sort((f,g)=>(f.order||0)-(g.order||0));const h=l("rules"),w={},v=h.length,_=h.map((f,g)=>{if(je(f)){j(f[2]?.prefix||"").forEach(A=>{w[A+f[0]]=[g,f[1],f[2],f]});return}return[g,...f]}).filter(Boolean).reverse();let y=et(i.map(f=>f.theme));const d=l("extendTheme");for(const f of d)y=f(y)||y;const M={templates:W(i.flatMap(f=>j(f.autocomplete?.templates))),extractors:i.flatMap(f=>j(f.autocomplete?.extractors)).sort((f,g)=>(f.order||0)-(g.order||0)),shorthands:tt(i.map(f=>f.autocomplete?.shorthands||{}))};let m=l("separators");m.length||(m=[":","-"]);const p={mergeSelectors:!0,warn:!0,sortLayers:f=>f,...r,blocklist:l("blocklist"),presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:y,rulesSize:v,rulesDynamic:_,rulesStaticMap:w,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:M,variants:l("variants").map(Pe).sort((f,g)=>(f.order||0)-(g.order||0)),shortcuts:ye(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:m,details:r.details??r.envMode==="dev"};for(const f of i)f?.configResolved?.(p);return p}function et(t){return t.map(e=>e?H(e):{}).reduce((e,r)=>pe(e,r),{})}function tt(t){return t.reduce((e,r)=>{const s={};for(const n in r){const i=r[n];Array.isArray(i)?s[n]=`(${i.join("|")})`:s[n]=i}return{...e,...s}},{})}const rt="0.61.0";var nt=Object.defineProperty,st=(t,e,r)=>e in t?nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,D=(t,e,r)=>(st(t,typeof e!="symbol"?e+"":e,r),r);const R={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector"};class it{constructor(e={},r={}){this.userConfig=e,this.defaults=r,D(this,"version",rt),D(this,"_cache",new Map),D(this,"config"),D(this,"blocked",new Set),D(this,"parentOrders",new Map),D(this,"events",Ke()),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,s=new Set){const n={original:e,code:e,id:r,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const o=await i.extract?.(n);if(o)if(X(o)&&X(s))for(const a of o)s.setCount(a,s.getCount(a)+o.getCount(a));else for(const a of o)s.add(a)}return s}makeContext(e,r){const s={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:R,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(s,...n),variantMatch:r};return s}async parseToken(e,r){if(this.blocked.has(e))return;const s=`${e}${r?` ${r}`:""}`;if(this._cache.has(s))return this._cache.get(s);let n=e;for(const u of this.config.preprocess)n=u(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(s,null);return}const i=await this.matchVariants(e,n);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(s,null);return}const o=this.makeContext(e,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(o.variants=[...i[3]]);const a=await this.expandShortcut(o.currentSelector,o),l=a?await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]):(await this.parseUtil(o.variantMatch,o))?.map(u=>this.stringifyUtil(u,o)).filter(te);if(l?.length)return this._cache.set(s,l),l;this._cache.set(s,null)}async generate(e,r={}){const{id:s,scope:n,preflights:i=!0,safelist:o=!0,minify:a=!1,extendedInfo:l=!1}=r,u=this.config.outputToCssLayers,c=E(e)?await this.applyExtractors(e,s,l?new me:new Set):Array.isArray(e)?new Set(e):e;if(o){const g={generator:this,theme:this.config.theme};this.config.safelist.flatMap(x=>typeof x=="function"?x(g):x).forEach(x=>{c.has(x)||c.add(x)})}const h=a?"":`
2
2
  `,w=new Set([G]),v=l?new Map:new Set,_=new Map;let y={};const d=Array.from(c).map(async g=>{if(v.has(g))return;const x=await this.parseToken(g);if(x!=null){v instanceof Map?v.set(g,{data:x,count:X(c)?c.getCount(g):-1}):v.add(g);for(const A of x){const C=A[3]||"",O=A[4]?.layer;_.has(C)||_.set(C,[]),_.get(C).push(A),O&&w.add(O)}}});await Promise.all(d),await(async()=>{if(!i)return;const g={generator:this,theme:this.config.theme},x=new Set([]);this.config.preflights.forEach(({layer:A=J})=>{w.add(A),x.add(A)}),y=Object.fromEntries(await Promise.all(Array.from(x).map(async A=>{const O=(await Promise.all(this.config.preflights.filter(P=>(P.layer||J)===A).map(async P=>await P.getCSS(g)))).filter(Boolean).join(h);return[A,O]})))})();const M=this.config.sortLayers(Array.from(w).sort((g,x)=>(this.config.layers[g]??0)-(this.config.layers[x]??0)||g.localeCompare(x))),m={},p=(g=G)=>{if(m[g])return m[g];let x=Array.from(_).sort((C,O)=>(this.parentOrders.get(C[0])??0)-(this.parentOrders.get(O[0])??0)||C[0]?.localeCompare(O[0]||"")||0).map(([C,O])=>{const P=O.length,F=O.filter(b=>(b[4]?.layer||G)===g).sort((b,$)=>b[0]-$[0]||(b[4]?.sort||0)-($[4]?.sort||0)||b[5]?.currentSelector?.localeCompare($[5]?.currentSelector??"")||b[1]?.localeCompare($[1]||"")||b[2]?.localeCompare($[2]||"")||0).map(([,b,$,,k,,L])=>[[[(b&&ct(b,n))??"",k?.sort??0]],$,!!(L??k?.noMerge)]);if(!F.length)return;const T=F.reverse().map(([b,$,k],L)=>{if(!k&&this.config.mergeSelectors)for(let N=L+1;N<P;N++){const z=F[N];if(z&&!z[2]&&(b&&z[0]||b==null&&z[0]==null)&&z[1]===$)return b&&z[0]&&z[0].push(...b),null}const I=b?W(b.sort((N,z)=>N[1]-z[1]||N[0]?.localeCompare(z[0]||"")||0).map(N=>N[0]).filter(Boolean)):[];return I.length?`${I.join(`,${h}`)}{${$}}`:$}).filter(Boolean).reverse().join(h);if(!C)return T;const S=C.split(" $$ ");return`${S.join("{")}{${h}${T}${h}${"}".repeat(S.length)}`}).filter(Boolean).join(h);if(i&&(x=[y[g],x].filter(Boolean).join(h)),u&&x){let C=typeof u=="object"?u.cssLayerName?.(g):void 0;C!==null&&(C||(C=g),x=`@layer ${C}{${h}${x}${h}}`)}const A=a?"":`/* layer: ${g} */${h}`;return m[g]=x?A+x:""},f=(g=M,x)=>g.filter(A=>!x?.includes(A)).map(A=>p(A)||"").filter(Boolean).join(h);return{get css(){return f()},layers:M,matched:v,getLayers:f,getLayer:p}}async matchVariants(e,r){const s=new Set,n=[];let i=r||e,o=!0;const a={rawSelector:e,theme:this.config.theme,generator:this};for(;o;){o=!1;for(const l of this.config.variants){if(!l.multiPass&&s.has(l))continue;let u=await l.match(i,a);if(u){if(E(u)){if(u===i)continue;u={matcher:u}}i=u.matcher??i,n.unshift(u),s.add(l),o=!0;break}}if(!o)break;if(n.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,n,s]}applyVariants(e,r=e[4],s=e[1]){const i=r.slice().sort((u,c)=>(u.order||0)-(c.order||0)).reduceRight((u,c)=>h=>{const w=c.body?.(h.entries)||h.entries,v=Array.isArray(c.parent)?c.parent:[c.parent,void 0];return(c.handle??ft)({...h,entries:w,selector:c.selector?.(h.selector,w)||h.selector,parent:v[0]||h.parent,parentOrder:v[1]||h.parentOrder,layer:c.layer||h.layer,sort:c.sort||h.sort},u)},u=>u)({prefix:"",selector:lt(s),pseudo:"",entries:e[2]}),{parent:o,parentOrder:a}=i;o!=null&&a!=null&&this.parentOrders.set(o,a);const l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:o,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const u of this.config.postprocess)u(l);return l}constructCustomCSS(e,r,s){const n=V(r);if(E(n))return n;const{selector:i,entries:o,parent:a}=this.applyVariants([0,s||e.rawSelector,n,void 0,e.variantHandlers]),l=`${i}{${K(o)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,s=!1,n){const[i,o,a]=E(e)?await this.matchVariants(e):e;this.config.details&&(r.rules=r.rules??[]);const l=this.config.rulesStaticMap[o];if(l&&l[1]&&(s||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);const c=l[0],h=V(l[1]),w=l[2];return E(h)?[[c,h,w]]:[[c,i,h,w,a]]}r.variantHandlers=a;const{rulesDynamic:u}=this.config;for(const[c,h,w,v]of u){if(v?.internal&&!s)continue;let _=o;if(v?.prefix){const m=j(v.prefix);if(n){const p=j(n);if(!m.some(f=>p.includes(f)))continue}else{const p=m.find(f=>o.startsWith(f));if(p==null)continue;_=o.slice(p.length)}}const y=_.match(h);if(!y)continue;let d=await w(y,r);if(!d)continue;if(this.config.details&&r.rules.push([h,w,v]),typeof d!="string")if(Symbol.asyncIterator in d){const m=[];for await(const p of d)p&&m.push(p);d=m}else Symbol.iterator in d&&!Array.isArray(d)&&(d=Array.from(d).filter(te));const M=Ee(d).filter(m=>m.length);if(M.length)return M.map(m=>{if(E(m))return[c,m,v];let p=a;for(const f of m)f[0]===R.variants?p=[...j(f[1]),...p]:f[0]===R.parent?p=[{parent:f[1]},...p]:f[0]===R.selector&&(p=[{selector:f[1]},...p]);return[c,i,m,v,p]})}}stringifyUtil(e,r){if(!e)return;if(ee(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];const{selector:s,entries:n,parent:i,layer:o,sort:a,noMerge:l}=this.applyVariants(e),u=K(n);if(!u)return;const{layer:c,sort:h,...w}=e[3]??{},v={...w,layer:o??c,sort:a??h};return[e[0],s,u,i,v,this.config.details?r:void 0,l]}async expandShortcut(e,r,s=5){if(s===0)return;const n=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:ze;let i,o;for(const a of this.config.shortcuts){let l=e;if(a[2]?.prefix){const c=j(a[2].prefix).find(h=>e.startsWith(h));if(c==null)continue;l=e.slice(c.length)}if(Le(a)){if(a[0]===l){i=i||a[2],o=a[1],n(a);break}}else{const u=l.match(a[0]);if(u&&(o=a[1](u,r)),o){i=i||a[2],n(a);break}}}if(E(o)&&(o=Ge(o.trim()).split(/\s+/g)),!o){const[a,l]=E(e)?await this.matchVariants(e):e;if(a!==l){const u=await this.expandShortcut(l,r,s-1);u&&(o=u[0].map(c=>E(c)?a.replace(l,c):c))}}if(o)return[(await Promise.all(o.map(async a=>(E(a)?(await this.expandShortcut(a,r,s-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,r,s,n={layer:this.config.shortcutsLayer}){const i=new De,o=(await Promise.all(W(s).map(async c=>{const h=E(c)?await this.parseUtil(c,r,!0,n.prefix):[[Number.POSITIVE_INFINITY,"{inline}",V(c),void 0,[]]];return!h&&this.config.warn&&ge(`unmatched utility "${c}" in shortcut "${e[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((c,h)=>c[0]-h[0]),[a,,l]=e,u=[];for(const c of o){if(ee(c)){u.push([c[0],void 0,c[1],void 0,c[2],r,void 0]);continue}const{selector:h,entries:w,parent:v,sort:_,noMerge:y,layer:d}=this.applyVariants(c,[...c[4],...l],a);i.getFallback(d??n.layer,new Ne).getFallback(h,v,[[],c[0]])[0].push([w,!!(y??c[3]?.noMerge),_??0])}return u.concat(i.flatMap((c,h)=>c.map(([w,v],_,y)=>{const d=(m,p,f)=>{const g=Math.max(...f.map(A=>A[1])),x=f.map(A=>A[0]);return(m?[x.flat(1)]:x).map(A=>{const C=K(A);if(C)return[v,_,C,y,{...n,noMerge:p,sort:g,layer:h},r,void 0]})};return[[w.filter(([,m])=>m).map(([m,,p])=>[m,p]),!0],[w.filter(([,m])=>!m).map(([m,,p])=>[m,p]),!1]].map(([m,p])=>[...d(!1,p,m.filter(([f])=>f.some(g=>g[0]===R.shortcutsNoMerge))),...d(!0,p,m.filter(([f])=>f.every(g=>g[0]!==R.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):E(r)?r===e:r.test(e))}getBlocked(e){const r=this.config.blocklist.find(s=>{const n=Array.isArray(s)?s[0]:s;return typeof n=="function"?n(e):E(n)?n===e:n.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}}function ot(t,e){return new it(t,e)}const ve=/\s\$\$\s+/g;function at(t){return ve.test(t)}function ct(t,e){return at(t)?t.replace(ve,e?` ${e} `:" "):e?`${e} ${t}`:t}const ie=/^\[(.+?)(~?=)"(.*)"\]$/;function lt(t){return ie.test(t)?t.replace(ie,(e,r,s,n)=>`[${q(r)}${s}"${q(n)}"]`):`.${q(t)}`}function ft(t,e){return e(t)}var oe={};const ut=Object.freeze({left:0,top:0,width:16,height:16}),Y=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),be=Object.freeze({...ut,...Y}),ht=Object.freeze({...be,body:"",hidden:!1}),dt=Object.freeze({width:null,height:null}),Se=Object.freeze({...dt,...Y});function pt(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(r.rotate=s),r}function ae(t,e){const r=pt(t,e);for(const s in ht)s in Y?s in t&&!(s in r)&&(r[s]=Y[s]):s in e?r[s]=e[s]:s in t&&(r[s]=t[s]);return r}function mt(t,e){const r=t.icons,s=t.aliases||Object.create(null),n=Object.create(null);function i(o){if(r[o])return n[o]=[];if(!(o in n)){n[o]=null;const a=s[o]&&s[o].parent,l=a&&i(a);l&&(n[o]=[a].concat(l))}return n[o]}return(e||Object.keys(r).concat(Object.keys(s))).forEach(i),n}function ce(t,e,r){const s=t.icons,n=t.aliases||Object.create(null);let i={};function o(a){i=ae(s[a]||n[a],i)}return o(e),r.forEach(o),ae(t,i)}function gt(t,e){if(t.icons[e])return ce(t,e,[]);const r=mt(t,[e])[e];return r?ce(t,e,r):null}const yt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,wt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function le(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 s=t.split(yt);if(s===null||!s.length)return t;const n=[];let i=s.shift(),o=wt.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?n.push(i):n.push(Math.ceil(a*e*r)/r)}else n.push(i);if(i=s.shift(),i===void 0)return n.join("");o=!o}}function vt(t,e="defs"){let r="";const s=t.indexOf("<"+e);for(;s>=0;){const n=t.indexOf(">",s),i=t.indexOf("</"+e);if(n===-1||i===-1)break;const o=t.indexOf(">",i);if(o===-1)break;r+=t.slice(n+1,i).trim(),t=t.slice(0,s).trim()+t.slice(o+1)}return{defs:r,content:t}}function bt(t,e){return t?"<defs>"+t+"</defs>"+e:e}function St(t,e,r){const s=vt(t);return bt(s.defs,e+s.content+r)}const Q=t=>t==="unset"||t==="undefined"||t==="none";function xt(t,e){const r={...be,...t},s={...Se,...e},n={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,s].forEach(y=>{const d=[],M=y.hFlip,m=y.vFlip;let p=y.rotate;M?m?p+=2:(d.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),d.push("scale(-1 1)"),n.top=n.left=0):m&&(d.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),d.push("scale(1 -1)"),n.top=n.left=0);let f;switch(p<0&&(p-=Math.floor(p/4)*4),p=p%4,p){case 1:f=n.height/2+n.top,d.unshift("rotate(90 "+f.toString()+" "+f.toString()+")");break;case 2:d.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:f=n.width/2+n.left,d.unshift("rotate(-90 "+f.toString()+" "+f.toString()+")");break}p%2===1&&(n.left!==n.top&&(f=n.left,n.left=n.top,n.top=f),n.width!==n.height&&(f=n.width,n.width=n.height,n.height=f)),d.length&&(i=St(i,'<g transform="'+d.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,l=n.width,u=n.height;let c,h;o===null?(h=a===null?"1em":a==="auto"?u:a,c=le(h,l/u)):(c=o==="auto"?l:o,h=a===null?le(c,u/l):a==="auto"?u:a);const w={},v=(y,d)=>{Q(d)||(w[y]=d.toString())};v("width",c),v("height",h);const _=[n.left,n.top,l,u];return w.viewBox=_.join(" "),{attributes:w,viewBox:_,body:i}}function $t(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _t(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" ')),$t(e)}function At(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,'="').replace(/(\s)+\/>/g,"/>").trim()}const Ct=/\swidth\s*=\s*["']([\w.]+)["']/,Mt=/\sheight\s*=\s*["']([\w.]+)["']/,Z=/<svg\s+/;function Ot(t,e,r){const s=t.slice(0,t.indexOf(">")),n=(i,o)=>{const a=o.exec(s),l=a!=null,u=e[i];return!u&&!Q(u)&&(typeof r=="number"?r>0&&(e[i]=`${r}em`):a&&(e[i]=a[1])),l};return[n("width",Ct),n("height",Mt)]}async function xe(t,e,r,s,n,i){const{scale:o,addXmlNs:a=!1}=s??{},{additionalProps:l={},iconCustomizer:u}=s?.customizations??{},c=await n?.()??{};await u?.(e,r,c),Object.keys(l).forEach(y=>{const d=l[y];d!=null&&(c[y]=d)}),i?.(c);const[h,w]=Ot(t,c,o);a&&(!t.includes("xmlns=")&&!c.xmlns&&(c.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!c["xmlns:xlink"]&&(c["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const v=Object.keys(c).map(y=>y==="width"&&h||y==="height"&&w?null:`${y}="${c[y]}"`).filter(y=>y!=null);if(v.length&&(t=t.replace(Z,`<svg ${v.join(" ")} `)),s){const{defaultStyle:y,defaultClass:d}=s;d&&!t.includes("class=")&&(t=t.replace(Z,`<svg class="${d}" `)),y&&!t.includes("style=")&&(t=t.replace(Z,`<svg style="${y}" `))}const _=s?.usedProps;return _&&(Object.keys(l).forEach(y=>{const d=c[y];d!=null&&(_[y]=d)}),typeof c.width<"u"&&c.width!==null&&(_.width=c.width),typeof c.height<"u"&&c.height!==null&&(_.height=c.height)),t}async function fe(t,e,r,s){let n;try{if(typeof t=="function")n=await t(r);else{const i=t[r];n=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${r}" in "${e}":`,i);return}if(n){const i=n.indexOf("<svg");i>0&&(n=n.slice(i));const{transform:o}=s?.customizations??{};return n=typeof o=="function"?await o(n,e,r):n,n.startsWith("<svg")?await xe(s?.customizations?.trimCustomSvg===!0?At(n):n,e,r,s,void 0):(console.warn(`Custom icon "${r}" in "${e}" is not a valid SVG`),n)}}async function $e(t,e,r,s){let n;const{customize:i}=s?.customizations??{};for(const o of r)if(n=gt(t,o),n){let a={...Se};typeof i=="function"&&(a=i(a));const{attributes:{width:l,height:u,...c},body:h}=xt(n,a),w=s?.scale;return await xe(`<svg >${h}</svg>`,e,o,s,()=>({...c}),v=>{const _=(y,d)=>{const M=v[y];let m;if(!Q(M)){if(M)return;typeof w=="number"?w&&(m=`${w}em`):m=d}m?v[y]=m:delete v[y]};_("width",l),_("height",u)})}}const _e=async(t,e,r)=>{const s=r?.customCollections?.[t];if(s)if(typeof s=="function"){let n;try{n=await s(e)}catch(i){console.warn(`Failed to load custom icon "${e}" in "${t}":`,i);return}if(n){if(typeof n=="string")return await fe(()=>n,t,e,r);if("icons"in n){const i=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await $e(n,t,i,r)}}}else return await fe(s,t,e,r)};function Et(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var kt=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","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","flowbite","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","mage","majesticons","maki","map","marketeq","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];const jt=Et(kt),Lt=3;function Pt(t){return(e={})=>{const{scale:r=1,mode:s="auto",prefix:n="i-",warn:i=!1,collections:o,extraProperties:a={},customizations:l={},autoInstall:u=!1,collectionsNodeResolvePath:c,layer:h="icons",unit:w,processor:v}=e,_=zt(),y={addXmlNs:!0,scale:r,customCollections:o,autoInstall:u,cwd:c,warn:void 0,customizations:{...l,additionalProps:{...a},trimCustomSvg:!0,async iconCustomizer(M,m,p){await l.iconCustomizer?.(M,m,p),w&&(p.width||(p.width=`${r}${w}`),p.height||(p.height=`${r}${w}`))}}};let d;return{name:"@unocss/preset-icons",enforce:"pre",options:e,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async M=>{let[m,p,f=s]=M,g="",x="",A;d=d||await t(e);const C={};if(p.includes(":"))[g,x]=p.split(":"),A=await d(g,x,{...y,usedProps:C});else{const F=p.split(/-/g);for(let T=Lt;T>=1&&(g=F.slice(0,T).join("-"),x=F.slice(T).join("-"),A=await d(g,x,{...y,usedProps:C}),!A);T--);}if(!A){i&&!_.isESLint&&ge(`failed to load icon "${m}"`);return}let O;const P=`url("data:image/svg+xml;utf8,${_t(A)}")`;return f==="auto"&&(f=A.includes("currentColor")?"mask":"bg"),f==="mask"?O={"--un-icon":P,"-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",...C}:O={background:`${P} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...C},v?.(O,{collection:g,icon:x,svg:A,mode:f}),O},{layer:h,prefix:n}]]}}}function Ae(t,e){const r=new Map;function s(n){if(jt.includes(n))return r.has(n)||r.set(n,t(`${e}@iconify-json/${n}/icons.json`)),r.get(n)}return async(n,i,o)=>{let a=await _e(n,i,o);if(a)return a;const l=await s(n);if(l){const u=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await $e(l,n,u,o)}return a}}function zt(){const t=typeof process<"u"&&process.stdout&&!process.versions.deno,e=t&&!!oe.VSCODE_CWD,r=t&&!!oe.ESLINT;return{isNode:t,isVSCode:e,isESLint:r}}function Ft(t){return Ae(Ce,t)}const Tt=Pt(async t=>{const e=t?.customFetch,r=t?.cdn;return e&&r?Ae(e,r):r?Ft(r):_e});function It(t){return t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():"")}function ue(t){return t.charAt(0).toUpperCase()+t.slice(1)}function he(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var de=["Webkit","Moz","ms"];function Nt(t){const e={};function r(s){const n=e[s];if(n)return n;let i=It(s);if(i!=="filter"&&i in t)return e[s]=he(i);i=ue(i);for(let o=0;o<de.length;o++){const a=`${de[o]}${i}`;if(a in t)return e[s]=he(ue(a))}return s}return({entries:s})=>s.forEach(n=>{n[0].startsWith("--")||(n[0]=r(n[0]))})}function Dt(t){return t.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}function Rt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,r=window.document,s=()=>r.documentElement,n=e.__unocss||{},i=Object.assign({},t,n.runtime),o=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=j(o.postprocess)).unshift(Nt(r.createElement("div").style)),i.configResolved?.(n,o);const l=ot(n,o),u=S=>i.inject?i.inject(S):s().prepend(S),c=()=>i.rootElement?i.rootElement():r.body,h=new Map;let w=!0,v=new Set,_,y,d=[];const M=()=>new Promise(S=>{d.push(S),y!=null&&clearTimeout(y),y=setTimeout(()=>f().then(()=>{const b=d;d=[],b.forEach($=>$())}),0)});function m(S){if(S.nodeType!==1)return;const b=S;b.hasAttribute(a)&&b.removeAttribute(a),b.querySelectorAll(`[${a}]`).forEach($=>{$.removeAttribute(a)})}function p(S,b){let $=h.get(S);if(!$)if($=r.createElement("style"),$.setAttribute("data-unocss-runtime-layer",S),h.set(S,$),b==null)u($);else{const k=p(b),L=k.parentNode;L?L.insertBefore($,k.nextSibling):u($)}return $}async function f(){const S=await l.generate(v);return S.layers.reduce((b,$)=>(p($,b).innerHTML=S.getLayer($)??"",$),void 0),v=S.matched,{...S,getStyleElement:b=>h.get(b),getStyleElements:()=>h}}async function g(S){const b=v.size;await l.applyExtractors(S,void 0,v),b!==v.size&&await M()}async function x(S=c()){const b=S&&S.outerHTML;b&&(await g(`${b} ${Dt(b)}`),m(s()),m(S))}const A=new MutationObserver(S=>{w||S.forEach(async b=>{if(b.target.nodeType!==1)return;const $=b.target;for(const k of h)if($===k[1])return;if(b.type==="childList")b.addedNodes.forEach(async k=>{if(k.nodeType!==1)return;const L=k;_&&!_(L)||(await g(L.outerHTML),m(L))});else{if(_&&!_($))return;if(b.attributeName!==a){const k=Array.from($.attributes).map(I=>I.value?`${I.name}="${I.value}"`:I.name).join(" "),L=`<${$.tagName.toLowerCase()} ${k}>`;await g(L)}$.hasAttribute(a)&&$.removeAttribute(a)}})});let C=!1;function O(){if(C)return;const S=i.observer?.target?i.observer.target():c();S&&(A.observe(S,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),C=!0)}function P(){i.bypassDefined&&Vt(l.blocked),x(),O()}function F(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",P):P()}const T=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract(S){E(S)||(S.forEach(b=>v.add(b)),S=""),await g(S)},extractAll:x,inspect(S){_=S},toggleObserver(S){S===void 0?w=!w:w=!!S,!C&&!w&&F()},update:f,presets:e.__unocss_runtime?.presets??{}};i.ready?.(T)!==!1&&(w=!1,F())}function Vt(t=new Set){for(let e=0;e<document.styleSheets.length;e++){const r=document.styleSheets[e];let s;try{if(s=r.cssRules||r.rules,!s)continue;Array.from(s).flatMap(n=>n.selectorText?.split(/,/g)||[]).forEach(n=>{n&&(n=n.trim(),n.startsWith(".")&&(n=n.slice(1)),t.add(n))})}catch{continue}}return t}Rt({defaults:{presets:[Tt({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});