@nuxt/devtools 0.8.3 → 0.8.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 (99) hide show
  1. package/README.md +4 -4
  2. package/dist/chunks/module-main.mjs +2 -2
  3. package/dist/chunks/vscode.mjs +1 -1
  4. package/dist/client/200.html +17 -17
  5. package/dist/client/404.html +17 -17
  6. package/dist/client/__blank/index.html +17 -17
  7. package/dist/client/_nuxt/{Badge.efa8b534.js → Badge.a4bd58d4.js} +1 -1
  8. package/dist/client/_nuxt/{CodeDiff.vue.52d6bbaa.js → CodeDiff.vue.a8c9e639.js} +1 -1
  9. package/dist/client/_nuxt/{ComposableItem.vue.1525d3d2.js → ComposableItem.vue.bd112256.js} +1 -1
  10. package/dist/client/_nuxt/{DataSchemaButton.vue.dabda5da.js → DataSchemaButton.vue.fbb61806.js} +1 -1
  11. package/dist/client/_nuxt/{DataSchemaDrawer.345f79f6.js → DataSchemaDrawer.f84a2081.js} +6 -5
  12. package/dist/client/_nuxt/{DrawerRight.vue.e75b5510.js → DrawerRight.vue.b9dc765f.js} +1 -1
  13. package/dist/client/_nuxt/{DurationDisplay.vue.73c682ac.js → DurationDisplay.vue.1f34b658.js} +1 -1
  14. package/dist/client/_nuxt/{FilepathItem.vue.253590ec.js → FilepathItem.vue.a4d269b8.js} +1 -1
  15. package/dist/client/_nuxt/{HelpFab.vue.b3c1cf3a.js → HelpFab.vue.c0c3f8e6.js} +1 -1
  16. package/dist/client/_nuxt/{LaunchPage.vue.45c2e269.js → LaunchPage.vue.012ddba7.js} +1 -1
  17. package/dist/client/_nuxt/NCheckbox.vue.0e359f85.js +1 -0
  18. package/dist/client/_nuxt/{NCodeBlock.vue.28dd841e.js → NCodeBlock.vue.01eb6d1c.js} +1 -1
  19. package/dist/client/_nuxt/{NDropdown.vue.36b68b91.js → NDropdown.vue.b3117df4.js} +1 -1
  20. package/dist/client/_nuxt/{NIconTitle.vue.635c5682.js → NIconTitle.vue.79485c3a.js} +1 -1
  21. package/dist/client/_nuxt/{NLink.vue.19da93af.js → NLink.vue.6dc3b4af.js} +1 -1
  22. package/dist/client/_nuxt/{NMarkdown.vue.283d6615.js → NMarkdown.vue.7a10e6e6.js} +1 -1
  23. package/dist/client/_nuxt/{NSectionBlock.e780f891.js → NSectionBlock.2d8e1431.js} +1 -1
  24. package/dist/client/_nuxt/{NSelect.vue.60befa30.js → NSelect.vue.9cac29ef.js} +1 -1
  25. package/dist/client/_nuxt/{NSelectTabs.vue.1cae281d.js → NSelectTabs.vue.72adf277.js} +1 -1
  26. package/dist/client/_nuxt/{NSwitch.vue.eb1bdf97.js → NSwitch.vue.67a4fdb0.js} +1 -1
  27. package/dist/client/_nuxt/{NTip.vue.eef318b6.js → NTip.vue.d505e897.js} +1 -1
  28. package/dist/client/_nuxt/{Navbar.vue.d85c454f.js → Navbar.vue.8dc15d25.js} +1 -1
  29. package/dist/client/_nuxt/{StateEditor.vue.83907c9e.js → StateEditor.vue.2463efc9.js} +1 -1
  30. package/dist/client/_nuxt/{__blank.fd22bfe8.js → __blank.20eb2cab.js} +1 -1
  31. package/dist/client/_nuxt/{analyze-build.3961243f.js → analyze-build.423f57eb.js} +1 -1
  32. package/dist/client/_nuxt/{assets.22c374b3.js → assets.dc245910.js} +1 -1
  33. package/dist/client/_nuxt/{client.766a1bb7.js → client.c59e50d6.js} +1 -1
  34. package/dist/client/_nuxt/components.31c6fd6f.js +98 -0
  35. package/dist/client/_nuxt/{custom-_name_.4e0a3203.js → custom-_name_.9b02fa14.js} +1 -1
  36. package/dist/client/_nuxt/{default.7b425b73.js → default.30ac8af4.js} +1 -1
  37. package/dist/client/_nuxt/entry.05b33d7f.js +27 -0
  38. package/dist/client/_nuxt/entry.79095383.css +1 -0
  39. package/dist/client/_nuxt/{error-404.9d0e04bf.js → error-404.5c6d1cc1.js} +1 -1
  40. package/dist/client/_nuxt/{error-500.10115977.js → error-500.b5b10475.js} +1 -1
  41. package/dist/client/_nuxt/{full.4288bf38.js → full.03097bfb.js} +1 -1
  42. package/dist/client/_nuxt/{hooks.1d6c1af1.js → hooks.d674696d.js} +1 -1
  43. package/dist/client/_nuxt/{imports.39a7562f.js → imports.b827859f.js} +1 -1
  44. package/dist/client/_nuxt/{index.94061115.js → index.b2055c8f.js} +1 -1
  45. package/dist/client/_nuxt/{index.14b447a4.js → index.b5454355.js} +1 -1
  46. package/dist/client/_nuxt/json-editor-vue.1bc58c26.js +129 -0
  47. package/dist/client/_nuxt/{middleware.66f1417a.js → middleware.434dc02a.js} +1 -1
  48. package/dist/client/_nuxt/{modules.3b512e2b.js → modules.7dc02a95.js} +1 -1
  49. package/dist/client/_nuxt/{none.d43da723.js → none.2b3e8ddc.js} +1 -1
  50. package/dist/client/_nuxt/{open-graph.c7507223.js → open-graph.693bd031.js} +1 -1
  51. package/dist/client/_nuxt/{overview.dae47b2d.js → overview.f2e48477.js} +1 -1
  52. package/dist/client/_nuxt/{pages.0902f86b.js → pages.745a0630.js} +1 -1
  53. package/dist/client/_nuxt/{payload.7de203b9.js → payload.897ca8fa.js} +1 -1
  54. package/dist/client/_nuxt/{plugins.30d46375.js → plugins.cd2e64ba.js} +1 -1
  55. package/dist/client/_nuxt/{runtime-configs.a32dc753.js → runtime-configs.1f844468.js} +1 -1
  56. package/dist/client/_nuxt/{server-routes.7e333622.js → server-routes.91c861d0.js} +1 -1
  57. package/dist/client/_nuxt/settings.367ae337.js +1 -0
  58. package/dist/client/_nuxt/{state-components.7549d0ff.js → state-components.a223a28c.js} +1 -1
  59. package/dist/client/_nuxt/{state-modules.a4af1949.js → state-modules.c0927595.js} +1 -1
  60. package/dist/client/_nuxt/{storage-options.0b849b9a.js → storage-options.8fdc9b2a.js} +1 -1
  61. package/dist/client/_nuxt/{storage.6d27a7d0.js → storage.76034502.js} +1 -1
  62. package/dist/client/_nuxt/terminals.cb4eb909.js +9 -0
  63. package/dist/client/_nuxt/timeline.60d410a7.js +29 -0
  64. package/dist/client/_nuxt/unocss-runtime.68d64d4a.js +2 -0
  65. package/dist/client/_nuxt/{virtual-files.d393fac8.js → virtual-files.829bd209.js} +1 -1
  66. package/dist/client/index.html +17 -17
  67. package/dist/client/modules/analyze-build/index.html +17 -17
  68. package/dist/client/modules/assets/index.html +17 -17
  69. package/dist/client/modules/components/index.html +17 -17
  70. package/dist/client/modules/hooks/index.html +17 -17
  71. package/dist/client/modules/imports/index.html +17 -17
  72. package/dist/client/modules/middleware/index.html +17 -17
  73. package/dist/client/modules/modules/index.html +17 -17
  74. package/dist/client/modules/open-graph/index.html +17 -17
  75. package/dist/client/modules/overview/index.html +17 -17
  76. package/dist/client/modules/pages/index.html +17 -17
  77. package/dist/client/modules/payload/index.html +17 -17
  78. package/dist/client/modules/plugins/index.html +17 -17
  79. package/dist/client/modules/runtime-configs/index.html +17 -17
  80. package/dist/client/modules/server-routes/index.html +17 -17
  81. package/dist/client/modules/storage/index.html +17 -17
  82. package/dist/client/modules/terminals/index.html +17 -17
  83. package/dist/client/modules/timeline/index.html +17 -17
  84. package/dist/client/modules/virtual-files/index.html +17 -17
  85. package/dist/client/settings/index.html +17 -17
  86. package/dist/module.json +1 -1
  87. package/dist/module.mjs +1 -1
  88. package/dist/runtime/plugins/view/client.mjs +1 -0
  89. package/dist/shared/{devtools.6d7e3a3a.mjs → devtools.4169e037.mjs} +3 -1
  90. package/package.json +32 -32
  91. package/dist/client/_nuxt/NCheckbox.vue.e6a37232.js +0 -1
  92. package/dist/client/_nuxt/components.f4ae9003.js +0 -99
  93. package/dist/client/_nuxt/entry.13b4d578.css +0 -1
  94. package/dist/client/_nuxt/entry.2f74e286.js +0 -27
  95. package/dist/client/_nuxt/json-editor-vue.87488a70.js +0 -130
  96. package/dist/client/_nuxt/settings.5586d729.js +0 -1
  97. package/dist/client/_nuxt/terminals.2f1b22dc.js +0 -9
  98. package/dist/client/_nuxt/timeline.849dbd44.js +0 -57
  99. package/dist/client/_nuxt/unocss-runtime.e58f9c20.js +0 -2
@@ -1,57 +0,0 @@
1
- import{d as N,a as D,aC as M,o as s,m as c,k as e,a3 as I,f as a,t as y,a8 as j,F as b,n as L,h as g,r as T,w as Y,au as Z,W,bs as K,p as $,i as m,E as O,q as X,e as Q,al as G,j as h,ap as P,v as t,C as z,a7 as H,aE as ee,aP as ne,a5 as te,aO as oe,_ as J,aq as se,bt as le,L as ae,a6 as ie,A as re,J as R,V as ce}from"./entry.2f74e286.js";import{_ as V}from"./DurationDisplay.vue.73c682ac.js";import{_ as q}from"./Badge.efa8b534.js";import{_ as ue}from"./ComposableItem.vue.1525d3d2.js";import{U as de}from"./json-editor-vue.87488a70.js";import{_ as pe}from"./FilepathItem.vue.253590ec.js";import{_ as fe}from"./LaunchPage.vue.45c2e269.js";import{_ as me}from"./NLink.vue.19da93af.js";import{_ as _e}from"./CodeDiff.vue.52d6bbaa.js";import{_ as ye}from"./HelpFab.vue.b3c1cf3a.js";import"./NMarkdown.vue.283d6615.js";import"./client.766a1bb7.js";import"./constants.4e5eba24.js";import"./NCodeBlock.vue.28dd841e.js";const ve=N({__name:"TimelineItemFunction",props:{item:{}},setup(v){const d=v,u=D(()=>M(d.item.name,50,60,"_op_")),n=D(()=>u.value.replace(/_op_/,"1")),l=D(()=>M(d.item.name,50,40)),i=D(()=>u.value.replace(/_op_/,"0.2"));return(p,o)=>(s(),c("button",{class:"group",style:I({color:a(n),borderLeft:`2px solid ${a(n)}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[e("div",{style:I({backgroundColor:a(i)}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),e("div",{style:I({color:a(l),"--c":a(n)}),border:"r-2 t-2 y-2 transparent","min-w-max":"",px1:"","text-left":"","group-hover":"border-$c"},y(p.item.name),5)],4))}}),he={relative:"","h-full":""},be={absolute:"","left-2":"","top-2.3em":"","text-xs":"",op50:""},ge=N({__name:"TimelineSegment",props:{segment:{}},emits:["select"],setup(v,{emit:d}){const u=v,n=j(()=>u.segment.start,{updateInterval:1e3,showSecond:!0,messages:{justNow:"",past:l=>l,future:l=>l,invalid:"-",second:l=>l?`${l}s`:"",minute:l=>`${l}m`,hour:l=>`${l}h`,week:l=>`${l}w`,day:l=>`${l}d`,month:l=>`${l}mo`,year:l=>`${l}y`}});return(l,i)=>{const p=ve;return s(),c("div",he,[e("button",{absolute:"","left-0":"","right-0":"","top-0":"","bg-green:5":"",px2:"",py1:"","text-left":"","text-xs":"","font-mono":"","text-green6":"",onClick:i[0]||(i[0]=o=>l.segment.route?d("select",l.segment.route):void 0)},y(l.segment.route?.event.to),1),e("div",be,y(a(n))+" ago ",1),e("div",null,[(s(!0),c(b,null,L(l.segment.functions,(o,r)=>(s(),g(p,{key:r,item:o.event,style:I({position:"absolute",minWidth:`${o.relativeWidth*100}%`,maxWidth:`${o.relativeWidth*100}%`,top:`${4+o.layer*1.6}em`,left:`${o.relativeStart*100}%`}),onClick:f=>d("select",o)},null,8,["item","style","onClick"]))),128))])])}}}),$e=3e3,xe=50;function ke(v){const d=[];let u={start:0,end:0,events:[],functions:[],duration:0};for(const n of v){const l=n.end||n.start;(n.start-u.end>$e||n.type==="route")&&(u={start:n.start,end:l,events:[],functions:[],duration:0},d.push(u)),u.events.push(n),u.end=l+xe}return d.forEach((n,l)=>{const i=n.end-n.start,p=[];n.duration=i,n.previousGap=l>0?n.start-d[l-1].end:0,n.events.forEach(o=>{const r=o.end||o.start;let f=0;o.type!=="route"&&(f=p.findIndex(k=>k<=o.start),f===-1?(f=p.length,p.push(r+1e3)):p[f]=r+1e3);const x={event:o,segment:n,relativeStart:(o.start-n.start)/i,relativeWidth:(r-o.start)/i,layer:f};o.type==="function"?n.functions.push(x):n.route=x})}),d}const we={relative:""},Ce={key:0,border:"x base","h-full":"","flex-inline":"","bg-true-gray-1":"",py15:"","text-xs":"","write-vertical-left":"",op50:"","dark:bg-true-gray-9":""},Te=N({__name:"TimelineTable",props:{data:{}},emits:["select"],setup(v,{emit:d}){const u=v,n=T(),l=T(),i=T(),p=T(),o=T(!0),r=T(1.5),f=D(()=>ke(u.data.events)),x=D(()=>(u.data.events.length,n.value?.scrollWidth||window.innerWidth));function k(){p.value&&(p.value.style.width=`${x.value}px`)}function B(){o.value&&n.value&&(n.value.scrollTo({left:n.value.scrollWidth-n.value.clientWidth,behavior:"smooth"}),i.value.scrollTo({left:n.value.scrollWidth-n.value.clientWidth,behavior:"smooth"}))}return Y(()=>u.data.events.length,async()=>{await Z(),k(),B()},{flush:"post"}),W(n,"scroll",()=>{i.value.scrollLeft!==n.value.scrollLeft&&(k(),i.value.scrollLeft=n.value.scrollLeft,o.value=n.value.scrollLeft>=n.value.scrollWidth-n.value.clientWidth)}),W(i,"scroll",()=>{i.value.scrollLeft!==n.value.scrollLeft&&(k(),n.value.scrollLeft=i.value.scrollLeft)}),W(n,"wheel",w=>{w.altKey?(r.value=K(r.value+w.deltaY/200,.5,3),k()):n.value.scrollLeft+=w.deltaY}),(w,F)=>{const C=V,S=ge;return s(),c(b,null,[e("div",we,[e("div",{ref_key:"minimap",ref:l,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(s(!0),c(b,null,L(a(f),(_,E)=>(s(),c("div",{key:E,relative:"","h-full":"","flex-inline":"",style:I({width:`${Math.max(100,_.duration/10)/a(x)*100}%`})},[(s(!0),c(b,null,L(_.functions,(A,U)=>(s(),c("div",{key:U,"h-3px":"",rounded:"",style:I({width:`max(${A.relativeWidth*100}%, 10px)`,position:"absolute",top:`${A.layer*4}px`,left:`${A.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in w?w.getHashColorFromString:a(M))(A.event.name,50,60)})},null,4))),128)),_.route?(s(),c("div",{key:0,absolute:"","top-0":"","h-full":"","w-px":"","border-l":"","border-green6":"",op10:"",style:I({left:`${_.route.relativeStart*100}%`})},null,4)):$("",!0)],4))),128))],512),e("div",{ref_key:"minimapScroller",ref:i,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[e("div",{ref_key:"minimapScrollerInner",ref:p,"h-1px":""},null,512)],512)]),e("div",{ref_key:"scroller",ref:n,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(s(!0),c(b,null,L(a(f),(_,E)=>(s(),c(b,{key:E},[_.previousGap&&_.previousGap>=200?(s(),c("div",Ce,[m(C,{op50:"",duration:_.previousGap,color:!1},null,8,["duration"])])):$("",!0),m(S,{"flex-inline":"","of-x-hidden":"","hover:of-x-visible":"","bg-base":"",class:O(E===a(f).length-1?"border-r border-base":""),segment:_,style:I({width:`${Math.max(50,_.duration/10)*a(r)}px`}),onSelect:F[0]||(F[0]=A=>d("select",A))},null,8,["class","segment","style"])],64))),128))],512)],64)}}});const Ne=X(Te,[["__scopeId","data-v-a2c475c0"]]),Se={border:"t base",flex:"~ col","h-full":"","of-y-auto":"","text-sm":""},Ae=["onClick"],De=e("div",{"i-carbon-function":"",op50:""},null,-1),Ie={flex:"~","font-mono":""},Fe=e("div",{op30:""}," ( ",-1),Le={key:0,mr2:"",op30:""},Be={op75:""},Ee=e("div",{op30:""}," ) ",-1),Me=e("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[e("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1),Ve={flex:"~ col items-start"},We={"text-xs":"","font-mono":"",op30:""},je={"font-bold":"","font-mono":"","text-green":""},Oe=e("div",{"flex-auto":""},null,-1),ze=e("div",{"min-h-100":""},null,-1),Re=N({__name:"TimelineList",props:{data:{}},emits:["select"],setup(v,{emit:d}){return(u,n)=>{const l=V;return s(),c("div",Se,[(s(!0),c(b,null,L(u.data.events,(i,p)=>(s(),c("button",{key:p,border:"b base",px3:"",py2:"",flex:"~ items-center gap-2",hover:"bg-active",onClick:o=>d("select",i)},[i.type==="function"?(s(),c(b,{key:0},[De,e("div",{"font-mono":"",style:I({color:i.type==="function"?("getHashColorFromString"in u?u.getHashColorFromString:a(M))(i.name,50,60):""})},y(i.name),5),e("div",Ie,[Fe,(s(!0),c(b,null,L(i.args,(o,r)=>(s(),c(b,{key:r},[p?(s(),c("div",Le," , ")):$("",!0),e("div",Be,y(o===null?"null":o===void 0?"undefined":typeof o=="function"?"[function]":Array.isArray(o)?"[Array]":typeof o=="object"?"[object]":JSON.stringify(o)),1)],64))),128)),Ee])],64)):(s(),c(b,{key:1},[Me,e("div",Ve,[e("div",We,y(i.from),1),e("div",je,y(i.to),1)])],64)),Oe,i.end?(s(),g(l,{key:2,duration:i.end-i.start,color:i.type==="function"},null,8,["duration","color"])):$("",!0)],8,Ae))),128)),ze])}}}),Ge={key:0,"text-blue":""},Pe={key:1,"text-purple":""},He={key:2,"text-green":""},Je={key:3,"text-gray":""},qe={key:4,"text-gray":""},Ue={key:5,"text-gray":""},Ye={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Ze={key:1},Ke={p2:"","text-sm":"",border:"t base"},Xe=N({__name:"TimelineArgumentView",props:{value:{}},setup(v){const d=v,u=T(),n=T();function l(){try{u.value=JSON.parse(JSON.stringify(d.value))}catch(o){console.error(o),n.value=o}}const i=N({emits:["setup"],setup(o,{emit:r}){return r("setup"),()=>null}}),p=Q();return(o,r)=>{const f=z,x=G("VMenu");return typeof o.value=="string"?(s(),c("div",Ge,y(JSON.stringify(o.value)),1)):typeof o.value=="number"?(s(),c("div",Pe,y(o.value),1)):typeof o.value=="boolean"?(s(),c("div",He,y(o.value),1)):typeof o.value>"u"?(s(),c("div",Je," undefined ")):typeof o.value=="function"?(s(),c("div",qe," [Function"+y(o.value.name?`: ${o.value.name}`:"")+"] ",1)):o.value===null?(s(),c("div",Ue," null ")):(s(),g(x,{key:6,placement:"top"},{popper:h(()=>[m(a(i),{onSetup:l}),a(n)?(s(),c("div",Ye," Failed to display object: "+y(a(n)),1)):a(u)?(s(),c("div",Ze,[m(a(de),P({"model-value":a(u)},o.$attrs,{class:["json-editor-vue",[o.$colorMode.value==="dark"?"jse-theme-dark":""]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":!0,indentation:2,"tab-size":2}),null,16,["model-value","class"]),e("div",Ke,[m(f,{title:"Copy to clipboard",icon:"carbon-copy",onClick:r[0]||(r[0]=k=>a(p)(JSON.stringify(a(u),null,2)))},{default:h(()=>[t(" Copy ")]),_:1})])])):$("",!0)]),default:h(()=>[e("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:O([Array.isArray(o.value)?"text-amber bg-amber:10":"text-orange bg-orange:10"])},y(Array.isArray(o.value)?`[Array(${o.value.length})]`:"[Object]"),3)]),_:1}))}}}),Qe={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},en={"mx--1":""},nn={flex:"~ gap-1","font-mono":""},tn={key:1},on=e("span",{ml1:"",op30:""},"(",-1),sn={key:0,op30:""},ln=e("span",{op30:""},")",-1),an={flex:"~ gap-1","text-sm":""},rn=e("span",{mx1:"",op50:""},"·",-1),cn={class:"text-sm text-gray-400"},un={key:0,class:"text-xs text-gray-400",mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},dn={"text-right":""},pn={"ws-nowrap":""},fn=N({__name:"TimelineDetailsFunction",props:{record:{}},setup(v){const d=v,u=H(),n=j(()=>d.record.start,{showSecond:!0});function l(r){let f=new URL(r).pathname;return f.startsWith("/_nuxt/")&&(f=f.slice(6)),f.startsWith("/@id/virtual:nuxt:")?`#build/${f.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):f.includes("/@fs/")?`/${f.split("/@fs/")[1]}`:(u.value?.rootDir||"")+f}const i=ee(),p=D(()=>i.value?.metadata),o=D(()=>i.value?.imports.find(r=>r.as===d.record.name));return(r,f)=>{const x=q,k=ue,B=Xe,w=V,F=pe;return r.record?(s(),c("div",Qe,[e("div",en,[m(x,{"bg-yellow-600:10":"","text-yellow-600":"",op75:""},{default:h(()=>[t(" Function call ")]),_:1})]),e("div",nn,[a(o)?(s(),g(k,{key:0,item:a(o),metadata:a(p),counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(s(),c("span",tn,y(r.record.name),1)),on,(s(!0),c(b,null,L(r.record.args,(C,S)=>(s(),c(b,{key:S},[S?(s(),c("span",sn,", ")):$("",!0),m(B,{value:C},null,8,["value"])],64))),128)),ln]),e("div",an,[r.record.end?(s(),g(w,{key:0,duration:r.record.end-r.record.start},null,8,["duration"])):$("",!0),rn,e("div",cn,y(a(n)),1)]),r.record.stacktrace?(s(),c("div",un,[(s(!0),c(b,null,L(r.record.stacktrace,(C,S)=>(s(),c(b,{key:S},[e("div",dn,y(C.functionName||"(anonymous)"),1),e("div",pn,[C.fileName?(s(),g(F,{key:0,filepath:`${l(C.fileName)}:${C.lineNumber}:${C.columnNumber}`,subpath:""},null,8,["filepath"])):$("",!0)])],64))),128))])):$("",!0)])):$("",!0)}}}),mn={key:0,"p-4":"",flex:"~ col gap-2"},_n={"mx--1":""},yn={flex:"~ gap-1 items-center","font-mono":""},vn={op50:""},hn=e("span",{"i-carbon-arrow-right":"",op50:""},null,-1),bn={flex:"~ gap-1","text-sm":""},gn=e("span",{mx1:"",op50:""},"·",-1),$n={class:"text-sm text-gray-400"},xn=N({__name:"TimelineDetailsRoute",props:{record:{}},setup(v){const d=v,u=j(()=>d.record.start,{showSecond:!0});return(n,l)=>{const i=q,p=V;return n.record?(s(),c("div",mn,[e("div",_n,[m(i,{"bg-green-400:10":"","text-green-400":"",op50:""},{default:h(()=>[t(" Route Change ")]),_:1})]),e("div",yn,[e("span",vn,y(n.record.from),1),hn,e("span",null,y(n.record.to),1)]),e("div",bn,[n.record.end?(s(),g(p,{key:0,duration:n.record.end-n.record.start},null,8,["duration"])):$("",!0),gn,e("div",$n,y(a(u)),1)])])):$("",!0)}}}),kn={relative:"","h-full":"","w-full":"","of-auto":""},wn={inheritAttrs:!1},Cn=N({...wn,__name:"DrawerBottom",props:{modelValue:{type:Boolean},navbar:{},autoClose:{type:Boolean}},emits:["close"],setup(v,{emit:d}){const u=v,n=T();ne(n,()=>{u.modelValue&&u.autoClose&&d("close")},{ignore:["a","button","summary"]});const l=document.querySelector("#nuxt-devtools-side-nav")?.getBoundingClientRect().width;return(i,p)=>{const o=J;return s(),g(oe,{"enter-active-class":"duration-200 ease-in","enter-from-class":"transform translate-y-1/1","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100","leave-to-class":"transform translate-y-1/1"},{default:h(()=>[i.modelValue?(s(),c("div",P({key:0,ref_key:"el",ref:n,border:"t base",flex:"~ col gap-1",absolute:"","bottom-0":"","right-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","glass-effect":"",style:{left:`${a(l)}px`}},i.$attrs),[m(o,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",onClick:p[0]||(p[0]=r=>i.$emit("close"))}),e("div",kn,[te(i.$slots,"default")])],16)):$("",!0)]),_:3})}}}),Tn={key:0,"h-screen":"","of-hidden":""},Nn={"h-screen":"","w-full":"",flex:"","flex-col":""},Sn={"h-10":"",flex:"~ gap-2 items-center justify-end",p2:"",px3:""},An={"text-sm":""},Dn=e("div",{"flex-auto":""},null,-1),In={"min-h-50":"",px3:"",py2:""},Fn=N({__name:"TimelineView",setup(v){const d=se(),u=T("table"),n=T(),l=D(()=>d.value?.metrics.clientTimeline());function i(){l.value&&(l.value.events=[])}function p(){u.value=u.value==="table"?"list":"table"}return(o,r)=>{const f=G("VTooltip"),x=z,k=J,B=Ne,w=Re,F=fn,C=xn,S=Cn;return a(l)?(s(),c("div",Tn,[e("div",Nn,[e("div",Sn,[m(f,{flex:""},{popper:h(()=>[e("div",An,y(a(l).options.enabled?"Recording...":"Paused"),1)]),default:h(()=>[e("div",{"text-lg":"",class:O(a(l).options.enabled?"i-carbon-radio-button-checked text-primary animate-pulse":"i-carbon-pause-outline op30")},null,2)]),_:1}),a(l).options.enabled?(s(),g(x,{key:1,size:"small",ml1:"","text-sm":"",n:"orange",icon:"i-carbon-stop",onClick:r[1]||(r[1]=_=>a(l).options.enabled=!1)},{default:h(()=>[t(" Stop Tracking ")]),_:1})):(s(),g(x,{key:0,size:"small",ml1:"","text-sm":"",n:"primary",icon:"i-carbon-play",onClick:r[0]||(r[0]=_=>a(l).options.enabled=!0)},{default:h(()=>[t(" Start Tracking ")]),_:1})),Dn,m(k,{icon:a(u)==="table"?"i-carbon-roadmap":"i-carbon-list",class:"ml-2",title:"Toggle View",onClick:p},null,8,["icon"]),m(k,{icon:"i-carbon-trash-can","hover-text-red":"",class:"ml-2",onClick:i})]),a(u)==="table"?(s(),g(B,{key:0,data:{...a(l)},onSelect:r[2]||(r[2]=_=>n.value=_.event)},null,8,["data"])):(s(),g(w,{key:1,data:{...a(l)},onSelect:r[3]||(r[3]=_=>n.value=_)},null,8,["data"]))]),m(S,{"model-value":!!a(n),"auto-close":"",onClose:r[4]||(r[4]=_=>n.value=void 0)},{default:h(()=>[e("div",In,[a(n)?.type==="function"?(s(),g(F,{key:0,record:a(n)},null,8,["record"])):a(n)?.type==="route"?(s(),g(C,{key:1,record:a(n)},null,8,["record"])):$("",!0)])]),_:1},8,["model-value"])])):$("",!0)}}}),Ln={class:"markdown-body"},Bn=e("h1",null,"Timeline",-1),En=e("p",null,[e("blockquote",{"text-orange":"","bg-orange:10":"",py1:""}," This is an experimental feature ")],-1),Mn=e("p",null,"Timeline tracks your route navigations and functions calls in your Nuxt application. It can be used to debug performance issues and to understand how your application works.",-1),Vn=e("h2",null,"Function calls",-1),Wn=e("p",null,[t("Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through "),e("code",null,"import {} from '#imports'"),t(".")],-1),jn=e("pre",null,[e("code",{class:"language-html"},[e("div",{class:"shiki-container"},[e("pre",{class:"shiki vitesse-dark",style:{"background-color":"#121212",color:"#dbd7caee"},tabindex:"0"},[e("code",{"v-pre":""},[e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"<script setup>")]),t(`
2
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"import { useNuxtApp } from '#imports'")]),t(`
3
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"import { useMouse } from '@vueuse/core'")]),t(`
4
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})]),t(`
5
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const route = useRoute() // tracked")]),t(`
6
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const app = useNuxtApp() // tracked")]),t(`
7
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})]),t(`
8
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"// NOT tracked because it's directly imported")]),t(`
9
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const mouse = useMouse() ")]),t(`
10
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})])])]),e("pre",{class:"shiki vitesse-light",style:{"background-color":"#ffffff",color:"#393a34"},tabindex:"0"},[e("code",{"v-pre":""},[e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"<script setup>")]),t(`
11
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"import { useNuxtApp } from '#imports'")]),t(`
12
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"import { useMouse } from '@vueuse/core'")]),t(`
13
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})]),t(`
14
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const route = useRoute() // tracked")]),t(`
15
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const app = useNuxtApp() // tracked")]),t(`
16
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})]),t(`
17
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"// NOT tracked because it's directly imported")]),t(`
18
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const mouse = useMouse() ")]),t(`
19
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})])])])])])],-1),On=e("p",null,[t("By default, it tracks Nuxt provided composables as well as user defined functions. You can include/exclude functions by using the "),e("code",null,"include"),t(" and "),e("code",null,"exclude"),t(" options in the "),e("code",null,"nuxt.config.js"),t(" file.")],-1),zn=e("pre",null,[e("code",{class:"language-js"},[e("div",{class:"shiki-container"},[e("pre",{class:"shiki vitesse-dark",style:{"background-color":"#121212",color:"#dbd7caee"},tabindex:"0"},[e("code",{"v-pre":""},[e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"export default defineNuxtConfig({")]),t(`
20
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," devtools: {")]),t(`
21
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," timeline: {")]),t(`
22
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," functions: {")]),t(`
23
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," include: [")]),t(`
24
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track `useMouse`")]),t(`
25
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," 'useMouse',")]),t(`
26
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track all functions starting with `use`")]),t(`
27
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," /^use[A-Z]/,")]),t(`
28
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track all functions from @vueuse/core")]),t(`
29
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," entry => entry.from === '@vueuse/core',")]),t(`
30
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," ],")]),t(`
31
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," exclude: [")]),t(`
32
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," 'useRouter'")]),t(`
33
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," ]")]),t(`
34
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
35
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
36
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
37
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"})")]),t(`
38
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})])])]),e("pre",{class:"shiki vitesse-light",style:{"background-color":"#ffffff",color:"#393a34"},tabindex:"0"},[e("code",{"v-pre":""},[e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"export default defineNuxtConfig({")]),t(`
39
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," devtools: {")]),t(`
40
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," timeline: {")]),t(`
41
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," functions: {")]),t(`
42
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," include: [")]),t(`
43
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track `useMouse`")]),t(`
44
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," 'useMouse',")]),t(`
45
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track all functions starting with `use`")]),t(`
46
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," /^use[A-Z]/,")]),t(`
47
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track all functions from @vueuse/core")]),t(`
48
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," entry => entry.from === '@vueuse/core',")]),t(`
49
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," ],")]),t(`
50
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," exclude: [")]),t(`
51
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," 'useRouter'")]),t(`
52
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," ]")]),t(`
53
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
54
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
55
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
56
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"})")]),t(`
57
- `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})])])])])])],-1),Rn=[Bn,En,Mn,Vn,Wn,jn,On,zn],Gn={__name:"timeline",setup(v,{expose:d}){return d({frontmatter:{}}),(n,l)=>(s(),c("div",Ln,Rn))}},Pn={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},Hn=e("h2",{"text-xl":""},[e("span",{capitalize:""},"Enable Timeline?")],-1),Jn={op50:""},qn=e("p",null,[e("span",{op50:""},"Then Nuxt will "),e("span",{"text-orange":""},"restart automatically"),t(". ")],-1),Un={flex:"~ gap-3",mt2:"","justify-end":""},ct=N({__name:"timeline",setup(v){const d=le(),u=H(),n=ae(),l=ie();async function i(){const[p,o]=await R.enableTimeline(!0);await n.start(p,o)&&await R.enableTimeline(!1)}return(p,o)=>{const r=Fn,f=fe,x=re,k=me,B=_e,w=z,F=ce,C=Gn,S=ye;return s(),c(b,null,[a(d)?.timeline?.enabled?(s(),g(r,{key:0})):(s(),c(b,{key:1},[m(x,null,{default:h(()=>[m(f,{icon:"i-carbon-roadmap",title:"Timeline",description:"Timeline enables the inspection of when composable being executed and the route changes.",actions:[{label:"Enable"}],onAction:i})]),_:1}),m(a(n),null,{default:h(({resolve:_,args:E})=>[m(F,{"model-value":!0,onClose:A=>_(!1)},{default:h(()=>[e("div",Pn,[Hn,e("p",Jn,[t(" Your "),m(k,{role:"button",n:"primary",onClick:o[0]||(o[0]=A=>a(l)(a(u)?._nuxtConfigFile)),textContent:"Nuxt config"}),t(" will be updated as: ")]),m(B,{from:E[0],to:E[1],"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),qn,e("div",Un,[m(w,{onClick:A=>_(!1)},{default:h(()=>[t(" Cancel ")]),_:2},1032,["onClick"]),m(w,{n:"solid primary",capitalize:"",onClick:A=>_(!0)},{default:h(()=>[t(" Enable ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)),m(S,null,{default:h(()=>[m(C)]),_:1})],64)}}});export{ct as default};
@@ -1,2 +0,0 @@
1
- import{$ as St}from"./entry.2f74e286.js";const xt=Object.freeze({left:0,top:0,width:16,height:16}),H=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ut=Object.freeze({...xt,...H}),$t=Object.freeze({...ut,body:"",hidden:!1}),_t=Object.freeze({width:null,height:null}),ht=Object.freeze({..._t,...H});function Ct(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function J(e,t){const n=Ct(e,t);for(const s in $t)s in H?s in e&&!(s in n)&&(n[s]=H[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function At(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function i(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const c=s[o]&&s[o].parent,f=c&&i(c);f&&(r[o]=[c].concat(f))}return r[o]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(i),r}function Q(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let i={};function o(c){i=J(s[c]||r[c],i)}return o(t),n.forEach(o),J(e,i)}function Ot(e,t){if(e.icons[t])return Q(e,t,[]);const n=At(e,[t])[t];return n?Q(e,t,n):null}const Mt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,jt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function tt(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(Mt);if(s===null||!s.length)return e;const r=[];let i=s.shift(),o=jt.test(i);for(;;){if(o){const c=parseFloat(i);isNaN(c)?r.push(i):r.push(Math.ceil(c*t*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");o=!o}}function Et(e){let t="";const n=e.indexOf("<defs");for(;n>=0;){const s=e.indexOf(">",n),r=e.indexOf("</defs");if(s===-1||r===-1)break;const i=e.indexOf(">",r);if(i===-1)break;t+=e.slice(s+1,r).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:t,content:e}}function kt(e,t,n){const{defs:s,content:r}=Et(e);return(s?"<defs>"+s+"</defs>":"")+t+r+n}const Z=e=>e==="unset"||e==="undefined"||e==="none";function Pt(e,t){const n={...ut,...e},s={...ht,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(p=>{const d=[],S=p.hFlip,w=p.vFlip;let x=p.rotate;S?w?x+=2:(d.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),d.push("scale(-1 1)"),r.top=r.left=0):w&&(d.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),d.push("scale(1 -1)"),r.top=r.left=0);let l;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:l=r.height/2+r.top,d.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:d.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:l=r.width/2+r.left,d.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")");break}x%2===1&&(r.left!==r.top&&(l=r.left,r.left=r.top,r.top=l),r.width!==r.height&&(l=r.width,r.width=r.height,r.height=l)),d.length&&(i=kt(i,'<g transform="'+d.join(" ")+'">',"</g>"))});const o=s.width,c=s.height,f=r.width,u=r.height;let a,h;o===null?(h=c===null?"1em":c==="auto"?u:c,a=tt(h,f/u)):(a=o==="auto"?f:o,h=c===null?tt(a,u/f):c==="auto"?u:c);const m={},y=(p,d)=>{Z(d)||(m[p]=d.toString())};y("width",a),y("height",h);const _=[r.left,r.top,f,u];return m.viewBox=_.join(" "),{attributes:m,viewBox:_,body:i}}function Lt(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').trim()}const zt=/\swidth\s*=\s*["'](\w+)["']/,Tt=/\sheight\s*=\s*["'](\w+)["']/,G=/<svg\s+/;function It(e,t,n){const s=e.slice(0,e.indexOf(">")),r=(i,o)=>{const c=o.exec(s),f=c!=null,u=t[i];return!u&&!Z(u)&&(typeof n=="number"?n>0&&(t[i]=`${n}em`):c&&(t[i]=c[1])),f};return[r("width",zt),r("height",Tt)]}async function dt(e,t,n,s,r,i){const{scale:o,addXmlNs:c=!1}=s??{},{additionalProps:f={},iconCustomizer:u}=s?.customizations??{},a=await r?.()??{};await u?.(t,n,a),Object.keys(f).forEach(p=>{const d=f[p];d!=null&&(a[p]=d)}),i?.(a);const[h,m]=It(e,a,o);c&&(!e.includes("xmlns=")&&!a.xmlns&&(a.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!a["xmlns:xlink"]&&(a["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const y=Object.keys(a).map(p=>p==="width"&&h||p==="height"&&m?null:`${p}="${a[p]}"`).filter(p=>p!=null);if(y.length&&(e=e.replace(G,`<svg ${y.join(" ")} `)),s){const{defaultStyle:p,defaultClass:d}=s;d&&!e.includes("class=")&&(e=e.replace(G,`<svg class="${d}" `)),p&&!e.includes("style=")&&(e=e.replace(G,`<svg style="${p}" `))}const _=s?.usedProps;return _&&(Object.keys(f).forEach(p=>{const d=a[p];d!=null&&(_[p]=d)}),typeof a.width<"u"&&a.width!==null&&(_.width=a.width),typeof a.height<"u"&&a.height!==null&&(_.height=a.height)),e}async function et(e,t,n,s){let r;try{if(typeof e=="function")r=await e(n);else{const i=e[n];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${n}" in "${t}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:o}=s?.customizations??{};return r=typeof o=="function"?await o(r,t,n):r,r.startsWith("<svg")?await dt(s?.customizations?.trimCustomSvg===!0?Lt(r):r,t,n,s,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),r)}}async function pt(e,t,n,s){let r;const{customize:i}=s?.customizations??{};for(const o of n)if(r=Ot(e,o),r){let c={...ht};typeof i=="function"&&(c=i(c));const{attributes:{width:f,height:u,...a},body:h}=Pt(r,c),m=s?.scale;return await dt(`<svg >${h}</svg>`,t,o,s,()=>({...a}),y=>{const _=(p,d)=>{const S=y[p];let w;if(!Z(S)){if(S)return;typeof m=="number"?m&&(w=`${m}em`):w=d}w?y[p]=w:delete y[p]};_("width",f),_("height",u)})}}const mt=async(e,t,n)=>{const s=n?.customCollections?.[e];if(s)if(typeof s=="function"){let r;try{r=await s(t)}catch(i){console.warn(`Failed to load custom icon "${t}" in "${e}":`,i);return}if(r){if(typeof r=="string")return await et(()=>r,e,t,n);if("icons"in r){const i=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await pt(r,e,i,n)}}}else return await et(s,e,t,n)};function Ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","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","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","memory","mi","mingcute","mono-icons","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons-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","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];const Nt=Ft(Rt);function Vt(e){const t=new Map;function n(s){if(Nt.includes(s))return t.has(s)||t.set(s,St(`${e}@iconify-json/${s}/icons.json`)),t.get(s)}return async(s,r,i)=>{let o=await mt(s,r,i);if(o)return o;const c=await n(s);if(c){const f=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];o=await pt(c,s,f,i)}return o}}function Dt(e){const t=e.length;let n=-1,s,r="";const i=e.charCodeAt(0);for(;++n<t;){if(s=e.charCodeAt(n),s===0){r+="�";continue}if(s===37){r+="\\%";continue}if(s===44){r+="\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){r+=`\\${s.toString(16)} `;continue}if(n===0&&t===1&&s===45){r+=`\\${e.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=e.charAt(n);continue}r+=`\\${e.charAt(n)}`}return r}const W=Dt;function k(e=[]){return Array.isArray(e)?e:[e]}function R(e){return Array.from(new Set(e))}function M(e){return typeof e=="string"}function N(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Bt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>N(t)):[e]:[N(e)]}function Ut(e){return e.filter(([t,n],s)=>{if(t.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(e[r][0]===t&&e[r][1]===n)return!1;return!0})}function Y(e){return e==null?"":Ut(e).map(([t,n])=>n!=null?`${t}:${n};`:void 0).filter(Boolean).join("")}function D(e){return e&&typeof e=="object"&&!Array.isArray(e)}function gt(e,t,n=!1){const s=e,r=t;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return D(s)&&D(r)&&Object.keys(r).forEach(o=>{D(s[o])&&D(r[o])||Array.isArray(s[o])&&Array.isArray(r[o])?i[o]=gt(s[o],r[o],n):Object.assign(i,{[o]:r[o]})}),i}function U(e){let t,n,s;if(Array.isArray(e)){for(n=Array(t=e.length);t--;)n[t]=(s=e[t])&&typeof s=="object"?U(s):s;return n}if(Object.prototype.toString.call(e)==="[object Object]"){n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:U(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(s=e[t])&&typeof s=="object"?U(s):s;return n}return e}function Ht(e){return M(e[0])}function Gt(e){return M(e[0])}const nt="$$shortcut-no-merge";function Wt(e){return typeof e=="function"?{match:e}:e}function rt(e){return e.length===3}function Yt(e){return e!=null}function qt(){}var Kt=Object.defineProperty,Xt=(e,t,n)=>t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zt=(e,t,n)=>(Xt(e,typeof t!="symbol"?t+"":t,n),n);class Jt{constructor(){Zt(this,"_map",new Map)}get(t,n){const s=this._map.get(t);if(s)return s.get(n)}getFallback(t,n,s){let r=this._map.get(t);return r||(r=new Map,this._map.set(t,r)),r.has(n)||r.set(n,s),r.get(n)}set(t,n,s){let r=this._map.get(t);return r||(r=new Map,this._map.set(t,r)),r.set(n,s),this}has(t,n){return this._map.get(t)?.has(n)}delete(t,n){return this._map.get(t)?.delete(n)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>t(i,n,r)))}}var Qt=Object.defineProperty,te=(e,t,n)=>t in e?Qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ee=(e,t,n)=>(te(e,typeof t!="symbol"?t+"":t,n),n);class yt extends Set{constructor(t){super(t),ee(this,"_map"),this._map??(this._map=new Map)}add(t){return this._map??(this._map=new Map),this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,n){return this._map.set(t,n),super.add(t)}}function q(e){return e instanceof yt}const B={};function ne(e=["-",":"]){const t=e.join("|");return B[t]||(B[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),B[t].lastIndex=0,B[t]}function re(e,t=["-",":"],n=5){const s=ne(t);let r,i=e.toString();const o=new Set,c=new Map;do r=!1,i=i.replace(s,(u,a,h,m,y)=>{if(!t.includes(h))return u;r=!0,o.add(a+h);const _=y+a.length+h.length+1,p={length:u.length,items:[]};c.set(y,p);for(const d of[...m.matchAll(/\S+/g)]){const S=_+d.index;let w=c.get(S)?.items;w?c.delete(S):w=[{offset:S,length:d[0].length,className:d[0]}];for(const x of w)x.className=x.className==="~"?a:x.className.replace(/^(!?)(.*)/,`$1${a}${h}$2`),p.items.push(x)}return"$".repeat(u.length)}),n-=1;while(r&&n);let f;if(typeof e=="string"){f="";let u=0;for(const[a,h]of c)f+=e.slice(u,a),f+=h.items.map(m=>m.className).join(" "),u=a+h.length;f+=e.slice(u)}else{f=e;for(const[u,a]of c)f.overwrite(u,u+a.length,a.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:r,groupsByOffset:c,get expanded(){return f.toString()}}}function se(e,t=["-",":"],n=5){const s=re(e,t,n);return typeof e=="string"?s.expanded:e}const st=new Set;function wt(e){st.has(e)||(console.warn("[unocss]",e),st.add(e))}const ie=/[\\:]?[\s'"`;{}]+/g;function oe(e){return e.split(ie)}const ae={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return oe(e)}};function ce(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}}}const K="default",X="preflights",le="shortcuts",fe="imports",ue={[fe]:-200,[X]:-100,[le]:-10,[K]:0};function vt(e){return k(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const it="_uno_resolved";function he(e){if(it in e)return e;e={...e},Object.defineProperty(e,it,{value:!0,enumerable:!1});const t=e.shortcuts?vt(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){const n=s=>{s[2]||(s[2]={});const r=s[2];r.prefix==null&&e.prefix&&(r.prefix=k(e.prefix)),r.layer==null&&e.layer&&(r.layer=e.layer)};t?.forEach(n),e.rules?.forEach(n)}return e}function bt(e){const t=he(e);if(!t.presets)return[t];const n=(t.presets||[]).flatMap(k).flatMap(bt);return[t,...n]}function ot(e={},t={}){const n=Object.assign({},t,e),s=R((n.presets||[]).flatMap(k).flatMap(bt)),r=[...s.filter(l=>l.enforce==="pre"),...s.filter(l=>!l.enforce),...s.filter(l=>l.enforce==="post")],i=[...r,n],o=[...i].reverse(),c=Object.assign({},ue,...i.map(l=>l.layers));function f(l){return R(i.flatMap(v=>k(v[l]||[])))}const u=f("extractors");let a=o.find(l=>l.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=ae),a&&!u.includes(a)&&u.unshift(a),u.sort((l,v)=>(l.order||0)-(v.order||0));const h=f("rules"),m={},y=h.length,_=h.map((l,v)=>{if(Ht(l)){k(l[2]?.prefix||"").forEach(A=>{m[A+l[0]]=[v,l[1],l[2],l]});return}return[v,...l]}).filter(Boolean).reverse();let p=de(i.map(l=>l.theme));const d=f("extendTheme");for(const l of d)p=l(p)||p;const S={templates:R(i.flatMap(l=>k(l.autocomplete?.templates))),extractors:i.flatMap(l=>k(l.autocomplete?.extractors)).sort((l,v)=>(l.order||0)-(v.order||0)),shorthands:pe(i.map(l=>l.autocomplete?.shorthands||{}))};let w=f("separators");w.length||(w=[":","-"]);const x={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:l=>l,...n,presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:c,theme:p,rulesSize:y,rulesDynamic:_,rulesStaticMap:m,preprocess:f("preprocess"),postprocess:f("postprocess"),preflights:f("preflights"),autocomplete:S,variants:f("variants").map(Wt).sort((l,v)=>(l.order||0)-(v.order||0)),shortcuts:vt(f("shortcuts")).reverse(),extractors:u,safelist:f("safelist"),separators:w,details:n.details??n.envMode==="dev"};for(const l of i)l?.configResolved?.(x);return x}function de(e){return e.map(t=>t?U(t):{}).reduce((t,n)=>gt(t,n),{})}function pe(e){return e.reduce((t,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...t,...s}},{})}const me="0.55.7";var ge=Object.defineProperty,ye=(e,t,n)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t,n)=>(ye(e,typeof t!="symbol"?t+"":t,n),n);class we{constructor(t={},n={}){this.userConfig=t,this.defaults=n,F(this,"version",me),F(this,"_cache",new Map),F(this,"config"),F(this,"blocked",new Set),F(this,"parentOrders",new Map),F(this,"events",ce()),this.config=ot(t,n),this.events.emit("config",this.config)}setConfig(t,n){t&&(n&&(this.defaults=n),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ot(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,n,s=new Set){const r={original:t,code:t,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const o=await i.extract?.(r);if(o)if(q(o)&&q(s))for(const c of o)s.setCount(c,s.getCount(c)+o.getCount(c));else for(const c of o)s.add(c)}return s}makeContext(t,n){const s={rawSelector:t,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(t,n){if(this.blocked.has(t))return;const s=`${t}${n?` ${n}`:""}`;if(this._cache.has(s))return this._cache.get(s);let r=t;for(const u of this.config.preprocess)r=u(t);if(this.isBlocked(r)){this.blocked.add(t),this._cache.set(s,null);return}const i=await this.matchVariants(t,r);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(s,null);return}const o=this.makeContext(t,[n||i[0],i[1],i[2],i[3]]);this.config.details&&(o.variants=[...i[3]]);const c=await this.expandShortcut(o.currentSelector,o),f=c?await this.stringifyShortcuts(o.variantMatch,o,c[0],c[1]):(await this.parseUtil(o.variantMatch,o))?.map(u=>this.stringifyUtil(u,o)).filter(Yt);if(f?.length)return this._cache.set(s,f),f;this._cache.set(s,null)}async generate(t,n={}){const{id:s,scope:r,preflights:i=!0,safelist:o=!0,minify:c=!1,extendedInfo:f=!1}=n,u=M(t)?await this.applyExtractors(t,s,f?new yt:new Set):Array.isArray(t)?new Set(t):t;o&&this.config.safelist.forEach(l=>{u.has(l)||u.add(l)});const a=c?"":`
2
- `,h=new Set([K]),m=f?new Map:new Set,y=new Map;let _={};const p=Array.from(u).map(async l=>{if(m.has(l))return;const v=await this.parseToken(l);if(v!=null){m instanceof Map?m.set(l,{data:v,count:q(u)?u.getCount(l):-1}):m.add(l);for(const C of v){const A=C[3]||"",O=C[4]?.layer;y.has(A)||y.set(A,[]),y.get(A).push(C),O&&h.add(O)}}});await Promise.all(p),await(async()=>{if(!i)return;const l={generator:this,theme:this.config.theme},v=new Set([]);this.config.preflights.forEach(({layer:C=X})=>{h.add(C),v.add(C)}),_=Object.fromEntries(await Promise.all(Array.from(v).map(async C=>{const O=(await Promise.all(this.config.preflights.filter(L=>(L.layer||X)===C).map(async L=>await L.getCSS(l)))).filter(Boolean).join(a);return[C,O]})))})();const d=this.config.sortLayers(Array.from(h).sort((l,v)=>(this.config.layers[l]??0)-(this.config.layers[v]??0)||l.localeCompare(v))),S={},w=l=>{if(S[l])return S[l];let v=Array.from(y).sort((A,O)=>(this.parentOrders.get(A[0])??0)-(this.parentOrders.get(O[0])??0)||A[0]?.localeCompare(O[0]||"")||0).map(([A,O])=>{const L=O.length,I=O.filter(g=>(g[4]?.layer||K)===l).sort((g,$)=>g[0]-$[0]||(g[4]?.sort||0)-($[4]?.sort||0)||g[5]?.currentSelector?.localeCompare($[5]?.currentSelector??"")||g[1]?.localeCompare($[1]||"")||g[2]?.localeCompare($[2]||"")||0).map(([,g,$,,j,,E])=>[[[(g&&xe(g,r))??"",j?.sort??0]],$,!!(E??j?.noMerge)]);if(!I.length)return;const V=I.reverse().map(([g,$,j],E)=>{if(!j&&this.config.mergeSelectors)for(let T=E+1;T<L;T++){const P=I[T];if(P&&!P[2]&&(g&&P[0]||g==null&&P[0]==null)&&P[1]===$)return g&&P[0]&&P[0].push(...g),null}const z=g?R(g.sort((T,P)=>T[1]-P[1]||T[0]?.localeCompare(P[0]||"")||0).map(T=>T[0]).filter(Boolean)):[];return z.length?`${z.join(`,${a}`)}{${$}}`:$}).filter(Boolean).reverse().join(a);if(!A)return V;const b=A.split(" $$ ");return`${b.join("{")}{${a}${V}${a}${"}".repeat(b.length)}`}).filter(Boolean).join(a);i&&(v=[_[l],v].filter(Boolean).join(a));const C=c?"":`/* layer: ${l} */${a}`;return S[l]=v?C+v:""},x=(l=d,v)=>l.filter(C=>!v?.includes(C)).map(C=>w(C)||"").filter(Boolean).join(a);return{get css(){return x()},layers:d,matched:m,getLayers:x,getLayer:w}}async matchVariants(t,n){const s=new Set,r=[];let i=n||t,o=!1;const c={rawSelector:t,theme:this.config.theme,generator:this};for(;;){o=!1;for(const f of this.config.variants){if(!f.multiPass&&s.has(f))continue;let u=await f.match(i,c);if(u){if(M(u)){if(u===i)continue;u={matcher:u}}i=u.matcher,r.unshift(u),s.add(f),o=!0;break}}if(!o)break;if(r.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,r,s]}applyVariants(t,n=t[4],s=t[1]){const i=n.slice().sort((u,a)=>(u.order||0)-(a.order||0)).reduceRight((u,a)=>h=>{const m=a.body?.(h.entries)||h.entries,y=Array.isArray(a.parent)?a.parent:[a.parent,void 0];return(a.handle??_e)({...h,entries:m,selector:a.selector?.(h.selector,m)||h.selector,parent:y[0]||h.parent,parentOrder:y[1]||h.parentOrder,layer:a.layer||h.layer,sort:a.sort||h.sort},u)},u=>u)({prefix:"",selector:$e(s),pseudo:"",entries:t[2]}),{parent:o,parentOrder:c}=i;o!=null&&c!=null&&this.parentOrders.set(o,c);const f={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(f);return f}constructCustomCSS(t,n,s){const r=N(n);if(M(r))return r;const{selector:i,entries:o,parent:c}=this.applyVariants([0,s||t.rawSelector,r,void 0,t.variantHandlers]),f=`${i}{${Y(o)}}`;return c?`${c}{${f}}`:f}async parseUtil(t,n,s=!1,r){const[i,o,c]=M(t)?await this.matchVariants(t):t;this.config.details&&(n.rules=n.rules??[]);const f=this.config.rulesStaticMap[o];if(f&&f[1]&&(s||!f[2]?.internal)){this.config.details&&n.rules.push(f[3]);const a=f[0],h=N(f[1]),m=f[2];return M(h)?[[a,h,m]]:[[a,i,h,m,c]]}n.variantHandlers=c;const{rulesDynamic:u}=this.config;for(const[a,h,m,y]of u){if(y?.internal&&!s)continue;let _=o;if(y?.prefix){const w=k(y.prefix);if(r){const x=k(r);if(!w.some(l=>x.includes(l)))continue}else{const x=w.find(l=>o.startsWith(l));if(x==null)continue;_=o.slice(x.length)}}const p=_.match(h);if(!p)continue;const d=await m(p,n);if(!d)continue;this.config.details&&n.rules.push([h,m,y]);const S=Bt(d).filter(w=>w.length);if(S.length)return S.map(w=>M(w)?[a,w,y]:[a,i,w,y,c])}}stringifyUtil(t,n){if(!t)return;if(rt(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?n:void 0,void 0];const{selector:s,entries:r,parent:i,layer:o,sort:c,noMerge:f}=this.applyVariants(t),u=Y(r);if(!u)return;const{layer:a,sort:h,...m}=t[3]??{},y={...m,layer:o??a,sort:c??h};return[t[0],s,u,i,y,this.config.details?n:void 0,f]}async expandShortcut(t,n,s=5){if(s===0)return;const r=this.config.details?c=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(c)}:qt;let i,o;for(const c of this.config.shortcuts){let f=t;if(c[2]?.prefix){const a=k(c[2].prefix).find(h=>t.startsWith(h));if(a==null)continue;f=t.slice(a.length)}if(Gt(c)){if(c[0]===f){i=i||c[2],o=c[1],r(c);break}}else{const u=f.match(c[0]);if(u&&(o=c[1](u,n)),o){i=i||c[2],r(c);break}}}if(M(o)&&(o=se(o.trim()).split(/\s+/g)),!o){const[c,f]=M(t)?await this.matchVariants(t):t;if(c!==f){const u=await this.expandShortcut(f,n,s-1);u&&(o=u[0].map(a=>M(a)?c.replace(f,a):a))}}if(o)return[(await Promise.all(o.map(async c=>(M(c)?(await this.expandShortcut(c,n,s-1))?.[0]:void 0)||[c]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,n,s,r={layer:this.config.shortcutsLayer}){const i=new Jt,o=(await Promise.all(R(s).map(async a=>{const h=M(a)?await this.parseUtil(a,n,!0,r.prefix):[[Number.POSITIVE_INFINITY,"{inline}",N(a),void 0,[]]];return h||wt(`unmatched utility "${a}" in shortcut "${t[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((a,h)=>a[0]-h[0]),[c,,f]=t,u=[];for(const a of o){if(rt(a)){u.push([a[0],void 0,a[1],void 0,a[2],n,void 0]);continue}const{selector:h,entries:m,parent:y,sort:_,noMerge:p}=this.applyVariants(a,[...a[4],...f],c);i.getFallback(h,y,[[],a[0]])[0].push([m,!!(p??a[3]?.noMerge),_??0])}return u.concat(i.map(([a,h],m,y)=>{const _=(d,S,w)=>{const x=Math.max(...w.map(v=>v[1])),l=w.map(v=>v[0]);return(d?[l.flat(1)]:l).map(v=>{const C=Y(v);if(C)return[h,m,C,y,{...r,noMerge:S,sort:x},n,void 0]})};return[[a.filter(([,d])=>d).map(([d,,S])=>[d,S]),!0],[a.filter(([,d])=>!d).map(([d,,S])=>[d,S]),!1]].map(([d,S])=>[..._(!1,S,d.filter(([w])=>w.some(x=>x[0]===nt))),..._(!0,S,d.filter(([w])=>w.every(x=>x[0]!==nt)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(n=>typeof n=="function"?n(t):M(n)?n===t:n.test(t))}}function ve(e,t){return new we(e,t)}const be=/\s\$\$\s+/g;function Se(e){return e.match(/\s\$\$\s/)}function xe(e,t){return Se(e)?e.replace(be,t?` ${t} `:" "):t?`${t} ${e}`:e}const at=/^\[(.+?)(~?=)"(.*)"\]$/;function $e(e){return at.test(e)?e.replace(at,(t,n,s,r)=>`[${W(n)}${s}"${W(r)}"]`):`.${W(e)}`}function _e(e,t){return t(e)}function Ce(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ae(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),Ce(t)}const Oe=3;function Me(e){return function(n={}){const{scale:s=1,mode:r="auto",prefix:i="i-",warn:o=!1,collections:c,extraProperties:f={},customizations:u={},autoInstall:a=!1,layer:h="icons",unit:m}=n,y={addXmlNs:!0,scale:s,customCollections:c,autoInstall:a,warn:void 0,customizations:{...u,additionalProps:{...f},trimCustomSvg:!0,async iconCustomizer(p,d,S){await u.iconCustomizer?.(p,d,S),m&&(S.width||(S.width=`${s}${m}`),S.height||(S.height=`${s}${m}`))}}};let _;return{name:"@unocss/preset-icons",enforce:"pre",options:n,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([p,d,S=r])=>{let w="",x="",l;_=_||await e(n);const v={};if(d.includes(":"))[w,x]=d.split(":"),l=await _(w,x,{...y,usedProps:v});else{const A=d.split(/-/g);for(let O=Oe;O>=1&&(w=A.slice(0,O).join("-"),x=A.slice(O).join("-"),l=await _(w,x,{...y,usedProps:v}),!l);O--);}if(!l){o&&wt(`failed to load icon "${p}"`);return}const C=`url("data:image/svg+xml;utf8,${Ae(l)}")`;return S==="auto"&&(S=l.includes("currentColor")?"mask":"bg"),S==="mask"?{"--un-icon":C,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...v}:{background:`${C} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...v}},{layer:h,prefix:i}]]}}}const je=Me(async e=>{const{cdn:t}=e;return t?Vt(t):mt});function Ee(e){return e.replace(/-(\w)/g,(t,n)=>n?n.toUpperCase():"")}function ct(e){return e.charAt(0).toUpperCase()+e.slice(1)}function lt(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var ft=["Webkit","Moz","ms"];function ke(e){const t={};function n(s){const r=t[s];if(r)return r;let i=Ee(s);if(i!=="filter"&&i in e)return t[s]=lt(i);i=ct(i);for(let o=0;o<ft.length;o++){const c=`${ft[o]}${i}`;if(c in e)return t[s]=lt(ct(c))}return s}return({entries:s})=>s.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function Pe(e){return e.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}function Le(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const t=window,n=window.document,s=()=>n.documentElement,r=t.__unocss||{},i=Object.assign({},e,r.runtime),o=i.defaults||{},c=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=k(o.postprocess)).unshift(ke(n.createElement("div").style)),i.configResolved?.(r,o);const f=ve(r,o),u=b=>i.inject?i.inject(b):s().prepend(b),a=new Map;let h=!0,m=new Set,y,_,p=[];const d=()=>new Promise(b=>{p.push(b),_!=null&&clearTimeout(_),_=setTimeout(()=>x().then(()=>{const g=p;p=[],g.forEach($=>$())}),0)});function S(b){if(b.nodeType!==1)return;const g=b;g.hasAttribute(c)&&g.removeAttribute(c),g.querySelectorAll(`[${c}]`).forEach($=>{$.removeAttribute(c)})}function w(b,g){let $=a.get(b);if(!$)if($=n.createElement("style"),$.setAttribute("data-unocss-runtime-layer",b),a.set(b,$),g==null)u($);else{const j=w(g),E=j.parentNode;E?E.insertBefore($,j.nextSibling):u($)}return $}async function x(){const b=await f.generate(m);return b.layers.reduce((g,$)=>(w($,g).innerHTML=b.getLayer($)??"",$),void 0),m=b.matched,{...b,getStyleElement:g=>a.get(g),getStyleElements:()=>a}}async function l(b){const g=m.size;await f.applyExtractors(b,void 0,m),g!==m.size&&await d()}async function v(){const b=n.body,g=b&&b.outerHTML;g&&(await l(`${g} ${Pe(g)}`),S(s()),S(b))}const C=new MutationObserver(b=>{h||b.forEach(async g=>{if(g.target.nodeType!==1)return;const $=g.target;for(const j of a)if($===j[1])return;if(g.type==="childList")g.addedNodes.forEach(async j=>{if(j.nodeType!==1)return;const E=j;y&&!y(E)||(await l(E.outerHTML),S(E))});else{if(y&&!y($))return;if(g.attributeName!==c){const j=Array.from($.attributes).map(z=>z.value?`${z.name}="${z.value}"`:z.name).join(" "),E=`<${$.tagName.toLowerCase()} ${j}>`;await l(E)}$.hasAttribute(c)&&$.removeAttribute(c)}})});let A=!1;function O(){if(A)return;const b=i.observer?.target?i.observer.target():s()||n.body;b&&(C.observe(b,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),A=!0)}function L(){i.bypassDefined&&ze(f.blocked),v(),O()}function I(){n.readyState==="loading"?t.addEventListener("DOMContentLoaded",L):L()}const V=t.__unocss_runtime=t.__unocss_runtime={version:f.version,uno:f,async extract(b){M(b)||(b.forEach(g=>m.add(g)),b=""),await l(b)},extractAll:v,inspect(b){y=b},toggleObserver(b){b===void 0?h=!h:h=!!b,!A&&!h&&I()},update:x};i.ready?.(V)!==!1&&(h=!1,I())}function ze(e=new Set){for(let t=0;t<document.styleSheets.length;t++){const n=document.styleSheets[t];let s;try{if(s=n.cssRules||n.rules,!s)continue;Array.from(s).flatMap(r=>r.selectorText?.split(/,/g)||[]).forEach(r=>{r&&(r=r.trim(),r.startsWith(".")&&(r=r.slice(1)),e.add(r))})}catch{continue}}return e}Le({defaults:{presets:[je({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});