@vitejs/devtools-rolldown 0.1.12 → 0.1.13

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 (78) hide show
  1. package/dist/nitro.json +1 -1
  2. package/dist/public/200.html +1 -1
  3. package/dist/public/404.html +1 -1
  4. package/dist/public/_nuxt/{BkNrnf7z.js → 0b3Up9kD.js} +1 -1
  5. package/dist/public/_nuxt/{4u6R6kmy.js → B78U2q4j.js} +1 -1
  6. package/dist/public/_nuxt/{BBjyA450.js → BJrTj8Zw.js} +1 -1
  7. package/dist/public/_nuxt/BKUGy95W.js +1 -0
  8. package/dist/public/_nuxt/BKnfiF85.js +1 -0
  9. package/dist/public/_nuxt/{MPr03GYv2.js → BMpbzaZm2.js} +1 -1
  10. package/dist/public/_nuxt/{B8a2SqNB.js → BTLlCOZ3.js} +1 -1
  11. package/dist/public/_nuxt/{hanhGz4p.js → BbMdHIyp.js} +1 -1
  12. package/dist/public/_nuxt/{Du2TAFfS.js → BckBWP8Y.js} +1 -1
  13. package/dist/public/_nuxt/{WOQUZE4V.js → BfJK_SLU.js} +1 -1
  14. package/dist/public/_nuxt/Bgi9Q5oI2.js +1 -0
  15. package/dist/public/_nuxt/{COguKaym2.js → BoT0VeIE2.js} +1 -1
  16. package/dist/public/_nuxt/BpHzZqln.js +1 -0
  17. package/dist/public/_nuxt/BrH7MV2S.js +1 -0
  18. package/dist/public/_nuxt/Bw6oKINi.js +1 -0
  19. package/dist/public/_nuxt/{DHH1zTqi.js → ByozAWPX.js} +1 -1
  20. package/dist/public/_nuxt/{CHDa2Jyn.js → C3WaG9_l.js} +1 -1
  21. package/dist/public/_nuxt/{B4F3iFfR.js → C6fMHFxG.js} +1 -1
  22. package/dist/public/_nuxt/{BIN2apLJ2.js → CfMio2JI2.js} +1 -1
  23. package/dist/public/_nuxt/{DtDZGs9N2.js → CljeSbIq.js} +2 -2
  24. package/dist/public/_nuxt/{Cz3MAfkg.js → D1VsDu4A.js} +1 -1
  25. package/dist/public/_nuxt/{BAo-e_JU.js → D5gbExwF.js} +1 -1
  26. package/dist/public/_nuxt/D8Vpa9yk2.js +1 -0
  27. package/dist/public/_nuxt/{CsnuQTMT.js → DJz_FUcO.js} +1 -1
  28. package/dist/public/_nuxt/DKF2_lrC2.js +1 -0
  29. package/dist/public/_nuxt/{BKc1pqIm2.js → DZUBLlU02.js} +1 -1
  30. package/dist/public/_nuxt/DataVirtualList.Co38wNF1.css +1 -0
  31. package/dist/public/_nuxt/Db9eNfm22.js +1 -0
  32. package/dist/public/_nuxt/{B9VntNhm.js → Dddjvfu6.js} +1 -1
  33. package/dist/public/_nuxt/DdnjLjA0.js +1 -0
  34. package/dist/public/_nuxt/{Dnap40Ul.js → DvOe6iF7.js} +1 -1
  35. package/dist/public/_nuxt/DxL6khwF.js +1 -0
  36. package/dist/public/_nuxt/FPPtwoaF.js +1 -0
  37. package/dist/public/_nuxt/MX5lF8O0.js +1 -0
  38. package/dist/public/_nuxt/YInJexJm.js +1 -0
  39. package/dist/public/_nuxt/builds/latest.json +1 -1
  40. package/dist/public/_nuxt/builds/meta/13cd8559-86c3-48c3-847a-978c5a89a258.json +1 -0
  41. package/dist/public/_nuxt/{entry.ByRjDeYo.css → entry.BbPdpfMZ.css} +1 -1
  42. package/dist/public/_nuxt/error-404.CIXJRNVA.css +1 -0
  43. package/dist/public/_nuxt/error-500.D6HhFSba.css +1 -0
  44. package/dist/public/_nuxt/h4IG5O3d.js +2 -0
  45. package/dist/public/_nuxt/hkrGm6WL.js +1 -0
  46. package/dist/public/_nuxt/mPjDuzbZ2.js +1 -0
  47. package/dist/public/_nuxt/qiDKcEVG2.js +1 -0
  48. package/dist/public/_nuxt/r0DxGHyz.js +1 -0
  49. package/dist/public/_nuxt/{D-q_RBTz.js → utGBqPQW.js} +1 -1
  50. package/dist/public/_nuxt/{BH_Y2qlu.js → wJd4eZyr.js} +1 -1
  51. package/dist/public/_nuxt/{D5wH9XYc.js → yaHSMaAX.js} +1 -1
  52. package/dist/public/index.html +1 -1
  53. package/package.json +3 -3
  54. package/dist/public/_nuxt/4NH8NIP0.js +0 -1
  55. package/dist/public/_nuxt/BEi8EpEX.js +0 -2
  56. package/dist/public/_nuxt/BGO_avQR.js +0 -1
  57. package/dist/public/_nuxt/BPmpuG8C.js +0 -1
  58. package/dist/public/_nuxt/BeLy3b84.js +0 -1
  59. package/dist/public/_nuxt/BmalnO7M2.js +0 -1
  60. package/dist/public/_nuxt/Bpyx8FA-2.js +0 -1
  61. package/dist/public/_nuxt/C-jnQn3e2.js +0 -1
  62. package/dist/public/_nuxt/C1yaj-Vm.js +0 -1
  63. package/dist/public/_nuxt/CI0Dr981.js +0 -1
  64. package/dist/public/_nuxt/COgjeEhM.js +0 -1
  65. package/dist/public/_nuxt/CeYpEmO6.js +0 -1
  66. package/dist/public/_nuxt/D4alSS1R2.js +0 -1
  67. package/dist/public/_nuxt/DOP22jZa.js +0 -1
  68. package/dist/public/_nuxt/DVNjK2Kc.js +0 -1
  69. package/dist/public/_nuxt/DataVirtualList.CjCVip5P.css +0 -1
  70. package/dist/public/_nuxt/Dy-Bcz622.js +0 -1
  71. package/dist/public/_nuxt/JI1WloZr2.js +0 -1
  72. package/dist/public/_nuxt/MtfbxdGf.js +0 -1
  73. package/dist/public/_nuxt/builds/meta/22fa3e65-827c-4bf4-9626-ed9f35ca13df.json +0 -1
  74. package/dist/public/_nuxt/error-404.DW3F0okm.css +0 -1
  75. package/dist/public/_nuxt/error-500.B7h4CJww.css +0 -1
  76. package/dist/public/_nuxt/mwlMWDmZ.js +0 -1
  77. package/dist/public/_nuxt/n6uS-XK5.js +0 -1
  78. /package/dist/public/_nuxt/{DjsgV5Nj2.js → CB2VayxA2.js} +0 -0
package/dist/nitro.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-04-02T05:26:15.567Z",
2
+ "date": "2026-04-02T08:55:56.154Z",
3
3
  "preset": "static",
4
4
  "framework": {
5
5
  "name": "nuxt",
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-rolldown/_nuxt/BEi8EpEX.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/.devtools-rolldown/_nuxt/entry.ByRjDeYo.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BEi8EpEX.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/Dnap40Ul.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/WOQUZE4V.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/DOP22jZa.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/CHDa2Jyn.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BeLy3b84.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BPmpuG8C.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/D4aX0j39.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/4u6R6kmy.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/B8a2SqNB.js"><script type="module" src="/.devtools-rolldown/_nuxt/BEi8EpEX.js" crossorigin></script><meta name="description" content="DevTools for Rolldown"><meta property="og:title" content="Rolldown DevTools"><meta property="og:description" content="DevTools for Rolldown"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script id="unhead:payload" type="application/json">{"title":"Rolldown DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-rolldown/",buildId:"22fa3e65-827c-4bf4-9626-ed9f35ca13df",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1775107575465,false]</script></body></html>
1
+ <!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-rolldown/_nuxt/h4IG5O3d.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/.devtools-rolldown/_nuxt/entry.BbPdpfMZ.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/h4IG5O3d.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/DvOe6iF7.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BfJK_SLU.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BrH7MV2S.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/C3WaG9_l.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BpHzZqln.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/MX5lF8O0.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/D4aX0j39.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/B78U2q4j.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BTLlCOZ3.js"><script type="module" src="/.devtools-rolldown/_nuxt/h4IG5O3d.js" crossorigin></script><meta name="description" content="DevTools for Rolldown"><meta property="og:title" content="Rolldown DevTools"><meta property="og:description" content="DevTools for Rolldown"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script id="unhead:payload" type="application/json">{"title":"Rolldown DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-rolldown/",buildId:"13cd8559-86c3-48c3-847a-978c5a89a258",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1775120156043,false]</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-rolldown/_nuxt/BEi8EpEX.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/.devtools-rolldown/_nuxt/entry.ByRjDeYo.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BEi8EpEX.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/Dnap40Ul.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/WOQUZE4V.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/DOP22jZa.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/CHDa2Jyn.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BeLy3b84.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BPmpuG8C.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/D4aX0j39.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/4u6R6kmy.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/B8a2SqNB.js"><script type="module" src="/.devtools-rolldown/_nuxt/BEi8EpEX.js" crossorigin></script><meta name="description" content="DevTools for Rolldown"><meta property="og:title" content="Rolldown DevTools"><meta property="og:description" content="DevTools for Rolldown"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script id="unhead:payload" type="application/json">{"title":"Rolldown DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-rolldown/",buildId:"22fa3e65-827c-4bf4-9626-ed9f35ca13df",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1775107575465,false]</script></body></html>
1
+ <!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-rolldown/_nuxt/h4IG5O3d.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/.devtools-rolldown/_nuxt/entry.BbPdpfMZ.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/h4IG5O3d.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/DvOe6iF7.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BfJK_SLU.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BrH7MV2S.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/C3WaG9_l.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BpHzZqln.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/MX5lF8O0.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/D4aX0j39.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/B78U2q4j.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BTLlCOZ3.js"><script type="module" src="/.devtools-rolldown/_nuxt/h4IG5O3d.js" crossorigin></script><meta name="description" content="DevTools for Rolldown"><meta property="og:title" content="Rolldown DevTools"><meta property="og:description" content="DevTools for Rolldown"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script id="unhead:payload" type="application/json">{"title":"Rolldown DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-rolldown/",buildId:"13cd8559-86c3-48c3-847a-978c5a89a258",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1775120156043,false]</script></body></html>
@@ -1 +1 @@
1
- import{F as e,Ht as t,M as n,b as r,q as i,w as a}from"./WOQUZE4V.js";import{s as o,t as s}from"./Du2TAFfS.js";var c=[`title`],l=Object.assign(n({__name:`FileIcon`,props:{filename:{}},setup(e){let n=e,s=r(()=>o(n.filename));return(e,n)=>(i(),a(`div`,{"flex-none":``,"icon-catppuccin":``,title:s.value.description||s.value.name,class:t([s.value.icon])},null,10,c))}}),{__name:`DisplayFileIcon`}),u=n({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(t){return()=>{let n=t.path.split(/([?/&:=])/g),r=`path`,i=n.map(()=>[]),a=n.map(()=>[]),o=n.map(t=>e(`span`,{class:``},t)),c=new Set;return n.forEach((e,l)=>{if(e===`?`&&(r=`query`),r===`path`){if(/^\.+$/.test(e)||e===`/`?i[l]?.push(`op50`):(e===`node_modules`||e===`dist`||e===`lib`||/^\.\w/.test(e))&&i[l]?.push(`op60`),e===`node_modules`&&t.minimal)for(let e=0;e<l+2;e++)c.add(e);if(e===`.pnpm`&&(o[l]&&(o[l].children=`~`,i[l]?.push(`op25!`),i[l-1]?.push(`op25!`)),c.add(l+1),c.add(l+2),i[l+3]?.push(`op25!`),o[l+4]?.children===`node_modules`&&(c.add(l+3),c.add(l+4),i[l+5]?.push(`op25!`))),e===`:`&&(o[l-1]&&a[l-1]?.push(`color: ${s(n[l-1])}`),i[l]?.push(`op50`)),n[l-2]===`node_modules`&&!e.startsWith(`.`)){let t=`color: ${s(n[l])}`;a[l]?.push(t),e.startsWith(`@`)&&(a[l+1]?.push(t),a[l+2]?.push(t))}}r===`query`&&(e===`?`?i[l]?.push(`text-red-500 dark:text-red-400`):e===`&`&&i[l]?.push(`text-orange-500 dark:text-orange-400`),e===`=`?i[l]?.push(`text-orange-900 dark:text-orange-200 op50`):n[l+1]===`=`?i[l]?.push(`text-amber-900 dark:text-amber-200`):i[l]?.push(`text-orange-900 dark:text-orange-200`))}),o.forEach((e,t)=>{e.props&&(e.props.class=i[t]?.join(` `)??``,e.props.style=a[t]?.join(`;`)??``)}),Array.from(c).sort((e,t)=>t-e).forEach(e=>{o.splice(e,1)}),o}}});export{l as n,u as t};
1
+ import{F as e,M as t,Ut as n,b as r,q as i,w as a}from"./BfJK_SLU.js";import{s as o,t as s}from"./BckBWP8Y.js";var c=[`title`],l=Object.assign(t({__name:`FileIcon`,props:{filename:{}},setup(e){let t=e,s=r(()=>o(t.filename));return(e,t)=>(i(),a(`div`,{"flex-none":``,"icon-catppuccin":``,title:s.value.description||s.value.name,class:n([s.value.icon])},null,10,c))}}),{__name:`DisplayFileIcon`}),u=t({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(t){return()=>{let n=t.path.split(/([?/&:=])/g),r=`path`,i=n.map(()=>[]),a=n.map(()=>[]),o=n.map(t=>e(`span`,{class:``},t)),c=new Set;return n.forEach((e,l)=>{if(e===`?`&&(r=`query`),r===`path`){if(/^\.+$/.test(e)||e===`/`?i[l]?.push(`op50`):(e===`node_modules`||e===`dist`||e===`lib`||/^\.\w/.test(e))&&i[l]?.push(`op60`),e===`node_modules`&&t.minimal)for(let e=0;e<l+2;e++)c.add(e);if(e===`.pnpm`&&(o[l]&&(o[l].children=`~`,i[l]?.push(`op25!`),i[l-1]?.push(`op25!`)),c.add(l+1),c.add(l+2),i[l+3]?.push(`op25!`),o[l+4]?.children===`node_modules`&&(c.add(l+3),c.add(l+4),i[l+5]?.push(`op25!`))),e===`:`&&(o[l-1]&&a[l-1]?.push(`color: ${s(n[l-1])}`),i[l]?.push(`op50`)),n[l-2]===`node_modules`&&!e.startsWith(`.`)){let t=`color: ${s(n[l])}`;a[l]?.push(t),e.startsWith(`@`)&&(a[l+1]?.push(t),a[l+2]?.push(t))}}r===`query`&&(e===`?`?i[l]?.push(`text-red-500 dark:text-red-400`):e===`&`&&i[l]?.push(`text-orange-500 dark:text-orange-400`),e===`=`?i[l]?.push(`text-orange-900 dark:text-orange-200 op50`):n[l+1]===`=`?i[l]?.push(`text-amber-900 dark:text-amber-200`):i[l]?.push(`text-orange-900 dark:text-orange-200`))}),o.forEach((e,t)=>{e.props&&(e.props.class=i[t]?.join(` `)??``,e.props.style=a[t]?.join(`;`)??``)}),Array.from(c).sort((e,t)=>t-e).forEach(e=>{o.splice(e,1)}),o}}});export{l as n,u as t};
@@ -1 +1 @@
1
- import{H as e,I as t,L as n,N as r,Tt as i,U as a,V as o,bt as s,ht as c,i as l,st as u}from"./WOQUZE4V.js";var d=new Set([`link`,`style`,`script`,`noscript`]),f=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),p=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),m=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),h=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),g=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),_=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),v=new Set([`theme-color`,`google-site-verification`,`og`,`article`,`book`,`profile`,`twitter`,`author`]),y=[`name`,`property`,`http-equiv`],b=new Set([`viewport`,`description`,`keywords`,`robots`]);function x(e){let t=e.split(`:`);return t.length?v.has(t[1]):!1}function S(e){let{props:t,tag:n}=e;if(h.has(n))return n;if(n===`link`&&t.rel===`canonical`)return`canonical`;if(n===`link`&&t.rel===`alternate`){let e=t.hreflang||t.type;if(e)return`alternate:${e}`}if(t.charset)return`charset`;if(e.tag===`meta`){for(let r of y)if(t[r]!==void 0){let i=t[r],a=i&&typeof i==`string`&&i.includes(`:`),o=i&&b.has(i);return`${n}:${i}${!(a||o)&&e.key?`:key:${e.key}`:``}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n===`link`&&t.rel===`alternate`)return`alternate:${t.href||``}`;if(f.has(n)){let t=e.textContent||e.innerHTML;if(t)return`${n}:content:${t}`}}function C(e){return e._h||e._d||e.textContent||e.innerHTML||`${e.tag}:${Object.entries(e.props).map(([e,t])=>`${e}:${String(t)}`).join(`,`)}`}function w(e,t,n){typeof e==`function`&&(!n||n!==`titleTemplate`&&!(n[0]===`o`&&n[1]===`n`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r))return r.map(e=>w(e,t));if(r?.constructor===Object){let e={};for(let n of Object.keys(r))e[n]=w(r[n],t,n);return e}return r}function T(e,t){let n=e===`style`?new Map:new Set;function r(t){if(t==null||t===void 0)return;let r=String(t).trim();if(r)if(e===`style`){let[e,...t]=r.split(`:`).map(e=>e?e.trim():``);e&&t.length&&n.set(e,t.join(`:`))}else r.split(` `).filter(Boolean).forEach(e=>n.add(e))}return typeof t==`string`?e===`style`?t.split(`;`).forEach(r):r(t):Array.isArray(t)?t.forEach(e=>r(e)):t&&typeof t==`object`&&Object.entries(t).forEach(([t,i])=>{i&&i!==`false`&&(e===`style`?n.set(String(t).trim(),String(i)):r(t))}),n}function E(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=p.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;return Object.entries(t).forEach(([r,i])=>{if(r===`__proto__`||r===`constructor`||r===`prototype`)return;if(i===null){e.props[r]=null;return}if(r===`class`||r===`style`){e.props[r]=T(r,i);return}if(g.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof i==`object`){let n=t.type;if(t.type||(n=`application/json`),!n?.endsWith(`json`)&&n!==`speculationrules`)return;t.type=n,e.props.type=n,e[r]=JSON.stringify(i)}else e[r]=i;return}let a=r.startsWith(`data-`),o=n&&!a?r.toLowerCase():r,s=String(i),c=e.tag===`meta`&&o===`content`;s===`true`||s===``?e.props[o]=a||c?s:!0:!i&&a&&s===`false`?e.props[o]=`false`:i!==void 0&&(e.props[o]=i)}),e}function D(e,t){let n=E({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});return n.key&&d.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)?n.props.content.map(e=>({...n,props:{...n.props,content:e}})):n}function O(e,t){if(!e)return[];typeof e==`function`&&(e=e());let n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n};e=n(void 0,e);let r=[];return e=w(e,n),Object.entries(e||{}).forEach(([e,t])=>{if(t!==void 0)for(let n of Array.isArray(t)?t:[t])r.push(D(e,n))}),r.flat()}var k=(e,t)=>c(t)?i(t):t,A=`usehead`;function j(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(A,e)}}.install}function M(){if(t()){let e=n(A);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function N(e,t={}){let n=t.head||M();return n.ssr?n.push(e||{},t):P(n,e,t)}function P(t,n,i={}){let c=s(!1),l;return u(()=>{let e=c.value?{}:w(n,k);l?l.patch(e):l=t.push(e,i)}),r()&&(e(()=>{l.dispose()}),a(()=>{c.value=!0}),o(()=>{c.value=!1})),l}function F(e){let r=e||l();return r.ssrContext?.head||r.runWithContext(()=>{if(t()){let e=n(`usehead`);if(!e)throw Error(`[nuxt] [unhead] Missing Unhead instance.`);return e}})}function I(e,t={}){return N(e,{head:t.head||F(t.nuxt),...t})}export{x as a,p as c,C as i,_ as l,j as n,O as o,S as r,E as s,I as t,m as u};
1
+ import{Et as e,H as t,I as n,L as r,N as i,U as a,V as o,gt as s,i as c,st as l,xt as u}from"./BfJK_SLU.js";var d=new Set([`link`,`style`,`script`,`noscript`]),f=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),p=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),m=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),h=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),g=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),_=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),v=new Set([`theme-color`,`google-site-verification`,`og`,`article`,`book`,`profile`,`twitter`,`author`]),y=[`name`,`property`,`http-equiv`],b=new Set([`viewport`,`description`,`keywords`,`robots`]);function x(e){let t=e.split(`:`);return t.length?v.has(t[1]):!1}function S(e){let{props:t,tag:n}=e;if(h.has(n))return n;if(n===`link`&&t.rel===`canonical`)return`canonical`;if(n===`link`&&t.rel===`alternate`){let e=t.hreflang||t.type;if(e)return`alternate:${e}`}if(t.charset)return`charset`;if(e.tag===`meta`){for(let r of y)if(t[r]!==void 0){let i=t[r],a=i&&typeof i==`string`&&i.includes(`:`),o=i&&b.has(i);return`${n}:${i}${!(a||o)&&e.key?`:key:${e.key}`:``}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n===`link`&&t.rel===`alternate`)return`alternate:${t.href||``}`;if(f.has(n)){let t=e.textContent||e.innerHTML;if(t)return`${n}:content:${t}`}}function C(e){return e._h||e._d||e.textContent||e.innerHTML||`${e.tag}:${Object.entries(e.props).map(([e,t])=>`${e}:${String(t)}`).join(`,`)}`}function w(e,t,n){typeof e==`function`&&(!n||n!==`titleTemplate`&&!(n[0]===`o`&&n[1]===`n`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r))return r.map(e=>w(e,t));if(r?.constructor===Object){let e={};for(let n of Object.keys(r))e[n]=w(r[n],t,n);return e}return r}function T(e,t){let n=e===`style`?new Map:new Set;function r(t){if(t==null||t===void 0)return;let r=String(t).trim();if(r)if(e===`style`){let[e,...t]=r.split(`:`).map(e=>e?e.trim():``);e&&t.length&&n.set(e,t.join(`:`))}else r.split(` `).filter(Boolean).forEach(e=>n.add(e))}return typeof t==`string`?e===`style`?t.split(`;`).forEach(r):r(t):Array.isArray(t)?t.forEach(e=>r(e)):t&&typeof t==`object`&&Object.entries(t).forEach(([t,i])=>{i&&i!==`false`&&(e===`style`?n.set(String(t).trim(),String(i)):r(t))}),n}function E(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=p.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;return Object.entries(t).forEach(([r,i])=>{if(r===`__proto__`||r===`constructor`||r===`prototype`)return;if(i===null){e.props[r]=null;return}if(r===`class`||r===`style`){e.props[r]=T(r,i);return}if(g.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof i==`object`){let n=t.type;if(t.type||(n=`application/json`),!n?.endsWith(`json`)&&n!==`speculationrules`)return;t.type=n,e.props.type=n,e[r]=JSON.stringify(i)}else e[r]=i;return}let a=r.startsWith(`data-`),o=n&&!a?r.toLowerCase():r,s=String(i),c=e.tag===`meta`&&o===`content`;s===`true`||s===``?e.props[o]=a||c?s:!0:!i&&a&&s===`false`?e.props[o]=`false`:i!==void 0&&(e.props[o]=i)}),e}function D(e,t){let n=E({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});return n.key&&d.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)?n.props.content.map(e=>({...n,props:{...n.props,content:e}})):n}function O(e,t){if(!e)return[];typeof e==`function`&&(e=e());let n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n};e=n(void 0,e);let r=[];return e=w(e,n),Object.entries(e||{}).forEach(([e,t])=>{if(t!==void 0)for(let n of Array.isArray(t)?t:[t])r.push(D(e,n))}),r.flat()}var k=(t,n)=>s(n)?e(n):n,A=`usehead`;function j(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(A,e)}}.install}function M(){if(n()){let e=r(A);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function N(e,t={}){let n=t.head||M();return n.ssr?n.push(e||{},t):P(n,e,t)}function P(e,n,r={}){let s=u(!1),c;return l(()=>{let t=s.value?{}:w(n,k);c?c.patch(t):c=e.push(t,r)}),i()&&(t(()=>{c.dispose()}),a(()=>{s.value=!0}),o(()=>{s.value=!1})),c}function F(e){let t=e||c();return t.ssrContext?.head||t.runWithContext(()=>{if(n()){let e=r(`usehead`);if(!e)throw Error(`[nuxt] [unhead] Missing Unhead instance.`);return e}})}function I(e,t={}){return N(e,{head:t.head||F(t.nuxt),...t})}export{x as a,p as c,C as i,_ as l,j as n,O as o,S as r,E as s,I as t,m as u};
@@ -1 +1 @@
1
- import{Gt as e,M as t,Z as n,h as r,q as i,w as a,x as o}from"./WOQUZE4V.js";var s={flex:`~ gap5`,"w-full":``,border:`b base`,pb3:``},c={"font-mono":``},l={"font-mono":``},u=[`datetime`],d=Object.assign(t({__name:`SessionMeta`,props:{sessions:{}},setup(t){return(d,f)=>(i(),a(`div`,s,[(i(!0),a(r,null,n(t.sessions,t=>(i(),a(`div`,{key:t.id,"flex-1":``,border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_140px_2fr] max-lg:cols-[max-content_80px_2fr] gap-2 items-center`},[f[0]||=o(`div`,{class:`i-ph-hash-duotone`},null,-1),o(`div`,null,e(t.title),1),o(`div`,c,[o(`span`,null,e(t.id),1)]),f[1]||=o(`div`,{class:`i-ph-clock-duotone`},null,-1),f[2]||=o(`div`,null,` Created At `,-1),o(`div`,l,[o(`time`,{datetime:t.createdAt.toISOString()},e(t.createdAt.toLocaleString()),9,u)])]))),128))]))}}),{__name:`CompareSessionMeta`});export{d as t};
1
+ import{Kt as e,M as t,Z as n,h as r,q as i,w as a,x as o}from"./BfJK_SLU.js";var s={flex:`~ gap5`,"w-full":``,border:`b base`,pb3:``},c={"font-mono":``},l={"font-mono":``},u=[`datetime`],d=Object.assign(t({__name:`SessionMeta`,props:{sessions:{}},setup(t){return(d,f)=>(i(),a(`div`,s,[(i(!0),a(r,null,n(t.sessions,t=>(i(),a(`div`,{key:t.id,"flex-1":``,border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_140px_2fr] max-lg:cols-[max-content_80px_2fr] gap-2 items-center`},[f[0]||=o(`div`,{class:`i-ph-hash-duotone`},null,-1),o(`div`,null,e(t.title),1),o(`div`,c,[o(`span`,null,e(t.id),1)]),f[1]||=o(`div`,{class:`i-ph-clock-duotone`},null,-1),f[2]||=o(`div`,null,` Created At `,-1),o(`div`,l,[o(`time`,{datetime:t.createdAt.toISOString()},e(t.createdAt.toLocaleString()),9,u)])]))),128))]))}}),{__name:`CompareSessionMeta`});export{d as t};
@@ -0,0 +1 @@
1
+ import{$ as e,Ct as t,Dt as n,F as r,G as i,H as a,M as o,a as s,b as c,c as l,i as u,xt as d}from"./BfJK_SLU.js";import{F as f,L as p,M as m,O as h,S as g,a as _,b as v,i as y,j as b,n as x,r as S,w as C,x as w}from"./BpHzZqln.js";var T=(...e)=>e.find(e=>e!==void 0);function E(l){let f=l.componentName||`NuxtLink`;function p(e){return typeof e==`string`&&e.startsWith(`#`)}function E(e,t,n){let r=n??l.trailingSlash;if(!e||r!==`append`&&r!==`remove`)return e;if(typeof e==`string`)return O(e,r);let i=`path`in e&&e.path!==void 0?e.path:t(e).path;return{...e,name:void 0,path:O(i,r)}}function D(t){let r=C(),i=s(),a=c(()=>!!n(t.target)&&n(t.target)!==`_self`),o=c(()=>{let e=n(t.to)||n(t.href)||``;return typeof e==`string`&&h(e,{acceptRelative:!0})}),u=e(`RouterLink`),d=u&&typeof u!=`string`?u.useLink:void 0,f=c(()=>{if(n(t.external))return!0;let e=n(t.to)||n(t.href)||``;return typeof e==`object`?!1:e===``||o.value}),m=c(()=>{let e=n(t.to)||n(t.href)||``;return f.value?e:E(e,r.resolve,n(t.trailingSlash))}),_=f.value?void 0:d?.({...t,to:m,viewTransition:n(t.viewTransition)}),v=c(()=>{let e=n(t.trailingSlash)??l.trailingSlash;if(!m.value||o.value||p(m.value))return m.value;if(f.value){let t=typeof m.value==`object`&&`path`in m.value?g(m.value):m.value;return O(typeof t==`object`?r.resolve(t).href:t,e)}return typeof m.value==`object`?r.resolve(m.value)?.href??null:O(b(i.app.baseURL,m.value),e)});return{to:m,hasTarget:a,isAbsoluteUrl:o,isExternal:f,href:v,isActive:_?.isActive??c(()=>m.value===r.currentRoute.value.path),isExactActive:_?.isExactActive??c(()=>m.value===r.currentRoute.value.path),route:_?.route??c(()=>r.resolve(m.value)),async navigate(e){await w(v.value,{replace:n(t.replace),external:f.value||a.value})}}}return o({name:f,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:D,setup(n,{slots:o}){let s=C(),{to:c,href:f,navigate:h,isExternal:b,hasTarget:w,isAbsoluteUrl:E}=D(n),O=t(!1),A=d(null),M=e=>{A.value=n.custom?e?.$el?.nextElementSibling:e?.$el};function N(e){return!O.value&&(typeof n.prefetchOn==`string`?n.prefetchOn===e:n.prefetchOn?.[e]??l.prefetchOn?.[e])&&(n.prefetch??l.prefetch)!==!1&&n.noPrefetch!==!0&&n.target!==`_blank`&&!j()}async function P(e=u()){if(O.value)return;O.value=!0;let t=typeof c.value==`string`?c.value:b.value?g(c.value):s.resolve(c.value).fullPath,n=b.value?new URL(t,window.location.href).href:t;await Promise.all([e.hooks.callHook(`link:prefetch`,n)?.catch(()=>{}),!b.value&&!w.value&&x(c.value,s).catch(()=>{})])}if(N(`visibility`)){let e=u(),t,n=null;i(()=>{let r=k();S(()=>{t=_(()=>{A?.value?.tagName&&(n=r.observe(A.value,async()=>{n?.(),n=null,await P(e)}))})})}),a(()=>{t&&y(t),n?.(),n=null})}return()=>{if(!b.value&&!w.value&&!p(c.value)){let t={ref:M,to:c.value,activeClass:n.activeClass||l.activeClass,exactActiveClass:n.exactActiveClass||l.exactActiveClass,replace:n.replace,ariaCurrentValue:n.ariaCurrentValue,custom:n.custom};return n.custom||(N(`interaction`)&&(t.onPointerenter=P.bind(null,void 0),t.onFocus=P.bind(null,void 0)),O.value&&(t.class=n.prefetchedClass||l.prefetchedClass),t.rel=n.rel||void 0),r(e(`RouterLink`),t,o.default)}let t=n.target||null,i=T(n.noRel?``:n.rel,l.externalRelAttribute,E.value||w.value?`noopener noreferrer`:``)||null;return n.custom?o.default?o.default({href:f.value,navigate:h,prefetch:P,get route(){if(!f.value)return;let e=new URL(f.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return m(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f.value}},rel:i,target:t,isExternal:b.value||w.value,isActive:!1,isExactActive:!1}):null:r(`a`,{ref:A,href:f.value||null,rel:i,target:t,onClick:async e=>{if(!(b.value||w.value)){e.preventDefault();try{let e=v(f.value);return await(n.replace?s.replace(e):s.push(e))}finally{if(p(c.value)){let e=c.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},o.default?.())}}})}var D=E(l);function O(e,t){let n=t===`append`?f:p;return h(e)&&!e.startsWith(`http`)?e:n(e,!0)}function k(){let e=u();if(e._observer)return e._observer;let t=null,n=new Map;return e._observer={observe:(e,r)=>(t||=new IntersectionObserver(e=>{for(let t of e){let e=n.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),n.set(e,r),t.observe(e),()=>{n.delete(e),t?.unobserve(e),n.size===0&&(t?.disconnect(),t=null)})}}var A=/2g/;function j(){let e=navigator.connection;return!!(e&&(e.saveData||A.test(e.effectiveType)))}export{D as t};
@@ -0,0 +1 @@
1
+ import{B as e,C as t,Ct as n,Dt as r,Gt as i,K as a,Kt as o,M as s,Q as c,S as l,Tt as u,Z as d,at as f,b as p,h as m,ot as h,q as g,v as _,w as v,x as y,xt as ee}from"./BfJK_SLU.js";import{a as b,c as x,d as S,f as C,i as te,l as w,o as ne,r as re,u as ie}from"./D4aX0j39.js";import{t as T}from"./BrH7MV2S.js";import{t as E}from"./CKJSqDo0.js";import{t as ae}from"./BbMdHIyp.js";function D(){return typeof window<`u`}function O(e){return oe(e)?(e.nodeName||``).toLowerCase():`#document`}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function A(e){return((oe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function oe(e){return D()?e instanceof Node||e instanceof k(e).Node:!1}function j(e){return D()?e instanceof Element||e instanceof k(e).Element:!1}function M(e){return D()?e instanceof HTMLElement||e instanceof k(e).HTMLElement:!1}function se(e){return!D()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function N(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=L(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ce(e){return/^(table|td|th)$/.test(O(e))}function P(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var le=/transform|translate|scale|rotate|perspective|filter/,ue=/paint|layout|strict|content/,F=e=>!!e&&e!==`none`,de;function fe(e){let t=j(e)?L(e):e;return F(t.transform)||F(t.translate)||F(t.scale)||F(t.rotate)||F(t.perspective)||!me()&&(F(t.backdropFilter)||F(t.filter))||le.test(t.willChange||``)||ue.test(t.contain||``)}function pe(e){let t=z(e);for(;M(t)&&!I(t);){if(fe(t))return t;if(P(t))return null;t=z(t)}return null}function me(){return de??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),de}function I(e){return/^(html|body|#document)$/.test(O(e))}function L(e){return k(e).getComputedStyle(e)}function R(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function z(e){if(O(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||se(e)&&e.host||A(e);return se(t)?t.host:t}function he(e){let t=z(e);return I(t)?e.ownerDocument?e.ownerDocument.body:e.body:M(t)&&N(t)?t:he(t)}function ge(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=he(e),i=r===e.ownerDocument?.body,a=k(r);if(i){let e=_e(a);return t.concat(a,a.visualViewport||[],N(r)?r:[],e&&n?ge(e):[])}else return t.concat(r,ge(r,[],n))}function _e(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ve(e){let t=L(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=M(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=C(n)!==a||C(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ye(e){return j(e)?e:e.contextElement}function B(e){let t=ye(e);if(!M(t))return x(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ve(t),o=(a?C(n.width):n.width)/r,s=(a?C(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var be=x(0);function xe(e){let t=k(e);return!me()||!t.visualViewport?be:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Se(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==k(e)?!1:t}function V(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ye(e),o=x(1);t&&(r?j(r)&&(o=B(r)):o=B(e));let s=Se(a,n,r)?xe(a):x(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=k(a),t=r&&j(r)?k(r):r,n=e,i=_e(n);for(;i&&r&&t!==n;){let e=B(i),t=i.getBoundingClientRect(),r=L(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=k(i),i=_e(n)}}return S({width:u,height:d,x:c,y:l})}function H(e,t){let n=R(e).scrollLeft;return t?t.left+n:V(A(e)).left+n}function Ce(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-H(e,n),y:n.top+t.scrollTop}}function we(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=A(r),s=t?P(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=x(1),u=x(0),d=M(r);if((d||!d&&!a)&&((O(r)!==`body`||N(o))&&(c=R(r)),d)){let e=V(r);l=B(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ce(o,c):x(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Te(e){return Array.from(e.getClientRects())}function Ee(e){let t=A(e),n=R(e),r=e.ownerDocument.body,i=w(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=w(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+H(e),s=-n.scrollTop;return L(r).direction===`rtl`&&(o+=w(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var De=25;function Oe(e,t){let n=k(e),r=A(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=me();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=H(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=De&&(a-=o)}else l<=De&&(a+=l);return{width:a,height:o,x:s,y:c}}function ke(e,t){let n=V(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=M(e)?B(e):x(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ae(e,t,n){let r;if(t===`viewport`)r=Oe(e,n);else if(t===`document`)r=Ee(A(e));else if(j(t))r=ke(t,n);else{let n=xe(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(r)}function je(e,t){let n=z(e);return n===t||!j(n)||I(n)?!1:L(n).position===`fixed`||je(n,t)}function Me(e,t){let n=t.get(e);if(n)return n;let r=ge(e,[],!1).filter(e=>j(e)&&O(e)!==`body`),i=null,a=L(e).position===`fixed`,o=a?z(e):e;for(;j(o)&&!I(o);){let t=L(o),n=fe(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||N(o)&&!n&&je(e,o))?r=r.filter(e=>e!==o):i=t,o=z(o)}return t.set(e,r),r}function Ne(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?P(t)?[]:Me(t,this._c):[].concat(n),r],o=Ae(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ae(t,a[e],i);s=w(n.top,s),c=ie(n.right,c),l=ie(n.bottom,l),u=w(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Pe(e){let{width:t,height:n}=ve(e);return{width:t,height:n}}function Fe(e,t,n){let r=M(t),i=A(t),a=n===`fixed`,o=V(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=x(0);function l(){c.x=H(i)}if(r||!r&&!a)if((O(t)!==`body`||N(i))&&(s=R(t)),r){let e=V(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Ce(i,s):x(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function U(e){return L(e).position===`static`}function Ie(e,t){if(!M(e)||L(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return A(e)===n&&(n=n.ownerDocument.body),n}function Le(e,t){let n=k(e);if(P(e))return n;if(!M(e)){let t=z(e);for(;t&&!I(t);){if(j(t)&&!U(t))return t;t=z(t)}return n}let r=Ie(e,t);for(;r&&ce(r)&&U(r);)r=Ie(r,t);return r&&I(r)&&U(r)&&!fe(r)?n:r||pe(e)||n}var Re=async function(e){let t=this.getOffsetParent||Le,n=this.getDimensions,r=await n(e.floating);return{reference:Fe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ze(e){return L(e).direction===`rtl`}var Be={convertOffsetParentRelativeRectToViewportRelativeRect:we,getDocumentElement:A,getClippingRect:Ne,getOffsetParent:Le,getElementRects:Re,getClientRects:Te,getDimensions:Pe,getScale:B,isElement:j,isRTL:ze},Ve=b,He=ne,Ue=te,We=(e,t,n)=>{let r=new Map,i={platform:Be,...n},a={...i.platform,_c:r};return re(e,t,{...i,platform:a})},Ge=Object.assign(s({__name:`GraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:t,hoverY:n}=u(e),r=f(`hoverElement`),a=ee(0),o=ee(0);return h([t,n],([e,t])=>{We({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},r.value,{placement:`right-start`,middleware:[Ue(),He(),Ve({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{a.value=e,o.value=t})}),(e,t)=>(g(),l(_,{to:`body`},[y(`div`,{ref_key:`hoverElement`,ref:r,fixed:``,"z-panel-content":``,"pointer-events-none":``,style:i({left:`${a.value}px`,top:`${o.value}px`})},[c(e.$slots,`default`)],4)]))}}),{__name:`DisplayGraphHoverView`});function Ke(e,t=1,n=1){let r=(.6+.4*Math.max(0,Math.cos(e)))*t,i=(.5+.2*Math.max(0,Math.cos(e+Math.PI*2/3)))*n;return`hsl(${e*180/Math.PI}deg, ${Math.round(100*r)}%, ${Math.round(100*i)}%)`}var qe,Je,Ye,W,G,K=1,Xe;function Ze(e,t,n,r,i){if(!Array.isArray(e))return e;let a=window.devicePixelRatio||1;if(qe!==t||Je!==a||Ye!==i){let n=Math.round(64*a)/64;K=i,K=Math.log2(K),K-=Math.floor(K);let r=K,o=Math.min(1,8*r);K=2**K;let s=8*Math.SQRT2/K;qe=t,Je=a,Ye=i,W||=document.createElement(`canvas`),G||=W.getContext(`2d`),W.width=W.height=Math.round(64*n),G.scale(n,n),G.fillStyle=e[0],G.fillRect(0,0,64,64),G.globalAlpha=.25,G.fillStyle=e[1],G.fillRect(0,0,64,64),G.globalAlpha=.67,G.strokeStyle=e[1],G.beginPath();for(let e=0;e<=64;e+=16)G.moveTo(e-32,e+32),G.lineTo(e+32,e-32);if(G.lineWidth=s*(1-(o-r)/2),G.stroke(),o+r>0){G.beginPath();for(let e=8;e<64;e+=16)G.moveTo(e-32,e+32),G.lineTo(e+32,e-32);G.lineWidth=s*(o+r)/2,G.stroke()}Xe=t.createPattern(W,`repeat`),K/=n}return n/=64*K*a,n-=Math.floor(n),n*=64*K*a,Xe.setTransform(new DOMMatrix([K,0,0,K,n,r])),Xe}function Qe(e){return Array.isArray(e)?`url('data:image/svg+xml,<svg width="26" height="26" xmlns="http://www.w3.org/2000/svg"><rect width="26" height="26" fill="${e[0]}"/><rect width="26" height="26" fill="${e[1]}" fill-opacity="25%"/><path d="M22.5 -3.5L-3.5 22.5M35.5 9.5L9.5 35.5" stroke="${e[1]}" stroke-opacity="67%" stroke-width="9.19239"/></svg>')`:e}function $e(e){return t=>t.id&&e[t.id]||t.color}function et(e,t=1,n=1){let r={};return tt(r,e,0,Math.PI*2,t,n),$e(r)}function tt(e,t,n,r,i=1,a=1){let o=t.size;e[t.id]=Ke(n+r/2,i,a);for(let s of t.children){let t=s.size/o*r;tt(e,s,n,t,i,a),n+=t}}var nt=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function rt(e=16,t=nt){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function it(e,t,n=(e,t)=>t.size-e.size){if(e.__nanovis)return e;let r={...e};return r.id||=rt(),r.parent||=t,r.children||=[],r.sizeSelf==null&&r.size!=null&&r.children.length===0?r.sizeSelf=r.size:r.sizeSelf||=0,r.children=(r.children||[]).map(e=>it(e,r,n)),r.size||=r.children.reduce((e,t)=>e+t.size,0)+r.sizeSelf,n&&r.children.sort(n),Object.defineProperty(r,`__nanovis`,{enumerable:!1,value:!0}),r}function at(e){return e.children.length===0?1:Math.max(...e.children.map(e=>at(e)))+1}var ot=/\bFirefox\//.test(navigator.userAgent),st;function ct(e){return st?st.format(e):`${e}`}function q(){return(window.performance||Date).now()}function lt(e){let t=e.toFixed(1).split(`.`,2);return`${ct(+t[0])}.${t[1]}`}function ut(e){return e===1?`1 byte`:e<1024?`${ct(e)} bytes`:e<1024*1024?`${lt(e/1024)} kb`:e<1024*1024*1024?`${lt(e/(1024*1024))} mb`:`${lt(e/(1024*1024*1024))} gb`}function dt(e,t,n,r,i,a){if(ot){let o=e.lineWidth,s=o/2;e.fillStyle=t,e.fillRect(n-s,r-s,i+o,o),e.fillRect(n-s,r+s,o,a-o),e.fillRect(n-s,r+a-s,i+o,o),e.fillRect(n+i-s,r+s,o,a-o);return}e.strokeStyle=t,e.strokeRect(n,r,i,a)}function ft(e){return window.addEventListener(`wheel`,e,{passive:!1}),()=>window.removeEventListener(`wheel`,e)}function pt(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}try{st=new Intl.NumberFormat}catch{}var mt=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r<i;r++)n[r](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}}),J={getText:e=>e.text,getSubtext:e=>e.subtext,animate:!0,animateDuration:350},ht={fallback:`#CCC`,stroke:`#0008`,text:`#222`,hover:`#fff5`,shadow:`#0008`,fg:`#fff`,bg:`#222`},gt=46,_t=`14px sans-serif`,vt=`bold ${_t}`,yt=class{el;canvas;c;width=0;height=0;ratio=1;root;maxDepth;events;options;palette;disposables;getColor;getText;getSubtext;_animationFrame=null;constructor(e,t){this.options={...J,...t};let{getColor:n=et(e),getText:r=()=>void 0,getSubtext:i=()=>void 0}=this.options;this.palette={...ht,...t.palette},this.el=document.createElement(`div`),this.canvas=document.createElement(`canvas`),this.c=this.canvas.getContext(`2d`),this.root=e,this.maxDepth=at(e),this.disposables=[],this.events=mt(),this.getColor=n,this.getText=r,this.getSubtext=i,this.setFont(_t),t.onClick&&this.events.on(`click`,t.onClick),t.onHover&&this.events.on(`hover`,t.onHover),t.onLeave&&this.events.on(`leave`,t.onLeave),t.onSelect&&this.events.on(`select`,t.onSelect),this.el.addEventListener(`mouseleave`,()=>{this.events.emit(`leave`)})}invalidate(){this._animationFrame===null&&(this._animationFrame=requestAnimationFrame(()=>{this._animationFrame=null,this.tick()}))}tick(){this.draw()}draw(){}resize(){this.ratio=window.devicePixelRatio||1,this.canvas.style.width=`${this.width}px`,this.canvas.style.height=`${this.height}px`,this.canvas.width=Math.round(this.width*this.ratio),this.canvas.height=Math.round(this.height*this.ratio),this.c.scale(this.ratio,this.ratio),this.draw()}select(e,t){this.events.emit(`select`,e)}dispose(){this.disposables.forEach(e=>e()),this.disposables.length=0,this.el.remove()}[Symbol.dispose](){this.dispose()}_font=`14px sans-serif`;_fontWidthCache=new Map;ellipsisWidth=0;getFontCache(){return this._fontWidthCache.has(this._font)||this._fontWidthCache.set(this._font,{}),this._fontWidthCache.get(this._font)}setFont(e){this._font=e,this.c.font=e,this.c.textBaseline=`middle`,this.ellipsisWidth=3*this.charCodeWidth(gt)}charCodeWidth(e){let t=this.getFontCache(),n=t[e];return n===void 0&&(n=this.c.measureText(String.fromCharCode(e)).width,t[e]=n),n}textOverflowEllipsis(e,t){if(t<this.ellipsisWidth)return[``,0];let n=0,r=e.length,i=0;for(;i<r;){let r=this.charCodeWidth(e.charCodeAt(i));if(t<n+this.ellipsisWidth+r)return[`${e.slice(0,i)}...`,n+this.ellipsisWidth];n+=r,i++}return[e,n]}},Y=24,bt=5,xt=.01,St=1e3,Ct=class extends yt{mainEl=document.createElement(`div`);totalBytes;viewportMin;viewportMax;zoomedOutMin=0;zoomedOutWidth=0;prevWheelTime=0;prevWheelWasZoom=!1;stripeScaleAdjust=1;hoveredNode=null;selectedNode=null;nodeStartBytes=new Map;animationFromMin=0;animationFromMax=0;animationToMin=0;animationToMax=0;animationStart=0;constructor(e,t={}){super(e,t),this.totalBytes=e.size,this.viewportMin=this.animationFromMin=this.animationToMin=0,this.viewportMax=this.animationFromMax=this.animationToMax=this.totalBytes,Object.assign(this.mainEl.style,{position:`relative`}),Object.assign(this.canvas.style,{position:`absolute`,left:`0`,top:`0`});let n=!1;this.canvas.onmousedown=e=>{if(n=!1,e.button!==2){let t=e.pageX,r=e=>{let r=e.pageX-t;!n&&Math.abs(r)<3||(n=!0,this.modifyViewport(-r,0,null),t=e.pageX)},i=()=>{document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i)};e.preventDefault(),document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)}},this.canvas.onmousemove=e=>{this.updateHover(e)},this.canvas.onmouseout=()=>{this.changeHoveredNode(null)},this.canvas.onclick=e=>{if(n)return;let t=this.hitTestNode(e);this.changeHoveredNode(t),this.changeSelectedNode(t),t&&this.events.emit(`click`,t,e)},this.disposables.push(ft(e=>{let t=e.deltaX,n=e.deltaY,r=q(),i=r-this.prevWheelTime<50?this.prevWheelWasZoom:e.ctrlKey||e.metaKey;this.prevWheelTime=r,this.prevWheelWasZoom=i,(i||Math.abs(t)>=Math.abs(n))&&e.preventDefault(),this.modifyViewport(t,n,i?e.pageX:null),this.updateHover(e)})),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(pt(()=>this.resize())),this.mainEl.append(this.canvas),this.el.append(this.mainEl)}tick(){let e=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.viewportMin=this.animationToMin,this.viewportMax=this.animationToMax):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.viewportMin=this.animationFromMin+(this.animationToMin-this.animationFromMin)*e,this.viewportMax=this.animationFromMax+(this.animationToMax-this.animationFromMax)*e,this.invalidate()),this.draw()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.root,0,0,-1/0,1)}changeSelectedNode(e,t=this.options.animate??J.animate){if(this.selectedNode!==e&&(this.selectedNode=e,this.events.emit(`select`,e),e&&this.nodeStartBytes.has(e.id))){let n=this.nodeStartBytes.get(e.id),r=n+e.size;n=Math.max(0,n-e.size*xt),r=Math.min(this.totalBytes,r+e.size*xt),this.setViewport(n,r,t)}}select(e,t=this.options.animate??J.animate){this.changeSelectedNode(e,t)}resize(){this.width=this.el.clientWidth,this.height=this.maxDepth*Y+1,this.zoomedOutMin=this.width-St>>1,this.zoomedOutWidth=this.zoomedOutMin+St,this.zoomedOutMin<0&&(this.zoomedOutMin=0),this.zoomedOutWidth>this.width&&(this.zoomedOutWidth=this.width),this.zoomedOutWidth-=this.zoomedOutMin,this.stripeScaleAdjust=this.totalBytes/this.zoomedOutWidth,this.mainEl.style.height=`${this.height}px`,super.resize()}drawNode(e,t,n,r,i){this.nodeStartBytes.set(e.id,n);let a=this.zoomedOutWidth/(this.viewportMax-this.viewportMin),o=this.zoomedOutMin+(n-this.viewportMin)*a,s=e.size*a,c=o+s;if(c<r+1.5)return r;if(o+s<0||o>this.width)return c;let l=s<2?2:s,u=(o>0?o:0)+bt,d=t+Y/2,f=this.getText(e)||``,p=this.getSubtext(e)||``,m,h=0,g=s+o-u,_=Ze(this.getColor(e)||this.palette.fallback,this.c,this.zoomedOutMin-this.viewportMin*a,Y,a*this.stripeScaleAdjust),v=this.palette.text,y=-1/0;i&1?(v=this.palette.fg,this.setFont(vt)):(this.c.fillStyle=_,this.c.fillRect(o,t,l,Y),(i&2||this.hoveredNode&&e.id===this.hoveredNode.id)&&(this.c.fillStyle=this.palette.hover,this.c.fillRect(o,t,l,Y),i|=2)),this.ellipsisWidth<g&&(m=this.c.measureText(f).width,m<=g?h+=m:(f=this.textOverflowEllipsis(f,g)[0],h=g),this.c.fillStyle=v,this.c.fillText(f,u,d)),i&1&&this.setFont(_t),h+this.ellipsisWidth<g&&(p&&f&&(p=` - ${p}`),m=this.c.measureText(p).width,h+m>g&&(p=this.textOverflowEllipsis(p,g-h)[0]),this.c.globalAlpha=.5,this.c.fillText(p,u+h,d),this.c.globalAlpha=1);for(let r of e.children)y=this.drawNode(r,t+Y,n,y,i&-2),n+=r.size;return i&1||dt(this.c,this.palette.stroke,o+.5,t+.5,l,Y),c}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=this.viewportMin+(this.viewportMax-this.viewportMin)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=(e,t,n)=>{if(i>=n&&i<n+e.size){if(r>=t&&r<t+Y&&e.id)return e;if(r>=t+Y)for(let r of e.children){let e=a(r,t+Y,n);if(e)return e;n+=r.size}}return null};return a(this.root,0,0)}modifyViewport(e,t,n){let r=this.viewportMin,i=this.viewportMax,a=0;if(n!==null){let e=r+(i-r)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=1.01**t;r=e+(r-e)*a,i=e+(i-e)*a}else a=e*(i-r)/this.zoomedOutWidth;r+a<0?a=-r:i+a>this.totalBytes&&(a=this.totalBytes-i),r+=a,i+=a,r<0&&(r=0),i>this.totalBytes&&(i=this.totalBytes),this.setViewport(r,i,!1)}setViewport(e,t,n){this.animationFromMin=this.viewportMin,this.animationFromMax=this.viewportMax,this.animationToMin=e,this.animationToMax=t,n?this.animationStart=q():this.animationStart=0,this.invalidate()}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),this.events.emit(`hover`,t,e)}};function wt(e,t){for(;t;){if(t===e)return!0;t=t.parent}return!1}function Tt(e,t,n){if(e===t)return;let r=t.parent,i=r.size||1,a=0;Tt(e,r,n);for(let e of r.children){if(e===t){n.startAngle_+=n.sweepAngle_*a/i,n.sweepAngle_=e.size/i*n.sweepAngle_;break}a+=e.size}n.depth_+=1}var Et={};function Dt(e){return Et[e]||(Et[e]=400*Math.log(1+Math.log(1+e/8))),Et[e]}var X=-Math.PI/2,Ot=class extends yt{currentNode;hoveredNode;centerX=0;centerY=0;animationStart=0;radiusScale=1;sourceDepth=0;sourceStartAngle=X;sourceSweepAngle=Math.PI*2;targetNode;targetDepth=this.sourceDepth;targetStartAngle=this.sourceStartAngle;targetSweepAngle=this.sourceSweepAngle;animatedNode;animatedDepth=this.sourceDepth;animatedStartAngle=this.sourceStartAngle;animatedSweepAngle=this.sourceSweepAngle;previousHoveredNode;historyStack=[];constructor(e,t={}){for(;e.children.length===1;)e=e.children[0];super(e,t),this.currentNode=e,this.targetNode=this.currentNode,this.animatedNode=this.currentNode,this.canvas.onmousemove=e=>{this.handleMouseMove(e)},this.canvas.onmouseout=e=>{this.changeHoveredNode(void 0),this.events.emit(`hover`,null,e)},this.canvas.onclick=e=>{let t=this.hitTestNode(e);if(!t)return;this.events.emit(`click`,t,e);let n=[];t===this.animatedNode.parent?this.historyStack.length>0&&(t=this.historyStack.pop(),n=this.historyStack.slice()):n=this.historyStack.concat(this.currentNode),this.events.emit(`click`,t,e),t.children.length>0?(this.select(t),this.historyStack=n):e.preventDefault()},this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(pt(()=>this.resize())),this.disposables.push(ft(e=>this.handleMouseMove(e)))}select(e,t){(this.currentNode!==e||this.root)&&(this.currentNode=e||this.root,this.updateSunburst(t),this.events.emit(`select`,e))}resize(){this.width=this.el.clientWidth,this.height=this.width,this.centerX=this.width>>1,this.centerY=this.height>>1;let e=2*Math.ceil(Dt(this.maxDepth));this.radiusScale=this.width/e,super.resize()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,3,-1/0),this.c.strokeStyle=this.palette.stroke,this.c.beginPath(),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,1,-1/0),this.c.stroke(),this.animatedDepth===0&&(this.c.fillStyle=this.palette.stroke,this.setFont(vt),this.c.textAlign=`center`,this.c.fillText(this.getSubtext(this.targetNode)??ut(this.targetNode.size),this.centerX,this.centerY))}drawNode(e,t,n,r,i,a,o){let s=this.computeRadius(t+1);if(s>this.centerY)return o;e===this.hoveredNode&&(a|=8);let c=(n+s)/2,l=r+i;if(l-o<1.5/c)return o;let u=2/c;if(i>u&&(u=i),a&2)this.c.fillStyle=Ze(this.getColor(e)||this.palette.fallback,this.c,this.centerX,this.centerY,1),this.c.beginPath(),this.c.arc(this.centerX,this.centerY,n,r,r+u,!1),this.c.arc(this.centerX,this.centerY,s,r+u,r,!0),this.c.fill(),this.hoveredNode&&(a&8||e.parent===this.hoveredNode)&&(this.c.fillStyle=this.palette.hover,this.c.fill());else{let e=u===Math.PI*2,t=a&4||e?s:n;a&1&&n>0&&this.c.arc(this.centerX,this.centerY,n,r+u,r,!0),this.c.moveTo(this.centerX+t*Math.cos(r),this.centerY+t*Math.sin(r)),this.c.arc(this.centerX,this.centerY,s,r,r+u,!1),e||this.c.lineTo(this.centerX+n*Math.cos(r+u),this.centerY+n*Math.sin(r+u))}let d=e.size,f=a&10,p=0,m=-1/0;for(let n of e.children)m=this.drawNode(n,t+1,s,r+i*p/d,n.size/d*i,f,m),p+=n.size,f|=4;return l}changeHoveredNode(e,t){this.hoveredNode!==e&&(this.hoveredNode=e,this.updateSunburst(t))}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left-this.centerX,r=e.clientY-t.top-this.centerY,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n),o=(e,t,n,r,s)=>{let c=this.computeRadius(t+1);if(c>this.centerY)return;if(i>=n&&i<c){let t=a-r;if(t/=Math.PI*2,t-=Math.floor(t),t*=Math.PI*2,t<s)return e===this.animatedNode?e.parent:e}let l=e.size,u=0;for(let n of e.children){let e=o(n,t+1,c,r+s*u/l,n.size/l*s);if(e)return e;u+=n.size}};return o(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle)}tick(){let e=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.animatedNode=this.targetNode,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.invalidate()),this.animatedDepth=this.sourceDepth+(this.targetDepth-this.sourceDepth)*e,this.animatedStartAngle=this.sourceStartAngle+(this.targetStartAngle-this.sourceStartAngle)*e,this.animatedSweepAngle=this.sourceSweepAngle+(this.targetSweepAngle-this.sourceSweepAngle)*e,this.draw()}handleMouseMove(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),t&&t!==this.animatedNode.parent?(this.events.emit(`hover`,t,e),this.canvas.style.cursor=`pointer`):this.events.emit(`hover`,null,e)}computeRadius(e){return Dt(e)*this.radiusScale}updateSunburst(e=this.options.animate??!0){if(this.previousHoveredNode!==this.hoveredNode&&(this.previousHoveredNode=this.hoveredNode,this.hoveredNode||(this.canvas.style.cursor=`auto`,this.events.emit(`hover`,null)),this.invalidate()),this.targetNode!==this.currentNode){if(this.historyStack.length=0,this.invalidate(),e&&(this.animationStart=q()),wt(this.animatedNode,this.currentNode)){let e={depth_:this.animatedDepth,startAngle_:this.animatedStartAngle,sweepAngle_:this.animatedSweepAngle};Tt(this.animatedNode,this.currentNode,e),this.animatedDepth=e.depth_,this.animatedStartAngle=e.startAngle_,this.animatedSweepAngle=e.sweepAngle_,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2,this.animatedNode=this.currentNode}else if(wt(this.currentNode,this.animatedNode)){let e={depth_:0,startAngle_:X,sweepAngle_:Math.PI*2};Tt(this.currentNode,this.animatedNode,e),this.targetDepth=e.depth_,this.targetStartAngle=e.startAngle_,this.targetSweepAngle=e.sweepAngle_}else this.animationStart=-1/0,this.animatedNode=this.currentNode;this.sourceDepth=this.animatedDepth,this.sourceStartAngle=this.animatedStartAngle,this.sourceSweepAngle=this.animatedSweepAngle,this.targetNode=this.currentNode,this.events.emit(`select`,this.currentNode)}}},Z=4,Q=20,kt=2*Z,$=Q+Z;function At(e,t,n,r,i){let a=[],o=(t,n,r,i,a)=>{let o=e[t].size*a,s=e[n].size*a;return Math.max(r*r*o/(i*i),i*i/(r*r*s))};return((t,n,r,i,s)=>{for(;t<e.length;){let c=0;for(let n=t;n<e.length;n++)c+=e[n].size;let l=Math.min(i,s),u=i*s/c,d=t,f=0,p=0;for(;d<e.length;){let n=e[d].size*u,r=o(t,d,l,f+n,u);if(d>t&&p<r)break;f+=n,p=r,d++}let m=Math.round(f/l),h=0;for(let o=t;o<d;o++){let t=e[o],c=t.size*u,d=Math.round(l*h/f),p=Math.round(l*(h+c)/f),[g,_,v,y]=i>=s?[n,r+d,m,p-d]:[n+d,r,p-d,m];a.push({node:t,box:[g,_,v,y],children:v>kt&&y>$?At(t.children,g+Z,_+Q,v-kt,y-$):[]}),h+=c}t=d,i>=s?(n+=m,i-=m):(r+=m,s-=m)}})(0,t,n,r,i),a}var jt=class extends yt{hoveredNode=null;currentNode=null;bgOriginX=0;bgOriginY=0;layers={base:null};baseLayoutCache;currentOriginX=0;currentOriginY=0;animationStart=0;animationBlend=1;animationSource=null;animationTarget=null;constructor(e,t={}){super(e,t),this.canvas.addEventListener(`mousemove`,e=>{this.updateHover(e)}),this.canvas.addEventListener(`mouseout`,e=>{this.changeHoveredNode(null),this.events.emit(`hover`,null,e)}),this.el.addEventListener(`click`,e=>{let t=this.hitTestNode(e);if(t){let n=t.node;this.events.emit(`click`,n,e),n.children.length?t===this.layers.current?this.updateHover(e):(this.changeCurrentLayout(t),this.changeHoveredNode(null)):this.updateHover(e)}else this.currentNode&&(this.changeCurrentLayout(null),this.updateHover(e))}),this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(ft(e=>this.updateHover(e))),this.disposables.push(pt(()=>this.resize()))}select(e,t){let n=null;e===this.root&&(e=null),n=e?this.searchFor([this.layers.current,this.layers.base],e):null,this.changeCurrentLayout(n,t)}drawBaseLayout(){!this.width||!this.height||(this.c.clearRect(0,0,this.width,this.height),this.bgOriginX=this.bgOriginY=0,this.baseLayoutCache?this.c.putImageData(this.baseLayoutCache,0,0):(this.drawLayout(this.layers.base,0,[]),this.baseLayoutCache=this.c.getImageData(0,0,this.width*this.ratio,this.height*this.ratio)))}draw(){this.drawBaseLayout(),this.layers.current||this.drawHoverHighlight(this.layers.base);let e=this.layers.current?this.animationSource?this.animationTarget?1:1-this.animationBlend:this.animationBlend:0;if(this.layers.current){let[t,n,r,i]=this.layers.base.box;this.c.globalAlpha=.6*(!this.layers.current||!this.animationSource?1:e),this.c.fillStyle=this.palette.bg,this.c.fillRect(t,n,r,i),this.c.globalAlpha=1}if(this.layers.previous&&this.drawLayout(this.layers.previous,1,[this.layers.current]),this.layers.current){let[t,n,r,i]=this.layers.current.box,a=this.c.getTransform(),o=Math.sqrt(a.a*a.d);this.c.save(),this.c.shadowColor=this.palette.shadow,this.c.shadowBlur=30*e*o,this.c.shadowOffsetX=o*(2*this.width),this.c.shadowOffsetY=o*(2*this.height+15*e),this.c.fillRect(t-2*this.width,n-2*this.height,r,i),this.c.restore(),this.bgOriginX=this.currentOriginX,this.bgOriginY=this.currentOriginY,this.drawLayout(this.layers.current,0,[]),this.drawHoverHighlight(this.layers.current)}}tick(){let e=this.animationBlend,t=this.currentNode;this.animationBlend=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration),this.animationBlend<0||this.animationBlend>1?(this.currentNode=this.animationTarget,this.layers.previous=void 0,this.animationBlend=1):(this.animationBlend=1-this.animationBlend,this.animationBlend*=this.animationBlend*this.animationBlend,this.animationBlend=1-this.animationBlend,this.invalidate()),(this.animationBlend!==e||this.currentNode!==t)&&this.updateCurrentLayout(),this.draw()}resize(){this.baseLayoutCache=void 0;let e=this.width,t=this.height;this.width=Math.min(this.el.clientWidth,1600),this.height=Math.max(Math.round(this.width/2),innerHeight-200),(this.width!==e||this.height!==t||!this.layers.base)&&(this.layers.base=At([this.root],0,0,this.width-1,this.height-1)[0],this.updateCurrentLayout()),super.resize()}*iterateNodeToDraw(e,t,n){let r=e.node,[i,a,o,s]=e.box,c=r===this.hoveredNode|(e===this.animationTarget?2:0);if(t===1)for(let e of n){if(!e)continue;let[n,r,c,l]=e.box;if(i>=n&&a>=r&&i+o<=n+c&&a+s<=r+l){t=2;break}}for(let r of e.children)c|=yield*this.iterateNodeToDraw(r,t,n);return t!==2&&(yield e),c}drawHoverHighlight(e){let t=this.iterateNodeToDraw(e,0,[]),n=this.c.globalCompositeOperation;for(;;){let e=t.next();if(e.done){this.c.globalCompositeOperation=n;return}let r=e.value.node;if(this.hoveredNode===r){this.c.globalCompositeOperation=`overlay`;let[t,n,r,i]=e.value.box;this.c.fillStyle=this.palette.hover,this.c.fillRect(t,n,r,i)}}}drawNodeBackground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return e.value;let[t,n,i,a]=e.value.box;this.c.fillStyle=Ze(this.getColor(e.value.node)||this.palette.fallback,this.c,this.bgOriginX,this.bgOriginY,1),e.value.children.length?(this.c.fillRect(t,n,i,Q),this.c.fillRect(t,n+a-Z,i,Z),this.c.fillRect(t,n+Q,Z,a-$),this.c.fillRect(t+i-Z,n+Q,Z,a-$)):this.c.fillRect(t,n,i,a)}}drawLayout(e,t,n){this.drawNodeBackground(e,t,n),this.drawNodeForeground(e,t,n)}drawNodeForeground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return;let t=e.value.node,[n,i,a,o]=e.value.box;if(dt(this.c,this.palette.stroke,n+.5,i+.5,a,o),o>=Q){this.c.fillStyle=this.palette.text;let e=a-kt,r=i+Math.round($/2),[s,c]=this.textOverflowEllipsis(this.getText(t)||``,e),l=n+Math.round((a-c)/2),u=this.getText(t),d=this.getSubtext(t);if(s===u&&t.children.length){let t=d||``;t&&u&&(t=` - ${t}`);let[i,o]=this.textOverflowEllipsis(t,e-c);l=n+Math.round((a-c-o)/2),this.c.globalAlpha=.5,this.c.fillText(i,l+c,r),this.c.globalAlpha=1}if(this.c.fillText(s,l,r),o>$+16&&!t.children.length){let[t,r]=this.textOverflowEllipsis(d||``,e);this.c.globalAlpha=.5;let s=u?Q:Q/2+Z;this.c.fillText(t,n+Math.round((a-r)/2),i+s+Math.round(o-$)/2),this.c.globalAlpha=1}}}}updateCurrentLayout(){let e=this.options.selectedPaddingRatio??.2;if(this.currentNode){let[t,n,r,i]=this.currentNode.box,a=t+r,o=n+i,s=Math.round(this.width*e/2),c=Math.round(this.height*e/2),l=this.width-s-1,u=this.height-c-1,d=this.animationTarget?this.animationBlend:1-this.animationBlend,f=Math.round(t+(s-t)*d),p=Math.round(n+(c-n)*d),m=Math.round(a+(l-a)*d),h=Math.round(o+(u-o)*d),g=e=>e-Math.floor(e/64-.5)*64;this.layers.current=At([this.currentNode.node],f,p,m-f,h-p)[0],this.currentOriginX=g(-(t+a)/2)*(1-d)+(f+m)/2,this.currentOriginY=g(-(n+o)/2)*(1-d)+(p+h)/2}else this.layers.current=void 0,this.currentOriginX=0,this.currentOriginY=0}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=(e,t)=>{for(let a of e){let[e,o,s,c]=a.box;if(n>=e&&r>=o&&n<e+s&&r<o+c)return i(a.children,!1)||(t?null:a)}return null};return this.layers.current?i([this.layers.current],!1):i([this.layers.base],!0)}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t&&t.node),this.events.emit(`hover`,t?.node||null,e)}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}searchFor(e,t){for(let n of e){if(!n)continue;let e=n.node===t?n:this.searchFor(n.children,t);if(e)return e}return null}changeCurrentLayout(e,t=this.options.animate){this.animationTarget!==e&&(this.events.emit(`select`,e?.node||null),this.layers.previous=e?this.layers.current:void 0,t&&(this.animationBlend=0,this.animationStart=q(),this.animationSource=this.currentNode),this.animationTarget=e,this.currentNode=e||this.searchFor([this.layers.base],this.currentNode.node),this.updateCurrentLayout(),this.invalidate())}},Mt={flex:`~ gap-1 items-center wrap`},Nt={key:0,"i-ph-arrow-right-bold":``,"text-sm":``,"op-fade":``},Pt=[`onClick`],Ft=Object.assign(s({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=p(()=>{let e=[],t=r.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,n)=>(g(),v(`div`,Mt,[(g(!0),v(m,null,d(a.value,(e,n)=>(g(),v(m,{key:e.id},[n>0?(g(),v(`div`,Nt)):t(``,!0),y(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:t=>i(`select`,e)},[y(`span`,null,o(e.text||e.id),1)],8,Pt)],64))),128))]))}}),{__name:`ChartNavBreadcrumb`});function It(t){let{data:i,nameKey:o,sizeKey:s,rootText:c,nodeType:l,graphOptions:u,onUpdate:d}=t,f=n(void 0),m=n(void 0),g=ee(void 0),_=n(void 0),v,y=p(()=>{if(t.tree)return t.tree.value;let e=r(i),n=new Map,a=0,u={id:`~root`,text:c,size:0,sizeSelf:0,children:[]};if(!e?.length)return{map:n,root:u,maxDepth:a};let d=[];d.unshift(()=>{u.size+=u.children.reduce((e,t)=>e+t.size,0),u.subtext=E(u.size).join(` `),u.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function f(e,t,r,i,o){if(n.has(t))return n.get(t);o>a&&(a=o);let s={id:t,text:r,size:0,sizeSelf:0,children:[],meta:{...e,path:r,type:`folder`},parent:i};return n.set(t,s),i.children.push(s),d.unshift(()=>{let t=s.sizeSelf;s.size+=s.children.reduce((e,t)=>e+t.size,0),s.subtext=E(s.size).join(` `),s.children.length&&t/s.size>.1&&s.children.push({id:`${s.id}-self`,text:``,size:t,sizeSelf:t,subtext:E(t).join(` `),children:[],meta:{...e,path:``,type:l},parent:s}),s.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),s}function p(e){let t=e[o].split(`/`).filter(Boolean),r=u,i=``,a=0;t.forEach((c,u)=>{if(i+=(i?`/`:``)+c,a++,u===t.length-1){let t={id:e[o],text:c,size:e[s],sizeSelf:e[s],subtext:E(e[s]).join(` `),children:[],meta:{...e,path:c,type:l}};r.children.push(t),n.set(e[o],t)}else r=f(e,i,c,r,a)})}return e.forEach(p),d.forEach(e=>e()),{map:n,root:u,maxDepth:a}}),b=p(()=>({animate:ae.value.chartAnimation,palette:{stroke:T.value?`#222`:`#555`,fg:T.value?`#fff`:`#000`,bg:T.value?`#111`:`#fff`},getColor:et(y.value.root,T.value?.8:.9,T.value?1:1.1),getSubtext:e=>e.subtext,...u}));function x(e,t){g.value=e?.meta,e?.children.length||(e=e?.parent),_.value?.select(e,t)}function S(){v?.(),m.value=y.value.root,d?.(),e(()=>{let e=g.value&&y.value.map.get(g.value[o])||null;e&&x(e,!1)}),v=()=>{_.value?.dispose(),_.value=void 0,g.value=void 0}}return e(()=>{h(()=>[y.value,b.value],()=>{S()},{deep:!0,immediate:!1}),S()}),a(()=>{v?.()}),{tree:y,graph:_,chartOptions:b,nodeHover:f,nodeSelected:m,selectedNode:g,selectNode:x,buildGraph:S}}export{jt as a,Ge as c,Ot as i,Ft as n,Qe as o,Ct as r,it as s,It as t};
@@ -1 +1 @@
1
- import{A as e,C as t,Et as n,Ht as r,M as i,Q as a,R as o,S as s,Wt as c,Z as l,h as u,lt as d,q as f,rt as p,tt as m,w as h,x as g}from"./WOQUZE4V.js";import{C as _}from"./BeLy3b84.js";import{t as v}from"./n6uS-XK5.js";import{n as y,t as b}from"./BkNrnf7z.js";var x=[`open`],S={"font-mono":``},C={"font-mono":``},w=Object.assign(i({__name:`TreeNode`,props:o({node:{},icon:{default:`i-catppuccin:folder icon-catppuccin`},iconOpen:{default:`i-catppuccin:folder-open icon-catppuccin`},link:{type:[String,Boolean]},linkQueryKey:{default:`module`},padding:{default:0},open:{type:Boolean}},{open:{type:Boolean,required:!1,default:!0},openModifiers:{}}),emits:o([`select`],[`update:open`]),setup(i,{emit:o}){let T=i,E=o,D=p(i,`open`),O=_(),k=window.location;function A(e){T.link||E(`select`,e)}return(o,p)=>{let _=b,T=w,E=y;return f(),h(`details`,{open:D.value,onToggle:p[0]||=e=>D.value=e.target?.open},[g(`summary`,{"cursor-default":``,"select-none":``,"text-sm":``,truncate:``,style:c({paddingLeft:`${i.padding+.5}rem`}),flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active `},[g(`div`,{class:r([`i-ph-caret-right-duotone transition op50`,D.value?`rotate-90`:``])},null,2),g(`div`,{class:r(D.value&&i.iconOpen||i.icon),"inline-block":``,"vertical-text-bottom":``},null,2),g(`div`,S,[e(_,{path:i.node.name||``},null,8,[`path`])])],4),D.value?(f(),h(u,{key:0},[(f(!0),h(u,null,l(Object.entries(i.node.children),e=>(f(),s(T,{key:e[0],node:e[1],link:i.link,padding:i.padding+1,"link-query-key":i.linkQueryKey,onSelect:A},{extra:d(({node:e})=>[a(o.$slots,`extra`,{node:e})]),_:3},8,[`node`,`link`,`padding`,`link-query-key`]))),128)),(f(!0),h(u,null,l(i.node.items,t=>(f(),s(m(i.link?n(v):`div`),{key:t.full,to:i.link?typeof i.link==`string`?i.link:{path:n(O).path,query:{...n(O).query,[i.linkQueryKey]:t.full},hash:n(k).hash}:void 0,"text-sm":``,"ws-nowrap":``,flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active`,style:c({paddingLeft:`${i.padding+2.7}rem`}),onClick:e=>A(t)},{default:d(()=>[e(E,{filename:t.full},null,8,[`filename`]),g(`div`,C,[e(_,{path:t.path.split(`/`).pop()||``},null,8,[`path`]),a(o.$slots,`extra`,{node:t})])]),_:2},1032,[`to`,`style`,`onClick`]))),128))],64)):t(``,!0)],40,x)}}}),{__name:`DisplayTreeNode`});export{w as t};
1
+ import{A as e,C as t,Dt as n,Gt as r,M as i,Q as a,R as o,S as s,Ut as c,Z as l,h as u,lt as d,q as f,rt as p,tt as m,w as h,x as g}from"./BfJK_SLU.js";import{C as _}from"./BpHzZqln.js";import{t as v}from"./BKUGy95W.js";import{n as y,t as b}from"./0b3Up9kD.js";var x=[`open`],S={"font-mono":``},C={"font-mono":``},w=Object.assign(i({__name:`TreeNode`,props:o({node:{},icon:{default:`i-catppuccin:folder icon-catppuccin`},iconOpen:{default:`i-catppuccin:folder-open icon-catppuccin`},link:{type:[String,Boolean]},linkQueryKey:{default:`module`},padding:{default:0},open:{type:Boolean}},{open:{type:Boolean,required:!1,default:!0},openModifiers:{}}),emits:o([`select`],[`update:open`]),setup(i,{emit:o}){let T=i,E=o,D=p(i,`open`),O=_(),k=window.location;function A(e){T.link||E(`select`,e)}return(o,p)=>{let _=b,T=w,E=y;return f(),h(`details`,{open:D.value,onToggle:p[0]||=e=>D.value=e.target?.open},[g(`summary`,{"cursor-default":``,"select-none":``,"text-sm":``,truncate:``,style:r({paddingLeft:`${i.padding+.5}rem`}),flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active `},[g(`div`,{class:c([`i-ph-caret-right-duotone transition op50`,D.value?`rotate-90`:``])},null,2),g(`div`,{class:c(D.value&&i.iconOpen||i.icon),"inline-block":``,"vertical-text-bottom":``},null,2),g(`div`,S,[e(_,{path:i.node.name||``},null,8,[`path`])])],4),D.value?(f(),h(u,{key:0},[(f(!0),h(u,null,l(Object.entries(i.node.children),e=>(f(),s(T,{key:e[0],node:e[1],link:i.link,padding:i.padding+1,"link-query-key":i.linkQueryKey,onSelect:A},{extra:d(({node:e})=>[a(o.$slots,`extra`,{node:e})]),_:3},8,[`node`,`link`,`padding`,`link-query-key`]))),128)),(f(!0),h(u,null,l(i.node.items,t=>(f(),s(m(i.link?n(v):`div`),{key:t.full,to:i.link?typeof i.link==`string`?i.link:{path:n(O).path,query:{...n(O).query,[i.linkQueryKey]:t.full},hash:n(k).hash}:void 0,"text-sm":``,"ws-nowrap":``,flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active`,style:r({paddingLeft:`${i.padding+2.7}rem`}),onClick:e=>A(t)},{default:d(()=>[e(E,{filename:t.full},null,8,[`filename`]),g(`div`,C,[e(_,{path:t.path.split(`/`).pop()||``},null,8,[`path`]),a(o.$slots,`extra`,{node:t})])]),_:2},1032,[`to`,`style`,`onClick`]))),128))],64)):t(``,!0)],40,x)}}}),{__name:`DisplayTreeNode`});export{w as t};
@@ -1 +1 @@
1
- import{i as e}from"./Dnap40Ul.js";import{A as t,Gt as n,M as r,q as i,w as a,x as o}from"./WOQUZE4V.js";var s={p10:``,"h-full":``,flex:`~ col`,"items-center":``,"justify-center":``},c={flex:`~ gap-2`,"animate-pulse":``,"mt--4":``,"items-center":``,"justify-center":``},l=Object.assign(r({__name:`Loading`,props:{text:{}},setup(r){let l=r;return(r,u)=>(i(),a(`div`,s,[t(e),o(`div`,c,[u[0]||=o(`div`,{"i-svg-spinners-8-dots-rotate":``},null,-1),o(`span`,null,n(l.text??`Loading...`),1)])]))}}),{__name:`VisualLoading`});export{l as t};
1
+ import{i as e}from"./DvOe6iF7.js";import{A as t,Kt as n,M as r,q as i,w as a,x as o}from"./BfJK_SLU.js";var s={p10:``,"h-full":``,flex:`~ col`,"items-center":``,"justify-center":``},c={flex:`~ gap-2`,"animate-pulse":``,"mt--4":``,"items-center":``,"justify-center":``},l=Object.assign(r({__name:`Loading`,props:{text:{}},setup(r){let l=r;return(r,u)=>(i(),a(`div`,s,[t(e),o(`div`,c,[u[0]||=o(`div`,{"i-svg-spinners-8-dots-rotate":``},null,-1),o(`span`,null,n(l.text??`Loading...`),1)])]))}}),{__name:`VisualLoading`});export{l as t};
@@ -1 +1 @@
1
- import{C as e,Gt as t,Ht as n,M as r,Q as i,b as a,k as o,q as s,w as c,x as l}from"./WOQUZE4V.js";import{t as u}from"./CKJSqDo0.js";import{c as d}from"./MtfbxdGf.js";var f={"text-xs":``,op75:``,"ml-0.4":``},p={key:0,"text-xs":``,ml1:``,"op-fade":``,border:`l base`,pl1:``},m=1e3,h=Object.assign(r({__name:`FileSizeBadge`,props:{bytes:{},colorize:{type:Boolean,default:!0},digits:{default:2},percent:{type:Boolean,default:!0},total:{},icon:{},percentRatio:{default:.5}},setup(r){let d=r,h=m**2,g=[[80*m,`color-scale-neutral`],[500*m,`color-scale-low`],[1*h,`color-scale-medium`],[10*h,`color-scale-high`],[20*h,`color-scale-critical`]],_=a(()=>{if(!d.colorize)return g[0];let e=d.bytes||0;for(let[t,n]of g)if(e<t)return n;return g.at(-1)?.[1]}),v=a(()=>d.total?(d.bytes||0)*100/d.total:0),y=a(()=>u(d.bytes||0,d.digits));return(a,u)=>r.bytes?(s(),c(`div`,{key:0,class:n([_.value,`px-0.4em py-0.2em font-mono line-height-none bg-gray:5 dark:bg-gray:4 flex items-center`])},[r.icon?(s(),c(`div`,{key:0,class:n([r.icon,`mr-1`])},null,2)):e(``,!0),o(` `+t(y.value[0]),1),l(`span`,f,t(y.value[1]),1),i(a.$slots,`after`,{},()=>[r.percent&&v.value>r.percentRatio?(s(),c(`span`,p,t(+v.value.toFixed(1))+`%`,1)):e(``,!0)])],2)):e(``,!0)}}),{__name:`DisplayFileSizeBadge`}),g=d(`rolldown-devtools-settings`,{codeviewerLineWrap:!1,codeviewerDiffPanelSize:50,flowExpandResolveId:!0,flowExpandTransforms:!0,flowExpandLoads:!0,flowExpandChunks:!0,flowExpandAssets:!0,flowShowAllTransforms:!1,flowShowAllLoads:!1,moduleGraphViewType:`list`,assetViewType:`list`,chartAnimation:!0,moduleDetailsViewType:`flow`,pluginDetailsViewType:`flow`,pluginDetailsTableFields:null,pluginDetailsModuleTypes:null,pluginDetailsDurationSortType:``,pluginDetailSelectedHook:``,chunkViewType:`list`,pluginDetailsShowType:`all`,packageViewType:`table`,packageSizeSortType:``},{mergeDefaults:!0});function _(e){let t=new Map;return new Proxy(e.value,{get(e,n){return t.has(n)||t.set(n,a({get(){return e[n]},set(t){e[n]=t}})),t.get(n)}})}var v=_(g);export{v as n,h as r,g as t};
1
+ import{C as e,Kt as t,M as n,Q as r,Ut as i,b as a,k as o,q as s,w as c,x as l}from"./BfJK_SLU.js";import{d as u}from"./BrH7MV2S.js";import{t as d}from"./CKJSqDo0.js";var f={"text-xs":``,op75:``,"ml-0.4":``},p={key:0,"text-xs":``,ml1:``,"op-fade":``,border:`l base`,pl1:``},m=1e3,h=Object.assign(n({__name:`FileSizeBadge`,props:{bytes:{},colorize:{type:Boolean,default:!0},digits:{default:2},percent:{type:Boolean,default:!0},total:{},icon:{},percentRatio:{default:.5}},setup(n){let u=n,h=m**2,g=[[80*m,`color-scale-neutral`],[500*m,`color-scale-low`],[1*h,`color-scale-medium`],[10*h,`color-scale-high`],[20*h,`color-scale-critical`]],_=a(()=>{if(!u.colorize)return g[0];let e=u.bytes||0;for(let[t,n]of g)if(e<t)return n;return g.at(-1)?.[1]}),v=a(()=>u.total?(u.bytes||0)*100/u.total:0),y=a(()=>d(u.bytes||0,u.digits));return(a,u)=>n.bytes?(s(),c(`div`,{key:0,class:i([_.value,`px-0.4em py-0.2em font-mono line-height-none bg-gray:5 dark:bg-gray:4 flex items-center`])},[n.icon?(s(),c(`div`,{key:0,class:i([n.icon,`mr-1`])},null,2)):e(``,!0),o(` `+t(y.value[0]),1),l(`span`,f,t(y.value[1]),1),r(a.$slots,`after`,{},()=>[n.percent&&v.value>n.percentRatio?(s(),c(`span`,p,t(+v.value.toFixed(1))+`%`,1)):e(``,!0)])],2)):e(``,!0)}}),{__name:`DisplayFileSizeBadge`}),g=u(`rolldown-devtools-settings`,{codeviewerLineWrap:!1,codeviewerDiffPanelSize:50,flowExpandResolveId:!0,flowExpandTransforms:!0,flowExpandLoads:!0,flowExpandChunks:!0,flowExpandAssets:!0,flowShowAllTransforms:!1,flowShowAllLoads:!1,moduleGraphViewType:`list`,assetViewType:`list`,chartAnimation:!0,moduleDetailsViewType:`flow`,pluginDetailsViewType:`flow`,pluginDetailsTableFields:null,pluginDetailsModuleTypes:null,pluginDetailsDurationSortType:``,pluginDetailSelectedHook:``,chunkViewType:`list`,pluginDetailsShowType:`all`,packageViewType:`table`,packageSizeSortType:``},{mergeDefaults:!0});function _(e){let t=new Map;return new Proxy(e.value,{get(e,n){return t.has(n)||t.set(n,a({get(){return e[n]},set(t){e[n]=t}})),t.get(n)}})}var v=_(g);export{v as n,h as r,g as t};
@@ -1 +1 @@
1
- import{t as e}from"./DOP22jZa.js";var t=class{_mapTree;constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e.at(-1),t),this}get(e){return this._getLastMap(e).get(e.at(-1))}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e.at(-1))}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},n=class{_lengthMap;constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,n){let r=e.length,i=this._lengthMap.get(r);return i||(i=new t(r),this._lengthMap.set(r,i)),i.set(e,n),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function r(e){let t=new n,r=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return r.cache=t,r}var i=[{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-npm`},{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],a=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^vite:/i,name:`vite`,description:`Vite`,icon:`i-catppuccin-vite`},{match:/^unocss:/i,name:`unocss`,description:`Unocss`,icon:`i-catppuccin-unocss`},{match:/^nuxt:/i,name:`nuxt`,description:`Nuxt`,icon:`i-catppuccin-nuxt`},{match:/^builtin:/i,name:`builtin`,description:`Builtin`,icon:`i-catppuccin-folder-prisma`}],o={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},s={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`};function c(e){return i.find(t=>t.name===e)??o}var l=r(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of i)if(t.match.test(e))return t;return o}),u=r(e=>{for(let t of a)if(t.match.test(e))return t;return s});function d(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return f(n%360,t)}function f(t,n=1){return`hsla(${t}, ${e.value?50:65}%, ${e.value?60:40}%, ${n})`}var p={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,rolldown:18,virtual:160,nuxt:140};function m(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in p){let n=p[e];return typeof n==`number`?f(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return d(e,t)}export{i as a,c,s as i,u as l,d as n,a as o,f as r,l as s,m as t,r as u};
1
+ import{t as e}from"./BrH7MV2S.js";var t=class{_mapTree;constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e.at(-1),t),this}get(e){return this._getLastMap(e).get(e.at(-1))}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e.at(-1))}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},n=class{_lengthMap;constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,n){let r=e.length,i=this._lengthMap.get(r);return i||(i=new t(r),this._lengthMap.set(r,i)),i.set(e,n),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function r(e){let t=new n,r=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return r.cache=t,r}var i=[{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-npm`},{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],a=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^vite:/i,name:`vite`,description:`Vite`,icon:`i-catppuccin-vite`},{match:/^unocss:/i,name:`unocss`,description:`Unocss`,icon:`i-catppuccin-unocss`},{match:/^nuxt:/i,name:`nuxt`,description:`Nuxt`,icon:`i-catppuccin-nuxt`},{match:/^builtin:/i,name:`builtin`,description:`Builtin`,icon:`i-catppuccin-folder-prisma`}],o={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},s={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`};function c(e){return i.find(t=>t.name===e)??o}var l=r(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of i)if(t.match.test(e))return t;return o}),u=r(e=>{for(let t of a)if(t.match.test(e))return t;return s});function d(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return f(n%360,t)}function f(t,n=1){return`hsla(${t}, ${e.value?50:65}%, ${e.value?60:40}%, ${n})`}var p={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,rolldown:18,virtual:160,nuxt:140};function m(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in p){let n=p[e];return typeof n==`number`?f(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return d(e,t)}export{i as a,c,s as i,u as l,d as n,a as o,f as r,l as s,m as t,r as u};