@nuxt/devtools 1.3.9 → 1.3.14

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 (108) hide show
  1. package/dist/chunks/module-main.mjs +8 -7
  2. package/dist/client/200.html +27 -27
  3. package/dist/client/404.html +27 -27
  4. package/dist/client/_nuxt/{B3Xn0-WD.js → 2tJW9cKr.js} +1 -1
  5. package/dist/client/_nuxt/{B3xdBQzM.js → B-wfK0SS.js} +1 -1
  6. package/dist/client/_nuxt/{DMp3ub-8.js → B2TuRHFi.js} +1 -1
  7. package/dist/client/_nuxt/{nbOvh45q.js → BEKXAodE.js} +1 -1
  8. package/dist/client/_nuxt/{JOMs3kJS.js → BF_UD7ZT.js} +114 -114
  9. package/dist/client/_nuxt/{xORP-8Ow.js → BHBvn5Xs.js} +1 -1
  10. package/dist/client/_nuxt/BLmvGqlk.js +1 -0
  11. package/dist/client/_nuxt/{DkQfqnYF.js → BMUgLter.js} +9 -9
  12. package/dist/client/_nuxt/BMbUeBqv.js +1 -1
  13. package/dist/client/_nuxt/{H8p8AdfC.js → BO314c-_.js} +1 -1
  14. package/dist/client/_nuxt/{CktVnUy9.js → BWPbreBU.js} +1 -1
  15. package/dist/client/_nuxt/BYelj_cE.js +1 -0
  16. package/dist/client/_nuxt/{dyz0QDHl.js → BZZpaKJQ.js} +1 -1
  17. package/dist/client/_nuxt/{Ctb-QkcA.js → BZvh3yot.js} +2 -2
  18. package/dist/client/_nuxt/{qnM-VzkH.js → BcJweaq3.js} +1 -1
  19. package/dist/client/_nuxt/{OAG_rOo8.js → Bi99gj7u.js} +1 -1
  20. package/dist/client/_nuxt/BkmSFWMo.js +1 -0
  21. package/dist/client/_nuxt/{-vLCBS-N.js → Bl8OBrwH.js} +1 -1
  22. package/dist/client/_nuxt/BrzmMRQX.js +2 -0
  23. package/dist/client/_nuxt/{C5ufIXkV.js → C4OO6w_e.js} +1 -1
  24. package/dist/client/_nuxt/{DuFGBY9A.js → C8RrL2-P.js} +1 -1
  25. package/dist/client/_nuxt/{CHVLsZmm.js → CA5wVMK1.js} +1 -1
  26. package/dist/client/_nuxt/{CG8l32IX.js → CE84j0J9.js} +1 -1
  27. package/dist/client/_nuxt/{BgkXDMve.js → CLVHkiJk.js} +1 -1
  28. package/dist/client/_nuxt/{CeCFyH2L.js → CPWqrNrA.js} +1 -1
  29. package/dist/client/_nuxt/{2LcXl48m.js → CPr4CZHz.js} +1 -1
  30. package/dist/client/_nuxt/CTKqK4eG.js +1 -1
  31. package/dist/client/_nuxt/{Bmn7JOho.js → CVW-sDYN.js} +1 -1
  32. package/dist/client/_nuxt/{ZTrlmdYI.js → CWyKSuRn.js} +1 -1
  33. package/dist/client/_nuxt/CbViG2Xw.js +1 -1
  34. package/dist/client/_nuxt/{CVc_vzB8.js → Cb_ad2sg.js} +1 -1
  35. package/dist/client/_nuxt/{Diu0Y0PU.js → CcKfWHXB.js} +2 -2
  36. package/dist/client/_nuxt/{s01ATyxb.js → CfVBzxeB.js} +1 -1
  37. package/dist/client/_nuxt/Cic6Ln_D.js +98 -0
  38. package/dist/client/_nuxt/{BfZiPQjx.js → CjFkCrIW.js} +1 -1
  39. package/dist/client/_nuxt/{DMviwfII.js → CmbkPMjd.js} +1 -1
  40. package/dist/client/_nuxt/CnW1WPg6.js +1 -0
  41. package/dist/client/_nuxt/CsgBhI1g.js +16 -0
  42. package/dist/client/_nuxt/Cvo3JE8Q.js +1 -0
  43. package/dist/client/_nuxt/{BiD_nEzt.js → CxLTb5RC.js} +1 -1
  44. package/dist/client/_nuxt/{QIDSXraL.js → CyS6YlEb.js} +1 -1
  45. package/dist/client/_nuxt/{Cfh5adMM.js → CyvuMq07.js} +1 -1
  46. package/dist/client/_nuxt/D-a-w6CR.js +9 -0
  47. package/dist/client/_nuxt/{BgweL_3l.js → D4Ks82zD.js} +1 -1
  48. package/dist/client/_nuxt/{DL9aipy8.js → D8XE2BC8.js} +1 -1
  49. package/dist/client/_nuxt/DDMtKJxh.js +1 -1
  50. package/dist/client/_nuxt/{C5gCGmDW.js → DK4oFTHQ.js} +1 -1
  51. package/dist/client/_nuxt/DKlNNSWk.js +1 -0
  52. package/dist/client/_nuxt/{D8-i-l8m.js → DN0HCnq5.js} +1 -1
  53. package/dist/client/_nuxt/{H6yjxI9R.js → DOv5BRyJ.js} +1 -1
  54. package/dist/client/_nuxt/{BJnuIykn.js → DVZAdofw.js} +1 -1
  55. package/dist/client/_nuxt/{Dcjed-xK.js → DYx1ZwvQ.js} +3 -3
  56. package/dist/client/_nuxt/Di9lD2rK.js +1 -0
  57. package/dist/client/_nuxt/{Bsa9pMTD.js → DoQHeYxB.js} +3 -3
  58. package/dist/client/_nuxt/{ix9IAXj6.js → DpYuRYxj.js} +92 -22
  59. package/dist/client/_nuxt/{2e6xxFgg.js → Dv0NFAnW.js} +1 -1
  60. package/dist/client/_nuxt/{b-sJbkBg.js → DwVKZd3-.js} +1 -1
  61. package/dist/client/_nuxt/{CHDbzgkk.js → DwdKwQHN.js} +1 -1
  62. package/dist/client/_nuxt/{DCIux9Jq.js → JMx2uAI6.js} +1 -1
  63. package/dist/client/_nuxt/{pOm0j4bx.js → VNvxalkE.js} +1 -1
  64. package/dist/client/_nuxt/W2Tyz6z1.js +9 -0
  65. package/dist/client/_nuxt/{BEWN4pmm.js → awWHqjli.js} +1 -1
  66. package/dist/client/_nuxt/builds/latest.json +1 -1
  67. package/dist/client/_nuxt/builds/meta/a69820c2-31c2-48f6-8161-842a62467079.json +1 -0
  68. package/dist/client/_nuxt/ciodjZaS.js +43 -0
  69. package/dist/client/_nuxt/entry.Gpl6Gx6M.css +1 -0
  70. package/dist/client/_nuxt/error-404.Bssqox27.css +1 -0
  71. package/dist/client/_nuxt/error-500.D3oXMFZl.css +1 -0
  72. package/dist/client/_nuxt/{tIa4hiZQ.js → ewAh1ZiX.js} +1 -1
  73. package/dist/client/_nuxt/{CSiYmMfO.js → gXK6hV6W.js} +8 -8
  74. package/dist/client/_nuxt/{Bjf-a2fi.js → pl_4MfI2.js} +1 -1
  75. package/dist/client/_nuxt/{C0RAjPaQ.js → rLudNEh9.js} +1 -1
  76. package/dist/client/_nuxt/timeline.BVVcTKn-.css +1 -0
  77. package/dist/client/_nuxt/{brJlGqJM.js → viHXAOJs.js} +1 -1
  78. package/dist/client/_nuxt/{A4w2ZRz2.js → yFeWtr-M.js} +1 -1
  79. package/dist/client/_nuxt/z0xAc3RC.js +1 -0
  80. package/dist/client/_nuxt/{C8k43jHS.js → zLQhdF7m.js} +1 -1
  81. package/dist/client/_nuxt/{CDN3PKDC.js → zjxoDR5L.js} +1 -1
  82. package/dist/client/index.html +27 -27
  83. package/dist/module.json +1 -1
  84. package/dist/runtime/auth/index.html +2 -12
  85. package/dist/runtime/function-metrics-helpers.mjs +1 -1
  86. package/dist/runtime/plugins/view/Main.vue +1 -1
  87. package/dist/runtime/plugins/view/client.mjs +3 -3
  88. package/dist/runtime/plugins/view/utils.mjs +10 -6
  89. package/package.json +35 -35
  90. package/dist/client/_nuxt/9vVlwvR0.js +0 -9
  91. package/dist/client/_nuxt/BHNRcs4v.js +0 -1
  92. package/dist/client/_nuxt/BMkcc7VF.js +0 -1
  93. package/dist/client/_nuxt/C8cCu25J.js +0 -1
  94. package/dist/client/_nuxt/C9duD8Qg.js +0 -1
  95. package/dist/client/_nuxt/CVnen6aX.js +0 -1
  96. package/dist/client/_nuxt/CZLRDnsa.js +0 -1
  97. package/dist/client/_nuxt/DDT2yUXF.js +0 -98
  98. package/dist/client/_nuxt/DMEbMliD.js +0 -1
  99. package/dist/client/_nuxt/DbOyCHOq.js +0 -16
  100. package/dist/client/_nuxt/DeJGQFsa.js +0 -1
  101. package/dist/client/_nuxt/Dp08BkoM.js +0 -2
  102. package/dist/client/_nuxt/builds/meta/a9356a90-0031-4b93-8375-47585faa7c3c.json +0 -1
  103. package/dist/client/_nuxt/eUQ_X7Id.js +0 -43
  104. package/dist/client/_nuxt/entry.hxdKUDpu.css +0 -1
  105. package/dist/client/_nuxt/error-404.D-YMsRWn.css +0 -1
  106. package/dist/client/_nuxt/error-500.B8squ7MD.css +0 -1
  107. package/dist/client/_nuxt/s9jguXLC.js +0 -9
  108. package/dist/client/_nuxt/timeline.DvDJbalt.css +0 -1
@@ -1 +0,0 @@
1
- import{d as w,h as a,j as o,A as y,o as t,i as r,k as i,t as m,p as l,m as C,n as B,ax as V,v as $,F as v,V as P,bY as F,a6 as I,_ as L,as as T}from"./eUQ_X7Id.js";import{_ as j}from"./b-sJbkBg.js";const A={"text-xl":""},D={flex:"~ gap2 wrap"},S=w({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(_,{emit:p}){const d=_,u=p;function f(e,s){P("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const k=F,g=j,h=I,b=L,N=T,x=y;return t(),a(x,null,{default:o(()=>[r(N,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:o(()=>[r(k,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",A,m(e.title),1),e.description?(t(),a(g,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):l("",!0),i("div",D,[(t(!0),C(v,null,B(e.actions,(n,c)=>(t(),a(b,V({key:c,n:"solid primary",disabled:n.pending,to:n.src,target:n.src?"_blank":void 0,ref_for:!0},n.attrs,{onClick:E=>f(n,c)}),{default:o(()=>[n.pending?(t(),a(h,{key:0,icon:"carbon-circle-dash","animate-spin":""})):l("",!0),$(" "+m(n.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{S as _};
@@ -1,16 +0,0 @@
1
- import{d as q,a0 as te,r as E,a1 as J,a2 as ne,m as r,I as X,i as d,f as t,k as e,v as D,F as M,n as Z,h as V,j as x,p as I,G as Q,a3 as pe,a4 as me,V as fe,L as W,M as H,a5 as O,_ as oe,o as s,a6 as se,X as ae,a as S,a7 as ve,a8 as he,a9 as ie,t as F,aa as _e,l as R,b as le,ab as ge,e as xe,ac as be,ad as we,ae as ye,af as $e,Z as ke,ag as Ce,ah as Ve,ai as Pe,aj as Ae,ak as De}from"./eUQ_X7Id.js";import{_ as Fe}from"./CktVnUy9.js";import{_ as Ne}from"./2e6xxFgg.js";import{_ as Ie}from"./BgweL_3l.js";import{_ as Se}from"./CHDbzgkk.js";import{_ as Te}from"./CDN3PKDC.js";import{_ as Ue}from"./D8-i-l8m.js";import{_ as je}from"./BMkcc7VF.js";import{D as Ee}from"./BcJws1i5.js";import"./C8k43jHS.js";import"./Ctb-QkcA.js";import"./A4w2ZRz2.js";const Le={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Be={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},Me={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},ze=e("div",{px6:"",py6:""},[e("h1",{"text-2xl":""}," Upload "),e("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1),Oe={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Re={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Ke=["src"],Xe={flex:"~ gap1","items-center":""},Ge={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ze=q({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(B){const l=B,m=te(l,"modelValue"),$=E(),o=E([]);function f(a){$.value=a.target,m.value=!0}function b(a){a.target===$.value&&(m.value=!1)}function T(a){a.preventDefault()}function P(a){a.preventDefault(),v(a.dataTransfer.files)}function v(a){const _=Array.from(a||[]);if(_.length){const g=[],w=o.value.map(i=>i.name);for(const i of _)if(w.includes(i.name)){let A=1;const[y,U]=i.name.split(".");for(;w.includes(`${y} (${A}).${U}`);)A++;const K=`${y}-${A}.${U}`,c=new Blob([i],{type:i.type}),n=new File([c],K,{lastModified:Date.now()});g.push(n),w.push(K)}else i.type===""&&O({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),g.push(i);o.value=[...o.value,...g]}}async function L(){if(pe.value||me.value)return;fe("assets:upload");const a=[];for(const _ of o.value){const g=new FileReader;g.readAsDataURL(_);const i=(await new Promise(A=>{g.onload=()=>A(g.result)})).split(";base64,").pop();a.push({path:_.name,encoding:"base64",content:i})}await W.writeStaticAssets(await H(),[...a],l.folder).then(()=>{p(),O({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(_=>{p(),O({message:`Error uploading files: ${_?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),m.value=!1}function G(a){o.value?.splice(a,1)}function z(a){return URL.createObjectURL(a)}function h(a,_){const[g,w]=a.name.split("."),i=_.replace(/\.\w+$/,""),A=`${i}.${w}`;return i.length===0?(alert("File name must be at least 1 characters long"),g):(Object.defineProperty(a,"name",{value:A,writable:!1}),o.value.splice(o.value.indexOf(a),1,a),a)}function u(){o.value=[]}function p(){m.value=!1,u()}return J("dragenter",f),J("dragleave",b),J("dragover",T),J("drop",P),(a,_)=>{const g=oe,w=se,i=ae,A=ne("tooltip");return s(),r("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:Q(t(m)?"opacity-100 visible":"opacity-0 invisible")},[X(d(g,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:p},null,512),[[A,"Close",void 0,{"bottom-end":!0}]]),t(o)?.length?(s(),r("div",Me,[ze,e("div",Oe,[(s(!0),r(M,null,Z(t(o),(y,U)=>(s(),r("div",{key:y.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[e("div",Re,[e("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:z(y)},null,8,Ke)]),e("div",Xe,[d(i,{n:"xs","h-full":"","flex-auto":"","model-value":y.name,"onUpdate:modelValue":K=>h(y,K.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(g,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:K=>G(U)},null,8,["onClick"])])]))),128))]),e("div",Ge,[t(o).length?(s(),V(g,{key:0,n:"red",onClick:u},{default:x(()=>[d(w,{icon:"carbon-clean"}),D(" Clear ")]),_:1})):I("",!0),d(g,{disabled:!t(o).length,n:"primary solid",onClick:L},{default:x(()=>[d(w,{icon:"carbon-cloud-upload"}),D(" Upload ")]),_:1},8,["disabled"])])])):(s(),r("div",Le,[e("label",Be,[d(w,{icon:"carbon-cloud-upload","mr-2":""}),D(" Drop files here or click to select ")]),e("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:_[0]||(_[0]=y=>v(y.target.files))},null,32)]))],2)}}}),qe=q({__name:"AssetFontPreview",props:{asset:{}},setup(B){const l=B,m=S(()=>`devtools-assets-${ve(l.asset)}`);return he(S(()=>`
2
- @font-face {
3
- font-family: '${m.value}';
4
- src: url('${l.asset.publicPath}');
5
- }
6
- `)),($,o)=>(s(),r("div",{"of-hidden":"",style:ie({fontFamily:`'${t(m)}'`})}," Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz ",4))}}),We={flex:"","items-center":"","justify-center":"","of-hidden":"","bg-active":"","object-cover":"",p1:""},He=["src"],Je={key:2,"i-carbon-document":"","text-3xl":"",op20:""},Qe={key:3,"w-full":"","self-start":"",p4:""},Ye=["textContent"],et={key:4},tt=["src","autoplay","controls"],nt={key:5},ot={key:0,"i-carbon-volume-up":"","text-3xl":"",op20:""},st=["src"],lt={key:6,"i-carbon-help":"","text-3xl":"",op20:""},re=q({__name:"AssetPreview",props:{asset:{},textContent:{},detail:{type:Boolean}},setup(B){return(l,m)=>{const $=qe;return s(),r("div",We,[l.asset.type==="image"?(s(),r("img",{key:0,src:l.asset.publicPath},null,8,He)):l.asset.type==="font"?(s(),V($,{key:l.asset.publicPath,asset:l.asset,"self-stretch":"",p2:"","text-2xl":""},null,8,["asset"])):l.asset.type==="text"&&!l.textContent?(s(),r("div",Je)):l.asset.type==="text"&&l.textContent?(s(),r("div",Qe,[e("pre",{"max-h-10rem":"","of-hidden":"","text-xs":"","font-mono":"",textContent:F(l.textContent)},null,8,Ye)])):l.asset.type==="video"?(s(),r("div",et,[e("video",{src:l.asset.publicPath,autoplay:l.detail,controls:l.detail},null,8,tt)])):l.asset.type==="audio"?(s(),r("div",nt,[l.detail?(s(),r("audio",{key:1,src:l.asset.publicPath,controls:""},null,8,st)):(s(),r("div",ot))])):(s(),r("div",lt))])}}}),at={relative:"",flex:"~ col gap-1",hover:"bg-active","items-center":"","of-hidden":"",rounded:"",p2:""},it={"w-full":"","of-hidden":"",truncate:"","ws-nowrap":"","text-center":"","text-xs":""},rt=q({__name:"AssetGridItem",props:{asset:{},folder:{}},setup(B){const l=B,m=S(()=>l.folder&&l.asset.path.startsWith(l.folder)?l.asset.path.slice(l.folder.length):l.asset.path);return($,o)=>{const f=se,b=re;return s(),r("button",at,[$.asset.layer?(s(),V(f,{key:0,icon:"i-carbon-layers",absolute:"","right-4":"","top-4":"","bg-primary":""})):I("",!0),d(b,{"h-30":"","w-30":"",rounded:"",border:"~ base",asset:$.asset},null,8,["asset"]),e("div",it,F(t(m)),1)])}}}),ue=q({__name:"AssetListItem",props:{item:{},index:{default:0},modelValue:{}},setup(B,{emit:l}){const m=B,o=te(m,"modelValue",l,{passive:!0}),f=S(()=>m.item?.children?.length),b=E(!0),T=S(()=>f.value?"i-carbon-folder":m.item.type==="image"?"i-carbon-image":m.item.type==="video"?"i-carbon-video":m.item.type==="audio"?"i-carbon-volume-up":m.item.type==="font"?"i-carbon-text-small-caps":m.item.type==="text"?"i-carbon-document":m.item.type==="json"?"i-carbon-json":"i-carbon-document-blank");return(P,v)=>{const L=se,G=ue;return s(),r("div",null,[e("button",{flex:"~ gap-2","w-full":"","items-center":"",hover:"bg-active",px4:"",py1:"",style:ie({paddingLeft:`calc(1rem + ${P.index*1.5}em)`}),class:Q({"bg-active":!t(f)&&t(o)?.filePath===P.item?.filePath}),border:"b base",onClick:v[0]||(v[0]=z=>t(f)?b.value=!t(b):o.value=P.item)},[e("div",{class:Q(t(T))},null,2),e("span",{class:Q({"flex items-center":t(f)}),"flex-auto":"","text-start":"","text-sm":"","font-mono":""},[D(F(P.item.path)+" ",1),P.item.layer?(s(),V(L,{key:0,icon:"i-carbon-layers","bg-primary":""})):I("",!0)],2),t(f)?(s(),V(L,{key:0,icon:"carbon:chevron-right","transform-rotate":t(b)?90:0,transition:""},null,8,["transform-rotate"])):I("",!0)],6),t(b)?_e(P.$slots,"default",{key:0},()=>[(s(!0),r(M,null,Z(P.item?.children,z=>(s(),V(G,{key:z.filepath,modelValue:t(o),"onUpdate:modelValue":v[1]||(v[1]=h=>R(o)?o.value=h:null),item:z,index:P.index+1},null,8,["modelValue","item","index"]))),128))]):I("",!0)])}}}),ut={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},ct=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Preview "),e("div",{"x-divider":""})],-1),dt={flex:"~","items-center":"","justify-center":""},pt=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Details "),e("div",{"x-divider":""})],-1),mt={"max-w-full":"","w-full":"","table-fixed":""},ft=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Filepath ",-1),vt={flex:"~ gap-1","w-full":"","items-center":""},ht=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Public Path ",-1),_t={flex:"~ gap-1","w-full":"","items-center":"","of-hidden":""},gt={"flex-auto":"","of-hidden":"",truncate:"","ws-pre":"","font-mono":""},xt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Type ",-1),bt={capitalize:""},wt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Image Size ",-1),yt={key:0},$t=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Aspect Ratio ",-1),kt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," File size ",-1),Ct=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Last modified ",-1),Vt={op70:""},Pt=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Actions "),e("div",{"x-divider":""})],-1),At={flex:"~ gap2 wrap"},Dt=e("div",{"flex-auto":""},null,-1),Ft={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},Nt=e("span",null," Are you sure you want to delete this asset? ",-1),It={flex:"~ gap2 wrap justify-center"},St={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},Tt={flex:"~ gap2 wrap justify-center"},Ut={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},jt={flex:"","justify-end":"","gap-4":""},Et=q({__name:"AssetDetails",props:{modelValue:{}},setup(B,{emit:l}){const o=te(B,"modelValue",l,{passive:!0}),f=le(async()=>{if(o.value.type==="image")return W.getImageMeta(await H(),o.value.filePath)}),b=E(!1),T=E(),P=E(0),v=le(async()=>{if(o.value.type!=="text")return;P.value;const c=await W.getTextAssetContent(await H(),o.value.filePath);return T.value=c,c});async function L(){if(v.value!==T.value)try{await W.writeStaticAssets(await H(),[{path:o.value.path,content:T.value,override:!0}],""),b.value=!1,P.value++,O({message:"Updated",icon:"i-carbon-checkmark",classes:"text-green"})}catch{O({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const G=ge(),z=S(()=>(G.value?._installedModules||[]).some(n=>n.meta?.name==="@nuxt/image"||n.meta?.name==="@nuxt/image-edge")),h=S(()=>{const c=[];if(o.value.type==="image"){const n=f.value?.width?`
7
- width="${f.value.width}"
8
- height="${f.value.height}" `:" ";return c.push({lang:"vue-html",code:`<img${n}
9
- src="${o.value.publicPath}"
10
- />`,name:"Plain Image"}),z.value&&c.push({lang:"vue-html",code:`<NuxtImg${n}
11
- src="${o.value.publicPath}"
12
- />`,name:"Nuxt Img",docs:"https://image.nuxt.com/usage/nuxt-img"},{lang:"vue-html",code:`<NuxtPicture${n}
13
- src="${o.value.publicPath}"
14
- />`,name:"Nuxt Picture",docs:"https://image.nuxt.com/usage/nuxt-picture"}),c}return c.push({lang:"html",code:`<a download href="${o.value.publicPath}">
15
- Download ${o.value.path.split("/").slice(-1)[0]}
16
- </a>`,name:"Download link"}),c}),u=xe(),p=be(),a=we(()=>o.value.mtime),_=S(()=>{const c=o.value.size;return c<1024?`${c} B`:c<1024*1024?`${(c/1024).toFixed(2)} KB`:`${(c/1024/1024).toFixed(2)} MB`}),g=S(()=>{if(!f.value?.width||!f.value?.height)return"";const c=(k,j)=>j?c(j,k%j):k,n=c(f.value.width,f.value.height);return n>3?`${f.value.width/n}:${f.value.height/n}`:""}),w=S(()=>["image","text","video","audio","font"].includes(o.value.type)),i=E(!1);async function A(){try{await W.deleteStaticAsset(await H(),o.value.filePath),o.value=void 0,i.value=!1,O({message:"Asset deleted",icon:"i-carbon-checkmark",classes:"text-green"})}catch{O({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const y=E(!1),U=E("");async function K(){const c=o.value.filePath.split("/"),n=c.slice(-1)[0].split(".").slice(0,-1).join(".");if(!U.value||U.value===n)return O({message:"Please enter a new name",icon:"i-carbon-warning",classes:"text-orange"});try{const k=c.slice(-1)[0].split(".").slice(-1)[0],j=`${c.slice(0,-1).join("/")}/${U.value}.${k}`;await W.renameStaticAsset(await H(),o.value.filePath,j),o.value=void 0,y.value=!1,O({message:"Asset renamed",icon:"i-carbon-checkmark",classes:"text-green"})}catch{O({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}return(c,n)=>{const k=re,j=Te,N=oe,ce=Ue,Y=ke,de=ae,ee=ne("tooltip");return s(),r(M,null,[e("div",ut,[t(w)?(s(),r(M,{key:0},[ct,e("div",dt,[d(k,{detail:"","max-h-80":"","min-h-20":"","min-w-20":"","w-auto":"",rounded:"",border:"~ base",asset:t(o),"text-content":t(v)},null,8,["asset","text-content"])])],64)):I("",!0),pt,e("table",mt,[e("tbody",null,[e("tr",null,[ft,e("td",null,[e("div",vt,[d(j,{filepath:t(o).filePath,"text-left":""},null,8,["filepath"]),X(d(N,{"flex-none":"",title:"Open in Editor",icon:"carbon-launch",border:!1,onClick:n[0]||(n[0]=C=>t(p)(t(o).filePath))},null,512),[[ee,"Open in Editor"]])])])]),e("tr",null,[ht,e("td",null,[e("div",_t,[e("div",gt,F(t(o).publicPath),1),X(d(N,{"flex-none":"",title:"Copy public path",icon:"carbon-copy",border:!1,onClick:n[1]||(n[1]=C=>t(u)(t(o).publicPath,"assets-public-path"))},null,512),[[ee,"Copy public path"]]),X(d(N,{"flex-none":"",to:t(o).publicPath,icon:"carbon-launch",target:"_blank",border:!1,title:"Open in browser"},null,8,["to"]),[[ee,"Open in browser"]])])])]),e("tr",null,[xt,e("td",bt,F(t(o).type),1)]),t(f)?.width?(s(),r(M,{key:0},[e("tr",null,[wt,e("td",null,F(t(f).width)+" x "+F(t(f).height),1)]),t(g)?(s(),r("tr",yt,[$t,e("td",null,F(t(g)),1)])):I("",!0)],64)):I("",!0),e("tr",null,[kt,e("td",null,F(t(_)),1)]),e("tr",null,[Ct,e("td",null,[D(F(new Date(t(o).mtime).toLocaleString())+" ",1),e("span",Vt,"("+F(t(a))+")",1)])])])]),Pt,e("div",At,[d(N,{to:t(o).publicPath,download:"",target:"_blank",icon:"carbon-download",n:"green"},{default:x(()=>[D(" Download ")]),_:1},8,["to"]),t(o).type==="text"?(s(),V(N,{key:0,icon:"carbon-edit",n:"cyan",onClick:n[2]||(n[2]=C=>b.value=!t(b))},{default:x(()=>[D(" Edit ")]),_:1})):I("",!0),d(N,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:n[3]||(n[3]=C=>y.value=!t(y))},{default:x(()=>[D(" Rename ")]),_:1}),d(N,{icon:"carbon-delete",n:"red",onClick:n[4]||(n[4]=C=>i.value=!t(i))},{default:x(()=>[D(" Delete ")]),_:1})]),Dt,t(h).length?(s(),V(ce,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":t(h)},null,8,["code-snippets"])):I("",!0)]),d(Y,{modelValue:t(i),"onUpdate:modelValue":n[6]||(n[6]=C=>R(i)?i.value=C:null)},{default:x(()=>[e("div",Ft,[Nt,e("div",It,[d(N,{icon:"carbon-close",onClick:n[5]||(n[5]=C=>i.value=!1)},{default:x(()=>[D(" Cancel ")]),_:1}),d(N,{icon:"carbon-delete",n:"red",onClick:A},{default:x(()=>[D(" Delete ")]),_:1})])])]),_:1},8,["modelValue"]),d(Y,{modelValue:t(y),"onUpdate:modelValue":n[9]||(n[9]=C=>R(y)?y.value=C:null)},{default:x(()=>[e("div",St,[d(de,{modelValue:t(U),"onUpdate:modelValue":n[7]||(n[7]=C=>R(U)?U.value=C:null),placeholder:"New name",n:"blue"},null,8,["modelValue"]),e("div",Tt,[d(N,{icon:"carbon-close",onClick:n[8]||(n[8]=C=>y.value=!1)},{default:x(()=>[D(" Cancel ")]),_:1}),d(N,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:K},{default:x(()=>[D(" Rename ")]),_:1})])])]),_:1},8,["modelValue"]),t(o).type==="text"?(s(),V(Y,{key:0,modelValue:t(b),"onUpdate:modelValue":n[12]||(n[12]=C=>R(b)?b.value=C:null)},{default:x(()=>[e("div",Ut,[X(e("textarea",{"onUpdate:modelValue":n[10]||(n[10]=C=>R(T)?T.value=C:null),placeholder:"Item value...",class:"h-lg w-xl of-auto rounded-lg p-4 text-sm font-mono outline-none",onKeydown:ye(L,["enter"])},null,544),[[$e,t(T)]]),e("div",jt,[d(N,{icon:"carbon-close",onClick:n[11]||(n[11]=C=>b.value=!1)},{default:x(()=>[D(" Cancel ")]),_:1}),d(N,{icon:"carbon:save",n:"primary",onClick:L},{default:x(()=>[D(" save ")]),_:1})])])]),_:1},8,["modelValue"])):I("",!0)],64)}}}),Lt={"h-full":"","of-auto":""},Bt={"flex-none":"",flex:"~ gap2 items-center","text-lg":""},Mt={flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--1":"","h-4":"","w-4":"","rounded-full":"","bg-primary:30":"","text-8px":""},zt={flex:"~ col","w-30":"","of-auto":""},Ot={"text-xs":"",op75:""},Rt={op50:""},Kt={key:0},Xt={"mt--4":"",px2:"",grid:"~ cols-minmax-8rem"},Gt={key:1,p2:"",grid:"~ cols-minmax-8rem"},Zt={key:1},an=q({__name:"assets",setup(B){const l=Ce(),m=E(!1),$=E(""),o=S(()=>new Ve(l.value||[],{keys:["path"]})),f=Pe(()=>{const h=[];for(const u of l.value||[]){const p=u.path.split(".").pop();p&&!h.find(a=>a.name===p)&&h.push({name:p,value:!0})}return h}),b=S(()=>($.value?o.value.search($.value).map(u=>u.item):l.value||[]).filter(u=>{const p=u.path.split(".").pop();return!p||f.some(a=>a.name===p&&a.value)})),T=S(()=>{const h={};for(const u of b.value){const p=`${u.path.split("/").slice(0,-1).join("/")}/`;h[p]||(h[p]=[]),h[p].push(u)}return Object.entries(h).sort(([u],[p])=>u.localeCompare(p))}),P=S(()=>{const h={path:"public",children:[]},u=(p,a,_)=>{const[g,...w]=a;let i=p.children.find(A=>A.path===g);i||(i={..._,path:g,children:[]},p.children.push(i)),w.length>1?u(i,w,_):w.length===1&&i.children.push({..._,path:w[0]})};return b.value.forEach(p=>{const a=p.path.split("/").filter(_=>_!=="");u(h,a,p)}),h.children}),v=E(),{view:L}=De("assets");function G(){L.value=L.value==="list"?"grid":"list"}Ae("Escape",()=>{v.value=void 0});const z=E();return(h,u)=>{const p=oe,a=Fe,_=Ne,g=Ie,w=Ze,i=rt,A=Se,y=ue,U=Et,K=je,c=ne("tooltip");return s(),r("div",Lt,[d(g,{ref_key:"navbar",ref:z,search:t($),"onUpdate:search":u[1]||(u[1]=n=>R($)?$.value=n:null),pb2:""},{actions:x(()=>[e("div",Bt,[X(d(p,{icon:"carbon:cloud-upload",title:"File Upload",border:!1,onClick:u[0]||(u[0]=n=>m.value=!t(m))},null,512),[[c,"File Upload",void 0,{"bottom-end":!0}]]),t(f).length?(s(),V(_,{key:0,direction:"end",n:"sm primary"},{trigger:x(({click:n})=>[X(d(p,{icon:"carbon-filter",border:!1,title:"Filter",p3:"","text-lg":"",onClick:k=>n()},null,8,["onClick"]),[[c,"Filter",void 0,{"bottom-end":!0}]]),e("span",Mt,F(t(f).length),1)]),default:x(()=>[e("div",zt,[(s(!0),r(M,null,Z(t(f),n=>(s(),V(a,{key:n.name,modelValue:n.value,"onUpdate:modelValue":k=>n.value=k,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:x(()=>[e("span",Ot,F(n.name),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):I("",!0),X(d(p,{"text-lg":"",border:!1,icon:t(L)==="grid"?"i-carbon-list":"i-carbon-grid",title:"Toggle view",onClick:G},null,8,["icon"]),[[c,"Toggle View",void 0,{"bottom-end":!0}]])])]),default:x(()=>[e("div",Rt,[t($)?(s(),r("span",Kt,F(t(b).length)+" matched · ",1)):I("",!0),e("span",null,F(t(l)?.length)+" assets in total",1)])]),_:1},8,["search"]),d(w,{modelValue:t(m),"onUpdate:modelValue":u[2]||(u[2]=n=>R(m)?m.value=n:null),folder:"/"},null,8,["modelValue"]),t(L)==="grid"?(s(),r(M,{key:0},[t(T).length>1?(s(!0),r(M,{key:0},Z(t(T),([n,k])=>(s(),V(A,{key:n,text:n,description:`${k.length} items`,open:k.length<=("DETAILS_MAX_ITEMS"in h?h.DETAILS_MAX_ITEMS:t(Ee)),padding:!1},{default:x(()=>[e("div",Xt,[(s(!0),r(M,null,Z(k,j=>(s(),V(i,{key:j.path,asset:j,folder:n,onClick:N=>v.value=j},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(s(),r("div",Gt,[(s(!0),r(M,null,Z(t(b),n=>(s(),V(i,{key:n.path,asset:n,onClick:k=>v.value=n},null,8,["asset","onClick"]))),128))]))],64)):(s(),r("div",Zt,[(s(!0),r(M,null,Z(t(P),(n,k)=>(s(),V(y,{key:k,modelValue:t(v),"onUpdate:modelValue":u[3]||(u[3]=j=>R(v)?v.value=j:null),item:n},null,8,["modelValue","item"]))),128))])),d(K,{"model-value":!!t(v),"auto-close":"","w-120":"",top:t(z),onClose:u[5]||(u[5]=n=>v.value=void 0)},{default:x(()=>[t(v)?(s(),V(U,{key:0,modelValue:t(v),"onUpdate:modelValue":u[4]||(u[4]=n=>R(v)?v.value=n:null)},null,8,["modelValue"])):I("",!0)]),_:1},8,["model-value","top"])])}}});export{an as default};
@@ -1 +0,0 @@
1
- import{d as M,am as V,ab as L,aM as R,b8 as T,b9 as P,P as E,a as w,h as m,j as n,A as O,o as s,f as e,m as c,k as t,i,t as r,p as l,F as h,ba as f,bb as x,bc as $,v as a,aH as F,D as H,M as W,E as G,x as K,Y as U,_ as Y}from"./eUQ_X7Id.js";import{u as q,_ as J}from"./C8cCu25J.js";import{u as Q}from"./CeCFyH2L.js";import"./OAG_rOo8.js";import"./Ctb-QkcA.js";import"./A4w2ZRz2.js";import"./CktVnUy9.js";const X="1.3.9",Z={key:0},tt={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p5:"",px5:"","md:px20":""},et=t("div",{"flex-auto":""},null,-1),ot={flex:"~ col","mt-5":"","items-center":"","md:mt-20":""},nt=t("span",{op40:""}," Nuxt DevTools ",-1),st={op40:""},at={flex:"~ gap2 wrap"},it=t("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),lt=t("div",{"logos-vue":"","text-3xl":""},null,-1),ut=t("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1),rt=t("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),dt=t("div",{"carbon-function":"","text-3xl":""},null,-1),ct=t("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1),pt=t("div",{"carbon-plug":"","text-3xl":""},null,-1),_t={key:5,"pointer-events-none":"","min-w-40":"",p4:"","theme-card-lime":"",flex:"~ auto gap-6"},mt=t("div",{"i-carbon-time-plot":"","flex-none":"","text-3xl":""},null,-1),ht={grid:"~ cols-[auto_auto] gap-x-5 items-center"},ft=t("div",{"text-sm":""}," SSR to full load ",-1),xt={"text-right":""},vt=t("div",{"text-sm":""}," Page load ",-1),gt={"text-right":""},bt=t("div",{"text-sm":""}," Navigation ",-1),kt={"text-right":""},yt=t("div",{"text-sm":""}," HMR ",-1),Ct={"text-right":""},wt={flex:"~ col gap2"},Dt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},Bt=t("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[t("div",{"i-carbon-star":""}),a(" Star on GitHub ")],-1),St=t("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[t("div",{"i-carbon-data-enrichment":""}),a(" Ideas & Suggestions ")],-1),zt=t("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[t("div",{"i-carbon-plan":""}),a(" Project Roadmap ")],-1),Nt=t("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[t("div",{"i-carbon-debug":""}),a(" Bug Reports ")],-1),At=t("div",{"i-carbon-settings-adjust":""},null,-1),jt=t("div",{"flex-auto":""},null,-1),It={flex:"col gap-2",mxa:"",hidden:"","w-100":"","text-sm":"",op50:"","md:flex":""},Mt={flex:"~ gap-1","items-center":""},Vt=t("span",null,"+",-1),Lt=t("span",null,"+",-1),Rt=t("div",{"flex-auto":""},null,-1),Tt={flex:"~ gap-1","items-center":""},Pt=t("span",null,"+",-1),Et=t("span",null,"+",-1),Ot=t("span",null,"+",-1),$t=t("span",null,"+",-1),Ft=t("div",{"flex-auto":""},null,-1),Ht=t("div",null,"Toggle DevTools",-1),Zt=M({__name:"overview",setup(Wt){const v=V(),p=L(),D=Q(),g=R(),B=q(),S=T(),b=P(),z=E();function N(){H.value=!0,z.push("/")}const k=w(()=>v.value?.nuxt.vueApp.version),u=w(()=>v.value?.metrics.loading());function A(){W()}return(o,Gt)=>{const j=G,_=K,y=J,C=U,d=Y,I=O;return s(),m(I,{"h-screen":"","w-full":"",flex:""},{default:n(()=>[e(p)?(s(),c("div",tt,[et,t("div",ot,[i(_,{flex:"~","mt--10":"","items-center":"","justify-center":"",to:"https://devtools.nuxt.com/",target:"_blank"},{default:n(()=>[i(j,{"h-10":""})]),_:1}),t("button",{mb6:"",mt3:"","text-center":"","text-sm":"",flex:"~ gap-1 wrap",onClick:N},[nt,t("code",st,"v"+r(e(X)),1),i(y,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),t("div",at,[i(_,{to:"https://nuxt.com",target:"_blank",p4:"","theme-card-green":"",flex:"~ col auto"},{default:n(()=>[it,i(y,{"package-name":"nuxt",options:{dev:!0}})]),_:1}),e(k)?(s(),m(_,{key:0,to:"https://vuejs.org",target:"_blank",p4:"","theme-card-green":"",flex:"~ col auto"},{default:n(()=>[lt,t("code",null,"v"+r(e(k)),1)]),_:1})):l("",!0),e(p)?(s(),c(h,{key:1},[e(p)&&e(p).pages&&e(v)?(s(),m(_,{key:0,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/pages"},{default:n(()=>[ut,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(S).length,"page")),1)]),_:1})):l("",!0),e(p)?(s(),m(_,{key:1,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/components"},{default:n(()=>[rt,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(D).length,"component")),1)]),_:1})):l("",!0),e(p)&&e(g)?(s(),m(_,{key:2,"min-w-40":"",p4:"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:n(()=>[dt,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(g).imports.length,"import")),1)]),_:1})):l("",!0),e(p)?(s(),m(_,{key:3,"min-w-40":"",p4:"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:n(()=>[ct,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(B).length,"module")),1)]),_:1})):l("",!0),e(p)?(s(),m(_,{key:4,"min-w-40":"",p4:"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:n(()=>[pt,t("div",null,r(("pluralizeByCount"in o?o.pluralizeByCount:e(f))(e(p).plugins.length,"plugin")),1)]),_:1})):l("",!0),e(u)?(s(),c("div",_t,[mt,t("div",ht,[e(u).ssrStart?(s(),c(h,{key:0},[ft,t("div",xt,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).appLoad-e(u).ssrStart)),1)],64)):l("",!0),vt,t("div",gt,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).appLoad-e(u).appInit)),1),bt,t("div",kt,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).pageEnd-e(u).pageStart)),1),e(u).hmrStart?(s(),c(h,{key:1},[yt,t("div",Ct,r(("formatDuration"in o?o.formatDuration:e(x))(e(u).hmrEnd-e(u).hmrStart)),1)],64)):l("",!0)])])):l("",!0)],64)):l("",!0)]),t("div",wt,[("showConnectionWarning"in o?o.showConnectionWarning:e($))?(s(),m(C,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:n(()=>[a(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")]),_:1})):l("",!0),t("button",{title:"Authorize",onClick:A},[("isDevAuthed"in o?o.isDevAuthed:e(F))?l("",!0):(s(),m(C,{key:0,n:"orange5",icon:"i-carbon-locked","justify-center":""},{default:n(()=>[a(" Access from an untrusted browser, some features are limited. Click to authorize now. ")]),_:1}))])]),t("div",Dt,[Bt,St,zt,Nt,i(_,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:n(()=>[At,a(" Settings ")]),_:1})]),jt,t("div",It,[t("div",Mt,[e(b)?(s(),c(h,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" ⌘ Cmd ")]),_:1}),Vt,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" K ")]),_:1})],64)):(s(),c(h,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" Ctrl ")]),_:1}),Lt,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" K ")]),_:1})],64)),Rt,a(" Open Command Palette ")]),t("div",Tt,[e(b)?(s(),c(h,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" ⇧ Shift ")]),_:1}),Pt,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" ⌥ Option ")]),_:1}),Et,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" D ")]),_:1})],64)):(s(),c(h,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" Shift ")]),_:1}),Ot,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" Alt ")]),_:1}),$t,i(d,{n:"xs",class:"px2"},{default:n(()=>[a(" D ")]),_:1})],64)),Ft,Ht])])])):(s(),c("div",Z," Loading... "))]),_:1})}}});export{Zt as default};
@@ -1,2 +0,0 @@
1
- import{$ as Ce}from"./eUQ_X7Id.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 +0,0 @@
1
- {"id":"a9356a90-0031-4b93-8375-47585faa7c3c","timestamp":1719936947096,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}