@nuxt/devtools 1.3.2 → 1.3.4

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 (116) hide show
  1. package/dist/chunks/module-main.mjs +12 -7
  2. package/dist/chunks/vite-inspect.mjs +1 -1
  3. package/dist/chunks/vscode.mjs +1 -1
  4. package/dist/client/200.html +25 -26
  5. package/dist/client/404.html +25 -26
  6. package/dist/client/_nuxt/{DTf74veE.js → 6wcy4DsH.js} +1 -1
  7. package/dist/client/_nuxt/{DDnrbwm6.js → 8B46VhQd.js} +10 -10
  8. package/dist/client/_nuxt/{D7gBCge-.js → 8SMg7xCe.js} +1 -1
  9. package/dist/client/_nuxt/{nd9mx79B.js → 98R48OH2.js} +1 -1
  10. package/dist/client/_nuxt/{CfjSiY3T.js → B-sCWvv9.js} +1 -1
  11. package/dist/client/_nuxt/B29KOOGn.js +9 -0
  12. package/dist/client/_nuxt/{CJU5ujxD.js → B894X8py.js} +1 -1
  13. package/dist/client/_nuxt/{hXtXgLSE.js → B8ZbBSrc.js} +1 -1
  14. package/dist/client/_nuxt/{DQm4bOV6.js → BFLTkFCL.js} +1 -1
  15. package/dist/client/_nuxt/{BL_hfvyy.js → BFm6EJTU.js} +1 -1
  16. package/dist/client/_nuxt/{BO-iudyo.js → BKePb5M9.js} +1 -1
  17. package/dist/client/_nuxt/BKjxjBjR.js +1 -0
  18. package/dist/client/_nuxt/{BVJlJdda.js → BYuD4knm.js} +1 -1
  19. package/dist/client/_nuxt/{D847XyuR.js → BZs3jgFa.js} +1 -1
  20. package/dist/client/_nuxt/{BVCgwITN.js → Ba3iaRF0.js} +2 -2
  21. package/dist/client/_nuxt/{C8GUE1SK.js → BcsunUHc.js} +1 -1
  22. package/dist/client/_nuxt/{B-HJZUhU.js → BdeOTENY.js} +1 -1
  23. package/dist/client/_nuxt/{BfqSh0jD.js → Bj_XrxMu.js} +1 -1
  24. package/dist/client/_nuxt/{BeLKwQPd.js → BmiNF6l-.js} +1 -1
  25. package/dist/client/_nuxt/{DZg4WwSa.js → BoP7AKy2.js} +1 -1
  26. package/dist/client/_nuxt/{BGq4KZyx.js → Br6ll-O0.js} +1 -1
  27. package/dist/client/_nuxt/{CYVTKYED.js → BulALiVC.js} +1 -1
  28. package/dist/client/_nuxt/{V_y36BGi.js → Bxkoe-BC.js} +1 -1
  29. package/dist/client/_nuxt/{D44vw0ad.js → C54vwF0J.js} +1 -1
  30. package/dist/client/_nuxt/C8ESOK3J.js +30 -0
  31. package/dist/client/_nuxt/{DxtaXLVv.js → CBZOn9Tq.js} +1 -1
  32. package/dist/client/_nuxt/{Cri_jq9f.js → CDfEhAL9.js} +1 -1
  33. package/dist/client/_nuxt/{Dm8mUwGL.js → CGj_8s-I.js} +1 -1
  34. package/dist/client/_nuxt/{4DrMDvOf.js → CHQ52sTw.js} +1 -1
  35. package/dist/client/_nuxt/{BX8u6kVi.js → CIgTPfXa.js} +1 -1
  36. package/dist/client/_nuxt/{C41DfgCv.js → CO6YgqHh.js} +1 -1
  37. package/dist/client/_nuxt/{Bwpf36Bl.js → CUJNw4nr.js} +1 -1
  38. package/dist/client/_nuxt/{Dyh3t1OB.js → CUytAwsx.js} +1 -1
  39. package/dist/client/_nuxt/{D26FlHPL.js → CYSOmuwz.js} +1 -1
  40. package/dist/client/_nuxt/{BxZrC5KW.js → Cao9Hf6d.js} +1 -1
  41. package/dist/client/_nuxt/CeyWeT92.js +1032 -0
  42. package/dist/client/_nuxt/{s0KB5W3i.js → Cn5ttfU_.js} +1 -1
  43. package/dist/client/_nuxt/{BhuDhIKJ.js → CpJRPiL9.js} +1 -1
  44. package/dist/client/_nuxt/CrghN-Ad.js +2 -0
  45. package/dist/client/_nuxt/{l2Y-wpZG.js → CyeATGho.js} +2 -2
  46. package/dist/client/_nuxt/{CAWcj-Fr.js → D-4ohUPA.js} +1 -1
  47. package/dist/client/_nuxt/{BZAoIDF4.js → D3VgjIse.js} +2 -7
  48. package/dist/client/_nuxt/{8icePJ4I.js → D5WHU7S-.js} +1 -1
  49. package/dist/client/_nuxt/{DTjbdWHx.js → D6rOzE__.js} +1 -1
  50. package/dist/client/_nuxt/{B-hub2K2.js → D7I2o642.js} +1 -1
  51. package/dist/client/_nuxt/D9GqCGb7.js +100 -0
  52. package/dist/client/_nuxt/{_hj05-RZ.js → DBLkZRmC.js} +1 -1
  53. package/dist/client/_nuxt/{CQ4DIexe.js → DI2S-mmO.js} +1 -1
  54. package/dist/client/_nuxt/{D1Dg62su.js → DL0CET1h.js} +1 -1
  55. package/dist/client/_nuxt/DNH9VLI7.js +43 -0
  56. package/dist/client/_nuxt/{DGIjOFdj.js → DNTHL55G.js} +1 -1
  57. package/dist/client/_nuxt/{D_ZAQadg.js → DT3-Im-G.js} +1 -1
  58. package/dist/client/_nuxt/{CJ4574JA.js → DT7g2OtK.js} +1 -1
  59. package/dist/client/_nuxt/DZHRk8T6.js +1 -0
  60. package/dist/client/_nuxt/{D9bWLJbD.js → Da5JKEgm.js} +1 -1
  61. package/dist/client/_nuxt/DhzPY0Bk.js +1 -0
  62. package/dist/client/_nuxt/DotVwsdv.js +9 -0
  63. package/dist/client/_nuxt/{C_mHwna3.js → JMRChio8.js} +1 -1
  64. package/dist/client/_nuxt/{BZrBobni.js → LSJkDbxe.js} +1 -1
  65. package/dist/client/_nuxt/{NCodeBlock.Bcfh0aRP.css → NCodeBlock.BJ-XAY5s.css} +1 -1
  66. package/dist/client/_nuxt/NSectionBlock.Dnwb6MN5.css +1 -0
  67. package/dist/client/_nuxt/{CnDX42ER.js → QZOV8EJp.js} +1 -1
  68. package/dist/client/_nuxt/aYYjZ8bg.js +1 -0
  69. package/dist/client/_nuxt/builds/latest.json +1 -1
  70. package/dist/client/_nuxt/builds/meta/705c4cfa-d5c7-43a4-9f41-3c069a80d514.json +1 -0
  71. package/dist/client/_nuxt/entry.CuU2sB_i.css +1 -0
  72. package/dist/client/_nuxt/error-404.CdZ-8tbX.css +1 -0
  73. package/dist/client/_nuxt/error-500.4KK_ddFR.css +1 -0
  74. package/dist/client/_nuxt/{CQ0ZKsih.js → mjGmx9GM.js} +2 -2
  75. package/dist/client/_nuxt/{73fsk-_M.js → oNeXSGv8.js} +1 -1
  76. package/dist/client/_nuxt/{C49LnR7I.js → p_veFBpZ.js} +1 -1
  77. package/dist/client/_nuxt/terminals.dNTO8Cf0.css +1 -0
  78. package/dist/client/_nuxt/{WIBjn-aJ.js → u_lBCHfa.js} +1 -1
  79. package/dist/client/_nuxt/{CBxMqsuL.js → z73YSsxO.js} +1 -1
  80. package/dist/client/index.html +25 -26
  81. package/dist/module.json +2 -2
  82. package/dist/runtime/function-metrics-helpers.d.ts +1 -1
  83. package/dist/runtime/{function-metrics-helpers.mjs → function-metrics-helpers.js} +1 -1
  84. package/dist/runtime/plugins/{devtools.client.mjs → devtools.client.js} +1 -1
  85. package/dist/runtime/plugins/view/client.d.ts +1 -1
  86. package/dist/runtime/plugins/view/{client.mjs → client.js} +2 -2
  87. package/dist/runtime/plugins/view/state.d.ts +1 -1
  88. package/dist/runtime/plugins/view/{state.mjs → state.js} +1 -1
  89. package/dist/runtime/settings.d.ts +2 -2
  90. package/dist/runtime/shared/hooks.d.ts +1 -1
  91. package/dist/runtime/use-nuxt-devtools.d.ts +1 -1
  92. package/package.json +33 -35
  93. package/dist/client/_nuxt/BVT_pDx1.js +0 -9
  94. package/dist/client/_nuxt/BYLmgL12.js +0 -1
  95. package/dist/client/_nuxt/C71Avik8.js +0 -1
  96. package/dist/client/_nuxt/CI_a6Yq_.js +0 -9
  97. package/dist/client/_nuxt/CQhVfK23.js +0 -99
  98. package/dist/client/_nuxt/CYpIh8Vy.js +0 -1
  99. package/dist/client/_nuxt/C_vNhPYi.js +0 -1031
  100. package/dist/client/_nuxt/D2pUCviE.js +0 -1
  101. package/dist/client/_nuxt/DGmtW0X_.js +0 -30
  102. package/dist/client/_nuxt/DW2rdoo9.js +0 -48
  103. package/dist/client/_nuxt/Ds6yAegc.js +0 -2
  104. package/dist/client/_nuxt/NSectionBlock.DF4F_onM.css +0 -1
  105. package/dist/client/_nuxt/builds/meta/923994c1-a7bd-4c91-b02b-513548587468.json +0 -1
  106. package/dist/client/_nuxt/entry.C09IdXcP.css +0 -1
  107. package/dist/client/_nuxt/error-404.ClUqCsUG.css +0 -1
  108. package/dist/client/_nuxt/error-500.Xj6Xfe4d.css +0 -1
  109. package/dist/client/_nuxt/terminals.bPBXyte9.css +0 -32
  110. /package/dist/runtime/nitro/{inline.mjs → inline.js} +0 -0
  111. /package/dist/runtime/plugins/{devtools.server.mjs → devtools.server.js} +0 -0
  112. /package/dist/runtime/plugins/view/{utils.mjs → utils.js} +0 -0
  113. /package/dist/runtime/{settings.mjs → settings.js} +0 -0
  114. /package/dist/runtime/shared/{hooks.mjs → hooks.js} +0 -0
  115. /package/dist/runtime/{use-nuxt-devtools.mjs → use-nuxt-devtools.js} +0 -0
  116. /package/dist/runtime/vue-devtools/{overlay.mjs → overlay.js} +0 -0
@@ -1 +1 @@
1
- import{_ as S}from"./DTf74veE.js";import{d as N,r as $,a as g,o as d,m,k as t,v as c,G as p,f as n,F as y,n as T,t as _,a9 as F,aJ as B,i as h,aK as V,al as D,h as H,j as w,p as C}from"./DW2rdoo9.js";import{_ as P}from"./B-hub2K2.js";import{_ as j}from"./BX8u6kVi.js";import"./BVJlJdda.js";const E={"w-full":""},O={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},z={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},Y={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},G={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},J={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},K={"text-sm":""},R={"ws-nowrap":""},U={"text-sm":""},q={"w-0":"","text-center":"","text-sm":""},M={"w-0":"","text-center":"","text-sm":""},Q={"w-0":"","text-right":"","text-sm":""},W=N({__name:"HooksTable",props:{hooks:{}},setup(k){const l=k,a=$("duration"),s=$("asc"),x={duration:(e,o)=>(o.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,o)=>e.name.localeCompare(o.name),listener:(e,o)=>o.listeners-e.listeners,start:(e,o)=>o.start-e.start,executions:(e,o)=>o.executions.length-e.executions.length},v=g(()=>l.hooks.map(e=>e.start).sort((e,o)=>e-o)),b=g(()=>{const e=x[a.value],o=[...l.hooks].sort(e);return s.value==="desc"&&o.reverse(),o});function u(e){const o=e.split(":");return o.length===1?"":`${o[0]}:`}function f(e){const o=e.split(":");return o.length===1?e:o.slice(1).join(":")}function i(e){a.value===e?s.value=s.value==="asc"?"desc":"asc":a.value=e}return(e,o)=>{const I=S;return d(),m("table",E,[t("thead",O,[t("tr",null,[t("th",L,[t("button",{onClick:o[0]||(o[0]=r=>i("start"))},[c(" Order "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="start"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",z,[t("button",{onClick:o[1]||(o[1]=r=>i("name"))},[c(" Hook name "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="name"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",A,[t("button",{onClick:o[2]||(o[2]=r=>i("listener"))},[c(" Listeners "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="listener"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",Y,[t("button",{onClick:o[3]||(o[3]=r=>i("executions"))},[c(" Executions "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="executions"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",G,[t("button",{onClick:o[4]||(o[4]=r=>i("duration"))},[c(" Duration "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="duration"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),t("tbody",null,[(d(!0),m(y,null,T(n(b),r=>(d(),m("tr",{key:r.name,border:"b dashed transparent hover:base"},[t("td",J,_(n(v).indexOf(r.start)),1),t("td",{"w-0":"","ws-nowrap":"","text-right":"",style:F({color:("getHashColorFromString"in e?e.getHashColorFromString:n(B))(u(r.name))})},[t("code",K,_(u(r.name)),1)],4),t("td",R,[t("code",U,_(f(r.name)),1)]),t("td",q,_(r.listeners),1),t("td",M,_(r.executions.length+1),1),t("td",Q,[h(I,{duration:r.duration},null,8,["duration"])])]))),128))])])}}}),X={class:"markdown-body"},Z=t("h1",null,"Hooks",-1),tt=t("p",null,[c("Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by "),t("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),c(".")],-1),ot=t("p",null,[t("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),c(".")],-1),et=[Z,tt,ot],nt={__name:"hooks",setup(k,{expose:l}){return l({frontmatter:{}}),(s,x)=>(d(),m("div",X,et))}},it=N({__name:"hooks",setup(k){const l=V(),a=D(),s=g(()=>a.value?.metrics.clientHooks());return(x,v)=>{const b=W,u=P,f=nt,i=j;return d(),m(y,null,[t("div",null,[n(s)?.length?(d(),H(u,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n(s).length}`,padding:"pl4 pr6"},{default:w(()=>[h(b,{hooks:n(s)},null,8,["hooks"])]),_:1},8,["description"])):C("",!0),n(l)?.length?(d(),H(u,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${n(l)?.length}`,padding:"pl4 pr6"},{default:w(()=>[h(b,{hooks:n(l)},null,8,["hooks"])]),_:1},8,["description"])):C("",!0)]),h(i,null,{default:w(()=>[h(f)]),_:1})],64)}}});export{it as default};
1
+ import{_ as S}from"./6wcy4DsH.js";import{d as N,r as $,a as g,o as d,m,k as t,v as c,G as p,f as n,F as y,n as T,t as _,a9 as F,aJ as B,i as h,aK as V,al as D,h as H,j as w,p as C}from"./DNH9VLI7.js";import{_ as P}from"./D7I2o642.js";import{_ as j}from"./CIgTPfXa.js";import"./BYuD4knm.js";const E={"w-full":""},O={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},z={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},Y={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},G={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},J={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},K={"text-sm":""},R={"ws-nowrap":""},U={"text-sm":""},q={"w-0":"","text-center":"","text-sm":""},M={"w-0":"","text-center":"","text-sm":""},Q={"w-0":"","text-right":"","text-sm":""},W=N({__name:"HooksTable",props:{hooks:{}},setup(k){const l=k,a=$("duration"),s=$("asc"),x={duration:(e,o)=>(o.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,o)=>e.name.localeCompare(o.name),listener:(e,o)=>o.listeners-e.listeners,start:(e,o)=>o.start-e.start,executions:(e,o)=>o.executions.length-e.executions.length},v=g(()=>l.hooks.map(e=>e.start).sort((e,o)=>e-o)),b=g(()=>{const e=x[a.value],o=[...l.hooks].sort(e);return s.value==="desc"&&o.reverse(),o});function u(e){const o=e.split(":");return o.length===1?"":`${o[0]}:`}function f(e){const o=e.split(":");return o.length===1?e:o.slice(1).join(":")}function i(e){a.value===e?s.value=s.value==="asc"?"desc":"asc":a.value=e}return(e,o)=>{const I=S;return d(),m("table",E,[t("thead",O,[t("tr",null,[t("th",L,[t("button",{onClick:o[0]||(o[0]=r=>i("start"))},[c(" Order "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="start"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",z,[t("button",{onClick:o[1]||(o[1]=r=>i("name"))},[c(" Hook name "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="name"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",A,[t("button",{onClick:o[2]||(o[2]=r=>i("listener"))},[c(" Listeners "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="listener"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",Y,[t("button",{onClick:o[3]||(o[3]=r=>i("executions"))},[c(" Executions "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="executions"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",G,[t("button",{onClick:o[4]||(o[4]=r=>i("duration"))},[c(" Duration "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="duration"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),t("tbody",null,[(d(!0),m(y,null,T(n(b),r=>(d(),m("tr",{key:r.name,border:"b dashed transparent hover:base"},[t("td",J,_(n(v).indexOf(r.start)),1),t("td",{"w-0":"","ws-nowrap":"","text-right":"",style:F({color:("getHashColorFromString"in e?e.getHashColorFromString:n(B))(u(r.name))})},[t("code",K,_(u(r.name)),1)],4),t("td",R,[t("code",U,_(f(r.name)),1)]),t("td",q,_(r.listeners),1),t("td",M,_(r.executions.length+1),1),t("td",Q,[h(I,{duration:r.duration},null,8,["duration"])])]))),128))])])}}}),X={class:"markdown-body"},Z=t("h1",null,"Hooks",-1),tt=t("p",null,[c("Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by "),t("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),c(".")],-1),ot=t("p",null,[t("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),c(".")],-1),et=[Z,tt,ot],nt={__name:"hooks",setup(k,{expose:l}){return l({frontmatter:{}}),(s,x)=>(d(),m("div",X,et))}},it=N({__name:"hooks",setup(k){const l=V(),a=D(),s=g(()=>a.value?.metrics.clientHooks());return(x,v)=>{const b=W,u=P,f=nt,i=j;return d(),m(y,null,[t("div",null,[n(s)?.length?(d(),H(u,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n(s).length}`,padding:"pl4 pr6"},{default:w(()=>[h(b,{hooks:n(s)},null,8,["hooks"])]),_:1},8,["description"])):C("",!0),n(l)?.length?(d(),H(u,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${n(l)?.length}`,padding:"pl4 pr6"},{default:w(()=>[h(b,{hooks:n(l)},null,8,["hooks"])]),_:1},8,["description"])):C("",!0)]),h(i,null,{default:w(()=>[h(f)]),_:1})],64)}}});export{it as default};
@@ -1 +1 @@
1
- import{d as i,a0 as r,o as p,m as b,I as u,c3 as h,f as a,k as n,l as k,ae as m,i as f,aa as v,G as _,a6 as x}from"./DW2rdoo9.js";const V=["checked","disabled"],y=["disabled"],B={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},w=i({__name:"NCheckbox",props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(c,{emit:t}){const e=r(c,"modelValue",t,{passive:!0});return(o,s)=>{const d=x;return p(),b("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:a(e)||null,disabled:o.disabled||null},[u(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>k(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:o.disabled,onKeypress:s[1]||(s[1]=m(l=>e.value=!a(e),["enter"]))},null,40,y),[[h,a(e)]]),n("span",B,[f(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:_([a(e)?"":"op50","n-transition"])},[v(o.$slots,"default")],2)],8,V)}}});export{w as _};
1
+ import{d as i,a0 as r,o as p,m as b,I as u,c3 as h,f as a,k as n,l as k,ae as m,i as f,aa as v,G as _,a6 as x}from"./DNH9VLI7.js";const V=["checked","disabled"],y=["disabled"],B={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},w=i({__name:"NCheckbox",props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(c,{emit:t}){const e=r(c,"modelValue",t,{passive:!0});return(o,s)=>{const d=x;return p(),b("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:a(e)||null,disabled:o.disabled||null},[u(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>k(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:o.disabled,onKeypress:s[1]||(s[1]=m(l=>e.value=!a(e),["enter"]))},null,40,y),[[h,a(e)]]),n("span",B,[f(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:_([a(e)?"":"op50","n-transition"])},[v(o.$slots,"default")],2)],8,V)}}});export{w as _};
@@ -0,0 +1,2 @@
1
+ import{$ as Ce}from"./DNH9VLI7.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
+ `,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});
@@ -1,2 +1,2 @@
1
- import{_ as Ce}from"./BZrBobni.js";import{d as F,a as B,ac as _e,o as u,h as T,j as g,k as s,aa as E,f as c,v as z,t as C,m as w,G as U,p as S,i as _,F as L,n as H,x as ie,a6 as ve,ar as ge,R as ye,aO as Te,L as ce,M as de,V as Oe,aP as be,aQ as xe,_ as X,y as Ne,z as Ve,aA as $e,aR as Ae,aS as Pe,aT as Be,as as Le,a2 as je,I as Re,ax as ue,aw as Ee,aU as De,a9 as He,r as K,ah as Ue,l as Fe,ab as qe,Y as We,Z as Ke,S as Ye,aV as me}from"./DW2rdoo9.js";import{_ as Ge,u as we,a as Xe}from"./C49LnR7I.js";import{_ as Qe}from"./B-hub2K2.js";import{_ as Ze}from"./BVJlJdda.js";import{_ as ke}from"./CfjSiY3T.js";import{_ as Je}from"./CnDX42ER.js";import{_ as et}from"./Dm8mUwGL.js";import{_ as tt}from"./D7gBCge-.js";import{_ as nt}from"./C41DfgCv.js";import{_ as it}from"./DQm4bOV6.js";import{_ as ot}from"./BX8u6kVi.js";import"./BhuDhIKJ.js";import"./_hj05-RZ.js";const st={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},rt={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},lt={key:2},at=s("div",{"flex-auto":""},null,-1),ct={key:1,flex:"~ gap-2",title:"Documentation"},dt=s("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1),ut={key:2,flex:"~ gap-2"},mt=s("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1),ft={key:0,flex:"~ gap-4 items-center"},pt={flex:"~ gap-1 items-center",op50:""},ht={flex:"~ gap-1 items-center",op50:""},_t={flex:"~ col","items-end":""},vt={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},gt=["src","alt"],yt=s("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1),bt={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},xt=["src"],$t=s("div",{"flex-auto":""},null,-1),wt={flex:"","justify-end":""},kt="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",It="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",St="https://github.com/",zt="https://www.npmjs.com/package/",oe=F({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(e){const t=e,n=B(()=>({...t.mod?.meta,...t.mod,...t.info})),o=_e();return(i,r)=>{const l=ie,d=ve,a=ge;return u(),T(a,{p4:"",flex:"~ gap2"},{default:g(()=>[s("div",st,[E(i.$slots,"main",{},()=>[s("div",rt,[i.mod.isPackageModule?(u(),T(l,{key:0,to:zt+(c(n).npm||c(n).name),target:"_blank",hover:"underline text-primary"},{default:g(()=>[z(C(c(n).name),1)]),_:1},8,["to"])):i.mod.entryPath?(u(),w("button",{key:1,role:"button",hover:"underline text-primary",onClick:r[0]||(r[0]=m=>c(o)(i.mod.entryPath))},C(c(n).name),1)):(u(),w("span",lt,C(c(n).name),1)),E(i.$slots,"badge")]),c(n).description?(u(),w("div",{key:0,class:U(i.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},C(c(n).description),3)):S("",!0),at,c(n).website?(u(),w("div",ct,[dt,_(l,{to:c(n).website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:g(()=>[z(C(c(n).website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):S("",!0),c(n).github?(u(),w("div",ut,[mt,_(l,{to:c(n).github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:g(()=>[z(C(c(n).github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):S("",!0)]),E(i.$slots,"items"),c(n).stats?(u(),w("div",ft,[s("div",pt,[_(d,{icon:"carbon-star","text-lg":""}),s("span",null,C(c(n).stats.stars),1)]),s("div",ht,[_(d,{icon:"carbon-download","text-lg":""}),s("span",null,C(c(n).stats.downloads),1)])])):S("",!0)]),s("div",_t,[c(n).icon||i.mod.isPackageModule?(u(),w("div",vt,[c(n).icon?(u(),w("img",{key:0,src:kt+c(n).icon,alt:i.mod.name,ma:""},null,8,gt)):S("",!0),yt])):S("",!0),c(n).maintainers?.length&&i.maintainers?(u(),w("div",bt,[(u(!0),w(L,null,H(c(n).maintainers,m=>(u(),T(l,{key:m.name,target:"_blank",to:St+m.github,title:m.name},{default:g(()=>[s("img",{src:It+m.github,"h-6":"","w-6":"","rounded-full":""},null,8,xt)]),_:2},1032,["to","title"]))),128))])):S("",!0),i.$slots.actions?(u(),w(L,{key:2},[$t,s("div",wt,[E(i.$slots,"actions")])],64)):S("",!0)])]),_:3})}}}),Mt={key:0,flex:"~ gap-2",title:"Open on filesystem"},Ct=s("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1),Tt=s("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),Ot=s("code",{"text-sm":"",op50:""},"Upgrading...",-1),Nt={key:1,"mx--2":""},Vt=["onClick"],At=s("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),Pt=s("code",{"text-xs":""},"Update installed, click to restart",-1),Bt=[At,Pt],Lt={key:2,"mx--2":""},jt=["onClick"],Rt=s("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1),Et={op50:""},Dt=s("div",{"i-carbon-arrow-right":"",op50:""},null,-1),Ht={"text-green":""},Ut={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},Ft=s("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1),qt={"text-sm":"",op50:""},Wt=F({__name:"ModuleItem",props:{mod:{}},setup(e){const t=e,n=B(()=>t.mod.info),o=B(()=>({...t.mod?.meta,...t.mod,...n.value})),i=ye();return(r,l)=>{const d=Ce,a=ie,m=Ge,h=oe;return u(),T(h,{mod:r.mod,info:c(n)},{items:g(()=>[r.mod.entryPath?(u(),w("div",Mt,[Ct,_(d,{filepath:r.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):S("",!0),c(o).npm?(u(),T(m,{key:c(o).npm,"package-name":c(o).npm,options:{dev:!0}},{default:g(({info:v,update:b,state:p,id:I,restart:$})=>[p==="running"?(u(),T(a,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:I?"/modules/terminals":void 0,onClick:x=>I?i.value=I:void 0},{default:g(()=>[Tt,Ot]),_:2},1032,["to","onClick"])):p==="updated"?(u(),w("div",Nt,[s("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:$},Bt,8,Vt)])):v?.needsUpdate?(u(),w("div",Lt,[s("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:x=>b()},[Rt,s("code",Et,"v"+C(v.current),1),Dt,s("code",Ht,"v"+C(v.latest),1)],8,jt)])):v?.latest?(u(),w("div",Ut,[Ft,s("code",qt,"v"+C(v.current),1)])):S("",!0)]),_:1},8,["package-name"])):S("",!0)]),_:1},8,["mod","info"])}}}),Kt=F({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(e,{emit:t}){const n=e,o=t,i=we(),r=B(()=>i.value.find(h=>h.name===n.item.npm)),l=B(()=>r.value&&r.value.isPackageModule),d=B(()=>r.value&&r.value.isPackageModule&&r.value.isUninstallable);async function a(h,v){const b=v==="install"?ce.installNuxtModule:ce.uninstallNuxtModule,p=await b(await de(),h.npm,!0);Oe(`modules:${v}`,{moduleName:h.npm}),p.commands&&await be.start(h,p,v)&&(xe.value.push({name:h.npm,info:h,processId:p.processId}),o("start"),await b(await de(),h.npm,!1))}const m={};return(h,v)=>{const b=et,p=X,I=ke,$=oe;return u(),T($,{mod:m,role:c(l)?"":"button",info:h.item,mb2:"","h-full":"",class:U(c(l)?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:v[1]||(v[1]=x=>c(l)?null:a(h.item,"install"))},Te({_:2},[c(l)?{name:"badge",fn:g(()=>[_(b,{n:"green",textContent:"Installed"}),c(d)?(u(),T(I,{key:0,n:"sm green"},{trigger:g(({click:x})=>[_(p,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:k=>x()},null,8,["onClick"])]),default:g(()=>[_(p,{icon:"carbon-trash-can",n:"red",onClick:v[0]||(v[0]=x=>a(h.item,"uninstall"))},{default:g(()=>[z(" Uninstall ")]),_:1})]),_:1})):S("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}});function Yt(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let Y;function J(){J.init||(J.init=!0,Y=Yt()!==-1)}var Q={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){J(),$e(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Y&&this.$el.appendChild(e),e.data="about:blank",Y||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Y&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Gt=Ae();Ne("data-v-b329ee4c");const Xt={class:"resize-observer",tabindex:"-1"};Ve();const Qt=Gt((e,t,n,o,i,r)=>(u(),T("div",Xt)));Q.render=Qt;Q.__scopeId="data-v-b329ee4c";Q.__file="src/components/ResizeObserver.vue";function G(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?G=function(t){return typeof t}:G=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(e)}function Zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Jt(e,t,n){return t&&fe(e.prototype,t),n&&fe(e,n),e}function pe(e){return en(e)||tn(e)||nn(e)||on()}function en(e){if(Array.isArray(e))return ee(e)}function tn(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nn(e,t){if(e){if(typeof e=="string")return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ee(e,t)}}function ee(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function on(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sn(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function rn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,r,l=function(a){for(var m=arguments.length,h=new Array(m>1?m-1:0),v=1;v<m;v++)h[v-1]=arguments[v];if(r=h,!(o&&a===i)){var b=n.leading;typeof b=="function"&&(b=b(a,i)),(!o||a!==i)&&b&&e.apply(void 0,[a].concat(pe(r))),i=a,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[a].concat(pe(r))),o=0},t)}};return l._clear=function(){clearTimeout(o),o=null},l}function Ie(e,t){if(e===t)return!0;if(G(e)==="object"){for(var n in e)if(!Ie(e[n],t[n]))return!1;return!0}return!1}var ln=function(){function e(t,n,o){Zt(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,o)}return Jt(e,[{key:"createObserver",value:function(n,o){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=sn(n),this.callback=function(d,a){i.options.callback(d,a),d&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var r=this.options.throttleOptions||{},l=r.leading;this.callback=rn(this.callback,this.options.throttle,{leading:function(a){return l==="both"||l==="visible"&&a||l==="hidden"&&!a}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var a=d[0];if(d.length>1){var m=d.find(function(v){return v.isIntersecting});m&&(a=m)}if(i.callback){var h=a.isIntersecting&&a.intersectionRatio>=i.threshold;if(h===i.oldResult)return;i.oldResult=h,i.callback(h,a)}},this.options.intersection),$e(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function Se(e,t,n){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new ln(e,o,n);e._vue_visibilityState=i}}function an(e,t,n){var o=t.value,i=t.oldValue;if(!Ie(o,i)){var r=e._vue_visibilityState;if(!o){ze(e);return}r?r.createObserver(o,n):Se(e,{value:o},n)}}function ze(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var cn={beforeMount:Se,updated:an,unmounted:ze},dn={itemsLimit:1e3},un=/(auto|scroll)/;function Me(e,t){return e.parentNode===null?t:Me(e.parentNode,t.concat([e]))}var Z=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},mn=function(t){return Z(t,"overflow")+Z(t,"overflow-y")+Z(t,"overflow-x")},fn=function(t){return un.test(mn(t))};function he(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Me(e.parentNode,[]),n=0;n<t.length;n+=1)if(fn(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function te(e){"@babel/helpers - typeof";return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te(e)}var pn={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function hn(){return this.items.length&&te(this.items[0])!=="object"}var ne=!1;if(typeof window<"u"){ne=!1;try{var _n=Object.defineProperty({},"passive",{get:function(){ne=!0}});window.addEventListener("test",null,_n)}catch{}}let vn=0;var se={name:"RecycleScroller",components:{ResizeObserver:Q},directives:{ObserveVisibility:cn},props:{...pn,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,o=this.minItemSize;let i=1e4,r=0,l;for(let d=0,a=t.length;d<a;d++)l=t[d][n]||o,l<i&&(i=l),r+=l,e[d]={accumulator:r,size:l};return this.$_computedMinItemSize=i,e}return[]},simpleArray:hn,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let o=0,i=t.length;o<i;o++)n[t[o][e]]=o;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,o,i){const r=Pe({id:vn++,index:t,used:!0,key:o,type:i}),l=Be({item:n,position:0,nr:r});return e.push(l),l},unuseView(e,t=!1){const n=this.$_unusedViews,o=e.nr.type;let i=n.get(o);i||(i=[],n.set(o,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,o=this.gridItems||1,i=this.itemSecondarySize||n,r=this.$_computedMinItemSize,l=this.typeField,d=this.simpleArray?null:this.keyField,a=this.items,m=a.length,h=this.sizes,v=this.$_views,b=this.$_unusedViews,p=this.pool,I=this.itemIndexByKey;let $,x,k,N,V;if(!m)$=x=N=V=k=0;else if(this.$_prerender)$=N=0,x=V=Math.min(this.prerender,a.length),k=null;else{const y=this.getScroll();if(t){let O=y.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),n===null&&O<r||O<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=y.start;const A=this.buffer;y.start-=A,y.end+=A;let M=0;if(this.$refs.before&&(M=this.$refs.before.scrollHeight,y.start-=M),this.$refs.after){const O=this.$refs.after.scrollHeight;y.end+=O}if(n===null){let O,q=0,le=m-1,P=~~(m/2),ae;do ae=P,O=h[P].accumulator,O<y.start?q=P:P<m-1&&h[P+1].accumulator>y.start&&(le=P),P=~~((q+le)/2);while(P!==ae);for(P<0&&(P=0),$=P,k=h[m-1].accumulator,x=P;x<m&&h[x].accumulator<y.end;x++);for(x===-1?x=a.length-1:(x++,x>m&&(x=m)),N=$;N<m&&M+h[N].accumulator<y.start;N++);for(V=N;V<m&&M+h[V].accumulator<y.end;V++);}else{$=~~(y.start/n*o);const O=$%o;$-=O,x=Math.ceil(y.end/n*o),N=Math.max(0,Math.floor((y.start-M)/n*o)),V=Math.floor((y.end-M)/n*o),$<0&&($=0),x>m&&(x=m),N<0&&(N=0),V>m&&(V=m),k=Math.ceil(m/o)*n}}x-$>dn.itemsLimit&&this.itemsLimitError(),this.totalSize=k;let f;const j=$<=this.$_endIndex&&x>=this.$_startIndex;if(j)for(let y=0,A=p.length;y<A;y++)f=p[y],f.nr.used&&(e&&(f.nr.index=I[f.item[d]]),(f.nr.index==null||f.nr.index<$||f.nr.index>=x)&&this.unuseView(f));const re=j?null:new Map;let D,R,W;for(let y=$;y<x;y++){D=a[y];const A=d?D[d]:D;if(A==null)throw new Error(`Key is ${A} on item (keyField is '${d}')`);if(f=v.get(A),!n&&!h[y].size){f&&this.unuseView(f);continue}R=D[l];let M=b.get(R),O=!1;if(!f)j?M&&M.length?f=M.pop():f=this.addView(p,y,D,A,R):(W=re.get(R)||0,(!M||W>=M.length)&&(f=this.addView(p,y,D,A,R),this.unuseView(f,!0),M=b.get(R)),f=M[W],re.set(R,W+1)),v.delete(f.nr.key),f.nr.used=!0,f.nr.index=y,f.nr.key=A,f.nr.type=R,v.set(A,f),O=!0;else if(!f.nr.used&&(f.nr.used=!0,O=!0,M)){const q=M.indexOf(f);q!==-1&&M.splice(q,1)}f.item=D,O&&(y===a.length-1&&this.$emit("scroll-end"),y===0&&this.$emit("scroll-start")),n===null?(f.position=h[y-1].accumulator,f.offset=0):(f.position=Math.floor(y/o)*n,f.offset=y%o*i)}return this.$_startIndex=$,this.$_endIndex=x,this.emitUpdate&&this.$emit("update",$,x,N,V),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:j}},getListenerTarget(){let e=he(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let o;if(this.pageMode){const i=e.getBoundingClientRect(),r=n?i.height:i.width;let l=-(n?i.top:i.left),d=n?window.innerHeight:window.innerWidth;l<0&&(d+=l,l=0),l+d>r&&(d=r-l),o={start:l,end:l+d}}else n?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ne?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,o,i;if(this.pageMode){const r=he(this.$el),l=r.tagName==="HTML"?0:r[t.scroll],d=r.getBoundingClientRect(),m=this.$el.getBoundingClientRect()[t.start]-d[t.start];n=r,o=t.scroll,i=e+l+m}else n=this.$el,o=t.scroll,i=e;n[o]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const gn={key:0,ref:"before",class:"vue-recycle-scroller__slot"},yn={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function bn(e,t,n,o,i,r){const l=Le("ResizeObserver"),d=je("observe-visibility");return Re((u(),w("div",{class:U(["vue-recycle-scroller",{ready:i.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...a)=>r.handleScroll&&r.handleScroll(...a))},[e.$slots.before?(u(),w("div",gn,[E(e.$slots,"before")],512)):S("v-if",!0),(u(),T(ue(n.listTag),{ref:"wrapper",style:He({[e.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:U(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:g(()=>[(u(!0),w(L,null,H(i.pool,a=>(u(),T(ue(n.itemTag),Ee({key:a.nr.id,style:i.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${a.position}px) translate${e.direction==="vertical"?"X":"Y"}(${a.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&i.hoverKey===a.nr.key}]]},De(n.skipHover?{}:{mouseenter:()=>{i.hoverKey=a.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:g(()=>[E(e.$slots,"default",{item:a.item,index:a.nr.index,active:a.nr.used})]),_:2},1040,["style","class"]))),128)),E(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(u(),w("div",yn,[E(e.$slots,"after")],512)):S("v-if",!0),_(l,{onNotify:r.handleResize},null,8,["onNotify"])],34)),[[d,r.handleVisibilityChange]])}se.render=bn;se.__file="src/components/RecycleScroller.vue";const xn={"h-full":"",flex:"~ col gap-4"},$n={flex:"~ items-center"},wn={flex:"~ col","w-30":"","of-auto":""},kn={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},In={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},Sn=F({__name:"ModuleInstallList",emits:["close"],setup(e,{emit:t}){const n=t,o=Xe(),i=["downloads","stars","updated","created"],r=K(!1),l=K(i[0]),d={downloads:(b,p)=>b.stats.downloads-p.stats.downloads,stars:(b,p)=>b.stats.stars-p.stats.stars,created:(b,p)=>b.stats.createdAt-p.stats.createdAt,updated:(b,p)=>b.stats.publishedAt-p.stats.publishedAt},a=B(()=>o.value?.slice().sort((b,p)=>d[l.value](b,p)*(r.value?1:-1))),m=K(""),h=B(()=>new Ue(a.value||[],{keys:["name","description","npm","category"]})),v=B(()=>m.value?h.value.search(m.value).map(b=>b.item):a.value);return(b,p)=>{const I=Ze,$=X,x=ve,k=ke,N=Je,V=Kt;return u(),w("div",xn,[_(I,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),_(N,{search:c(m),"onUpdate:search":p[1]||(p[1]=f=>Fe(m)?m.value=f:null),"no-padding":"","px-6":"","pb-5":"","pt-2":""},{actions:g(()=>[_(k,{direction:"end",n:"sm primary"},{trigger:g(({click:f})=>[s("div",$n,[_($,{icon:c(r)?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:p[0]||(p[0]=j=>r.value=!c(r))},null,8,["icon"]),_($,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:j=>f()},{default:g(()=>[z(C(c(l))+" ",1),_(x,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:g(()=>[s("div",wn,[(u(),w(L,null,H(i,f=>_($,{key:f,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:j=>l.value=f},{default:g(()=>[s("span",kn,[z(C(f)+" ",1),c(l)===f?(u(),T(x,{key:0,icon:"carbon:checkmark"})):S("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),_:1},8,["search"]),s("div",In,[_(c(se),{class:"scroller",items:c(v),"item-size":200,"key-field":"name"},{default:g(({item:f})=>[_(V,{item:f,onStart:p[2]||(p[2]=j=>n("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),zn={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},Mn={capitalize:""},Cn=s("p",{op50:""}," The following command will be executed in your terminal: ",-1),Tn={op50:""},On=s("p",null,[s("span",{op50:""},"After that, Nuxt will "),s("span",{"text-orange":""},"restart automatically"),z(". ")],-1),Nn={flex:"~ gap-3",mt2:"","justify-end":""},Vn=F({__name:"ModuleActionDialog",setup(e){const t=qe(),n=_e(),o={};return(i,r)=>{const l=oe,d=tt,a=nt,m=it,h=We,v=X,b=Ke;return u(),T(c(be),null,{default:g(({resolve:p,args:I})=>[_(b,{"model-value":!0,onClose:$=>p(!1)},{default:g(()=>[_(l,{mod:o,info:I[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),s("div",zn,[s("h2",{"text-xl":"",class:U(I[2]==="install"?"text-primary":"text-red")},[s("span",Mn,C(I[2]),1),z(),s("code",null,C(I[0].name),1),z("? ")],2),Cn,_(d,{code:I[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),s("p",Tn,[z(" Then your "),_(a,{role:"button",n:"primary",underline:"",onClick:r[0]||(r[0]=$=>c(n)(c(t)?._nuxtConfigFile)),textContent:"Nuxt config"}),z(" will be updated as: ")]),_(m,{from:I[1].configOriginal,to:I[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),On,s("div",Nn,[_(h,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:g(()=>[z(" Please make sure to backup your project first. ")]),_:1}),_(v,{onClick:$=>p(!1)},{default:g(()=>[z(" Cancel ")]),_:2},1032,["onClick"]),_(v,{n:"solid",capitalize:"",class:U(I[2]==="install"?"n-primary":"n-red"),onClick:$=>p(!0)},{default:g(()=>[z(C(I[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),An={class:"markdown-body"},Pn=s("h1",null,"Modules",-1),Bn=s("p",null,[z("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),s("code",null,"nuxt.config"),z(".")],-1),Ln=s("p",null,[z("You can explore the list of modules on "),s("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),z(" or install them directly inside the DevTools.")],-1),jn=s("p",null,[s("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Rn=[Pn,Bn,Ln,jn],En={__name:"modules",setup(e,{expose:t}){return t({frontmatter:{}}),(o,i)=>(u(),w("div",An,Rn))}},Dn={"h-full":"","w-full":"","of-auto":""},Hn={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},Un=["src","alt"],Fn=s("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1),qn={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},Wn=s("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1),Kn={op75:""},Yn=s("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),Gn=s("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1),Xn={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},Qn="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",mi=F({__name:"modules",setup(e){const t=K(!1),n=we(),o=ye(),i=B(()=>n.value.filter(l=>l.isPackageModule)),r=B(()=>n.value.filter(l=>!l.isPackageModule));return Ye(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{t.value=!0}}]),(l,d)=>{const a=Wt,m=ge,h=ie,v=Qe,b=X,p=Sn,I=Vn,$=En,x=ot;return u(),w(L,null,[s("div",Dn,[_(v,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${c(i).length}`},{default:g(()=>[(u(!0),w(L,null,H(c(i),k=>(u(),T(a,{key:k.name,mod:k},null,8,["mod"]))),128)),(u(!0),w(L,null,H("processInstallingModules"in l?l.processInstallingModules:c(xe),k=>(u(),T(h,{key:k.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:N=>o.value=k.processId},{default:g(()=>[_(m,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:g(()=>[s("div",Hn,[s("img",{src:Qn+k.info.icon,alt:k.info.name,ma:""},null,8,Un),Fn]),s("div",qn,[Wn,s("span",Kn,"Installing "+C(k.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),_(m,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:d[0]||(d[0]=k=>t.value=!0)},{default:g(()=>[Yn,Gn]),_:1})]),_:1},8,["description"]),c(r).length?(u(),T(v,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${c(r).length}`},{default:g(()=>[(u(!0),w(L,null,H(c(r),k=>(u(),w(L,{key:k.meta?.name||k.entryPath},[k.meta?.name||k.entryPath?(u(),T(a,{key:0,mod:k},null,8,["mod"])):S("",!0)],64))),128))]),_:1},8,["description"])):S("",!0),_(me,{name:"fade-in"},{default:g(()=>[c(t)?(u(),w("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:d[1]||(d[1]=k=>t.value=!1)})):S("",!0)]),_:1}),_(me,{name:"slide-in"},{default:g(()=>[c(t)?(u(),w("div",Xn,[_(b,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:d[2]||(d[2]=k=>t.value=!1)}),_(p,{onClose:d[3]||(d[3]=k=>t.value=!1)})])):S("",!0)]),_:1}),_(I)]),_(x,null,{default:g(()=>[_($)]),_:1})],64)}}});export{mi as default};
1
+ import{_ as Ce}from"./LSJkDbxe.js";import{d as U,a as B,ac as _e,o as u,h as T,j as y,k as s,aa as E,f as c,v as z,t as C,m as w,G as F,p as S,i as _,F as L,n as H,x as ie,a6 as ve,ar as ge,R as ye,aO as Te,L as ce,M as de,V as Oe,aP as be,aQ as xe,_ as X,y as Ne,z as Ve,aA as $e,aR as Ae,aS as Pe,aT as Be,as as Le,a2 as je,I as Re,ax as ue,aw as Ee,aU as De,a9 as He,r as K,ah as Fe,l as Ue,ab as qe,Y as We,Z as Ke,S as Ye,aV as me}from"./DNH9VLI7.js";import{_ as Ge,u as we,a as Xe}from"./p_veFBpZ.js";import{_ as Qe}from"./D7I2o642.js";import{_ as Ze}from"./BYuD4knm.js";import{_ as ke}from"./B-sCWvv9.js";import{_ as Je}from"./QZOV8EJp.js";import{_ as et}from"./CGj_8s-I.js";import{_ as tt}from"./8SMg7xCe.js";import{_ as nt}from"./CO6YgqHh.js";import{_ as it}from"./BFLTkFCL.js";import{_ as ot}from"./CIgTPfXa.js";import"./CpJRPiL9.js";import"./DBLkZRmC.js";const st={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},rt={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},lt={key:2},at=s("div",{"flex-auto":""},null,-1),ct={key:1,flex:"~ gap-2",title:"Documentation"},dt=s("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1),ut={key:2,flex:"~ gap-2"},mt=s("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1),ft={key:0,flex:"~ gap-4 items-center"},pt={flex:"~ gap-1 items-center",op50:""},ht={flex:"~ gap-1 items-center",op50:""},_t={flex:"~ col","items-end":""},vt={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},gt=["src","alt"],yt=s("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1),bt={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},xt=["src"],$t=s("div",{"flex-auto":""},null,-1),wt={flex:"","justify-end":""},kt="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",It="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",St="https://github.com/",zt="https://www.npmjs.com/package/",oe=U({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(e){const t=e,n=B(()=>({...t.mod?.meta,...t.mod,...t.info})),o=_e();return(i,r)=>{const l=ie,d=ve,a=ge;return u(),T(a,{p4:"",flex:"~ gap2"},{default:y(()=>[s("div",st,[E(i.$slots,"main",{},()=>[s("div",rt,[i.mod.isPackageModule?(u(),T(l,{key:0,to:zt+(c(n).npm||c(n).name),target:"_blank",hover:"underline text-primary"},{default:y(()=>[z(C(c(n).name),1)]),_:1},8,["to"])):i.mod.entryPath?(u(),w("button",{key:1,role:"button",hover:"underline text-primary",onClick:r[0]||(r[0]=m=>c(o)(i.mod.entryPath))},C(c(n).name),1)):(u(),w("span",lt,C(c(n).name),1)),E(i.$slots,"badge")]),c(n).description?(u(),w("div",{key:0,class:F(i.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},C(c(n).description),3)):S("",!0),at,c(n).website?(u(),w("div",ct,[dt,_(l,{to:c(n).website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:y(()=>[z(C(c(n).website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):S("",!0),c(n).github?(u(),w("div",ut,[mt,_(l,{to:c(n).github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:y(()=>[z(C(c(n).github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):S("",!0)]),E(i.$slots,"items"),c(n).stats?(u(),w("div",ft,[s("div",pt,[_(d,{icon:"carbon-star","text-lg":""}),s("span",null,C(c(n).stats.stars),1)]),s("div",ht,[_(d,{icon:"carbon-download","text-lg":""}),s("span",null,C(c(n).stats.downloads),1)])])):S("",!0)]),s("div",_t,[c(n).icon||i.mod.isPackageModule?(u(),w("div",vt,[c(n).icon?(u(),w("img",{key:0,src:kt+c(n).icon,alt:i.mod.name,ma:""},null,8,gt)):S("",!0),yt])):S("",!0),c(n).maintainers?.length&&i.maintainers?(u(),w("div",bt,[(u(!0),w(L,null,H(c(n).maintainers,m=>(u(),T(l,{key:m.name,target:"_blank",to:St+m.github,title:m.name},{default:y(()=>[s("img",{src:It+m.github,"h-6":"","w-6":"","rounded-full":""},null,8,xt)]),_:2},1032,["to","title"]))),128))])):S("",!0),i.$slots.actions?(u(),w(L,{key:2},[$t,s("div",wt,[E(i.$slots,"actions")])],64)):S("",!0)])]),_:3})}}}),Mt={key:0,flex:"~ gap-2",title:"Open on filesystem"},Ct=s("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1),Tt=s("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),Ot=s("code",{"text-sm":"",op50:""},"Upgrading...",-1),Nt={key:1,"mx--2":""},Vt=["onClick"],At=s("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),Pt=s("code",{"text-xs":""},"Update installed, click to restart",-1),Bt=[At,Pt],Lt={key:2,"mx--2":""},jt=["onClick"],Rt=s("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1),Et={op50:""},Dt=s("div",{"i-carbon-arrow-right":"",op50:""},null,-1),Ht={"text-green":""},Ft={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},Ut=s("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1),qt={"text-sm":"",op50:""},Wt=U({__name:"ModuleItem",props:{mod:{}},setup(e){const t=e,n=B(()=>t.mod.info),o=B(()=>({...t.mod?.meta,...t.mod,...n.value})),i=ye();return(r,l)=>{const d=Ce,a=ie,m=Ge,h=oe;return u(),T(h,{mod:r.mod,info:c(n)},{items:y(()=>[r.mod.entryPath?(u(),w("div",Mt,[Ct,_(d,{filepath:r.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):S("",!0),c(o).npm?(u(),T(m,{key:c(o).npm,"package-name":c(o).npm,options:{dev:!0}},{default:y(({info:g,update:v,state:p,id:I,restart:b})=>[p==="running"?(u(),T(a,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:I?"/modules/terminals":void 0,onClick:$=>I?i.value=I:void 0},{default:y(()=>[Tt,Ot]),_:2},1032,["to","onClick"])):p==="updated"?(u(),w("div",Nt,[s("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:b},Bt,8,Vt)])):g?.needsUpdate?(u(),w("div",Lt,[s("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:$=>v()},[Rt,s("code",Et,"v"+C(g.current),1),Dt,s("code",Ht,"v"+C(g.latest),1)],8,jt)])):g?.latest?(u(),w("div",Ft,[Ut,s("code",qt,"v"+C(g.current),1)])):S("",!0)]),_:1},8,["package-name"])):S("",!0)]),_:1},8,["mod","info"])}}}),Kt=U({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(e,{emit:t}){const n=e,o=t,i=we(),r=B(()=>i.value.find(h=>h.name===n.item.npm)),l=B(()=>r.value&&r.value.isPackageModule),d=B(()=>r.value&&r.value.isPackageModule&&r.value.isUninstallable);async function a(h,g){const v=g==="install"?ce.installNuxtModule:ce.uninstallNuxtModule,p=await v(await de(),h.npm,!0);Oe(`modules:${g}`,{moduleName:h.npm}),p.commands&&await be.start(h,p,g)&&(xe.value.push({name:h.npm,info:h,processId:p.processId}),o("start"),await v(await de(),h.npm,!1))}const m={};return(h,g)=>{const v=et,p=X,I=ke,b=oe;return u(),T(b,{mod:m,role:c(l)?"":"button",info:h.item,mb2:"","h-full":"",class:F(c(l)?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:g[1]||(g[1]=$=>c(l)?null:a(h.item,"install"))},Te({_:2},[c(l)?{name:"badge",fn:y(()=>[_(v,{n:"green",textContent:"Installed"}),c(d)?(u(),T(I,{key:0,n:"sm green"},{trigger:y(({click:$})=>[_(p,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:k=>$()},null,8,["onClick"])]),default:y(()=>[_(p,{icon:"carbon-trash-can",n:"red",onClick:g[0]||(g[0]=$=>a(h.item,"uninstall"))},{default:y(()=>[z(" Uninstall ")]),_:1})]),_:1})):S("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}});function Yt(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let Y;function J(){J.init||(J.init=!0,Y=Yt()!==-1)}var Q={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){J(),$e(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Y&&this.$el.appendChild(e),e.data="about:blank",Y||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Y&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Gt=Ae();Ne("data-v-b329ee4c");const Xt={class:"resize-observer",tabindex:"-1"};Ve();const Qt=Gt((e,t,n,o,i,r)=>(u(),T("div",Xt)));Q.render=Qt;Q.__scopeId="data-v-b329ee4c";Q.__file="src/components/ResizeObserver.vue";function G(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?G=function(t){return typeof t}:G=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(e)}function Zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Jt(e,t,n){return t&&fe(e.prototype,t),n&&fe(e,n),e}function pe(e){return en(e)||tn(e)||nn(e)||on()}function en(e){if(Array.isArray(e))return ee(e)}function tn(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nn(e,t){if(e){if(typeof e=="string")return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ee(e,t)}}function ee(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function on(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sn(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function rn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,r,l=function(a){for(var m=arguments.length,h=new Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];if(r=h,!(o&&a===i)){var v=n.leading;typeof v=="function"&&(v=v(a,i)),(!o||a!==i)&&v&&e.apply(void 0,[a].concat(pe(r))),i=a,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[a].concat(pe(r))),o=0},t)}};return l._clear=function(){clearTimeout(o),o=null},l}function Ie(e,t){if(e===t)return!0;if(G(e)==="object"){for(var n in e)if(!Ie(e[n],t[n]))return!1;return!0}return!1}var ln=function(){function e(t,n,o){Zt(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,o)}return Jt(e,[{key:"createObserver",value:function(n,o){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=sn(n),this.callback=function(d,a){i.options.callback(d,a),d&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var r=this.options.throttleOptions||{},l=r.leading;this.callback=rn(this.callback,this.options.throttle,{leading:function(a){return l==="both"||l==="visible"&&a||l==="hidden"&&!a}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var a=d[0];if(d.length>1){var m=d.find(function(g){return g.isIntersecting});m&&(a=m)}if(i.callback){var h=a.isIntersecting&&a.intersectionRatio>=i.threshold;if(h===i.oldResult)return;i.oldResult=h,i.callback(h,a)}},this.options.intersection),$e(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function Se(e,t,n){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new ln(e,o,n);e._vue_visibilityState=i}}function an(e,t,n){var o=t.value,i=t.oldValue;if(!Ie(o,i)){var r=e._vue_visibilityState;if(!o){ze(e);return}r?r.createObserver(o,n):Se(e,{value:o},n)}}function ze(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var cn={beforeMount:Se,updated:an,unmounted:ze},dn={itemsLimit:1e3},un=/(auto|scroll)/;function Me(e,t){return e.parentNode===null?t:Me(e.parentNode,t.concat([e]))}var Z=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},mn=function(t){return Z(t,"overflow")+Z(t,"overflow-y")+Z(t,"overflow-x")},fn=function(t){return un.test(mn(t))};function he(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Me(e.parentNode,[]),n=0;n<t.length;n+=1)if(fn(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function te(e){"@babel/helpers - typeof";return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te(e)}var pn={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function hn(){return this.items.length&&te(this.items[0])!=="object"}var ne=!1;if(typeof window<"u"){ne=!1;try{var _n=Object.defineProperty({},"passive",{get:function(){ne=!0}});window.addEventListener("test",null,_n)}catch{}}let vn=0;var se={name:"RecycleScroller",components:{ResizeObserver:Q},directives:{ObserveVisibility:cn},props:{...pn,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,o=this.minItemSize;let i=1e4,r=0,l;for(let d=0,a=t.length;d<a;d++)l=t[d][n]||o,l<i&&(i=l),r+=l,e[d]={accumulator:r,size:l};return this.$_computedMinItemSize=i,e}return[]},simpleArray:hn,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let o=0,i=t.length;o<i;o++)n[t[o][e]]=o;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,o,i){const r=Pe({id:vn++,index:t,used:!0,key:o,type:i}),l=Be({item:n,position:0,nr:r});return e.push(l),l},unuseView(e,t=!1){const n=this.$_unusedViews,o=e.nr.type;let i=n.get(o);i||(i=[],n.set(o,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,o=this.gridItems||1,i=this.itemSecondarySize||n,r=this.$_computedMinItemSize,l=this.typeField,d=this.simpleArray?null:this.keyField,a=this.items,m=a.length,h=this.sizes,g=this.$_views,v=this.$_unusedViews,p=this.pool,I=this.itemIndexByKey;let b,$,k,N,V;if(!m)b=$=N=V=k=0;else if(this.$_prerender)b=N=0,$=V=Math.min(this.prerender,a.length),k=null;else{const x=this.getScroll();if(t){let O=x.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),n===null&&O<r||O<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=x.start;const A=this.buffer;x.start-=A,x.end+=A;let M=0;if(this.$refs.before&&(M=this.$refs.before.scrollHeight,x.start-=M),this.$refs.after){const O=this.$refs.after.scrollHeight;x.end+=O}if(n===null){let O,q=0,le=m-1,P=~~(m/2),ae;do ae=P,O=h[P].accumulator,O<x.start?q=P:P<m-1&&h[P+1].accumulator>x.start&&(le=P),P=~~((q+le)/2);while(P!==ae);for(P<0&&(P=0),b=P,k=h[m-1].accumulator,$=P;$<m&&h[$].accumulator<x.end;$++);for($===-1?$=a.length-1:($++,$>m&&($=m)),N=b;N<m&&M+h[N].accumulator<x.start;N++);for(V=N;V<m&&M+h[V].accumulator<x.end;V++);}else{b=~~(x.start/n*o);const O=b%o;b-=O,$=Math.ceil(x.end/n*o),N=Math.max(0,Math.floor((x.start-M)/n*o)),V=Math.floor((x.end-M)/n*o),b<0&&(b=0),$>m&&($=m),N<0&&(N=0),V>m&&(V=m),k=Math.ceil(m/o)*n}}$-b>dn.itemsLimit&&this.itemsLimitError(),this.totalSize=k;let f;const j=b<=this.$_endIndex&&$>=this.$_startIndex;if(j)for(let x=0,A=p.length;x<A;x++)f=p[x],f.nr.used&&(e&&(f.nr.index=I[f.item[d]]),(f.nr.index==null||f.nr.index<b||f.nr.index>=$)&&this.unuseView(f));const re=j?null:new Map;let D,R,W;for(let x=b;x<$;x++){D=a[x];const A=d?D[d]:D;if(A==null)throw new Error(`Key is ${A} on item (keyField is '${d}')`);if(f=g.get(A),!n&&!h[x].size){f&&this.unuseView(f);continue}R=D[l];let M=v.get(R),O=!1;if(!f)j?M&&M.length?f=M.pop():f=this.addView(p,x,D,A,R):(W=re.get(R)||0,(!M||W>=M.length)&&(f=this.addView(p,x,D,A,R),this.unuseView(f,!0),M=v.get(R)),f=M[W],re.set(R,W+1)),g.delete(f.nr.key),f.nr.used=!0,f.nr.index=x,f.nr.key=A,f.nr.type=R,g.set(A,f),O=!0;else if(!f.nr.used&&(f.nr.used=!0,O=!0,M)){const q=M.indexOf(f);q!==-1&&M.splice(q,1)}f.item=D,O&&(x===a.length-1&&this.$emit("scroll-end"),x===0&&this.$emit("scroll-start")),n===null?(f.position=h[x-1].accumulator,f.offset=0):(f.position=Math.floor(x/o)*n,f.offset=x%o*i)}return this.$_startIndex=b,this.$_endIndex=$,this.emitUpdate&&this.$emit("update",b,$,N,V),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:j}},getListenerTarget(){let e=he(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let o;if(this.pageMode){const i=e.getBoundingClientRect(),r=n?i.height:i.width;let l=-(n?i.top:i.left),d=n?window.innerHeight:window.innerWidth;l<0&&(d+=l,l=0),l+d>r&&(d=r-l),o={start:l,end:l+d}}else n?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ne?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,o,i;if(this.pageMode){const r=he(this.$el),l=r.tagName==="HTML"?0:r[t.scroll],d=r.getBoundingClientRect(),m=this.$el.getBoundingClientRect()[t.start]-d[t.start];n=r,o=t.scroll,i=e+l+m}else n=this.$el,o=t.scroll,i=e;n[o]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const gn={key:0,ref:"before",class:"vue-recycle-scroller__slot"},yn={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function bn(e,t,n,o,i,r){const l=Le("ResizeObserver"),d=je("observe-visibility");return Re((u(),w("div",{class:F(["vue-recycle-scroller",{ready:i.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...a)=>r.handleScroll&&r.handleScroll(...a))},[e.$slots.before?(u(),w("div",gn,[E(e.$slots,"before")],512)):S("v-if",!0),(u(),T(ue(n.listTag),{ref:"wrapper",style:He({[e.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:F(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:y(()=>[(u(!0),w(L,null,H(i.pool,a=>(u(),T(ue(n.itemTag),Ee({key:a.nr.id,style:i.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${a.position}px) translate${e.direction==="vertical"?"X":"Y"}(${a.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&i.hoverKey===a.nr.key}]]},De(n.skipHover?{}:{mouseenter:()=>{i.hoverKey=a.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:y(()=>[E(e.$slots,"default",{item:a.item,index:a.nr.index,active:a.nr.used})]),_:2},1040,["style","class"]))),128)),E(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(u(),w("div",yn,[E(e.$slots,"after")],512)):S("v-if",!0),_(l,{onNotify:r.handleResize},null,8,["onNotify"])],34)),[[d,r.handleVisibilityChange]])}se.render=bn;se.__file="src/components/RecycleScroller.vue";const xn={"h-full":"",flex:"~ col gap-4"},$n={flex:"~ items-center"},wn={flex:"~ col","w-30":"","of-auto":""},kn={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},In={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},Sn=U({__name:"ModuleInstallList",emits:["close"],setup(e,{emit:t}){const n=t,o=Xe(),i=["downloads","stars","updated","created"],r=K(!1),l=K(i[0]),d={downloads:(v,p)=>v.stats.downloads-p.stats.downloads,stars:(v,p)=>v.stats.stars-p.stats.stars,created:(v,p)=>v.stats.createdAt-p.stats.createdAt,updated:(v,p)=>v.stats.publishedAt-p.stats.publishedAt},a=B(()=>o.value?.toSorted((v,p)=>d[l.value](v,p)*(r.value?1:-1))),m=K(""),h=B(()=>new Fe(o.value||[],{keys:["name","description","npm","category"],sortFn:(v,p)=>{const I=o.value?.[v.idx],b=o.value?.[p.idx];return I&&b?d[l.value](I,b)*(r.value?1:-1):v.score-p.score},threshold:.2})),g=B(()=>m.value?h.value.search(m.value).map(v=>v.item):a.value);return(v,p)=>{const I=Ze,b=X,$=ve,k=ke,N=Je,V=Kt;return u(),w("div",xn,[_(I,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),_(N,{search:c(m),"onUpdate:search":p[1]||(p[1]=f=>Ue(m)?m.value=f:null),"no-padding":"","px-6":"","pb-5":"","pt-2":""},{actions:y(()=>[_(k,{direction:"end",n:"sm primary"},{trigger:y(({click:f})=>[s("div",$n,[_(b,{icon:c(r)?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:p[0]||(p[0]=j=>r.value=!c(r))},null,8,["icon"]),_(b,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:j=>f()},{default:y(()=>[z(C(c(l))+" ",1),_($,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:y(()=>[s("div",wn,[(u(),w(L,null,H(i,f=>_(b,{key:f,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:j=>l.value=f},{default:y(()=>[s("span",kn,[z(C(f)+" ",1),c(l)===f?(u(),T($,{key:0,icon:"carbon:checkmark"})):S("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),_:1},8,["search"]),s("div",In,[_(c(se),{class:"scroller",items:c(g),"item-size":200,"key-field":"name"},{default:y(({item:f})=>[_(V,{item:f,onStart:p[2]||(p[2]=j=>n("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),zn={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},Mn={capitalize:""},Cn=s("p",{op50:""}," The following command will be executed in your terminal: ",-1),Tn={op50:""},On=s("p",null,[s("span",{op50:""},"After that, Nuxt will "),s("span",{"text-orange":""},"restart automatically"),z(". ")],-1),Nn={flex:"~ gap-3",mt2:"","justify-end":""},Vn=U({__name:"ModuleActionDialog",setup(e){const t=qe(),n=_e(),o={};return(i,r)=>{const l=oe,d=tt,a=nt,m=it,h=We,g=X,v=Ke;return u(),T(c(be),null,{default:y(({resolve:p,args:I})=>[_(v,{"model-value":!0,onClose:b=>p(!1)},{default:y(()=>[_(l,{mod:o,info:I[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),s("div",zn,[s("h2",{"text-xl":"",class:F(I[2]==="install"?"text-primary":"text-red")},[s("span",Mn,C(I[2]),1),z(),s("code",null,C(I[0].name),1),z("? ")],2),Cn,_(d,{code:I[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),s("p",Tn,[z(" Then your "),_(a,{role:"button",n:"primary",underline:"",onClick:r[0]||(r[0]=b=>c(n)(c(t)?._nuxtConfigFile)),textContent:"Nuxt config"}),z(" will be updated as: ")]),_(m,{from:I[1].configOriginal,to:I[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),On,s("div",Nn,[_(h,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:y(()=>[z(" Please make sure to backup your project first. ")]),_:1}),_(g,{onClick:b=>p(!1)},{default:y(()=>[z(" Cancel ")]),_:2},1032,["onClick"]),_(g,{n:"solid",capitalize:"",class:F(I[2]==="install"?"n-primary":"n-red"),onClick:b=>p(!0)},{default:y(()=>[z(C(I[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),An={class:"markdown-body"},Pn=s("h1",null,"Modules",-1),Bn=s("p",null,[z("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),s("code",null,"nuxt.config"),z(".")],-1),Ln=s("p",null,[z("You can explore the list of modules on "),s("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),z(" or install them directly inside the DevTools.")],-1),jn=s("p",null,[s("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Rn=[Pn,Bn,Ln,jn],En={__name:"modules",setup(e,{expose:t}){return t({frontmatter:{}}),(o,i)=>(u(),w("div",An,Rn))}},Dn={"h-full":"","w-full":"","of-auto":""},Hn={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},Fn=["src","alt"],Un=s("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1),qn={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},Wn=s("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1),Kn={op75:""},Yn=s("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),Gn=s("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1),Xn={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},Qn="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",mi=U({__name:"modules",setup(e){const t=K(!1),n=we(),o=ye(),i=B(()=>n.value.filter(l=>l.isPackageModule)),r=B(()=>n.value.filter(l=>!l.isPackageModule));return Ye(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{t.value=!0}}]),(l,d)=>{const a=Wt,m=ge,h=ie,g=Qe,v=X,p=Sn,I=Vn,b=En,$=ot;return u(),w(L,null,[s("div",Dn,[_(g,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${c(i).length}`},{default:y(()=>[(u(!0),w(L,null,H(c(i),k=>(u(),T(a,{key:k.name,mod:k},null,8,["mod"]))),128)),(u(!0),w(L,null,H("processInstallingModules"in l?l.processInstallingModules:c(xe),k=>(u(),T(h,{key:k.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:N=>o.value=k.processId},{default:y(()=>[_(m,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:y(()=>[s("div",Hn,[s("img",{src:Qn+k.info.icon,alt:k.info.name,ma:""},null,8,Fn),Un]),s("div",qn,[Wn,s("span",Kn,"Installing "+C(k.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),_(m,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:d[0]||(d[0]=k=>t.value=!0)},{default:y(()=>[Yn,Gn]),_:1})]),_:1},8,["description"]),c(r).length?(u(),T(g,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${c(r).length}`},{default:y(()=>[(u(!0),w(L,null,H(c(r),k=>(u(),w(L,{key:k.meta?.name||k.entryPath},[k.meta?.name||k.entryPath?(u(),T(a,{key:0,mod:k},null,8,["mod"])):S("",!0)],64))),128))]),_:1},8,["description"])):S("",!0),_(me,{name:"fade-in"},{default:y(()=>[c(t)?(u(),w("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:d[1]||(d[1]=k=>t.value=!1)})):S("",!0)]),_:1}),_(me,{name:"slide-in"},{default:y(()=>[c(t)?(u(),w("div",Xn,[_(v,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:d[2]||(d[2]=k=>t.value=!1)}),_(p,{onClose:d[3]||(d[3]=k=>t.value=!1)})])):S("",!0)]),_:1}),_(I)]),_($,null,{default:y(()=>[_(b)]),_:1})],64)}}});export{mi as default};
@@ -1 +1 @@
1
- import{d as V,a0 as w,an as B,r as _,bf as O,bF as C,a2 as $,o as i,m as p,k as u,G as c,f as t,t as D,p as l,aa as J,bp as F,bq as P,F as R,I as j,i as z,h as v,aw as A,bD as G,l as M,aA as E,_ as q}from"./DW2rdoo9.js";import{_ as I}from"./DZg4WwSa.js";import{e as T}from"./CQhVfK23.js";const U=["open"],Y={flex:"~ gap2","select-none":"","items-center":"",px4:""},W=V({__name:"StateEditor",props:{name:{},open:{type:Boolean},state:{},readonly:{type:Boolean}},emits:["update:open"],setup(b,{emit:g}){const s=b,n=w(s,"open",g,{passive:!0}),k=B(),o=_(),m=O(s.name,"$9Gvv2FGyYa");s.state?o.value=JSON.parse(JSON.stringify(s.state)):(typeof s.state=="number"||typeof s.state!="string")&&(o.value=s.state);const d=C(o,e=>{typeof e!="number"&&typeof e!="string"?f(e,s.state):m.value=e},{deep:!0});function f(e,r){for(const a in e)e[a]===null?r[a]=null:Array.isArray(e[a])?r[a]=e[a].slice():typeof e[a]=="object"?f(e[a],r[a]):r[a]=e[a]}async function h(){d.pause(),o.value=JSON.parse(JSON.stringify(s.state)),await E(),d.resume()}return(e,r)=>{const a=q,S=I,N=$("tooltip");return i(),p("div",{class:"state-editor-details",open:e.name?t(n):!0},[u("div",Y,[e.name?(i(),p("button",{key:0,flex:"~","cursor-pointer":"","items-center":"",class:c(t(n)?"":"op50"),onClick:r[0]||(r[0]=y=>n.value=!t(n))},[u("div",{"i-carbon-chevron-right":"",transition:"",class:c(t(n)?"rotate-90 op0":"")},null,2),u("code",{px3:"",py1:"","font-mono":"",class:c(t(n)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},D(e.name),3)],2)):l("",!0),J(e.$slots,"actions",F(P({isOpen:t(n),name:e.name,state:t(m)}))),t(n)?(i(),p(R,{key:1},[j(z(a,{title:"Refresh View",icon:"carbon-renew",border:!1,onClick:h},null,512),[[N,"Refresh View",void 0,{bottom:!0}]]),t(o)?(i(),v(S,{key:0,getter:()=>({name:e.name,input:JSON.stringify(t(o))})},null,8,["getter"])):l("",!0)],64)):l("",!0)]),t(n)||!e.name?(i(),v(t(T),A({key:0,modelValue:t(o),"onUpdate:modelValue":r[1]||(r[1]=y=>M(o)?o.value=y:null)},e.$attrs,{class:["json-editor-vue",[t(k).value==="dark"?"jse-theme-dark":"",(e.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":"readonly"in e?e.readonly:t(G),indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"])):l("",!0)],8,U)}}});export{W as _};
1
+ import{d as V,a0 as w,an as B,r as _,bf as O,bF as C,a2 as $,o as i,m as p,k as u,G as c,f as t,t as D,p as l,aa as J,bp as F,bq as P,F as R,I as j,i as z,h as v,aw as A,bD as G,l as M,aA as E,_ as q}from"./DNH9VLI7.js";import{_ as I}from"./BoP7AKy2.js";import{e as T}from"./D9GqCGb7.js";const U=["open"],Y={flex:"~ gap2","select-none":"","items-center":"",px4:""},W=V({__name:"StateEditor",props:{name:{},open:{type:Boolean},state:{},readonly:{type:Boolean}},emits:["update:open"],setup(b,{emit:g}){const s=b,n=w(s,"open",g,{passive:!0}),k=B(),o=_(),m=O(s.name,"$9Gvv2FGyYa");s.state?o.value=JSON.parse(JSON.stringify(s.state)):(typeof s.state=="number"||typeof s.state!="string")&&(o.value=s.state);const d=C(o,e=>{typeof e!="number"&&typeof e!="string"?f(e,s.state):m.value=e},{deep:!0});function f(e,r){for(const a in e)e[a]===null?r[a]=null:Array.isArray(e[a])?r[a]=e[a].slice():typeof e[a]=="object"?f(e[a],r[a]):r[a]=e[a]}async function h(){d.pause(),o.value=JSON.parse(JSON.stringify(s.state)),await E(),d.resume()}return(e,r)=>{const a=q,S=I,N=$("tooltip");return i(),p("div",{class:"state-editor-details",open:e.name?t(n):!0},[u("div",Y,[e.name?(i(),p("button",{key:0,flex:"~","cursor-pointer":"","items-center":"",class:c(t(n)?"":"op50"),onClick:r[0]||(r[0]=y=>n.value=!t(n))},[u("div",{"i-carbon-chevron-right":"",transition:"",class:c(t(n)?"rotate-90 op0":"")},null,2),u("code",{px3:"",py1:"","font-mono":"",class:c(t(n)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},D(e.name),3)],2)):l("",!0),J(e.$slots,"actions",F(P({isOpen:t(n),name:e.name,state:t(m)}))),t(n)?(i(),p(R,{key:1},[j(z(a,{title:"Refresh View",icon:"carbon-renew",border:!1,onClick:h},null,512),[[N,"Refresh View",void 0,{bottom:!0}]]),t(o)?(i(),v(S,{key:0,getter:()=>({name:e.name,input:JSON.stringify(t(o))})},null,8,["getter"])):l("",!0)],64)):l("",!0)]),t(n)||!e.name?(i(),v(t(T),A({key:0,modelValue:t(o),"onUpdate:modelValue":r[1]||(r[1]=y=>M(o)?o.value=y:null)},e.$attrs,{class:["json-editor-vue",[t(k)==="dark"?"jse-theme-dark":"",(e.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":"readonly"in e?e.readonly:t(G),indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"])):l("",!0)],8,U)}}});export{W as _};