@vitejs/devtools-vite 0.0.0-alpha.2 → 0.0.0-alpha.21
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/dist/{dirs-Z7VQHyIZ.js → dirs-BzX7rGLP.mjs} +1 -1
- package/dist/dirs.mjs +3 -0
- package/dist/index.d.mts +499 -0
- package/dist/index.mjs +9607 -0
- package/dist/nitro.json +3 -3
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/B6cncnam.js +1 -0
- package/dist/public/_nuxt/BaYRDImg.js +1 -0
- package/dist/public/_nuxt/Bij65W5n.js +1 -0
- package/dist/public/_nuxt/Bja_t-aS.js +1 -0
- package/dist/public/_nuxt/BrNGuicP.js +1 -0
- package/dist/public/_nuxt/BwW8gZ6K.js +1 -0
- package/dist/public/_nuxt/C8YTjkYM.js +1 -0
- package/dist/public/_nuxt/CDPpT6Cf.js +1 -0
- package/dist/public/_nuxt/CE23KUMI.js +1 -0
- package/dist/public/_nuxt/{BdGMcGSQ.js → CEj_FX93.js} +1 -1
- package/dist/public/_nuxt/CNlvL5ez.js +1 -0
- package/dist/public/_nuxt/CPYYHqxX.js +1 -0
- package/dist/public/_nuxt/CroQ9lcn.js +1 -0
- package/dist/public/_nuxt/Cu87lOT3.js +1 -0
- package/dist/public/_nuxt/D6yJLdbI.js +1 -0
- package/dist/public/_nuxt/DDRvb9yv.js +1 -0
- package/dist/public/_nuxt/DDTVi-ZV.js +33 -0
- package/dist/public/_nuxt/DHdbcQDR.js +1 -0
- package/dist/public/_nuxt/{DSjlpmm-.js → DJFg8Mze.js} +1 -1
- package/dist/public/_nuxt/DkNjWA7f.js +1 -0
- package/dist/public/_nuxt/DuSH8vtp.js +1 -0
- package/dist/public/_nuxt/{BQ-NBLhA.js → EZmie0b_.js} +1 -1
- package/dist/public/_nuxt/HyHtDydt.js +1 -0
- package/dist/public/_nuxt/L7giCKVM.js +1 -0
- package/dist/public/_nuxt/NkHXFX5A.js +1 -0
- package/dist/public/_nuxt/OEdZKRk6.js +1 -0
- package/dist/public/_nuxt/R6f4Y_SJ.js +1 -0
- package/dist/public/_nuxt/XY_il7uL.js +2 -0
- package/dist/public/_nuxt/{_session_.B0BbH92J.css → _session_.BXMlcDmB.css} +1 -1
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/92f58f41-f5d8-4eb9-8df8-90c37ec07cf8.json +1 -0
- package/dist/public/_nuxt/diff.worker-CvsEE-qa.js +10 -0
- package/dist/public/_nuxt/entry.BVWKKagY.css +1 -0
- package/dist/public/_nuxt/error-404.DgDpC6Er.css +1 -0
- package/dist/public/_nuxt/error-500.CDOeHf8w.css +1 -0
- package/dist/public/_nuxt/jVJLbHmI.js +1 -0
- package/dist/public/_nuxt/kgaOZT0B.js +1 -0
- package/dist/public/_nuxt/mJg3pdS2.js +1 -0
- package/dist/public/_nuxt/s37iQDTO.js +1 -0
- package/dist/public/_nuxt/wlAuDjxN.js +4 -0
- package/dist/public/_nuxt/x1G1EAUP.js +1 -0
- package/dist/public/_nuxt/xtsFKyex.js +1 -0
- package/dist/public/index.html +1 -1
- package/package.json +25 -24
- package/dist/dirs.js +0 -3
- package/dist/index.d.ts +0 -118
- package/dist/index.js +0 -1465
- package/dist/public/_nuxt/B1Vd6rqS.js +0 -1
- package/dist/public/_nuxt/B2YLpys2.js +0 -1
- package/dist/public/_nuxt/B2fBtupD.js +0 -1
- package/dist/public/_nuxt/BBRXmiYk.js +0 -1
- package/dist/public/_nuxt/BL9XEsp7.js +0 -1
- package/dist/public/_nuxt/BO9hKuA-.js +0 -1
- package/dist/public/_nuxt/BcAccMwu.js +0 -1
- package/dist/public/_nuxt/BdSZoQls.js +0 -1
- package/dist/public/_nuxt/BjbaCuBE.js +0 -1
- package/dist/public/_nuxt/Bjr51Ks8.js +0 -1
- package/dist/public/_nuxt/BvuqupwD.js +0 -1
- package/dist/public/_nuxt/C2X_oPur.js +0 -1
- package/dist/public/_nuxt/C5J04JCq.js +0 -1
- package/dist/public/_nuxt/CQNn9qP2.js +0 -1
- package/dist/public/_nuxt/CS0-317H.js +0 -1
- package/dist/public/_nuxt/CciM0jEL.js +0 -1
- package/dist/public/_nuxt/CcwEApAr.js +0 -1
- package/dist/public/_nuxt/Ci9NHG69.js +0 -1
- package/dist/public/_nuxt/D1yk44lc.js +0 -1
- package/dist/public/_nuxt/DJTxkAFF.js +0 -11
- package/dist/public/_nuxt/DS2MKblJ.js +0 -1
- package/dist/public/_nuxt/DZeYNBxL.js +0 -1
- package/dist/public/_nuxt/D_Sk_I-u.js +0 -1
- package/dist/public/_nuxt/Dl8iHwQo.js +0 -2
- package/dist/public/_nuxt/IrMnfQaU.js +0 -1
- package/dist/public/_nuxt/Z5tyTJaP.js +0 -1
- package/dist/public/_nuxt/builds/meta/c3fb67dd-1302-42f7-af58-b6ed5d47dbe9.json +0 -1
- package/dist/public/_nuxt/cRQbgMUp.js +0 -1
- package/dist/public/_nuxt/diff.worker-BXxwMoGc.js +0 -10
- package/dist/public/_nuxt/entry.BiqpDmeM.css +0 -1
- package/dist/public/_nuxt/error-404.yUUAZDjV.css +0 -1
- package/dist/public/_nuxt/error-500.BHZzZRS-.css +0 -1
- package/dist/public/_nuxt/pXptjyzi.js +0 -1
- package/dist/public/_nuxt/rwBDQBzn.js +0 -1
- package/dist/public/_nuxt/tS5wJZMm.js +0 -1
- package/dist/public/_nuxt/yfNgynAH.js +0 -33
- package/dist/public/_nuxt/z9pSC1xM.js +0 -1
- /package/dist/{dirs.d.ts → dirs.d.mts} +0 -0
- /package/dist/public/_nuxt/{DnpfwSMy.js → Cvg1SSG2.js} +0 -0
- /package/dist/public/_nuxt/{l47FwQA-.js → jB8TYliU.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{At as e,Et as t,Ht as n,an as r,at as i,ct as a,dt as o,ht as s,lt as c,mt as l,nn as u,pt as d,st as f,tn as p,ut as m}from"#entry";import{t as h}from"./s37iQDTO.js";import{r as g,t as _}from"./EZmie0b_.js";import{t as v}from"./BaYRDImg.js";import{t as y}from"./L7giCKVM.js";import{t as b}from"./CPYYHqxX.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=s({__name:`index`,props:{session:{}},setup(s){let k=s,A=f(()=>[{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(f,j)=>{let M=h,N=g,P=y,F=b,I=_;return t(),o(`div`,x,[a(`div`,S,[l(M,{"btn-action":``,to:{path:`/`}},{default:n(()=>[...j[0]||=[a(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),d(` Re-select Session `,-1)]]),_:1})]),j[1]||=a(`div`,{op50:``,"mt-10":``},` Meta Info `,-1),a(`div`,C,[(t(!0),o(i,null,e(A.value,e=>(t(),o(i,{key:e.title},[a(`div`,{class:u(e.icon)},null,2),a(`div`,null,r(e.title),1),a(`div`,w,[e.value instanceof Date?(t(),o(`time`,{key:0,datetime:e.value.toISOString()},r(e.value.toLocaleString()),9,T)):e.type===`badge`?(t(),c(N,{key:1,text:String(e.value),py1:``},null,8,[`text`])):e.type===`duration`?(t(),c(P,{key:2,duration:+e.value},null,8,[`duration`])):typeof e.value==`number`?(t(),c(F,{key:3,number:e.value,py1:``,"rounded-full":``,"inline-block":``,"text-sm":``},null,8,[`number`])):(t(),o(`span`,E,r(e.value),1))])],64))),128))]),j[2]||=a(`div`,{op50:``,"mt-4":``},` Build Entries `,-1),a(`div`,D,[(t(!0),o(i,null,e(k.session.meta.inputs,e=>(t(),o(i,{key:e},[l(N,{text:e.name||``},null,8,[`text`]),l(I,{id:e.filename||``,session:s.session,link:!0},null,8,[`id`,`session`])],64))),128))]),j[3]||=a(`div`,{op50:``,"mt-4":``},` Views `,-1),a(`div`,O,[(t(!0),o(i,null,e(p(v),e=>(t(),o(i,{key:e.to},[e.category===`session`?(t(),c(M,{key:0,"btn-action":``,to:{path:e.to},flex:`~ col`,"min-w-40":``,p4:``},{default:n(()=>[a(`div`,{class:u(e.icon),"text-2xl":``},null,2),d(` `+r(e.title),1)]),_:2},1032,[`to`])):m(``,!0)],64))),128))])])}}});export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,A as t,At as n,Et as r,F as i,I as a,M as o,N as s,O as c,P as l,Rt as u,St as d,Tt as f,Yt as p,Zt as m,an as h,at as g,ct as _,dt as v,ht as y,in as b,j as ee,jt as te,k as ne,lt as re,ot as ie,st as x,t as S,tn as ae,ut as oe,zt as se}from"#entry";import{t as C}from"./CroQ9lcn.js";import{t as ce}from"./CE23KUMI.js";function w(){return typeof window<`u`}function T(e){return le(e)?(e.nodeName||``).toLowerCase():`#document`}function E(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function D(e){return((le(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function le(e){return w()?e instanceof Node||e instanceof E(e).Node:!1}function O(e){return w()?e instanceof Element||e instanceof E(e).Element:!1}function k(e){return w()?e instanceof HTMLElement||e instanceof E(e).HTMLElement:!1}function ue(e){return!w()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof E(e).ShadowRoot}var de=new Set([`inline`,`contents`]);function A(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=P(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!de.has(i)}var fe=new Set([`table`,`td`,`th`]);function pe(e){return fe.has(T(e))}var me=[`:popover-open`,`:modal`];function j(e){return me.some(t=>{try{return e.matches(t)}catch{return!1}})}var he=[`transform`,`translate`,`scale`,`rotate`,`perspective`],ge=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],_e=[`paint`,`layout`,`strict`,`content`];function ve(e){let t=M(),n=O(e)?P(e):e;return he.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)||ge.some(e=>(n.willChange||``).includes(e))||_e.some(e=>(n.contain||``).includes(e))}function ye(e){let t=I(e);for(;k(t)&&!N(t);){if(ve(t))return t;if(j(t))return null;t=I(t)}return null}function M(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var be=new Set([`html`,`body`,`#document`]);function N(e){return be.has(T(e))}function P(e){return E(e).getComputedStyle(e)}function F(e){return O(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function I(e){if(T(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ue(e)&&e.host||D(e);return ue(t)?t.host:t}function xe(e){let t=I(e);return N(t)?e.ownerDocument?e.ownerDocument.body:e.body:k(t)&&A(t)?t:xe(t)}function L(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=xe(e),i=r===e.ownerDocument?.body,a=E(r);if(i){let e=R(a);return t.concat(a,a.visualViewport||[],A(r)?r:[],e&&n?L(e):[])}return t.concat(r,L(r,[],n))}function R(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Se(e){let t=P(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=k(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=a(n)!==o||a(r)!==s;return c&&(n=o,r=s),{width:n,height:r,$:c}}function Ce(e){return O(e)?e:e.contextElement}function z(e){let t=Ce(e);if(!k(t))return o(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Se(t),c=(s?a(n.width):n.width)/r,l=(s?a(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var we=o(0);function Te(e){let t=E(e);return!M()||!t.visualViewport?we:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ee(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==E(e)?!1:t}function B(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let a=e.getBoundingClientRect(),s=Ce(e),c=o(1);t&&(r?O(r)&&(c=z(r)):c=z(e));let l=Ee(s,n,r)?Te(s):o(0),u=(a.left+l.x)/c.x,d=(a.top+l.y)/c.y,f=a.width/c.x,p=a.height/c.y;if(s){let e=E(s),t=r&&O(r)?E(r):r,n=e,i=R(n);for(;i&&r&&t!==n;){let e=z(i),t=i.getBoundingClientRect(),r=P(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,f*=e.x,p*=e.y,u+=a,d+=o,n=E(i),i=R(n)}}return i({width:f,height:p,x:u,y:d})}function V(e,t){let n=F(e).scrollLeft;return t?t.left+n:B(D(e)).left+n}function De(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-V(e,n),y:n.top+t.scrollTop}}function Oe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,s=D(r),c=t?j(t.floating):!1;if(r===s||c&&a)return n;let l={scrollLeft:0,scrollTop:0},u=o(1),d=o(0),f=k(r);if((f||!f&&!a)&&((T(r)!==`body`||A(s))&&(l=F(r)),k(r))){let e=B(r);u=z(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=s&&!f&&!a?De(s,l):o(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function ke(e){return Array.from(e.getClientRects())}function Ae(e){let t=D(e),n=F(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+V(e),c=-n.scrollTop;return P(r).direction===`rtl`&&(o+=s(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:c}}var je=25;function Me(e,t){let n=E(e),r=D(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=M();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=V(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<=je&&(a-=o)}else l<=je&&(a+=l);return{width:a,height:o,x:s,y:c}}var Ne=new Set([`absolute`,`fixed`]);function Pe(e,t){let n=B(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=k(e)?z(e):o(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Fe(e,t,n){let r;if(t===`viewport`)r=Me(e,n);else if(t===`document`)r=Ae(D(e));else if(O(t))r=Pe(t,n);else{let n=Te(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return i(r)}function Ie(e,t){let n=I(e);return n===t||!O(n)||N(n)?!1:P(n).position===`fixed`||Ie(n,t)}function Le(e,t){let n=t.get(e);if(n)return n;let r=L(e,[],!1).filter(e=>O(e)&&T(e)!==`body`),i=null,a=P(e).position===`fixed`,o=a?I(e):e;for(;O(o)&&!N(o);){let t=P(o),n=ve(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&Ne.has(i.position)||A(o)&&!n&&Ie(e,o))?r=r.filter(e=>e!==o):i=t,o=I(o)}return t.set(e,r),r}function Re(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?j(t)?[]:Le(t,this._c):[].concat(n),r],o=a[0],c=a.reduce((e,n)=>{let r=Fe(t,n,i);return e.top=s(r.top,e.top),e.right=l(r.right,e.right),e.bottom=l(r.bottom,e.bottom),e.left=s(r.left,e.left),e},Fe(t,o,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ze(e){let{width:t,height:n}=Se(e);return{width:t,height:n}}function Be(e,t,n){let r=k(t),i=D(t),a=n===`fixed`,s=B(e,!0,a,t),c={scrollLeft:0,scrollTop:0},l=o(0);function u(){l.x=V(i)}if(r||!r&&!a)if((T(t)!==`body`||A(i))&&(c=F(t)),r){let e=B(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&u();a&&!r&&i&&u();let d=i&&!r&&!a?De(i,c):o(0);return{x:s.left+c.scrollLeft-l.x-d.x,y:s.top+c.scrollTop-l.y-d.y,width:s.width,height:s.height}}function H(e){return P(e).position===`static`}function Ve(e,t){if(!k(e)||P(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return D(e)===n&&(n=n.ownerDocument.body),n}function He(e,t){let n=E(e);if(j(e))return n;if(!k(e)){let t=I(e);for(;t&&!N(t);){if(O(t)&&!H(t))return t;t=I(t)}return n}let r=Ve(e,t);for(;r&&pe(r)&&H(r);)r=Ve(r,t);return r&&N(r)&&H(r)&&!ve(r)?n:r||ye(e)||n}var Ue=async function(e){let t=this.getOffsetParent||He,n=this.getDimensions,r=await n(e.floating);return{reference:Be(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function We(e){return P(e).direction===`rtl`}var Ge={convertOffsetParentRelativeRectToViewportRelativeRect:Oe,getDocumentElement:D,getClippingRect:Re,getOffsetParent:He,getElementRects:Ue,getClientRects:ke,getDimensions:ze,getScale:z,isElement:O,isRTL:We},Ke=t,qe=ee,Je=ne,Ye=(e,t,n)=>{let r=new Map,i={platform:Ge,...n},a={...i.platform,_c:r};return c(e,t,{...i,platform:a})},Xe=y({__name:`GraphHoverView`,props:{hoverX:{},hoverY:{}},setup(t){let{hoverX:n,hoverY:i}=e(t),a=u(`hoverElement`),o=p(0),s=p(0);return se([n,i],([e,t])=>{Ye({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},a.value,{placement:`right-start`,middleware:[Je(),qe(),Ke({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{o.value=e,s.value=t})}),(e,t)=>(r(),re(ie,{to:`body`},[_(`div`,{ref_key:`hoverElement`,ref:a,fixed:``,"z-panel-content":``,"pointer-events-none":``,style:b({left:`${o.value}px`,top:`${s.value}px`})},[te(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=y({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:t}){let i=e,a=t,o=x(()=>{let e=[],t=i.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,t)=>(r(),v(`div`,Lt,[(r(!0),v(g,null,n(o.value,(e,t)=>(r(),v(g,{key:e.id},[t>0?(r(),v(`div`,Rt)):oe(``,!0),_(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:t=>a(`select`,e)},[_(`span`,null,h(e.text||e.id),1)],8,zt)],64))),128))]))}}),Vt=Object.assign(Bt,{__name:`ChartNavBreadcrumb`});function Ht(e){let{data:t,nameKey:n,sizeKey:r,rootText:i,nodeType:a,graphOptions:o,onUpdate:s}=e,c=m(void 0),l=m(void 0),u=p(void 0),h=m(void 0),g,_=x(()=>{if(e.tree)return e.tree.value;let o=ae(t),s=new Map,c=0,l={id:`~root`,text:i,size:0,sizeSelf:0,children:[]};if(!o?.length)return{map:s,root:l,maxDepth:c};let u=[];u.unshift(()=>{l.size+=l.children.reduce((e,t)=>e+t.size,0),l.subtext=C(l.size).join(` `),l.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function d(e,t,n,r,i){if(s.has(t))return s.get(t);i>c&&(c=i);let o={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return s.set(t,o),r.children.push(o),u.unshift(()=>{let t=o.sizeSelf;o.size+=o.children.reduce((e,t)=>e+t.size,0),o.subtext=C(o.size).join(` `),o.children.length&&t/o.size>.1&&o.children.push({id:`${o.id}-self`,text:``,size:t,sizeSelf:t,subtext:C(t).join(` `),children:[],meta:{...e,path:``,type:a},parent:o}),o.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),o}function f(e){let t=e[n].split(`/`).filter(Boolean),i=l,o=``,c=0;t.forEach((l,u)=>{if(o+=(o?`/`:``)+l,c++,u===t.length-1){let t={id:e[n],text:l,size:e[r],sizeSelf:e[r],subtext:C(e[r]).join(` `),children:[],meta:{...e,path:l,type:a}};i.children.push(t),s.set(e[n],t)}else i=d(e,o,l,i,c)})}return o.forEach(f),u.forEach(e=>e()),{map:s,root:l,maxDepth:c}}),v=x(()=>({animate:ce.value.chartAnimation,palette:{stroke:S.value?`#222`:`#555`,fg:S.value?`#fff`:`#000`,bg:S.value?`#111`:`#fff`},getColor:ot(_.value.root,S.value?.8:.9,S.value?1:1.1),getSubtext:e=>e.subtext,...o}));function y(e,t){u.value=e?.meta,e?.children.length||(e=e?.parent),h.value?.select(e,t)}function b(){g?.(),l.value=_.value.root,s?.(),d(()=>{let e=u.value&&_.value.map.get(u.value[n])||null;e&&y(e,!1)}),g=()=>{h.value?.dispose(),h.value=void 0,u.value=void 0}}return d(()=>{se(()=>[_.value,v.value],()=>{b()},{deep:!0,immediate:!1}),b()}),f(()=>{g?.()}),{tree:_,graph:h,chartOptions:v,nodeHover:c,nodeSelected:l,selectedNode:u,selectNode:y,buildGraph:b}}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};
|
package/dist/public/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-vite/_nuxt/wlAuDjxN.js"}}</script><title>Vite DevTools</title><link rel="stylesheet" href="/.devtools-vite/_nuxt/entry.BVWKKagY.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-vite/_nuxt/wlAuDjxN.js"><meta name="description" content="DevTools for Vite"><meta property="og:title" content="Vite DevTools"><meta property="og:description" content="DevTools for Vite"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script type="module" src="/.devtools-vite/_nuxt/wlAuDjxN.js" crossorigin></script><script id="unhead:payload" type="application/json">{"title":"Vite DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1766388340861,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-vite/",buildId:"92f58f41-f5d8-4eb9-8df8-90c37ec07cf8",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/devtools-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-alpha.
|
|
4
|
+
"version": "0.0.0-alpha.21",
|
|
5
5
|
"description": "DevTools for Vite (work in progress)",
|
|
6
6
|
"author": "VoidZero Inc.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://github.com/vitejs/devtools#readme",
|
|
9
9
|
"repository": {
|
|
10
|
-
"directory": "
|
|
10
|
+
"directory": "/vite",
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/vitejs/devtools.git"
|
|
13
13
|
},
|
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
],
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"exports": {
|
|
21
|
-
".": "./dist/index.
|
|
22
|
-
"./dirs": "./dist/dirs.
|
|
21
|
+
".": "./dist/index.mjs",
|
|
22
|
+
"./dirs": "./dist/dirs.mjs",
|
|
23
23
|
"./package.json": "./package.json"
|
|
24
24
|
},
|
|
25
|
-
"main": "./dist/index.
|
|
26
|
-
"module": "./dist/index.
|
|
27
|
-
"types": "./dist/index.d.
|
|
25
|
+
"main": "./dist/index.mjs",
|
|
26
|
+
"module": "./dist/index.mjs",
|
|
27
|
+
"types": "./dist/index.d.mts",
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@floating-ui/dom": "^1.7.4",
|
|
33
|
-
"@pnpm/read-project-manifest": "^1001.
|
|
34
|
-
"@rolldown/debug": "^1.0.0-beta.
|
|
33
|
+
"@pnpm/read-project-manifest": "^1001.2.3",
|
|
34
|
+
"@rolldown/debug": "^1.0.0-beta.56",
|
|
35
35
|
"ansis": "^4.2.0",
|
|
36
|
-
"birpc": "^
|
|
36
|
+
"birpc": "^4.0.0",
|
|
37
37
|
"cac": "^6.7.14",
|
|
38
38
|
"d3-shape": "^3.2.0",
|
|
39
39
|
"diff": "^8.0.2",
|
|
@@ -42,29 +42,30 @@
|
|
|
42
42
|
"mlly": "^1.8.0",
|
|
43
43
|
"mrmime": "^2.0.1",
|
|
44
44
|
"ohash": "^2.0.11",
|
|
45
|
-
"p-limit": "^7.
|
|
45
|
+
"p-limit": "^7.2.0",
|
|
46
46
|
"pathe": "^2.0.3",
|
|
47
|
-
"publint": "^0.3.
|
|
47
|
+
"publint": "^0.3.16",
|
|
48
48
|
"sirv": "^3.0.2",
|
|
49
49
|
"split2": "^4.2.0",
|
|
50
50
|
"structured-clone-es": "^1.0.0",
|
|
51
51
|
"tinyglobby": "^0.2.15",
|
|
52
|
-
"unconfig": "^7.
|
|
53
|
-
"unstorage": "^1.17.
|
|
52
|
+
"unconfig": "^7.4.2",
|
|
53
|
+
"unstorage": "^1.17.3",
|
|
54
54
|
"vue-virtual-scroller": "^2.0.0-beta.8",
|
|
55
55
|
"ws": "^8.18.3",
|
|
56
|
-
"@vitejs/devtools-
|
|
57
|
-
"@vitejs/devtools-
|
|
56
|
+
"@vitejs/devtools-rpc": "0.0.0-alpha.21",
|
|
57
|
+
"@vitejs/devtools-kit": "0.0.0-alpha.21"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@types/codemirror": "^5.60.
|
|
60
|
+
"@types/codemirror": "^5.60.17",
|
|
61
61
|
"@types/diff": "^8.0.0",
|
|
62
62
|
"@types/split2": "^4.2.3",
|
|
63
63
|
"@types/stream-json": "^1.7.8",
|
|
64
|
-
"@unocss/nuxt": "^66.5.
|
|
65
|
-
"@vueuse/components": "^
|
|
66
|
-
"@vueuse/
|
|
67
|
-
"@vueuse/
|
|
64
|
+
"@unocss/nuxt": "^66.5.10",
|
|
65
|
+
"@vueuse/components": "^14.1.0",
|
|
66
|
+
"@vueuse/core": "^14.1.0",
|
|
67
|
+
"@vueuse/nuxt": "^14.1.0",
|
|
68
|
+
"@vueuse/router": "^14.1.0",
|
|
68
69
|
"codemirror": "^5.65.20",
|
|
69
70
|
"codemirror-theme-vars": "^0.1.2",
|
|
70
71
|
"comlink": "^4.4.2",
|
|
@@ -74,15 +75,15 @@
|
|
|
74
75
|
"floating-vue": "^5.2.2",
|
|
75
76
|
"fuse.js": "^7.1.0",
|
|
76
77
|
"idb-keyval": "^6.2.2",
|
|
77
|
-
"nanovis": "^0.
|
|
78
|
+
"nanovis": "^1.0.0",
|
|
78
79
|
"splitpanes": "^4.0.4",
|
|
79
80
|
"stream-json": "^1.9.1",
|
|
80
81
|
"theme-vitesse": "^1.0.0",
|
|
81
|
-
"tsdown": "^0.
|
|
82
|
+
"tsdown": "^0.18.2",
|
|
82
83
|
"vite-hot-client": "^2.1.0"
|
|
83
84
|
},
|
|
84
85
|
"scripts": {
|
|
85
|
-
"build": "ROLLDOWN_OPTIONS_VALIDATION=loose nuxi build src && tsdown",
|
|
86
|
+
"build": "pnpm dev:prepare && ROLLDOWN_OPTIONS_VALIDATION=loose nuxi build src && tsdown",
|
|
86
87
|
"build:debug": "NUXT_DEBUG_BUILD=true pnpm run build",
|
|
87
88
|
"dev": "ROLLDOWN_OPTIONS_VALIDATION=loose nuxi dev src",
|
|
88
89
|
"dev:prepare": "nuxi prepare src"
|
package/dist/dirs.js
DELETED
package/dist/index.d.ts
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { Plugin, ResolvedConfig, ViteDevServer } from "vite";
|
|
2
|
-
|
|
3
|
-
//#region ../devtools-kit/src/types/rpc-augments.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* To be extended
|
|
7
|
-
*/
|
|
8
|
-
interface DevToolsRpcServerFunctions {}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region ../devtools-kit/src/types/utils.d.ts
|
|
11
|
-
type Thenable<T> = T | Promise<T>;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region ../devtools-kit/src/types/views.d.ts
|
|
14
|
-
interface DevToolsDockHost {
|
|
15
|
-
register: (entry: DevToolsDockEntry) => void;
|
|
16
|
-
values: () => DevToolsDockEntry[];
|
|
17
|
-
}
|
|
18
|
-
interface DevToolsDockEntryBase {
|
|
19
|
-
id: string;
|
|
20
|
-
title: string;
|
|
21
|
-
icon: string;
|
|
22
|
-
}
|
|
23
|
-
interface DevToolsViewIframe extends DevToolsDockEntryBase {
|
|
24
|
-
type: 'iframe';
|
|
25
|
-
url: string;
|
|
26
|
-
/**
|
|
27
|
-
* The id of the iframe, if multiple tabs is assigned with the same id, the iframe will be shared.
|
|
28
|
-
*
|
|
29
|
-
* When not provided, it would be treated as a unique frame.
|
|
30
|
-
*/
|
|
31
|
-
frameId?: string;
|
|
32
|
-
}
|
|
33
|
-
interface DevToolsViewWebComponent extends DevToolsDockEntryBase {
|
|
34
|
-
type: 'webcomponent';
|
|
35
|
-
from: string;
|
|
36
|
-
import: string;
|
|
37
|
-
}
|
|
38
|
-
interface DevToolsViewAction extends DevToolsDockEntryBase {
|
|
39
|
-
type: 'action';
|
|
40
|
-
importFrom: string;
|
|
41
|
-
/**
|
|
42
|
-
* @default 'default'
|
|
43
|
-
*/
|
|
44
|
-
importName?: string;
|
|
45
|
-
}
|
|
46
|
-
type DevToolsDockEntry = DevToolsViewIframe | DevToolsViewWebComponent | DevToolsViewAction;
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region ../devtools-kit/src/types/vite-plugin.d.ts
|
|
49
|
-
interface DevToolsCapabilities {
|
|
50
|
-
rpc?: boolean;
|
|
51
|
-
views?: boolean;
|
|
52
|
-
}
|
|
53
|
-
interface DevToolsPluginOptions {
|
|
54
|
-
capabilities?: {
|
|
55
|
-
dev?: DevToolsCapabilities | boolean;
|
|
56
|
-
build?: DevToolsCapabilities | boolean;
|
|
57
|
-
};
|
|
58
|
-
setup: (context: DevToolsNodeContext) => void | Promise<void>;
|
|
59
|
-
}
|
|
60
|
-
interface DevToolsNodeContext {
|
|
61
|
-
readonly cwd: string;
|
|
62
|
-
readonly mode: 'dev' | 'build';
|
|
63
|
-
readonly viteConfig: ResolvedConfig;
|
|
64
|
-
readonly viteServer?: ViteDevServer;
|
|
65
|
-
rpc: RpcFunctionsHost;
|
|
66
|
-
docks: DevToolsDockHost;
|
|
67
|
-
/**
|
|
68
|
-
* Helper to host static files
|
|
69
|
-
* - In `dev` mode, it will register middleware to `viteServer.middlewares` to host the static files
|
|
70
|
-
* - In `build` mode, it will copy the static files to the dist directory
|
|
71
|
-
*/
|
|
72
|
-
hostStatic: (baseUrl: string, distDir: string) => void;
|
|
73
|
-
staticDirs: {
|
|
74
|
-
baseUrl: string;
|
|
75
|
-
distDir: string;
|
|
76
|
-
}[];
|
|
77
|
-
}
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region ../devtools-kit/src/types/rpc.d.ts
|
|
80
|
-
/**
|
|
81
|
-
* Type of the RPC function,
|
|
82
|
-
* - static: A function that returns a static data (can be cached and dumped)
|
|
83
|
-
* - action: A function that performs an action (no data returned)
|
|
84
|
-
* - query: A function that queries a resource
|
|
85
|
-
*/
|
|
86
|
-
type RpcFunctionType = 'static' | 'action' | 'query';
|
|
87
|
-
interface RpcFunctionsHost {
|
|
88
|
-
context: DevToolsNodeContext;
|
|
89
|
-
readonly functions: DevToolsRpcServerFunctions;
|
|
90
|
-
readonly definitions: Map<string, RpcFunctionDefinition<string, any, any, any>>;
|
|
91
|
-
register: (fn: RpcFunctionDefinition<string, any, any, any>) => void;
|
|
92
|
-
}
|
|
93
|
-
interface RpcFunctionSetupResult<ARGS extends any[], RETURN = void> {
|
|
94
|
-
handler: (...args: ARGS) => RETURN;
|
|
95
|
-
}
|
|
96
|
-
interface RpcFunctionDefinition<NAME extends string, TYPE extends RpcFunctionType, ARGS extends any[] = [], RETURN = void> {
|
|
97
|
-
name: NAME;
|
|
98
|
-
type: TYPE;
|
|
99
|
-
setup: (context: DevToolsNodeContext) => Thenable<RpcFunctionSetupResult<ARGS, RETURN>>;
|
|
100
|
-
handler?: (...args: ARGS) => RETURN;
|
|
101
|
-
__resolved?: RpcFunctionSetupResult<ARGS, RETURN>;
|
|
102
|
-
__promise?: Thenable<RpcFunctionSetupResult<ARGS, RETURN>>;
|
|
103
|
-
}
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region ../devtools-kit/src/types/vite-augment.d.ts
|
|
106
|
-
declare module 'vite' {
|
|
107
|
-
interface Plugin {
|
|
108
|
-
devtools?: DevToolsPluginOptions;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
interface PluginWithDevTools extends Plugin {
|
|
112
|
-
devtools?: DevToolsPluginOptions;
|
|
113
|
-
}
|
|
114
|
-
//#endregion
|
|
115
|
-
//#region src/node/plugin.d.ts
|
|
116
|
-
declare function DevToolsViteUI(): PluginWithDevTools;
|
|
117
|
-
//#endregion
|
|
118
|
-
export { DevToolsViteUI };
|