@vitejs/devtools-rolldown 0.1.2 → 0.1.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 (81) hide show
  1. package/dist/index.mjs +0 -6
  2. package/dist/nitro.json +1 -1
  3. package/dist/public/200.html +1 -1
  4. package/dist/public/404.html +1 -1
  5. package/dist/public/_nuxt/B93mbFaw.js +1 -0
  6. package/dist/public/_nuxt/BK_evZhr2.js +1 -0
  7. package/dist/public/_nuxt/BMB5NJph.js +1 -0
  8. package/dist/public/_nuxt/{CNhzLIej.js → BN7ehjOp.js} +1 -1
  9. package/dist/public/_nuxt/{DGePBXlZ.js → BWMtL8wB.js} +1 -1
  10. package/dist/public/_nuxt/{B8Pee7C0.js → BdJ_JF0w.js} +1 -1
  11. package/dist/public/_nuxt/BgoIwvw3.js +1 -0
  12. package/dist/public/_nuxt/BsPeO-X9.js +1 -0
  13. package/dist/public/_nuxt/BvWn17I_.js +12 -0
  14. package/dist/public/_nuxt/{C2GH2ak5.js → Bw1q8I0g.js} +1 -1
  15. package/dist/public/_nuxt/{EJd6K-J0.js → C7OoXhk0.js} +1 -1
  16. package/dist/public/_nuxt/C7WGk_rq.js +2 -0
  17. package/dist/public/_nuxt/{CyUS7GqK.js → CEtF9LWU.js} +2 -2
  18. package/dist/public/_nuxt/{D4uTGA7r.js → CSK2QzqY.js} +1 -1
  19. package/dist/public/_nuxt/CUsyfwWC.js +1 -0
  20. package/dist/public/_nuxt/CZg4aoum.js +1 -0
  21. package/dist/public/_nuxt/{Bc8dubgH.js → Cb77vzCb.js} +1 -1
  22. package/dist/public/_nuxt/ChFn95N-.js +1 -0
  23. package/dist/public/_nuxt/{Cy7pLEz3.js → CvnmAwQf.js} +1 -1
  24. package/dist/public/_nuxt/DDvY2cLx.js +1 -0
  25. package/dist/public/_nuxt/DHvQIQw5.js +1 -0
  26. package/dist/public/_nuxt/DJTkDKGN.js +1 -0
  27. package/dist/public/_nuxt/DLTtVSvg2.js +1 -0
  28. package/dist/public/_nuxt/DQ45Xu1f.js +1 -0
  29. package/dist/public/_nuxt/DataVirtualList.CjCVip5P.css +1 -0
  30. package/dist/public/_nuxt/DbSMFLvz.js +1 -0
  31. package/dist/public/_nuxt/{DE4LYGEQ.js → DlCwyx2g.js} +1 -1
  32. package/dist/public/_nuxt/Dm4CqiyV.js +1 -0
  33. package/dist/public/_nuxt/Dsy9hcD72.js +1 -0
  34. package/dist/public/_nuxt/{BWso7RtX.js → Dv3_npnh.js} +1 -1
  35. package/dist/public/_nuxt/JqdhbCkY.js +1 -0
  36. package/dist/public/_nuxt/{CslYnwdN.js → KgssGmNv.js} +1 -1
  37. package/dist/public/_nuxt/Opwc7YtP2.js +1 -0
  38. package/dist/public/_nuxt/XDMGgUv8.js +1 -0
  39. package/dist/public/_nuxt/Xmh1ayIL2.js +1 -0
  40. package/dist/public/_nuxt/builds/latest.json +1 -1
  41. package/dist/public/_nuxt/builds/meta/35ace98d-68a0-4b96-9871-0cefcb64bde5.json +1 -0
  42. package/dist/public/_nuxt/dIDzU19U.js +1 -0
  43. package/dist/public/_nuxt/{entry.Cdp-jYgM.css → entry.C3w9SVWr.css} +1 -1
  44. package/dist/public/_nuxt/error-404.CvDm6pT4.css +1 -0
  45. package/dist/public/_nuxt/error-500.B6RqN-C_.css +1 -0
  46. package/dist/public/_nuxt/lSJeop7v.js +1 -0
  47. package/dist/public/_nuxt/okblV2iS.js +1 -0
  48. package/dist/public/_nuxt/ouc94uM32.js +1 -0
  49. package/dist/public/index.html +1 -1
  50. package/package.json +38 -38
  51. package/dist/public/_nuxt/5X3skKrQ2.js +0 -1
  52. package/dist/public/_nuxt/6dmQ5yi9.js +0 -1
  53. package/dist/public/_nuxt/BGo3TQDe2.js +0 -1
  54. package/dist/public/_nuxt/BZbl9b6M.js +0 -2
  55. package/dist/public/_nuxt/BcmauC2P2.js +0 -1
  56. package/dist/public/_nuxt/Bp4eI3o72.js +0 -1
  57. package/dist/public/_nuxt/Bqcxb-Bh2.js +0 -1
  58. package/dist/public/_nuxt/ByPScZnZ.js +0 -1
  59. package/dist/public/_nuxt/CNF2WI0B.js +0 -1
  60. package/dist/public/_nuxt/COVKvZqR.js +0 -1
  61. package/dist/public/_nuxt/CYHE6NHg.js +0 -1
  62. package/dist/public/_nuxt/CeUdh6JR.js +0 -1
  63. package/dist/public/_nuxt/CoGMAm3u.js +0 -1
  64. package/dist/public/_nuxt/Csgp_tbz2.js +0 -1
  65. package/dist/public/_nuxt/D0PBHtPK.js +0 -1
  66. package/dist/public/_nuxt/D9y1gK-U.js +0 -2
  67. package/dist/public/_nuxt/DSjaPvg5.js +0 -1
  68. package/dist/public/_nuxt/DataVirtualList.lGV_3v2U.css +0 -1
  69. package/dist/public/_nuxt/DjwOaWuE.js +0 -1
  70. package/dist/public/_nuxt/GNBXjCbD.js +0 -1
  71. package/dist/public/_nuxt/L1-1zWht.js +0 -1
  72. package/dist/public/_nuxt/VSGDfpIu.js +0 -1
  73. package/dist/public/_nuxt/builds/meta/fbcc677b-17ad-4021-b787-c7c5a657adc4.json +0 -1
  74. package/dist/public/_nuxt/d4UCo6ai.js +0 -1
  75. package/dist/public/_nuxt/error-404.DCvw7d8G.css +0 -1
  76. package/dist/public/_nuxt/error-500.DMS_OhD_.css +0 -1
  77. package/dist/public/_nuxt/jJjSdHHs.js +0 -1
  78. package/dist/public/_nuxt/lwvhLhUg.js +0 -12
  79. package/dist/public/_nuxt/njczzgS1.js +0 -1
  80. package/dist/public/_nuxt/pNZCMUGD.js +0 -1
  81. /package/dist/public/_nuxt/{BrE3R8vW.js → 5tvbNeKa.js} +0 -0
@@ -0,0 +1 @@
1
+ .grid[data-v-5bb471dc]{display:grid}.mb-2[data-v-5bb471dc]{margin-bottom:.5rem}.mb-4[data-v-5bb471dc]{margin-bottom:1rem}.max-w-520px[data-v-5bb471dc]{max-width:520px}.min-h-screen[data-v-5bb471dc]{min-height:100vh}.w-full[data-v-5bb471dc]{width:100%}.flex[data-v-5bb471dc]{display:flex}.place-content-center[data-v-5bb471dc]{place-content:center}.items-center[data-v-5bb471dc]{align-items:center}.justify-center[data-v-5bb471dc]{justify-content:center}.overflow-hidden[data-v-5bb471dc]{overflow:hidden}.bg-white[data-v-5bb471dc]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-5bb471dc]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-5bb471dc]{text-align:center}.text-\[80px\][data-v-5bb471dc]{font-size:80px}.text-2xl[data-v-5bb471dc]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-5bb471dc]{font-size:.875rem;line-height:1.25rem}.text-\[\#020420\][data-v-5bb471dc]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-5bb471dc]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-5bb471dc]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.font-medium[data-v-5bb471dc]{font-weight:500}.font-semibold[data-v-5bb471dc]{font-weight:600}.leading-none[data-v-5bb471dc]{line-height:1}.tracking-wide[data-v-5bb471dc]{letter-spacing:.025em}.font-sans[data-v-5bb471dc]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-5bb471dc]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline[data-v-5bb471dc]{text-decoration-line:underline}.underline-offset-3[data-v-5bb471dc]{text-underline-offset:3px}.antialiased[data-v-5bb471dc]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-5bb471dc]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-5bb471dc]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-5bb471dc]{font-size:110px}.sm\:text-3xl[data-v-5bb471dc]{font-size:1.875rem;line-height:2.25rem}}
@@ -0,0 +1 @@
1
+ .grid[data-v-283b1c88]{display:grid}.mb-2[data-v-283b1c88]{margin-bottom:.5rem}.mb-4[data-v-283b1c88]{margin-bottom:1rem}.max-w-520px[data-v-283b1c88]{max-width:520px}.min-h-screen[data-v-283b1c88]{min-height:100vh}.place-content-center[data-v-283b1c88]{place-content:center}.overflow-hidden[data-v-283b1c88]{overflow:hidden}.bg-white[data-v-283b1c88]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-283b1c88]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-283b1c88]{text-align:center}.text-\[80px\][data-v-283b1c88]{font-size:80px}.text-2xl[data-v-283b1c88]{font-size:1.5rem;line-height:2rem}.text-\[\#020420\][data-v-283b1c88]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-283b1c88]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-283b1c88]{font-weight:600}.leading-none[data-v-283b1c88]{line-height:1}.tracking-wide[data-v-283b1c88]{letter-spacing:.025em}.font-sans[data-v-283b1c88]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-283b1c88]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-283b1c88]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-283b1c88]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-283b1c88]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-283b1c88]{font-size:110px}.sm\:text-3xl[data-v-283b1c88]{font-size:1.875rem;line-height:2.25rem}}
@@ -0,0 +1 @@
1
+ import{r as e}from"./BMB5NJph.js";import{A as t,C as n,Et as r,Gt as i,M as a,Q as o,R as s,S as c,Z as l,b as u,h as d,k as f,lt as p,q as m,rt as h,tt as g,w as _,x as v}from"./CEtF9LWU.js";import{C as y}from"./Cb77vzCb.js";import{c as b}from"./DJTkDKGN.js";import{n as x}from"#entry";import{t as S}from"./BdJ_JF0w.js";import{r as C,t as w}from"./CvnmAwQf.js";import{r as T}from"./DbSMFLvz.js";import{t as E}from"./Bw1q8I0g.js";var D=[`title`],O={key:0,flex:`~ items-center gap-2`},k={op50:``,"font-mono":``},A=[`title`],j=[`title`],M=Object.assign(a({__name:`BaseInfo`,props:{chunk:{},link:{type:Boolean,default:!1},basic:{type:Boolean,default:!1}},setup(e){let a=e,s=y(),l=u(()=>Array.isArray(a.chunk.imports)?a.chunk.imports.length:a.chunk.imports),d=u(()=>Array.isArray(a.chunk.modules)?a.chunk.modules.length:a.chunk.modules);return(a,u)=>(m(),c(g(e.link?r(S):`div`),{to:e.link?typeof e.link==`string`?e.link:{path:r(s).path,query:{chunk:e.chunk.chunk_id}}:void 0,flex:`~ gap-3 items-center`},{default:p(()=>[v(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.chunk.chunk_id}`},[o(a.$slots,`icon`,{},()=>[u[0]||=v(`div`,{"i-ph-shapes-duotone":``},null,-1)]),v(`div`,null,i(e.chunk.name||`[unnamed]`),1),t(C,{text:e.chunk.reason},null,8,[`text`]),o(a.$slots,`left-after`)],8,D),u[3]||=v(`div`,{"flex-auto":``},null,-1),e.basic?n(``,!0):(m(),_(`div`,O,[v(`span`,k,`#`+i(e.chunk.chunk_id),1),v(`div`,{flex:`~ gap-1 items-center`,title:`${l.value} imports`},[u[1]||=v(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),f(` `+i(l.value),1)],8,A),v(`div`,{flex:`~ gap-1 items-center`,title:`${d.value} modules`},[u[2]||=v(`div`,{"i-ph-package-duotone":``},null,-1),f(` `+i(d.value),1)],8,j)])),o(a.$slots,`default`)]),_:3},8,[`to`]))}}),{__name:`ChunksBaseInfo`}),N={flex:`~ gap-2 items-center`},P=Object.assign(a({__name:`BaseInfo`,props:{asset:{}},setup(e){return(n,r)=>{let a=T;return m(),_(`div`,N,[r[0]||=v(`div`,{"i-catppuccin-java-class-abstract":``},null,-1),v(`div`,null,i(e.asset.filename),1),t(a,{bytes:e.asset.size,"text-sm":``},null,8,[`bytes`]),t(C,{text:e.asset.type},null,8,[`text`])])}}}),{__name:`AssetsBaseInfo`}),F={relative:``},I={key:0,"pointer-events-none":``,absolute:``,"left-0":``,"right-0":``,"bottom-0":``,"bg-gradient-more":``,"h-30":``,flex:`~ justify-center`},L=Object.assign(a({__name:`ExpandableContainer`,props:s({list:{}},{count:{default:20},countModifiers:{}}),emits:[`update:count`],setup(e){let i=e,a=h(e,`count`),s=a.value,c=u(()=>i.list.slice(0,a.value));return(l,u)=>(m(),_(`div`,F,[o(l.$slots,`default`,{items:c.value}),e.list.length>a.value?(m(),_(`div`,I,[v(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:u[0]||=e=>a.value=Math.round(a.value+r(s))},[u[2]||=v(`div`,{"i-ri:arrow-down-double-line":``},null,-1),u[3]||=v(`span`,null,`More`,-1),t(E,{prefix:`+`,number:Math.min(Math.round(r(s)),i.list.length-a.value),"rounded-full":``,"text-sm":``},null,8,[`number`])]),v(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:u[1]||=e=>a.value=i.list.length},[u[4]||=v(`div`,{"i-ph-arrows-out-line-vertical-duotone":``},null,-1),u[5]||=v(`span`,null,`All`,-1),t(E,{number:i.list.length,"rounded-full":``,"text-sm":``},null,8,[`number`])])])):n(``,!0)]))}}),{__name:`DisplayExpandableContainer`}),R={key:0,"i-ph-file-duotone":``},z={key:1,"i-ph-lightning-duotone":``},B=Object.assign(a({__name:`Imports`,props:{imports:{}},setup(e){return(r,i)=>{let a=M,o=L;return m(),c(o,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:e.imports},{default:p(({items:e})=>[(m(!0),_(d,null,l(e,(e,r)=>(m(),_(d,{key:r},[e?(m(),c(a,{key:0,chunk:e,link:``,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},{icon:p(()=>[e.kind===`import-statement`?(m(),_(`div`,R)):n(``,!0),e.kind===`dynamic-import`?(m(),_(`div`,z)):n(``,!0)]),"left-after":p(()=>[t(C,{text:e.kind},null,8,[`text`])]),_:2},1032,[`chunk`])):n(``,!0)],64))),128))]),_:1},8,[`list`])}}}),{__name:`ChunksImports`}),V={flex:`~ col gap-3`},H={key:1,"text-sm":``,op50:``,flex:`~ items-center`,title:`Total size of imports`},U={open:`true`},W={open:`true`},G={op50:``},K={key:0,open:`true`},q={op50:``},J={key:1,open:`true`},Y={op50:``},X=Object.assign(a({__name:`ChunkDetails`,props:{chunk:{},session:{},showDetails:{type:Boolean,default:!0},chunks:{}},setup(a){let s=a,h=u(()=>{let e=new Map;for(let t of s.session.modulesList)e.set(t.id,t);return e});function g(e){return e.reduce((e,t)=>{let n=h.value.get(t);return!n||!n.buildMetrics?.transforms?.length?e:e+n.buildMetrics.transforms.at(-1).transformed_code_size},0)}let E=u(()=>g(s.chunk.modules)),D=y(),O=e(),{state:k,isLoading:A}=b(async()=>{if(!s.chunks)return await O.value.call(`vite:rolldown:get-chunks-graph`,{session:s.session.id})},null),j=u(()=>s.chunks||k.value),N=u(()=>s.chunk.imports.map(e=>{let t=j.value?.find(t=>t.chunk_id===e.chunk_id);return{...e,name:t?.name||`[unnamed]`,reason:t?.reason||`common`,imports:t?.imports.length||0,modules:t?.modules.length||0,size:g(t?.modules||[])}})),F=u(()=>j.value?.filter(e=>e.imports.some(e=>e.chunk_id===s.chunk.chunk_id)).map(e=>({...e.imports.find(e=>e.chunk_id===s.chunk.chunk_id),chunk_id:e.chunk_id,name:e.name||`[unnamed]`,reason:e.reason||`common`,imports:e.imports.length||0,modules:e.modules.length||0}))||[]);return(e,s)=>{let u=T,h=M,g=P,y=S,b=w,O=L,k=x,j=B;return m(),_(`div`,V,[t(h,{chunk:a.chunk},{"left-after":p(()=>[a.chunk.is_initial?(m(),c(C,{key:0,text:`initial`})):n(``,!0),t(u,{bytes:E.value,"text-sm":``,title:`Chunk size`},null,8,[`bytes`]),N.value.length?(m(),_(`div`,H,[s[0]||=f(` (`,-1),t(u,{bytes:N.value.reduce((e,t)=>e+t.size,0)},null,8,[`bytes`]),s[1]||=f(`) `,-1)])):n(``,!0)]),default:p(()=>[o(e.$slots,`default`)]),_:3},8,[`chunk`]),a.showDetails?(m(),_(d,{key:0},[v(`details`,U,[s[2]||=v(`summary`,{op50:``},` Assets `,-1),t(y,{border:`~ base rounded-lg`,px2:``,mt2:``,py1:``,"min-w-fit":``,flex:`~`,to:{path:r(D).path,query:{asset:a.chunk.asset?.filename}}},{default:p(()=>[t(g,{asset:{...a.chunk.asset,type:`asset`}},null,8,[`asset`])]),_:1},8,[`to`])]),v(`details`,W,[v(`summary`,G,[v(`span`,null,`Modules (`+i(a.chunk.modules.length)+`)`,1)]),t(O,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:a.chunk.modules},{default:p(({items:e})=>[(m(!0),_(d,null,l(e,e=>(m(),c(b,{id:e,key:e,session:a.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))]),_:1},8,[`list`])]),r(A)?(m(),c(k,{key:0})):(m(),_(d,{key:1},[a.chunk.imports.length?(m(),_(`details`,K,[v(`summary`,q,[v(`span`,null,`Imports (`+i(a.chunk.imports.length)+`)`,1)]),t(j,{imports:N.value},null,8,[`imports`])])):n(``,!0),F.value.length?(m(),_(`details`,J,[v(`summary`,Y,[v(`span`,null,`Importers (`+i(F.value.length)+`)`,1)]),t(j,{imports:F.value},null,8,[`imports`])])):n(``,!0)],64))],64)):n(``,!0)])}}}),{__name:`DataChunkDetails`});export{M as i,L as n,P as r,X as t};
@@ -0,0 +1 @@
1
+ import{B as e,C as t,Et as n,Gt as r,K as i,M as a,Q as o,S as s,St as c,Wt as l,Z as u,at as d,b as f,bt as p,h as m,ot as h,q as g,v as _,w as v,wt as y,x as b}from"./CEtF9LWU.js";import{a as x,c as S,d as C,f as w,i as ee,l as T,o as te,r as ne,u as re}from"./5tvbNeKa.js";import{t as E}from"./DJTkDKGN.js";import{t as D}from"./D04G8HHr.js";import{t as ie}from"./DbSMFLvz.js";function O(){return typeof window<`u`}function k(e){return ae(e)?(e.nodeName||``).toLowerCase():`#document`}function A(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function j(e){return((ae(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function ae(e){return O()?e instanceof Node||e instanceof A(e).Node:!1}function M(e){return O()?e instanceof Element||e instanceof A(e).Element:!1}function N(e){return O()?e instanceof HTMLElement||e instanceof A(e).HTMLElement:!1}function oe(e){return!O()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof A(e).ShadowRoot}function P(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function se(e){return/^(table|td|th)$/.test(k(e))}function F(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ce=/transform|translate|scale|rotate|perspective|filter/,le=/paint|layout|strict|content/,I=e=>!!e&&e!==`none`,ue;function de(e){let t=M(e)?R(e):e;return I(t.transform)||I(t.translate)||I(t.scale)||I(t.rotate)||I(t.perspective)||!pe()&&(I(t.backdropFilter)||I(t.filter))||ce.test(t.willChange||``)||le.test(t.contain||``)}function fe(e){let t=B(e);for(;N(t)&&!L(t);){if(de(t))return t;if(F(t))return null;t=B(t)}return null}function pe(){return ue??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ue}function L(e){return/^(html|body|#document)$/.test(k(e))}function R(e){return A(e).getComputedStyle(e)}function z(e){return M(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function B(e){if(k(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||oe(e)&&e.host||j(e);return oe(t)?t.host:t}function me(e){let t=B(e);return L(t)?e.ownerDocument?e.ownerDocument.body:e.body:N(t)&&P(t)?t:me(t)}function he(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=me(e),i=r===e.ownerDocument?.body,a=A(r);if(i){let e=ge(a);return t.concat(a,a.visualViewport||[],P(r)?r:[],e&&n?he(e):[])}else return t.concat(r,he(r,[],n))}function ge(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _e(e){let t=R(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=N(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=w(n)!==a||w(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ve(e){return M(e)?e:e.contextElement}function V(e){let t=ve(e);if(!N(t))return S(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=_e(t),o=(a?w(n.width):n.width)/r,s=(a?w(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var ye=S(0);function be(e){let t=A(e);return!pe()||!t.visualViewport?ye:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==A(e)?!1:t}function H(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ve(e),o=S(1);t&&(r?M(r)&&(o=V(r)):o=V(e));let s=xe(a,n,r)?be(a):S(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=A(a),t=r&&M(r)?A(r):r,n=e,i=ge(n);for(;i&&r&&t!==n;){let e=V(i),t=i.getBoundingClientRect(),r=R(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=A(i),i=ge(n)}}return C({width:u,height:d,x:c,y:l})}function U(e,t){let n=z(e).scrollLeft;return t?t.left+n:H(j(e)).left+n}function Se(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-U(e,n),y:n.top+t.scrollTop}}function Ce(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=j(r),s=t?F(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=S(1),u=S(0),d=N(r);if((d||!d&&!a)&&((k(r)!==`body`||P(o))&&(c=z(r)),d)){let e=H(r);l=V(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Se(o,c):S(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 we(e){return Array.from(e.getClientRects())}function Te(e){let t=j(e),n=z(e),r=e.ownerDocument.body,i=T(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=T(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+U(e),s=-n.scrollTop;return R(r).direction===`rtl`&&(o+=T(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Ee=25;function De(e,t){let n=A(e),r=j(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=pe();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=U(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<=Ee&&(a-=o)}else l<=Ee&&(a+=l);return{width:a,height:o,x:s,y:c}}function Oe(e,t){let n=H(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=N(e)?V(e):S(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ke(e,t,n){let r;if(t===`viewport`)r=De(e,n);else if(t===`document`)r=Te(j(e));else if(M(t))r=Oe(t,n);else{let n=be(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(r)}function Ae(e,t){let n=B(e);return n===t||!M(n)||L(n)?!1:R(n).position===`fixed`||Ae(n,t)}function je(e,t){let n=t.get(e);if(n)return n;let r=he(e,[],!1).filter(e=>M(e)&&k(e)!==`body`),i=null,a=R(e).position===`fixed`,o=a?B(e):e;for(;M(o)&&!L(o);){let t=R(o),n=de(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||P(o)&&!n&&Ae(e,o))?r=r.filter(e=>e!==o):i=t,o=B(o)}return t.set(e,r),r}function Me(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?F(t)?[]:je(t,this._c):[].concat(n),r],o=ke(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=ke(t,a[e],i);s=T(n.top,s),c=re(n.right,c),l=re(n.bottom,l),u=T(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ne(e){let{width:t,height:n}=_e(e);return{width:t,height:n}}function Pe(e,t,n){let r=N(t),i=j(t),a=n===`fixed`,o=H(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=S(0);function l(){c.x=U(i)}if(r||!r&&!a)if((k(t)!==`body`||P(i))&&(s=z(t)),r){let e=H(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?Se(i,s):S(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 Fe(e){return R(e).position===`static`}function Ie(e,t){if(!N(e)||R(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return j(e)===n&&(n=n.ownerDocument.body),n}function Le(e,t){let n=A(e);if(F(e))return n;if(!N(e)){let t=B(e);for(;t&&!L(t);){if(M(t)&&!Fe(t))return t;t=B(t)}return n}let r=Ie(e,t);for(;r&&se(r)&&Fe(r);)r=Ie(r,t);return r&&L(r)&&Fe(r)&&!de(r)?n:r||fe(e)||n}var Re=async function(e){let t=this.getOffsetParent||Le,n=this.getDimensions,r=await n(e.floating);return{reference:Pe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ze(e){return R(e).direction===`rtl`}var Be={convertOffsetParentRelativeRectToViewportRelativeRect:Ce,getDocumentElement:j,getClippingRect:Me,getOffsetParent:Le,getElementRects:Re,getClientRects:we,getDimensions:Ne,getScale:V,isElement:M,isRTL:ze},Ve=x,He=te,Ue=ee,We=(e,t,n)=>{let r=new Map,i={platform:Be,...n},a={...i.platform,_c:r};return ne(e,t,{...i,platform:a})},Ge=Object.assign(a({__name:`GraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:t,hoverY:n}=y(e),r=d(`hoverElement`),i=p(0),a=p(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})=>{i.value=e,a.value=t})}),(e,t)=>(g(),s(_,{to:`body`},[b(`div`,{ref_key:`hoverElement`,ref:r,fixed:``,"z-panel-content":``,"pointer-events-none":``,style:l({left:`${i.value}px`,top:`${a.value}px`})},[o(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?1:0)|(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(a({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:n}){let i=e,a=n,o=f(()=>{let e=[],t=i.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,n)=>(g(),v(`div`,Mt,[(g(!0),v(m,null,u(o.value,(e,n)=>(g(),v(m,{key:e.id},[n>0?(g(),v(`div`,Nt)):t(``,!0),b(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:t=>a(`select`,e)},[b(`span`,null,r(e.text||e.id),1)],8,Pt)],64))),128))]))}}),{__name:`ChartNavBreadcrumb`});function It(t){let{data:r,nameKey:a,sizeKey:o,rootText:s,nodeType:l,graphOptions:u,onUpdate:d}=t,m=c(void 0),g=c(void 0),_=p(void 0),v=c(void 0),y,b=f(()=>{if(t.tree)return t.tree.value;let e=n(r),i=new Map,c=0,u={id:`~root`,text:s,size:0,sizeSelf:0,children:[]};if(!e?.length)return{map:i,root:u,maxDepth:c};let d=[];d.unshift(()=>{u.size+=u.children.reduce((e,t)=>e+t.size,0),u.subtext=D(u.size).join(` `),u.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function f(e,t,n,r,a){if(i.has(t))return i.get(t);a>c&&(c=a);let o={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return i.set(t,o),r.children.push(o),d.unshift(()=>{let t=o.sizeSelf;o.size+=o.children.reduce((e,t)=>e+t.size,0),o.subtext=D(o.size).join(` `),o.children.length&&t/o.size>.1&&o.children.push({id:`${o.id}-self`,text:``,size:t,sizeSelf:t,subtext:D(t).join(` `),children:[],meta:{...e,path:``,type:l},parent:o}),o.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),o}function p(e){let t=e[a].split(`/`).filter(Boolean),n=u,r=``,s=0;t.forEach((c,u)=>{if(r+=(r?`/`:``)+c,s++,u===t.length-1){let t={id:e[a],text:c,size:e[o],sizeSelf:e[o],subtext:D(e[o]).join(` `),children:[],meta:{...e,path:c,type:l}};n.children.push(t),i.set(e[a],t)}else n=f(e,r,c,n,s)})}return e.forEach(p),d.forEach(e=>e()),{map:i,root:u,maxDepth:c}}),x=f(()=>({animate:ie.value.chartAnimation,palette:{stroke:E.value?`#222`:`#555`,fg:E.value?`#fff`:`#000`,bg:E.value?`#111`:`#fff`},getColor:et(b.value.root,E.value?.8:.9,E.value?1:1.1),getSubtext:e=>e.subtext,...u}));function S(e,t){_.value=e?.meta,e?.children.length||(e=e?.parent),v.value?.select(e,t)}function C(){y?.(),g.value=b.value.root,d?.(),e(()=>{let e=_.value&&b.value.map.get(_.value[a])||null;e&&S(e,!1)}),y=()=>{v.value?.dispose(),v.value=void 0,_.value=void 0}}return e(()=>{h(()=>[b.value,x.value],()=>{C()},{deep:!0,immediate:!1}),C()}),i(()=>{y?.()}),{tree:b,graph:v,chartOptions:x,nodeHover:m,nodeSelected:g,selectedNode:_,selectNode:S,buildGraph:C}}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};
@@ -0,0 +1 @@
1
+ import{A as e,Et as t,Gt as n,M as r,b as i,bt as a,lt as o,q as s,w as c,x as l}from"./CEtF9LWU.js";import{C as u,w as d}from"./Cb77vzCb.js";import{g as f,v as p}from"./DJTkDKGN.js";import{t as m}from"./BdJ_JF0w.js";import{i as h,l as g,o as _}from"./ChFn95N-.js";import{n as v,r as y,t as b}from"./BgoIwvw3.js";import{t as x}from"./CUsyfwWC.js";import{n as S,t as C}from"./qIAw3Eg02.js";var w={flex:`~ col gap-2`,p4:``},T={flex:``,pb2:``},E={"w-8":``,"text-right":``,"text-xs":``,op50:``},D={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},O=Object.assign(r({__name:`FlatList`,props:{plugins:{}},setup(r){let i=u();return(a,u)=>{let d=x,f=m;return s(),c(`div`,w,[e(b,{items:r.plugins,"key-prop":`plugin_id`},{default:o(({item:r})=>[l(`div`,T,[e(f,{to:{path:t(i).path,query:{plugin:r.plugin_id}},"font-mono":``,border:`~ rounded base`,"w-full":``,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{default:o(()=>[l(`div`,E,` #`+n(r.plugin_id),1),l(`span`,D,[e(d,{name:r.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`])])}}}),{__name:`PluginsFlatList`}),k={relative:``,"min-h-screen":``},A={sticky:``,"left-4":``,"right-4":``,"top-4":``,"z-panel-nav":``,"p-4":``},j={fixed:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},M={op50:``},N=r({__name:`plugins`,props:{session:{}},setup(t){let r=t,o=u(),m=d(),b=a({search:o.query.search||``,selected:o.query.plugin_types?S(o.query.plugin_types):null}),x=i(()=>[..._.filter(e=>r.session?.meta?.plugins?.some(t=>e.match.test(t.name))),h]),w=i(()=>{let e=r.session?.meta?.plugins;return b.value.selected&&(e=e.filter(e=>{let t=g(e.name);return b.value.selected.includes(t.name)})),e}),T=f(()=>w.value,()=>new y(w.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),E=i(()=>b.value.search?T.value.search(b.value.search).map(e=>e.item):w.value);return p(b.value,e=>{let t={...o.query,search:e.search||void 0,plugin_types:e.selected||void 0};m.replace({query:C(t)})},{debounce:500}),(r,i)=>{let a=v,o=O;return s(),c(`div`,k,[l(`div`,A,[e(a,{modelValue:b.value,"onUpdate:modelValue":i[0]||=e=>b.value=e,rules:x.value},null,8,[`modelValue`,`rules`])]),e(o,{plugins:E.value??[]},null,8,[`plugins`]),l(`div`,j,[l(`span`,M,n(E.value.length)+` of `+n(t.session?.meta?.plugins?.length||0),1)])])}}});export{N as default};
@@ -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/BZbl9b6M.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/.devtools-rolldown/_nuxt/entry.Cdp-jYgM.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BZbl9b6M.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BrE3R8vW.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/CyUS7GqK.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/Bc8dubgH.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/CeUdh6JR.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/D0PBHtPK.js"><script type="module" src="/.devtools-rolldown/_nuxt/BZbl9b6M.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:"fbcc677b-17ad-4021-b787-c7c5a657adc4",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1773705513773,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/C7WGk_rq.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/.devtools-rolldown/_nuxt/entry.C3w9SVWr.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/C7WGk_rq.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/BMB5NJph.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/CEtF9LWU.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/DJTkDKGN.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/5tvbNeKa.js"><link rel="modulepreload" as="script" crossorigin href="/.devtools-rolldown/_nuxt/Cb77vzCb.js"><script type="module" src="/.devtools-rolldown/_nuxt/C7WGk_rq.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:"35ace98d-68a0-4b96-9871-0cefcb64bde5",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774231868073,false]</script></body></html>
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@vitejs/devtools-rolldown",
3
3
  "type": "module",
4
- "version": "0.1.2",
5
- "description": "DevTools for Rolldown (work in progress)",
4
+ "version": "0.1.4",
5
+ "description": "DevTools for Rolldown",
6
6
  "author": "VoidZero Inc.",
7
7
  "license": "MIT",
8
8
  "homepage": "https://github.com/vitejs/devtools#readme",
@@ -29,15 +29,15 @@
29
29
  "dependencies": {
30
30
  "@floating-ui/dom": "^1.7.6",
31
31
  "@pnpm/read-project-manifest": "^1001.2.5",
32
- "@rolldown/debug": "^1.0.0-rc.9",
32
+ "@rolldown/debug": "^1.0.0-rc.10",
33
33
  "ansis": "^4.2.0",
34
34
  "birpc": "^4.0.0",
35
35
  "cac": "^7.0.0",
36
36
  "d3-shape": "^3.2.0",
37
37
  "diff": "^8.0.3",
38
38
  "get-port-please": "^3.2.0",
39
- "h3": "^1.15.6",
40
- "mlly": "^1.8.1",
39
+ "h3": "^1.15.9",
40
+ "mlly": "^1.8.2",
41
41
  "mrmime": "^2.0.1",
42
42
  "ohash": "^2.0.11",
43
43
  "p-limit": "^7.3.0",
@@ -45,21 +45,21 @@
45
45
  "publint": "^0.3.18",
46
46
  "sirv": "^3.0.2",
47
47
  "split2": "^4.2.0",
48
- "structured-clone-es": "^1.0.0",
48
+ "structured-clone-es": "^2.0.0",
49
49
  "tinyglobby": "^0.2.15",
50
50
  "unconfig": "^7.5.0",
51
51
  "unstorage": "^1.17.4",
52
- "vue-virtual-scroller": "^2.0.0-beta.9",
52
+ "vue-virtual-scroller": "^2.0.0-beta.10",
53
53
  "ws": "^8.19.0",
54
- "@vitejs/devtools-rpc": "0.1.2",
55
- "@vitejs/devtools-kit": "0.1.2"
54
+ "@vitejs/devtools-kit": "0.1.4",
55
+ "@vitejs/devtools-rpc": "0.1.4"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/diff": "^8.0.0",
59
59
  "@types/split2": "^4.2.3",
60
60
  "@types/splitpanes": "^2.2.6",
61
61
  "@types/stream-json": "^1.7.8",
62
- "@unocss/nuxt": "^66.6.6",
62
+ "@unocss/nuxt": "^66.6.7",
63
63
  "@vueuse/components": "^14.2.1",
64
64
  "@vueuse/core": "^14.2.1",
65
65
  "@vueuse/nuxt": "^14.2.1",
@@ -76,49 +76,49 @@
76
76
  "splitpanes": "^4.0.4",
77
77
  "stream-json": "^1.9.1",
78
78
  "theme-vitesse": "^1.0.0",
79
- "tsdown": "^0.21.2",
80
- "unocss": "^66.6.6",
79
+ "tsdown": "^0.21.4",
80
+ "unocss": "^66.6.7",
81
81
  "vite-hot-client": "^2.1.0"
82
82
  },
83
83
  "inlinedDependencies": {
84
- "stream-json": "1.9.1",
84
+ "@babel/code-frame": "7.29.0",
85
+ "@babel/helper-validator-identifier": "7.28.5",
86
+ "@gwhitney/detect-indent": "7.0.1",
85
87
  "@pnpm/constants": "1001.3.1",
88
+ "@pnpm/core-loggers": "1001.0.9",
86
89
  "@pnpm/error": "1000.0.5",
87
- "@pnpm/manifest-utils": "1002.0.4",
88
- "fast-safe-stringify": "2.1.1",
89
- "individual": "3.0.0",
90
- "bole": "5.0.25",
90
+ "@pnpm/graceful-fs": "1000.1.0",
91
91
  "@pnpm/logger": "1001.0.1",
92
- "@pnpm/core-loggers": "1001.0.9",
93
- "semver": "7.7.4",
92
+ "@pnpm/manifest-utils": "1002.0.4",
93
+ "@pnpm/read-project-manifest": "1001.2.5",
94
94
  "@pnpm/semver.peer-range": "1000.0.0",
95
- "@pnpm/types": "1001.3.0",
96
- "strip-comments-strings": "1.2.0",
97
95
  "@pnpm/text.comments-parser": "1000.0.0",
98
- "json5": "2.2.3",
99
- "imurmurhash": "0.1.4",
100
- "signal-exit": "4.1.0",
101
- "write-file-atomic": "5.0.1",
102
- "js-yaml": "4.1.1",
103
- "write-yaml-file": "5.0.0",
96
+ "@pnpm/types": "1001.3.0",
104
97
  "@pnpm/write-project-manifest": "1000.0.16",
105
- "strip-bom": "4.0.0",
106
- "read-yaml-file": "2.1.0",
107
- "@gwhitney/detect-indent": "7.0.1",
98
+ "bole": "5.0.25",
99
+ "error-ex": "1.3.4",
108
100
  "fast-deep-equal": "3.1.3",
109
- "is-windows": "1.0.2",
101
+ "fast-safe-stringify": "2.1.1",
110
102
  "graceful-fs": "4.2.11",
111
- "@pnpm/graceful-fs": "1000.1.0",
103
+ "imurmurhash": "0.1.4",
104
+ "individual": "3.0.0",
112
105
  "is-arrayish": "0.2.1",
113
- "error-ex": "1.3.4",
106
+ "is-windows": "1.0.2",
107
+ "js-tokens": "4.0.0",
108
+ "js-yaml": "4.1.1",
114
109
  "json-parse-even-better-errors": "2.3.1",
110
+ "json5": "2.2.3",
115
111
  "lines-and-columns": "1.2.4",
116
- "picocolors": "1.1.1",
117
- "js-tokens": "4.0.0",
118
- "@babel/helper-validator-identifier": "7.28.5",
119
- "@babel/code-frame": "7.29.0",
120
112
  "parse-json": "5.2.0",
121
- "@pnpm/read-project-manifest": "1001.2.5"
113
+ "picocolors": "1.1.1",
114
+ "read-yaml-file": "2.1.0",
115
+ "semver": "7.7.4",
116
+ "signal-exit": "4.1.0",
117
+ "stream-json": "1.9.1",
118
+ "strip-bom": "4.0.0",
119
+ "strip-comments-strings": "1.2.0",
120
+ "write-file-atomic": "5.0.1",
121
+ "write-yaml-file": "5.0.0"
122
122
  },
123
123
  "scripts": {
124
124
  "build": "pnpm dev:prepare && ROLLDOWN_OPTIONS_VALIDATION=loose nuxi build src && tsdown",
@@ -1 +0,0 @@
1
- import{A as e,B as t,C as n,D as r,Et as i,Gt as a,Ht as o,M as s,S as c,Z as l,b as u,bt as d,h as f,k as p,lt as m,q as h,w as g,x as _}from"./CyUS7GqK.js";import{C as v,w as y}from"./Bc8dubgH.js";import{g as b,v as x}from"./D0PBHtPK.js";import"./B8Pee7C0.js";import{r as S}from"./D04G8HHr.js";import{a as C,s as w}from"./GNBXjCbD.js";import{t as T}from"./Cy7pLEz3.js";import{t as E}from"./DGePBXlZ.js";import{t as D}from"./jJjSdHHs.js";import{t as O}from"./DSjaPvg5.js";import{n as k}from"./D4uTGA7r.js";import{n as A,r as j,t as M}from"./D9y1gK-U.js";import{t as N}from"./pNZCMUGD.js";import{t as P}from"./njczzgS1.js";import{n as ee,r as F,t as I}from"./COVKvZqR.js";import{n as L,t as R}from"./qIAw3Eg02.js";var z={flex:`~ col gap-2`,p4:``},B=[`onClick`],V=s({__name:`FlatList`,props:{session:{},modules:{},disableTooltip:{type:Boolean,default:!1},link:{type:Boolean,default:!0}},emits:[`select`],setup(t,{emit:n}){let r=n;return(n,i)=>{let a=T;return h(),g(`div`,z,[e(M,{items:t.modules,"key-prop":`id`},{default:m(({item:n})=>[_(`div`,{flex:``,pb2:``,onClick:e=>r(`select`,n)},[e(a,{id:n.id,session:t.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:t.link,"disable-tooltip":t.disableTooltip},null,8,[`id`,`session`,`link`,`disable-tooltip`])],8,B)]),_:1},8,[`items`])])}}}),H=Object.assign(V,{__name:`ModulesFlatList`}),U={flex:`~ col gap-2`,p4:``},W={flex:``,pb2:``},G={flex:`~ gap-1 wrap`,"text-xs":``},K={flex:`~ auto text-xs wrap`},q={key:0,flex:`~ items-center`},J={key:0,op20:``},Y={flex:`~ none gap-1 wrap justify-end`},X=s({__name:`DetailedList`,props:{session:{},modules:{}},setup(t){let r=t,i=u(()=>{let e=new Map;for(let t of r.modules){let n=t.buildMetrics?.transforms.filter(e=>e.source_code_size!==e.transformed_code_size).filter(e=>e.transformed_code_size);e.set(t.id,n)}return e});return(r,a)=>{let o=N,s=O,u=T;return h(),g(`div`,U,[e(M,{items:t.modules,"key-prop":`id`},{default:m(({item:r})=>[_(`div`,W,[e(u,{id:r.id,session:t.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},{detail:m(()=>[_(`div`,G,[_(`ul`,K,[(h(!0),g(f,null,l(i.value.get(r.id),(t,a)=>(h(),g(f,{key:a},[t.source_code_size!==t.transformed_code_size&&t.transformed_code_size?(h(),g(`li`,q,[e(o,{name:t.plugin_name,class:`font-mono ws-nowrap op-50`},null,8,[`name`]),a===i.value.get(r.id).length-1?n(``,!0):(h(),g(`span`,J,`|`))])):n(``,!0)],64))),128))]),a[0]||=_(`div`,{flex:`~ auto gap-1`,"of-hidden":``},null,-1),_(`div`,Y,[_(`span`,null,[r.buildMetrics?(h(),c(s,{key:0,metrics:r.buildMetrics},null,8,[`metrics`])):n(``,!0)])])])]),_:2},1032,[`id`,`session`])])]),_:1},8,[`items`])])}}}),Z=Object.assign(X,{__name:`ModulesDetailedList`}),Q=[`d`,`stroke-dasharray`],te=s({__name:`Graph`,props:{modules:{},session:{}},setup(n){let r=n,a=u(()=>r.modules);return k({modules:a,spacing:{width:400,height:55,linkOffset:20,margin:800,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:n,scale:r,spacing:o,tree:s,hierarchy:c,collapsedNodes:l,container:d,modulesMap:f,nodes:p,links:m,nodesMap:h,linksMap:g,width:_,height:v,childToParentMap:y,focusOn:b}=e,x=u(()=>a.value.filter(e=>e.importers.length===0));return(e=!0)=>{_.value=window.innerWidth,v.value=window.innerHeight;let a=new Set,u=c({module:{id:`~root`}},e=>e.module.id===`~root`?(x.value.forEach(e=>{a.add(e),n.value&&y.set(e.id,`~root`)}),x.value.map(e=>({module:e,expanded:!l.has(e.id),hasChildren:!1}))):l.has(e.module.id)?[]:e.module.imports.map(t=>{let r=f.value.get(t.module_id);if(r&&!a.has(r)&&!(y.has(r.id)&&y.get(r.id)!==e.module.id))return a.add(r),n.value&&y.set(r.id,e.module.id),{module:r,import:t,expanded:!l.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));n.value&&=!1,s().nodeSize([i(o.height),i(o.width)+i(o.gap)])(u);let S=u.descendants();for(let e of S)[e.x,e.y]=[e.y-i(o.width),e.x],e.data.module.imports&&(e.data.hasChildren=e.data.module.imports?.filter(t=>y.get(t.module_id)===e.data.module.id).length>0);let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<i(o.margin))for(let e of S)e.x+=Math.abs(C)+i(o.margin);if(w<i(o.margin))for(let e of S)e.y+=Math.abs(w)+i(o.margin);p.value=S,h.clear();for(let e of S)h.set(e.data.module.id,e);let T=u.links().filter(e=>e.source.data.module.id!==`~root`).map(e=>({...e,import:e.source.data.import,id:`${e.source.data.module.id}|${e.target.data.module.id}`}));g.clear();for(let e of T)g.set(e.id,e);m.value=T,t(()=>{_.value=d.value.scrollWidth/r.value+i(o.margin),v.value=d.value.scrollHeight/r.value+i(o.margin);let n=x.value?.[0]?.id;e&&n&&t(()=>{b(n,!1)})})}}}),(t,r)=>{let i=T,s=I;return h(),c(s,{session:n.session,modules:a.value},{default:m(({node:t,nodesRefMap:r})=>[e(i,{id:t.data.module.id,ref:e=>r.set(t.data.module.id,e?.$el),link:!0,session:n.session,minimal:!0,flex:`1`},null,8,[`id`,`session`])]),link:m(({link:e,d:t,linkClass:n})=>[_(`path`,{d:t,class:o(n),"stroke-dasharray":e.import?.kind===`dynamic-import`?`3 6`:void 0,fill:`none`},null,10,Q)]),_:1},8,[`session`,`modules`])}}}),ne=Object.assign(te,{__name:`ModulesGraph`}),re={"of-auto":``,"max-h-screen":``,"pt-45":``,relative:``},ie={flex:`~ col gap-2`,p4:``},ae=s({__name:`Folder`,props:{session:{},modules:{}},setup(t){let r=t,i=u(()=>{if(!r.session.modulesList.length)return{workspace:{children:{},items:[]},nodeModules:{children:{},items:[]},virtual:{children:{},items:[]}};let e=[],t=[],n=[];return r.modules.map(e=>({full:e.id,path:e.path})).forEach(i=>{i.full.startsWith(r.session.meta.cwd)?(i.path.startsWith(`../`)||(i.path=i.full.slice(r.session.meta.cwd.length+1)),e.push(i)):i.full.includes(`node_modules`)?t.push({full:i.full,path:i.full}):i.full.startsWith(`virtual:`)&&n.push(i)}),{workspace:S(e,`Project Root`),nodeModules:S(t,`Node Modules`),virtual:S(n,`Virtual Modules`)}});return(t,r)=>{let a=P;return h(),g(`div`,re,[_(`div`,ie,[Object.keys(i.value.workspace.children).length?(h(),c(a,{key:0,node:i.value.workspace,p:`l3`,icon:`i-catppuccin:folder-dist icon-catppuccin`,"icon-open":`i-catppuccin:folder-dist-open icon-catppuccin`,link:!0},null,8,[`node`])):n(``,!0),Object.keys(i.value.nodeModules.children).length?(h(),g(f,{key:1},[r[0]||=_(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),e(a,{node:i.value.nodeModules,p:`l3`,icon:`i-catppuccin:folder-node icon-catppuccin`,"icon-open":`i-catppuccin:folder-node-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):n(``,!0),Object.keys(i.value.virtual.children).length?(h(),g(f,{key:2},[r[1]||=_(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),e(a,{node:i.value.virtual,p:`l3`,icon:`i-catppuccin:folder-components icon-catppuccin`,"icon-open":`i-catppuccin:folder-components-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):n(``,!0)])])}}}),oe=Object.assign(ae,{__name:`ModulesFolder`}),se={relative:``,"max-h-screen":``,"of-hidden":``},ce={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},le={key:0,h10:``,mr2:``,flex:`~ items-center`},ue={flex:`~ gap-2 items-center`,p2:``,border:`t base`},de=[`onClick`],fe={key:0,"of-auto":``,"h-screen":``,"pt-45":``},pe={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},$={op50:``},me={key:1,"of-auto":``,"h-screen":``,"pt-45":``},he={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},ge={op50:``},_e=s({__name:`index`,props:{session:{}},setup(t){let s=t,S=v(),O=y(),k=d({search:S.query.search||``,selected:S.query.file_types?L(S.query.file_types):null,node_modules:S.query.node_modules?L(S.query.node_modules):null}),M=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-duotone`}];x(k.value,e=>{let t={...S.query,search:e.search||void 0,file_types:e.selected||void 0,node_modules:e.node_modules||void 0};O.replace({query:R(t)})},{debounce:500});let N=u(()=>s.session.modulesList.map(e=>({mod:e,path:E(e.id,s.session.meta.cwd),type:w(e.id)}))),P=u(()=>C.filter(e=>N.value.some(t=>e.match.test(t.mod.id)))),I=u(()=>{let e=N.value;return k.value.selected&&(e=e.filter(e=>{let t=w(e.mod.id);return k.value.selected.includes(t.name)})),k.value.node_modules&&(e=e.filter(e=>e.path.moduleName&&k.value.node_modules.includes(e.path.moduleName))),e.map(e=>({...e.mod,path:e.path.path}))}),{pathSelectorVisible:z,selectPathNodes:B,togglePathSelector:V,normalizedGraph:U}=F({onToggle:e=>{k.value.search=e?!1:``},dataMap:u(()=>new Map(s.session.modulesList.map(e=>[e.id,e]))),list:I,importIdKey:`module_id`}),W=b(()=>I.value,()=>new j(I.value,{includeScore:!0,keys:[`id`],ignoreLocation:!0,threshold:.4})),G=u(()=>k.value.search?W.value.search(k.value.search).map(e=>e.item):I.value);function K(e){S.query.module&&O.replace({query:{...S.query,module:void 0}}),D.value.moduleGraphViewType=e}return(s,u)=>{let d=H,v=T,y=ee,b=A,x=Z,S=ne,C=oe;return h(),g(`div`,se,[_(`div`,ce,[e(b,{modelValue:k.value,"onUpdate:modelValue":u[2]||=e=>k.value=e,rules:P.value},r({"search-end":m(()=>[i(D).moduleGraphViewType===`graph`?(h(),g(`div`,le,[_(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:u[1]||=e=>i(V)(!0)},[...u[3]||=[_(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):n(``,!0)]),default:m(()=>[_(`div`,ue,[u[4]||=_(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(h(),g(f,null,l(M,e=>_(`button`,{key:e.value,"btn-action":``,class:o(i(D).moduleGraphViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>K(e.value)},[_(`div`,{class:o(e.icon)},null,2),p(` `+a(e.label),1)],10,de)),64))])]),_:2},[i(z)?{name:`search`,fn:m(()=>[e(y,{session:t.session,data:G.value,"import-id-key":`module_id`,"search-keys":[`id`],onSelect:i(B),onClose:u[0]||=e=>i(V)(!1)},{list:m(({select:e,data:r})=>[r?.length?(h(),c(d,{key:0,session:t.session,modules:r,"disable-tooltip":``,link:!1,onSelect:e},null,8,[`session`,`modules`,`onSelect`])):n(``,!0)]),item:m(({id:n})=>[e(v,{id:n,session:t.session,block:``,"text-nowrap":``,link:!1,"disable-tooltip":!0},null,8,[`id`,`session`])]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`,`rules`])]),i(D).moduleGraphViewType===`list`?(h(),g(`div`,fe,[e(d,{session:t.session,modules:G.value},null,8,[`session`,`modules`]),_(`div`,pe,[_(`span`,$,a(G.value.length)+` of `+a(t.session.modulesList.length),1)])])):i(D).moduleGraphViewType===`detailed-list`?(h(),g(`div`,me,[e(x,{session:t.session,modules:G.value},null,8,[`session`,`modules`]),_(`div`,he,[_(`span`,ge,a(G.value.length)+` of `+a(t.session.modulesList.length),1)])])):i(D).moduleGraphViewType===`graph`?(h(),c(S,{key:2,session:t.session,modules:i(U)},null,8,[`session`,`modules`])):(h(),c(C,{key:3,session:t.session,modules:G.value},null,8,[`session`,`modules`]))])}}});export{_e as default};
@@ -1 +0,0 @@
1
- import{A as e,C as t,Et as n,Gt as r,Ht as i,M as a,S as o,Wt as s,Z as c,at as l,b as u,bt as d,et as f,h as p,k as m,lt as h,ot as g,q as _,st as v,ut as y,vt as b,w as x,x as S}from"./CyUS7GqK.js";import{C,w}from"./Bc8dubgH.js";import{c as T,g as E,p as D}from"./D0PBHtPK.js";import{r as O}from"./CeUdh6JR.js";import{n as k}from"#entry";import{t as A}from"./B8Pee7C0.js";import{r as j}from"./D04G8HHr.js";import{n as M}from"./CYHE6NHg.js";import{r as N,t as P}from"./jJjSdHHs.js";import{n as ee,r as F,t as I}from"./D9y1gK-U.js";import{a as L,c as R,i as z,n as B,o as V,r as H,t as te}from"./VSGDfpIu.js";import{t as U}from"./njczzgS1.js";import{t as ne}from"./DjwOaWuE.js";var W={flex:`~ gap-1`},G={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},K={op50:``},q=a({__name:`ListItem`,props:{asset:{}},setup(t){return(n,i)=>{let a=M,s=A;return _(),o(s,{to:{query:{asset:t.asset.filename}},"w-full":``,"font-mono":``,border:`~ rounded base`,px2:``,py1:``,"text-sm":``,hover:`bg-active`},{default:h(()=>[S(`div`,W,[e(a,{filename:t.asset.filename},null,8,[`filename`]),S(`span`,G,[m(r(t.asset.filename)+` `,1),S(`span`,K,` (`+r(t.asset.chunk?.name?.replace(/[\[\]]/g,``))+`) `,1)])])]),_:1},8,[`to`])}}}),J=Object.assign(q,{__name:`AssetsListItem`}),Y={p4:``},X={flex:``,pb2:``},Z=a({__name:`List`,props:{assets:{}},setup(t){return(n,r)=>{let i=J;return _(),x(`div`,Y,[e(I,{items:t.assets,"key-prop":`filename`},{default:h(({item:t})=>[S(`div`,X,[e(i,{asset:t},null,8,[`asset`])])]),_:1},8,[`items`])])}}}),re=Object.assign(Z,{__name:`AssetsList`}),Q={flex:`~ gap-2`,p4:``},ie={op50:``},ae=a({__name:`Folder`,props:{assets:{},session:{}},setup(e){let n=e,i=u(()=>{let e=[];return n.assets.forEach(t=>{e.push({full:t.filename,path:t.filename})}),j(e,`Project`)}),a=u(()=>new Map(n.assets.map(e=>[e.filename,e])));return(n,s)=>{let c=U;return _(),x(`div`,Q,[e.assets?.length?(_(),o(c,{key:0,"flex-1":``,node:i.value,icon:`i-catppuccin:folder-dist catppuccin`,"icon-open":`i-catppuccin:folder-dist-open catppuccin`,link:!0,"link-query-key":`asset`},{extra:h(({node:e})=>[S(`span`,ie,` (`+r(a.value.get(e.full)?.chunk?.name?.replace(/[\[\]]/g,``))+`) `,1)]),_:1},8,[`node`])):t(``,!0)])}}}),oe=Object.assign(ae,{__name:`AssetsFolder`}),se={grid:`~ cols-[max-content_1fr] gap-2`,p4:``},ce={flex:`~ col gap-4`},le={key:0,grid:`~ cols-[250px_1fr] gap-1`},ue=[`onClick`],de={key:0,"text-primary":``},fe={key:1},pe=[`onClick`],me=[`title`],he=a({__name:`Sunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(i,{emit:a}){let o=i,u=a,d=l(`el`);return v(()=>d.value?.append(o.graph.el)),(a,o)=>{let l=B,h=N,g=f(`tooltip`);return _(),x(`div`,se,[S(`div`,{ref_key:`el`,ref:d,"w-500px":``},null,512),S(`div`,ce,[e(l,{border:`b base`,py2:``,selected:i.selected,options:i.graph.options,onSelect:o[0]||=e=>u(`select`,e)},null,8,[`selected`,`options`]),i.selected?(_(),x(`div`,le,[(_(!0),x(p,null,c(i.selected.children,a=>(_(),x(p,{key:a.id},[S(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>u(`select`,a)},[a.meta&&a.meta===i.selected?.meta?(_(),x(`span`,de,`(self)`)):(_(),x(`span`,fe,r(a.id),1))],8,ue),S(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>u(`select`,a)},[S(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:s({background:n(V)(i.graph.options.getColor?.(a)||`#000`),width:`${a.size/i.selected.size*100}%`})},null,4),e(h,{"text-xs":``,bytes:a.size,total:i.selected.size,"percent-ratio":3},null,8,[`bytes`,`total`]),a.children.length>0?y((_(),x(`div`,{key:0,title:`${a.children.length} dependencies`,"text-xs":``,"op-fade":``},[m(` (`+r(a.children.length)+`) `,1)],8,me)),[[g,`${a.children.length} dependencies`]]):t(``,!0)],8,pe)],64))),128))])):t(``,!0)])])}}}),ge=Object.assign(he,{__name:`AssetsSunburst`}),_e=a({__name:`Flamegraph`,props:{graph:{}},setup(e){let t=e,n=l(`el`);return v(()=>n.value?.append(t.graph.el)),(e,t)=>(_(),x(`div`,{ref_key:`el`,ref:n},null,512))}}),ve=Object.assign(_e,{__name:`AssetsFlamegraph`}),ye={key:1,relative:``,"max-h-screen":``,"of-hidden":``},be={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},$={flex:`~ gap-2 items-center`,p2:``,border:`t base`},xe=[`onClick`],Se={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt32:``},Ce={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},we={op50:``},Te={key:0,"bg-glass":``,border:`~ base rounded`,p2:``,"text-sm":``,flex:`~ col gap-2`},Ee={flex:`~ gap-1 items-center`},De={flex:`~ gap-1 items-center`},Oe=a({__name:`assets`,props:{session:{}},setup(a){let s=a,l=b(D()),f=d({search:``}),v=w(),y=C(),A=[{label:`List`,value:`list`,icon:`i-ph-list-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Sunburst`,value:`sunburst`,icon:`i-ph-chart-donut-duotone`},{label:`Flamegraph`,value:`flamegraph`,icon:`i-ph-chart-bar-horizontal-duotone`}],j=O(),{state:M,isLoading:I}=T(async()=>await j.value.call(`vite:rolldown:get-assets-list`,{session:s.session.id}),null),V=E(()=>M.value,()=>new F(M.value,{includeScore:!0,keys:[`filename`],ignoreLocation:!0,threshold:.4})),U=u(()=>f.value.search?V.value.search(f.value.search).map(e=>e.item):M.value);function W(e){P.value.assetViewType=e}let{tree:G,chartOptions:K,graph:q,nodeHover:J,nodeSelected:Y,selectedNode:X,selectNode:Z,buildGraph:Q}=te({data:U,nameKey:`filename`,sizeKey:`size`,rootText:`Project`,nodeType:`file`,graphOptions:{onClick(e){e&&(J.value=e),e.meta?.type===`file`&&(X.value=e.meta,v.replace({query:{asset:e.meta.filename}}))},onHover(e){e&&!y.query.asset&&(J.value=e),e===null&&(J.value=void 0)},onLeave(){J.value=void 0},onSelect(e){Y.value=e||G.value.root,X.value=e?.meta}},onUpdate(){switch(P.value.assetViewType){case`sunburst`:q.value=new z(G.value.root,K.value);break;case`treemap`:q.value=new L(G.value.root,{...K.value,selectedPaddingRatio:0});break;default:q.value=new H(G.value.root,K.value)}}});return g(()=>P.value.assetViewType,()=>{Q()}),(s,u)=>{let d=k,g=ee,v=re,y=oe,b=B,C=ge,w=ve,T=N,E=R;return n(I)?(_(),o(d,{key:0})):(_(),x(`div`,ye,[S(`div`,be,[e(g,{modelValue:f.value,"onUpdate:modelValue":u[0]||=e=>f.value=e,rules:[]},{default:h(()=>[S(`div`,$,[u[3]||=S(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(_(),x(p,null,c(A,e=>S(`button`,{key:e.value,"btn-action":``,class:i(n(P).assetViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>W(e.value)},[S(`div`,{class:i(e.icon)},null,2),m(` `+r(e.label),1)],10,xe)),64))])]),_:1},8,[`modelValue`])]),S(`div`,Se,[n(P).assetViewType===`list`?(_(),x(p,{key:0},[U.value?.length?(_(),o(v,{key:0,assets:U.value,session:a.session},null,8,[`assets`,`session`])):t(``,!0),S(`div`,Ce,[S(`span`,we,r(U.value.length)+` of `+r(n(M)?.length||0),1)])],64)):n(P).assetViewType===`folder`?(_(),x(p,{key:1},[U.value?.length?(_(),o(y,{key:0,assets:U.value,session:a.session},null,8,[`assets`,`session`])):t(``,!0)],64)):n(P).assetViewType===`treemap`?(_(),x(p,{key:2},[n(q)?(_(),o(ne,{key:0,graph:n(q),selected:n(Y),onSelect:u[1]||=e=>n(Z)(e)},{default:h(({selected:t,options:n,onSelect:r})=>[e(b,{border:`b base`,py2:``,"min-h-10":``,selected:t,options:n,onSelect:r},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):t(``,!0)],64)):n(P).assetViewType===`sunburst`?(_(),x(p,{key:3},[n(q)?(_(),o(C,{key:0,graph:n(q),selected:n(Y),onSelect:u[2]||=e=>n(Z)(e)},null,8,[`graph`,`selected`])):t(``,!0)],64)):n(P).assetViewType===`flamegraph`?(_(),x(p,{key:4},[n(q)?(_(),o(w,{key:0,graph:n(q)},null,8,[`graph`])):t(``,!0)],64)):t(``,!0)]),e(E,{"hover-x":l.x,"hover-y":l.y},{default:h(()=>[n(J)?.meta?(_(),x(`div`,Te,[S(`div`,Ee,r(n(J).text),1),S(`div`,De,[e(T,{bytes:n(J).size,percent:!1},null,8,[`bytes`])])])):t(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{Oe as default};
@@ -1 +0,0 @@
1
- import{A as e,Et as t,Gt as n,M as r,b as i,bt as a,lt as o,q as s,w as c,x as l}from"./CyUS7GqK.js";import{C as u,w as d}from"./Bc8dubgH.js";import{g as f,v as p}from"./D0PBHtPK.js";import{t as m}from"./B8Pee7C0.js";import{i as h,l as g,o as _}from"./GNBXjCbD.js";import{n as v,r as y,t as b}from"./D9y1gK-U.js";import{t as x}from"./pNZCMUGD.js";import{n as S,t as C}from"./qIAw3Eg02.js";var w={flex:`~ col gap-2`,p4:``},T={flex:``,pb2:``},E={"w-8":``,"text-right":``,"text-xs":``,op50:``},D={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},O=r({__name:`FlatList`,props:{plugins:{}},setup(r){let i=u();return(a,u)=>{let d=x,f=m;return s(),c(`div`,w,[e(b,{items:r.plugins,"key-prop":`plugin_id`},{default:o(({item:r})=>[l(`div`,T,[e(f,{to:{path:t(i).path,query:{plugin:r.plugin_id}},"font-mono":``,border:`~ rounded base`,"w-full":``,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{default:o(()=>[l(`div`,E,` #`+n(r.plugin_id),1),l(`span`,D,[e(d,{name:r.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`])])}}}),k=Object.assign(O,{__name:`PluginsFlatList`}),A={relative:``,"max-h-screen":``,"of-hidden":``},j={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},M={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt32:``},N={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},P={op50:``},F=r({__name:`plugins`,props:{session:{}},setup(t){let r=t,o=u(),m=d(),b=a({search:o.query.search||``,selected:o.query.plugin_types?S(o.query.plugin_types):null}),x=i(()=>[..._.filter(e=>r.session?.meta?.plugins?.some(t=>e.match.test(t.name))),h]),w=i(()=>{let e=r.session?.meta?.plugins;return b.value.selected&&(e=e.filter(e=>{let t=g(e.name);return b.value.selected.includes(t.name)})),e}),T=f(()=>w.value,()=>new y(w.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),E=i(()=>b.value.search?T.value.search(b.value.search).map(e=>e.item):w.value);return p(b.value,e=>{let t={...o.query,search:e.search||void 0,plugin_types:e.selected||void 0};m.replace({query:C(t)})},{debounce:500}),(r,i)=>{let a=v,o=k;return s(),c(`div`,A,[l(`div`,j,[e(a,{modelValue:b.value,"onUpdate:modelValue":i[0]||=e=>b.value=e,rules:x.value},null,8,[`modelValue`,`rules`])]),l(`div`,M,[e(o,{plugins:E.value??[]},null,8,[`plugins`]),l(`div`,N,[l(`span`,P,n(E.value.length)+` of `+n(t.session?.meta?.plugins?.length||0),1)])])])}}});export{F as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CNF2WI0B.js","./CyUS7GqK.js","./Bc8dubgH.js","./CeUdh6JR.js","./D0PBHtPK.js","./B8Pee7C0.js","./ByPScZnZ.js","./D04G8HHr.js","./lwvhLhUg.js","./VSGDfpIu.js","./BrE3R8vW.js","./jJjSdHHs.js","./D4uTGA7r.js","./BUwCbG2W.js","./D9y1gK-U.js","./DataVirtualList.lGV_3v2U.css","./Cy7pLEz3.js","./CYHE6NHg.js","./GNBXjCbD.js","./L1-1zWht.js","./C2GH2ak5.js","./BWso7RtX.js","./DoJ6DaKu.js","./pNZCMUGD.js","./DSjaPvg5.js","./CslYnwdN.js","./DGePBXlZ.js","./DE4LYGEQ.js","./_session_.BcWOaqe_.css","./6dmQ5yi9.js","./DjwOaWuE.js","./njczzgS1.js","./BcmauC2P2.js","./COVKvZqR.js","./5X3skKrQ2.js","./qIAw3Eg02.js","./Bp4eI3o72.js","./BGo3TQDe2.js","./Bqcxb-Bh2.js","./CoGMAm3u.js","./Csgp_tbz2.js","./d4UCo6ai.js","./CNhzLIej.js","./error-404.DCvw7d8G.css","./EJd6K-J0.js","./error-500.DMS_OhD_.css"])))=>i.map(i=>d[i]);
2
- import{$ as e,A as t,B as n,C as r,Et as i,F as a,Gt as o,H as s,Ht as c,I as l,J as u,L as d,M as f,N as p,P as m,Q as h,S as g,St as _,Tt as ee,U as v,Ut as te,V as ne,W as re,Wt as ie,X as ae,Y as oe,_ as se,a as ce,bt as y,d as b,dt as le,f as ue,g as de,h as fe,ht as pe,i as x,j as me,l as he,lt as S,mt as ge,n as _e,ot as ve,q as C,r as w,s as ye,st as be,t as xe,tt as Se,u as Ce,vt as we,w as T,x as E,xt as Te,z as Ee}from"./CyUS7GqK.js";import{A as De,B as Oe,C as ke,D as Ae,E as je,I as Me,N as Ne,O as Pe,P as Fe,R as Ie,T as Le,V as Re,W as ze,_ as D,c as Be,f as Ve,g as He,h as O,j as Ue,k as We,l as Ge,m as Ke,o as k,p as qe,r as Je,s as Ye,t as Xe,u as Ze,v as Qe,w as A,y as $e}from"./Bc8dubgH.js";import{a as et,d as tt,i as nt,n as rt,o as it,r as at,s as ot,t as st}from"./BrE3R8vW.js";import{i as ct,n as lt,t as ut}from"./CeUdh6JR.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var dt=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function ft(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new dt(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var pt=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function mt(e=`GET`){return pt.has(e.toUpperCase())}function ht(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var gt=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),_t=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function vt(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return _t.test(t)?`json`:t===`text/event-stream`?`stream`:gt.has(t)||t.startsWith(`text/`)?`text`:`blob`}function yt(e,t,n,r){let i=bt(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function bt(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function xt(e,t){if(t)if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}var St=new Set([408,409,425,429,500,502,503,504]),Ct=new Set([101,204,205,304]);function wt(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:mt(e.options.method)?0:1;let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):St.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=ft(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:yt(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await xt(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=Ne(s.request,s.options.baseURL)),s.options.query&&(s.request=Fe(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&mt(s.options.method))if(ht(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else (`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`));let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await xt(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!Ct.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||vt(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||Ie;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await xt(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await xt(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>wt({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var Tt=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof globalThis<`u`)return globalThis;throw Error(`unable to locate global object`)})(),Et=Tt.fetch?(...e)=>Tt.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),Dt=Tt.Headers,Ot=Tt.AbortController,kt=wt({fetch:Et,Headers:Dt,AbortController:Ot}),At=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,jt=()=>At().app,Mt=()=>jt().baseURL,Nt=()=>jt().buildAssetsDir,Pt=(...e)=>De(Ft(),Nt(),...e),Ft=(...e)=>{let t=jt(),n=t.cdnURL||t.baseURL;return e.length?De(n,...e):n};globalThis.__buildAssetsURL=Pt,globalThis.__publicAssetsURL=Ft,globalThis.$fetch||(globalThis.$fetch=kt.create({baseURL:Mt()})),`global`in globalThis||(globalThis.global=globalThis);function It(e){let t=Rt(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let e=0;e<n.byteLength;e++)r.setUint8(e,t.charCodeAt(e));return n}var Lt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;function Rt(e){e.length%4==0&&(e=e.replace(/==?$/,``));let t=``,n=0,r=0;for(let i=0;i<e.length;i++)n<<=6,n|=Lt.indexOf(e[i]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}function zt(e,t){return Bt(JSON.parse(e),t)}function Bt(e,t){if(typeof e==`number`)return a(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let n=e,r=Array(n.length),i=null;function a(e,o=!1){if(e===-1)return;if(e===-3)return NaN;if(e===-4)return 1/0;if(e===-5)return-1/0;if(e===-6)return-0;if(o||typeof e!=`number`)throw Error(`Invalid input`);if(e in r)return r[e];let s=n[e];if(!s||typeof s!=`object`)r[e]=s;else if(Array.isArray(s))if(typeof s[0]==`string`){let o=s[0],c=t&&Object.hasOwn(t,o)?t[o]:void 0;if(c){let t=s[1];if(typeof t!=`number`&&(t=n.push(s[1])-1),i??=new Set,i.has(t))throw Error(`Invalid circular reference`);return i.add(t),r[e]=c(a(t)),i.delete(t),r[e]}switch(o){case`Date`:r[e]=new Date(s[1]);break;case`Set`:let t=new Set;r[e]=t;for(let e=1;e<s.length;e+=1)t.add(a(s[e]));break;case`Map`:let i=new Map;r[e]=i;for(let e=1;e<s.length;e+=2)i.set(a(s[e]),a(s[e+1]));break;case`RegExp`:r[e]=new RegExp(s[1],s[2]);break;case`Object`:let c=Object(s[1]);if(Object.hasOwn(c,`__proto__`))throw Error("Cannot parse an object with a `__proto__` property");r[e]=c;break;case`BigInt`:r[e]=BigInt(s[1]);break;case`null`:let l=Object.create(null);r[e]=l;for(let e=1;e<s.length;e+=2){if(s[e]===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");l[s[e]]=a(s[e+1])}break;case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:{if(n[s[1]][0]!==`ArrayBuffer`)throw Error(`Invalid data`);let t=globalThis[o],i=new t(a(s[1]));r[e]=s[2]===void 0?i:i.subarray(s[2],s[3]);break}case`ArrayBuffer`:{let t=s[1];if(typeof t!=`string`)throw Error(`Invalid ArrayBuffer encoding`);r[e]=It(t);break}case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:{let t=o.slice(9);r[e]=Temporal[t].from(s[1]);break}case`URL`:r[e]=new URL(s[1]);break;case`URLSearchParams`:r[e]=new URLSearchParams(s[1]);break;default:throw Error(`Unknown type ${o}`)}}else if(s[0]===-7){let t=s[1];if(!Number.isInteger(t)||t<0)throw Error(`Invalid input`);let n=Array(t);r[e]=n;for(let e=2;e<s.length;e+=2){let r=s[e];if(!Number.isInteger(r)||r<0||r>=t)throw Error(`Invalid input`);n[r]=a(s[e+1])}}else{let t=Array(s.length);r[e]=t;for(let e=0;e<s.length;e+=1){let n=s[e];n!==-2&&(t[e]=a(n))}}else{let t={};r[e]=t;for(let e of Object.keys(s)){if(e===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");let n=s[e];t[e]=a(n)}}return r[e]}return a(0)}var Vt=new Set([`link`,`style`,`script`,`noscript`]),Ht=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),Ut=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),Wt=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),Gt=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),Kt=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),qt=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),Jt=new Set([`theme-color`,`google-site-verification`,`og`,`article`,`book`,`profile`,`twitter`,`author`]),Yt=[`name`,`property`,`http-equiv`],Xt=new Set([`viewport`,`description`,`keywords`,`robots`]);function Zt(e){let t=e.split(`:`);return t.length?Jt.has(t[1]):!1}function Qt(e){let{props:t,tag:n}=e;if(Gt.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 Yt)if(t[r]!==void 0){let i=t[r],a=i&&typeof i==`string`&&i.includes(`:`),o=i&&Xt.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(Ht.has(n)){let t=e.textContent||e.innerHTML;if(t)return`${n}:content:${t}`}}function $t(e){return e._h||e._d||e.textContent||e.innerHTML||`${e.tag}:${Object.entries(e.props).map(([e,t])=>`${e}:${String(t)}`).join(`,`)}`}function en(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=>en(e,t));if(r?.constructor===Object){let e={};for(let n of Object.keys(r))e[n]=en(r[n],t,n);return e}return r}function tn(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 nn(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=Ut.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]=tn(r,i);return}if(Kt.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 rn(e,t){let n=nn({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});return n.key&&Vt.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 an(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=en(e,n),Object.entries(e||{}).forEach(([e,t])=>{if(t!==void 0)for(let n of Array.isArray(t)?t:[t])r.push(rn(e,n))}),r.flat()}var on=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,sn={base:-10,title:10},cn={critical:-8,high:-1,low:2},ln={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},un=/@import/,j=e=>e===``||e===!0;function dn(e,t){if(typeof t.tagPriority==`number`)return t.tagPriority;let n=100,r=cn[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:ln;if(t.tag in sn)n=sn[t.tag];else if(t.tag===`meta`){let e=t.props[`http-equiv`]===`content-security-policy`?`content-security-policy`:t.props.charset?`charset`:t.props.name===`viewport`?`viewport`:null;e&&(n=ln.meta[e])}else if(t.tag===`link`&&t.props.rel)n=i.link[t.props.rel];else if(t.tag===`script`){let e=String(t.props.type);j(t.props.async)?n=i.script.async:t.props.src&&!j(t.props.defer)&&!j(t.props.async)&&e!==`module`&&!e.endsWith(`json`)||t.innerHTML&&!e.endsWith(`json`)?n=i.script.sync:(j(t.props.defer)&&t.props.src&&!j(t.props.async)||e===`module`)&&(n=i.script.defer)}else t.tag===`style`&&(n=t.innerHTML&&un.test(t.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}function fn(e,t){let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function pn(e={}){let t=ue();t.addHooks(e.hooks||{});let n=!e.document,r=new Map,i=new Map,a=new Set,o={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:e=>fn(o,e),push(e,i){let s={...i||{}};delete s.head;let c=s._index??o._entryCount++,l={_i:c,input:e,options:s},u={_poll(e=!1){o.dirty=!0,!e&&a.add(c),t.callHook(`entries:updated`,o)},dispose(){r.delete(c)&&o.invalidate()},patch(e){(!s.mode||s.mode===`server`&&n||s.mode===`client`&&!n)&&(l.input=e,r.set(c,l),u._poll())}};return u.patch(e),u},async resolveTags(){let n={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook(`entries:resolve`,n);a.size;){let n=a.values().next().value;a.delete(n);let i=r.get(n);if(i){let n={tags:an(i.input,e.propResolvers||[]).map(e=>Object.assign(e,i.options)),entry:i};await t.callHook(`entries:normalize`,n),i._tags=n.tags.map((e,t)=>(e._w=dn(o,e),e._p=(i._i<<10)+t,e._d=Qt(e),e._d||(e._h=$t(e)),e))}}let i=!1;n.entries.flatMap(e=>(e._tags||[]).map(e=>({...e,props:{...e.props}}))).sort(on).reduce((e,t)=>{let n=t._d||t._h;if(!e.has(n))return e.set(n,t);let r=e.get(n);if((t?.tagDuplicateStrategy||(qt.has(t.tag)?`merge`:null)||(t.key&&t.key===r.key?`merge`:null))===`merge`){let i={...r.props};Object.entries(t.props).forEach(([e,t])=>i[e]=e===`style`?new Map([...r.props.style||new Map,...t]):e===`class`?new Set([...r.props.class||new Set,...t]):t),e.set(n,{...t,props:i})}else t._p>>10==r._p>>10&&t.tag===`meta`&&Zt(n)?(e.set(n,Object.assign([...Array.isArray(r)?r:[r],t],t)),i=!0):(t._w===r._w?t._p>r._p:t?._w<r?._w)&&e.set(n,t);return e},n.tagMap);let s=n.tagMap.get(`title`),c=n.tagMap.get(`titleTemplate`);if(o._title=s?.textContent,c){let e=c?.textContent;if(o._titleTemplate=e,e){let t=typeof e==`function`?e(s?.textContent):e;typeof t==`string`&&!o.plugins.has(`template-params`)&&(t=t.replace(`%s`,s?.textContent||``)),s?t===null?n.tagMap.delete(`title`):n.tagMap.set(`title`,{...s,textContent:t}):(c.tag=`title`,c.textContent=t)}}n.tags=Array.from(n.tagMap.values()),i&&(n.tags=n.tags.flat().sort(on)),await t.callHook(`tags:beforeResolve`,n),await t.callHook(`tags:resolve`,n),await t.callHook(`tags:afterResolve`,n);let l=[];for(let e of n.tags){let{innerHTML:t,tag:n,props:r}=e;Wt.has(n)&&(Object.keys(r).length===0&&!e.innerHTML&&!e.textContent||n===`meta`&&!r.content&&!r[`http-equiv`]&&!r.charset||(n===`script`&&t&&(String(r.type).endsWith(`json`)?e.innerHTML=(typeof t==`string`?t:JSON.stringify(t)).replace(/</g,`\\u003C`):typeof t==`string`&&(e.innerHTML=t.replace(RegExp(`</${n}`,`g`),`<\\/${n}`)),e._d=Qt(e)),l.push(e)))}return l},invalidate(){for(let e of r.values())a.add(e._i);o.dirty=!0,t.callHook(`entries:updated`,o)}};return(e?.plugins||[]).forEach(e=>fn(o,e)),o.hooks.callHook(`init`,o),e.init?.forEach(e=>e&&o.push(e)),o}var mn=(e,t)=>pe(t)?ee(t):t,hn=`usehead`;function gn(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(hn,e)}}.install}function _n(){if(l()){let e=d(hn);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function vn(e,t={}){let n=t.head||_n();return n.ssr?n.push(e||{},t):yn(n,e,t)}function yn(e,t,n={}){let r=y(!1),i;return be(()=>{let a=r.value?{}:en(t,mn);i?i.patch(a):i=e.push(a,n)}),p()&&(s(()=>{i.dispose()}),v(()=>{r.value=!0}),ne(()=>{r.value=!1})),i}function bn(e){let t=e||x();return t.ssrContext?.head||t.runWithContext(()=>{if(l()){let e=d(`usehead`);if(!e)throw Error(`[nuxt] [unhead] Missing Unhead instance.`);return e}})}function xn(e,t={}){return vn(e,{head:t.head||bn(t.nuxt),...t})}var Sn=(()=>{let e={prerender:!0},t={prerender:!1};return(n,r)=>{let i=[];r.charCodeAt(r.length-1)===47&&(r=r.slice(0,-1)||`/`),(r===`/`||r===`/200.html`||r===`/404.html`)&&i.unshift({data:e});let a=r.split(`/`);return a.length,i.unshift({data:t,params:{_:a.slice(1).join(`/`)}}),i}})(),Cn=e=>Ae({},...Sn(``,e).map(e=>e.data).reverse()),wn=`modulepreload`,Tn=function(e,t){return new URL(e,t).href},En={},M=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Tn(t,n),t in En)return;En[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:wn,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Dn=Cn,On;function kn(){return On=$fetch(Pt(`builds/meta/${ce().app.buildId}.json`),{responseType:`json`}),On.catch(e=>{console.error(`[nuxt] Error fetching app manifest.`,e)}),On}function An(){return On||kn()}function jn(e){let t=typeof e==`string`?e:e.path;try{return Dn(t)}catch(e){return console.error(`[nuxt] Error matching route rules.`,e),{}}}async function Mn(e){return null}var N=null;async function Nn(){if(N)return N;let e=document.getElementById(`__NUXT_DATA__`);if(!e)return{};let t=await Pn(e.textContent||``),n=e.dataset.src?await Mn(e.dataset.src):void 0;return N={...t,...n,...window.__NUXT__},N.config?.public&&(N.config.public=we(N.config.public)),N}async function Pn(e){return await zt(e,x()._payloadRevivers)}function Fn(e,t){x()._payloadRevivers[e]=t}function In(e){try{return JSON.parse(e)}catch{return e}}var Ln=[[`NuxtError`,e=>O(e)],[`EmptyShallowRef`,e=>_(e===`_`?void 0:e===`0n`?BigInt(0):In(e))],[`EmptyRef`,e=>y(e===`_`?void 0:e===`0n`?BigInt(0):In(e))],[`ShallowRef`,e=>_(e)],[`ShallowReactive`,e=>Te(e)],[`Ref`,e=>y(e)],[`Reactive`,e=>we(e)]],Rn=w({name:`nuxt:revive-payload:client`,order:-30,async setup(e){let t,n;for(let[e,t]of Ln)Fn(e,t);Object.assign(e.payload,([t,n]=b(()=>e.runWithContext(Nn)),t=await t,n(),t)),delete window.__NUXT__}},1);async function zn(e,t={}){let n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;let r={shouldRender:!0,tags:[]};if(await e.hooks.callHook(`dom:beforeRender`,r),r.shouldRender)return e._domUpdatePromise||=new Promise(async t=>{let r=new Map,i=new Promise(t=>{e.resolveTags().then(e=>{t(e.map(e=>{let t=r.get(e._d)||0,n={tag:e,id:(t?`${e._d}:${t}`:e._d)||e._h,shouldRender:!0};return e._d&&Zt(e._d)&&r.set(e._d,t+1),n}))})}),a=e._dom;if(!a){a={title:n.title,elMap:new Map().set(`htmlAttrs`,n.documentElement).set(`bodyAttrs`,n.body)};for(let e of[`body`,`head`]){let t=n[e]?.children;for(let e of t){let t=e.tagName.toLowerCase();if(!Ut.has(t))continue;let n=nn({tag:t,props:{}},{innerHTML:e.innerHTML,...e.getAttributeNames().reduce((t,n)=>(t[n]=e.getAttribute(n),t),{})||{}});if(n.key=e.getAttribute(`data-hid`)||void 0,n._d=Qt(n)||$t(n),a.elMap.has(n._d)){let t=1,r=n._d;for(;a.elMap.has(r);)r=`${n._d}:${t++}`;a.elMap.set(r,e)}else a.elMap.set(n._d,e)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function o(e,t,n){let r=`${e}:${t}`;a.sideEffects[r]=n,delete a.pendingSideEffects[r]}function s({id:e,$el:t,tag:r}){let i=r.tag.endsWith(`Attrs`);a.elMap.set(e,t),i||(r.textContent&&r.textContent!==t.textContent&&(t.textContent=r.textContent),r.innerHTML&&r.innerHTML!==t.innerHTML&&(t.innerHTML=r.innerHTML),o(e,`el`,()=>{t?.remove(),a.elMap.delete(e)}));for(let a in r.props){if(!Object.prototype.hasOwnProperty.call(r.props,a))continue;let s=r.props[a];if(a.startsWith(`on`)&&typeof s==`function`){let e=t?.dataset;if(e&&e[`${a}fired`]){let e=a.slice(0,-5);s.call(t,new Event(e.substring(2)))}t.getAttribute(`data-${a}`)!==``&&((r.tag===`bodyAttrs`?n.defaultView:t).addEventListener(a.substring(2),s.bind(t)),t.setAttribute(`data-${a}`,``));continue}let c=`attr:${a}`;if(a===`class`){if(!s)continue;for(let n of s)i&&o(e,`${c}:${n}`,()=>t.classList.remove(n)),!t.classList.contains(n)&&t.classList.add(n)}else if(a===`style`){if(!s)continue;for(let[n,r]of s)o(e,`${c}:${n}`,()=>{t.style.removeProperty(n)}),t.style.setProperty(n,r)}else s!==!1&&s!==null&&(t.getAttribute(a)!==s&&t.setAttribute(a,s===!0?``:String(s)),i&&o(e,c,()=>t.removeAttribute(a)))}}let c=[],l={bodyClose:void 0,bodyOpen:void 0,head:void 0},u=await i;for(let e of u){let{tag:t,shouldRender:r,id:i}=e;if(r){if(t.tag===`title`){n.title=t.textContent,o(`title`,``,()=>n.title=a.title);continue}e.$el=e.$el||a.elMap.get(i),e.$el?s(e):Ut.has(t.tag)&&c.push(e)}}for(let e of c){let t=e.tag.tagPosition||`head`;e.$el=n.createElement(e.tag.tag),s(e),l[t]=l[t]||n.createDocumentFragment(),l[t].appendChild(e.$el)}for(let t of u)await e.hooks.callHook(`dom:renderTag`,t,n,o);l.head&&n.head.appendChild(l.head),l.bodyOpen&&n.body.insertBefore(l.bodyOpen,n.body.firstChild),l.bodyClose&&n.body.appendChild(l.bodyClose);for(let e in a.pendingSideEffects)a.pendingSideEffects[e]();e._dom=a,await e.hooks.callHook(`dom:rendered`,{renders:u}),t()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1}),e._domUpdatePromise}function Bn(e={}){let t=e.domOptions?.render||zn;e.document=e.document||(typeof window<`u`?document:void 0);let n=e.document?.head.querySelector(`script[id="unhead:payload"]`)?.innerHTML||!1;return pn({...e,plugins:[...e.plugins||[],{key:`client`,hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Vn(e,t){let n=0;return()=>{let r=++n;t(()=>{n===r&&e()})}}function Hn(e={}){let t=Bn({domOptions:{render:Vn(()=>zn(t),e=>setTimeout(e,0))},...e});return t.install=gn(t),t}var Un={disableDefaults:!0},Wn=w({name:`nuxt:head`,enforce:`pre`,setup(e){let t=Hn(Un);e.vueApp.use(t);{let n=!0,r=async()=>{n=!1,await zn(t)};t.hooks.hook(`dom:beforeRender`,e=>{e.shouldRender=!n}),e.hooks.hook(`page:start`,()=>{n=!0}),e.hooks.hook(`page:finish`,()=>{e.isHydrating||r()}),e.hooks.hook(`app:error`,r),e.hooks.hook(`app:suspense:resolve`,r)}}}),Gn=/(:\w+)\([^)]+\)/g,Kn=/(:\w+)[?+*]/g,qn=/:\w+/g,Jn=(e,t)=>t.path.replace(Gn,`$1`).replace(Kn,`$1`).replace(qn,t=>e.params[t.slice(1)]?.toString()||``),Yn=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&Jn(e.route,n));return typeof r==`function`?r(e.route):r},Xn=(e,t)=>({default:()=>e?a(de,e===!0?{}:e,t):t});function Zn(e){return Array.isArray(e)?e:[e]}var Qn=[{name:`compare-sessions`,path:`/compare/:sessions()`,component:()=>M(()=>import(`./CNF2WI0B.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)},{name:void 0,path:`/session/:session()`,component:()=>M(()=>import(`./lwvhLhUg.js`),__vite__mapDeps([8,9,10,1,4,11,7,2,3,12,13,14,15,5,16,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url),children:[{name:`session-session-assets`,path:`assets`,component:()=>M(()=>import(`./6dmQ5yi9.js`),__vite__mapDeps([29,9,10,1,4,11,7,2,3,14,15,5,30,17,18,31]),import.meta.url)},{name:`session-session-chunks`,path:`chunks`,component:()=>M(()=>import(`./BcmauC2P2.js`),__vite__mapDeps([32,9,10,1,4,11,7,2,3,12,13,14,15,5,16,17,18,19,20,30,33]),import.meta.url)},{name:`session-session-graph`,path:`graph`,component:()=>M(()=>import(`./5X3skKrQ2.js`),__vite__mapDeps([34,35,1,2,4,12,13,14,15,5,16,17,18,33,11,7,23,31,24,25,26,22]),import.meta.url)},{name:`session-session-packages`,path:`packages`,component:()=>M(()=>import(`./Bp4eI3o72.js`),__vite__mapDeps([36,9,10,1,4,11,7,2,3,14,15,5,16,17,18,30,21,22]),import.meta.url)},{name:`session-session-plugins`,path:`plugins`,component:()=>M(()=>import(`./BGo3TQDe2.js`),__vite__mapDeps([37,35,1,2,4,14,15,5,23,18]),import.meta.url)},{name:`session-session-raw`,path:`raw`,component:()=>M(()=>import(`./Bqcxb-Bh2.js`),__vite__mapDeps([38,1,2,4,3,5,16,17,18,23,39]),import.meta.url)},{name:`session-session`,path:``,component:()=>M(()=>import(`./Csgp_tbz2.js`),__vite__mapDeps([40,1,2,5,16,17,18,4,25,20,27]),import.meta.url)}]},{name:`index`,path:`/`,component:()=>M(()=>import(`./d4UCo6ai.js`),__vite__mapDeps([41,1,2,3,4,5,16,17,18,6,26,22,39]),import.meta.url)}],$n=[$e(async(e,t)=>{let n,r;if(!e.meta?.validate)return;let i=([n,r]=b(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(i===!0)return;let a=O({fatal:!0,status:i&&(i.status||i.statusCode)||404,statusText:i&&(i.statusText||i.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<`u`&&window.history.pushState({},``,t.fullPath),a},1),$e(e=>{let t=jn({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return Pe(n,{acceptRelative:!0})?(window.location.href=n,!1):n}})],er={};function tr(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),Me(n,``)}let s=Me(r,e),c=!n||We(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var nr=w({name:`nuxt:router`,enforce:`pre`,async setup(e){let t,n,r=ce().app.baseURL,i=k.history?.(r)??Ve(r),a=k.routes?([t,n]=b(()=>k.routes(Qn)),t=await t,n(),t)??Qn:Qn,o,s=Ze({...k,scrollBehavior:(e,t,n)=>{if(t===qe){o=n;return}if(k.scrollBehavior){if(s.options.scrollBehavior=k.scrollBehavior,`scrollRestoration`in window.history){let e=s.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return k.scrollBehavior(e,qe,o||n)}},history:i,routes:a});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(s);let c=_(s.currentRoute.value);s.afterEach((e,t)=>{c.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,`previousRoute`,{get:()=>c.value});let l=tr(r,window.location,e.payload.path),u=_(s.currentRoute.value),d=()=>{u.value=s.currentRoute.value};s.afterEach((e,t)=>{e.matched.at(-1)?.components?.default===t.matched.at(-1)?.components?.default&&d()});let f={sync:d};for(let e in u.value)Object.defineProperty(f,e,{get:()=>u.value[e],enumerable:!0});e._route=Te(f),e._middleware||={global:[],named:{}};let p=Qe();s.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(Ke),r&&await e.callHook(`page:loading:end`)});try{[t,n]=b(()=>s.isReady()),await t,n()}catch(r){[t,n]=b(()=>e.runWithContext(()=>D(r))),await t,n()}let m=l===s.currentRoute.value.fullPath?s.currentRoute.value:s.resolve(l),h=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&l!==e.payload.path&&We(s.currentRoute.value.path,e.payload.path);d();let g=e.payload.state._layout;return s.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=we(t.meta),e.isHydrating&&g&&!ge(t.meta.layout)&&(t.meta.layout=g),e._processingMiddleware=!0;{let r=new Set([...$n,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of Zn(t))r.add(e)}let i=jn({path:t.path});if(i.appMiddleware)for(let e in i.appMiddleware)i.appMiddleware[e]?r.add(e):r.delete(e);for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await er[i]?.().then(e=>e.default||e):i;if(!r)throw Error(`Unknown route middleware: '${i}'.`);try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||O({status:404,statusText:`Page Not Found: ${l}`});return await e.runWithContext(()=>D(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return He(i)&&i.fatal&&await e.runWithContext(()=>D(i)),i}catch(t){let n=O(t);return n.fatal&&await e.runWithContext(()=>D(n)),n}}}}),s.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)}),s.afterEach(t=>{if(t.matched.length===0&&!p.value)return e.runWithContext(()=>D(O({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in m&&(m.name=void 0),h){let t=s.resolve(e.payload.path);`name`in t&&(t.name=void 0),await s.replace({...t,force:!0}),e.hooks.hookOnce(`app:suspense:resolve`,async()=>{await s.replace({...m,force:!0})})}else await s.replace({...m,force:!0});s.options.scrollBehavior=k.scrollBehavior}catch(t){await e.runWithContext(()=>D(t))}}),{provide:{router:s}}}},1),rr=w(()=>{let e=A();Je(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),ir=w(e=>{let t;async function n(){let r;try{r=await An()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,he);try{let n=await $fetch(Pt(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}Je(()=>{t=setTimeout(n,he)})});function ar(e={}){let t=e.path||window.location.pathname,n={};try{n=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:x().payload.state}))}catch{}window.location.pathname===t?window.location.reload():window.location.href=t}}var or=w({name:`nuxt:chunk-reload`,setup(e){let t=A(),n=ce(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){ar({path:Ue(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),sr=w({name:`nuxt:global-components`}),cr={},lr=w({name:`nuxt:prefetch`,setup(e){let t=A();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;t&&typeof cr[t]==`function`&&await cr[t]()})}),e.hooks.hook(`link:prefetch`,e=>{if(Pe(e))return;let n=t.resolve(e);if(!n)return;let r=n.meta.layout,i=Zn(n.meta.middleware);i=i.filter(e=>typeof e==`string`);for(let e of i)typeof er[e]==`function`&&er[e]();typeof r==`string`&&r in cr&&Xe(cr[r])})}}),ur=w(()=>{});function P(e){return e.ownerDocument?.defaultView||window}function F(e){return P(e).getComputedStyle(e)}var dr=Math.min,I=Math.max,fr=Math.round;function pr(e){let t=F(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=fr(n)!==i||fr(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function L(e){return gr(e)?(e.nodeName||``).toLowerCase():``}var mr;function hr(){if(mr)return mr;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(mr=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),mr):navigator.userAgent}function R(e){return e instanceof P(e).HTMLElement}function z(e){return e instanceof P(e).Element}function gr(e){return e instanceof P(e).Node}function _r(e){return typeof ShadowRoot>`u`?!1:e instanceof P(e).ShadowRoot||e instanceof ShadowRoot}function vr(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function yr(e){return[`table`,`td`,`th`].includes(L(e))}function br(e){let t=/firefox/i.test(hr()),n=F(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function xr(){return!/^((?!chrome|android).)*safari/i.test(hr())}function Sr(e){return[`html`,`body`,`#document`].includes(L(e))}function Cr(e){return z(e)?e:e.contextElement}var wr={x:1,y:1};function B(e){let t=Cr(e);if(!R(t))return wr;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=pr(t),o=(a?fr(n.width):n.width)/r,s=(a?fr(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function V(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Cr(e),o=wr;t&&(r?z(r)&&(o=B(r)):o=B(e));let s=a?P(a):window,c=!xr()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=P(a),t=r&&z(r)?P(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=B(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=P(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function H(e){return((gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tr(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Er(e){return V(H(e)).left+Tr(e).scrollLeft}function U(e){if(L(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||_r(e)&&e.host||H(e);return _r(t)?t.host:t}function Dr(e){let t=U(e);return Sr(t)?t.ownerDocument.body:R(t)&&vr(t)?t:Dr(t)}function Or(e,t){t===void 0&&(t=[]);let n=Dr(e),r=n===e.ownerDocument?.body,i=P(n);return r?t.concat(i,i.visualViewport||[],vr(n)?n:[]):t.concat(n,Or(n))}function kr(e,t,n){return t===`viewport`?tt(function(e,t){let n=P(e),r=H(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=xr();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):z(t)?tt(function(e,t){let n=V(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=R(e)?B(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n)):tt(function(e){let t=H(e),n=Tr(e),r=e.ownerDocument.body,i=I(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=I(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Er(e),s=-n.scrollTop;return F(r).direction===`rtl`&&(o+=I(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(H(e)))}function Ar(e){return R(e)&&F(e).position!==`fixed`?e.offsetParent:null}function jr(e){let t=P(e),n=Ar(e);for(;n&&yr(n)&&F(n).position===`static`;)n=Ar(n);return n&&(L(n)===`html`||L(n)===`body`&&F(n).position===`static`&&!br(n))?t:n||function(e){let t=U(e);for(;R(t)&&!Sr(t);){if(br(t))return t;t=U(t)}return null}(e)||t}function Mr(e,t,n){let r=R(t),i=H(t),a=V(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`)if((L(t)!==`body`||vr(i))&&(o=Tr(t)),R(t)){let e=V(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Er(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var Nr={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=Or(e).filter((e=>z(e)&&L(e)!==`body`)),i=null,a=F(e).position===`fixed`,o=a?U(e):e;for(;z(o)&&!Sr(o);){let e=F(o),t=br(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=U(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=kr(t,n,i);return e.top=I(r.top,e.top),e.right=dr(r.right,e.right),e.bottom=dr(r.bottom,e.bottom),e.left=I(r.left,e.left),e}),kr(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=R(n),a=H(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((L(n)!==`body`||vr(a))&&(o=Tr(n)),R(n))){let e=V(n);s=B(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:z,getDimensions:function(e){return R(e)?pr(e):e.getBoundingClientRect()},getOffsetParent:jr,getDocumentElement:H,getScale:B,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||jr,a=this.getDimensions;return{reference:Mr(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>F(e).direction===`rtl`},Pr=(e,t,n)=>{let r=new Map,i={platform:Nr,...n},a={...i.platform,_c:r};return at(e,t,{...i,platform:a})};function Fr(e,t){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]==`object`&&e[n]?Fr(e[n],t[n]):e[n]=t[n])}var W={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function G(e,t){let n=W.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=W.themes[n.$extend]||{}:(n=null,r=W[t]):n=null;while(n);return r}function Ir(e){let t=[e],n=W.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=W.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function Lr(e){let t=[e],n=W.themes[e]||{};do n.$extend?(t.push(n.$extend),n=W.themes[n.$extend]||{}):n=null;while(n);return t}var K=!1;if(typeof window<`u`){K=!1;try{let e=Object.defineProperty({},`passive`,{get(){K=!0}});window.addEventListener(`test`,null,e)}catch{}}var Rr=!1;typeof window<`u`&&typeof navigator<`u`&&(Rr=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var zr=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Br={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},Vr={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function Hr(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Ur(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var q=[],J=null,Wr={};function Gr(e){let t=Wr[e];return t||=Wr[e]=[],t}var Kr=function(){};typeof window<`u`&&(Kr=window.Element);function Y(e){return function(t){return G(t.theme,e)}}var qr=`__floating-vue__popper`,Jr=()=>f({name:`VPopper`,provide(){return{[qr]:{parentPopper:this}}},inject:{[qr]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Y(`disabled`)},positioningDisabled:{type:Boolean,default:Y(`positioningDisabled`)},placement:{type:String,default:Y(`placement`),validator:e=>zr.includes(e)},delay:{type:[String,Number,Object],default:Y(`delay`)},distance:{type:[Number,String],default:Y(`distance`)},skidding:{type:[Number,String],default:Y(`skidding`)},triggers:{type:Array,default:Y(`triggers`)},showTriggers:{type:[Array,Function],default:Y(`showTriggers`)},hideTriggers:{type:[Array,Function],default:Y(`hideTriggers`)},popperTriggers:{type:Array,default:Y(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:Y(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:Y(`popperHideTriggers`)},container:{type:[String,Object,Kr,Boolean],default:Y(`container`)},boundary:{type:[String,Kr],default:Y(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:Y(`strategy`)},autoHide:{type:[Boolean,Function],default:Y(`autoHide`)},handleResize:{type:Boolean,default:Y(`handleResize`)},instantMove:{type:Boolean,default:Y(`instantMove`)},eagerMount:{type:Boolean,default:Y(`eagerMount`)},popperClass:{type:[String,Array,Object],default:Y(`popperClass`)},computeTransformOrigin:{type:Boolean,default:Y(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:Y(`autoMinSize`)},autoSize:{type:[Boolean,String],default:Y(`autoSize`)},autoMaxSize:{type:Boolean,default:Y(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:Y(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:Y(`preventOverflow`)},overflowPadding:{type:[Number,String],default:Y(`overflowPadding`)},arrowPadding:{type:[Number,String],default:Y(`arrowPadding`)},arrowOverflow:{type:Boolean,default:Y(`arrowOverflow`)},flip:{type:Boolean,default:Y(`flip`)},shift:{type:Boolean,default:Y(`shift`)},shiftCrossAxis:{type:Boolean,default:Y(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:Y(`noAutoFocus`)},disposeTimeout:{type:Number,default:Y(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[qr]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(et({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(rt({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(it({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(nt({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(st({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let a,o;return n.startsWith(`top`)||n.startsWith(`bottom`)?a=e.reference.width:o=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=a==null?null:`${a}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=o==null?null:`${o}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(ot({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await Pr(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),J&&this.instantMove&&J.instantMove&&J!==this.parentPopper){J.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(J=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Ur(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Or(this.$_referenceNode),...Or(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n<q.length;n++)t=q[n],t.showGroup!==e&&(t.hide(),t.$emit(`close-group`))}q.push(this),document.body.classList.add(`v-popper--some-open`);for(let e of Lr(this.theme))Gr(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit(`apply-show`),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ur(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Hr(q,this),q.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of Lr(this.theme)){let t=Gr(e);Hr(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}J===this&&(J=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ur(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: `+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,Br,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Br,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,Vr,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Vr,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,K?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(Q>=e.left&&Q<=e.right&&$>=e.top&&$<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=Q-X,n=$-Z,r=e.left+e.width/2-X+(e.top+e.height/2)-Z+e.width+e.height,i=X+t*r,a=Z+n*r;return ni(X,Z,i,a,e.left,e.top,e.left,e.bottom)||ni(X,Z,i,a,e.left,e.top,e.right,e.top)||ni(X,Z,i,a,e.right,e.top,e.right,e.bottom)||ni(X,Z,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(Rr){let e=K?{passive:!0,capture:!0}:!0;document.addEventListener(`touchstart`,e=>Yr(e,!0),e),document.addEventListener(`touchend`,e=>Xr(e,!0),e)}else window.addEventListener(`mousedown`,e=>Yr(e,!1),!0),window.addEventListener(`click`,e=>Xr(e,!1),!0);window.addEventListener(`resize`,ei)}function Yr(e,t){if(W.autoHideOnMousedown)Zr(e,t);else for(let t=0;t<q.length;t++){let n=q[t];try{n.mouseDownContains=n.popperNode().contains(e.target)}catch{}}}function Xr(e,t){W.autoHideOnMousedown||Zr(e,t)}function Zr(e,t){let n={};for(let r=q.length-1;r>=0;r--){let i=q[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&Qr(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let a=i.parentPopper;for(;a&&Qr(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function Qr(e,t,n){return n.closeAllPopover||n.closePopover&&t||$r(e,n)&&!t}function $r(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function ei(){for(let e=0;e<q.length;e++)q[e].$_computePosition()}function ti(){for(let e=0;e<q.length;e++)q[e].hide()}var X=0,Z=0,Q=0,$=0;typeof window<`u`&&window.addEventListener(`mousemove`,e=>{X=Q,Z=$,Q=e.clientX,$=e.clientY},K?{passive:!0}:void 0);function ni(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var ri={extends:Jr()},ii=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function ai(e,t,n,r,i,a){return C(),T(`div`,{ref:`reference`,class:c([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[h(e.$slots,`default`,te(m(e.slotData)))],2)}var oi=ii(ri,[[`render`,ai]]);function si(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var ci;function li(){li.init||(li.init=!0,ci=si()!==-1)}var ui={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){li(),n(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,ci&&this.$el.appendChild(e),e.data=`about:blank`,ci||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!ci&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},di=le(`data-v-b329ee4c`);ae(`data-v-b329ee4c`);var fi={class:`resize-observer`,tabindex:`-1`};u(),ui.render=di((e,t,n,r,i,a)=>(C(),g(`div`,fi))),ui.__scopeId=`data-v-b329ee4c`,ui.__file=`src/components/ResizeObserver.vue`;var pi=(e=`theme`)=>({computed:{themeClass(){return Ir(this[e])}}}),mi=f({name:`VPopperContent`,components:{ResizeObserver:ui},mixins:[pi()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),hi=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],gi={ref:`inner`,class:`v-popper__inner`},_i=[E(`div`,{class:`v-popper__arrow-outer`},null,-1),E(`div`,{class:`v-popper__arrow-inner`},null,-1)];function vi(t,n,i,a,o,s){let l=e(`ResizeObserver`);return C(),T(`div`,{id:t.popperId,ref:`popover`,class:c([`v-popper__popper`,[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:ie(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?`false`:`true`,tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:n[2]||=ze(e=>t.autoHide&&t.$emit(`hide`),[`esc`])},[E(`div`,{class:`v-popper__backdrop`,onClick:n[0]||=e=>t.autoHide&&t.$emit(`hide`)}),E(`div`,{class:`v-popper__wrapper`,style:ie(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[E(`div`,gi,[t.mounted?(C(),T(fe,{key:0},[E(`div`,null,[h(t.$slots,`default`)]),t.handleResize?(C(),g(l,{key:0,onNotify:n[1]||=e=>t.$emit(`resize`,e)})):r(``,!0)],64)):r(``,!0)],512),E(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:ie(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},_i,4)],4)],46,hi)}var yi=ii(mi,[[`render`,vi]]),bi={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},xi=function(){};typeof window<`u`&&(xi=window.Element);var Si=f({name:`VPopperWrapper`,components:{Popper:oi,PopperContent:yi},mixins:[bi,pi(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,xi,Boolean],default:void 0},boundary:{type:[String,xi],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Ci(n,r,i,a,o,s){let c=e(`PopperContent`),l=e(`Popper`);return C(),g(l,Ee({ref:`popper`},n.$props,{theme:n.finalTheme,"target-nodes":n.getTargetNodes,"popper-node":()=>n.$refs.popperContent.$el,class:[n.themeClass],onShow:r[0]||=()=>n.$emit(`show`),onHide:r[1]||=()=>n.$emit(`hide`),"onUpdate:shown":r[2]||=e=>n.$emit(`update:shown`,e),onApplyShow:r[3]||=()=>n.$emit(`apply-show`),onApplyHide:r[4]||=()=>n.$emit(`apply-hide`),onCloseGroup:r[5]||=()=>n.$emit(`close-group`),onCloseDirective:r[6]||=()=>n.$emit(`close-directive`),onAutoHide:r[7]||=()=>n.$emit(`auto-hide`),onResize:r[8]||=()=>n.$emit(`resize`)}),{default:S(({popperId:e,isShown:r,shouldMountContent:i,skipTransition:a,autoHide:o,show:s,hide:l,handleResize:u,onResize:d,classes:f,result:p})=>[h(n.$slots,`default`,{shown:r,show:s,hide:l}),t(c,{ref:`popperContent`,"popper-id":e,theme:n.finalTheme,shown:r,mounted:i,"skip-transition":a,"auto-hide":o,"handle-resize":u,classes:f,result:p,onHide:l,onResize:d},{default:S(()=>[h(n.$slots,`popper`,{shown:r,hide:l})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}var wi=ii(Si,[[`render`,Ci]]),Ti={...wi,name:`VDropdown`,vPopperTheme:`dropdown`},Ei={...wi,name:`VMenu`,vPopperTheme:`menu`},Di={...wi,name:`VTooltip`,vPopperTheme:`tooltip`},Oi=f({name:`VTooltipDirective`,components:{Popper:Jr(),PopperContent:yi},mixins:[bi],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>G(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>G(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),ki=[`innerHTML`],Ai=[`textContent`];function ji(n,r,i,a,s,l){let u=e(`PopperContent`),d=e(`Popper`);return C(),g(d,Ee({ref:`popper`},n.$attrs,{theme:n.theme,"target-nodes":n.targetNodes,"popper-node":()=>n.$refs.popperContent.$el,onApplyShow:n.onShow,onApplyHide:n.onHide}),{default:S(({popperId:e,isShown:r,shouldMountContent:i,skipTransition:a,autoHide:s,hide:l,handleResize:d,onResize:f,classes:p,result:m})=>[t(u,{ref:`popperContent`,class:c({"v-popper--tooltip-loading":n.loading}),"popper-id":e,theme:n.theme,shown:r,mounted:i,"skip-transition":a,"auto-hide":s,"handle-resize":d,classes:p,result:m,onHide:l,onResize:f},{default:S(()=>[n.html?(C(),T(`div`,{key:0,innerHTML:n.finalContent},null,8,ki)):(C(),T(`div`,{key:1,textContent:o(n.finalContent)},null,8,Ai))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}var Mi=ii(Oi,[[`render`,ji]]),Ni=`v-popper--has-tooltip`;function Pi(e,t){let n=e.placement;if(!n&&t)for(let e of zr)t[e]&&(n=e);return n||=G(e.theme||`tooltip`,`placement`),n}function Fi(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=Pi(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var Ii,Li,Ri=0;function zi(){if(Ii)return;Li=y([]),Ii=Oe({name:`VTooltipDirectiveApp`,setup(){return{directives:Li}},render(){return this.directives.map(e=>a(Mi,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),Ii.mount(e)}function Bi(e,t,n){zi();let r=y(Fi(e,t,n)),i=y(!1),a={id:Ri++,options:r,shown:i};return Li.value.push(a),e.classList&&e.classList.add(Ni),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function Vi(e){if(e.$_popper){let t=Li.value.indexOf(e.$_popper.item);t!==-1&&Li.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Ni)}function Hi(e,{value:t,modifiers:n}){let r=Fi(e,t,n);if(!r.content||G(r.theme||`tooltip`,`disabled`))Vi(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=Bi(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var Ui={beforeMount:Hi,updated:Hi,beforeUnmount(e){Vi(e)}};function Wi(e){e.addEventListener(`mousedown`,Ki),e.addEventListener(`click`,Ki),e.addEventListener(`touchstart`,qi,K?{passive:!0}:!1)}function Gi(e){e.removeEventListener(`mousedown`,Ki),e.removeEventListener(`click`,Ki),e.removeEventListener(`touchstart`,qi),e.removeEventListener(`touchend`,Ji),e.removeEventListener(`touchcancel`,Yi)}function Ki(e){let t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function qi(e){if(e.changedTouches.length===1){let t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener(`touchend`,Ji),t.addEventListener(`touchcancel`,Yi)}}function Ji(e){let t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){let n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Yi(e){let t=e.currentTarget;t.$_vclosepopover_touch=!1}var Xi={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>`u`||t)&&Wi(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>`u`||t?Wi(e):Gi(e))},beforeUnmount(e){Gi(e)}},Zi=Ti,Qi=Ei,$i=Di;function ea(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Fr(W,t),e.directive(`tooltip`,Ui),e.directive(`close-popper`,Xi),e.component(`VTooltip`,Di),e.component(`VDropdown`,Ti),e.component(`VMenu`,Ei))}var ta={version:`5.2.2`,install:ea,options:W},na=[Rn,Wn,nr,rr,ir,or,sr,lr,ur,w(e=>{e.vueApp.use(ta,{overflowPadding:20})})],ra={p10:``,"h-full":``,flex:`~ col`,"items-center":``,"justify-center":``},ia={flex:`~ gap-2`,"animate-pulse":``,"mt--4":``,"items-center":``,"justify-center":``},aa=f({__name:`Loading`,props:{text:{}},setup(e){let n=e;return(e,r)=>(C(),T(`div`,ra,[t(ct),E(`div`,ia,[r[0]||=E(`div`,{"i-svg-spinners-8-dots-rotate":``},null,-1),E(`span`,null,o(n.text??`Loading...`),1)])]))}}),oa=Object.assign(aa,{__name:`VisualLoading`}),sa=(e=`RouteProvider`)=>f({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return oe(je,Te(r)),()=>e.vnode?a(e.vnode,{ref:e.vnodeRef}):e.vnode}}),ca=sa(),la=new WeakMap,ua=f({name:`NuxtPage`,inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:r,expose:i}){let o=x(),c=y(),l=d(je,null),u;i({pageRef:c});let f=d(Le,null),p,m=o.deferHydration(),h=!1,g=0;if(o.isHydrating){let e=o.hooks.hookOnce(`app:error`,m);A().beforeEach(e)}e.pageKey&&ve(()=>e.pageKey,(e,t)=>{e!==t&&o.callHook(`page:loading:start`)});let _=!1;{let e=A().beforeResolve(()=>{_=!1});s(()=>{e(),m()})}return()=>a(Ge,{name:e.name,route:e.route,...t},{default:t=>{let i=da(l,t.route,t.Component),s=l&&l.matched.length===t.route.matched.length;if(!t.Component){if(p&&!s)return p;m();return}if(p&&f&&!f.isCurrent(t.route))return p;if(i&&l&&(!f||f?.isCurrent(l)))return s||p?p:null;let d=Yn(t,e.pageKey),ee=fa(l,t.route,t.Component);!o.isHydrating&&u===d&&!ee&&n(()=>{_||(_=!0,o.callHook(`page:loading:end`))}),h&&u!==d&&g++,u=d;let v=!!(e.transition??t.route.meta.pageTransition??!1),te=v&&Ye([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){o[`~transitionFinish`]?.(),delete o[`~transitionFinish`],delete o[`~transitionPromise`],o.callHook(`page:transition:finish`,t.Component)}}]),ne=e.keepalive??t.route.meta.keepalive??!1;return p=Be(v&&te,Xn(ne,a(se,{key:g,suspensible:!0,onPending:()=>{h=!0,v&&!o[`~transitionPromise`]&&(o[`~transitionPromise`]=new Promise(e=>{o[`~transitionFinish`]=e})),o.callHook(`page:start`,t.Component)},onResolve:async()=>{h=!1;try{await n(),o._route.sync?.(),await o.callHook(`page:finish`,t.Component),!_&&!ee&&(_=!0,await o.callHook(`page:loading:end`))}finally{m()}}},{default:()=>{let e={key:d||void 0,vnode:r.default?pa(r.default,t):t.Component,route:t.route,renderKey:d||void 0,trackRootNodes:v,vnodeRef:c};if(!ne)return a(ca,e);let n=t.Component.type,i=n,o=la.get(i);return o||(o=sa(n.name||n.__name),la.set(i,o)),a(o,e)}}))).default(),p}})}});function da(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((t,n)=>t.components?.default!==e.matched[n]?.components?.default)||n&&Yn({route:t,Component:n})!==Yn({route:e,Component:n})}function fa(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function pa(e,t){let n=e(t);return n.length===1?a(n[0]):a(fe,void 0,n)}var ma={key:0,"text-red":``},ha={key:2,"h-vh":``},ga=f({__name:`app`,setup(e){return xn({title:`Rolldown DevTools`}),ut(),(e,n)=>{let r=oa,a=ua;return i(lt).error?(C(),T(`div`,ma,o(i(lt).error),1)):i(lt).connected?(C(),T(`div`,ha,[t(a)])):(C(),g(r,{key:1,text:`Connecting...`}))}}}),_a={__name:`nuxt-error-page`,props:{error:Object},setup(e){let t=e.error,n=Number(t.statusCode||500),r=n===404,a=t.statusMessage??(r?`Page Not Found`:`Internal Server Error`),o=t.message||t.toString(),s=me(()=>M(()=>import(`./CNhzLIej.js`),__vite__mapDeps([42,13,1,2,5,43]),import.meta.url)),c=me(()=>M(()=>import(`./EJd6K-J0.js`),__vite__mapDeps([44,13,1,45]),import.meta.url)),l=r?s:c;return(e,t)=>(C(),g(i(l),te(m({status:i(n),statusText:i(a),statusCode:i(n),statusMessage:i(a),description:i(o),stack:i(void 0)})),null,16))}},va={key:0},ya={__name:`nuxt-root`,setup(e){let t=()=>null,n=x(),r=n.deferHydration();if(n.isHydrating){let e=n.hooks.hookOnce(`app:error`,r);A().beforeEach(e)}window.location.pathname,oe(je,ke()),n.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`);let a=Qe(),o=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;return re((e,t,r)=>{if(n.hooks.callHook(`vue:error`,e,t,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),o.test(navigator.userAgent))return n.hooks.callHook(`app:error`,e),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,e),!1;if(He(e)&&(e.fatal||e.unhandled))return n.runWithContext(()=>D(e)),!1}),(e,n)=>(C(),g(se,{onResolve:i(r)},{default:S(()=>[i(!1)?(C(),T(`div`,va)):i(a)?(C(),g(i(_a),{key:1,error:i(a)},null,8,[`error`])):i(!1)?(C(),g(i(t),{key:2,context:i(!1)},null,8,[`context`])):i(!1)?(C(),g(Se(i(!1)),{key:3})):(C(),g(i(ga),{key:4}))]),_:1},8,[`onResolve`]))}},ba;{let e;ba=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),r=t?Re(ya):Oe(ya),i=_e({vueApp:r});async function a(e){await i.callHook(`app:error`,e),i.payload.error||=O(e)}r.config.errorHandler=a,i.hook(`app:suspense:resolve`,()=>{r.config.errorHandler===a&&(r.config.errorHandler=void 0)}),!t&&ye.id&&i.hook(`app:suspense:resolve`,()=>{document.getElementById(ye.id)?.remove()});try{await xe(i,na)}catch(e){a(e)}try{await i.hooks.callHook(`app:created`,r),await i.hooks.callHook(`app:beforeMount`,r),r.mount(Ce),await i.hooks.callHook(`app:mounted`,r),await n()}catch(e){a(e)}return r},e=ba().catch(e=>{throw console.error(`Error while mounting app:`,e),e})}export{$i as a,xn as c,ti as i,oa as n,Zi as o,Qi as r,M as s,ua as t};
@@ -1 +0,0 @@
1
- import{A as e,B as t,C as n,D as r,Et as i,Gt as a,Ht as o,M as s,S as c,Wt as l,Z as u,at as d,b as f,bt as p,et as m,h,k as g,lt as _,ot as v,q as y,st as b,ut as x,vt as S,w as C,x as w}from"./CyUS7GqK.js";import{C as T}from"./Bc8dubgH.js";import{c as E,g as D,p as O}from"./D0PBHtPK.js";import{r as k}from"./CeUdh6JR.js";import{n as ee}from"#entry";import{t as A}from"./B8Pee7C0.js";import{r as j}from"./Cy7pLEz3.js";import{r as M,t as N}from"./jJjSdHHs.js";import{i as P,t as te}from"./L1-1zWht.js";import{n as F}from"./D4uTGA7r.js";import{n as ne,r as re,t as I}from"./D9y1gK-U.js";import{a as ie,c as ae,i as oe,n as L,o as R,r as se,t as ce}from"./VSGDfpIu.js";import{t as le}from"./DjwOaWuE.js";import{n as ue,r as de,t as z}from"./COVKvZqR.js";var B=[`onClick`],V=s({__name:`FlatList`,props:{chunks:{},session:{},link:{type:Boolean,default:!0},basic:{type:Boolean,default:!1}},emits:[`select`],setup(t,{emit:r}){let i=r;return(r,a)=>{let o=P;return y(),c(I,{items:t.chunks,"key-prop":`chunk_id`},{default:_(({item:r})=>[w(`div`,{flex:``,pb2:``,onClick:e=>i(`select`,r)},[e(o,{chunk:r,basic:t.basic,link:t.link,"w-full":``,"font-mono":``,border:`~ rounded base`,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{"left-after":_(()=>[r.is_initial?(y(),c(j,{key:0,text:`initial`})):n(``,!0)]),_:2},1032,[`chunk`,`basic`,`link`])],8,B)]),_:1},8,[`items`])}}}),fe=Object.assign(V,{__name:`ChunksFlatList`}),H={op50:``,"font-mono":``,w12:``},U=[`title`],W={flex:`~ gap-1 items-center`},G=s({__name:`Graph`,props:{session:{},chunks:{},entryId:{default:``}},setup(r){let o=r,s=f(()=>o.chunks),l=T();return F({modules:s,spacing:{width:450,height:55,linkOffset:15,margin:120,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:n,scale:r,spacing:a,tree:c,hierarchy:l,collapsedNodes:u,container:d,modulesMap:f,nodes:p,links:m,nodesMap:h,linksMap:g,width:_,height:v,childToParentMap:y}=e;return()=>{_.value=window.innerWidth,v.value=window.innerHeight;let e=s.value.filter(e=>o.entryId?e.id===o.entryId:e.reason===`entry`),b=new Set,x=l({module:{id:`~root`}},t=>`${t.module?.id}`==`~root`?(e.forEach(e=>{b.add(e),n.value&&y.set(e.id,`~root`)}),e.map(e=>({module:e,expanded:!u.has(e.id),hasChildren:!1}))):u.has(`${t.module?.id}`)?[]:t.module.imports?.map(e=>{let r=f.value.get(`${e.chunk_id}`);if(!(!r||b.has(r)))return n.value&&y.set(r.id,t.module.id),b.add(r),{module:r,expanded:!u.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));n.value&&=!1,c().nodeSize([i(a.height),i(a.width)+i(a.gap)])(x);let S=x.descendants();for(let e of S)[e.x,e.y]=[e.y-i(a.width),e.x];let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<i(a.margin))for(let e of S)e.x+=Math.abs(C)+i(a.margin);if(w<i(a.margin))for(let e of S)e.y+=Math.abs(w)+i(a.margin);p.value=S,h.clear();for(let e of S)h.set(`${e.data.module.id}`,e);let T=x.links().filter(e=>`${e.source.data.module.id}`!=`~root`).map(e=>({...e,id:`${e.source.data.module.id}|${e.target.data.module.id}`})),E=s.value.flatMap(e=>e.imports.filter(t=>!T.some(n=>n.id===`${e.chunk_id}|${t.chunk_id}`)).map(t=>({source:h.get(`${e.chunk_id}`),target:h.get(`${t.chunk_id}`),id:`${e.chunk_id}|${t.chunk_id}`}))),D=[...T,...E];g.clear();for(let e of D)g.set(e.id,e);m.value=D,t(()=>{_.value=d.value.scrollWidth/r.value+i(a.margin),v.value=d.value.scrollHeight/r.value+i(a.margin)})}}}),(t,o)=>{let u=A,d=z;return y(),c(d,{session:r.session,modules:s.value,"expand-controls":!1},{default:_(({node:t})=>[e(u,{class:`flex items-center`,to:{path:i(l).path,query:{chunk:t.data.module.chunk_id}}},{default:_(()=>[w(`span`,H,`#`+a(t.data.module.id),1),w(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${t.data.module.id}`},[w(`div`,null,a(t.data.module.name||`[unnamed]`),1),e(j,{text:t.data.module.reason},null,8,[`text`]),t.data.module.is_initial?(y(),c(j,{key:0,text:`initial`})):n(``,!0)],8,U),o[1]||=w(`div`,{"flex-auto":``},null,-1),w(`div`,W,[o[0]||=w(`div`,{"i-ph-package-duotone":``},null,-1),g(` `+a(t.data.module.modules.length),1)])]),_:2},1032,[`to`])]),_:1},8,[`session`,`modules`])}}}),pe=Object.assign(G,{__name:`ChunksGraph`}),K={grid:`~ cols-[max-content_1fr] gap-2`,p4:``},q={flex:`~ col gap-4`},J={key:0,grid:`~ cols-[250px_1fr] gap-1`},Y=[`onClick`],X={key:0,"text-primary":``},Z={key:1},Q=[`onClick`],$=[`title`],me=s({__name:`Sunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(t,{emit:r}){let o=t,s=r,c=d(`el`);return b(()=>c.value?.append(o.graph.el)),(r,o)=>{let d=L,f=M,p=m(`tooltip`);return y(),C(`div`,K,[w(`div`,{ref_key:`el`,ref:c,"w-500px":``},null,512),w(`div`,q,[e(d,{border:`b base`,py2:``,selected:t.selected,options:t.graph.options,onSelect:o[0]||=e=>s(`select`,e)},null,8,[`selected`,`options`]),t.selected?(y(),C(`div`,J,[(y(!0),C(h,null,u(t.selected.children,r=>(y(),C(h,{key:r.id},[w(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>s(`select`,r)},[r.meta&&r.meta===t.selected?.meta?(y(),C(`span`,X,`(self)`)):(y(),C(`span`,Z,a(r.meta?.name||r.id),1))],8,Y),w(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>s(`select`,r)},[w(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:l({background:i(R)(t.graph.options.getColor?.(r)||`#000`),width:`${r.size/t.selected.size*100}%`})},null,4),e(f,{"text-xs":``,bytes:r.size,total:t.selected.size,"percent-ratio":3},null,8,[`bytes`,`total`]),r.children.length>0?x((y(),C(`div`,{key:0,title:`${r.children.length} modules`,"text-xs":``,"op-fade":``},[g(` (`+a(r.children.length)+`) `,1)],8,$)),[[p,`${r.children.length} modules`]]):n(``,!0)],8,Q)],64))),128))])):n(``,!0)])])}}}),he=Object.assign(me,{__name:`ChunksSunburst`}),ge=s({__name:`Flamegraph`,props:{graph:{}},setup(e){let t=e,n=d(`el`);return b(()=>n.value?.append(t.graph.el)),(e,t)=>(y(),C(`div`,{ref_key:`el`,ref:n},null,512))}}),_e=Object.assign(ge,{__name:`ChunksFlamegraph`}),ve={key:1,relative:``,"max-h-screen":``,"of-hidden":``},ye={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},be={key:0,h10:``,mr2:``,flex:`~ items-center`},xe={flex:`~ gap-2 items-center`,p2:``,border:`t base`},Se=[`onClick`],Ce={key:0,class:`px5 pt32 of-auto h-screen`,flex:`~ col gap-4`},we={key:1,class:`px5 pt32 of-auto h-screen`,flex:`~ col gap-4`},Te={key:3,"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt32:``},Ee={key:4,"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt32:``},De={key:5,"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt32:``},Oe={key:0,border:`~ base rounded-lg`,"bg-base":``,p2:``,flex:`~ col gap-2`,"min-w-50":``,"shadow-lg":``},ke={flex:`~ gap-2 items-center`},Ae={truncate:``},je={flex:`~ gap-2 items-center`},Me={key:0,flex:`~ gap-2 items-center`},Ne={"text-xs":``},Pe={key:1,flex:`~ gap-2 items-center`},Fe=s({__name:`chunks`,props:{session:{}},setup(t){let s=t,l=S(O()),d=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Sunburst`,value:`sunburst`,icon:`i-ph-chart-donut-duotone`},{label:`Flamegraph`,value:`flamegraph`,icon:`i-ph-chart-bar-horizontal-duotone`}],m=p({search:``}),b=k(),{state:x,isLoading:T}=E(async()=>await b.value.call(`vite:rolldown:get-chunks-graph`,{session:s.session.id}),null),A=f(()=>{let e=new Map;return x.value?.forEach(t=>{e.set(`${t.chunk_id}`,t)}),e}),P=f(()=>x.value?.map(e=>({...e,id:`${e.chunk_id}`}))??[]),F=D(()=>P.value,()=>new re(P.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),I=f(()=>m.value.search?F.value.search(m.value.search).map(e=>e.item):P.value),{pathSelectorVisible:R,pathNodes:z,selectPathNodes:B,togglePathSelector:V,normalizedGraph:H}=de({onToggle:e=>{m.value.search=e?!1:``},dataMap:f(()=>A.value),list:f(()=>I.value),importIdKey:`chunk_id`});function U(e){N.value.chunkViewType=e}let W=f(()=>{let e=new Map;for(let t of s.session.modulesList)e.set(t.id,t);return e});function G(e){return e.asset?.size?e.asset.size:e.modules.reduce((e,t)=>{let n=W.value.get(t);return!n||!n.buildMetrics?.transforms?.length?e:e+n.buildMetrics.transforms.at(-1).transformed_code_size},0)}let{tree:K,chartOptions:q,graph:J,nodeHover:Y,nodeSelected:X,selectedNode:Z,selectNode:Q,buildGraph:$}=ce({data:f(()=>I.value.map(e=>({...e,filename:e.name||`chunk-${e.chunk_id}`,size:G(e)}))),nameKey:`filename`,sizeKey:`size`,rootText:`Chunks`,nodeType:`chunk`,graphOptions:{onClick(e){e&&(Y.value=e)},onHover(e){e&&(Y.value=e),e===null&&(Y.value=void 0)},onLeave(){Y.value=void 0},onSelect(e){X.value=e||K.value.root,Z.value=e?.meta}},onUpdate(){switch(N.value.chunkViewType){case`sunburst`:J.value=new oe(K.value.root,q.value);break;case`treemap`:J.value=new ie(K.value.root,{...q.value,selectedPaddingRatio:0});break;case`flamegraph`:J.value=new se(K.value.root,q.value);break}}});return v(()=>N.value.chunkViewType,()=>{[`treemap`,`sunburst`,`flamegraph`].includes(N.value.chunkViewType)&&$()}),(s,f)=>{let p=ee,v=fe,b=ue,x=ne,S=te,E=pe,D=L,O=he,k=_e,P=M,F=ae;return i(T)?(y(),c(p,{key:0})):(y(),C(`div`,ve,[w(`div`,ye,[e(x,{modelValue:m.value,"onUpdate:modelValue":f[2]||=e=>m.value=e,rules:[]},r({"search-end":_(()=>[i(N).chunkViewType===`graph`?(y(),C(`div`,be,[w(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:f[1]||=e=>i(V)(!0)},[...f[5]||=[w(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):n(``,!0)]),default:_(()=>[w(`div`,xe,[f[6]||=w(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(y(),C(h,null,u(d,e=>w(`button`,{key:e.value,"btn-action":``,class:o(i(N).chunkViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>U(e.value)},[w(`div`,{class:o(e.icon)},null,2),g(` `+a(e.label),1)],10,Se)),64))])]),_:2},[i(R)?{name:`search`,fn:_(()=>[e(b,{session:t.session,data:I.value,"import-id-key":`chunk_id`,"search-keys":[`name`],onSelect:i(B),onClose:f[0]||=e=>i(V)(!1)},{list:_(({select:n,data:r})=>[e(v,{session:t.session,chunks:r,link:!1,basic:!0,onSelect:n},null,8,[`session`,`chunks`,`onSelect`])]),item:_(({id:e})=>[g(a(A.value.get(e)?.name||`[unnamed]`),1)]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`])]),i(N).chunkViewType===`list`?(y(),C(`div`,Ce,[e(v,{session:t.session,chunks:I.value},null,8,[`session`,`chunks`])])):n(``,!0),i(N).chunkViewType===`detailed-list`?(y(),C(`div`,we,[(y(!0),C(h,null,u(I.value,e=>(y(),c(S,{key:e.id,border:`~ base rounded-lg`,p3:``,chunk:e,chunks:I.value,session:t.session},null,8,[`chunk`,`chunks`,`session`]))),128))])):i(N).chunkViewType===`graph`?(y(),c(E,{key:2,class:`pt32`,session:t.session,chunks:i(H),"entry-id":i(z).start},null,8,[`session`,`chunks`,`entry-id`])):i(N).chunkViewType===`treemap`?(y(),C(`div`,Te,[i(J)?(y(),c(le,{key:0,graph:i(J),selected:i(X),onSelect:f[3]||=e=>i(Q)(e)},{default:_(({selected:t,options:n,onSelect:r})=>[e(D,{border:`b base`,py2:``,"min-h-10":``,selected:t,options:n,onSelect:r},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):n(``,!0)])):i(N).chunkViewType===`sunburst`?(y(),C(`div`,Ee,[i(J)?(y(),c(O,{key:0,graph:i(J),selected:i(X),onSelect:f[4]||=e=>i(Q)(e)},null,8,[`graph`,`selected`])):n(``,!0)])):i(N).chunkViewType===`flamegraph`?(y(),C(`div`,De,[i(J)?(y(),c(k,{key:0,graph:i(J)},null,8,[`graph`])):n(``,!0)])):n(``,!0),e(F,{"hover-x":l.x,"hover-y":l.y},{default:_(()=>[i(Y)?.meta?(y(),C(`div`,Oe,[w(`div`,ke,[f[7]||=w(`i`,{"i-ph-shapes-duotone":``,"flex-none":``},null,-1),w(`span`,Ae,a(i(Y).meta.name||`[unnamed]`),1)]),w(`div`,je,[f[8]||=w(`span`,{op50:``,"text-xs":``},`Size:`,-1),e(P,{bytes:i(Y).meta.size,"text-xs":``},null,8,[`bytes`])]),i(Y).meta.modules?.length?(y(),C(`div`,Me,[f[9]||=w(`span`,{op50:``,"text-xs":``},`Modules:`,-1),w(`span`,Ne,a(i(Y).meta.modules?.length),1)])):n(``,!0),i(Y).meta.is_initial?(y(),C(`div`,Pe,[e(j,{text:`initial`})])):n(``,!0)])):n(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{Fe as default};