@vitejs/devtools-rolldown 0.0.0-alpha.26
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.
- package/LICENSE +21 -0
- package/dist/dirs-BJbBdMIp.mjs +7 -0
- package/dist/dirs.d.mts +4 -0
- package/dist/dirs.mjs +3 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +11076 -0
- package/dist/nitro.json +15 -0
- package/dist/public/200.html +1 -0
- package/dist/public/404.html +1 -0
- package/dist/public/_nuxt/2NHbZxRd.js +1 -0
- package/dist/public/_nuxt/BEpRBuI9.js +1 -0
- package/dist/public/_nuxt/BItNXqww.js +1 -0
- package/dist/public/_nuxt/BMh47W-N.js +1 -0
- package/dist/public/_nuxt/BMmSp6LE.js +1 -0
- package/dist/public/_nuxt/BOnGYqyE.js +4 -0
- package/dist/public/_nuxt/Bjj8tBzd.js +1 -0
- package/dist/public/_nuxt/Bwky_Ehw.js +1 -0
- package/dist/public/_nuxt/Bxdwnne9.js +1 -0
- package/dist/public/_nuxt/C2A6ZQPm.js +1 -0
- package/dist/public/_nuxt/C3MbbcWQ.js +1 -0
- package/dist/public/_nuxt/CANF8ydB.js +1 -0
- package/dist/public/_nuxt/CBwDxyfP.js +1 -0
- package/dist/public/_nuxt/CI5axwdc.js +1 -0
- package/dist/public/_nuxt/CW-j5nS4.js +1 -0
- package/dist/public/_nuxt/CWHn-gBP.js +1 -0
- package/dist/public/_nuxt/CYKzVNOW.js +1 -0
- package/dist/public/_nuxt/CpJiZ7L0.js +1 -0
- package/dist/public/_nuxt/Cpi4HmhC.js +1 -0
- package/dist/public/_nuxt/CwTV8WCc.js +1 -0
- package/dist/public/_nuxt/D04G8HHr.js +1 -0
- package/dist/public/_nuxt/DKwP4h99.js +1 -0
- package/dist/public/_nuxt/DNJ_ymaf.js +1 -0
- package/dist/public/_nuxt/DVE8edJM.js +1 -0
- package/dist/public/_nuxt/DWqpanCf.js +1 -0
- package/dist/public/_nuxt/DYSe0ST1.js +1 -0
- package/dist/public/_nuxt/DYuLlkFe.js +2 -0
- package/dist/public/_nuxt/DataVirtualList.lGV_3v2U.css +1 -0
- package/dist/public/_nuxt/DbTXiIP_.js +1 -0
- package/dist/public/_nuxt/DfaPP0bZ.js +1 -0
- package/dist/public/_nuxt/DhDTn9QE.js +1 -0
- package/dist/public/_nuxt/DrxDkN_i.js +1 -0
- package/dist/public/_nuxt/Dt2e24SL.js +1 -0
- package/dist/public/_nuxt/DthxatUT.js +1 -0
- package/dist/public/_nuxt/HD_PrFS8.js +1 -0
- package/dist/public/_nuxt/SRHsGr7k.js +1 -0
- package/dist/public/_nuxt/_session_.BXMlcDmB.css +1 -0
- package/dist/public/_nuxt/aluAR0E9.js +1 -0
- package/dist/public/_nuxt/builds/latest.json +1 -0
- package/dist/public/_nuxt/builds/meta/2ddefdc7-b81a-45d7-b84c-1c1c5b28d753.json +1 -0
- package/dist/public/_nuxt/diff.worker-CvsEE-qa.js +10 -0
- package/dist/public/_nuxt/entry.B3qwz5KN.css +1 -0
- package/dist/public/_nuxt/error-404.DtAIUFIN.css +1 -0
- package/dist/public/_nuxt/error-500.rGoIypg9.css +1 -0
- package/dist/public/_nuxt/uuSdsPfd.js +33 -0
- package/dist/public/_nuxt/wHgnrW62.js +1 -0
- package/dist/public/dot-grid-dark.png +0 -0
- package/dist/public/dot-grid-light.png +0 -0
- package/dist/public/favicon.svg +90 -0
- package/dist/public/index.html +1 -0
- package/package.json +92 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"#entry";Symbol.toStringTag;var t=class{_mapTree;constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e[e.length-1],t),this}get(e){return this._getLastMap(e).get(e[e.length-1])}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e[e.length-1])}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},n=class{_lengthMap;constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,n){let r=e.length,i=this._lengthMap.get(r);return i||(i=new t(r),this._lengthMap.set(r,i)),i.set(e,n),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function r(e){let t=new n,r=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return r.cache=t,r}const i=[{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-npm`},{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],a=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^vite:/i,name:`vite`,description:`Vite`,icon:`i-catppuccin-vite`},{match:/^unocss:/i,name:`unocss`,description:`Unocss`,icon:`i-catppuccin-unocss`},{match:/^nuxt:/i,name:`nuxt`,description:`Nuxt`,icon:`i-catppuccin-nuxt`},{match:/^builtin:/i,name:`builtin`,description:`Builtin`,icon:`i-catppuccin-folder-prisma`}],o={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},s={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`};function c(e){return i.find(t=>t.name===e)??o}const l=r(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of i)if(t.match.test(e))return t;return o}),u=r(e=>{for(let t of a)if(t.match.test(e))return t;return s});function d(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return f(n%360,t)}function f(t,n=1){return`hsla(${t}, ${e.value?50:65}%, ${e.value?60:40}%, ${n})`}const p={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,virtual:160,nuxt:140};function m(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in p){let n=p[e];return typeof n==`number`?f(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return d(e,t)}export{i as a,c,s as i,u as l,d as n,a as o,f as r,l as s,m as t,r as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,Bt as t,Mt as n,Ot as r,Pt as i,U as a,at as o,ct as s,dt as c,f as l,ft as u,kt as d,lt as f,ot as p,pt as m,r as h,rn as g,rt as _,st as v,t as y,vt as b,wt as x}from"#entry";import{t as S}from"./CwTV8WCc.js";import{r as C,t as w}from"./CpJiZ7L0.js";import{r as T}from"./DthxatUT.js";import{t as E}from"./BItNXqww.js";var D=[`title`],O={key:0,flex:`~ items-center gap-2`},k={op50:``,"font-mono":``},A=[`title`],j=[`title`],M=m({__name:`BaseInfo`,props:{chunk:{},link:{type:Boolean,default:!1},basic:{type:Boolean,default:!1}},setup(r){let i=r,l=a(),m=o(()=>Array.isArray(i.chunk.imports)?i.chunk.imports.length:i.chunk.imports),h=o(()=>Array.isArray(i.chunk.modules)?i.chunk.modules.length:i.chunk.modules);return(i,a)=>(x(),v(n(r.link?e(S):`div`),{to:r.link?typeof r.link==`string`?r.link:{path:e(l).path,query:{chunk:r.chunk.chunk_id}}:void 0,flex:`~ gap-3 items-center`},{default:t(()=>[p(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${r.chunk.chunk_id}`},[d(i.$slots,`icon`,{},()=>[a[0]||=p(`div`,{"i-ph-shapes-duotone":``},null,-1)]),p(`div`,null,g(r.chunk.name||`[unnamed]`),1),u(C,{text:r.chunk.reason},null,8,[`text`]),d(i.$slots,`left-after`)],8,D),a[3]||=p(`div`,{"flex-auto":``},null,-1),r.basic?s(``,!0):(x(),f(`div`,O,[p(`span`,k,`#`+g(r.chunk.chunk_id),1),p(`div`,{flex:`~ gap-1 items-center`,title:`${m.value} imports`},[a[1]||=p(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),c(` `+g(m.value),1)],8,A),p(`div`,{flex:`~ gap-1 items-center`,title:`${h.value} modules`},[a[2]||=p(`div`,{"i-ph-package-duotone":``},null,-1),c(` `+g(h.value),1)],8,j)])),d(i.$slots,`default`)]),_:3},8,[`to`]))}}),N=Object.assign(M,{__name:`ChunksBaseInfo`}),P={flex:`~ gap-2 items-center`},F=m({__name:`BaseInfo`,props:{asset:{}},setup(e){return(t,n)=>{let r=T;return x(),f(`div`,P,[n[0]||=p(`div`,{"i-catppuccin-java-class-abstract":``},null,-1),p(`div`,null,g(e.asset.filename),1),u(r,{bytes:e.asset.size,"text-sm":``},null,8,[`bytes`]),u(C,{text:e.asset.type},null,8,[`text`])])}}}),I=Object.assign(F,{__name:`AssetsBaseInfo`}),L={relative:``},R={key:0,"pointer-events-none":``,absolute:``,"left-0":``,"right-0":``,"bottom-0":``,"bg-gradient-more":``,"h-30":``,flex:`~ justify-center`},z=m({__name:`ExpandableContainer`,props:b({list:{}},{count:{default:20},countModifiers:{}}),emits:[`update:count`],setup(t){let n=t,r=i(t,`count`),a=r.value,c=o(()=>n.list.slice(0,r.value));return(i,o)=>(x(),f(`div`,L,[d(i.$slots,`default`,{items:c.value}),t.list.length>r.value?(x(),f(`div`,R,[p(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:o[0]||=t=>r.value=Math.round(r.value+e(a))},[o[2]||=p(`div`,{"i-ri:arrow-down-double-line":``},null,-1),o[3]||=p(`span`,null,`More`,-1),u(E,{prefix:`+`,number:Math.min(Math.round(e(a)),n.list.length-r.value),"rounded-full":``,"text-sm":``},null,8,[`number`])]),p(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:o[1]||=e=>r.value=n.list.length},[o[4]||=p(`div`,{"i-ph-arrows-out-line-vertical-duotone":``},null,-1),o[5]||=p(`span`,null,`All`,-1),u(E,{number:n.list.length,"rounded-full":``,"text-sm":``},null,8,[`number`])])])):s(``,!0)]))}}),B=Object.assign(z,{__name:`DisplayExpandableContainer`}),V={key:0,"i-ph-file-duotone":``},H={key:1,"i-ph-lightning-duotone":``},U=m({__name:`Imports`,props:{imports:{}},setup(e){return(n,i)=>{let a=N,o=B;return x(),v(o,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:e.imports},{default:t(({items:e})=>[(x(!0),f(_,null,r(e,(e,n)=>(x(),f(_,{key:n},[e?(x(),v(a,{key:0,chunk:e,link:``,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},{icon:t(()=>[e.kind===`import-statement`?(x(),f(`div`,V)):s(``,!0),e.kind===`dynamic-import`?(x(),f(`div`,H)):s(``,!0)]),"left-after":t(()=>[u(C,{text:e.kind},null,8,[`text`])]),_:2},1032,[`chunk`])):s(``,!0)],64))),128))]),_:1},8,[`list`])}}}),W=Object.assign(U,{__name:`ChunksImports`}),G={flex:`~ col gap-3`},K={key:1,"text-sm":``,op50:``,flex:`~ items-center`,title:`Total size of imports`},q={open:`true`},J={open:`true`},Y={op50:``},X={key:0,open:`true`},Z={op50:``},Q={key:1,open:`true`},$={op50:``},ee=m({__name:`ChunkDetails`,props:{chunk:{},session:{},showDetails:{type:Boolean,default:!0},chunks:{}},setup(n){let i=n,m=o(()=>{let e=new Map;for(let t of i.session.modulesList)e.set(t.id,t);return e});function b(e){return e.reduce((e,t)=>{let n=m.value.get(t);if(!n||!n.buildMetrics?.transforms?.length)return e;let r=n.buildMetrics.transforms;return e+r[r.length-1].transformed_code_size},0)}let E=o(()=>b(i.chunk.modules)),D=a(),O=y(),{state:k,isLoading:A}=l(async()=>{if(!i.chunks)return await O.value.call(`vite:rolldown:get-chunks-graph`,{session:i.session.id})},null),j=o(()=>i.chunks||k.value),M=o(()=>i.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:b(t?.modules||[])}})),P=o(()=>j.value?.filter(e=>e.imports.some(e=>e.chunk_id===i.chunk.chunk_id)).map(e=>({...e.imports.find(e=>e.chunk_id===i.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(i,a)=>{let o=T,l=N,m=I,y=S,b=w,O=B,k=h,j=W;return x(),f(`div`,G,[u(l,{chunk:n.chunk},{"left-after":t(()=>[n.chunk.is_initial?(x(),v(C,{key:0,text:`initial`})):s(``,!0),u(o,{bytes:E.value,"text-sm":``,title:`Chunk size`},null,8,[`bytes`]),M.value.length?(x(),f(`div`,K,[a[0]||=c(` (`,-1),u(o,{bytes:M.value.reduce((e,t)=>e+t.size,0)},null,8,[`bytes`]),a[1]||=c(`) `,-1)])):s(``,!0)]),default:t(()=>[d(i.$slots,`default`)]),_:3},8,[`chunk`]),n.showDetails?(x(),f(_,{key:0},[p(`details`,q,[a[2]||=p(`summary`,{op50:``},` Assets `,-1),u(y,{border:`~ base rounded-lg`,px2:``,mt2:``,py1:``,"min-w-fit":``,flex:`~`,to:{path:e(D).path,query:{asset:n.chunk.asset?.filename}}},{default:t(()=>[u(m,{asset:{...n.chunk.asset,type:`asset`}},null,8,[`asset`])]),_:1},8,[`to`])]),p(`details`,J,[p(`summary`,Y,[p(`span`,null,`Modules (`+g(n.chunk.modules.length)+`)`,1)]),u(O,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:n.chunk.modules},{default:t(({items:e})=>[(x(!0),f(_,null,r(e,e=>(x(),v(b,{id:e,key:e,session:n.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))]),_:1},8,[`list`])]),e(A)?(x(),v(k,{key:0})):(x(),f(_,{key:1},[n.chunk.imports.length?(x(),f(`details`,X,[p(`summary`,Z,[p(`span`,null,`Imports (`+g(n.chunk.imports.length)+`)`,1)]),u(j,{imports:M.value},null,8,[`imports`])])):s(``,!0),P.value.length?(x(),f(`details`,Q,[p(`summary`,$,[p(`span`,null,`Importers (`+g(P.value.length)+`)`,1)]),u(j,{imports:P.value},null,8,[`imports`])])):s(``,!0)],64))],64)):s(``,!0)])}}}),te=Object.assign(ee,{__name:`DataChunkDetails`});export{N as i,B as n,I as r,te as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{gt as e,pt as t}from"#entry";import{t as n}from"./Bjj8tBzd.js";import{n as r}from"./2NHbZxRd.js";var i=t({name:`HighlightedPackageName`,props:{name:{type:String,required:!0}},setup(t){return()=>{let i=t.name;if(!r(i))return e(`span`,{class:`text-gray-500`},i);let a=n(i);if(i.startsWith(`@`)){let[t,n]=i.split(`/`);return[e(`span`,{style:`color: ${a}`},t),e(`span`,{style:`color: ${a}`,class:`op50`},`/`),e(`span`,{style:`color: ${a}`},n)]}return e(`span`,{style:`color: ${a}`},i)}}});export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,Bt as t,Mt as n,Ot as r,Pt as i,U as a,ct as o,en as s,ft as c,kt as l,lt as u,nn as d,ot as f,pt as p,rt as m,st as h,vt as g,wt as _}from"#entry";import{t as v}from"./CwTV8WCc.js";import{n as y,t as b}from"./DKwP4h99.js";var x=[`open`],S={"font-mono":``},C={"font-mono":``},w=p({__name:`TreeNode`,props:g({node:{},icon:{default:`i-catppuccin:folder icon-catppuccin`},iconOpen:{default:`i-catppuccin:folder-open icon-catppuccin`},link:{type:[String,Boolean]},linkQueryKey:{default:`module`},padding:{default:0},open:{type:Boolean}},{open:{type:Boolean,required:!1,default:!0},openModifiers:{}}),emits:g([`select`],[`update:open`]),setup(p,{emit:g}){let w=p,E=g,D=i(p,`open`),O=a(),k=window.location;function A(e){w.link||E(`select`,e)}return(i,a)=>{let g=b,w=T,E=y;return _(),u(`details`,{open:D.value,onToggle:a[0]||=e=>D.value=e.target?.open},[f(`summary`,{"cursor-default":``,"select-none":``,"text-sm":``,truncate:``,style:d({paddingLeft:`${p.padding+.5}rem`}),flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active `},[f(`div`,{class:s([`i-ph-caret-right-duotone transition op50`,D.value?`rotate-90`:``])},null,2),f(`div`,{class:s(D.value&&p.iconOpen||p.icon),"inline-block":``,"vertical-text-bottom":``},null,2),f(`div`,S,[c(g,{path:p.node.name||``},null,8,[`path`])])],4),D.value?(_(),u(m,{key:0},[(_(!0),u(m,null,r(Object.entries(p.node.children),e=>(_(),h(w,{key:e[0],node:e[1],link:p.link,padding:p.padding+1,"link-query-key":p.linkQueryKey,onSelect:A},{extra:t(({node:e})=>[l(i.$slots,`extra`,{node:e})]),_:3},8,[`node`,`link`,`padding`,`link-query-key`]))),128)),(_(!0),u(m,null,r(p.node.items,r=>(_(),h(n(p.link?e(v):`div`),{key:r.full,to:p.link?typeof p.link==`string`?p.link:{path:e(O).path,query:{...e(O).query,[p.linkQueryKey]:r.full},hash:e(k).hash}:void 0,"text-sm":``,"ws-nowrap":``,flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active`,style:d({paddingLeft:`${p.padding+2.7}rem`}),onClick:e=>A(r)},{default:t(()=>[c(E,{filename:r.full},null,8,[`filename`]),f(`div`,C,[c(g,{path:r.path.split(`/`).pop()||``},null,8,[`path`]),l(i.$slots,`extra`,{node:r})])]),_:2},1032,[`to`,`style`,`onClick`]))),128))],64)):o(``,!0)],40,x)}}}),T=Object.assign(w,{__name:`DisplayTreeNode`});export{T as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,Et as t,Jt as n,Qt as r,Yt as i,_t as a,at as o,bt as s,d as c,g as l,lt as u,m as d,ot as f,qt as p,wt as m}from"#entry";import{t as h}from"./C3MbbcWQ.js";function g(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function _(){return this.eachAfter(g)}function v(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function y(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function b(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function x(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function S(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function C(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function w(e){for(var t=this,n=T(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function T(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function ee(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function te(){return Array.from(this)}function ne(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function E(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*re(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function D(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=A)):t===void 0&&(t=k);for(var n=new N(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new N(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(M)}function O(){return D(this).eachBefore(j)}function k(e){return e.children}function A(e){return Array.isArray(e)?e[1]:null}function j(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function M(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function N(e){this.data=e,this.depth=this.height=0,this.parent=null}N.prototype=D.prototype={constructor:N,count:_,each:v,eachAfter:b,eachBefore:y,find:x,sum:S,sort:C,path:w,ancestors:ee,descendants:te,leaves:ne,links:E,copy:O,[Symbol.iterator]:re};function P(e,t){return e.parent===t.parent?1:2}function F(e){var t=e.children;return t?t[0]:e.t}function I(e){var t=e.children;return t?t[t.length-1]:e.t}function ie(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function ae(e){for(var t=0,n=0,r=e.children,i=r.length,a;--i>=0;)a=r[i],a.z+=t,a.m+=t,t+=a.s+(n+=a.c)}function oe(e,t,n){return e.a.parent===t.parent?e.a:n}function L(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}L.prototype=Object.create(N.prototype);function R(e){for(var t=new L(e,0),n,r=[t],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new L(a[o],o)),i.parent=n;return(t.parent=new L(null,0)).children=[t],t}function z(){var e=P,t=1,n=1,r=null;function i(i){var s=R(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),r)i.eachBefore(c);else{var l=i,u=i,d=i;i.eachBefore(function(e){e.x<l.x&&(l=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)});var f=l===u?1:e(l,u)/2,p=f-l.x,m=t/(u.x+f+p),h=n/(d.depth||1);i.eachBefore(function(e){e.x=(e.x+p)*m,e.y=e.depth*h})}return i}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){ae(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=s(t,i,t.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(t,n,r){if(n){for(var i=t,a=t,o=n,s=i.parent.children[0],c=i.m,l=a.m,u=o.m,d=s.m,f;o=I(o),i=F(i),o&&i;)s=F(s),a=I(a),a.a=t,f=o.z+u-i.z-c+e(o._,i._),f>0&&(ie(oe(o,t,r),t,f),c+=f,l+=f),u+=o.m,c+=i.m,d+=s.m,l+=a.m;o&&!I(a)&&(a.t=o,a.m+=u-l),i&&!F(s)&&(s.t=i,s.m+=c-d,r=t)}return r}function c(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function B(e){return function(){return e}}var V=Math.PI,H=2*V,U=1e-6,W=H-U;function G(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function K(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return G;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var q=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?G:K(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>U)if(!(Math.abs(u*s-c*l)>U)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((V-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>U&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>U||Math.abs(this._y1-l)>U)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%H+H),d>W?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>U&&this._append`A${n},${n},0,${+(d>=V)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function se(){return new q}se.prototype=q.prototype;function ce(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new q(t)}var le=Array.prototype.slice;function ue(e){return e[0]}function de(e){return e[1]}var J=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function fe(e){return new J(e,!0)}function pe(e){return new J(e,!1)}function me(e){return e.source}function he(e){return e.target}function Y(e){let t=me,n=he,r=ue,i=de,a=null,o=null,s=ce(c);function c(){let c,l=le.call(arguments),u=t.apply(this,l),d=n.apply(this,l);if(a??(o=e(c=s())),o.lineStart(),l[0]=u,o.point(+r.apply(this,l),+i.apply(this,l)),l[0]=d,o.point(+r.apply(this,l),+i.apply(this,l)),o.lineEnd(),c)return o=null,c+``||null}return c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.x=function(e){return arguments.length?(r=typeof e==`function`?e:B(+e),c):r},c.y=function(e){return arguments.length?(i=typeof e==`function`?e:B(+e),c):i},c.context=function(t){return arguments.length?(t==null?a=o=null:o=e(a=t),c):a},c}function ge(){return Y(fe)}function _e(){return Y(pe)}function ve(e,{wheel:t=!0,minScale:n=.5,maxScale:i=2}={}){let a=p(1);function o(t,o,s){let c=r(e);if(!c)return;let{left:l,top:u,width:d,height:f}=c.getBoundingClientRect(),p=o??l+d/2,m=s??u+f/2,h=p-l,g=m-u,_=a.value;a.value=Math.max(n,Math.min(i,_+t));let v=a.value/_;c.scrollLeft=(c.scrollLeft+h)*v-h,c.scrollTop=(c.scrollTop+g)*v-g}function s(e){if(r(t)){e.preventDefault();let t=.2;o(e.deltaY<0?t:t*-1,e.clientX,e.clientY)}else e.ctrlKey&&(e.preventDefault(),o(e.deltaY*.004*-1,e.clientX,e.clientY))}function c(e=.2){o(e)}function l(e=.2){o(e*-1)}return d(e,`wheel`,s),{scale:a,zoom:o,zoomIn:c,zoomOut:l}}var X=Symbol.for(`ViteDevToolsModuleGraphState`);const Z=ge().x(e=>e[0]).y(e=>e[1]),Q=_e().x(e=>e[0]).y(e=>e[1]);function ye(t,n){return!t.target||!t.source?null:n?t.target.x<=t.source.x?Q({source:[t.source.x+e(n.width)/2-e(n.linkOffset),t.source.y],target:[t.target.x-e(n.width)/2+e(n.linkOffset),t.target.y]}):Z({source:[t.source.x+e(n.width)/2-e(n.linkOffset),t.source.y],target:[t.target.x-e(n.width)/2+e(n.linkOffset),t.target.y]}):t.target.x<=t.source.x?Q({source:[t.source.x,t.source.y],target:[t.target.x,t.target.y]}):Z({source:[t.source.x,t.source.y],target:[t.target.x,t.target.y]})}function be(e){return`stroke-#8885`}function xe(e){let r=.4,a=p(),s=p(window.innerWidth),c=p(window.innerHeight),u=n(new Map),d=n(new Set),f=p(!0),m=n(new Map),h=i([]),g=i([]),_=n(new Map),v=n(new Map),y=o(()=>{let t=new Map;for(let n of e.modules.value)t.set(n.id,n);return t}),{control:b}=l(),{scale:x,zoomIn:S,zoomOut:C}=ve(a,{wheel:b,minScale:r,maxScale:2});function w(e,t=!0){u.get(e)?.scrollIntoView({block:`center`,inline:`center`,behavior:t?`smooth`:`instant`})}let T=e.generateGraph({isFirstCalculateGraph:f,hierarchy:D,tree:z,nodesRefMap:u,container:a,modulesMap:y,nodes:h,links:g,scale:x,nodesMap:_,linksMap:v,width:s,height:c,childToParentMap:m,focusOn:w,collapsedNodes:d,spacing:e.spacing});t(X,{spacing:e.spacing,calculateGraph:T,isFirstCalculateGraph:f,container:a,width:s,height:c,scale:x,nodes:h,links:g,nodesRefMap:u,collapsedNodes:d,childToParentMap:m,ZOOM_MIN:r,ZOOM_MAX:2,zoomIn:S,zoomOut:C})}function $(){return a(X)}function Se(t){let{nodesRefMap:n,container:r,calculateGraph:i,collapsedNodes:o}=a(X),c=p(!1);function l(e,t){s(()=>{s(()=>{let i=n.get(e);if(i&&t&&r.value){let e=r.value.getBoundingClientRect(),n=i.getBoundingClientRect(),a=n.left-e.left-t.x,o=n.top-e.top-t.y;r.value.scrollLeft+=a,r.value.scrollTop+=o}})})}function u(e){if(c.value)return;c.value=!0;let t=n.get(e),a=null;if(t&&r.value){let e=r.value.getBoundingClientRect(),n=t.getBoundingClientRect();a={x:n.left-e.left,y:n.top-e.top}}o.has(e)?o.delete(e):o.add(e),i(),a&&l(e,a),c.value=!1}function d(){c.value||(c.value=!0,o.clear(),i(),setTimeout(()=>{c.value=!1},300))}function f(){c.value||(c.value=!0,e(t.modules).forEach(e=>{e.imports.length>0&&o.add(e.id)}),i(),setTimeout(()=>{c.value=!1},300))}return{isGraphNodeToggling:c,toggleNode:u,expandAll:d,collapseAll:f}}function Ce(){let{scale:e,zoomIn:t,zoomOut:n,ZOOM_MIN:r,ZOOM_MAX:i}=a(X);return c([`-`,`_`],e=>{e.ctrlKey&&n()}),c([`=`,`+`],e=>{e.ctrlKey&&t()}),{ZOOM_MIN:r,ZOOM_MAX:i,scale:e,zoomIn:t,zoomOut:n}}function we(){let{container:e}=a(X),t=p(!1),n=0,r=0;function i(){d(e,`mousedown`,i=>{let a=e.value.getBoundingClientRect(),o=a.right-i.clientX,s=a.bottom-i.clientY;o<=20||s<=20||(t.value=!0,n=e.value.scrollLeft+i.pageX,r=e.value.scrollTop+i.pageY)}),d(e,`contextmenu`,e=>e.preventDefault()),d(`mouseleave`,()=>t.value=!1),d(`mouseup`,()=>t.value=!1),d(`mousemove`,i=>{t.value&&(i.preventDefault(),e.value.scrollLeft=n-i.pageX,e.value.scrollTop=r-i.pageY)})}return{init:i,isGrabbing:t}}var Te={},Ee={"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Close`};function De(e,t){return m(),u(`button`,Ee,[...t[0]||=[f(`div`,{"i-ph-x":``},null,-1)]])}var Oe=h(Te,[[`render`,De]]);export{we as a,Se as c,be as i,xe as n,Ce as o,ye as r,$ as s,Oe as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ot as e,lt as t,ot as n,pt as r,rn as i,rt as a,wt as o}from"#entry";var s={flex:`~ gap5`,"w-full":``,border:`b base`,pb3:``},c={"font-mono":``},l={"font-mono":``},u=[`datetime`],d=r({__name:`SessionMeta`,props:{sessions:{}},setup(r){return(d,f)=>(o(),t(`div`,s,[(o(!0),t(a,null,e(r.sessions,e=>(o(),t(`div`,{key:e.id,"flex-1":``,border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_140px_2fr] max-lg:cols-[max-content_80px_2fr] gap-2 items-center`},[f[0]||=n(`div`,{class:`i-ph-hash-duotone`},null,-1),n(`div`,null,i(e.title),1),n(`div`,c,[n(`span`,null,i(e.id),1)]),f[1]||=n(`div`,{class:`i-ph-clock-duotone`},null,-1),f[2]||=n(`div`,null,` Created At `,-1),n(`div`,l,[n(`time`,{datetime:e.createdAt.toISOString()},i(e.createdAt.toLocaleString()),9,u)])]))),128))]))}}),f=Object.assign(d,{__name:`CompareSessionMeta`});export{f as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,A as t,Ct as n,D as r,F as i,It as a,Lt as o,M as s,N as c,O as l,Ot as u,P as d,Yt as f,Zt as p,a as m,at as h,bt as g,ct as _,it as v,j as y,k as b,kt as ee,lt as x,nn as S,ot as te,pt as ne,qt as C,rn as re,rt as ie,st as ae,wt as w}from"#entry";import{t as T}from"./D04G8HHr.js";import{t as oe}from"./DthxatUT.js";function E(){return typeof window<`u`}function D(e){return se(e)?(e.nodeName||``).toLowerCase():`#document`}function O(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function k(e){return((se(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function se(e){return E()?e instanceof Node||e instanceof O(e).Node:!1}function A(e){return E()?e instanceof Element||e instanceof O(e).Element:!1}function j(e){return E()?e instanceof HTMLElement||e instanceof O(e).HTMLElement:!1}function ce(e){return!E()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof O(e).ShadowRoot}var le=new Set([`inline`,`contents`]);function M(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=I(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!le.has(i)}var ue=new Set([`table`,`td`,`th`]);function de(e){return ue.has(D(e))}var fe=[`:popover-open`,`:modal`];function N(e){return fe.some(t=>{try{return e.matches(t)}catch{return!1}})}var pe=[`transform`,`translate`,`scale`,`rotate`,`perspective`],me=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],he=[`paint`,`layout`,`strict`,`content`];function ge(e){let t=P(),n=A(e)?I(e):e;return pe.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||me.some(e=>(n.willChange||``).includes(e))||he.some(e=>(n.contain||``).includes(e))}function _e(e){let t=R(e);for(;j(t)&&!F(t);){if(ge(t))return t;if(N(t))return null;t=R(t)}return null}function P(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var ve=new Set([`html`,`body`,`#document`]);function F(e){return ve.has(D(e))}function I(e){return O(e).getComputedStyle(e)}function L(e){return A(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function R(e){if(D(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ce(e)&&e.host||k(e);return ce(t)?t.host:t}function ye(e){let t=R(e);return F(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&M(t)?t:ye(t)}function z(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ye(e),i=r===e.ownerDocument?.body,a=O(r);if(i){let e=be(a);return t.concat(a,a.visualViewport||[],M(r)?r:[],e&&n?z(e):[])}return t.concat(r,z(r,[],n))}function be(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xe(e){let t=I(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,a=j(e),o=a?e.offsetWidth:n,s=a?e.offsetHeight:r,c=i(n)!==o||i(r)!==s;return c&&(n=o,r=s),{width:n,height:r,$:c}}function Se(e){return A(e)?e:e.contextElement}function B(e){let t=Se(e);if(!j(t))return y(1);let n=t.getBoundingClientRect(),{width:r,height:a,$:o}=xe(t),s=(o?i(n.width):n.width)/r,c=(o?i(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Ce=y(0);function we(e){let t=O(e);return!P()||!t.visualViewport?Ce:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Te(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==O(e)?!1:t}function V(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Se(e),o=y(1);t&&(r?A(r)&&(o=B(r)):o=B(e));let s=Te(a,n,r)?we(a):y(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,f=i.height/o.y;if(a){let e=O(a),t=r&&A(r)?O(r):r,n=e,i=be(n);for(;i&&r&&t!==n;){let e=B(i),t=i.getBoundingClientRect(),r=I(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,f*=e.y,c+=a,l+=o,n=O(i),i=be(n)}}return d({width:u,height:f,x:c,y:l})}function H(e,t){let n=L(e).scrollLeft;return t?t.left+n:V(k(e)).left+n}function Ee(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-H(e,n),y:n.top+t.scrollTop}}function De(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=k(r),s=t?N(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=y(1),u=y(0),d=j(r);if((d||!d&&!a)&&((D(r)!==`body`||M(o))&&(c=L(r)),j(r))){let e=V(r);l=B(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ee(o,c):y(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 Oe(e){return Array.from(e.getClientRects())}function ke(e){let t=k(e),n=L(e),r=e.ownerDocument.body,i=s(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=s(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+H(e),c=-n.scrollTop;return I(r).direction===`rtl`&&(o+=s(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:c}}var Ae=25;function je(e,t){let n=O(e),r=k(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=P();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=H(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Ae&&(a-=o)}else l<=Ae&&(a+=l);return{width:a,height:o,x:s,y:c}}var Me=new Set([`absolute`,`fixed`]);function Ne(e,t){let n=V(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=j(e)?B(e):y(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Pe(e,t,n){let r;if(t===`viewport`)r=je(e,n);else if(t===`document`)r=ke(k(e));else if(A(t))r=Ne(t,n);else{let n=we(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return d(r)}function Fe(e,t){let n=R(e);return n===t||!A(n)||F(n)?!1:I(n).position===`fixed`||Fe(n,t)}function Ie(e,t){let n=t.get(e);if(n)return n;let r=z(e,[],!1).filter(e=>A(e)&&D(e)!==`body`),i=null,a=I(e).position===`fixed`,o=a?R(e):e;for(;A(o)&&!F(o);){let t=I(o),n=ge(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&Me.has(i.position)||M(o)&&!n&&Fe(e,o))?r=r.filter(e=>e!==o):i=t,o=R(o)}return t.set(e,r),r}function Le(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?N(t)?[]:Ie(t,this._c):[].concat(n),r],o=a[0],l=a.reduce((e,n)=>{let r=Pe(t,n,i);return e.top=s(r.top,e.top),e.right=c(r.right,e.right),e.bottom=c(r.bottom,e.bottom),e.left=s(r.left,e.left),e},Pe(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Re(e){let{width:t,height:n}=xe(e);return{width:t,height:n}}function ze(e,t,n){let r=j(t),i=k(t),a=n===`fixed`,o=V(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=y(0);function l(){c.x=H(i)}if(r||!r&&!a)if((D(t)!==`body`||M(i))&&(s=L(t)),r){let e=V(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Ee(i,s):y(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 Be(e){return I(e).position===`static`}function Ve(e,t){if(!j(e)||I(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return k(e)===n&&(n=n.ownerDocument.body),n}function He(e,t){let n=O(e);if(N(e))return n;if(!j(e)){let t=R(e);for(;t&&!F(t);){if(A(t)&&!Be(t))return t;t=R(t)}return n}let r=Ve(e,t);for(;r&&de(r)&&Be(r);)r=Ve(r,t);return r&&F(r)&&Be(r)&&!ge(r)?n:r||_e(e)||n}var Ue=async function(e){let t=this.getOffsetParent||He,n=this.getDimensions,r=await n(e.floating);return{reference:ze(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function We(e){return I(e).direction===`rtl`}var Ge={convertOffsetParentRelativeRectToViewportRelativeRect:De,getDocumentElement:k,getClippingRect:Le,getOffsetParent:He,getElementRects:Ue,getClientRects:Oe,getDimensions:Re,getScale:B,isElement:A,isRTL:We},Ke=b,qe=t,Je=l,Ye=(e,t,n)=>{let i=new Map,a={platform:Ge,...n},o={...a.platform,_c:i};return r(e,t,{...a,platform:o})},Xe=ne({__name:`GraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:t,hoverY:n}=p(e),r=a(`hoverElement`),i=C(0),s=C(0);return o([t,n],([e,t])=>{Ye({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},r.value,{placement:`right-start`,middleware:[Je(),qe(),Ke({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{i.value=e,s.value=t})}),(e,t)=>(w(),ae(v,{to:`body`},[te(`div`,{ref_key:`hoverElement`,ref:r,fixed:``,"z-panel-content":``,"pointer-events-none":``,style:S({left:`${i.value}px`,top:`${s.value}px`})},[ee(e.$slots,`default`)],4)]))}}),Ze=Object.assign(Xe,{__name:`DisplayGraphHoverView`});function Qe(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 $e,et,tt,U,W,G=1,nt;function rt(e,t,n,r,i){if(!Array.isArray(e))return e;let a=window.devicePixelRatio||1;if($e!==t||et!==a||tt!==i){let n=Math.round(64*a)/64;G=i,G=Math.log2(G),G-=Math.floor(G);let r=G,o=Math.min(1,8*r);G=2**G;let s=8*Math.SQRT2/G;$e=t,et=a,tt=i,U||=document.createElement(`canvas`),W||=U.getContext(`2d`),U.width=U.height=Math.round(64*n),W.scale(n,n),W.fillStyle=e[0],W.fillRect(0,0,64,64),W.globalAlpha=.25,W.fillStyle=e[1],W.fillRect(0,0,64,64),W.globalAlpha=.67,W.strokeStyle=e[1],W.beginPath();for(let e=0;e<=64;e+=16)W.moveTo(e-32,e+32),W.lineTo(e+32,e-32);if(W.lineWidth=s*(1-(o-r)/2),W.stroke(),o+r>0){W.beginPath();for(let e=8;e<64;e+=16)W.moveTo(e-32,e+32),W.lineTo(e+32,e-32);W.lineWidth=s*(o+r)/2,W.stroke()}nt=t.createPattern(U,`repeat`),G/=n}return n/=64*G*a,n-=Math.floor(n),n*=64*G*a,nt.setTransform(new DOMMatrix([G,0,0,G,n,r])),nt}function it(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 at(e){return t=>t.id&&e[t.id]||t.color}function ot(e,t=1,n=1){let r={};return st(r,e,0,Math.PI*2,t,n),at(r)}function st(e,t,n,r,i=1,a=1){let o=t.size;e[t.id]=Qe(n+r/2,i,a);for(let s of t.children){let t=s.size/o*r;st(e,s,n,t,i,a),n+=t}}var ct=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function lt(e=16,t=ct){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function ut(e,t,n=(e,t)=>t.size-e.size){if(e.__nanovis)return e;let r={...e};return r.id||=lt(),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=>ut(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 dt(e){return e.children.length===0?1:Math.max(...e.children.map(e=>dt(e)))+1}var ft=/\bFirefox\//.test(navigator.userAgent),pt;function mt(e){return pt?pt.format(e):`${e}`}function K(){return(window.performance||Date).now()}function ht(e){let t=e.toFixed(1).split(`.`,2);return`${mt(+t[0])}.${t[1]}`}function gt(e){return e===1?`1 byte`:e<1024?`${mt(e)} bytes`:e<1024*1024?`${ht(e/1024)} kb`:e<1024*1024*1024?`${ht(e/(1024*1024))} mb`:`${ht(e/(1024*1024*1024))} gb`}function _t(e,t,n,r,i,a){if(ft){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 vt(e){return window.addEventListener(`wheel`,e,{passive:!1}),()=>window.removeEventListener(`wheel`,e)}function yt(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}try{pt=new Intl.NumberFormat}catch{}var bt=()=>({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)}}}),q={getText:e=>e.text,getSubtext:e=>e.subtext,animate:!0,animateDuration:350},xt={fallback:`#CCC`,stroke:`#0008`,text:`#222`,hover:`#fff5`,shadow:`#0008`,fg:`#fff`,bg:`#222`},St=46,Ct=`14px sans-serif`,wt=`bold ${Ct}`,Tt=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={...q,...t};let{getColor:n=ot(e),getText:r=()=>void 0,getSubtext:i=()=>void 0}=this.options;this.palette={...xt,...t.palette},this.el=document.createElement(`div`),this.canvas=document.createElement(`canvas`),this.c=this.canvas.getContext(`2d`),this.root=e,this.maxDepth=dt(e),this.disposables=[],this.events=bt(),this.getColor=n,this.getText=r,this.getSubtext=i,this.setFont(Ct),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(St)}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]}},J=24,Et=5,Dt=.01,Ot=1e3,kt=class extends Tt{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(vt(e=>{let t=e.deltaX,n=e.deltaY,r=K(),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(yt(()=>this.resize())),this.mainEl.append(this.canvas),this.el.append(this.mainEl)}tick(){let e=(K()-this.animationStart)/(this.options.animateDuration??q.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??q.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*Dt),r=Math.min(this.totalBytes,r+e.size*Dt),this.setViewport(n,r,t)}}select(e,t=this.options.animate??q.animate){this.changeSelectedNode(e,t)}resize(){this.width=this.el.clientWidth,this.height=this.maxDepth*J+1,this.zoomedOutMin=this.width-Ot>>1,this.zoomedOutWidth=this.zoomedOutMin+Ot,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)+Et,d=t+J/2,f=this.getText(e)||``,p=this.getSubtext(e)||``,m,h=0,g=s+o-u,_=rt(this.getColor(e)||this.palette.fallback,this.c,this.zoomedOutMin-this.viewportMin*a,J,a*this.stripeScaleAdjust),v=this.palette.text,y=-1/0;i&1?(v=this.palette.fg,this.setFont(wt)):(this.c.fillStyle=_,this.c.fillRect(o,t,l,J),(i&2||this.hoveredNode&&e.id===this.hoveredNode.id)&&(this.c.fillStyle=this.palette.hover,this.c.fillRect(o,t,l,J),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(Ct),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+J,n,y,i&-2),n+=r.size;return i&1||_t(this.c,this.palette.stroke,o+.5,t+.5,l,J),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+J&&e.id)return e;if(r>=t+J)for(let r of e.children){let e=a(r,t+J,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=K():this.animationStart=0,this.invalidate()}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),this.events.emit(`hover`,t,e)}};function At(e,t){for(;t;){if(t===e)return!0;t=t.parent}return!1}function Y(e,t,n){if(e===t)return;let r=t.parent,i=r.size||1,a=0;Y(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 jt={};function Mt(e){return jt[e]||(jt[e]=400*Math.log(1+Math.log(1+e/8))),jt[e]}var X=-Math.PI/2,Nt=class extends Tt{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(yt(()=>this.resize())),this.disposables.push(vt(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(Mt(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(wt),this.c.textAlign=`center`,this.c.fillText(this.getSubtext(this.targetNode)??gt(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=rt(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=(K()-this.animationStart)/(this.options.animateDuration??q.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 Mt(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=K()),At(this.animatedNode,this.currentNode)){let e={depth_:this.animatedDepth,startAngle_:this.animatedStartAngle,sweepAngle_:this.animatedSweepAngle};Y(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(At(this.currentNode,this.animatedNode)){let e={depth_:0,startAngle_:X,sweepAngle_:Math.PI*2};Y(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,Pt=2*Z,$=Q+Z;function Ft(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>Pt&&y>$?Ft(t.children,g+Z,_+Q,v-Pt,y-$):[]}),h+=c}t=d,i>=s?(n+=m,i-=m):(r+=m,s-=m)}})(0,t,n,r,i),a}var It=class extends Tt{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(vt(e=>this.updateHover(e))),this.disposables.push(yt(()=>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=(K()-this.animationStart)/(this.options.animateDuration??q.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=Ft([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=rt(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(_t(this.c,this.palette.stroke,n+.5,i+.5,a,o),o>=Q){this.c.fillStyle=this.palette.text;let e=a-Pt,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=Ft([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=K(),this.animationSource=this.currentNode),this.animationTarget=e,this.currentNode=e||this.searchFor([this.layers.base],this.currentNode.node),this.updateCurrentLayout(),this.invalidate())}},Lt={flex:`~ gap-1 items-center wrap`},Rt={key:0,"i-ph-arrow-right-bold":``,"text-sm":``,"op-fade":``},zt=[`onClick`],Bt=ne({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=h(()=>{let e=[],t=n.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,t)=>(w(),x(`div`,Lt,[(w(!0),x(ie,null,u(i.value,(e,t)=>(w(),x(ie,{key:e.id},[t>0?(w(),x(`div`,Rt)):_(``,!0),te(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:t=>r(`select`,e)},[te(`span`,null,re(e.text||e.id),1)],8,zt)],64))),128))]))}}),Vt=Object.assign(Bt,{__name:`ChartNavBreadcrumb`});function Ht(t){let{data:r,nameKey:i,sizeKey:a,rootText:s,nodeType:c,graphOptions:l,onUpdate:u}=t,d=f(void 0),p=f(void 0),_=C(void 0),v=f(void 0),y,b=h(()=>{if(t.tree)return t.tree.value;let n=e(r),o=new Map,l=0,u={id:`~root`,text:s,size:0,sizeSelf:0,children:[]};if(!n?.length)return{map:o,root:u,maxDepth:l};let d=[];d.unshift(()=>{u.size+=u.children.reduce((e,t)=>e+t.size,0),u.subtext=T(u.size).join(` `),u.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function f(e,t,n,r,i){if(o.has(t))return o.get(t);i>l&&(l=i);let a={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return o.set(t,a),r.children.push(a),d.unshift(()=>{let t=a.sizeSelf;a.size+=a.children.reduce((e,t)=>e+t.size,0),a.subtext=T(a.size).join(` `),a.children.length&&t/a.size>.1&&a.children.push({id:`${a.id}-self`,text:``,size:t,sizeSelf:t,subtext:T(t).join(` `),children:[],meta:{...e,path:``,type:c},parent:a}),a.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),a}function p(e){let t=e[i].split(`/`).filter(Boolean),n=u,r=``,s=0;t.forEach((l,u)=>{if(r+=(r?`/`:``)+l,s++,u===t.length-1){let t={id:e[i],text:l,size:e[a],sizeSelf:e[a],subtext:T(e[a]).join(` `),children:[],meta:{...e,path:l,type:c}};n.children.push(t),o.set(e[i],t)}else n=f(e,r,l,n,s)})}return n.forEach(p),d.forEach(e=>e()),{map:o,root:u,maxDepth:l}}),ee=h(()=>({animate:oe.value.chartAnimation,palette:{stroke:m.value?`#222`:`#555`,fg:m.value?`#fff`:`#000`,bg:m.value?`#111`:`#fff`},getColor:ot(b.value.root,m.value?.8:.9,m.value?1:1.1),getSubtext:e=>e.subtext,...l}));function x(e,t){_.value=e?.meta,e?.children.length||(e=e?.parent),v.value?.select(e,t)}function S(){y?.(),p.value=b.value.root,u?.(),g(()=>{let e=_.value&&b.value.map.get(_.value[i])||null;e&&x(e,!1)}),y=()=>{v.value?.dispose(),v.value=void 0,_.value=void 0}}return g(()=>{o(()=>[b.value,ee.value],()=>{S()},{deep:!0,immediate:!1}),S()}),n(()=>{y?.()}),{tree:b,graph:v,chartOptions:ee,nodeHover:d,nodeSelected:p,selectedNode:_,selectNode:x,buildGraph:S}}export{It as a,Ze as c,Nt as i,Vt as n,it as o,kt as r,ut as s,Ht as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,c as t,ct as n,lt as r,pt as i,rn as a,wt as o}from"#entry";var s={key:0,"font-mono":``},c=i({__name:`DisplayTimestamp`,props:{timestamp:{}},setup(i){let c=i;return(l,u)=>i.timestamp?(o(),r(`span`,s,a(e(t)(new Date(c.timestamp))),1)):n(``,!0)}});export{c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as e,Bt as t,dt as n,ft as r,lt as i,ot as a,rn as o,wt as s}from"#entry";import{t as c}from"./CwTV8WCc.js";import{t as l}from"./C3MbbcWQ.js";var u={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g=l({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:404},statusText:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`}},setup(l){let g=l;return e({title:`${g.status} - ${g.statusText} | ${g.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(e,g)=>{let _=c;return s(),i(`div`,u,[a(`div`,d,[a(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:o(l.status)},null,8,f),a(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:o(l.statusText)},null,8,p),a(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:o(l.description)},null,8,m),a(`div`,h,[r(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:t(()=>[n(o(l.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-0ae4bf59`]]);export{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,Bt as t,Ot as n,at as r,ct as i,dt as a,en as o,ft as s,lt as c,ot as l,pt as u,rn as d,rt as f,st as p,wt as m}from"#entry";import{t as h}from"./CwTV8WCc.js";import{r as g,t as _}from"./CpJiZ7L0.js";import{t as v}from"./aluAR0E9.js";import{t as y}from"./Dt2e24SL.js";import{t as b}from"./BItNXqww.js";var x={flex:`~ col gap-2`,p6:``},S={flex:`~ gap-2`},C={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_160px_2fr] gap-2 items-center`},w={"font-mono":``},T=[`datetime`],E={key:4},D={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_1fr] gap-2 items-center`},O={flex:`~ gap-2`},k=u({__name:`index`,props:{session:{}},setup(u){let k=u,A=r(()=>[{title:`Build ID`,value:k.session.id,icon:`i-ph-hash-duotone`},{title:`Created At`,value:new Date(k.session.meta.timestamp),icon:`i-ph-clock-duotone`},{title:`Build Duration`,value:k.session.buildDuration,icon:`i-ph-timer-duotone`,type:`duration`},{title:`Directory`,value:k.session.meta.cwd,icon:`i-ph-folder-duotone`},{title:`Total Modules`,value:k.session.modulesList.length,icon:`i-ph-files-duotone`},{title:`Plugins`,value:k.session.meta.plugins.length,icon:`i-ph-plugs-duotone`},{title:`Platform`,value:k.session.meta.platform,icon:`i-ph-cpu-duotone`,type:`badge`},{title:`Format`,value:k.session.meta.format,icon:`i-ph-file-duotone`,type:`badge`}]);return(r,j)=>{let M=h,N=_;return m(),c(`div`,x,[l(`div`,S,[s(M,{"btn-action":``,to:{path:`/`}},{default:t(()=>[...j[0]||=[l(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),a(` Re-select Session `,-1)]]),_:1})]),j[1]||=l(`div`,{op50:``,"mt-10":``},` Meta Info `,-1),l(`div`,C,[(m(!0),c(f,null,n(A.value,e=>(m(),c(f,{key:e.title},[l(`div`,{class:o(e.icon)},null,2),l(`div`,null,d(e.title),1),l(`div`,w,[e.value instanceof Date?(m(),c(`time`,{key:0,datetime:e.value.toISOString()},d(e.value.toLocaleString()),9,T)):e.type===`badge`?(m(),p(g,{key:1,text:String(e.value),py1:``},null,8,[`text`])):e.type===`duration`?(m(),p(y,{key:2,duration:+e.value},null,8,[`duration`])):typeof e.value==`number`?(m(),p(b,{key:3,number:e.value,py1:``,"rounded-full":``,"inline-block":``,"text-sm":``},null,8,[`number`])):(m(),c(`span`,E,d(e.value),1))])],64))),128))]),j[2]||=l(`div`,{op50:``,"mt-4":``},` Build Entries `,-1),l(`div`,D,[(m(!0),c(f,null,n(k.session.meta.inputs,e=>(m(),c(f,{key:e},[s(g,{text:e.name||``},null,8,[`text`]),s(N,{id:e.filename||``,session:u.session,link:!0},null,8,[`id`,`session`])],64))),128))]),j[3]||=l(`div`,{op50:``,"mt-4":``},` Views `,-1),l(`div`,O,[(m(!0),c(f,null,n(e(v),e=>(m(),c(f,{key:e.to},[e.category===`session`?(m(),p(M,{key:0,"btn-action":``,to:{path:e.to},flex:`~ col`,"min-w-40":``,p4:``},{default:t(()=>[l(`div`,{class:o(e.icon),"text-2xl":``},null,2),a(` `+d(e.title),1)]),_:2},1032,[`to`])):i(``,!0)],64))),128))])])}}});export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,Bt as t,Mt as n,T as r,U as i,at as a,ct as o,en as s,ft as c,kt as l,lt as u,nn as d,ot as f,pt as p,rn as m,st as h,wt as g}from"#entry";import{t as _}from"./CwTV8WCc.js";import{n as v,r as y}from"./Bjj8tBzd.js";import{n as b,t as x}from"./DKwP4h99.js";var S=[`textContent`],C=p({__name:`DisplayBadge`,props:{text:{},color:{type:[Boolean,Number],default:!0},as:{},size:{}},setup(e){let r=e,i=a(()=>!r.text||r.color===!1?{}:{color:typeof r.color==`number`?y(r.color):v(r.text),background:typeof r.color==`number`?y(r.color,.1):v(r.text,.1)}),o=a(()=>{switch(r.size||`sm`){case`sm`:return`px-1.5 text-11px leading-1.6em`}return``});return(a,c)=>(g(),h(n(e.as||`span`),{"ws-nowrap":``,rounded:``,class:s(o.value),style:d(i.value)},{default:t(()=>[l(a.$slots,`default`,{},()=>[f(`span`,{textContent:m(r.text)},null,8,S)])]),_:3},8,[`class`,`style`]))}}),w=/^[A-Za-z]:\//;function T(e=``){return e&&e.replace(/\\/g,`/`).replace(w,e=>e.toUpperCase())}var E=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,D=/^\/([A-Za-z]:)?$/;function O(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var k=function(...e){e=e.map(e=>T(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:O();!i||i.length===0||(t=`${i}/${t}`,n=j(i))}return t=A(t,!n),n&&!j(t)?`/${t}`:t.length>0?t:`.`};function A(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var j=function(e){return E.test(e)},M=function(e,t){let n=k(e).replace(D,`$1`).split(`/`),r=k(t).replace(D,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},N={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},P={"font-mono":``,"text-sm":``},F=p({__name:`ModuleId`,props:{id:{},badges:{type:Boolean},icon:{type:Boolean,default:!0},link:{type:[Boolean,String]},minimal:{type:Boolean},kind:{},session:{},cwd:{},disableTooltip:{type:Boolean,default:!1}},setup(d){let p=d,v=i(),y=window.location,S=a(()=>{if(!p.id)return``;let e=p.id.replace(/%2F/g,`/`),t=p.cwd||p.session.meta.cwd,n=t?M(t,e):e;return n.startsWith(`.`)||(n=`./${n}`),n.startsWith(`./`)||n.match(/^(?:\.\.\/){1,3}[^.]/)?n:e}),w=a(()=>`flex items-center`);return(i,a)=>{let T=b,E=x;return g(),h(n(d.link?e(_):`div`),{to:d.link?typeof d.link==`string`?d.link:{path:e(v).path,query:{...e(v).query,module:d.id,chunk:void 0},hash:e(y).hash}:void 0},{default:t(()=>[c(e(r),{"my-auto":``,"text-sm":``,"font-mono":``,block:``,"w-full":``,triggers:[`hover`],delay:1200,disabled:d.disableTooltip||(p.id?.length||0)<30,placement:`bottom-start`},{popper:t(()=>[f(`span`,P,m(p.id),1)]),default:t(()=>[d.id?(g(),u(`div`,{key:0,class:s(w.value)},[d.icon?(g(),h(T,{key:0,filename:d.id,"mr1.5":``},null,8,[`filename`])):o(``,!0),f(`span`,N,[c(E,{path:S.value,minimal:d.minimal},null,8,[`path`,`minimal`])]),l(i.$slots,`default`),d.kind?(g(),h(C,{key:1,class:`ml1`,text:d.kind},null,8,[`text`])):o(``,!0)],2)):o(``,!0),f(`div`,null,[l(i.$slots,`detail`)])]),_:3},8,[`disabled`])]),_:3},8,[`to`])}}}),I=Object.assign(F,{__name:`DisplayModuleId`});export{M as n,C as r,I as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,Bt as t,S as n,U as r,W as i,at as a,b as o,ft as s,lt as c,ot as l,pt as u,qt as d,rn as f,wt as p}from"#entry";import{t as m}from"./CwTV8WCc.js";import{i as h,l as g,o as _}from"./Bjj8tBzd.js";import{n as v,r as y,t as b}from"./DYuLlkFe.js";import{t as x}from"./DYSe0ST1.js";import{n as S,t as C}from"./DVE8edJM.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=u({__name:`FlatList`,props:{plugins:{}},setup(n){let i=r();return(r,a)=>{let o=x,u=m;return p(),c(`div`,w,[s(b,{items:n.plugins,"key-prop":`plugin_id`},{default:t(({item:n})=>[l(`div`,T,[s(u,{to:{path:e(i).path,query:{plugin:n.plugin_id}},"font-mono":``,border:`~ rounded base`,"w-full":``,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{default:t(()=>[l(`div`,E,` #`+f(n.plugin_id),1),l(`span`,D,[s(o,{name:n.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=u({__name:`plugins`,props:{session:{}},setup(e){let t=e,u=r(),m=i(),b=d({search:u.query.search||``,selected:u.query.plugin_types?S(u.query.plugin_types):null}),x=a(()=>[..._.filter(e=>t.session?.meta?.plugins?.some(t=>e.match.test(t.name))),h]),w=a(()=>{let e=t.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=o(()=>w.value,()=>new y(w.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),E=a(()=>b.value.search?T.value.search(b.value.search).map(e=>e.item):w.value);return n(b.value,e=>{let t={...u.query,search:e.search||void 0,plugin_types:e.selected||void 0};m.replace({query:C(t)})},{debounce:500}),(t,n)=>{let r=v,i=k;return p(),c(`div`,A,[l(`div`,j,[s(r,{modelValue:b.value,"onUpdate:modelValue":n[0]||=e=>b.value=e,rules:x.value},null,8,[`modelValue`,`rules`])]),l(`div`,M,[s(i,{plugins:E.value??[]},null,8,[`plugins`]),l(`div`,N,[l(`span`,P,f(E.value.length)+` of `+f(e.session?.meta?.plugins?.length||0),1)])])])}}});export{F as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{At as e,G as t,H as n,I as r,J as i,K as a,L as o,Q as s,R as c,St as l,V as u,W as d,X as f,Y as p,Yt as m,Z as h,at as g,gt as _,pt as v,q as y,qt as b,xt as x,z as S}from"#entry";var C=(...e)=>e.find(e=>e!==void 0);function w(s){let h=s.componentName||`NuxtLink`;function y(e){return typeof e==`string`&&e.startsWith(`#`)}function w(e,t,n){let r=n??s.trailingSlash;if(!e||r!==`append`&&r!==`remove`)return e;if(typeof e==`string`)return E(e,r);let i=`path`in e&&e.path!==void 0?e.path:t(e).path;return{...e,name:void 0,path:E(i,r)}}function T(t){let r=d(),o=a(),c=g(()=>!!t.target&&t.target!==`_self`),l=g(()=>{let e=t.to||t.href||``;return typeof e==`string`&&i(e,{acceptRelative:!0})}),f=e(`RouterLink`),m=f&&typeof f!=`string`?f.useLink:void 0,h=g(()=>{if(t.external)return!0;let e=t.to||t.href||``;return typeof e==`object`?!1:e===``||l.value}),_=g(()=>{let e=t.to||t.href||``;return h.value?e:w(e,r.resolve,t.trailingSlash)}),v=h.value?void 0:m?.({...t,to:_}),b=g(()=>{let e=t.trailingSlash??s.trailingSlash;if(!_.value||l.value||y(_.value))return _.value;if(h.value){let t=typeof _.value==`object`&&`path`in _.value?n(_.value):_.value;return E(typeof t==`object`?r.resolve(t).href:t,e)}return typeof _.value==`object`?r.resolve(_.value)?.href??null:E(p(o.app.baseURL,_.value),e)});return{to:_,hasTarget:c,isAbsoluteUrl:l,isExternal:h,href:b,isActive:v?.isActive??g(()=>_.value===r.currentRoute.value.path),isExactActive:v?.isExactActive??g(()=>_.value===r.currentRoute.value.path),route:v?.route??g(()=>r.resolve(_.value)),async navigate(e){await u(b.value,{replace:t.replace,external:h.value||c.value})}}}return v({name:h,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:T,setup(i,{slots:a}){let u=d(),{to:p,href:h,navigate:g,isExternal:v,hasTarget:w,isAbsoluteUrl:E}=T(i),O=m(!1),A=b(null),j=e=>{A.value=i.custom?e?.$el?.nextElementSibling:e?.$el};function M(e){return!O.value&&(typeof i.prefetchOn==`string`?i.prefetchOn===e:i.prefetchOn?.[e]??s.prefetchOn?.[e])&&(i.prefetch??s.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!==`_blank`&&!k()}async function N(e=t()){if(O.value)return;O.value=!0;let i=typeof p.value==`string`?p.value:v.value?n(p.value):u.resolve(p.value).fullPath,a=v.value?new URL(i,window.location.href).href:i;await Promise.all([e.hooks.callHook(`link:prefetch`,a).catch(()=>{}),!v.value&&!w.value&&r(p.value,u).catch(()=>{})])}if(M(`visibility`)){let e=t(),n,r=null;l(()=>{let t=D();o(()=>{n=S(()=>{A?.value?.tagName&&(r=t.observe(A.value,async()=>{r?.(),r=null,await N(e)}))})})}),x(()=>{n&&c(n),r?.(),r=null})}return()=>{if(!v.value&&!w.value&&!y(p.value)){let t={ref:j,to:p.value,activeClass:i.activeClass||s.activeClass,exactActiveClass:i.exactActiveClass||s.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};return i.custom||(M(`interaction`)&&(t.onPointerenter=N.bind(null,void 0),t.onFocus=N.bind(null,void 0)),O.value&&(t.class=i.prefetchedClass||s.prefetchedClass),t.rel=i.rel||void 0),_(e(`RouterLink`),t,a.default)}let t=i.target||null,n=C(i.noRel?``:i.rel,s.externalRelAttribute,E.value||w.value?`noopener noreferrer`:``)||null;return i.custom?a.default?a.default({href:h.value,navigate:g,prefetch:N,get route(){if(!h.value)return;let e=new URL(h.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return f(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:h.value}},rel:n,target:t,isExternal:v.value||w.value,isActive:!1,isExactActive:!1}):null:_(`a`,{ref:A,href:h.value||null,rel:n,target:t,onClick:e=>{if(!(v.value||w.value))return e.preventDefault(),i.replace?u.replace(h.value):u.push(h.value)}},a.default?.())}}})}var T=w(y);function E(e,t){let n=t===`append`?h:s;return i(e)&&!e.startsWith(`http`)?e:n(e,!0)}function D(){let e=t();if(e._observer)return e._observer;let n=null,r=new Map;return e._observer={observe:(e,t)=>(n||=new IntersectionObserver(e=>{for(let t of e){let e=r.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),r.set(e,t),n.observe(e),()=>{r.delete(e),n?.unobserve(e),r.size===0&&(n?.disconnect(),n=null)})}}var O=/2g/;function k(){let e=navigator.connection;return!!(e&&(e.saveData||O.test(e.effectiveType)))}export{T as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t=2){let n=[`Bytes`,`KB`,`MB`,`GB`,`TB`],r=Math.floor(Math.log(e)/Math.log(1024));return r===0?[e,`B`]:[(+(e/1024**r).toFixed(t)).toLocaleString(),n[r]]}function t(e,t){let n={name:t,children:{},items:[]};function r(e,t,i=n){if(!e)return;if(t.length<=1){i.items.push(e);return}let a=t.shift();i.children[a]||(i.children[a]={name:a,children:{},items:[]}),r(e,t,i.children[a])}e.forEach(e=>{r(e,e.path.split(/\//g).filter(Boolean))});function i(e){if(!e)return;let t=Object.values(e.children);if(t.length===1&&!e.items.length){let n=t[0];e.name=e.name?`${e.name}/${n.name}`:n.name,e.items=n.items,e.children=n.children,i(e)}else t.forEach(i)}return Object.values(n.children).forEach(i),n}function n(e){return new Date(e).toLocaleString(void 0,{hour12:!1,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,fractionalSecondDigits:3})}export{n,t as r,e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{at as e,en as t,gt as n,lt as r,pt as i,wt as a}from"#entry";import{s as o,t as s}from"./Bjj8tBzd.js";var c=[`title`],l=i({__name:`FileIcon`,props:{filename:{}},setup(n){let i=n,s=e(()=>o(i.filename));return(e,n)=>(a(),r(`div`,{"flex-none":``,"icon-catppuccin":``,title:s.value.description||s.value.name,class:t([s.value.icon])},null,10,c))}}),u=Object.assign(l,{__name:`DisplayFileIcon`}),d=i({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(e){return()=>{let t=e.path.split(/([?/&:=])/g),r=`path`,i=t.map(()=>[]),a=t.map(()=>[]),o=t.map(e=>n(`span`,{class:``},e)),c=new Set;return t.forEach((n,l)=>{if(n===`?`&&(r=`query`),r===`path`){if(n.match(/^\.+$/)||n===`/`?i[l]?.push(`op50`):(n===`node_modules`||n===`dist`||n===`lib`||n.match(/^\.\w/))&&i[l]?.push(`op60`),n===`node_modules`&&e.minimal)for(let e=0;e<l+2;e++)c.add(e);if(n===`.pnpm`&&(o[l]&&(o[l].children=`~`,i[l]?.push(`op25!`),i[l-1]?.push(`op25!`)),c.add(l+1),c.add(l+2),i[l+3]?.push(`op25!`),o[l+4]?.children===`node_modules`&&(c.add(l+3),c.add(l+4),i[l+5]?.push(`op25!`))),n===`:`&&(o[l-1]&&a[l-1]?.push(`color: ${s(t[l-1])}`),i[l]?.push(`op50`)),t[l-2]===`node_modules`&&!n.startsWith(`.`)){let e=`color: ${s(t[l])}`;a[l]?.push(e),n.startsWith(`@`)&&(a[l+1]?.push(e),a[l+2]?.push(e))}}r===`query`&&(n===`?`?i[l]?.push(`text-red-500 dark:text-red-400`):n===`&`&&i[l]?.push(`text-orange-500 dark:text-orange-400`),n===`=`?i[l]?.push(`text-orange-900 dark:text-orange-200 op50`):t[l+1]===`=`?i[l]?.push(`text-amber-900 dark:text-amber-200`):i[l]?.push(`text-orange-900 dark:text-orange-200`))}),o.forEach((e,t)=>{e.props&&(e.props.class=i[t]?.join(` `)??``,e.props.style=a[t]?.join(`;`)??``)}),Array.from(c).sort((e,t)=>t-e).forEach(e=>{o.splice(e,1)}),o}}});export{u as n,d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,Bt as t,It as n,Kt as r,Lt as i,Ot as a,Rt as o,U as s,Vt as c,W as l,_ as u,at as d,b as f,ct as p,dt as m,en as h,f as g,ft as _,jt as v,lt as y,nn as b,ot as x,pt as S,qt as C,r as w,rn as T,rt as E,st as D,t as O,wt as k}from"#entry";import{t as A}from"./CwTV8WCc.js";import{r as j}from"./D04G8HHr.js";import{n as M}from"./DKwP4h99.js";import{r as N,t as P}from"./DthxatUT.js";import{n as ee,r as F,t as I}from"./DYuLlkFe.js";import{a as L,c as R,i as z,n as B,o as V,r as H,t as te}from"./CI5axwdc.js";import{t as U}from"./C2A6ZQPm.js";import{t as ne}from"./wHgnrW62.js";var W={flex:`~ gap-1`},G={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},K={op50:``},q=S({__name:`ListItem`,props:{asset:{}},setup(e){return(n,r)=>{let i=M,a=A;return k(),D(a,{to:{query:{asset:e.asset.filename}},"w-full":``,"font-mono":``,border:`~ rounded base`,px2:``,py1:``,"text-sm":``,hover:`bg-active`},{default:t(()=>[x(`div`,W,[_(i,{filename:e.asset.filename},null,8,[`filename`]),x(`span`,G,[m(T(e.asset.filename)+` `,1),x(`span`,K,` (`+T(e.asset.chunk?.name?.replace(/[\[\]]/g,``))+`) `,1)])])]),_:1},8,[`to`])}}}),J=Object.assign(q,{__name:`AssetsListItem`}),Y={p4:``},X={flex:``,pb2:``},Z=S({__name:`List`,props:{assets:{}},setup(e){return(n,r)=>{let i=J;return k(),y(`div`,Y,[_(I,{items:e.assets,"key-prop":`filename`},{default:t(({item:e})=>[x(`div`,X,[_(i,{asset:e},null,8,[`asset`])])]),_:1},8,[`items`])])}}}),re=Object.assign(Z,{__name:`AssetsList`}),Q={flex:`~ gap-2`,p4:``},ie={op50:``},ae=S({__name:`Folder`,props:{assets:{},session:{}},setup(e){let n=e,r=d(()=>{let e=[];return n.assets.forEach(t=>{e.push({full:t.filename,path:t.filename})}),j(e,`Project`)}),i=d(()=>new Map(n.assets.map(e=>[e.filename,e])));return(n,a)=>{let o=U;return k(),y(`div`,Q,[e.assets?.length?(k(),D(o,{key:0,"flex-1":``,node:r.value,icon:`i-catppuccin:folder-dist catppuccin`,"icon-open":`i-catppuccin:folder-dist-open catppuccin`,link:!0,"link-query-key":`asset`},{extra:t(({node:e})=>[x(`span`,ie,` (`+T(i.value.get(e.full)?.chunk?.name?.replace(/[\[\]]/g,``))+`) `,1)]),_:1},8,[`node`])):p(``,!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=S({__name:`Sunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(t,{emit:r}){let i=t,s=r,l=n(`el`);return o(()=>l.value?.append(i.graph.el)),(n,r)=>{let i=B,o=N,u=v(`tooltip`);return k(),y(`div`,se,[x(`div`,{ref_key:`el`,ref:l,"w-500px":``},null,512),x(`div`,ce,[_(i,{border:`b base`,py2:``,selected:t.selected,options:t.graph.options,onSelect:r[0]||=e=>s(`select`,e)},null,8,[`selected`,`options`]),t.selected?(k(),y(`div`,le,[(k(!0),y(E,null,a(t.selected.children,n=>(k(),y(E,{key:n.id},[x(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>s(`select`,n)},[n.meta&&n.meta===t.selected?.meta?(k(),y(`span`,de,`(self)`)):(k(),y(`span`,fe,T(n.id),1))],8,ue),x(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>s(`select`,n)},[x(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:b({background:e(V)(t.graph.options.getColor?.(n)||`#000`),width:`${n.size/t.selected.size*100}%`})},null,4),_(o,{"text-xs":``,bytes:n.size,total:t.selected.size,"percent-ratio":3},null,8,[`bytes`,`total`]),n.children.length>0?c((k(),y(`div`,{key:0,title:`${n.children.length} dependencies`,"text-xs":``,"op-fade":``},[m(` (`+T(n.children.length)+`) `,1)],8,me)),[[u,`${n.children.length} dependencies`]]):p(``,!0)],8,pe)],64))),128))])):p(``,!0)])])}}}),ge=Object.assign(he,{__name:`AssetsSunburst`}),_e=S({__name:`Flamegraph`,props:{graph:{}},setup(e){let t=e,r=n(`el`);return o(()=>r.value?.append(t.graph.el)),(e,t)=>(k(),y(`div`,{ref_key:`el`,ref:r},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=S({__name:`assets`,props:{session:{}},setup(n){let o=n,c=r(u()),v=C({search:``}),b=l(),S=s(),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}=g(async()=>await j.value.call(`vite:rolldown:get-assets-list`,{session:o.session.id}),null),V=f(()=>M.value,()=>new F(M.value,{includeScore:!0,keys:[`filename`],ignoreLocation:!0,threshold:.4})),U=d(()=>v.value.search?V.value.search(v.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,b.replace({query:{asset:e.meta.filename}}))},onHover(e){e&&!S.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 i(()=>P.value.assetViewType,()=>{Q()}),(r,i)=>{let o=w,s=ee,l=re,u=oe,d=B,f=ge,g=ve,b=N,S=R;return e(I)?(k(),D(o,{key:0})):(k(),y(`div`,ye,[x(`div`,be,[_(s,{modelValue:v.value,"onUpdate:modelValue":i[0]||=e=>v.value=e,rules:[]},{default:t(()=>[x(`div`,$,[i[3]||=x(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(k(),y(E,null,a(A,t=>x(`button`,{key:t.value,"btn-action":``,class:h(e(P).assetViewType===t.value?`bg-active`:`grayscale op50`),onClick:e=>W(t.value)},[x(`div`,{class:h(t.icon)},null,2),m(` `+T(t.label),1)],10,xe)),64))])]),_:1},8,[`modelValue`])]),x(`div`,Se,[e(P).assetViewType===`list`?(k(),y(E,{key:0},[U.value?.length?(k(),D(l,{key:0,assets:U.value,session:n.session},null,8,[`assets`,`session`])):p(``,!0),x(`div`,Ce,[x(`span`,we,T(U.value.length)+` of `+T(e(M)?.length||0),1)])],64)):e(P).assetViewType===`folder`?(k(),y(E,{key:1},[U.value?.length?(k(),D(u,{key:0,assets:U.value,session:n.session},null,8,[`assets`,`session`])):p(``,!0)],64)):e(P).assetViewType===`treemap`?(k(),y(E,{key:2},[e(q)?(k(),D(ne,{key:0,graph:e(q),selected:e(Y),onSelect:i[1]||=t=>e(Z)(t)},{default:t(({selected:e,options:t,onSelect:n})=>[_(d,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:t,onSelect:n},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):p(``,!0)],64)):e(P).assetViewType===`sunburst`?(k(),y(E,{key:3},[e(q)?(k(),D(f,{key:0,graph:e(q),selected:e(Y),onSelect:i[2]||=t=>e(Z)(t)},null,8,[`graph`,`selected`])):p(``,!0)],64)):e(P).assetViewType===`flamegraph`?(k(),y(E,{key:4},[e(q)?(k(),D(g,{key:0,graph:e(q)},null,8,[`graph`])):p(``,!0)],64)):p(``,!0)]),_(S,{"hover-x":c.x,"hover-y":c.y},{default:t(()=>[e(J)?.meta?(k(),y(`div`,Te,[x(`div`,Ee,T(e(J).text),1),x(`div`,De,[_(b,{bytes:e(J).size,percent:!1},null,8,[`bytes`])])])):p(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{Oe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return e??=[],Array.isArray(e)?e:[e]}function t(e){return Object.keys(e).forEach(t=>e[t]===void 0?delete e[t]:{}),e}export{e as n,t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as e}from"./Bjj8tBzd.js";import{n as t}from"./CpJiZ7L0.js";import{n,t as r}from"./2NHbZxRd.js";function i(e){let t=e.match(/.*\/node_modules\/(.*)$/)?.[1];if(t)return t}const a=e((e,a)=>{let o=e.replace(/%2F/g,`/`).replace(/\\/g,`/`);if(n(o)||o.match(/^\w+:/)&&!e.match(/^[a-z]:\\/i))return{moduleName:o,path:o};let s=r(o),c=i(o);if(s&&c)return{moduleName:s,path:c};try{let e=t(a,o);return!e.startsWith(`./`)&&!e.startsWith(`../`)&&(e=`./${e}`),e.startsWith(`./.nuxt/`)&&(e=`#build${e.slice(7)}`),{path:e}}catch{return{path:o}}});export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Mt as e,gt as t,pt as n,st as r,wt as i}from"#entry";import{t as a}from"./Bjj8tBzd.js";var o=n({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(n){let o=n,s=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],c=[...s,`vite:`];function l(){let e=o.compact?c:s;for(let n of e)if(o.name.startsWith(n))return o.compact?t(`span`,o.name.slice(n.length)):t(`span`,[t(`span`,{class:`op50`},n),t(`span`,o.name.slice(n.length))]);let n=o.name.split(`:`);return n.length>1?t(`span`,[t(`span`,{style:{color:a(n[0])}},`${n[0]}:`),t(`span`,n.slice(1).join(`:`))]):t(`span`,o.name)}return(t,n)=>(i(),r(e(l)))}}),s=Object.assign(o,{__name:`DisplayPluginName`});export{s as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$t as e,At as t,Bt as n,Dt as r,Ht as i,Jt as a,Mt as o,Nt as s,Ot as c,Tt as l,Vt as u,Wt as d,bt as f,ct as p,en as m,et as h,ft as g,gt as _,ht as v,jt as y,kt as b,lt as x,nn as S,ot as C,pt as w,rn as T,rt as ee,st as E,tn as te,wt as D,y as ne,yt as O}from"#entry";function k(e){return Array.isArray?Array.isArray(e):ue(e)===`[object Array]`}var re=1/0;function ie(e){if(typeof e==`string`)return e;let t=e+``;return t==`0`&&1/e==-re?`-0`:t}function ae(e){return e==null?``:ie(e)}function A(e){return typeof e==`string`}function oe(e){return typeof e==`number`}function se(e){return e===!0||e===!1||le(e)&&ue(e)==`[object Boolean]`}function ce(e){return typeof e==`object`}function le(e){return ce(e)&&e!==null}function j(e){return e!=null}function M(e){return!e.trim().length}function ue(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var de=`Incorrect 'index' type`,fe=e=>`Invalid value for key ${e}`,pe=e=>`Pattern length exceeds max of ${e}.`,me=e=>`Missing ${e} property in key`,he=e=>`Property 'weight' in key '${e}' must be a positive integer`,ge=Object.prototype.hasOwnProperty,_e=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=ve(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function ve(e){let t=null,n=null,r=null,i=1,a=null;if(A(e)||k(e))r=e,t=ye(e),n=N(e);else{if(!ge.call(e,`name`))throw Error(me(`name`));let o=e.name;if(r=o,ge.call(e,`weight`)&&(i=e.weight,i<=0))throw Error(he(o));t=ye(o),n=N(o),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function ye(e){return k(e)?e:e.split(`.`)}function N(e){return k(e)?e.join(`.`):e}function be(e,t){let n=[],r=!1,i=(e,t,a)=>{if(j(e))if(!t[a])n.push(e);else{let o=e[t[a]];if(!j(o))return;if(a===t.length-1&&(A(o)||oe(o)||se(o)))n.push(ae(o));else if(k(o)){r=!0;for(let e=0,n=o.length;e<n;e+=1)i(o[e],t,a+1)}else t.length&&i(o,t,a+1)}};return i(e,A(t)?t.split(`.`):t,0),r?n:n[0]}var xe={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Se={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Ce={location:0,threshold:.6,distance:100},we={useExtendedSearch:!1,getFn:be,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},P={...Se,...xe,...Ce,...we},Te=/[^ ]+/g;function Ee(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(Te).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var F=class{constructor({getFn:e=P.getFn,fieldNormWeight:t=P.fieldNormWeight}={}){this.norm=Ee(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,A(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();A(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!j(e)||M(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(j(i)){if(k(i)){let e=[],t=[{nestedArrIndex:-1,value:i}];for(;t.length;){let{nestedArrIndex:n,value:r}=t.pop();if(j(r))if(A(r)&&!M(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else k(r)&&r.forEach((e,n)=>{t.push({nestedArrIndex:n,value:e})})}n.$[r]=e}else if(A(i)&&!M(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}};function De(e,t,{getFn:n=P.getFn,fieldNormWeight:r=P.fieldNormWeight}={}){let i=new F({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(ve)),i.setSources(t),i.create(),i}function Oe(e,{getFn:t=P.getFn,fieldNormWeight:n=P.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new F({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function I(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=P.distance,ignoreLocation:a=P.ignoreLocation}={}){let o=t/e.length;if(a)return o;let s=Math.abs(r-n);return i?o+s/i:s?1:o}function ke(e=[],t=P.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var L=32;function Ae(e,t,n,{location:r=P.location,distance:i=P.distance,threshold:a=P.threshold,findAllMatches:o=P.findAllMatches,minMatchCharLength:s=P.minMatchCharLength,includeMatches:c=P.includeMatches,ignoreLocation:l=P.ignoreLocation}={}){if(t.length>L)throw Error(pe(L));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=s>1||c,g=h?Array(d):[],_;for(;(_=e.indexOf(t,m))>-1;){let e=I(t,{currentLocation:_,expectedLocation:f,distance:i,ignoreLocation:l});if(p=Math.min(e,p),m=_+u,h){let e=0;for(;e<u;)g[_+e]=1,e+=1}}m=-1;let v=[],y=1,b=u+d,x=1<<u-1;for(let r=0;r<u;r+=1){let a=0,s=b;for(;a<s;)I(t,{errors:r,currentLocation:f+s,expectedLocation:f,distance:i,ignoreLocation:l})<=p?a=s:b=s,s=Math.floor((b-a)/2+a);b=s;let c=Math.max(1,f-s+1),_=o?d:Math.min(f+s,d)+u,S=Array(_+2);S[_+1]=(1<<r)-1;for(let a=_;a>=c;--a){let o=a-1,s=n[e.charAt(o)];if(h&&(g[o]=+!!s),S[a]=(S[a+1]<<1|1)&s,r&&(S[a]|=(v[a+1]|v[a])<<1|1|v[a+1]),S[a]&x&&(y=I(t,{errors:r,currentLocation:o,expectedLocation:f,distance:i,ignoreLocation:l}),y<=p)){if(p=y,m=o,m<=f)break;c=Math.max(1,2*f-m)}}if(I(t,{errors:r+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:l})>p)break;v=S}let S={isMatch:m>=0,score:Math.max(.001,y)};if(h){let e=ke(g,s);e.length?c&&(S.indices=e):S.isMatch=!1}return S}function je(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}var R=String.prototype.normalize?(e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``)):(e=>e),Me=class{constructor(e,{location:t=P.location,threshold:n=P.threshold,distance:r=P.distance,includeMatches:i=P.includeMatches,findAllMatches:a=P.findAllMatches,minMatchCharLength:o=P.minMatchCharLength,isCaseSensitive:s=P.isCaseSensitive,ignoreDiacritics:c=P.ignoreDiacritics,ignoreLocation:l=P.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?R(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:je(e),startIndex:t})},d=this.pattern.length;if(d>L){let e=0,t=d%L,n=d-t;for(;e<n;)u(this.pattern.substr(e,L),e),e+=L;if(t){let e=d-L;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?R(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=Ae(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&(u=[...u,...g])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=u),p}},z=class{constructor(e){this.pattern=e}static isMultiMatch(e){return Ne(e,this.multiRegex)}static isSingleMatch(e){return Ne(e,this.singleRegex)}search(){}};function Ne(e,t){let n=e.match(t);return n?n[1]:null}var Pe=class extends z{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Fe=class extends z{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Ie=class extends z{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Le=class extends z{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Re=class extends z{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},ze=class extends z{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Be=class extends z{constructor(e,{location:t=P.location,threshold:n=P.threshold,distance:r=P.distance,includeMatches:i=P.includeMatches,findAllMatches:a=P.findAllMatches,minMatchCharLength:o=P.minMatchCharLength,isCaseSensitive:s=P.isCaseSensitive,ignoreDiacritics:c=P.ignoreDiacritics,ignoreLocation:l=P.ignoreLocation}={}){super(e),this._bitapSearch=new Me(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},Ve=class extends z{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:a?0:1,indices:r}}},B=[Pe,Ve,Ie,Le,ze,Re,Fe,Be],He=B.length,Ue=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,We=`|`;function Ge(e,t={}){return e.split(We).map(e=>{let n=e.trim().split(Ue).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<He;){let e=B[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<He;){let e=B[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var Ke=new Set([Be.type,Ve.type]),qe=class{constructor(e,{isCaseSensitive:t=P.isCaseSensitive,ignoreDiacritics:n=P.ignoreDiacritics,includeMatches:r=P.includeMatches,minMatchCharLength:i=P.minMatchCharLength,ignoreLocation:a=P.ignoreLocation,findAllMatches:o=P.findAllMatches,location:s=P.location,threshold:c=P.threshold,distance:l=P.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?R(e):e,this.pattern=e,this.query=Ge(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?R(e):e;let a=0,o=[],s=0;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:c,indices:l,score:u}=r.search(e);if(c){if(a+=1,s+=u,n){let e=r.constructor.type;Ke.has(e)?o=[...o,...l]:o.push(l)}}else{s=0,a=0,o.length=0;break}}if(a){let e={isMatch:!0,score:s/a};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}},V=[];function Je(...e){V.push(...e)}function H(e,t){for(let n=0,r=V.length;n<r;n+=1){let r=V[n];if(r.condition(e,t))return new r(e,t)}return new Me(e,t)}var U={AND:`$and`,OR:`$or`},W={PATH:`$path`,PATTERN:`$val`},G=e=>!!(e[U.AND]||e[U.OR]),Ye=e=>!!e[W.PATH],Xe=e=>!k(e)&&ce(e)&&!G(e),Ze=e=>({[U.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Qe(e,t,{auto:n=!0}={}){let r=e=>{let i=Object.keys(e),a=Ye(e);if(!a&&i.length>1&&!G(e))return r(Ze(e));if(Xe(e)){let r=a?e[W.PATH]:i[0],o=a?e[W.PATTERN]:e[r];if(!A(o))throw Error(fe(r));let s={keyId:N(r),pattern:o};return n&&(s.searcher=H(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];k(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return G(e)||(e=Ze(e)),r(e)}function $e(e,{ignoreFieldNorm:t=P.ignoreFieldNorm}){e.forEach(e=>{let n=1;e.matches.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),e.score=n})}function et(e,t){let n=e.matches;t.matches=[],j(n)&&n.forEach(e=>{if(!j(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function tt(e,t){t.score=e.score}function nt(e,t,{includeMatches:n=P.includeMatches,includeScore:r=P.includeScore}={}){let i=[];return n&&i.push(et),r&&i.push(tt),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var K=class{constructor(e,t={},n){this.options={...P,...t},this.options.useExtendedSearch,this._keyStore=new _e(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof F))throw Error(de);this._myIndex=t||De(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){j(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let n=0,r=this._docs.length;n<r;n+=1){let i=this._docs[n];e(i,n)&&(this.removeAt(n),--n,--r,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:n,includeScore:r,shouldSort:i,sortFn:a,ignoreFieldNorm:o}=this.options,s=A(e)?A(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return $e(s,{ignoreFieldNorm:o}),i&&s.sort(a),oe(t)&&t>-1&&(s=s.slice(0,t)),nt(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){let t=H(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:e,i:n,n:i})=>{if(!j(e))return;let{isMatch:a,score:o,indices:s}=t.searchIn(e);a&&r.push({item:e,idx:n,matches:[{score:o,value:e,norm:i,indices:s}]})}),r}_searchLogical(e){let t=Qe(e,this.options),n=(e,t,r)=>{if(!e.children){let{keyId:n,searcher:i}=e,a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return a&&a.length?[{idx:r,item:t,matches:a}]:[]}let i=[];for(let a=0,o=e.children.length;a<o;a+=1){let o=e.children[a],s=n(o,t,r);if(s.length)i.push(...s);else if(e.operator===U.AND)return[]}return i},r=this._myIndex.records,i={},a=[];return r.forEach(({$:e,i:r})=>{if(j(e)){let o=n(t,e,r);o.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},a.push(i[r])),o.forEach(({matches:e})=>{i[r].matches.push(...e)}))}}),a}_searchObjectList(e){let t=H(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:e,i:r})=>{if(!j(e))return;let a=[];n.forEach((n,r)=>{a.push(...this._findMatches({key:n,value:e[r],searcher:t}))}),a.length&&i.push({idx:r,item:e,matches:a})}),i}_findMatches({key:e,value:t,searcher:n}){if(!j(t))return[];let r=[];if(k(t))t.forEach(({v:t,i,n:a})=>{if(!j(t))return;let{isMatch:o,score:s,indices:c}=n.searchIn(t);o&&r.push({score:s,key:e,value:t,idx:i,norm:a,indices:c})});else{let{v:i,n:a}=t,{isMatch:o,score:s,indices:c}=n.searchIn(i);o&&r.push({score:s,key:e,value:i,norm:a,indices:c})}return r}};K.version=`7.1.0`,K.createIndex=De,K.parseIndex=Oe,K.config=P,K.parseQuery=Qe,Je(qe);var rt={flex:`col gap-2`,"max-w-90vw":``,"min-w-30vw":``,border:`~ base rounded-xl`,"bg-glass":``},it={key:0,class:`flex items-center`},at=[`title`],ot=[`checked`,`onChange`],st={"text-sm":``},ct=[`title`],lt={key:0,op75:``,"i-ph-selection-slash-duotone":``},ut={key:1,op75:``,"i-ph-selection-plus-duotone":``},dt=w({__name:`SearchPanel`,props:{rules:{},modelValue:{default:()=>({search:``,selected:null})},selectedContainerClass:{default:``}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=ne(r,`modelValue`,n);function a(e){let{modelValue:t}=r;return t?.selected?t.selected.includes(e.name):!0}function o(e){let{rules:t}=r;i?.value?.selected||(i.value.selected=t.map(e=>e.name)),i.value.selected.includes(e.name)?i.value.selected=i.value.selected.filter(t=>t!==e.name):i.value.selected.push(e.name),i?.value?.selected.length===r.rules.length&&(i.value.selected=null)}function s(){i?.value?.selected?.length===r.rules.length?i.value.selected=null:i?.value?.selected==null?i.value.selected=[]:i.value.selected=r.rules.map(e=>e.name).filter(e=>!i.value.selected?.includes(e))}function l(){i?.value?.selected?.length===0?i.value.selected=null:i.value.selected=[]}return(n,r)=>(D(),x(`div`,rt,[b(n.$slots,`search`,{},()=>[t.modelValue.search===!1?p(``,!0):(D(),x(`div`,it,[u(C(`input`,{"onUpdate:modelValue":r[0]||=t=>e(i).search=t,p2:``,px4:``,"w-full":``,style:{outline:`none`},placeholder:`Search`},null,512),[[h,e(i).search]]),b(n.$slots,`search-end`)]))]),t.rules.length?(D(),x(`div`,{key:0,class:m(t.selectedContainerClass),flex:`~ gap-2 wrap`,p2:``,border:`t base`},[(D(!0),x(ee,null,c(t.rules,e=>(D(),x(`label`,{key:e.name,border:`~ base rounded-md`,px2:``,py1:``,flex:`~ items-center gap-1`,"select-none":``,title:e.description,class:m(a(e)?`bg-active`:`grayscale op50`)},[C(`input`,{type:`checkbox`,mr1:``,checked:a(e),onChange:t=>o(e)},null,40,ot),C(`div`,{class:m(e.icon),"icon-catppuccin":``},null,2),C(`div`,st,T(e.description||e.name),1)],10,at))),128)),C(`button`,{"rounded-md":``,p1:``,flex:`~ items-center gap-1`,"select-none":``,hover:`bg-active`,title:`Reverse Selection`,onClick:s},[...r[1]||=[C(`div`,{op75:``,"i-ph-selection-background-duotone":``},null,-1)]]),C(`button`,{"rounded-md":``,p1:``,flex:`~ items-center gap-1`,"select-none":``,hover:`bg-active`,title:e(i).selected?.length===0?`Select All`:`Unselect All`,onClick:l},[e(i).selected?.length===0?(D(),x(`div`,lt)):(D(),x(`div`,ut))],8,ct)],2)):p(``,!0),b(n.$slots,`default`)]))}}),ft=Object.assign(dt,{__name:`DataSearchPanel`});function pt(){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 q;function J(){J.init||(J.init=!0,q=pt()!==-1)}var Y={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){J(),f(()=>{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`,q&&this.$el.appendChild(e),e.data=`about:blank`,q||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&&(!q&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},mt=i(`data-v-b329ee4c`);r(`data-v-b329ee4c`);var ht={class:`resize-observer`,tabindex:`-1`};l(),Y.render=mt((e,t,n,r,i,a)=>(D(),E(`div`,ht))),Y.__scopeId=`data-v-b329ee4c`,Y.__file=`src/components/ResizeObserver.vue`;function X(e){"@babel/helpers - typeof";return X=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},X(e)}function gt(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t,n){return t&&_t(e.prototype,t),n&&_t(e,n),e}function yt(e){return bt(e)||xt(e)||St(e)||Ct()}function bt(e){if(Array.isArray(e))return Z(e)}function xt(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function St(e,t){if(e){if(typeof e==`string`)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z(e,t)}}function Z(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ct(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wt(e){return typeof e==`function`?{callback:e}:e}function Tt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=function(o){if(a=[...arguments].slice(1),!(r&&o===i)){var s=n.leading;typeof s==`function`&&(s=s(o,i)),(!r||o!==i)&&s&&e.apply(void 0,[o].concat(yt(a))),i=o,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[o].concat(yt(a))),r=0},t)}};return o._clear=function(){clearTimeout(r),r=null},o}function Et(e,t){if(e===t)return!0;if(X(e)===`object`){for(var n in e)if(!Et(e[n],t[n]))return!1;return!0}return!1}var Dt=function(){function e(t,n,r){gt(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return vt(e,[{key:`createObserver`,value:function(e,t){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=wt(e),this.callback=function(e,t){n.options.callback(e,t),e&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var r=(this.options.throttleOptions||{}).leading;this.callback=Tt(this.callback,this.options.throttle,{leading:function(e){return r===`both`||r===`visible`&&e||r===`hidden`&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(e){var t=e[0];if(e.length>1){var r=e.find(function(e){return e.isIntersecting});r&&(t=r)}if(n.callback){var i=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(i===n.oldResult)return;n.oldResult=i,n.callback(i,t)}},this.options.intersection),f(function(){n.observer&&n.observer.observe(n.el)})}}},{key:`destroyObserver`,value:function(){this.observer&&=(this.observer.disconnect(),null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:`threshold`,get:function(){return this.options.intersection&&typeof this.options.intersection.threshold==`number`?this.options.intersection.threshold:0}}]),e}();function Ot(e,t,n){var r=t.value;r&&(typeof IntersectionObserver>`u`?console.warn(`[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill`):e._vue_visibilityState=new Dt(e,r,n))}function kt(e,t,n){var r=t.value,i=t.oldValue;if(!Et(r,i)){var a=e._vue_visibilityState;if(!r){At(e);return}a?a.createObserver(r,n):Ot(e,{value:r},n)}}function At(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var jt={beforeMount:Ot,updated:kt,unmounted:At};function Mt(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get(`*`)||[]).slice().map(function(e){e(t,n)})}}}var Nt={itemsLimit:1e3},Pt=/(auto|scroll)/;function Ft(e,t){return e.parentNode===null?t:Ft(e.parentNode,t.concat([e]))}var Q=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},It=function(e){return Q(e,`overflow`)+Q(e,`overflow-y`)+Q(e,`overflow-x`)},Lt=function(e){return Pt.test(It(e))};function Rt(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Ft(e.parentNode,[]),n=0;n<t.length;n+=1)if(Lt(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function $(e){"@babel/helpers - typeof";return $=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$(e)}var zt={items:{type:Array,required:!0},keyField:{type:String,default:`id`},direction:{type:String,default:`vertical`,validator:function(e){return[`vertical`,`horizontal`].includes(e)}},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`}};function Bt(){return this.items.length&&$(this.items[0])!==`object`}var Vt=!1;if(typeof window<`u`){Vt=!1;try{var Ht=Object.defineProperty({},`passive`,{get:function(){Vt=!0}});window.addEventListener(`test`,null,Ht)}catch{}}var Ut=0,Wt={name:`RecycleScroller`,components:{ResizeObserver:Y},directives:{ObserveVisibility:jt},props:{...zt,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:`size`},typeField:{type:String,default:`type`},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`},listClass:{type:[String,Object,Array],default:``},itemClass:{type:[String,Object,Array],default:``}},emits:[`resize`,`visible`,`hidden`,`update`,`scroll-start`,`scroll-end`],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){let e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,r=this.minItemSize,i=1e4,a=0,o;for(let s=0,c=t.length;s<c;s++)o=t[s][n]||r,o<i&&(i=o),a+=o,e[s]={accumulator:a,size:o};return this.$_computedMinItemSize=i,e}return[]},simpleArray:Bt,itemIndexByKey(){let{keyField:e,items:t}=this,n={};for(let r=0,i=t.length;r<i;r++)n[t[r][e]]=r;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error(`[vue-recycle-scroller] You must provide an itemSize when using gridItems`)},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){let e=this.$_lastUpdateScrollPosition;typeof e==`number`&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,r,i){let o=a({item:n,position:0,nr:d({id:Ut++,index:t,used:!0,key:r,type:i})});return e.push(o),o},unuseView(e,t=!1){let n=this.$_unusedViews,r=e.nr.type,i=n.get(r);i||(i=[],n.set(r,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit(`resize`),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;let e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;let{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});e(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&e()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit(`visible`),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit(`hidden`))},updateVisibleItems(e,t=!1){let n=this.itemSize,r=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,o=this.typeField,s=this.simpleArray?null:this.keyField,c=this.items,l=c.length,u=this.sizes,d=this.$_views,f=this.$_unusedViews,p=this.pool,m=this.itemIndexByKey,h,g,_,v,y;if(!l)h=g=v=y=_=0;else if(this.$_prerender)h=v=0,g=y=Math.min(this.prerender,c.length),_=null;else{let e=this.getScroll();if(t){let t=e.start-this.$_lastUpdateScrollPosition;if(t<0&&(t=-t),n===null&&t<a||t<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=e.start;let i=this.buffer;e.start-=i,e.end+=i;let o=0;if(this.$refs.before&&(o=this.$refs.before.scrollHeight,e.start-=o),this.$refs.after){let t=this.$refs.after.scrollHeight;e.end+=t}if(n===null){let t,n=0,r=l-1,i=~~(l/2),a;do a=i,t=u[i].accumulator,t<e.start?n=i:i<l-1&&u[i+1].accumulator>e.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),h=i,_=u[l-1].accumulator,g=i;g<l&&u[g].accumulator<e.end;g++);for(g===-1?g=c.length-1:(g++,g>l&&(g=l)),v=h;v<l&&o+u[v].accumulator<e.start;v++);for(y=v;y<l&&o+u[y].accumulator<e.end;y++);}else{h=~~(e.start/n*r);let t=h%r;h-=t,g=Math.ceil(e.end/n*r),v=Math.max(0,Math.floor((e.start-o)/n*r)),y=Math.floor((e.end-o)/n*r),h<0&&(h=0),g>l&&(g=l),v<0&&(v=0),y>l&&(y=l),_=Math.ceil(l/r)*n}}g-h>Nt.itemsLimit&&this.itemsLimitError(),this.totalSize=_;let b,x=h<=this.$_endIndex&&g>=this.$_startIndex;if(x)for(let t=0,n=p.length;t<n;t++)b=p[t],b.nr.used&&(e&&(b.nr.index=m[b.item[s]]),(b.nr.index==null||b.nr.index<h||b.nr.index>=g)&&this.unuseView(b));let S=x?null:new Map,C,w,T;for(let e=h;e<g;e++){C=c[e];let t=s?C[s]:C;if(t==null)throw Error(`Key is ${t} on item (keyField is '${s}')`);if(b=d.get(t),!n&&!u[e].size){b&&this.unuseView(b);continue}w=C[o];let a=f.get(w),l=!1;if(!b)x?b=a&&a.length?a.pop():this.addView(p,e,C,t,w):(T=S.get(w)||0,(!a||T>=a.length)&&(b=this.addView(p,e,C,t,w),this.unuseView(b,!0),a=f.get(w)),b=a[T],S.set(w,T+1)),d.delete(b.nr.key),b.nr.used=!0,b.nr.index=e,b.nr.key=t,b.nr.type=w,d.set(t,b),l=!0;else if(!b.nr.used&&(b.nr.used=!0,l=!0,a)){let e=a.indexOf(b);e!==-1&&a.splice(e,1)}b.item=C,l&&(e===c.length-1&&this.$emit(`scroll-end`),e===0&&this.$emit(`scroll-start`)),n===null?(b.position=u[e-1].accumulator,b.offset=0):(b.position=Math.floor(e/r)*n,b.offset=e%r*i)}return this.$_startIndex=h,this.$_endIndex=g,this.emitUpdate&&this.$emit(`update`,h,g,v,y),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=Rt(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){let{$el:e,direction:t}=this,n=t===`vertical`,r;if(this.pageMode){let t=e.getBoundingClientRect(),i=n?t.height:t.width,a=-(n?t.top:t.left),o=n?window.innerHeight:window.innerWidth;a<0&&(o+=a,a=0),a+o>i&&(o=i-a),r={start:a,end:a+o}}else r=n?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener(`scroll`,this.handleScroll,Vt?{passive:!0}:!1),this.listenerTarget.addEventListener(`resize`,this.handleResize)},removeListeners(){this.listenerTarget&&=(this.listenerTarget.removeEventListener(`scroll`,this.handleScroll),this.listenerTarget.removeEventListener(`resize`,this.handleResize),null)},scrollToItem(e){let t,n=this.gridItems||1;t=this.itemSize===null?e>0?this.sizes[e-1].accumulator:0:Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){let t=this.direction===`vertical`?{scroll:`scrollTop`,start:`top`}:{scroll:`scrollLeft`,start:`left`},n,r,i;if(this.pageMode){let a=Rt(this.$el),o=a.tagName===`HTML`?0:a[t.scroll],s=a.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[t.start]-s[t.start];n=a,r=t.scroll,i=e+o+c}else n=this.$el,r=t.scroll,i=e;n[r]=i},itemsLimitError(){throw setTimeout(()=>{console.log(`It seems the scroller element isn't scrolling, so it tries to render all the items at once.`,`Scroller:`,this.$el),console.log(`Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.`)}),Error(`Rendered items limit reached`)},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}},Gt={key:0,ref:`before`,class:`vue-recycle-scroller__slot`},Kt={key:1,ref:`after`,class:`vue-recycle-scroller__slot`};function qt(e,r,i,a,l,d){let f=t(`ResizeObserver`),h=y(`observe-visibility`);return u((D(),x(`div`,{class:m([`vue-recycle-scroller`,{ready:l.ready,"page-mode":i.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:r[0]||=(...e)=>d.handleScroll&&d.handleScroll(...e)},[e.$slots.before?(D(),x(`div`,Gt,[b(e.$slots,`before`)],512)):p(`v-if`,!0),(D(),E(o(i.listTag),{ref:`wrapper`,style:S({[e.direction===`vertical`?`minHeight`:`minWidth`]:l.totalSize+`px`}),class:m([`vue-recycle-scroller__item-wrapper`,i.listClass])},{default:n(()=>[(D(!0),x(ee,null,c(l.pool,t=>(D(),E(o(i.itemTag),O({key:t.nr.id,style:l.ready?{transform:`translate${e.direction===`vertical`?`Y`:`X`}(${t.position}px) translate${e.direction===`vertical`?`X`:`Y`}(${t.offset}px)`,width:i.gridItems?`${e.direction===`vertical`&&i.itemSecondarySize||i.itemSize}px`:void 0,height:i.gridItems?`${e.direction===`horizontal`&&i.itemSecondarySize||i.itemSize}px`:void 0}:null,class:[`vue-recycle-scroller__item-view`,[i.itemClass,{hover:!i.skipHover&&l.hoverKey===t.nr.key}]]},s(i.skipHover?{}:{mouseenter:()=>{l.hoverKey=t.nr.key},mouseleave:()=>{l.hoverKey=null}})),{default:n(()=>[b(e.$slots,`default`,{item:t.item,index:t.nr.index,active:t.nr.used})]),_:2},1040,[`style`,`class`]))),128)),b(e.$slots,`empty`)]),_:3},8,[`style`,`class`])),e.$slots.after?(D(),x(`div`,Kt,[b(e.$slots,`after`)],512)):p(`v-if`,!0),g(f,{onNotify:d.handleResize},null,8,[`onNotify`])],34)),[[h,d.handleVisibilityChange]])}Wt.render=qt,Wt.__file=`src/components/RecycleScroller.vue`;var Jt={name:`DynamicScroller`,components:{RecycleScroller:Wt},provide(){return typeof ResizeObserver<`u`&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(let t of e)if(t.target&&t.target.$_vs_onResize){let e,n;if(t.borderBoxSize){let r=t.borderBoxSize[0];e=r.inlineSize,n=r.blockSize}else e=t.contentRect.width,n=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,e,n)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...zt,minItemSize:{type:[Number,String],required:!0}},emits:[`resize`,`visible`],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Bt,itemsWithSize(){let e=[],{items:t,keyField:n,simpleArray:r}=this,i=this.vscrollData.sizes,a=t.length;for(let o=0;o<a;o++){let a=t[o],s=r?o:a[n],c=i[s];c===void 0&&!this.$_undefinedMap[s]&&(c=0),e.push({item:a,id:s,size:c})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){let n=this.$el.scrollTop,r=0,i=0,a=Math.min(e.length,t.length);for(let o=0;o<a&&!(r>=n);o++)r+=t[o].size||this.minItemSize,i+=e[o].size||this.minItemSize;let o=i-r;o!==0&&(this.$el.scrollTop+=o)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=Mt()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit(`resize`)},onScrollerVisible(){this.$_events.emit(`vscroll:update`,{force:!1}),this.$emit(`visible`)},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit(`vscroll:update`,{force:!0})},scrollToItem(e){let t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){let n=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;let e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;let t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function Yt(e,r,i,a,o,s){let c=t(`RecycleScroller`);return D(),E(c,O({ref:`scroller`,items:s.itemsWithSize,"min-item-size":i.minItemSize,direction:e.direction,"key-field":`id`,"list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:s.onScrollerResize,onVisible:s.onScrollerVisible}),{default:n(({item:t,index:n,active:r})=>[b(e.$slots,`default`,te(v({item:t.item,index:n,active:r,itemWithSize:t})))]),before:n(()=>[b(e.$slots,`before`)]),after:n(()=>[b(e.$slots,`after`)]),empty:n(()=>[b(e.$slots,`empty`)]),_:3},16,[`items`,`min-item-size`,`direction`,`list-tag`,`item-tag`,`onResize`,`onVisible`])}Jt.render=Yt,Jt.__file=`src/components/DynamicScroller.vue`;var Xt={name:`DynamicScrollerItem`,inject:[`vscrollData`,`vscrollParent`,`vscrollResizeObserver`],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:`div`}},emits:[`resize`],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:`updateWatchData`,id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){let n=this.vscrollData.sizes[t],r=this.vscrollData.sizes[e];n!=null&&n!==r&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(let e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on(`vscroll:update`,this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off(`vscroll:update`,this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch(`item`,()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&=(this.$_watchData(),null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){let e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applyWidthHeight(e,t)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){let n=~~(this.vscrollParent.direction===`vertical`?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit(`resize`,this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||=(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,!0))},unobserveSize(){this.vscrollResizeObserver&&(this.$_sizeObserved&&=(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,!1))},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return _(this.tag,this.$slots.default())}};Xt.__file=`src/components/DynamicScrollerItem.vue`;var Zt=w({__name:`DataVirtualList`,props:{items:{},keyProp:{}},setup(t){return(r,i)=>(D(),E(e(Jt),{items:t.items,"min-item-size":30,"key-field":t.keyProp,"page-mode":``},{default:n(({item:i,active:a,index:o})=>[g(e(Xt),{item:i,active:a,"data-index":o},{default:n(()=>[b(r.$slots,`default`,O({key:i[t.keyProp]},{item:i,index:o,active:a}))]),_:2},1032,[`item`,`active`,`data-index`])]),_:3},8,[`items`,`key-field`]))}});export{ft as n,K as r,Zt as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{left:0;position:absolute;top:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{background-color:transparent;border:none;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{display:block;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as e,lt as t,ot as n,rn as r,wt as i}from"#entry";import{t as a}from"./C3MbbcWQ.js";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=a({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:500},statusText:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(a){let d=a;return e({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(e,d)=>(i(),t(`div`,o,[n(`div`,s,[n(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(a.status)},null,8,c),n(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(a.statusText)},null,8,l),n(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-4420493f`]]);export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,Bt as t,Ot as n,S as r,U as i,W as a,at as o,b as s,bt as c,ct as l,dt as u,en as d,ft as f,lt as p,ot as m,pt as h,qt as g,rn as _,rt as v,st as y,ut as b,wt as x}from"#entry";import"./CwTV8WCc.js";import{r as S}from"./D04G8HHr.js";import{a as C,s as w}from"./Bjj8tBzd.js";import{t as T}from"./CpJiZ7L0.js";import{t as E}from"./DWqpanCf.js";import{t as D}from"./DthxatUT.js";import{t as O}from"./HD_PrFS8.js";import{n as k}from"./CANF8ydB.js";import{n as A,r as j,t as M}from"./DYuLlkFe.js";import{t as N}from"./DYSe0ST1.js";import{t as P}from"./C2A6ZQPm.js";import{n as ee,r as F,t as I}from"./DhDTn9QE.js";import{n as L,t as R}from"./DVE8edJM.js";var z={flex:`~ col gap-2`,p4:``},B=[`onClick`],V=h({__name:`FlatList`,props:{session:{},modules:{},disableTooltip:{type:Boolean,default:!1},link:{type:Boolean,default:!0}},emits:[`select`],setup(e,{emit:n}){let r=n;return(n,i)=>{let a=T;return x(),p(`div`,z,[f(M,{items:e.modules,"key-prop":`id`},{default:t(({item:t})=>[m(`div`,{flex:``,pb2:``,onClick:e=>r(`select`,t)},[f(a,{id:t.id,session:e.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:e.link,"disable-tooltip":e.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=h({__name:`DetailedList`,props:{session:{},modules:{}},setup(e){let r=e,i=o(()=>{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,c=T;return x(),p(`div`,U,[f(M,{items:e.modules,"key-prop":`id`},{default:t(({item:r})=>[m(`div`,W,[f(c,{id:r.id,session:e.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},{detail:t(()=>[m(`div`,G,[m(`ul`,K,[(x(!0),p(v,null,n(i.value.get(r.id),(e,t)=>(x(),p(v,{key:t},[e.source_code_size!==e.transformed_code_size&&e.transformed_code_size?(x(),p(`li`,q,[f(o,{name:e.plugin_name,class:`font-mono ws-nowrap op-50`},null,8,[`name`]),t===i.value.get(r.id).length-1?l(``,!0):(x(),p(`span`,J,`|`))])):l(``,!0)],64))),128))]),a[0]||=m(`div`,{flex:`~ auto gap-1`,"of-hidden":``},null,-1),m(`div`,Y,[m(`span`,null,[r.buildMetrics?(x(),y(s,{key:0,metrics:r.buildMetrics},null,8,[`metrics`])):l(``,!0)])])])]),_:2},1032,[`id`,`session`])])]),_:1},8,[`items`])])}}}),Z=Object.assign(X,{__name:`ModulesDetailedList`}),Q=[`d`,`stroke-dasharray`],te=h({__name:`Graph`,props:{modules:{},session:{}},setup(n){let r=n,i=o(()=>r.modules);return k({modules:i,spacing:{width:400,height:55,linkOffset:20,margin:800,gap:150},generateGraph:t=>{let{isFirstCalculateGraph:n,scale:r,spacing:a,tree:s,hierarchy:l,collapsedNodes:u,container:d,modulesMap:f,nodes:p,links:m,nodesMap:h,linksMap:g,width:_,height:v,childToParentMap:y,focusOn:b}=t,x=o(()=>i.value.filter(e=>e.importers.length===0));return(t=!0)=>{_.value=window.innerWidth,v.value=window.innerHeight;let i=new Set,o=l({module:{id:`~root`}},e=>e.module.id===`~root`?(x.value.forEach(e=>{i.add(e),n.value&&y.set(e.id,`~root`)}),x.value.map(e=>({module:e,expanded:!u.has(e.id),hasChildren:!1}))):u.has(e.module.id)?[]:e.module.imports.map(t=>{let r=f.value.get(t.module_id);if(r&&!i.has(r)&&!(y.has(r.id)&&y.get(r.id)!==e.module.id))return i.add(r),n.value&&y.set(r.id,e.module.id),{module:r,import:t,expanded:!u.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));n.value&&=!1,s().nodeSize([e(a.height),e(a.width)+e(a.gap)])(o);let S=o.descendants();for(let t of S)[t.x,t.y]=[t.y-e(a.width),t.x],t.data.module.imports&&(t.data.hasChildren=t.data.module.imports?.filter(e=>y.get(e.module_id)===t.data.module.id).length>0);let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<e(a.margin))for(let t of S)t.x+=Math.abs(C)+e(a.margin);if(w<e(a.margin))for(let t of S)t.y+=Math.abs(w)+e(a.margin);p.value=S,h.clear();for(let e of S)h.set(e.data.module.id,e);let T=o.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,c(()=>{_.value=d.value.scrollWidth/r.value+e(a.margin),v.value=d.value.scrollHeight/r.value+e(a.margin);let n=x.value?.[0]?.id;t&&n&&c(()=>{b(n,!1)})})}}}),(e,r)=>{let a=T,o=I;return x(),y(o,{session:n.session,modules:i.value},{default:t(({node:e,nodesRefMap:t})=>[f(a,{id:e.data.module.id,ref:n=>t.set(e.data.module.id,n?.$el),link:!0,session:n.session,minimal:!0,flex:`1`},null,8,[`id`,`session`])]),link:t(({link:e,d:t,linkClass:n})=>[m(`path`,{d:t,class:d(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=h({__name:`Folder`,props:{session:{},modules:{}},setup(e){let t=e,n=o(()=>{if(!t.session.modulesList.length)return{workspace:{children:{},items:[]},nodeModules:{children:{},items:[]},virtual:{children:{},items:[]}};let e=[],n=[],r=[];return t.modules.map(e=>({full:e.id,path:e.path})).forEach(i=>{i.full.startsWith(t.session.meta.cwd)?(i.path.startsWith(`../`)||(i.path=i.full.slice(t.session.meta.cwd.length+1)),e.push(i)):i.full.includes(`node_modules`)?n.push({full:i.full,path:i.full}):i.full.startsWith(`virtual:`)&&r.push(i)}),{workspace:S(e,`Project Root`),nodeModules:S(n,`Node Modules`),virtual:S(r,`Virtual Modules`)}});return(e,t)=>{let r=P;return x(),p(`div`,re,[m(`div`,ie,[Object.keys(n.value.workspace.children).length?(x(),y(r,{key:0,node:n.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`])):l(``,!0),Object.keys(n.value.nodeModules.children).length?(x(),p(v,{key:1},[t[0]||=m(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),f(r,{node:n.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)):l(``,!0),Object.keys(n.value.virtual.children).length?(x(),p(v,{key:2},[t[1]||=m(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),f(r,{node:n.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)):l(``,!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=h({__name:`index`,props:{session:{}},setup(c){let h=c,S=i(),O=a(),k=g({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`}];r(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=o(()=>h.session.modulesList.map(e=>({mod:e,path:E(e.id,h.session.meta.cwd),type:w(e.id)}))),P=o(()=>C.filter(e=>N.value.some(t=>e.match.test(t.mod.id)))),I=o(()=>{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:o(()=>new Map(h.session.modulesList.map(e=>[e.id,e]))),list:I,importIdKey:`module_id`}),W=s(()=>I.value,()=>new j(I.value,{includeScore:!0,keys:[`id`],ignoreLocation:!0,threshold:.4})),G=o(()=>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(r,i)=>{let a=H,o=T,s=ee,h=A,g=Z,S=ne,C=oe;return x(),p(`div`,se,[m(`div`,ce,[f(h,{modelValue:k.value,"onUpdate:modelValue":i[2]||=e=>k.value=e,rules:P.value},b({"search-end":t(()=>[e(D).moduleGraphViewType===`graph`?(x(),p(`div`,le,[m(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:i[1]||=t=>e(V)(!0)},[...i[3]||=[m(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):l(``,!0)]),default:t(()=>[m(`div`,ue,[i[4]||=m(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(x(),p(v,null,n(M,t=>m(`button`,{key:t.value,"btn-action":``,class:d(e(D).moduleGraphViewType===t.value?`bg-active`:`grayscale op50`),onClick:e=>K(t.value)},[m(`div`,{class:d(t.icon)},null,2),u(` `+_(t.label),1)],10,de)),64))])]),_:2},[e(z)?{name:`search`,fn:t(()=>[f(s,{session:c.session,data:G.value,"import-id-key":`module_id`,"search-keys":[`id`],onSelect:e(B),onClose:i[0]||=t=>e(V)(!1)},{list:t(({select:e,data:t})=>[t?.length?(x(),y(a,{key:0,session:c.session,modules:t,"disable-tooltip":``,link:!1,onSelect:e},null,8,[`session`,`modules`,`onSelect`])):l(``,!0)]),item:t(({id:e})=>[f(o,{id:e,session:c.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`])]),e(D).moduleGraphViewType===`list`?(x(),p(`div`,fe,[f(a,{session:c.session,modules:G.value},null,8,[`session`,`modules`]),m(`div`,pe,[m(`span`,$,_(G.value.length)+` of `+_(c.session.modulesList.length),1)])])):e(D).moduleGraphViewType===`detailed-list`?(x(),p(`div`,me,[f(g,{session:c.session,modules:G.value},null,8,[`session`,`modules`]),m(`div`,he,[m(`span`,ge,_(G.value.length)+` of `+_(c.session.modulesList.length),1)])])):e(D).moduleGraphViewType===`graph`?(x(),y(S,{key:2,session:c.session,modules:e(U)},null,8,[`session`,`modules`])):(x(),y(C,{key:3,session:c.session,modules:G.value},null,8,[`session`,`modules`]))])}}});export{_e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,$t as t,Bt as n,C as r,Lt as i,Ot as a,Pt as o,St as s,Vt as c,at as l,b as u,ct as d,en as f,et as p,ft as m,jt as ee,kt as h,lt as g,nn as _,nt as v,ot as y,pt as b,qt as x,rn as S,rt as C,st as w,tn as T,vt as E,w as D,wt as O,yt as k}from"#entry";import{a as A,c as j,i as M,o as N,r as P,s as F,t as I}from"./CANF8ydB.js";import{r as L}from"./DYuLlkFe.js";var R={"flex-1":``,"w-0":``,"h-full":``},z={key:0,"w-full":``,"overflow-hidden":``,flex:`~ items-center`,border:`~ base rounded`,p1:``,relative:``},B={"overflow-hidden":``,"text-ellipsis":``,pr6:``,"w-0":``,"flex-1":``},V=[`placeholder`],H={class:`p2 w100`,flex:`~ col gap2`},U=b({__name:`PathSelectorItem`,props:E({selector:{},placeholder:{},session:{},data:{default:void 0},emptyStateText:{default:void 0},onClear:{type:Function,default:void 0}},{search:{required:!0},searchModifiers:{}}),emits:E([`clear`],[`update:search`]),setup(e,{emit:i}){let a=i,s=o(e,`search`);return(i,o)=>(O(),g(`div`,R,[e.selector.state.value.selected?(O(),g(`div`,z,[y(`div`,B,[h(i.$slots,`item`)]),y(`button`,{"i-carbon-clean":``,"text-4":``,hover:`op100`,op50:``,title:`Clear`,absolute:``,"right-2":``,onClick:o[0]||=e=>a(`clear`)})])):(O(),w(t(r),{key:1,distance:15,triggers:[`click`],"auto-hide":!1,delay:{show:300,hide:150},class:`h-full`},{popper:n(()=>[y(`div`,H,[e.data?.length?h(i.$slots,`list`,{key:0}):h(i.$slots,`empty`,{key:1})])]),default:n(()=>[c(y(`input`,{"onUpdate:modelValue":o[1]||=e=>s.value=e,py1:``,px4:``,"w-full":``,"h-full":``,border:`~ base rounded-1`,style:{outline:`none`},placeholder:e.placeholder,onBlur:o[2]||=(...e)=>t(D)&&t(D)(...e)},null,40,V),[[p,s.value]])]),_:3}))]))}}),W=Object.assign(U,{__name:`DataPathSelectorItem`});function G(e){let t=x({search:``,selected:null}),n=x(),r=l(e.getModules);function i(t){n.value=u(t,()=>new L(t.value,{includeScore:!0,keys:e.searchKeys||[`id`],ignoreLocation:!0,threshold:.4}))}function a(e){t.value.selected=e.id,t.value.search=``}function o(){t.value.selected=null}return{state:t,modules:r,fuse:n,initSelector:i,select:a,clear:o}}function K(e){let{onToggle:t,dataMap:n,list:r,importIdKey:i}=e,a=x(!1),o=x({start:``,end:``});function s(e){a.value=e??!a.value,t?.(a.value)}function c(e){o.value={start:e.start,end:e.end}}return{pathSelectorVisible:a,togglePathSelector:s,pathNodes:o,selectPathNodes:c,normalizedGraph:l(()=>{let{start:e,end:t}=o.value;if(!e&&!t)return r.value;let a=new Set,s=(e,t,n)=>{let r=[e],i=new Set,o=new Map([[`${e}`,[`${e}`]]]);for(;r.length>0;){let e=r.shift();i.has(e)||(i.add(e),n?e===n&&o.get(e)?.forEach(e=>a.add(e)):a.add(e),(!n||e!==n)&&t(e).forEach(t=>{i.has(`${t}`)||(r.push(`${t}`),n&&o.set(`${t}`,[...o.get(e)||[],`${t}`]))}))}};return e&&t?s(e,e=>n.value.get(e)?.imports.map(e=>e[i])||[],t):e&&s(e,e=>n.value.get(e)?.imports.map(e=>e[i])||[]),r.value.filter(e=>a.has(e.id)).map(t=>t.id===e?{...t,importers:[]}:t)})}}var q={h10:``,px4:``,p1:``,relative:``,flex:`~ gap2 items-center`},J={flex:`~ items-center gap2`,class:`flex-1 h-full`,"min-w-0":``},Y={flex:`~ items-center justify-center`,"w-full":``,"h-20":``},X={italic:``,op50:``},Z=b({__name:`PathSelector`,props:{session:{},data:{},importIdKey:{},searchKeys:{}},emits:[`close`,`select`],setup(e,{emit:r}){let a=e,o=r,s=l(()=>{let e=new Map;return a.data.forEach(t=>{e.set(t.id,t)}),e}),c=G({searchKeys:a.searchKeys,getModules:()=>c.state.value.search?c.fuse.value.value?.search(c.state.value.search).map(e=>e.item)??[]:a.data});c.initSelector(l(()=>a.data));function u(e,t=new Set){if(t.has(e))return[];t.add(e);let n=s.value.get(e);if(!n?.imports?.length)return[];let r=[];for(let e of n.imports){let n=s.value.get(`${e[a.importIdKey]}`);n&&(t.has(n.id)||(r.push(n),r.push(...u(n.id,t))))}return r}let d=G({searchKeys:a.searchKeys,getModules:()=>c.state.value.selected?u(c.state.value.selected):[]});d.initSelector(d.modules);let f=l(()=>d.state.value.search?d.fuse.value.value?.search(d.state.value.search).map(e=>e.item)??[]:d.modules.value);i([()=>c.state.value.selected,()=>d.state.value.selected],()=>{o(`select`,{start:c.state.value.selected??``,end:d.state.value.selected??``})});function p(){o(`select`,{start:``,end:``}),o(`close`)}return(r,i)=>{let a=W;return O(),g(`div`,q,[y(`div`,J,[m(a,{search:t(c).state.value.search,"onUpdate:search":i[0]||=e=>t(c).state.value.search=e,placeholder:`Start`,selector:t(c),session:e.session,data:t(c).modules.value,onClear:i[1]||=()=>{t(c).clear(),t(d).clear()}},{list:n(()=>[h(r.$slots,`list`,{select:t(c).select,data:t(c).modules.value})]),item:n(()=>[h(r.$slots,`item`,{id:t(c).state.value.selected})]),_:3},8,[`search`,`selector`,`session`,`data`]),i[3]||=y(`div`,{class:`i-carbon-arrow-right op50`,"flex-shrink-0":``},null,-1),m(a,{search:t(d).state.value.search,"onUpdate:search":i[2]||=e=>t(d).state.value.search=e,placeholder:`End`,selector:t(d),session:e.session,data:f.value,onClear:t(d).clear},{list:n(()=>[h(r.$slots,`list`,{select:t(d).select,data:f.value})]),item:n(()=>[h(r.$slots,`item`,{id:t(d).state.value.selected})]),empty:n(()=>[y(`div`,Y,[y(`span`,X,S(t(c).state.value.selected?`No modules`:`Select a start module to get end modules`),1)])]),_:3},8,[`search`,`selector`,`session`,`data`,`onClear`])]),m(I,{class:`mr--2`,onClick:p})])}}}),Q=Object.assign(Z,{__name:`DataPathSelector`}),te=b({inheritAttrs:!1,__name:`TimeoutView`,props:{content:{},hideInterval:{default:1500}},setup(t){let r=x(!1),a=null;return i(()=>t.content,()=>{a&&clearTimeout(a),r.value=!0,a=setTimeout(()=>{r.value=!1},t.hideInterval)}),(i,a)=>(O(),w(e,{"enter-active-class":`transition-opacity duration-200 ease-in`,"leave-active-class":`transition-opacity duration-500 ease-out`,"enter-from-class":`opacity-0`,"leave-to-class":`opacity-0`},{default:n(()=>[r.value?(O(),g(`div`,T(k({key:0},i.$attrs)),S(t.content),17)):d(``,!0)]),_:1}))}}),ne=Object.assign(te,{__name:`DisplayTimeoutView`}),re=[`width`,`height`],ie=[`d`],ae={class:`w-4`},oe=[`disabled`,`title`,`onClick`],$={fixed:``,"right-6":``,"bottom-6":``,"z-panel-nav":``,flex:`~ col gap-2 items-center`},se={"w-10":``,flex:`~ items-center justify-center`},ce={"bg-glass":``,"rounded-full":``,border:``,"border-base":``,shadow:``,flex:`~ col gap-1 p1`},le=[`disabled`],ue=[`disabled`],de=[`disabled`],fe=[`disabled`],pe=b({__name:`ModuleGraph`,props:{modules:{},session:{},expandControls:{type:Boolean,default:!0}},setup(e){let n=e,{isFirstCalculateGraph:r,childToParentMap:o,collapsedNodes:l,calculateGraph:u,container:p,width:b,height:x,scale:S,nodes:w,links:T,spacing:E,nodesRefMap:D}=F(),{isGrabbing:k,init:I}=A(),{zoomIn:L,zoomOut:R,ZOOM_MIN:z,ZOOM_MAX:B}=N(),{isGraphNodeToggling:V,toggleNode:H,expandAll:U,collapseAll:W}=j({modules:n.modules});return s(()=>{I(),i(()=>n.modules,()=>{r.value=!0,l.clear(),o.clear(),u()},{immediate:!0})}),(n,r)=>{let i=ne,o=ee(`tooltip`);return O(),g(`div`,{ref_key:`container`,ref:p,"w-full":``,"h-screen":``,"of-scroll":``,relative:``,"select-none":``,class:f(t(k)?`cursor-grabbing`:``)},[y(`div`,{style:_({width:`${t(b)*t(S)}px`,height:`${t(x)*t(S)}px`})},[y(`div`,{flex:`~ items-center justify-center`,style:_({transform:`scale(${t(S)})`,transformOrigin:`0 0`})},[y(`div`,{absolute:``,"left-0":``,"top-0":``,style:_({width:`${t(b)}px`,height:`${t(x)}px`}),class:`bg-dots`},null,4),(O(),g(`svg`,{"pointer-events-none":``,absolute:``,"left-0":``,"top-0":``,"z-graph-link":``,width:t(b),height:t(x)},[y(`g`,null,[(O(!0),g(C,null,a(t(T),e=>(O(),g(C,{key:e.id},[e.target?h(n.$slots,`link`,{key:0,link:e,d:t(P)(e,t(E)),linkClass:t(M)(e)},()=>[(O(),g(`path`,{key:e.id,d:t(P)(e,t(E)),class:f(t(M)(e)),fill:`none`},null,10,ie))]):d(``,!0)],64))),128))])],8,re)),(O(!0),g(C,null,a(t(w),e=>(O(),g(C,{key:e.data.module.id},[e.data.module.id===`~root`?d(``,!0):(O(),g(`div`,{key:0,absolute:``,class:`group z-graph-node flex gap-1 items-center`,style:_({left:`${e.x}px`,top:`${e.y}px`,transform:`translate(-50%, -50%)`})},[y(`div`,{flex:`~ items-center gap-1`,"bg-glass":``,border:`~ base rounded`,class:`group-hover:bg-active block px2 p1`,style:_({minWidth:`${t(t(E).width)}px`,maxWidth:`${t(t(E).width)}px`,maxHeight:`${t(t(E).height)}px`,overflow:`hidden`,transition:`all 0.3s ease`})},[h(n.$slots,`default`,{node:e,nodesRefMap:t(D)})],4),y(`div`,ae,[e.data.hasChildren?(O(),g(`button`,{key:0,"w-4":``,"h-4":``,"rounded-full":``,flex:`items-center justify-center`,"text-xs":``,border:`~ active`,class:f([`flex cursor-pointer z-graph-node-active bg-base`,{"cursor-not-allowed":t(V),"hover:bg-active":!t(V)}]),disabled:t(V),title:e.data.expanded?`Collapse`:`Expand`,onClick:v(n=>t(H)(e.data.module.id),[`stop`])},[y(`div`,{class:f([`text-primary h-4`,[e.data.expanded?`i-ph-minus`:`i-ph-plus`]]),transition:`transform duration-200`},null,2)],10,oe)):d(``,!0)])],4))],64))),128))],4)],4),y(`div`,$,[y(`div`,se,[m(i,{content:`${Math.round(t(S)*100)}%`,class:`text-sm`},null,8,[`content`])]),y(`div`,ce,[e.expandControls?(O(),g(C,{key:0},[c((O(),g(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:t(V),class:f({"op50 cursor-not-allowed":t(V),"hover:bg-active":!t(V)}),title:`Expand All`,onClick:r[0]||=e=>t(U)()},[...r[4]||=[y(`div`,{class:`i-ph-arrows-out-simple-duotone`},null,-1)]],10,le)),[[o,`Expand All`,void 0,{left:!0}]]),c((O(),g(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:t(V),class:f({"op50 cursor-not-allowed":t(V),"hover:bg-active":!t(V)}),title:`Collapse All`,onClick:r[1]||=e=>t(W)()},[...r[5]||=[y(`div`,{class:`i-ph-arrows-in-simple-duotone`},null,-1)]],10,ue)),[[o,`Collapse All`,void 0,{left:!0}]]),r[6]||=y(`div`,{border:`t base`,my1:``},null,-1)],64)):d(``,!0),c((O(),g(`button`,{disabled:t(S)>=t(B),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom In (Ctrl + =)`,onClick:r[2]||=e=>t(L)()},[...r[7]||=[y(`div`,{"i-ph-magnifying-glass-plus-duotone":``},null,-1)]],8,de)),[[o,`Zoom In (Ctrl + =)`,void 0,{left:!0}]]),c((O(),g(`button`,{disabled:t(S)<=t(z),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom Out (Ctrl + -)`,onClick:r[3]||=e=>t(R)()},[...r[8]||=[y(`div`,{"i-ph-magnifying-glass-minus-duotone":``},null,-1)]],8,fe)),[[o,`Zoom Out (Ctrl + -)`,void 0,{left:!0}]])])])],2)}}}),me=Object.assign(pe,{__name:`DisplayModuleGraph`});export{Q as n,K as r,me as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,Bt as t,It as n,Kt as r,Lt as i,Ot as a,Rt as o,U as s,Vt as c,_ as l,at as u,b as d,bt as f,ct as p,dt as m,en as h,f as g,ft as _,jt as v,lt as y,nn as b,ot as x,pt as S,qt as C,r as w,rn as T,rt as E,st as D,t as O,ut as ee,wt as k}from"#entry";import{t as A}from"./CwTV8WCc.js";import{r as j}from"./CpJiZ7L0.js";import{r as M,t as N}from"./DthxatUT.js";import{i as P,t as te}from"./Bwky_Ehw.js";import{n as F}from"./CANF8ydB.js";import{n as ne,r as re,t as I}from"./DYuLlkFe.js";import{a as ie,c as ae,i as oe,n as L,o as R,r as se,t as ce}from"./CI5axwdc.js";import{t as le}from"./wHgnrW62.js";import{n as ue,r as de,t as z}from"./DhDTn9QE.js";var B=[`onClick`],V=S({__name:`FlatList`,props:{chunks:{},session:{},link:{type:Boolean,default:!0},basic:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:n}){let r=n;return(n,i)=>{let a=P;return k(),D(I,{items:e.chunks,"key-prop":`chunk_id`},{default:t(({item:n})=>[x(`div`,{flex:``,pb2:``,onClick:e=>r(`select`,n)},[_(a,{chunk:n,basic:e.basic,link:e.link,"w-full":``,"font-mono":``,border:`~ rounded base`,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{"left-after":t(()=>[n.is_initial?(k(),D(j,{key:0,text:`initial`})):p(``,!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(n){let r=n,i=u(()=>r.chunks),a=s();return F({modules:i,spacing:{width:450,height:55,linkOffset:15,margin:120,gap:150},generateGraph:t=>{let{isFirstCalculateGraph:n,scale:a,spacing:o,tree:s,hierarchy:c,collapsedNodes:l,container:u,modulesMap:d,nodes:p,links:m,nodesMap:h,linksMap:g,width:_,height:v,childToParentMap:y}=t;return()=>{_.value=window.innerWidth,v.value=window.innerHeight;let t=i.value.filter(e=>r.entryId?e.id===r.entryId:e.reason===`entry`),b=new Set,x=c({module:{id:`~root`}},e=>`${e.module?.id}`==`~root`?(t.forEach(e=>{b.add(e),n.value&&y.set(e.id,`~root`)}),t.map(e=>({module:e,expanded:!l.has(e.id),hasChildren:!1}))):l.has(`${e.module?.id}`)?[]:e.module.imports?.map(t=>{let r=d.value.get(`${t.chunk_id}`);if(!(!r||b.has(r)))return n.value&&y.set(r.id,e.module.id),b.add(r),{module:r,expanded:!l.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));n.value&&=!1,s().nodeSize([e(o.height),e(o.width)+e(o.gap)])(x);let S=x.descendants();for(let t of S)[t.x,t.y]=[t.y-e(o.width),t.x];let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<e(o.margin))for(let t of S)t.x+=Math.abs(C)+e(o.margin);if(w<e(o.margin))for(let t of S)t.y+=Math.abs(w)+e(o.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=i.value.flatMap(e=>e.imports.filter(t=>!T.find(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,f(()=>{_.value=u.value.scrollWidth/a.value+e(o.margin),v.value=u.value.scrollHeight/a.value+e(o.margin)})}}}),(r,o)=>{let s=A,c=z;return k(),D(c,{session:n.session,modules:i.value,"expand-controls":!1},{default:t(({node:n})=>[_(s,{class:`flex items-center`,to:{path:e(a).path,query:{chunk:n.data.module.chunk_id}}},{default:t(()=>[x(`span`,H,`#`+T(n.data.module.id),1),x(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${n.data.module.id}`},[x(`div`,null,T(n.data.module.name||`[unnamed]`),1),_(j,{text:n.data.module.reason},null,8,[`text`]),n.data.module.is_initial?(k(),D(j,{key:0,text:`initial`})):p(``,!0)],8,U),o[1]||=x(`div`,{"flex-auto":``},null,-1),x(`div`,W,[o[0]||=x(`div`,{"i-ph-package-duotone":``},null,-1),m(` `+T(n.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 i=t,s=r,l=n(`el`);return o(()=>l.value?.append(i.graph.el)),(n,r)=>{let i=L,o=M,u=v(`tooltip`);return k(),y(`div`,K,[x(`div`,{ref_key:`el`,ref:l,"w-500px":``},null,512),x(`div`,q,[_(i,{border:`b base`,py2:``,selected:t.selected,options:t.graph.options,onSelect:r[0]||=e=>s(`select`,e)},null,8,[`selected`,`options`]),t.selected?(k(),y(`div`,J,[(k(!0),y(E,null,a(t.selected.children,n=>(k(),y(E,{key:n.id},[x(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>s(`select`,n)},[n.meta&&n.meta===t.selected?.meta?(k(),y(`span`,X,`(self)`)):(k(),y(`span`,Z,T(n.meta?.name||n.id),1))],8,Y),x(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>s(`select`,n)},[x(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:b({background:e(R)(t.graph.options.getColor?.(n)||`#000`),width:`${n.size/t.selected.size*100}%`})},null,4),_(o,{"text-xs":``,bytes:n.size,total:t.selected.size,"percent-ratio":3},null,8,[`bytes`,`total`]),n.children.length>0?c((k(),y(`div`,{key:0,title:`${n.children.length} modules`,"text-xs":``,"op-fade":``},[m(` (`+T(n.children.length)+`) `,1)],8,$)),[[u,`${n.children.length} modules`]]):p(``,!0)],8,Q)],64))),128))])):p(``,!0)])])}}}),he=Object.assign(me,{__name:`ChunksSunburst`}),ge=S({__name:`Flamegraph`,props:{graph:{}},setup(e){let t=e,r=n(`el`);return o(()=>r.value?.append(t.graph.el)),(e,t)=>(k(),y(`div`,{ref_key:`el`,ref:r},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(n){let o=n,s=r(l()),c=[{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`}],f=C({search:``}),v=O(),{state:b,isLoading:S}=g(async()=>await v.value.call(`vite:rolldown:get-chunks-graph`,{session:o.session.id}),null),A=u(()=>{let e=new Map;return b.value?.forEach(t=>{e.set(`${t.chunk_id}`,t)}),e}),P=u(()=>b.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=u(()=>f.value.search?F.value.search(f.value.search).map(e=>e.item):P.value),{pathSelectorVisible:R,pathNodes:z,selectPathNodes:B,togglePathSelector:V,normalizedGraph:H}=de({onToggle:e=>{f.value.search=e?!1:``},dataMap:u(()=>A.value),list:u(()=>I.value),importIdKey:`chunk_id`});function U(e){N.value.chunkViewType=e}let W=u(()=>{let e=new Map;for(let t of o.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);if(!n||!n.buildMetrics?.transforms?.length)return e;let r=n.buildMetrics.transforms;return e+r[r.length-1].transformed_code_size},0)}let{tree:K,chartOptions:q,graph:J,nodeHover:Y,nodeSelected:X,selectedNode:Z,selectNode:Q,buildGraph:$}=ce({data:u(()=>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 i(()=>N.value.chunkViewType,()=>{[`treemap`,`sunburst`,`flamegraph`].includes(N.value.chunkViewType)&&$()}),(r,i)=>{let o=w,l=fe,u=ue,d=ne,g=te,v=pe,b=L,C=he,O=_e,P=M,F=ae;return e(S)?(k(),D(o,{key:0})):(k(),y(`div`,ve,[x(`div`,ye,[_(d,{modelValue:f.value,"onUpdate:modelValue":i[2]||=e=>f.value=e,rules:[]},ee({"search-end":t(()=>[e(N).chunkViewType===`graph`?(k(),y(`div`,be,[x(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:i[1]||=t=>e(V)(!0)},[...i[5]||=[x(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):p(``,!0)]),default:t(()=>[x(`div`,xe,[i[6]||=x(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(k(),y(E,null,a(c,t=>x(`button`,{key:t.value,"btn-action":``,class:h(e(N).chunkViewType===t.value?`bg-active`:`grayscale op50`),onClick:e=>U(t.value)},[x(`div`,{class:h(t.icon)},null,2),m(` `+T(t.label),1)],10,Se)),64))])]),_:2},[e(R)?{name:`search`,fn:t(()=>[_(u,{session:n.session,data:I.value,"import-id-key":`chunk_id`,"search-keys":[`name`],onSelect:e(B),onClose:i[0]||=t=>e(V)(!1)},{list:t(({select:e,data:t})=>[_(l,{session:n.session,chunks:t,link:!1,basic:!0,onSelect:e},null,8,[`session`,`chunks`,`onSelect`])]),item:t(({id:e})=>[m(T(A.value.get(e)?.name||`[unnamed]`),1)]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`])]),e(N).chunkViewType===`list`?(k(),y(`div`,Ce,[_(l,{session:n.session,chunks:I.value},null,8,[`session`,`chunks`])])):p(``,!0),e(N).chunkViewType===`detailed-list`?(k(),y(`div`,we,[(k(!0),y(E,null,a(I.value,e=>(k(),D(g,{key:e.id,border:`~ base rounded-lg`,p3:``,chunk:e,chunks:I.value,session:n.session},null,8,[`chunk`,`chunks`,`session`]))),128))])):e(N).chunkViewType===`graph`?(k(),D(v,{key:2,class:`pt32`,session:n.session,chunks:e(H),"entry-id":e(z).start},null,8,[`session`,`chunks`,`entry-id`])):e(N).chunkViewType===`treemap`?(k(),y(`div`,Te,[e(J)?(k(),D(le,{key:0,graph:e(J),selected:e(X),onSelect:i[3]||=t=>e(Q)(t)},{default:t(({selected:e,options:t,onSelect:n})=>[_(b,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:t,onSelect:n},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):p(``,!0)])):e(N).chunkViewType===`sunburst`?(k(),y(`div`,Ee,[e(J)?(k(),D(C,{key:0,graph:e(J),selected:e(X),onSelect:i[4]||=t=>e(Q)(t)},null,8,[`graph`,`selected`])):p(``,!0)])):e(N).chunkViewType===`flamegraph`?(k(),y(`div`,De,[e(J)?(k(),D(O,{key:0,graph:e(J)},null,8,[`graph`])):p(``,!0)])):p(``,!0),_(F,{"hover-x":s.x,"hover-y":s.y},{default:t(()=>[e(Y)?.meta?(k(),y(`div`,Oe,[x(`div`,ke,[i[7]||=x(`i`,{"i-ph-shapes-duotone":``,"flex-none":``},null,-1),x(`span`,Ae,T(e(Y).meta.name||`[unnamed]`),1)]),x(`div`,je,[i[8]||=x(`span`,{op50:``,"text-xs":``},`Size:`,-1),_(P,{bytes:e(Y).meta.size,"text-xs":``},null,8,[`bytes`])]),e(Y).meta.modules?.length?(k(),y(`div`,Me,[i[9]||=x(`span`,{op50:``,"text-xs":``},`Modules:`,-1),x(`span`,Ne,T(e(Y).meta.modules?.length),1)])):p(``,!0),e(Y).meta.is_initial?(k(),y(`div`,Pe,[_(j,{text:`initial`})])):p(``,!0)])):p(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{Fe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bt as e,at as t,en as n,kt as r,lt as i,ot as a,pt as o,rn as s,st as c,wt as l}from"#entry";function u(e,t){let n=[];return n=e==null?[``,`-`]:e<1?[`<1`,`ms`]:e<1e3?[e.toFixed(0),`ms`]:e<1e3*60?[(e/1e3).toFixed(1),`s`]:[(e/1e3/60).toFixed(1),`min`],t?n.join(` `):n}var d={"ml-0.4":``,"text-xs":``,op75:``},f=o({__name:`DisplayNumberWithUnit`,props:{number:{},unit:{}},setup(e){return(t,n)=>(l(),i(`div`,null,[r(t.$slots,`default`),a(`span`,null,s(e.number),1),a(`span`,d,s(e.unit),1)]))}}),p=o({__name:`DisplayDuration`,props:{duration:{},factor:{default:1},unit:{default:`ms`},color:{type:Boolean,default:!0}},setup(i){let a=i,o=t(()=>{if(a.duration!=null)return a.unit===`ns`?a.duration/1e3:a.duration});function s(e){return!a.color||e==null?``:(e*=a.factor,e<1?`op50`:e>1e4?`color-scale-critical`:e>1e3?`color-scale-high`:e>500?`color-scale-medium`:e>200?`color-scale-low`:`color-scale-neutral`)}let d=t(()=>u(o.value));return(t,i)=>(l(),c(f,{class:n(s(o.value)),number:d.value[0],unit:d.value[1]},{default:e(()=>[r(t.$slots,`default`)]),_:3},8,[`class`,`number`,`unit`]))}});export{u as n,p as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{at as e,ct as t,dt as n,en as r,h as i,kt as a,lt as o,ot as s,pt as c,rn as l,wt as u}from"#entry";import{t as d}from"./D04G8HHr.js";var f={"text-xs":``,op75:``,"ml-0.4":``},p={key:0,"text-xs":``,ml1:``,"op-fade":``,border:`l base`,pl1:``},m=1024,h=c({__name:`FileSizeBadge`,props:{bytes:{},colorize:{type:Boolean,default:!0},digits:{default:2},percent:{type:Boolean,default:!0},total:{},icon:{},percentRatio:{default:.5}},setup(i){let c=i,h=m**2,g=[[80*m,`color-scale-neutral`],[500*m,`color-scale-low`],[1*h,`color-scale-medium`],[10*h,`color-scale-high`],[20*h,`color-scale-critical`]],_=e(()=>{if(!c.colorize)return g[0];let e=c.bytes||0;for(let[t,n]of g)if(e<t)return n;return g[g.length-1]?.[1]}),v=e(()=>c.total?(c.bytes||0)*100/c.total:0),y=e(()=>d(c.bytes||0,c.digits));return(e,c)=>i.bytes?(u(),o(`div`,{key:0,class:r([_.value,`px-0.4em py-0.2em font-mono line-height-none bg-gray:5 dark:bg-gray:4 flex items-center`])},[i.icon?(u(),o(`div`,{key:0,class:r([i.icon,`mr-1`])},null,2)):t(``,!0),n(` `+l(y.value[0]),1),s(`span`,f,l(y.value[1]),1),a(e.$slots,`after`,{},()=>[i.percent&&v.value>i.percentRatio?(u(),o(`span`,p,l(+v.value.toFixed(1))+`%`,1)):t(``,!0)])],2)):t(``,!0)}}),g=Object.assign(h,{__name:`DisplayFileSizeBadge`});const _=i(`vite-devtools-settings`,{codeviewerLineWrap:!1,codeviewerDiffPanelSize:50,flowExpandResolveId:!0,flowExpandTransforms:!0,flowExpandLoads:!0,flowExpandChunks:!0,flowExpandAssets:!0,flowShowAllTransforms:!1,flowShowAllLoads:!1,moduleGraphViewType:`list`,assetViewType:`list`,chartAnimation:!0,moduleDetailsViewType:`flow`,pluginDetailsViewType:`flow`,pluginDetailsTableFields:null,pluginDetailsModuleTypes:null,pluginDetailsDurationSortType:``,pluginDetailSelectedHook:``,chunkViewType:`list`,pluginDetailsShowType:`all`,packageViewType:`table`,packageSizeSortType:``},{mergeDefaults:!0});function v(t){let n=new Map;return new Proxy(t.value,{get(t,r){return n.has(r)||n.set(r,e({get(){return t[r]},set(e){t[r]=e}})),n.get(r)}})}const y=v(_);export{y as n,g as r,_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,Bt as t,at as n,ct as r,ft as i,lt as a,ot as o,pt as s,rt as c,wt as l}from"#entry";import{r as u}from"./DthxatUT.js";import{n as d,t as f}from"./Dt2e24SL.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=s({__name:`BuildMetrics`,props:{metrics:{}},setup(s){let h=s,g=n(()=>{let e=h.metrics,t=e?.resolve_ids.reduce((e,t)=>(e+=t.duration,e),0),n=e?.loads?.reduce((e,t)=>(e+=t.duration,e),0),r=e?.transforms.reduce((e,t)=>(e+=t.duration,e),0);return{resolveIds:t,loads:n,transforms:r,total:t+n+r}}),_=n(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=n(()=>{let e=h.metrics?.transforms.filter(e=>e.transformed_code_size);return e?.[e.length-1]?.transformed_code_size});return(n,s)=>{let h=u;return l(),a(`div`,p,[i(f,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${e(d)(g.value.resolveIds,!0)}`},{default:t(()=>[...s[0]||=[o(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),i(f,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${e(d)(g.value.loads,!0)}`},{default:t(()=>[...s[1]||=[o(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),i(f,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${e(d)(g.value.transforms,!0)}`},{default:t(()=>[...s[2]||=[o(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s[6]||=o(`span`,{op40:``},`|`,-1),i(f,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${e(d)(g.value.total,!0)}`},{default:t(()=>[...s[3]||=[o(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(l(),a(c,{key:0},[s[5]||=o(`span`,{op40:``},`|`,-1),o(`div`,m,[i(h,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),s[4]||=o(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),i(h,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):r(``,!0)])}}}),g=Object.assign(h,{__name:`ModulesBuildMetrics`});export{g as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,At as t,Bt as n,C as r,Kt as i,Lt as a,Ot as o,T as s,U as c,W as l,_ as u,at as d,b as f,ct as p,dt as m,en as h,f as g,ft as _,lt as v,ot as y,p as b,pt as x,qt as ee,r as te,rn as S,rt as C,st as w,t as T,wt as E}from"#entry";import{t as D}from"./CwTV8WCc.js";import{r as O,t as k}from"./CpJiZ7L0.js";import{r as A,t as j}from"./DthxatUT.js";import{n as ne,r as M,t as N}from"./DYuLlkFe.js";import{a as P,c as re,n as F,t as I}from"./CI5axwdc.js";import{t as L}from"./Bxdwnne9.js";import{t as ie}from"./wHgnrW62.js";var R={flex:`~ row gap-1`,"of-hidden":``},z={flex:`~ row gap-1`,"ws-nowrap":``},B={p2:``,flex:`~ col gap-1`},V=x({__name:`Importers`,props:{package:{},session:{},showVersion:{type:Boolean}},setup(e){let r=e,i=d(()=>{let e=new Map;return r.package.files.filter(e=>!!e.importers).flatMap(e=>e.importers).filter(e=>!e.path.startsWith(r.package?.dir??``)).forEach(t=>{e.set(t.path,t)}),Array.from(e.values())});return(r,a)=>{let s=k,c=t(`VMenu`);return E(),v(`div`,R,[y(`div`,z,[_(s,{id:i.value[0].path,session:e.session,link:``},null,8,[`id`,`session`]),i.value[0].version&&e.showVersion?(E(),w(O,{key:0,text:i.value[0].version,as:`span`},null,8,[`text`])):p(``,!0)]),i.value.length>1?(E(),w(c,{key:0,delay:{show:200,hide:0},"flex-none":``},{popper:n(()=>[y(`div`,B,[(E(!0),v(C,null,o(i.value,t=>(E(),v(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[_(s,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``},null,8,[`id`,`session`]),t.version&&e.showVersion?(E(),w(O,{key:0,text:`v${t.version}`,as:`span`},null,8,[`text`])):p(``,!0)]))),128))])]),default:n(()=>[_(O,{text:`+${i.value.length}`,color:100,class:`text-xs rounded px1`},null,8,[`text`])]),_:1})):p(``,!0)])}}}),H=Object.assign(V,{__name:`PackagesImporters`}),U={role:`table`,"min-w-max":``,border:`~ base rounded-xl`},W={role:`row`,class:`border-b border-base`,flex:`~ row`},G=[`title`],K={key:0,"font-mono":``},q={key:0,title:`Package version`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"min-w40":``,"ws-nowrap":``,"text-left":``,"py1.5":``,px2:``,"font-600":``},J={flex:`~ row gap1 items-center justify-end`,"w-full":``,relative:``,pr2:``},Y={key:0,role:`cell`,"font-mono":``,"flex-none":``,w80:``,"py1.5":``,px2:``,"ws-nowrap":``,"text-sm":``,"overflow-hidden":``,truncate:``},X={"font-mono":``,"text-sm":``},Z={role:`cell`,flex:`~ items-center justify-end`,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``},ae={p2:``,flex:`~ col gap-1`},Q={w24:``,"inline-flex":``},oe={role:`cell`,flex:`~ items-center`,"flex-1":``,"font-mono":``,"py1.5":``,pl20:``,pr2:``,"text-sm":``,op80:``},se={key:1},ce=x({__name:`Table`,props:{packages:{},session:{},disableSizeSort:{type:Boolean,default:!1},groupView:{type:Boolean,default:!1}},setup(t){let i=c(),{state:a,next:l}=b([``,`desc`,`asc`],{initialValue:j.value.packageSizeSortType});function u(){l(),j.value.packageSizeSortType=a.value}return(c,l)=>{let d=L,f=A,g=k,b=H,x=D;return E(),v(`div`,U,[y(`div`,W,[y(`div`,{title:t.groupView?`Package`:`Bundled packages`,role:`columnheader`,"rounded-tl-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,px2:``,"font-600":``,class:h([t.groupView?`min-w40`:`min-w80`])},[t.groupView?(E(),v(`div`,K,[_(d,{name:t.packages?.[0]?.name},null,8,[`name`])])):(E(),v(C,{key:1},[m(` Package `)],64))],10,G),t.groupView?p(``,!0):(E(),v(`div`,q,` Version `)),y(`div`,{title:`Transformed code size`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,"font-600":``,"min-w40":``,class:h([t.groupView?`px2`:`pl2`])},[y(`button`,J,[l[0]||=m(` Size `,-1),t.disableSizeSort?p(``,!0):(E(),v(`span`,{key:0,"w-6":``,"h-6":``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`,onClick:u},[y(`i`,{"text-xs":``,class:h([e(a)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,e(a)?`op100 text-primary`:`op50`])},null,2)]))])],2),l[1]||=y(`div`,{title:`Importers`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,pl20:``,pr2:``,"font-600":``,"min-w50":``},` Importers `,-1)]),t.packages.length?(E(),w(N,{key:0,role:`rowgroup`,items:t.packages,"key-prop":`dir`},{default:n(({item:a,index:c})=>[_(x,{role:`row`,flex:`~ row`,class:h([`border-base border-b-1 border-dashed`,[c===t.packages.length-1?`border-b-0`:``]]),to:{path:e(i).path,query:{package:`${a.name}@${a.version}`}}},{default:n(()=>[_(e(s),{triggers:[`hover`],delay:1200,disabled:a.name.length<30},{popper:n(()=>[y(`span`,X,S(a.name),1)]),default:n(()=>[t.groupView?p(``,!0):(E(),v(`div`,Y,[_(d,{name:a.name},null,8,[`name`])]))]),_:2},1032,[`disabled`]),y(`div`,{role:`cell`,flex:`~ items-center`,"text-left":``,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``,class:h({"text-primary":a.duplicated})},S(a.version),3),y(`div`,Z,[_(e(r),{delay:{show:200,hide:0}},{popper:n(()=>[y(`div`,ae,[(E(!0),v(C,null,o(a.files.filter(e=>!!e.transformedCodeSize),e=>(E(),v(`div`,{key:e.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[y(`span`,Q,[_(f,{bytes:e.transformedCodeSize},null,8,[`bytes`])]),_(g,{id:e.path,session:t.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``,cwd:a.dir},null,8,[`id`,`session`,`cwd`])]))),128))])]),default:n(()=>[_(f,{bytes:a.transformedCodeSize},null,8,[`bytes`])]),_:2},1024)]),y(`div`,oe,[_(b,{package:a,session:t.session,"show-version":t.groupView},null,8,[`package`,`session`,`show-version`])])]),_:2},1032,[`class`,`to`])]),_:1},8,[`items`])):(E(),v(`div`,se,[...l[2]||=[y(`div`,{p4:``},[y(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},[y(`p`,null,` No data `)])],-1)]]))])}}}),$=Object.assign(ce,{__name:`PackagesTable`}),le={key:1,p4:``},ue=x({__name:`Duplicated`,props:{packages:{},session:{}},setup(e){let t=e,n=d(()=>t.packages.filter(e=>e.duplicated)),r=d(()=>n.value.reduce((e,t)=>(e[t.name]=[...e[t.name]||[],t],e),{}));return(t,i)=>{let a=$;return n.value.length?(E(!0),v(C,{key:0},o(r.value,(t,n)=>(E(),v(`div`,{key:n},[_(a,{packages:t,session:e.session,"group-view":``,"disable-size-sort":``},null,8,[`packages`,`session`])]))),128)):(E(),v(`div`,le,[...i[0]||=[y(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},` No duplicate packages `,-1)]]))}}}),de=Object.assign(ue,{__name:`PackagesDuplicated`}),fe={key:1,relative:``,"max-h-screen":``,"of-hidden":``},pe={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},me={flex:`~ gap-2 items-center`,p2:``,border:`t base`},he=[`onClick`],ge={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt44:``,px4:``,pb4:``},_e={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},ve={op50:``},ye={key:1,"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},be={key:0,"bg-glass":``,border:`~ base rounded`,p2:``,"text-sm":``,flex:`~ col gap-2`},xe={flex:`~ gap-1 items-center`},Se={flex:`~ gap-1 items-center`},Ce=x({__name:`packages`,props:{session:{}},setup(t){let r=t,s=i(u()),b=c(),x=l(),D=[{match:/.*/,name:`direct`,description:`Direct Dependencies`,icon:`i-octicon:package-dependencies-24 light:filter-invert-30!`},{match:/.*/,name:`transitive`,description:`Transitive Dependencies`,icon:`i-octicon:package-24 light:filter-invert-30!`}],O=T(),k=ee({search:``,selected:[`direct`,`transitive`]}),{state:N,isLoading:L}=g(async()=>await O.value.call(`vite:rolldown:get-packages`,{session:r.session.id}),null),R=f(()=>N.value,()=>new M(N.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),z=d(()=>N.value?Object.values(N.value.reduce((e,t)=>(e[t.name]=(e[t.name]||0)+1,e),{})).filter(e=>e>1).length:0),B=d(()=>[{label:`Table`,value:`table`,icon:`i-ph-table-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Duplicate Packages${z.value>0?` (${z.value})`:``}`,value:`duplicate-packages`,icon:`i-ph-package-duotone`}]),V=d(()=>k.value.search?R.value.search(k.value.search).map(e=>e.item):[...N.value||[]]),H=d(()=>{let e=j.value.packageSizeSortType,t=[...V.value].sort((e,t)=>(e.name||``).localeCompare(t.name||``));return(e?t.sort((t,n)=>e===`asc`?t.transformedCodeSize-n.transformedCodeSize:n.transformedCodeSize-t.transformedCodeSize):t).filter(e=>!k.value.selected||k.value.selected.some(t=>t.match(e.type)))});function U(e){j.value.packageViewType=e}let{tree:W,chartOptions:G,graph:K,nodeHover:q,nodeSelected:J,selectedNode:Y,selectNode:X,buildGraph:Z}=I({data:H,nameKey:`name`,sizeKey:`transformedCodeSize`,rootText:`Packages`,nodeType:`package`,graphOptions:{onHover(e){e&&!b.query.package&&(q.value=e),e===null&&(q.value=void 0)},onClick(e){e.meta?.type===`package`&&x.replace({query:{...b.query,package:`${e.meta?.name}@${e.meta?.version}`}})},onLeave(){q.value=void 0},onSelect(e){J.value=e||W.value.root,Y.value=e?.meta}},onUpdate(){j.value.packageViewType===`treemap`&&(K.value=new P(W.value.root,{...G.value,selectedPaddingRatio:0}))}});return a(()=>j.value.packageViewType,()=>{Z()}),(r,i)=>{let a=te,c=ne,l=$,u=F,d=de,f=A,g=re;return e(L)?(E(),w(a,{key:0})):(E(),v(`div`,fe,[y(`div`,pe,[_(c,{modelValue:k.value,"onUpdate:modelValue":i[0]||=e=>k.value=e,rules:D},{default:n(()=>[y(`div`,me,[i[2]||=y(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(E(!0),v(C,null,o(B.value,t=>(E(),v(`button`,{key:t.value,"btn-action":``,class:h(e(j).packageViewType===t.value?`bg-active`:`grayscale op50`),onClick:e=>U(t.value)},[y(`div`,{class:h(t.icon)},null,2),m(` `+S(t.label),1)],10,he))),128))])]),_:1},8,[`modelValue`])]),y(`div`,ge,[e(j).packageViewType===`table`?(E(),v(C,{key:0},[_(l,{packages:H.value,session:t.session},null,8,[`packages`,`session`]),y(`div`,_e,[y(`span`,ve,S(V.value.length)+` of `+S(e(N)?.length||0),1)])],64)):e(j).packageViewType===`treemap`?(E(),v(C,{key:1},[e(K)&&H.value.length?(E(),w(ie,{key:0,graph:e(K),selected:e(J),onSelect:i[1]||=t=>e(X)(t)},{default:n(({selected:e,options:t,onSelect:n})=>[_(u,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:t,onSelect:n},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):(E(),v(`span`,ye,` No Data `))],64)):e(j).packageViewType===`duplicate-packages`?(E(),w(d,{key:2,packages:H.value,session:t.session},null,8,[`packages`,`session`])):p(``,!0)]),_(g,{"hover-x":s.x,"hover-y":s.y},{default:n(()=>[e(q)?.meta?(E(),v(`div`,be,[y(`div`,xe,S(e(q).text),1),y(`div`,Se,[_(f,{bytes:e(q).size,percent:!1},null,8,[`bytes`])])])):p(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{Ce as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.CodeMirror-dialog{background:inherit;color:inherit;left:0;overflow:hidden;padding:.1em .8em;position:absolute;right:0;z-index:15}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{background:transparent;border:none;color:inherit;font-family:monospace;outline:none;width:20em}.CodeMirror-dialog button{font-size:70%}.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:6}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{background:transparent;border-radius:0;border-width:0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;color:inherit;line-height:inherit;overflow:visible;position:relative;z-index:2;-webkit-tap-highlight-color:transparent;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.diff-added{background-color:color-mix(in srgb, var(--colors-green-400) 15%, transparent) /* oklch(79.2% 0.209 151.711) */;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.diff-added{background-color:color-mix(in oklab, var(--colors-green-400) 15%, transparent) /* oklch(79.2% 0.209 151.711) */;}}.diff-removed{background-color:color-mix(in srgb, var(--colors-red-400) 15%, transparent) /* oklch(70.4% 0.191 22.216) */;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.diff-removed{background-color:color-mix(in oklab, var(--colors-red-400) 15%, transparent) /* oklch(70.4% 0.191 22.216) */;}}.diff-added-inline{background-color:color-mix(in srgb, var(--colors-green-400) 30%, transparent) /* oklch(79.2% 0.209 151.711) */;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.diff-added-inline{background-color:color-mix(in oklab, var(--colors-green-400) 30%, transparent) /* oklch(79.2% 0.209 151.711) */;}}.diff-removed-inline{background-color:color-mix(in srgb, var(--colors-red-400) 30%, transparent) /* oklch(70.4% 0.191 22.216) */;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.diff-removed-inline{background-color:color-mix(in oklab, var(--colors-red-400) 30%, transparent) /* oklch(70.4% 0.191 22.216) */;}}.module-flow-splitter>.splitpanes__splitter:before{background-color:transparent}.splitpanes__splitter{pointer-events:auto}
|