@vitejs/devtools-vite 0.4.11 → 0.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/index.mjs +6 -6
  2. package/dist/nitro.json +2 -2
  3. package/dist/public/200.html +1 -1
  4. package/dist/public/404.html +1 -1
  5. package/dist/public/_nuxt/BGb3HCzy.js +2 -0
  6. package/dist/public/_nuxt/Bcm8YpeQ.js +1 -0
  7. package/dist/public/_nuxt/Bsjgb83X.js +1 -0
  8. package/dist/public/_nuxt/C07SPJjG.js +1 -0
  9. package/dist/public/_nuxt/CJZkPAQ6.js +12 -0
  10. package/dist/public/_nuxt/COnBqmRc.js +1 -0
  11. package/dist/public/_nuxt/CZsQis-z.js +3 -0
  12. package/dist/public/_nuxt/D3ipLAva.js +3 -0
  13. package/dist/public/_nuxt/D4usamxR.js +1 -0
  14. package/dist/public/_nuxt/DYh7PGdm.js +1 -0
  15. package/dist/public/_nuxt/DYnEv4v1.js +2 -0
  16. package/dist/public/_nuxt/Da52wqYG.js +1 -0
  17. package/dist/public/_nuxt/builds/latest.json +1 -1
  18. package/dist/public/_nuxt/builds/meta/62875dc6-1250-497a-8f8e-558ea9a6ded2.json +1 -0
  19. package/dist/public/_nuxt/{diff.worker-DFeiLCV8.js → diff.worker-DKtlrP_3.js} +1 -1
  20. package/dist/public/_nuxt/{entry.y4H_SqMK.css → entry.C970SjKN.css} +1 -1
  21. package/dist/public/_nuxt/error-404.BZzApXDo.css +1 -0
  22. package/dist/public/_nuxt/error-500.X5saOryf.css +1 -0
  23. package/dist/public/_nuxt/wOLRSe8l.js +1 -0
  24. package/dist/public/_nuxt/x7WtCf1u.js +1 -0
  25. package/dist/public/index.html +1 -1
  26. package/package.json +5 -5
  27. package/dist/public/_nuxt/B27J0MyN.js +0 -2
  28. package/dist/public/_nuxt/B9YnVuxw.js +0 -1
  29. package/dist/public/_nuxt/CChuPScG.js +0 -1
  30. package/dist/public/_nuxt/Cd6tffxF.js +0 -1
  31. package/dist/public/_nuxt/D76xjyBv.js +0 -1
  32. package/dist/public/_nuxt/DDCgc1Ci.js +0 -1
  33. package/dist/public/_nuxt/DJ19a8gF.js +0 -1
  34. package/dist/public/_nuxt/DM3Bo8m4.js +0 -12
  35. package/dist/public/_nuxt/DVtgaMFs.js +0 -1
  36. package/dist/public/_nuxt/Dt4AsJaz.js +0 -2
  37. package/dist/public/_nuxt/DyZ3H7l0.js +0 -1
  38. package/dist/public/_nuxt/FvQ1Jpsu.js +0 -1
  39. package/dist/public/_nuxt/Pe6-s13S.js +0 -1
  40. package/dist/public/_nuxt/SLYki7Hm.js +0 -1
  41. package/dist/public/_nuxt/V9lF8C-P.js +0 -3
  42. package/dist/public/_nuxt/builds/meta/ac3f7ed6-d144-438e-81f3-0795167b3e53.json +0 -1
  43. package/dist/public/_nuxt/error-404.CO2uEYJF.css +0 -1
  44. package/dist/public/_nuxt/error-500.DIM_syck.css +0 -1
@@ -1 +0,0 @@
1
- import{$ as e,At as t,B as n,C as r,Ct as i,Dt as a,Et as o,F as s,G as c,H as l,I as u,J as d,Jt as f,N as p,O as m,Ot as h,R as g,S as _,T as v,U as y,V as b,W as x,Xt as S,Y as C,Yt as w,Z as T,ct as E,dt as D,et as O,ft as k,g as A,ht as j,it as ee,j as te,jt as M,kt as N,lt as P,ot as F,q as I,qt as L,rt as R,ut as ne,w as z,wt as re,x as B,xt as ie,y as ae,yt as oe}from"./V9lF8C-P.js";import{J as se,t as ce}from"./FvQ1Jpsu.js";import{f as le}from"./DDCgc1Ci.js";import{_ as V,b as H,f as ue,g as U,h as de,m as W,n as fe,p as G,s as pe,v as K,x as me,y as he}from"./DyZ3H7l0.js";import{t as ge}from"./BDNMzG2s.js";import{p as _e}from"./Pe6-s13S.js";var ve=class{length;_mapTree;constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e.at(-1),t),this}get(e){return this._getLastMap(e).get(e.at(-1))}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e.at(-1))}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},ye=class{_lengthMap;constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,t){let n=e.length,r=this._lengthMap.get(n);return r||(r=new ve(n),this._lengthMap.set(n,r)),r.set(e,t),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function be(e){let t=new ye,n=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return n.cache=t,n}var xe=[{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:/\.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:/\.jsonc?5?(?:$|\?)/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`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`}],Se=[{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`}],Ce={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},we={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`},Te=be(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of xe)if(t.match.test(e))return t;return Ce}),Ee=be(e=>{for(let t of Se)if(t.match.test(e))return t;return we}),De=[`title`],Oe=p({__name:`DisplayFileIcon`,props:{filename:{}},setup(e){let t=e,n=B(()=>Te(t.filename));return(e,t)=>(C(),v(`div`,{class:L([`flex-none icon-catppuccin`,[n.value.icon]]),title:n.value.description||n.value.name},null,10,De))}});function ke(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return Ae(n%360,t)}function Ae(e,t=1){return`hsla(${e}, ${fe.value?50:65}%, ${fe.value?60:40}%, ${t})`}var je={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,rolldown:18,virtual:160,nuxt:140};function Me(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in je){let n=je[e];return typeof n==`number`?Ae(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return ke(e,t)}var Ne=p({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(e){return()=>{let t=e.path.split(/([?/&:=])/g),n=`path`,r=t.map(()=>[]),i=t.map(()=>[]),a=t.map(e=>u(`span`,{class:``},e)),o=new Set;return t.forEach((s,c)=>{if(s===`?`&&(n=`query`),n===`path`){if(/^\.+$/.test(s)||s===`/`?r[c]?.push(`op50`):(s===`node_modules`||s===`dist`||s===`lib`||/^\.\w/.test(s))&&r[c]?.push(`op60`),s===`node_modules`&&e.minimal)for(let e=0;e<c+2;e++)o.add(e);if(s===`.pnpm`&&(a[c]&&(a[c].children=`~`,r[c]?.push(`op25!`),r[c-1]?.push(`op25!`)),o.add(c+1),o.add(c+2),r[c+3]?.push(`op25!`),a[c+4]?.children===`node_modules`&&(o.add(c+3),o.add(c+4),r[c+5]?.push(`op25!`))),s===`:`&&(a[c-1]&&i[c-1]?.push(`color: ${Me(t[c-1])}`),r[c]?.push(`op50`)),t[c-2]===`node_modules`&&!s.startsWith(`.`)){let e=`color: ${Me(t[c])}`;i[c]?.push(e),s.startsWith(`@`)&&(i[c+1]?.push(e),i[c+2]?.push(e))}}n===`query`&&(s===`?`?r[c]?.push(`text-red-500 dark:text-red-400`):s===`&`&&r[c]?.push(`text-orange-500 dark:text-orange-400`),s===`=`?r[c]?.push(`text-orange-900 dark:text-orange-200 op50`):t[c+1]===`=`?r[c]?.push(`text-amber-900 dark:text-amber-200`):r[c]?.push(`text-orange-900 dark:text-orange-200`))}),a.forEach((e,t)=>{e.props&&(e.props.class=r[t]?.join(` `)??``,e.props.style=i[t]?.join(`;`)??``)}),Array.from(o).sort((e,t)=>t-e).forEach(e=>a.splice(e,1)),a}}}),Pe=[`textContent`],Fe=p({__name:`DisplayBadge`,props:{text:{},color:{type:[Boolean,Number],default:!0},as:{},size:{}},setup(e){let t=e,n=B(()=>!t.text||t.color===!1?{}:{color:typeof t.color==`number`?Ae(t.color):ke(t.text),background:typeof t.color==`number`?Ae(t.color,.1):ke(t.text,.1)}),i=B(()=>{switch(t.size||`sm`){case`sm`:return`px-1.5 text-11px leading-1.6em`}return``});return(a,o)=>(C(),r(R(e.as||`span`),{class:L([`ws-nowrap rounded`,i.value]),style:w(n.value)},{default:D(()=>[O(a.$slots,`default`,{},()=>[_(`span`,{textContent:S(t.text)},null,8,Pe)])]),_:3},8,[`class`,`style`]))}}),Ie=/^[A-Za-z]:\//;function Le(e=``){return e&&e.replace(/\\/g,`/`).replace(Ie,e=>e.toUpperCase())}var Re=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,ze=/^\/([A-Za-z]:)?$/;function Be(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var Ve=function(...e){e=e.map(e=>Le(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Be();!i||i.length===0||(t=`${i}/${t}`,n=Ue(i))}return t=He(t,!n),n&&!Ue(t)?`/${t}`:t.length>0?t:`.`};function He(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 Ue=function(e){return Re.test(e)},We=function(e,t){let n=Ve(e).replace(ze,`$1`).split(`/`),r=Ve(t).replace(ze,`$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(`/`)},Ge={class:`overflow-hidden text-ellipsis break-all line-clamp-2`},Ke={class:`font-mono text-sm`},qe=Object.assign(p({__name:`ModuleId`,props:{id:{},badges:{type:Boolean},icon:{type:Boolean,default:!0},link:{type:[Boolean,String]},minimal:{type:Boolean},kind:{},cwd:{},disableTooltip:{type:Boolean,default:!1}},setup(e){let t=e,n=le(),i=typeof window>`u`?``:window.location.hash,a=B(()=>{if(!t.id)return``;let e=t.id.replace(/%2F/g,`/`);if(e.startsWith(`./`)||e.startsWith(`../`))return e;let n=t.cwd||``,r=n?We(n,e):e;return r.startsWith(`.`)||(r=`./${r}`),r.startsWith(`./`)||/^(?:\.\.\/){1,3}[^.]/.test(r)?r:e}),o=B(()=>`flex items-center`);return(s,c)=>{let l=Oe,u=Ne;return C(),r(R(e.link?M(ce):`div`),{to:e.link?typeof e.link==`string`?e.link:{path:M(n).path,query:{...M(n).query,module:e.id,chunk:void 0},hash:M(i)}:void 0},{default:D(()=>[te(M(ue),{class:`my-auto text-sm font-mono block w-full`,triggers:[`hover`],delay:1200,disabled:e.disableTooltip||(t.id?.length||0)<30,placement:`bottom-start`},{popper:D(()=>[_(`span`,Ke,S(t.id),1)]),default:D(()=>[e.id?(C(),v(`div`,{key:0,class:L(o.value)},[e.icon?(C(),r(l,{key:0,filename:e.id,class:`mr1.5`},null,8,[`filename`])):z(``,!0),_(`span`,Ge,[te(u,{path:a.value,minimal:e.minimal},null,8,[`path`,`minimal`])]),O(s.$slots,`default`),e.kind?(C(),r(Fe,{key:1,class:`ml1`,text:e.kind},null,8,[`text`])):z(``,!0)],2)):z(``,!0),_(`div`,null,[O(s.$slots,`detail`)])]),_:3},8,[`disabled`])]),_:3},8,[`to`])}}}),{__name:`DisplayModuleId`});function Je(e){return e==null?`null`:typeof e==`function`?`a function`:`'${e}'`}function Ye(e,t,n){if(!n)return t;let r=typeof n==`function`?n(e,t):e?.[n];if(r==null)throw Error(`Key is ${r} on item (keyField is ${Je(n)})`);return r}function Xe(e,t,n){if(typeof n==`function`&&t==null)throw Error(`index is required when using a function keyField`);return Ye(e,t??0,n)}function Ze(e,t,n){return Ye(e,t,n)}function Qe(e,t){return e.map((e,n)=>Ze(e,n,t))}function $e(e,t,n){let r=[],i=[];for(let a=0;a<e.length;a++){let o=e[a],s=Ze(o,a,t),c=n(o,a,s);r.push(s),i.push(typeof c==`number`&&c>0?c:null)}return{keys:r,sizes:i}}function et(e,t,n){if(!e||e.keys.length!==t.length||e.sizes.length!==t.length)return!1;for(let r=0;r<t.length;r++)if(e.keys[r]!==Ze(t[r],r,n))return!1;return!0}function tt(e,t,n){if(!et(e,t,n))return{};let r={};for(let t=0;t<e.keys.length;t++){let n=e.sizes[t];typeof n==`number`&&n>0&&(r[e.keys[t]]=n)}return r}function nt(e,t){if(!e.length||t.length<=e.length)return 0;let n=e[0],r=t.indexOf(n);if(r<=0||r+e.length<t.length&&e.length>t.length-r)return 0;for(let n=0;n<e.length;n++)if(t[r+n]!==e[n])return 0;return r}function rt(e,t,n,r,i,a=0){let o=i??`start`;if(o===`nearest`){let i=n+r,o=e+t;return e>=n&&o<=i?null:e<n?e+a:o-r+a}return o===`end`?e+t-r+a:o===`center`?e+(t-r)/2+a:e+a}function it(e){return e.flowMode&&e.direction===`vertical`&&!e.gridItems?`flow`:e.disableTransform?`position`:`transform`}function at(e,t){let n=t.direction===`vertical`,r=t.mode??`transform`,i={visibility:e.nr.used?`visible`:`hidden`,pointerEvents:e.nr.used?void 0:`none`};if(r===`flow`?i.display=e.nr.used?void 0:`none`:(i.position=`absolute`,i.top=`0px`,i.left=`0px`,i.display=void 0),r===`position`?(i[n?`top`:`left`]=`${e.position}px`,i[n?`left`:`top`]=`${e.offset}px`,i.transform=`none`,i.willChange=`unset`):r===`transform`&&(i.transform=n?`translateY(${e.position}px) translateX(${e.offset}px)`:`translateX(${e.position}px) translateY(${e.offset}px)`,i.willChange=`transform`),t.gridItems&&t.itemSize!=null){let e=t.itemSecondarySize||t.itemSize;i.width=`${n?e:t.itemSize}px`,i.height=`${n?t.itemSize:e}px`}return i}function ot(e){return B(()=>N(e))}function st(e,t,n,r,i){let a=ot(e);return{el:B(()=>{let e=a.value.el;return N(t??e)}),before:B(()=>{let e=a.value.before;return N(n??e)}),after:B(()=>{let e=a.value.after;return N(r??e)}),scrollParent:B(()=>{let e=a.value.scrollParent;return N(e)}),callbacks:{onResize:()=>(i?.onResize??a.value.onResize)?.(),onVisible:()=>(i?.onVisible??a.value.onVisible)?.(),onHidden:()=>(i?.onHidden??a.value.onHidden)?.(),onUpdate:(e,t,n,r)=>(i?.onUpdate??a.value.onUpdate)?.(e,t,n,r)}}}var ct={itemsLimit:1e3};function lt(e){return typeof window<`u`&&e===window}var ut=(()=>{if(typeof document>`u`)return`negative`;let e=document.createElement(`div`),t=document.createElement(`div`);e.style.width=`4px`,e.style.height=`1px`,e.style.overflow=`auto`,e.style.direction=`rtl`,t.style.width=`8px`,t.style.height=`1px`,e.appendChild(t),document.body.appendChild(e),e.scrollLeft=-1;let n=e.scrollLeft<0;return document.body.removeChild(e),n?`negative`:`default`})();function dt(e,t,n){return t!==`horizontal`||!n||lt(n)||getComputedStyle(n).direction!==`rtl`?e:ut===`negative`?-e:e}function q(e,t,n){return dt(e,t,n)}function ft(e,t,n,r){let i=q(n,t,e),a=!!(r!=null&&r.smooth);if(lt(e)){t===`vertical`?e.scrollTo({top:i,behavior:a?`smooth`:`auto`}):e.scrollTo({left:i,behavior:a?`smooth`:`auto`});return}if(typeof e.scrollTo==`function`){e.scrollTo(t===`vertical`?{top:i,behavior:a?`smooth`:`auto`}:{left:i,behavior:a?`smooth`:`auto`});return}t===`vertical`?e.scrollTop=i:e.scrollLeft=i}function pt(e,t,n,r){if(n){if(r&&r!==window){let e=r;return t===`vertical`?e.clientHeight:e.clientWidth}return t===`vertical`?window.innerHeight:window.innerWidth}return t===`vertical`?e.clientHeight:e.clientWidth}var mt=/auto|scroll/;function ht(e,t){return e.parentNode===null?t:ht(e.parentNode,[...t,e])}function gt(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function _t(e){return gt(e,`overflow`)+gt(e,`overflow-y`)+gt(e,`overflow-x`)}function vt(e){return mt.test(_t(e))}function yt(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return;if(e.parentNode===null)return document.scrollingElement||document.documentElement;let t=ht(e.parentNode,[]);for(let e=0;e<t.length;e+=1)if(t[e]instanceof Element&&vt(t[e]))return t[e];return document.scrollingElement||document.documentElement}function bt(e,t){if(t)return t;if(!e)return;let n=yt(e);if(n)return typeof window<`u`&&window.document&&(n===window.document.documentElement||n===window.document.body)?window:n}var xt=!1;function St(){return xt}if(typeof window<`u`){xt=!1;try{let e=Object.defineProperty({},"passive",{get(){xt=!0}});window.addEventListener(`test`,null,e)}catch{}}function Ct(e){return typeof e==`number`?e:null}function wt(e,t,n,r,i){return typeof n==`number`?n:typeof n==`function`?n(e,t)||r||void 0:r||e?.[i??`size`]||void 0}function Tt(e,t,n,r,i,a){return typeof n==`function`?n(e,t)||r||Number(i)||0:r||e?.[a??`size`]||Number(i)||0}var Et=0,Dt=[];function Ot(e){for(let t=0;t<e.length;t++)e[t]}function kt(e,t){return e&&typeof e==`object`?e[t]:void 0}function At(e,t){return e.map(e=>kt(e,t))}function jt(e,t,n,r){if(e.length!==n.length||t.length!==r.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i]||t[i]!==r[i])return!1;return!0}function Mt(e){let t=e;t._vs_styleStamp++}function Nt(e){let t=e;t._vs_visibilityStamp++,t._vs_styleStamp++}function Pt(e,t,n,r){if(n){for(let e of n)r(e);return}for(let n=e;n<t;n++)r(n)}var Ft=8,It=1;function Lt(e,t,n,r,a,o){let s=ot(e),c=st(s,t,n,r,a),u=B(()=>{let e=N(U().items);return Ot(e),e}),d=i([]),f=i(0),p=i(0),m=i(0),h=i(!1),g=0,_=0,v=0,b=0,S=!1,C=null,w=new Map,T=new Map,E=!1,D=0,O=0,k=!1,A=null,j=null,ee=null,te=0,M=null,F=null,L=[],R=[],ne=null,z=null,ie=null,ae=!1,se=!1,ce=!1,le=new Set,V=i({}),H=[],ue={accumulator:0};function U(){return s.value}function de(){return o?.pageMode??U().pageMode}let W=B(()=>N(U().enabled??!0)),fe=B(()=>bt(c.el.value,c.scrollParent.value)),G=B(()=>{let e=u.value;return e.length>0&&typeof e[0]!=`object`}),pe=B(()=>{let e=U();if(Ct(e.itemSize)===null){let t=u.value,n=Array.from({length:t.length});ue.accumulator=0,n[-1]=ue;let r=e.minItemSize,i=V.value,a=G.value,o=1e4,s=0,c;for(let l=0,u=t.length;l<u;l++){let u=a?l:Ye(t[l],l,e.keyField);c=Tt(t[l],l,e.itemSize,i[u],r,e.sizeField),c<o&&(o=c),s+=c;let d=H[l]??(H[l]={accumulator:0,size:void 0});d.accumulator=s,d.size=c,n[l]=d}return H.length=t.length,te=o,n}return Dt}),K=B(()=>d.value.filter(e=>(e._vs_visibilityStamp,e.nr.used)).sort((e,t)=>e.nr.index-t.nr.index)),me=B(()=>{let e=U(),t=G.value?null:e.keyField;return $e(u.value,t,(t,n,r)=>wt(t,n,e.itemSize,V.value[r],e.sizeField))});function he(e=U()){return e.direction??`vertical`}function ge(e=U()){let t=he(e),n=e.flowMode??!1;return n&&t!==`vertical`&&(se||=(console.warn(`[vue-recycle-scroller] flowMode only supports vertical lists. Falling back to standard positioning.`),!0),n=!1),n&&e.gridItems&&(ce||=(console.warn(`[vue-recycle-scroller] flowMode does not support gridItems. Falling back to standard positioning.`),!0),n=!1),it({direction:t,disableTransform:e.disableTransform??!1,flowMode:n,gridItems:e.gridItems})}function _e(){d.value.sort((e,t)=>e.nr.used===t.nr.used?e.nr.used&&t.nr.used?e.nr.index-t.nr.index:e.nr.id-t.nr.id:e.nr.used?-1:1)}function ve(e){let t=U();return V.value=tt(e,u.value,G.value?null:t.keyField),Object.keys(V.value).length>0}function ye(e){let t=T.get(e);return t||(t=[],T.set(e,t)),t}function be(e,t,n,r,i){let a=re({item:n,position:0,offset:0,nr:oe({id:Et++,index:t,used:!0,key:r,type:i}),_vs_styleStamp:0,_vs_visibilityStamp:0});return e.push(a),a}function xe(e){let t=ye(e);if(t&&t.length){let e=t.pop();return e.nr.used=!0,Nt(e),e}}function Se(e,t){let n=d.value,r=n.indexOf(e);if(r===-1)return;let i=Math.max(0,Math.min(t,n.length-1));r!==i&&(n.splice(r,1),n.splice(i,0,e))}function Ce(e){Se(e,d.value.length-1)}function we(){let e=d.value,t=0;for(;t<e.length&&!e[t].nr.used;)t++;let n=0;for(let r=t;r<e.length&&e[r].nr.used;r++)n++;return{activeStart:t,activeCount:n,headInsertCount:0}}function Te(e,t,n){let r=null;t<g?(r=n.activeStart+n.headInsertCount,n.headInsertCount++,n.activeCount++):t>=_&&(r=n.activeStart+n.activeCount,n.activeCount++),r!=null&&Se(e,r)}function Ee(e,t=!1){let n=e.nr.type;ye(n).push(e),e.nr.used=!1,e.position=U().hiddenPosition??-999999,Nt(e),w.delete(e.nr.key),t&&Ce(e)}function De(){w.clear(),T.clear();for(let e=0,t=d.value.length;e<t;e++){let t=d.value[e];t&&Ee(t)}}function Oe(e){let t=-1;return t=requestAnimationFrame(()=>{le.delete(t),e()}),le.add(t),t}function ke(){for(let e of le)cancelAnimationFrame(e);le.clear()}function Ae(){A&&=(clearTimeout(A),null),j&&=(clearTimeout(j),null),ee&&=(clearTimeout(ee),null),z&&=(clearTimeout(z),null),ie&&=(clearTimeout(ie),null)}function je(){var e,t;W.value&&((t=(e=c.callbacks).onResize)==null||t.call(e),h.value&&q(!1))}function Me(){if(!W.value)return;ne&&!ae&&Ue();let e=U();if(!E){if(E=!0,A)return;let t=()=>Oe(()=>{E=!1;let{continuous:t}=q(!1,!0);t||(j&&clearTimeout(j),j=setTimeout(Me,e.updateInterval+100))});t(),e.updateInterval&&(A=setTimeout(()=>{A=null,E&&t()},e.updateInterval))}}function Ne(e,t){var n,r,i,a;W.value&&h.value&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?((r=(n=c.callbacks).onVisible)==null||r.call(n),Oe(()=>{q(!1)})):(a=(i=c.callbacks).onHidden)==null||a.call(i))}function Pe(){return fe.value??window}function Fe(){let e=c.before.value;return e?he(U())===`vertical`?e.scrollHeight:e.scrollWidth:0}function Ie(){let e=c.el.value;if(!e)return{start:0,end:0};let t=he(U()),n=t===`vertical`,r;if(de()){let t=e.getBoundingClientRect(),i=n?t.height:t.width,a=fe.value,o=!a||a===window,s=o?0:a.getBoundingClientRect().top,c=o?0:a.getBoundingClientRect().left,l=o?window.innerHeight:a.clientHeight,u=o?window.innerWidth:a.clientWidth,d=n?-(t.top-s):-(t.left-c),f=n?l:u;d<0&&(f+=d,d=0),d+f>i&&(f=i-d),r={start:d,end:d+f}}else r=n?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:dt(e.scrollLeft,t,e),end:dt(e.scrollLeft,t,e)+e.clientWidth};return r}function Le(){let e=c.el.value;if(!e)return{start:0,end:0};if(he(U())===`vertical`){let t=dt(e.scrollLeft,`horizontal`,e);return{start:t,end:t+e.clientWidth}}return{start:e.scrollTop,end:e.scrollTop+e.clientHeight}}function Re(e,t,n,r){let i=Fe(),a=e.start-r-i,o=e.end+r-i;return g>0&&a<=(n[g-1]?.accumulator??0)||g<t-1&&a>(n[g]?.accumulator??1/0)||_>1&&o<=(n[_-2]?.accumulator??0)||_<t&&o>(n[_-1]?.accumulator??1/0)}function ze(e){let t=U(),n=Ct(t.itemSize);return n===null?pe.value[e]?.size||Number(t.minItemSize)||0:n}function Be(e){let t=U();return at(e,{direction:he(t),mode:ge(t),itemSize:Ct(t.itemSize),gridItems:t.gridItems,itemSecondarySize:t.itemSecondarySize})}function Ve(e){let t=U(),n=t.gridItems||1,r=Ct(t.itemSize);return e<=0?0:r===null?pe.value[e-1]?.accumulator||0:Math.floor(e/n)*r}function He(e){let t=U(),n=u.value.length,r=t.gridItems||1,i=Ct(t.itemSize);if(!n)return 0;if(i!==null){let t=Math.floor(e/i)*r;return Math.min(Math.max(t,0),n-1)}let a=0,o=n-1,s=0;for(;a<=o;){let t=Math.floor((a+o)/2);Ve(t)<=e?(s=t,a=t+1):o=t-1}return s}function Ue(){z&&=(clearTimeout(z),null),ne=null}function We(){z&&clearTimeout(z),z=setTimeout(()=>{ne=null,z=null},150)}function Ge(e,t){if(!e.length){Ue();return}let n=Math.max(Ie().start-Fe(),0),r=Math.min(He(n),e.length-1),i=e[r],a=t?Ye(i,r,t):r,o=Fe()+Ve(r);ne={key:a,offset:Ie().start-o}}function Ke(e){if(!ne)return!1;let t=U(),n=Qe(e??u.value,G.value?null:t.keyField).indexOf(ne.key);if(n===-1)return Ue(),!1;let r=Fe()+Ve(n)+ne.offset,i=Ie().start;return Math.abs(r-i)<.5?!1:(ae=!0,vt(r),Oe(()=>{ae=!1}),!0)}function qe(){if(Je(),!W.value)return;let e=de()?Pe():c.el.value;e&&(M=e,M.addEventListener(`scroll`,Me,St()?{passive:!0}:!1),de()&&e===window&&(F=e,F.addEventListener(`resize`,je)))}function Je(){M&&=(M.removeEventListener(`scroll`,Me),null),F&&=(F.removeEventListener(`resize`,je),null)}function Xe(e,t,n,r,i,a){let o=Math.ceil(e/t)*n,s=Math.max(0,Math.floor(i.start/n)),c=Math.min(Math.ceil(i.end/n),Math.ceil(e/t)),l=Math.max(0,Math.floor(a.start/r)),u=Math.min(Math.ceil(a.end/r),t),d=[];for(let n=s;n<c;n++){let r=n*t;for(let t=l;t<u;t++){let n=r+t;if(n>=e)break;d.push(n)}}let f=d[0]??0,p=d.at(-1)??-1;return{renderedIndices:d,startIndex:f,endIndex:p+1,visibleStartIndex:f,visibleEndIndex:p,totalSize:o}}function Ze(){let e=U(),t=Ct(e.itemSize);if(!e.gridItems||t==null)return!1;let n=c.el.value;if(!n)return!1;let r=e.itemSecondarySize||t,i=he(e)===`vertical`?n.clientWidth:n.clientHeight;return r*e.gridItems>i}function et(e,t,n,r){if(Math.abs(e-t)!==1||t<0||t>=n)return e;let i=e>t?Ve(t)+ze(t):Ve(t);return Math.abs(i-r)<=Ft?t:e}function lt(e,t,n,r,i){if(Math.abs(e-t)!==1)return e;let a=i?t-1:t;if(a<0||a>=n)return e;let o=e>t?Ve(a)+ze(a):Ve(a);return Math.abs(o-r)<=Ft?t:e}function ut(e,t,n){let r={...e,visibleStartIndex:et(e.visibleStartIndex,v,t,n.rawViewportStart),visibleEndIndex:lt(e.visibleEndIndex,b,t,n.rawViewportEnd,!1),startIndex:et(e.startIndex,g,t,n.renderStart),endIndex:lt(e.endIndex,_,t,n.renderEnd,!0)};r.startIndex>r.visibleStartIndex&&(r.startIndex=r.visibleStartIndex);let i=Math.min(t,r.visibleEndIndex+1);return r.endIndex<i&&(r.endIndex=i),r.endIndex<r.startIndex&&(r.endIndex=r.startIndex),r}function q(e,t=!1){var n,r;if(!W.value)return{continuous:!0};let i=U(),a=Ct(i.itemSize),o=i.gridItems||1,s=i.itemSecondarySize||a||0,l=te,h=i.typeField,y=G.value?null:i.keyField,x=u.value,T=x.length,E=pe.value,A=w,j=d.value,M=null,N=null,P,F,I,L,R,ne=a!==null||T===0||E[T-1]!=null;if(!T||!ne)!T||!C?P=F=L=R=I=0:(P=Math.min(C.startIndex,T),F=Math.min(C.endIndex,T),L=Math.min(C.visibleStartIndex,T),R=Math.min(C.visibleEndIndex,T),I=E[T-1]?.accumulator??C.totalSizeValue);else if(k)P=L=0,F=R=Math.min(i.prerender,x.length),I=0;else{let e=Ie(),n=Le(),r=D,u=O,d={...e},f={...n};if(t){let t=e.start-r;t<0&&(t=-t);let c=n.start-u;c<0&&(c=-c);let d=a===null&&Re(e,T,E,i.buffer);if(!(a===null&&(t>=l||d)||a!==null&&t>=a)&&!(o>1&&a!=null&&c>=s))return{continuous:!0}}D=e.start,O=n.start;let p=i.buffer;d.start-=p,d.end+=p,f.start-=p,f.end+=p;let m=0,h=c.before.value;h&&(m=h.scrollHeight,d.start-=m);let g=c.after.value;if(g){let e=g.scrollHeight;d.end+=e}let _=ge(i)===`flow`&&a===null&&!t&&S&&Math.abs(e.start-r)<=It&&Math.abs(n.start-u)<=It;if(a===null){let t,n=0,r=T-1,i=~~(T/2),a;do a=i,t=E[i]?.accumulator??0,t<d.start?n=i:i<T-1&&(E[i+1]?.accumulator??1/0)>d.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),P=i,I=E[T-1]?.accumulator??0,F=i;F<T&&(E[F]?.accumulator??0)<d.end;F++);for(F===-1?F=x.length-1:(F++,F>T&&(F=T)),L=P;L<T&&m+(E[L]?.accumulator??1/0)<d.start;L++);for(R=L;R<T&&m+(E[R]?.accumulator??0)<d.end;R++);if(_){let t=ut({startIndex:P,endIndex:F,visibleStartIndex:L,visibleEndIndex:R},T,{rawViewportStart:e.start-m,rawViewportEnd:e.end-m,renderStart:e.start-p-m,renderEnd:e.end+p-m});P=t.startIndex,F=t.endIndex,L=t.visibleStartIndex,R=t.visibleEndIndex}C={startIndex:P,endIndex:F,visibleStartIndex:L,visibleEndIndex:R,totalSizeValue:I}}else if(o>1){let e=Xe(T,o,a,s,d,f);M=e.renderedIndices,N=new Set(M),P=e.startIndex,F=e.endIndex,L=e.visibleStartIndex,R=e.visibleEndIndex,I=e.totalSize}else{P=~~(d.start/a*o);let e=P%o;P-=e,F=Math.ceil(d.end/a*o),L=Math.max(0,Math.floor((d.start-m)/a*o)),R=Math.floor((d.end-m)/a*o),P<0&&(P=0),F>T&&(F=T),L<0&&(L=0),R>T&&(R=T),I=Math.ceil(T/o)*a}}F-P>ct.itemsLimit&&mt(),f.value=I,p.value=0,m.value=ge(i)===`flow`?I:0;let z,re=P<=_&&F>=g,B=ge(i)===`flow`,ie=B&&re&&!e,ae=null;if(!re||e)De();else{let e=e=>{let t=j[e];t&&(z=t,z.nr.used&&((N?N.has(z.nr.index):z.nr.index>=P&&z.nr.index<F)||Ee(z,ie)))};if(ie){for(let t=j.length-1;t>=0;t--)e(t);ae=we()}else for(let t=0,n=j.length;t<n;t++)e(t)}let oe,se,ce=null,le=0;return Pt(P,F,M,e=>{let t=E[e]&&E[e].size,n=a||t||te||1;oe=x[e];let r=y?Ye(oe,e,y):e;z=A.get(r);let i=!1;if(z)z.item!==oe&&(z.item=oe),z.nr.used||console.warn(`Expected existing view's used flag to be true, got ${z.nr.used}`);else{if(se=oe[h],z=xe(se),z){let t=z.nr.index!==e||z.nr.key!==r;z.item=oe,z.nr.index=e,z.nr.key=r,z.nr.type!==se&&console.warn(`Reused view's type does not match pool's type`),t&&Mt(z)}else z=be(j,e,oe,r,se);A.set(r,z),i=!0}a===null?(z.position=E[e-1]?.accumulator||0,z.offset=0):(z.position=Math.floor(e/o)*a,z.offset=e%o*s),ae&&i&&Te(z,e,ae),ce??=z.position,le+=n}),B?(ce==null?(p.value=0,m.value=I):(p.value=ce,m.value=Math.max(0,I-ce-le)),ie||_e()):(p.value=0,m.value=0),g=P,_=F,v=L,b=R,S=!0,i.emitUpdate&&((r=(n=c.callbacks).onUpdate)==null||r.call(n,P,F,L,R)),ge(i)!==`flow`&&(ee&&clearTimeout(ee),ee=setTimeout(gt,i.updateInterval+300)),{continuous:re}}function mt(){throw ie=setTimeout(()=>{ie=null,console.warn(`It seems the scroller element isn't scrolling, so it tries to render all the items at once.`,`Scroller:`,c.el.value),console.warn(`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`)}function ht(){if(Ze())return!1;let e=d.value.filter(({nr:e})=>e.used);for(let t=1;t<e.length;t++)if(e[t].nr.index!==e[t-1].nr.index+1)return!0;return!1}function gt(){if(W.value){if(ge()===`flow`){_e();return}d.value.sort((e,t)=>e.nr.index-t.nr.index),ht()&&(q(!1),ee&&clearTimeout(ee))}}function _t(e,t){if(!W.value)return;let n=U(),r=he(n),i=c.el.value;if(!i)return;let a=Math.max(0,Math.min(e,u.value.length-1)),o=Ie().start,s=pt(i,r,n.pageMode,fe.value),l=rt(Ve(a),ze(a),o,s,t?.align,t?.offset??0);if(l==null)return;vt(l,t);let d=Ct(n.itemSize);if(n.gridItems&&d!=null){let e=c.el.value;if(!e)return;let i=n.gridItems,o=n.itemSecondarySize||d,s=a%i*o,l=r===`vertical`?`horizontal`:`vertical`,u=rt(s,o,l===`horizontal`?dt(e.scrollLeft,`horizontal`,e):e.scrollTop,l===`horizontal`?e.clientWidth:e.clientHeight,t?.align,t?.offset??0);u!=null&&ft(e,l,u,t)}}function vt(e,t){if(!W.value)return;let n=he(U()),r=c.el.value;if(r)if(de()){let i=fe.value??window,a=n===`vertical`?`top`:`left`,o=i===window,s=o?document.scrollingElement||document.documentElement:i,c=s.getBoundingClientRect(),l=r.getBoundingClientRect(),u=o?n===`vertical`?window.scrollY:window.scrollX:dt(n===`vertical`?s.scrollTop:s.scrollLeft,n,s),d=l[a]-c[a];ft(o?window:s,n,e+u+d,t)}else ft(r,n,e,t)}let yt=U(),xt=u.value;return L=Qe(xt,xt.length>0&&typeof xt[0]!=`object`?null:yt.keyField),R=At(xt,yt.typeField),yt.cache&&ve(yt.cache),W.value&&yt.prerender&&(k=!0,q(!1)),yt.gridItems&&Ct(yt.itemSize)==null&&console.error(`[vue-recycle-scroller] You must provide an itemSize when using gridItems`),I(()=>{W.value&&(qe(),l(()=>{k=!1,q(!0),h.value=!0}))}),y(()=>{if(!W.value)return;let e=D;typeof e==`number`&&l(()=>{vt(e)})}),x(()=>{Ae(),ke(),Je()}),P(W,e=>{e?(qe(),l(()=>{q(!0),h.value=!0})):(Je(),Ae(),ke(),h.value=!1)}),P(()=>U().cache,e=>{W.value&&(ve(e),q(!0))}),P(()=>N(U().items).slice(),(e,t)=>{if(!W.value)return;let n=U(),r=G.value?null:n.keyField,i=Qe(e,r),a=At(e,n.typeField),o=L,s=!jt(i,a,o,R);n.shift&&nt(o,i)>0?Ge(t??[],r):Ue(),L=i,R=a,Ke(e),q(s)}),P(()=>U().keyField,()=>{if(!W.value)return;let e=U(),t=G.value?null:e.keyField;L=Qe(u.value,t),R=At(u.value,e.typeField),Ue(),q(!0)}),P(()=>U().typeField,()=>{if(!W.value)return;let e=U();R=At(u.value,e.typeField),Ue(),q(!0)}),P(de,()=>{W.value&&(Je(),qe(),q(!1))}),P(c.el,()=>{W.value&&(Je(),qe(),q(!1))}),P(fe,()=>{!W.value||!de()||(Je(),qe(),q(!1))}),P(pe,()=>{W.value&&(Ke()&&We(),q(!1))}),P(()=>U().gridItems,()=>{W.value&&q(!0)}),P(()=>U().itemSecondarySize,()=>{W.value&&q(!0)}),{pool:d,visiblePool:K,totalSize:f,startSpacerSize:p,endSpacerSize:m,ready:h,sizes:pe,simpleArray:G,scrollToItem:_t,scrollToPosition:vt,getScroll:Ie,findItemIndex:He,getItemOffset:Ve,getItemSize:ze,getViewStyle:Be,cacheSnapshot:me,restoreCache:ve,updateVisibleItems:q,handleResize:je,handleVisibilityChange:Ne,sortViews:gt}}var Rt="[vue-virtual-scroller] `sizeDependencies` is deprecated and will be removed in the next major release. Dynamic item sizing uses ResizeObserver in modern browsers.",zt=!1;function Bt(e){e==null||zt||(zt=!0,console.warn(Rt))}function Vt(e,t,n,r){let i=null,a=null,o=null,s=!1,c=null,l=[],u=n.resizeObserver?()=>{}:n.onVscrollUpdate(g),d=B(()=>{let t=N(e);if(n.vscrollData.simpleArray){if(t.index==null)throw Error(`index is required when using simple-array mode with dynamic item measurement`);return t.index}return Xe(t.item,t.index,n.vscrollData.keyField)}),f=B(()=>n.vscrollData.sizes[d.value]||0),p=B(()=>N(e).active&&n.vscrollData.active);function m(){p.value?a!==d.value&&(a=d.value,i=null,o=null,b(d.value)):i=d.value}function h(){N(e).watchData&&!n.resizeObserver?c=P(()=>N(e).item,()=>{_()},{deep:!0}):c&&=(c(),null)}function g({force:e}){!p.value&&e&&(o=d.value),(i===d.value||e||!f.value)&&m()}function _(){m()}function v(e){n.undefinedMap[e]&&n.undefinedSizeCount.value--,n.undefinedMap[e]=void 0}function y(e,t){if(n.vscrollData.sizes[e]){v(e);return}if(t){n.undefinedMap[e]||n.undefinedSizeCount.value++,n.undefinedMap[e]=!0;return}n.undefinedMap[e]&&(n.undefinedSizeCount.value--,n.undefinedMap[e]=!1)}function b(e){n.measureQueue.schedule(e,{read(){if(d.value!==e)return null;let n=N(t);return n?{width:n.offsetWidth,height:n.offsetHeight}:null},write(e){let{width:t,height:n}=e;x(t,n)},done(){a=null}})}function x(e,t){let r=~~(n.direction.value===`vertical`?t:e);r&&f.value!==r&&S(r)}function S(t){var i,a;v(d.value),n.vscrollData.sizes[d.value]=t,N(e).emitResize&&((a=(i=N(r))?.onResize)==null||a.call(i,d.value))}function C(){if(!n.resizeObserver||s)return;let e=N(t);e&&(n.resizeObserver.observe(e),e.$_vs_id=d.value,e.$_vs_onResize=T,s=!0)}function w(){if(!n.resizeObserver||!s)return;let e=N(t);e&&(n.resizeObserver.unobserve(e),e.$_vs_onResize=void 0,s=!1)}function T(e,t,n){d.value===e&&x(t,n)}Bt(N(e).sizeDependencies),l.push(P(()=>N(e).watchData,()=>{h()})),l.push(P(()=>N(e).sizeDependencies,e=>{Bt(e),n.resizeObserver||_()},{deep:!0})),l.push(P(d,(e,r)=>{let a=N(t);a&&(a.$_vs_id=e),v(r),y(e,p.value);let o=n.vscrollData.sizes[e];if(!o){i=e,_();return}v(e),s&&(n.vscrollData.sizes[e]=o)})),l.push(P(p,e=>{y(d.value,e),n.resizeObserver?e?C():w():e&&o===d.value&&m()})),h();function E(){p.value&&(m(),C())}function D(){n.measureQueue.cancel(d.value),u(),w(),v(d.value);let e=N(t);e&&(e.$_vs_id=void 0,e.$_vs_onResize=void 0),c&&=(c(),null);for(let e of l)e();l.length=0}return{id:d,size:f,finalActive:p,updateSize:m,mount:E,unmount:D}}function Ht(){let e=new Map;return{on(t,n){let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)},off(t,n){let r=e.get(t);r&&(r.delete(n),r.size||e.delete(t))},emit(t,n){let r=e.get(t);if(r!=null&&r.size)for(let e of[...r])e(n)},clear(){e.clear()}}}function Ut(e={}){let t=e.queueFlush??(e=>l(e)),n=e.overflowQueueFlush??t,r=Math.max(1,e.maxTasksPerFlush??1/0),i=!1,a=new Map;function o(){i||!a.size||(i=!0,t(s))}function s(){if(i=!1,!a.size)return;let e=[];for(let[t,n]of a)if(e.push(n),a.delete(t),e.length>=r)break;let t=e.map(e=>({task:e,value:e.read()}));for(let e of t)e.value!=null&&e.task.write(e.value),e.task.done();a.size&&(n(s),i=!0)}function c(e,t){a.set(e,t),o()}function u(e){a.delete(e)}return{schedule:c,cancel:u}}function Wt(e){for(let t=0;t<e.length;t++)e[t]}function Gt(e){return e.item}function Kt(e,t){return t.get(e)||e}function qt(e){let t={};return Object.defineProperties(t,{item:{enumerable:!0,get:()=>e.item.item},itemWithSize:{enumerable:!0,get:()=>e.item},size:{enumerable:!0,get:()=>e.item.size},position:{enumerable:!0,get:()=>e.position},offset:{enumerable:!0,get:()=>e.offset},id:{enumerable:!0,get:()=>e.nr.id},index:{enumerable:!0,get:()=>e.nr.index},used:{enumerable:!0,get:()=>e.nr.used},key:{enumerable:!0,get:()=>e.nr.key},type:{enumerable:!0,get:()=>e.nr.type}}),t}function Jt(e){return e._vs_styleStamp??0}function Yt(e){return e._vs_visibilityStamp??0}var Xt=[`position`,`top`,`left`,`transform`,`willChange`,`visibility`,`pointerEvents`,`display`];function Zt(e){let t={};for(let n of Xt)t[n]=e.style[n];return t}function Qt(e,t){for(let n of Xt)e.style[n]=t[n]??``}function $t(e,t,n){e.style[t]!==n&&(e.style[t]=n)}function en(e,t,n,r,i,a,o){if(!(`view`in t)){Qt(e,a);return}let s=e.tagName===`TR`,c=it(i?{direction:n,flowMode:!0}:{direction:n,disableTransform:r||s}),l=at(Kt(t.view,o),{direction:n,mode:c});$t(e,`position`,String(l.position??``)),$t(e,`top`,String(l.top??``)),$t(e,`left`,String(l.left??``)),$t(e,`transform`,c===`flow`||s?``:String(l.transform??``)),$t(e,`willChange`,String(l.willChange??``)),$t(e,`visibility`,String(l.visibility??``)),$t(e,`pointerEvents`,String(l.pointerEvents??``)),$t(e,`display`,String(l.display??``))}function tn(e,t){return`view`in e&&!t}function nn(e,t,n,r,i,a){if(`view`in e){let t=Kt(e.view,a);return{active:t.nr.used&&i,id:Gt(t).id}}return{active:t.active&&i,id:cn(t.item,n,r,t.index)}}function rn(e,t,n,r){if(!(`view`in e))return{direction:t,flowMode:n,legacy:!0};if(n)return{direction:t,flowMode:n,legacy:!1,visibilityStamp:Yt(Kt(e.view,r))};let i=Kt(e.view,r);return{active:i.nr.used,direction:t,flowMode:n,legacy:!1,styleStamp:Jt(i),position:tn(e,n)?i.position:null,offset:tn(e,n)?i.offset:null}}function an(e,t){if(`view`in e){let n=Kt(e.view,t);return{item:Gt(n).item,active:n.nr.used,index:n.nr.index,watchData:e.watchData??!1,emitResize:e.emitResize??!1,sizeDependencies:e.sizeDependencies??null,onResize:e.onResize}}return{watchData:!1,emitResize:!1,sizeDependencies:null,...e}}function on(e,t){e.item!==t.item&&(e.item=t.item),e.active!==t.active&&(e.active=t.active),e.index!==t.index&&(e.index=t.index),e.watchData!==t.watchData&&(e.watchData=t.watchData),e.sizeDependencies!==t.sizeDependencies&&(e.sizeDependencies=t.sizeDependencies),e.emitResize!==t.emitResize&&(e.emitResize=t.emitResize),e.onResize!==t.onResize&&(e.onResize=t.onResize)}function sn(e,t){e.onResize!==t.onResize&&(e.onResize=t.onResize)}function cn(e,t,n,r){return n?r??null:Xe(e,r,t)}function ln(e){let n=ot(e),r=0,i={},a=Ht(),s=!1,u,f=!1,p=[],m=null,h=null,g=null,_=new Set,v=[],b=ie({active:!0,sizes:{},keyField:O().keyField,simpleArray:!1}),x=B(()=>{let e=N(O().items);return Wt(e),e}),S=B(()=>O().direction??`vertical`),C=B(()=>N(O().el)),w=B(()=>N(O().before)),E=B(()=>N(O().after)),D=new Map;function O(){return n.value}let k=B(()=>N(O().enabled??!0));function A(e){let t=-1;return t=requestAnimationFrame(()=>{_.delete(t),e()}),_.add(t),t}function ee(){for(let e of _)cancelAnimationFrame(e);_.clear()}let te=Ut({maxTasksPerFlush:6,overflowQueueFlush(e){A(e)}});typeof ResizeObserver<`u`&&(u=new ResizeObserver(e=>{A(()=>{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)}}})}));let M={vscrollData:b,resizeObserver:u,measureQueue:te,direction:S,undefinedMap:i,undefinedSizeCount:{get value(){return r},set value(e){r=e}},onVscrollUpdate(e){let t=t=>{e(t)};return a.on(`vscroll:update`,t),()=>a.off(`vscroll:update`,t)}};T(`vscrollData`,b),T(`vscrollParent`,{get $_undefinedSizes(){return r},set $_undefinedSizes(e){r=e},get $_undefinedMap(){return i},set $_undefinedMap(e){i=e},$_events:a,direction:S}),T(`vscrollResizeObserver`,u),T(`vscrollMeasurementContext`,M),T(`vscrollAnchorRegistry`,{delete(e){D.delete(e)},set(e,t){D.set(e,t)}});let F=B(()=>{let e=x.value;return e.length>0&&typeof e[0]!=`object`}),I=o(0),L=o(v);ne(()=>{if(!k.value)return;let e=h||!C.value?null:R(C.value.scrollTop,v),n=O().keyField,r=F.value,a=b.sizes,o=x.value,s=o.length,c=v.length!==s,l=v.length!==s;for(let e=0;e<s;e++){let t=o[e],s=r?e:Ye(t,e,n),u=a[s];typeof u>`u`&&!i[s]&&(u=0);let d=v[e];if(!d){d=re({item:t,id:s,size:u}),v[e]=d,c=!0,l=!0;continue}d.item!==t&&(d.item=t,c=!0,l=!0),d.id!==s&&(d.id=s,c=!0,l=!0),d.size!==u&&(d.size=u,c=!0)}v.length!==s&&(v.length=s,c=!0,l=!0),c&&(m=e,I.value++,l?L.value=v.slice():t(L))});function R(e,t){if(!t.length)return null;let n=O().minItemSize,r=0,i=0,a=t[0].id;for(let o of t){let t=o.size||n,s=r+t;if(i=r,a=o.id,e<s)return{key:o.id,offset:e-r};r=s}return{key:a,offset:Math.max(0,e-i)}}let z=O();p=Qe(x.value,F.value?null:z.keyField),z.cache&&(b.sizes=tt(z.cache,x.value,F.value?null:z.keyField));function ae(){var e,t;(t=(e=O()).onHidden)==null||t.call(e)}function oe(e,t,n,r){var i,a;(a=(i=O()).onUpdate)==null||a.call(i,e,t,n,r)}let se=ie({get enabled(){return k.value},get items(){return L.value},get keyField(){return`id`},get direction(){return S.value},get itemSize(){return null},get gridItems(){},get itemSecondarySize(){},get minItemSize(){return O().minItemSize},get sizeField(){return`size`},get typeField(){return`type`},get buffer(){return O().buffer??200},get pageMode(){return O().pageMode??!1},get shift(){return!1},get cache(){return O().cache},get prerender(){return O().prerender??0},get emitUpdate(){return O().emitUpdate??!1},get disableTransform(){return O().disableTransform??!1},get flowMode(){return O().flowMode??!1},get hiddenPosition(){return O().hiddenPosition},get updateInterval(){return O().updateInterval??0},get el(){return C.value},get before(){return w.value},get after(){return E.value},get scrollParent(){return O().scrollParent},get onResize(){return ce},get onVisible(){return le},get onHidden(){return ae},get onUpdate(){return oe}});function ce(){var e,t;xe(),(t=(e=O()).onResize)==null||t.call(e)}function le(){var e,t;a.emit(`vscroll:update`,{force:!1}),(t=(e=O()).onVisible)==null||t.call(e)}let V=Lt(se),H=new WeakMap,ue=new WeakMap,U=o([]);function de(e){let t=O();return at(Kt(e,H),{direction:S.value,mode:it({direction:S.value,disableTransform:t.disableTransform??!1,flowMode:t.flowMode??!1})})}function W(e){let t=ue.get(e);return t||(t=qt(e),ue.set(e,t),H.set(t,e)),t}ne(()=>{let e=V.pool.value,n=e.length,r=U.value,i=r.length!==n;for(let t=0;t<n;t++){let n=W(e[t]);r[t]!==n&&(r[t]=n,i=!0)}r.length!==n&&(r.length=n,i=!0),i&&t(U)});let fe=B(()=>V.visiblePool.value.map(W)),G=new WeakMap;function pe(){g!=null&&(cancelAnimationFrame(g),_.delete(g),g=null)}function K(){pe(),h=null}function me(){h==null||g!=null||(g=A(()=>{g=null,ve()}))}function he(){let e=C.value;if(!e)return null;let t=e.getBoundingClientRect(),n=null;for(let[e,r]of D.entries()){if(!r.active||getComputedStyle(e).visibility===`hidden`)continue;let i=e.getBoundingClientRect();if(i.bottom<=t.top||i.top>=t.bottom)continue;let a=Math.max(i.top,t.top)-t.top;(!n||a<n.score)&&(n={key:r.id,offset:i.top-t.top,score:a})}return n}function ge(e){let t=C.value;if(!t){K();return}let n=t.scrollTop,r=Math.min(V.findItemIndex(n),e.length-1),i=e[r];if(i==null){K();return}let a=he();h={logicalKey:i,logicalOffset:n-V.getItemOffset(r),pendingKeys:new Set,stableFrames:0,visualKey:a?.key??null,visualOffset:a?.offset??0}}function _e(e){let t=C.value;return!t||Math.abs(t.scrollTop-e)<.5?!1:(f=!0,t.scrollTop=e,V.updateVisibleItems(!0),t.dispatchEvent(new Event(`scroll`)),A(()=>{f=!1}),!0)}function ve(){let e=h,t=C.value;if(!e||!t)return;let n=L.value.findIndex(t=>t.id===e.logicalKey);if(n===-1){K();return}let r=!1;if(r=_e(V.getItemOffset(n)+e.logicalOffset)||r,!r&&e.visualKey!=null)for(let[n,i]of D.entries()){if(!i.active||i.id!==e.visualKey||getComputedStyle(n).visibility===`hidden`)continue;let a=n.getBoundingClientRect().top-t.getBoundingClientRect().top-e.visualOffset;r=_e(t.scrollTop+a)||r;break}let i=!0;for(let t of e.pendingKeys)if(!(typeof b.sizes[t]==`number`&&b.sizes[t]>0)){i=!1;break}if(!r&&i){if(e.stableFrames++,e.stableFrames>=2){K();return}}else e.stableFrames=0;me()}function ye(e,t,n,r){let i=j(),a=o(t),s=re({...n}),c=re({onResize:n.onResize}),l=o(e),u=i.run(()=>(P(()=>nn(a.value,s,O().keyField,b.simpleArray,b.active,H),()=>{let e=l.value;if(e){let t=nn(a.value,s,O().keyField,b.simpleArray,b.active,H),n=t.id;n!=null&&D.set(e,{active:t.active,id:n})}},{immediate:!0}),P(()=>rn(a.value,S.value,O().flowMode??!1,H),()=>{let e=l.value;e&&en(e,a.value,S.value,O().disableTransform??!1,O().flowMode??!1,r,H)},{immediate:!0}),Vt(s,l,M,c)));u.mount(),G.set(e,{binding:a,scope:i,options:s,callbacks:c,el:l,controller:u,restoreStyles:r})}let be={mounted(e,t){if(!k.value)return;let n=Zt(e);ye(e,t.value,an(t.value,H),n)},updated(e,t){if(!k.value)return;let n=G.get(e),r=an(t.value,H);if(!n){let n=Zt(e);ye(e,t.value,r,n);return}let i=n.binding.value!==t.value;i&&(n.binding.value=t.value),on(n.options,r),sn(n.callbacks,r),n.el.value!==e&&(n.el.value=e),i&&en(e,t.value,S.value,O().disableTransform??!1,O().flowMode??!1,n.restoreStyles,H)},unmounted(e){let t=G.get(e);t&&(t.controller.unmount(),t.scope.stop(),Qt(e,t.restoreStyles),D.delete(e),G.delete(e))}};function xe(e=!1){k.value&&((e||F.value)&&(b.sizes={}),a.emit(`vscroll:update`,{force:!0}))}function Se(e,t){V.scrollToItem(e,t)}function Ce(e){let t=O();return b.sizes=tt(e,x.value,F.value?null:t.keyField),V.restoreCache(e)}function we(e,t){let n=O(),r=t??x.value.indexOf(e),i=F.value?r:Xe(e,r>=0?r:t,n.keyField);return b.sizes[i]||0}function Te(){if(!k.value)return;let e=C.value;e&&(s||(s=!0,l(()=>{e.scrollTop=e.scrollHeight+5e3;let t=()=>{e.scrollTop=e.scrollHeight+5e3,A(()=>{e.scrollTop=e.scrollHeight+5e3,r===0?s=!1:A(t)})};A(t)})))}function Ee(){h&&!f&&K()}return P(()=>x.value.slice(),(e,t)=>{if(!k.value)return;let n=O(),r=F.value?null:n.keyField,i=Qe(e,r);if(n.shift){let e=t?Qe(t,r):p,n=nt(e,i);n>0?(ge(e),h&&(h.pendingKeys=new Set(i.slice(0,n)),h.stableFrames=0,l(()=>{h&&ve()}))):K()}else K();p=i,xe()},{flush:`sync`}),P(()=>O().cache,e=>{k.value&&e&&Ce(e)}),P(()=>O().keyField,e=>{k.value&&(b.keyField=e,p=Qe(x.value,F.value?null:e),K(),xe(!0))},{flush:`sync`}),P(F,e=>{b.simpleArray=e},{immediate:!0}),P(()=>O().direction,()=>{k.value&&(K(),xe(!0))}),P(C,(e,t)=>{t?.removeEventListener(`scroll`,Ee),k.value&&e?.addEventListener(`scroll`,Ee)},{immediate:!0}),P(k,e=>{let t=C.value;e?(t?.addEventListener(`scroll`,Ee),xe()):(t?.removeEventListener(`scroll`,Ee),pe(),ee(),K())}),P(I,()=>{if(!k.value)return;let e=C.value;if(!e)return;if(h){ve();return}let t=m;if(m=null,!t)return;let n=L.value.findIndex(e=>e.id===t.key);if(n===-1)return;let r=V.getItemOffset(n)+t.offset;r-e.scrollTop!==0&&(e.scrollTop=r)},{flush:`post`}),y(()=>{b.active=!0}),c(()=>{b.active=!1}),d(()=>{var e;pe(),ee(),(e=C.value)==null||e.removeEventListener(`scroll`,Ee),a.clear()}),{vscrollData:b,itemsWithSize:L,resizeObserver:u,measurementContext:M,vDynamicScrollerItem:be,...V,pool:U,visiblePool:fe,simpleArray:F,forceUpdate:xe,scrollToItem:Se,restoreCache:Ce,getItemSize:we,getViewStyle:de,scrollToBottom:Te,onScrollerResize:ce,onScrollerVisible:le}}var un=new WeakMap;function dn(e){return typeof e==`function`?{callback:e,observer:null,intersection:void 0,visible:null}:{callback:e.callback,observer:null,intersection:e.intersection,visible:null}}function fn(e,t){pn(e);let n=dn(t.value);if(un.set(e,n),typeof IntersectionObserver>`u`){let t=e.getBoundingClientRect();n.visible=!0,n.callback(!0,{boundingClientRect:t});return}n.observer=new IntersectionObserver(e=>{let t=e[0],r=!!(t!=null&&t.isIntersecting);n.visible!==null&&n.visible===r||(n.visible=r,n.callback(r,t))},n.intersection),n.observer.observe(e)}function pn(e){let t=un.get(e);t!=null&&t.observer&&(t.observer.disconnect(),t.observer=null)}var mn={mounted(e,t){fn(e,t)},updated(e,t){t.value!==t.oldValue&&fn(e,t)},unmounted(e){pn(e),un.delete(e)}},hn=p({__name:`ItemView`,props:{view:{},itemTag:{}},setup(e){let t=e;return(e,n)=>(C(),r(R(t.itemTag),{class:`vue-recycle-scroller__item-view`},{default:D(()=>[O(e.$slots,`default`,{item:t.view.item,index:t.view.nr.index,active:t.view.nr.used})]),_:3}))}}),gn=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})(p({__name:`ResizeObserver`,emits:[`notify`],setup(e,{emit:t}){let n=t,r=i(),a=null,o=null;function s(){n(`notify`)}return I(()=>{let e=r.value?.parentElement;if(e){if(typeof ResizeObserver<`u`){a=new ResizeObserver(()=>{s()}),a.observe(e);return}o=()=>s(),window.addEventListener(`resize`,o)}}),x(()=>{a&&=(a.disconnect(),null),o&&=(window.removeEventListener(`resize`,o),null)}),(e,t)=>(C(),v(`div`,{ref_key:`el`,ref:r,class:`vue-recycle-scroller__resize-observer`,"aria-hidden":`true`},null,512))}}),[[`__scopeId`,`data-v-08cc04ab`]]),_n=p({__name:`RecycleScroller`,props:{items:{},keyField:{default:`id`},direction:{default:`vertical`},listTag:{default:`div`},itemTag:{default:`div`},itemSize:{default:null},gridItems:{default:void 0},itemSecondarySize:{default:void 0},minItemSize:{default:null},sizeField:{default:`size`},typeField:{default:`type`},buffer:{default:200},pageMode:{type:Boolean,default:!1},scrollParent:{default:void 0},shift:{type:Boolean,default:!1},cache:{default:void 0},prerender:{default:0},emitUpdate:{type:Boolean,default:!1},disableTransform:{type:Boolean,default:!1},flowMode:{type:Boolean,default:!1},hiddenPosition:{default:void 0},updateInterval:{default:0},skipHover:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},listClass:{default:``},itemClass:{default:``}},emits:[`resize`,`visible`,`hidden`,`update`,`scrollStart`,`scrollEnd`],setup(t,{expose:n,emit:o}){let s=t,c=o,l=mn,u=i(),d=i(),f=i(),p=i(null),m=a(s,`items`),{pool:h,visiblePool:g,totalSize:_,startSpacerSize:y,endSpacerSize:x,ready:S,scrollToItem:T,scrollToPosition:E,getScroll:j,findItemIndex:N,getItemOffset:P,getItemSize:F,getViewStyle:I,cacheSnapshot:ne,restoreCache:re,updateVisibleItems:ie,handleResize:ae,handleVisibilityChange:oe}=Lt(B(()=>({items:m,el:u,before:d,after:f,keyField:s.keyField,direction:s.direction,itemSize:s.itemSize,gridItems:s.gridItems,itemSecondarySize:s.itemSecondarySize,minItemSize:s.minItemSize,sizeField:s.sizeField,typeField:s.typeField,buffer:s.buffer,pageMode:s.pageMode,scrollParent:s.scrollParent,shift:s.shift,cache:s.cache,prerender:s.prerender,emitUpdate:s.emitUpdate,disableTransform:s.disableTransform,flowMode:s.flowMode,hiddenPosition:s.hiddenPosition,updateInterval:s.updateInterval,enabled:s.enabled,onResize:()=>c(`resize`),onVisible:()=>c(`visible`),onHidden:()=>c(`hidden`),onUpdate:(e,t,n,r)=>{c(`update`,e,t,n,r),n<=0&&c(`scrollStart`),r>=s.items.length-1&&c(`scrollEnd`)}}))),se=B(()=>it({direction:s.direction,disableTransform:s.disableTransform,flowMode:s.flowMode,gridItems:s.gridItems})===`flow`),ce=B(()=>({height:`${y.value}px`})),le=B(()=>({height:`${x.value}px`}));function V(e){p.value=e}function H(){p.value=null}let ue=B(()=>{let e={[s.direction===`vertical`?`minHeight`:`minWidth`]:`${_.value}px`},t=Ct(s.itemSize);if(s.gridItems&&t!=null){let n=(s.itemSecondarySize||t)*s.gridItems;e[s.direction===`vertical`?`minWidth`:`minHeight`]=`${n}px`}return e});return n({el:u,visiblePool:g,startSpacerSize:y,endSpacerSize:x,scrollToItem:T,scrollToPosition:E,getScroll:j,findItemIndex:N,getItemOffset:P,getItemSize:F,cacheSnapshot:ne,restoreCache:re,updateVisibleItems:ie}),(t,n)=>k((C(),v(`div`,{ref_key:`el`,ref:u,class:L([`vue-recycle-scroller`,{"grid-mode":s.gridItems,"flow-mode":se.value,ready:M(S),"page-mode":s.pageMode,[`direction-${s.direction}`]:!0}])},[t.$slots.before?(C(),v(`div`,{key:0,ref_key:`before`,ref:d,class:`vue-recycle-scroller__slot`},[O(t.$slots,`before`)],512)):z(``,!0),(C(),r(R(s.listTag),{style:w(ue.value),class:L([`vue-recycle-scroller__item-wrapper`,s.listClass])},{default:D(()=>[se.value&&M(y)>0?(C(),r(R(s.itemTag),{key:0,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:w(ce.value)},null,8,[`style`])):z(``,!0),(C(!0),v(A,null,e(M(h),e=>(C(),r(hn,b({key:e.nr.id,view:e,"item-tag":s.itemTag,style:M(S)?M(I)(e):null,class:[`vue-recycle-scroller__item-view`,[s.itemClass,{hover:!s.skipHover&&p.value===e.nr.key}]]},ee(s.skipHover?{}:{mouseenter:()=>{V(e.nr.key)},mouseleave:()=>{H()}})),{default:D(e=>[O(t.$slots,`default`,b({ref_for:!0},e))]),_:2},1040,[`view`,`item-tag`,`style`,`class`]))),128)),se.value&&M(x)>0?(C(),r(R(s.itemTag),{key:1,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:w(le.value)},null,8,[`style`])):z(``,!0),s.items.length===0?O(t.$slots,`empty`,{key:2}):z(``,!0)]),_:3},8,[`style`,`class`])),t.$slots.after?(C(),v(`div`,{key:1,ref_key:`after`,ref:f,class:`vue-recycle-scroller__slot`},[O(t.$slots,`after`)],512)):z(``,!0),te(gn,{onNotify:M(ae)},null,8,[`onNotify`])],2)),[[M(l),M(oe)]])}}),vn=p({inheritAttrs:!1,__name:`DynamicScroller`,props:{items:{},keyField:{default:`id`},direction:{default:`vertical`},listTag:{default:`div`},itemTag:{default:`div`},minItemSize:{},shift:{type:Boolean,default:!1},cache:{default:void 0},disableTransform:{type:Boolean,default:!1},flowMode:{type:Boolean,default:!1},hiddenPosition:{default:void 0},enabled:{type:Boolean,default:!0},pageMode:{type:Boolean,default:!1},scrollParent:{default:void 0}},emits:[`resize`,`visible`],setup(e,{expose:t,emit:n}){let o=e,c=n,l=i(),u=a(o,`items`),d=B(()=>{let e=l.value?.el;return e&&typeof e==`object`&&`value`in e?e.value:e}),{itemsWithSize:p,forceUpdate:h,startSpacerSize:g,endSpacerSize:_,scrollToItem:v,scrollToPosition:y,findItemIndex:x,getItemOffset:S,getItemSize:w,cacheSnapshot:T,restoreCache:E,scrollToBottom:k,onScrollerResize:A,onScrollerVisible:j}=ln(B(()=>({items:u,keyField:o.keyField,direction:o.direction,minItemSize:o.minItemSize,shift:o.shift,cache:o.cache,flowMode:o.flowMode,hiddenPosition:o.hiddenPosition,enabled:o.enabled,pageMode:o.pageMode,scrollParent:o.scrollParent,el:d.value,onResize:()=>c(`resize`),onVisible:()=>c(`visible`)})));function ee(e,t,n){return{item:e.item,index:t,active:n,itemWithSize:e}}return t({startSpacerSize:g,endSpacerSize:_,scrollToItem:v,scrollToPosition:y,findItemIndex:x,getItemOffset:S,scrollToBottom:k,getItemSize:w,cacheSnapshot:T,restoreCache:E,forceUpdate:h}),(e,t)=>(C(),r(_n,b({ref_key:`scroller`,ref:l,items:M(p),"min-item-size":o.minItemSize,direction:o.direction,cache:o.cache,"disable-transform":o.disableTransform,"flow-mode":o.flowMode,"hidden-position":o.hiddenPosition,enabled:o.enabled,"page-mode":o.pageMode,"scroll-parent":o.scrollParent,"key-field":`id`,"list-tag":o.listTag,"item-tag":o.itemTag},e.$attrs,{onResize:M(A),onVisible:M(j)}),m({default:D(({item:t,index:n,active:r})=>[O(e.$slots,`default`,f(s(ee(t,n,r))))]),empty:D(()=>[O(e.$slots,`empty`)]),_:2},[e.$slots.before?{name:`before`,fn:D(()=>[O(e.$slots,`before`)]),key:`0`}:void 0,e.$slots.after?{name:`after`,fn:D(()=>[O(e.$slots,`after`)]),key:`1`}:void 0]),1040,[`items`,`min-item-size`,`direction`,`cache`,`disable-transform`,`flow-mode`,`hidden-position`,`enabled`,`page-mode`,`scroll-parent`,`list-tag`,`item-tag`,`onResize`,`onVisible`]))}});function yn(e,t,n){let r=g(`vscrollMeasurementContext`),i=g(`vscrollAnchorRegistry`,null),a=B(()=>{let n=N(e).el;return N(t??n)}),o={onResize:t=>(n?.onResize??N(e).onResize)?.(t)},s=B(()=>N(N(e).enabled??!0)),c=Vt(e,a,r,o),l=!1;function u(){l||=(c.mount(),!0)}function d(){l&&=(c.unmount(),!1)}return I(()=>{s.value&&u()}),P(s,e=>{if(e)u();else{let e=a.value;i&&e&&i.delete(e),d()}}),i&&P([c.id,c.finalActive,a,s],([e,t,n,r],[a,o,s])=>{s&&s!==n&&i.delete(s),r&&n&&i.set(n,{active:t,id:e})},{immediate:!0}),x(()=>{let e=a.value;i&&e&&i.delete(e),d()}),{id:c.id,size:c.size,finalActive:c.finalActive,updateSize:c.updateSize}}var bn=p({__name:`DynamicScrollerItem`,props:{item:{},watchData:{type:Boolean,default:!1},active:{type:Boolean},index:{default:void 0},sizeDependencies:{default:null},emitResize:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},tag:{default:`div`}},emits:[`resize`],setup(e,{emit:t}){let n=e,a=t,o=i();return yn(n,o,{onResize:e=>a(`resize`,e)}),(e,t)=>(C(),r(R(n.tag),{ref_key:`el`,ref:o},{default:D(()=>[O(e.$slots,`default`)]),_:3},512))}});function xn(e,t,n,r,i){return Lt(e,t,n,r,i,{pageMode:!0})}var Sn=p({__name:`WindowScroller`,props:{items:{},keyField:{default:`id`},direction:{default:`vertical`},listTag:{default:`div`},itemTag:{default:`div`},itemSize:{default:null},gridItems:{default:void 0},itemSecondarySize:{default:void 0},minItemSize:{default:null},sizeField:{default:`size`},typeField:{default:`type`},buffer:{default:200},shift:{type:Boolean,default:!1},cache:{default:void 0},prerender:{default:0},emitUpdate:{type:Boolean,default:!1},disableTransform:{type:Boolean,default:!1},flowMode:{type:Boolean,default:!1},hiddenPosition:{default:void 0},updateInterval:{default:0},enabled:{type:Boolean,default:!0},listClass:{default:``},itemClass:{default:``}},emits:[`resize`,`visible`,`hidden`,`update`],setup(t,{expose:n,emit:o}){let s=t,c=o,l=mn,u=i(),d=i(),f=i(),p=a(s,`items`),{pool:m,totalSize:h,startSpacerSize:g,endSpacerSize:_,ready:y,scrollToItem:x,scrollToPosition:S,getScroll:T,findItemIndex:E,getItemOffset:j,getItemSize:ee,getViewStyle:N,cacheSnapshot:P,restoreCache:F,updateVisibleItems:I,handleResize:ne,handleVisibilityChange:re}=xn(B(()=>({items:p,el:u,before:d,after:f,keyField:s.keyField,direction:s.direction,itemSize:s.itemSize,gridItems:s.gridItems,itemSecondarySize:s.itemSecondarySize,minItemSize:s.minItemSize,sizeField:s.sizeField,typeField:s.typeField,buffer:s.buffer,shift:s.shift,cache:s.cache,prerender:s.prerender,emitUpdate:s.emitUpdate,disableTransform:s.disableTransform,flowMode:s.flowMode,hiddenPosition:s.hiddenPosition,updateInterval:s.updateInterval,enabled:s.enabled,onResize:()=>c(`resize`),onVisible:()=>c(`visible`),onHidden:()=>c(`hidden`),onUpdate:(e,t,n,r)=>c(`update`,e,t,n,r)}))),ie=B(()=>it({direction:s.direction,disableTransform:s.disableTransform,flowMode:s.flowMode,gridItems:s.gridItems})===`flow`),ae=B(()=>({height:`${g.value}px`})),oe=B(()=>({height:`${_.value}px`}));return n({el:u,startSpacerSize:g,endSpacerSize:_,scrollToItem:x,scrollToPosition:S,getScroll:T,findItemIndex:E,getItemOffset:j,getItemSize:ee,cacheSnapshot:P,restoreCache:F,updateVisibleItems:I}),(t,n)=>k((C(),v(`div`,{ref_key:`el`,ref:u,class:L([`vue-recycle-scroller vue-window-scroller`,{"flow-mode":ie.value,ready:M(y),[`direction-${s.direction}`]:!0}])},[t.$slots.before?(C(),v(`div`,{key:0,ref_key:`before`,ref:d,class:`vue-recycle-scroller__slot`},[O(t.$slots,`before`)],512)):z(``,!0),(C(),r(R(s.listTag),{style:w({[s.direction===`vertical`?`minHeight`:`minWidth`]:`${M(h)}px`}),class:L([`vue-recycle-scroller__item-wrapper`,s.listClass])},{default:D(()=>[ie.value&&M(g)>0?(C(),r(R(s.itemTag),{key:0,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:w(ae.value)},null,8,[`style`])):z(``,!0),(C(!0),v(A,null,e(M(m),e=>(C(),r(hn,{key:e.nr.id,view:e,"item-tag":s.itemTag,style:w(M(y)?M(N)(e):null),class:L([`vue-recycle-scroller__item-view`,s.itemClass])},{default:D(e=>[O(t.$slots,`default`,b({ref_for:!0},e))]),_:2},1032,[`view`,`item-tag`,`style`,`class`]))),128)),ie.value&&M(_)>0?(C(),r(R(s.itemTag),{key:1,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:w(oe.value)},null,8,[`style`])):z(``,!0),s.items.length===0?O(t.$slots,`empty`,{key:2}):z(``,!0)]),_:3},8,[`style`,`class`])),t.$slots.after?(C(),v(`div`,{key:1,ref_key:`after`,ref:f,class:`vue-recycle-scroller__slot`},[O(t.$slots,`after`)],512)):z(``,!0),te(gn,{onNotify:M(ne)},null,8,[`onNotify`])],2)),[[M(l),M(re)]])}}),Cn=p({inheritAttrs:!1,__name:`DataVirtualList`,props:{items:{},keyProp:{},pageMode:{type:Boolean,default:!0},minItemSize:{default:30},itemSize:{},scroller:{default:`dynamic`}},setup(e){let t=e;return(e,n)=>t.scroller===`window`?(C(),v(`div`,b({key:0},e.$attrs,{class:`data-virtual-list-window`}),[te(M(Sn),{class:`data-virtual-list-window__scroller`,"list-class":`data-virtual-list-window__list`,"item-class":`data-virtual-list-window__item`,items:t.items,"item-size":t.itemSize??null,"min-item-size":t.minItemSize,"key-field":t.keyProp,"flow-mode":t.itemSize==null},{before:D(()=>[O(e.$slots,`before`)]),default:D(({item:n,active:r,index:i})=>[O(e.$slots,`default`,b({key:n[t.keyProp]},{item:n,index:i,active:r}))]),_:3},8,[`items`,`item-size`,`min-item-size`,`key-field`,`flow-mode`])],16)):t.scroller===`dynamic`?(C(),r(M(vn),b({key:1},e.$attrs,{items:t.items,"min-item-size":t.minItemSize,"key-field":t.keyProp,"page-mode":t.pageMode}),{before:D(()=>[O(e.$slots,`before`)]),default:D(({item:n,active:r,index:i})=>[te(M(bn),{item:n,active:r,index:i},{default:D(()=>[O(e.$slots,`default`,b({key:n[t.keyProp]},{item:n,index:i,active:r}))]),_:2},1032,[`item`,`active`,`index`])]),_:3},16,[`items`,`min-item-size`,`key-field`,`page-mode`])):(C(),r(M(_n),b({key:2},e.$attrs,{items:t.items,"item-size":t.itemSize??t.minItemSize,"key-field":t.keyProp,"page-mode":t.pageMode}),{before:D(()=>[O(e.$slots,`before`)]),default:D(({item:n,active:r,index:i})=>[O(e.$slots,`default`,b({key:n[t.keyProp]},{item:n,index:i,active:r}))]),_:3},16,[`items`,`item-size`,`key-field`,`page-mode`]))}});function wn(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}function Tn(e,t=2){let n=[`Bytes`,`kB`,`MB`,`GB`,`TB`],r=Math.floor(Math.log(e||1)/Math.log(1e3));return r===0?[e,`B`]:[(+(e/1e3**r).toFixed(t)).toLocaleString(),n[r]]}function En(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 Dn(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})}var On={class:`ml-0.4 text-xs op75`},kn=p({__name:`DisplayNumberWithUnit`,props:{number:{},unit:{}},setup(e){return(t,n)=>(C(),v(`div`,null,[O(t.$slots,`default`),_(`span`,null,S(e.number),1),_(`span`,On,S(e.unit),1)]))}}),An=p({__name:`DisplayDuration`,props:{duration:{},factor:{default:1},unit:{default:`ms`},color:{type:Boolean,default:!0}},setup(e){let t=e,n=B(()=>{if(t.duration!=null)return t.unit===`ns`?t.duration/1e3:t.duration});function i(e){return!t.color||e==null?``:(e*=t.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 a=B(()=>wn(n.value));return(e,t)=>(C(),r(kn,{class:L(i(n.value)),number:a.value[0],unit:a.value[1]},{default:D(()=>[O(e.$slots,`default`)]),_:3},8,[`class`,`number`,`unit`]))}}),jn=p({__name:`DisplayPluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(e){let t=e,n=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],i=[...n,`vite:`];function a(){let e=t.compact?i:n;for(let n of e)if(t.name.startsWith(n))return t.compact?u(`span`,t.name.slice(n.length)):u(`span`,[u(`span`,{class:`op50`},n),u(`span`,t.name.slice(n.length))]);let r=t.name.split(`:`);return r.length>1?u(`span`,[u(`span`,{style:{color:Me(r[0])}},`${r[0]}:`),u(`span`,r.slice(1).join(`:`))]):u(`span`,t.name)}return(e,t)=>(C(),r(R(a)))}}),Mn=_e(`vite-devtools-settings`,{codeviewerLineWrap:!1,codeviewerDiffPanelSize:50,moduleGraphViewType:`list`,moduleDetailsViewType:`flow`,chartAnimation:!0,pluginDetailsViewType:`flow`,pluginDetailsTableFields:null,pluginDetailsModuleTypes:null,pluginDetailsDurationSortType:``,pluginDetailSelectedHook:``,pluginDetailsShowType:`all`,flowExpandResolveId:!0,flowExpandTransforms:!0,flowExpandLoads:!0,flowShowAllTransforms:!1,flowShowAllLoads:!1},{mergeDefaults:!0});function Nn(e){let t=new Map;return new Proxy(e.value,{get(e,n){return t.has(n)||t.set(n,B({get(){return e[n]},set(t){e[n]=t}})),t.get(n)}})}var Pn=Nn(Mn),Fn={},In={type:`button`,class:`w-8 h-8 rounded-full flex items-center justify-center hover:bg-active hover:op100 op50`,title:`Close`,"aria-label":`Close`};function Ln(e,t){return C(),v(`button`,In,[...t[0]||=[_(`div`,{class:`i-ph-x`},null,-1)]])}var Rn=ge(Fn,[[`render`,Ln]]),zn={class:`flex flex-col relative`},Bn=p({__name:`FlowmapNode`,props:n({lines:{},classNodeInline:{},classNodeOuter:{},classNodeInner:{},classLineTop:{},classLineBottom:{},active:{type:Boolean}},{expanded:{type:Boolean,required:!1,default:!0},expandedModifiers:{}}),emits:[`update:expanded`],setup(e){let t=e,n=F(e,`expanded`);return(r,i)=>(C(),v(`div`,zn,[t.lines?.top?(C(),v(`div`,{key:0,class:L([`absolute top-0 left-10 border-r h-1/2 max-h-4 z-flowmap-line`,[e.active?`border-flow-line-active`:`border-flow-line`,t.classLineTop]]),style:w(typeof t.lines?.top==`number`?`height: ${t.lines.top}px`:``)},null,6)):z(``,!0),t.lines?.bottom?(C(),v(`div`,{key:1,class:L([`absolute bottom-0 left-10 border-r h-1/2 max-h-4 z-flowmap-line`,[e.active?`border-flow-line-active`:`border-flow-line`,t.classLineBottom]]),style:w(typeof t.lines?.bottom==`number`?`height: ${t.lines.bottom}px`:``)},null,6)):z(``,!0),O(r.$slots,`before`),_(`div`,{class:L([t.classNodeInline,`flowmap-node-inline flex w-max`])},[O(r.$slots,`inline-before`),_(`div`,{class:L([[t.classNodeOuter,e.active?`border-flow-active`:`border-flow`],`border rounded-2xl bg-base of-hidden cursor-pointer`]),onClick:i[0]||=e=>n.value=!n.value},[O(r.$slots,`inner`,{},()=>[_(`div`,{class:L([`px3 py1 flex flex-inline gap-2 items-center`,t.classNodeInner])},[O(r.$slots,`content`)],2)])],2),O(r.$slots,`inline-after`)],2),O(r.$slots,`after`)]))}});function Vn(){return typeof window<`u`}function Hn(e){return Wn(e)?(e.nodeName||``).toLowerCase():`#document`}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Un(e){return((Wn(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Wn(e){return Vn()?e instanceof Node||e instanceof J(e).Node:!1}function Gn(e){return Vn()?e instanceof Element||e instanceof J(e).Element:!1}function Kn(e){return Vn()?e instanceof HTMLElement||e instanceof J(e).HTMLElement:!1}function qn(e){return!Vn()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function Jn(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ar(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Yn(e){return/^(table|td|th)$/.test(Hn(e))}function Xn(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Zn=/transform|translate|scale|rotate|perspective|filter/,Qn=/paint|layout|strict|content/,$n=e=>!!e&&e!==`none`,er;function tr(e){let t=Gn(e)?ar(e):e;return $n(t.transform)||$n(t.translate)||$n(t.scale)||$n(t.rotate)||$n(t.perspective)||!rr()&&($n(t.backdropFilter)||$n(t.filter))||Zn.test(t.willChange||``)||Qn.test(t.contain||``)}function nr(e){let t=sr(e);for(;Kn(t)&&!ir(t);){if(tr(t))return t;if(Xn(t))return null;t=sr(t)}return null}function rr(){return er??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),er}function ir(e){return/^(html|body|#document)$/.test(Hn(e))}function ar(e){return J(e).getComputedStyle(e)}function or(e){return Gn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sr(e){if(Hn(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||qn(e)&&e.host||Un(e);return qn(t)?t.host:t}function cr(e){let t=sr(e);return ir(t)?(e.ownerDocument||e).body:Kn(t)&&Jn(t)?t:cr(t)}function lr(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=cr(e),i=r===e.ownerDocument?.body,a=J(r);if(i){let e=ur(a);return t.concat(a,a.visualViewport||[],Jn(r)?r:[],e&&n?lr(e):[])}else return t.concat(r,lr(r,[],n))}function ur(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dr(e){let t=ar(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Kn(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=me(n)!==a||me(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function fr(e){return Gn(e)?e:e.contextElement}function pr(e){let t=fr(e);if(!Kn(t))return V(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=dr(t),o=(a?me(n.width):n.width)/r,s=(a?me(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var mr=V(0);function hr(e){let t=J(e);return!rr()||!t.visualViewport?mr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gr(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===J(e)}function _r(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=fr(e),o=V(1);t&&(r?Gn(r)&&(o=pr(r)):o=pr(e));let s=gr(a,n,r)?hr(a):V(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=J(a),t=Gn(r)?J(r):r,n=e,i=ur(n);for(;i&&t!==n;){let e=pr(i),t=i.getBoundingClientRect(),r=ar(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=J(i),i=ur(n)}}return H({width:u,height:d,x:c,y:l})}function vr(e,t){let n=or(e).scrollLeft;return t?t.left+n:_r(Un(e)).left+n}function yr(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-vr(e,n),y:n.top+t.scrollTop}}function br(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Un(r),s=t?Xn(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=V(1),u=V(0),d=Kn(r);if((d||!a)&&((Hn(r)!==`body`||Jn(o))&&(c=or(r)),d)){let e=_r(r);l=pr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?yr(o,c):V(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 xr(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Sr(e){let t=or(e),n=e.ownerDocument.body,r=K(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=K(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+vr(e),o=-t.scrollTop;return ar(n).direction===`rtl`&&(a+=K(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Cr=25;function wr(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=J(e),a=Un(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!rr()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(vr(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Cr&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Tr(e,t){let n=_r(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=pr(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Er(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=wr(e,n,t);else if(t===`document`)r=Sr(Un(e));else if(Gn(t))r=Tr(t,n);else{let n=hr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return H(r)}function Dr(e,t){let n=t.get(e);if(n)return n;let r=lr(e,[],!1).filter(e=>Gn(e)&&Hn(e)!==`body`),i=null,a=ar(e).position===`fixed`,o=a?sr(e):e;for(;Gn(o)&&!ir(o);){let e=ar(o),t=tr(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=sr(o)}return t.set(e,r),r}function Or(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Xn(t)?[]:Dr(t,this._c):[].concat(n),r],o=Er(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Er(t,a[e],i);s=K(n.top,s),c=he(n.right,c),l=he(n.bottom,l),u=K(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function kr(e){let{width:t,height:n}=dr(e);return{width:t,height:n}}function Ar(e,t,n){let r=Kn(t),i=Un(t),a=n===`fixed`,o=_r(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=V(0);if((r||!a)&&((Hn(t)!==`body`||Jn(i))&&(s=or(t)),r)){let e=_r(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=vr(i));let l=i&&!r&&!a?yr(i,s):V(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function jr(e){return ar(e).position===`static`}function Mr(e,t){if(!Kn(e)||ar(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Un(e)===n&&(n=n.ownerDocument.body),n}function Nr(e,t){let n=J(e);if(Xn(e))return n;if(!Kn(e)){let t=sr(e);for(;t&&!ir(t);){if(Gn(t)&&!jr(t))return t;t=sr(t)}return n}let r=Mr(e,t);for(;r&&Yn(r)&&jr(r);)r=Mr(r,t);return r&&ir(r)&&jr(r)&&!tr(r)?n:r||nr(e)||n}var Pr=async function(e){let t=this.getOffsetParent||Nr,n=this.getDimensions,r=await n(e.floating);return{reference:Ar(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fr(e){return ar(e).direction===`rtl`}var Ir={convertOffsetParentRelativeRectToViewportRelativeRect:br,getDocumentElement:Un,getClippingRect:Or,getOffsetParent:Nr,getElementRects:Pr,getClientRects:xr,getDimensions:kr,getScale:pr,isElement:Gn,isRTL:Fr},Lr=de,Rr=U,zr=W,Br=(e,t,n)=>{let r=new Map,i=n??{},a={...Ir,...i.platform,_c:r};return G(e,t,{...i,platform:a})},Vr=p({__name:`DisplayGraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:t,hoverY:n}=h(e),a=E(`hoverElement`),o=i(0),s=i(0);return P([t,n],([e,t])=>{Br({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},a.value,{placement:`right-start`,middleware:[zr(),Rr(),Lr({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{o.value=e,s.value=t})}),(e,t)=>(C(),r(ae,{to:`body`},[_(`div`,{ref_key:`hoverElement`,ref:a,class:`fixed z-panel-content pointer-events-none`,style:w({left:`${o.value}px`,top:`${s.value}px`})},[O(e.$slots,`default`)],4)]))}});function Hr(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 Ur,Wr,Gr,Kr,Y,X=1,qr;function Jr(e,t,n,r,i){if(!Array.isArray(e))return e;let a=window.devicePixelRatio||1;if(Ur!==t||Wr!==a||Gr!==i){let n=Math.round(64*a)/64;X=i,X=Math.log2(X),X-=Math.floor(X);let r=X,o=Math.min(1,8*r);X=2**X;let s=8*Math.SQRT2/X;Ur=t,Wr=a,Gr=i,Kr||=document.createElement(`canvas`),Y||=Kr.getContext(`2d`),Kr.width=Kr.height=Math.round(64*n),Y.scale(n,n),Y.fillStyle=e[0],Y.fillRect(0,0,64,64),Y.globalAlpha=.25,Y.fillStyle=e[1],Y.fillRect(0,0,64,64),Y.globalAlpha=.67,Y.strokeStyle=e[1],Y.beginPath();for(let e=0;e<=64;e+=16)Y.moveTo(e-32,e+32),Y.lineTo(e+32,e-32);if(Y.lineWidth=s*(1-(o-r)/2),Y.stroke(),o+r>0){Y.beginPath();for(let e=8;e<64;e+=16)Y.moveTo(e-32,e+32),Y.lineTo(e+32,e-32);Y.lineWidth=s*(o+r)/2,Y.stroke()}qr=t.createPattern(Kr,`repeat`),X/=n}return n/=64*X*a,n-=Math.floor(n),n*=64*X*a,qr.setTransform(new DOMMatrix([X,0,0,X,n,r])),qr}function Yr(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 Xr(e){return t=>t.id&&e[t.id]||t.color}function Zr(e,t=1,n=1){let r={};return Qr(r,e,0,Math.PI*2,t,n),Xr(r)}function Qr(e,t,n,r,i=1,a=1){let o=t.size;e[t.id]=Hr(n+r/2,i,a);for(let s of t.children){let t=s.size/o*r;Qr(e,s,n,t,i,a),n+=t}}var $r=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function ei(e=16,t=$r){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function ti(e,t,n=(e,t)=>t.size-e.size){if(e.__nanovis)return e;let r={...e};return r.id||=ei(),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=>ti(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 ni(e){return e.children.length===0?1:Math.max(...e.children.map(e=>ni(e)))+1}var ri=/\bFirefox\//.test(navigator.userAgent),ii;function ai(e){return ii?ii.format(e):`${e}`}function oi(){return(window.performance||Date).now()}function si(e){let t=e.toFixed(1).split(`.`,2);return`${ai(+t[0])}.${t[1]}`}function ci(e){return e===1?`1 byte`:e<1024?`${ai(e)} bytes`:e<1024*1024?`${si(e/1024)} kb`:e<1024*1024*1024?`${si(e/(1024*1024))} mb`:`${si(e/(1024*1024*1024))} gb`}function li(e,t,n,r,i,a){if(ri){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 ui(e){return window.addEventListener(`wheel`,e,{passive:!1}),()=>window.removeEventListener(`wheel`,e)}function di(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}try{ii=new Intl.NumberFormat}catch{}var fi=()=>({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)}}}),pi={getText:e=>e.text,getSubtext:e=>e.subtext,animate:!0,animateDuration:350},mi={fallback:`#CCC`,stroke:`#0008`,text:`#222`,hover:`#fff5`,shadow:`#0008`,fg:`#fff`,bg:`#222`},hi=46,gi=`14px sans-serif`,_i=`bold ${gi}`,vi=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={...pi,...t};let{getColor:n=Zr(e),getText:r=()=>void 0,getSubtext:i=()=>void 0}=this.options;this.palette={...mi,...t.palette},this.el=document.createElement(`div`),this.canvas=document.createElement(`canvas`),this.c=this.canvas.getContext(`2d`),this.root=e,this.maxDepth=ni(e),this.disposables=[],this.events=fi(),this.getColor=n,this.getText=r,this.getSubtext=i,this.setFont(gi),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(hi)}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]}},yi=24,bi=5,xi=.01,Si=1e3,Ci=class extends vi{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(ui(e=>{let t=e.deltaX,n=e.deltaY,r=oi(),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(di(()=>this.resize())),this.mainEl.append(this.canvas),this.el.append(this.mainEl)}tick(){let e=(oi()-this.animationStart)/(this.options.animateDuration??pi.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??pi.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*xi),r=Math.min(this.totalBytes,r+e.size*xi),this.setViewport(n,r,t)}}select(e,t=this.options.animate??pi.animate){this.changeSelectedNode(e,t)}resize(){this.width=this.el.clientWidth,this.height=this.maxDepth*yi+1,this.zoomedOutMin=this.width-Si>>1,this.zoomedOutWidth=this.zoomedOutMin+Si,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)+bi,d=t+yi/2,f=this.getText(e)||``,p=this.getSubtext(e)||``,m,h=0,g=s+o-u,_=Jr(this.getColor(e)||this.palette.fallback,this.c,this.zoomedOutMin-this.viewportMin*a,yi,a*this.stripeScaleAdjust),v=this.palette.text,y=-1/0;i&1?(v=this.palette.fg,this.setFont(_i)):(this.c.fillStyle=_,this.c.fillRect(o,t,l,yi),(i&2||this.hoveredNode&&e.id===this.hoveredNode.id)&&(this.c.fillStyle=this.palette.hover,this.c.fillRect(o,t,l,yi),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(gi),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+yi,n,y,i&-2),n+=r.size;return i&1||li(this.c,this.palette.stroke,o+.5,t+.5,l,yi),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+yi&&e.id)return e;if(r>=t+yi)for(let r of e.children){let e=a(r,t+yi,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=oi():this.animationStart=0,this.invalidate()}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),this.events.emit(`hover`,t,e)}};function wi(e,t){for(;t;){if(t===e)return!0;t=t.parent}return!1}function Ti(e,t,n){if(e===t)return;let r=t.parent,i=r.size||1,a=0;Ti(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 Ei={};function Di(e){return Ei[e]||(Ei[e]=400*Math.log(1+Math.log(1+e/8))),Ei[e]}var Oi=-Math.PI/2,ki=class extends vi{currentNode;hoveredNode;centerX=0;centerY=0;animationStart=0;radiusScale=1;sourceDepth=0;sourceStartAngle=Oi;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(di(()=>this.resize())),this.disposables.push(ui(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(Di(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(_i),this.c.textAlign=`center`,this.c.fillText(this.getSubtext(this.targetNode)??ci(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=Jr(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=(oi()-this.animationStart)/(this.options.animateDuration??pi.animateDuration);e<0||e>1?(e=1,this.animatedNode=this.targetNode,this.targetDepth=0,this.targetStartAngle=Oi,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 Di(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=oi()),wi(this.animatedNode,this.currentNode)){let e={depth_:this.animatedDepth,startAngle_:this.animatedStartAngle,sweepAngle_:this.animatedSweepAngle};Ti(this.animatedNode,this.currentNode,e),this.animatedDepth=e.depth_,this.animatedStartAngle=e.startAngle_,this.animatedSweepAngle=e.sweepAngle_,this.targetDepth=0,this.targetStartAngle=Oi,this.targetSweepAngle=Math.PI*2,this.animatedNode=this.currentNode}else if(wi(this.currentNode,this.animatedNode)){let e={depth_:0,startAngle_:Oi,sweepAngle_:Math.PI*2};Ti(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)}}};function Ai(e){return Array.isArray?Array.isArray(e):Ri(e)===`[object Array]`}function ji(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Mi(e){return e==null?``:ji(e)}function Z(e){return typeof e==`string`}function Ni(e){return typeof e==`number`}function Pi(e){return e===!0||e===!1||Ii(e)&&Ri(e)==`[object Boolean]`}function Fi(e){return typeof e==`object`}function Ii(e){return Fi(e)&&e!==null}function Q(e){return e!=null}function Li(e){return!e.trim().length}function Ri(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var zi=`Incorrect 'index' type`,Bi=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,Vi=e=>`Invalid value for key ${e}`,Hi=e=>`Pattern length exceeds max of ${e}.`,Ui=e=>`Missing ${e} property in key`,Wi=e=>`Property 'weight' in key '${e}' must be a positive integer`,Gi=`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`,Ki=Object.prototype.hasOwnProperty,qi=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=Ji(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 Ji(e){let t=null,n=null,r=null,i=1,a=null;if(Z(e)||Ai(e))r=e,t=Yi(e),n=Xi(e);else{if(!Ki.call(e,`name`))throw Error(Ui(`name`));let o=e.name;if(r=o,Ki.call(e,`weight`)&&e.weight!==void 0&&(i=e.weight,i<=0))throw Error(Wi(Xi(o)));t=Yi(o),n=Xi(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:a}}function Yi(e){return Ai(e)?e:e.split(`.`)}function Xi(e){return Ai(e)?e.join(`.`):e}function Zi(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(Q(e))if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!Q(s))return;if(a===t.length-1&&(Z(s)||Ni(s)||Pi(s)||typeof s==`bigint`))n.push(o===void 0?Mi(s):{v:Mi(s),i:o});else if(Ai(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,a+1,e)}else t.length&&i(s,t,a+1,o)}};return i(e,Z(t)?t.split(`.`):t,0),r?n:n[0]}var Qi={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},$i={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},ea={location:0,threshold:.6,distance:100},ta={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:`any`,getFn:Zi,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},$=Object.freeze({...$i,...Qi,...ea,...ta});function na(e){return e>=9&&e<=13||e===32||e===160}function ra(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=0,a=!1;for(let e=0;e<t.length;e++)na(t.charCodeAt(e))?a=!1:a||=(i++,!0);if(i===0&&(i=1),n.has(i))return n.get(i);let o=Math.round(r/i**(.5*e))/r;return n.set(i,o),o},clear(){n.clear()}}}var ia=class{constructor({getFn:e=$.getFn,fieldNormWeight:t=$.fieldNormWeight}={}){this.norm=ra(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},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(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(Z(this.docs[0]))for(let n=0;n<e;n++){let e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw Error(Bi);if(Z(e)){let n=this._createStringRecord(e,t);return n&&this.records.push(n),n}let n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw Error(Bi);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!Q(e)||Li(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){let n={i:t,$:{}};for(let t=0,r=this.keys.length;t<r;t++){let r=this.keys[t],i=r.getFn?r.getFn(e):this.getFn(e,r.path);if(Q(i)){if(Ai(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(Q(n)){if(Z(n)){if(!Li(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(Q(n.v)){let t=Z(n.v)?n.v:Mi(n.v);if(!Li(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[t]=e}else if(Z(i)&&!Li(i)){let e={v:i,n:this.norm.get(i)};n.$[t]=e}}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function aa(e,t,{getFn:n=$.getFn,fieldNormWeight:r=$.fieldNormWeight}={}){let i=new ia({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(Ji)),i.setSources(t),i.create(),i}function oa(e,{getFn:t=$.getFn,fieldNormWeight:n=$.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new ia({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function sa(e=[],t=$.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}function ca(e,t,n,{location:r=$.location,distance:i=$.distance,threshold:a=$.threshold,findAllMatches:o=$.findAllMatches,minMatchCharLength:s=$.minMatchCharLength,includeMatches:c=$.includeMatches,ignoreLocation:l=$.ignoreLocation}={}){if(t.length>32)throw Error(Hi(32));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}m=-1;let y=[],b=1,x=0,S=u+d,C=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=S;for(;r<i;)h(t,f+i)<=p?r=i:S=i,i=Math.floor((S-r)/2+r);S=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&C&&(b=h(t,i),b<=p)){if(p=b,m=i,x=t,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}if(g&&m>=0){let t=Math.min(d-1,m+u-1+x);for(let r=m;r<=t;r+=1)n[e[r]]&&(_[r]=1)}let w={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=sa(_,s);e.length?c&&(w.indices=e):w.isMatch=!1}return w}function la(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}function ua(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var da={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},fa=RegExp(`[`+Object.keys(da).join(``)+`]`,`g`),pa=typeof String.prototype.normalize==`function`?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,``).replace(fa,e=>da[e]):e=>e,ma=class{constructor(e,{location:t=$.location,threshold:n=$.threshold,distance:r=$.distance,includeMatches:i=$.includeMatches,findAllMatches:a=$.findAllMatches,minMatchCharLength:o=$.minMatchCharLength,isCaseSensitive:s=$.isCaseSensitive,ignoreDiacritics:c=$.ignoreDiacritics,ignoreLocation:l=$.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?pa(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:la(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){let e=d-32;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?pa(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};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}=ca(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.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=ua(u)),p}},ha=new Set([`fuzzy`,`include`]);function ga(e){return e.startsWith(`inverse`)}var _a=[{type:`exact`,multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:`exact`,search(t){let n=t===e;return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`include`,multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:`include`,search(t){let n=0,r,i=[],a=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+a,i.push([r,n-1]);let o=!!i.length;return{isMatch:o,score:+!o,indices:i}}})},{type:`prefix-exact`,multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:`prefix-exact`,search(t){let n=t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`inverse-prefix-exact`,multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:`inverse-prefix-exact`,search(t){let n=!t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`inverse-suffix-exact`,multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:`inverse-suffix-exact`,search(t){let n=!t.endsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`suffix-exact`,multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:`suffix-exact`,search(t){let n=t.endsWith(e);return{isMatch:n,score:+!n,indices:[t.length-e.length,t.length-1]}}})},{type:`inverse-exact`,multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:`inverse-exact`,search(t){let n=t.indexOf(e)===-1;return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`fuzzy`,multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let n=new ma(e,{location:t.location??$.location,threshold:t.threshold??$.threshold,distance:t.distance??$.distance,includeMatches:t.includeMatches??$.includeMatches,findAllMatches:t.findAllMatches??$.findAllMatches,minMatchCharLength:t.minMatchCharLength??$.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??$.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??$.ignoreDiacritics,ignoreLocation:t.ignoreLocation??$.ignoreLocation});return{type:`fuzzy`,search(e){return n.searchIn(e)}}}}],va=_a.length,ya=`\0`,ba=`|`;function xa(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}function Sa(e,t){let n=e.match(t);return n?n[1]:null}function Ca(e,t={}){return e.replace(/\\\|/g,ya).split(ba).map(e=>{let n=xa(e.replace(/\u0000/g,`|`).trim()).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<va;){let e=_a[o],n=Sa(i,e.multiRegex);n&&(r.push(e.create(n,t)),a=!0)}if(!a)for(o=-1;++o<va;){let e=_a[o],n=Sa(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}var wa=class{constructor(e,{isCaseSensitive:t=$.isCaseSensitive,ignoreDiacritics:n=$.ignoreDiacritics,includeMatches:r=$.includeMatches,minMatchCharLength:i=$.minMatchCharLength,ignoreLocation:a=$.ignoreLocation,findAllMatches:o=$.findAllMatches,location:s=$.location,threshold:c=$.threshold,distance:l=$.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?pa(e):e,this.pattern=e,this.query=Ca(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?pa(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(l)a+=1,s+=d,ga(r.type)&&(c=!0),n&&(ha.has(r.type)?o.push(...u):o.push(u));else{s=0,a=0,o.length=0,c=!1;break}}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=ua(o)),e}}return{isMatch:!1,score:1}}},Ta=[];function Ea(...e){Ta.push(...e)}function Da(e,t){for(let n=0,r=Ta.length;n<r;n+=1){let r=Ta[n];if(r.condition(e,t))return new r(e,t)}return new ma(e,t)}var Oa={AND:`$and`,OR:`$or`},ka={PATH:`$path`,PATTERN:`$val`},Aa=e=>!!(e[Oa.AND]||e[Oa.OR]),ja=e=>!!e[ka.PATH],Ma=e=>!Ai(e)&&Fi(e)&&!Aa(e),Na=e=>({[Oa.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Pa(e,t,{auto:n=!0}={}){let r=e=>{if(Z(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=Da(e,t)),r}let i=Object.keys(e),a=ja(e);if(!a&&i.length>1&&!Aa(e))return r(Na(e));if(Ma(e)){let r=a?e[ka.PATH]:i[0],o=a?e[ka.PATTERN]:e[r];if(!Z(o))throw Error(Vi(r));let s={keyId:Xi(r),pattern:o};return n&&(s.searcher=Da(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];Ai(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return Aa(e)||(e=Na(e)),r(e)}function Fa(e,{ignoreFieldNorm:t=$.ignoreFieldNorm}){let n=1;return e.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))}),n}function Ia(e,{ignoreFieldNorm:t=$.ignoreFieldNorm}){e.forEach(e=>{e.score=Fa(e.matches,{ignoreFieldNorm:t})})}var La=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&this.comparator(t[i],t[r])>0&&(r=i),a<n&&this.comparator(t[a],t[r])>0&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function Ra(e){let t=[];return e.matches.forEach(e=>{if(!Q(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}function za(e,t,{includeMatches:n=$.includeMatches,includeScore:r=$.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=Ra(e)),r&&(a.score=e.score),a})}var Ba=/[\p{L}\p{M}\p{N}_]+/gu,Va=new WeakSet;function Ha(e){Va.has(e)||(Va.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function Ua(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||Ha(e),t=>t.match(e)||[]):e=>e.match(Ba)||[]}function Wa({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=Ua(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=pa(n)),r(n)}}}var Ga=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Wa({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new ma(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}this.combineAll=t.tokenMatch===`all`,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0,a=0,o=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s<this.termSearchers.length;s++){let c=this.termSearchers[s].searchIn(e),l=this.idfWeights[s];r+=l,c.isMatch&&(i++,n+=l*(1-c.score),c.indices&&t.push(...c.indices),this.combineAll&&(this.useMask?a|=1<<s:o.add(s)))}if(i===0)return{isMatch:!1,score:1};let s=r>0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(c.indices=ua(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}};function Ka(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function qa(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0){Ka(e,a,i,r);return}if(o)for(let t=0;t<n;t++){let n=o[t];if(n)if(Array.isArray(n))for(let t of n)Ka(e,t.v,i,r);else Ka(e,n.v,i,r)}}function Ja(e,t,n){let r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(let i of e)qa(r,i,t,n);return r}function Ya(e,t,n,r){qa(e,t,n,r)}function Xa(e,t){let n=e.docFieldCount.get(t);if(n===void 0)return;e.fieldCount-=n,e.docFieldCount.delete(t);let r=e.docTermFieldHits.get(t);if(r){for(let[t,n]of r){let r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function Za(e,t){if(t.length===0)return;let n=Array.from(new Set(t)).sort((e,t)=>e-t);for(let t of n)Xa(e,t);let r=e=>{let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],a=new Map;for(let[t,n]of e.docFieldCount)a.set(t>i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var Qa=class{constructor(e,t,n){this.options={...$,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new qi(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=Da(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof ia))throw Error(zi);if(this._myIndex=t||aa(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=Wa({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=Ja(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!Q(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=Wa({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});Ya(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&Za(this._invertedIndex,n);let e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(Bi);this._invertedIndex&&Za(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(Z(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return Ni(n)&&n>-1&&(e=e.slice(0,n)),e}let c=a&&Ni(n)&&n>0&&Z(e),l=o,u=(e,t)=>l(e,t)||e.idx-t.idx,d;if(c){let t=new La(n,u);Z(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),d=t.extractSorted()}else d=Z(e)?Z(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),Ia(d,{ignoreFieldNorm:s}),a&&d.sort(Z(e)?u:l),Ni(n)&&n>-1&&(d=d.slice(0,n));return za(d,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:e,i:a,n:s})=>{if(!Q(e))return;let c=r.searchIn(e);if(c.isMatch){let r={score:c.score,value:e,norm:s,indices:c.indices};i&&(r.matchedMask=c.matchedMask,r.matchedTerms=c.matchedTerms,r.termCount=c.termCount);let l=[r];if(!i||this._coversAllTokens(l)){let r={item:e,idx:a,matches:l};t?(r.score=Fa(r.matches,{ignoreFieldNorm:n}),t.insert(r)):o.push(r)}}}),o}_searchLogical(e){let t=Pa(e,this.options),n=this._normalizedKeys(),r=(e,t,i)=>{if(!(`children`in e)){let{keyId:r,searcher:a}=e,o;return r===null?(o=[],n.forEach((e,n)=>{o.push(...this._findMatches({key:e,value:t[n],searcher:a}))})):o=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:a}),o&&o.length?[{idx:i,item:t,matches:o}]:[]}let{children:a,operator:o}=e,s=[];for(let e=0,n=a.length;e<n;e+=1){let n=a[e],c=r(n,t,i);if(c.length)s.push(...c);else if(o===Oa.AND)return[]}return s},i=this._myIndex.records,a=new Map,o=[];return i.forEach(({$:e,i:n})=>{if(Q(e)){let i=r(t,e,n);i.length&&(a.has(n)||(a.set(n,{idx:n,item:e,matches:[]}),o.push(a.get(n))),i.forEach(({matches:e})=>{a.get(n).matches.push(...e)}))}}),o}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=this._normalizedKeys(),s=t?null:[];return a.forEach(({$:e,i:a})=>{if(!Q(e))return;let c=[],l=!1,u=!1;if(o.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(c.push(...i),i[0].hasInverse&&(u=!0)):l=!0}),!(u&&l)&&c.length&&(!i||this._coversAllTokens(c))){let r={idx:a,item:e,matches:c};t?(r.score=Fa(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!Q(t))return[];let r=[];if(Ai(t))t.forEach(({v:t,i,n:a})=>{if(!Q(t))return;let o=n.searchIn(t);if(o.isMatch){let n={score:o.score,key:e,value:t,idx:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),r.push(n)}});else{let{v:i,n:a}=t,o=n.searchIn(i);if(o.isMatch){let t={score:o.score,key:e,value:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(t.matchedMask=o.matchedMask,t.matchedTerms=o.matchedTerms,t.termCount=o.termCount),r.push(t)}}return r}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}let n=new Set;for(let t=0;t<e.length;t++){let r=e[t].matchedTerms;if(r)for(let e of r)n.add(e)}return n.size===t}};Qa.version=`7.5.0`,Qa.createIndex=aa,Qa.parseIndex=oa,Qa.config=$,Qa.match=function(e,t,n){if(n&&n.useTokenSearch)throw Error(Gi);return Da(e,{...$,...n}).searchIn(t)},Qa.parseQuery=Pa,Ea(wa),Ea(Ga),Qa.use=function(...e){e.forEach(e=>Ea(e))};var $a=Qa,eo={class:`flex-col gap-2 min-w-30vw border border-base rounded-xl bg-glass`},to={key:0,class:`flex items-center`},no=[`title`],ro=[`checked`,`onChange`],io={class:`text-sm`},ao=[`title`],oo={key:0,class:`op75 i-ph-selection-slash-duotone`},so={key:1,class:`op75 i-ph-selection-plus-duotone`},co=p({__name:`DataSearchPanel`,props:{rules:{},modelValue:{default:()=>({search:``,selected:null})},selectedContainerClass:{default:``}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=pe(r,`modelValue`,n);function a(e){let{modelValue:t}=r;return!t?.selected||t.selected.includes(e.name)}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 c(){i?.value?.selected?.length===0?i.value.selected=null:i.value.selected=[]}return(n,r)=>(C(),v(`div`,eo,[O(n.$slots,`search`,{},()=>[t.modelValue.search===!1?z(``,!0):(C(),v(`div`,to,[k(_(`input`,{"onUpdate:modelValue":r[0]||=e=>M(i).search=e,class:`p2 px4 w-full`,style:{outline:`none`},placeholder:`Search`},null,512),[[se,M(i).search]]),O(n.$slots,`search-end`)]))]),t.rules.length?(C(),v(`div`,{key:0,class:L([t.selectedContainerClass,`flex gap-2 flex-wrap p2 border-t border-base`])},[(C(!0),v(A,null,e(t.rules,e=>(C(),v(`label`,{key:e.name,class:L([`border border-base rounded-md px2 py1 flex items-center gap-1 select-none`,a(e)?`bg-active`:`grayscale op50`]),title:e.description},[_(`input`,{type:`checkbox`,class:`mr1`,checked:a(e),onChange:t=>o(e)},null,40,ro),_(`div`,{class:L([e.icon,`icon-catppuccin`])},null,2),_(`div`,io,S(e.description||e.name),1)],10,no))),128)),_(`button`,{class:`rounded-md p1 flex items-center gap-1 select-none hover:bg-active`,title:`Reverse Selection`,onClick:s},[...r[1]||=[_(`div`,{class:`op75 i-ph-selection-background-duotone`},null,-1)]]),_(`button`,{class:`rounded-md p1 flex items-center gap-1 select-none hover:bg-active`,title:M(i).selected?.length===0?`Select All`:`Unselect All`,onClick:c},[M(i).selected?.length===0?(C(),v(`div`,oo)):(C(),v(`div`,so))],8,ao)],2)):z(``,!0),O(n.$slots,`default`)]))}}),lo=`node_modules`;function uo(e){return e.replace(/%2F/gi,`/`).replace(/\\/g,`/`)}function fo(e){return e[0]===`#`||!!e.match(/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/)}function po(e){let t=uo(e);if(fo(t))return t;let n=t.split(`/`);return go(n)?.name??vo(n)?.name}function mo(e){return e.match(/.*\/node_modules\/(.*)$/)?.[1]}function ho(e,t){let n=uo(e);if(fo(n)||/^\w+:/.test(n)&&!/^[a-z]:\\/i.test(e))return{moduleName:n,path:n};let r=po(n),i=mo(n);if(r&&i)return{moduleName:r,path:i};try{let e=We(t,n);return!e.startsWith(`./`)&&!e.startsWith(`../`)&&(e=`./${e}`),e.startsWith(`./.nuxt/`)&&(e=`#build${e.slice(7)}`),{path:e}}catch{return{path:n}}}function go(e){for(let t of yo(e)){let n=_o(e,t+1);if(n)return{name:n,endIndex:t+1+(n.startsWith(`@`)?2:1)}}}function _o(e,t){let n=e[t];if(!n)return;let r=n.startsWith(`@`)?`${n}/${e[t+1]??``}`:n;return fo(r)?r:void 0}function vo(e){for(let t of yo(e)){if(_o(e,t+1))continue;let n=t+1,r=e.indexOf(lo,n),i=r>=0?r:e.length;for(let t of[n,n+1]){if(t>=i)continue;let n=e[t];if(!n)continue;let r=bo(n);if(r)return{...r,index:t}}}}function yo(e){return e.map((e,t)=>e===lo?t:-1).filter(e=>e>=0).reverse()}function bo(e){let t=e.startsWith(`@`)?e.indexOf(`@`,1):e.indexOf(`@`);if(t<=0)return;let n=e.slice(0,t).replace(/\+/g,`/`),r=e.slice(t+1).split(`_`)[0];if(!(!fo(n)||!r))return{name:n,version:r}}var xo=be(ho);export{Ne as C,Se as D,xe as E,Te as O,Fe as S,we as T,wn as _,ki as a,Cn as b,ti as c,Rn as d,Mn as f,Tn as g,An as h,Ci as i,Ee as k,Vr as l,jn as m,co as n,Yr as o,Pn as p,$a as r,Zr as s,xo as t,Bn as u,Dn as v,Oe as w,qe as x,En as y};
@@ -1 +0,0 @@
1
- import{$ as e,C as t,N as n,S as r,T as i,Xt as a,Y as o,g as s,j as c,jt as l,qt as u,x as d}from"./V9lF8C-P.js";import{a as f,i as p,o as m}from"./B27J0MyN.js";import{a as h}from"./Pe6-s13S.js";var g={key:1,class:`p4 flex flex-col gap-4 items-center justify-center relative`},_={class:`border border-base rounded p2 flex flex-col gap-4 justify-center`},v={class:`font-mono truncate`},y=n({__name:`home`,setup(n){let y=p(),{state:b,isLoading:x}=h(async()=>{let[e,t]=await Promise.all([y.value.call(`vite:meta-info`),y.value.call(`vite:env-info`)]);return{metadata:e,envInfo:t}},null),S=d(()=>b.value?.metadata),C=d(()=>b.value?.envInfo),w=d(()=>[{id:`project`,icon:`i-ph-briefcase-duotone`,rows:[{id:`root`,icon:`i-ph-folder-duotone`,label:`Root`,value:S.value?.root},{id:`base`,icon:`i-ph-folder-simple-user-duotone`,label:`Base`,value:S.value?.base},{id:`plugins`,icon:`i-ph-plugs-duotone`,label:`Plugins`,value:S.value?.plugins.length??0}]},{id:`system`,icon:`i-ph-desktop-tower-duotone`,rows:[{id:`os`,icon:`i-ph-app-window-duotone`,label:`OS`,value:C.value?.os},{id:`cpu`,icon:`i-ph:cpu-duotone`,label:`CPU`,value:C.value?.cpu},{id:`memory`,icon:`i-ph:memory-duotone`,label:`Memory`,value:C.value?.memory}]},{id:`runtime`,icon:`i-ph-stack-duotone`,rows:[{id:`node`,icon:`i-catppuccin-package-json icon-catppuccin`,label:`Node`,value:C.value?.node},{id:`bun`,icon:`i-catppuccin:bun icon-catppuccin`,label:`Bun`,value:C.value?.bun},{id:`npm`,icon:`i-catppuccin:npm icon-catppuccin`,label:`NPM`,value:C.value?.npm},{id:`pnpm`,icon:`i-catppuccin:pnpm icon-catppuccin`,label:`PNPM`,value:C.value?.pnpm},{id:`yarn`,icon:`i-catppuccin:yarn icon-catppuccin`,label:`Yarn`,value:C.value?.yarn}]}]);return(n,d)=>{let p=f;return l(x)?(o(),t(p,{key:0,text:`Connecting...`})):(o(),i(`div`,g,[c(m),r(`div`,_,[(o(!0),i(s,null,e(w.value,t=>(o(),i(`div`,{key:t.id,class:`p4 flex gap-14 items-center`},[r(`div`,{class:u([`text-3xl flex ml3`,t.icon])},null,2),r(`div`,null,[(o(!0),i(s,null,e(t.rows,e=>(o(),i(`div`,{key:e.id,class:`grid grid-cols-[max-content_80px_2fr] gap-2 items-center`},[r(`div`,{class:u(e.icon)},null,2),r(`div`,null,a(e.label),1),r(`div`,v,a(e.value),1)]))),128))])]))),128))])]))}}});export{y as default};
@@ -1 +0,0 @@
1
- import{N as e,T as t,Y as n}from"./V9lF8C-P.js";import{u as r}from"./DDCgc1Ci.js";var i={class:`p10 flex flex-col items-center justify-center`},a=e({__name:`index`,setup(e){return r(`/home`),(e,r)=>(n(),t(`div`,i))}});export{a as default};
@@ -1 +0,0 @@
1
- import{$ as e,A as t,C as n,Ct as r,Et as i,H as a,J as o,N as s,S as c,T as l,Xt as u,Y as d,Yt as f,ct as p,dt as m,et as h,ft as g,g as _,j as v,jt as y,lt as b,nt as x,q as S,qt as C,ut as w,w as T,x as E,xt as D}from"./V9lF8C-P.js";import{a as O,i as k,n as ee}from"./B27J0MyN.js";import{Z as A,t as j}from"./FvQ1Jpsu.js";import{f as M,p as N}from"./DDCgc1Ci.js";import{n as P,u as F}from"./DyZ3H7l0.js";import{t as I}from"./BDNMzG2s.js";import{D as L,E as R,O as z,S as B,T as V,_ as H,a as te,b as U,c as ne,d as re,f as W,g as G,h as K,k as q,l as ie,m as J,n as Y,o as ae,r as oe,s as se,t as ce,u as le,v as X,x as Z}from"./B9YnVuxw.js";import{D as ue,E as Q,O as de,a as fe,m as pe,n as me,o as he,y as ge}from"./Pe6-s13S.js";var $=s({__name:`DisplayNumberBadge`,props:{number:{},color:{default:`badge-color-gray op75`},icon:{},prefix:{},suffix:{},format:{default:`locale`}},setup(e){let n=e,r=E(()=>n.format===`percent`?Number(n.number).toLocaleString(void 0,{style:`percent`,minimumFractionDigits:2,maximumFractionDigits:2}):Number(n.number).toLocaleString());return(n,i)=>(d(),l(`div`,{class:C([e.color,`px-0.4em py-0.2em font-mono line-height-none flex items-center`])},[e.icon?(d(),l(`div`,{key:0,class:C([e.icon,`mr-1`])},null,2)):T(``,!0),t(` `+u(e.prefix||``)+u(r.value)+u(e.suffix||``)+` `,1),h(n.$slots,`after`)],2))}}),_e={class:`op50 text-xs flex justify-center items-center`},ve=s({__name:`FlowmapNodePluginInfo`,props:{modules:{},calls:{},duration:{}},setup(e){return(t,n)=>(d(),l(`span`,_e,[v($,{number:e.modules,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${e.modules}`},null,8,[`number`,`title`]),n[1]||=c(`span`,{class:`op40`},`|`,-1),v($,{number:e.calls,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${e.calls}`},null,8,[`number`,`title`]),n[2]||=c(`span`,{class:`op40`},`|`,-1),v(K,{duration:e.duration,class:`flex gap-1 items-center px1`,title:`Total build cost: ${y(H)(e.duration,!0)}`},{default:m(()=>[...n[0]||=[c(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`])]))}}),ye={class:`flex flex-col h-full min-h-0`},be={class:`select-none flex-1 min-h-0 of-x-hidden of-y-auto ws-nowrap w-auto p4 flex flex-col`,style:{"scrollbar-gutter":`stable`}},xe={class:`flex`},Se={class:`flex items-center justify-center relative w-60 h14`},Ce={class:`op50 text-xs flex items-center justify-center gap-1 h6`},we=[`datetime`],Te={class:`flex items-center justify-center relative w-60 h14`},Ee={class:`op50 text-xs flex items-center justify-center gap-1 h6`},De=[`datetime`],Oe=Object.assign(s({__name:`PluginFlowTimeline`,props:{buildMetrics:{}},setup(e){let n=e;function r(e){let t={duration:0,calls:e.length,modules:0},n=new Set;return e.forEach(e=>{n.has(e.module)||(n.add(e.module),t.modules++),t.duration+=e.duration}),t}let i=E(()=>r(n.buildMetrics.resolveIdMetrics)),a=E(()=>r(n.buildMetrics.loadMetrics)),o=E(()=>r(n.buildMetrics.transformMetrics)),s=E(()=>{let e=n.buildMetrics.calls;if(e?.length)return e[0].timestamp_start}),f=E(()=>{let e=n.buildMetrics.calls;if(e?.length)return e.at(-1).timestamp_end});return(n,r)=>{let p=le,g=ve;return d(),l(`div`,ye,[h(n.$slots,`header`),c(`div`,be,[c(`div`,xe,[v(p,{active:!1,"class-node-inner":`w60`},{content:m(()=>[c(`div`,{class:`p2 w-full text-center`,onClick:r[0]||=e=>y(W).pluginDetailSelectedHook=``},[v(J,{name:e.buildMetrics.plugin_name,class:`font-mono text-sm ws-nowrap text-ellipsis line-clamp-1`},null,8,[`name`])])]),_:1})]),c(`div`,Se,[r[5]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),r[6]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),c(`span`,Ce,[r[4]||=c(`i`,{class:`i-ph-airplane-takeoff-thin text-4 inline-flex`},null,-1),s.value?(d(),l(`time`,{key:0,datetime:new Date(s.value).toISOString()},u(new Date(s.value).toLocaleString()),9,we)):T(``,!0)])]),v(p,{"class-node-inner":`w60`,"class-node-outer":`${!i.value.modules&&!i.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0},active:y(W).pluginDetailSelectedHook===`resolve`},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[1]||=e=>y(W).pluginDetailSelectedHook=`resolve`},[r[7]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-magnifying-glass-duotone`}),t(` Resolve Id `)],-1),c(`div`,null,[v(g,{modules:i.value.modules,calls:i.value.calls,duration:i.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`class-node-outer`,`active`]),v(p,{active:y(W).pluginDetailSelectedHook===`load`,"class-node-inner":`w60`,"class-node-outer":`${!a.value.modules&&!a.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0}},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[2]||=e=>y(W).pluginDetailSelectedHook=`load`},[r[8]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-upload-simple-duotone`}),t(` Load `)],-1),c(`div`,null,[v(g,{modules:a.value.modules,calls:a.value.calls,duration:a.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),v(p,{active:y(W).pluginDetailSelectedHook===`transform`,"class-node-inner":`w60`,"class-node-outer":`${!o.value.modules&&!o.value.calls?`b-dashed!`:``}`},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[3]||=e=>y(W).pluginDetailSelectedHook=`transform`},[r[9]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-magic-wand-duotone`}),t(` Transform `)],-1),c(`div`,null,[v(g,{modules:o.value.modules,calls:o.value.calls,duration:o.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),c(`div`,Te,[r[11]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),r[12]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),r[13]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-14 w-2 h-2 border-4 rounded-full`},null,-1),c(`span`,Ee,[r[10]||=c(`i`,{class:`i-ph-airplane-landing-thin text-4 inline-flex`},null,-1),f.value?(d(),l(`time`,{key:0,datetime:new Date(f.value).toISOString()},u(new Date(f.value).toLocaleString()),9,De)):T(``,!0)])])])])}}}),{__name:`FlowmapPluginFlowTimeline`}),ke={role:`row`,class:`border-b border-base bg-base flex flex-row`},Ae={key:0,role:`columnheader`,class:`bg-base flex-none w32 ws-nowrap p1 text-center font-600`},je={key:1,role:`columnheader`,class:`bg-base flex-1 min-w100 ws-nowrap p1 text-left font-600`},Me={class:`flex flex-row gap1 items-center w-full`},Ne={class:`w-6 h-6 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`},Pe={class:`p2 flex flex-col gap2`},Fe=[`title`],Ie=[`checked`,`onChange`],Le={class:`text-sm`},Re={key:2,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none ws-nowrap p1 text-center font-600 w-27`},ze={class:`w-6 h-6 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`},Be={key:3,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none min-w52 ws-nowrap p1 text-center font-600`},Ve={key:4,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none min-w52 ws-nowrap p1 text-center font-600`},He={key:0,role:`cell`,class:`flex items-center justify-center flex-none w32 ws-nowrap op80`},Ue={key:1,role:`cell`,class:`flex-1 min-w100 text-left text-ellipsis line-clamp-2`},We={key:2,role:`cell`,class:`flex items-center justify-center flex-none text-center text-sm w-27`},Ge={key:3,role:`cell`,class:`flex items-center justify-center flex-none text-center font-mono text-sm min-w52 op80`},Ke={key:4,role:`cell`,class:`flex items-center justify-center flex-none text-center font-mono text-sm min-w52 op80`},qe={key:1,role:`table`,class:`min-w-max h-full`},Je={class:`p4`},Ye={class:`w-full h-48 flex items-center justify-center op50 italic`},Xe={key:0},Ze={key:1},Qe=Object.assign(I(s({__name:`PluginDetailsTable`,props:{modules:{},buildMetrics:{},selectedFields:{},root:{}},setup(i){let a=i,o={resolve:`Resolve Id`,load:`Load`,transform:`Transform`},s=E(()=>a.modules.map(e=>({mod:e,type:z(e.id)}))),f=E(()=>R.filter(e=>s.value.some(t=>e.match.test(t.mod.id)))),p=E(()=>{let e=new Map;for(let{mod:t,type:n}of s.value)e.set(t.id,n.name);return e}),h=r(W.value.pluginDetailsModuleTypes??f.value.map(e=>e.name)),g=E(()=>new Set(h.value)),{state:b,next:x}=he([``,`desc`,`asc`],{initialValue:W.value.pluginDetailsDurationSortType}),S=E(()=>{let e=W.value.pluginDetailSelectedHook,t=W.value.pluginDetailsShowType,n=t!==`all`&&[`load`,`transform`].includes(e),r=new Map(p.value),i=[];for(let o of a.buildMetrics.calls){if(!o.module||e&&o.type!==e||n&&(t===`changed`?o.unchanged:!o.unchanged))continue;let a=r.get(o.module);a||(a=z(o.module).name,r.set(o.module,a)),g.value.has(a)&&i.push(o)}return b.value&&i.sort((e,t)=>b.value===`asc`?e.duration-t.duration:t.duration-e.duration),i});function w(e){h.value?.includes(e.name)?h.value=h.value?.filter(t=>t!==e.name):h.value?.push(e.name),W.value.pluginDetailsModuleTypes=h.value}function D(){x(),W.value.pluginDetailsDurationSortType=b.value}function O(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}return(r,a)=>{let s=Z;return S.value.length&&i.selectedFields.length?(d(),n(U,{key:0,class:`plugin-details-table min-w-max h-full min-h-0`,role:`table`,items:S.value,"key-prop":`id`,"page-mode":!1,scroller:`fixed`,"item-size":36},{before:m(()=>[c(`div`,ke,[i.selectedFields.includes(`hookName`)?(d(),l(`div`,Ae,` Hook name `)):T(``,!0),i.selectedFields.includes(`module`)?(d(),l(`div`,je,[c(`button`,Me,[a[0]||=t(` Module `,-1),v(y(F),null,{popper:m(()=>[c(`div`,Pe,[(d(!0),l(_,null,e(f.value,e=>(d(),l(`label`,{key:e.name,title:e.description,class:`cursor-pointer module-type-filter border border-base rounded-md px2 py1 flex items-center gap-1 select-none`},[c(`input`,{type:`checkbox`,class:`mr1`,checked:h.value?.includes(e.name),onChange:t=>w(e)},null,40,Ie),c(`div`,{class:C([e.icon,`icon-catppuccin`])},null,2),c(`div`,Le,u(e.description||e.name),1)],8,Fe))),128))])]),default:m(()=>[c(`span`,Ne,[c(`i`,{class:C([`i-ph-funnel-duotone text-xs`,h.value.length===f.value.length?`op50`:`text-primary op100`])},null,2)])]),_:1})])])):T(``,!0),i.selectedFields.includes(`duration`)?(d(),l(`div`,Re,[c(`button`,{class:`flex flex-row gap1 items-center justify-center w-full`,onClick:D},[a[1]||=t(` Duration `,-1),c(`span`,ze,[c(`i`,{class:C([`text-xs`,[y(b)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,y(b)?`op100 text-primary`:`op50`]])},null,2)])])])):T(``,!0),i.selectedFields.includes(`startTime`)?(d(),l(`div`,Be,` Start Time `)):T(``,!0),i.selectedFields.includes(`endTime`)?(d(),l(`div`,Ve,` End Time `)):T(``,!0)])]),default:m(({item:e,index:t})=>[c(`div`,{role:`row`,class:C([`border-base border-b border-dashed flex flex-row h-9`,[t===S.value.length-1?`border-b-0`:``]])},[i.selectedFields.includes(`hookName`)?(d(),l(`div`,He,[v(B,{text:o[e.type]},null,8,[`text`])])):T(``,!0),i.selectedFields.includes(`module`)?(d(),l(`div`,Ue,[v(s,{id:e.module,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:i.root,link:O(e.graphModuleId)},null,8,[`id`,`cwd`,`link`])])):T(``,!0),i.selectedFields.includes(`duration`)?(d(),l(`div`,We,[v(K,{duration:e.duration},null,8,[`duration`])])):T(``,!0),i.selectedFields.includes(`startTime`)?(d(),l(`div`,Ge,u(y(X)(e.timestamp_start)),1)):T(``,!0),i.selectedFields.includes(`endTime`)?(d(),l(`div`,Ke,u(y(X)(e.timestamp_end)),1)):T(``,!0)],2)]),_:1},8,[`items`])):(d(),l(`div`,qe,[c(`div`,Je,[c(`div`,Ye,[i.selectedFields.length?(d(),l(`p`,Ze,` No data `)):(d(),l(`p`,Xe,` No columns selected `))])])]))}}}),[[`__scopeId`,`data-v-ba6a4bd9`]]),{__name:`DataPluginDetailsTable`}),$e={class:`p2 h-full w-full`},et={class:`flex border border-base rounded-2 h-full relative of-hidden`},tt={key:0,class:`of-hidden border-r border-base shrink-0 h-full min-h-0 flex flex-col`},nt={class:`px2 h10 border-b border-base bg-base rounded-t-2 flex items-center justify-end`},rt={class:`flex-1 h-full min-w-0 min-h-0 flex flex-col`},it={class:`flex items-center justify-between border-b border-base px2 h10 bg-base rounded-t-2 of-x-auto ws-nowrap`},at={class:`flex items-center h-full`},ot={key:0,class:`flex items-center justify-center gap1 h-full text-xs py1`},st={class:`op50 flex items-center gap-1`},ct=[`title`],lt={class:`text-xs op50`},ut={class:`flex-1 min-h-0 of-x-auto overscroll-contain`},dt=Object.assign(s({__name:`PluginFlow`,props:{modules:{},buildMetrics:{},root:{}},setup(e){let n=e,[i,a]=ue(!0),o=[{match:/hookName/,name:`hookName`,description:`Hook name`,icon:`i-ph-function-duotone`},{match:/module/,name:`module`,description:`Module`,icon:`i-ph-package-duotone`},{match:/duration/,name:`duration`,description:`Duration`,icon:`i-ph-clock-countdown-duotone`},{match:/startTime/,name:`startTime`,description:`Start Time`,icon:`i-ph-clock-duotone`},{match:/endTime/,name:`endTime`,description:`End Time`,icon:`i-ph-clock-duotone`}],s=r({selected:W.value.pluginDetailsTableFields,search:!1}),f=E(()=>W.value.pluginDetailsTableFields?W.value.pluginDetailsTableFields:o.map(e=>e.name)),{state:p,next:h}=he([`changed`,`unchanged`,`all`],{initialValue:W.value.pluginDetailsShowType}),g=E(()=>p.value===`all`?`Show Changed`:p.value===`changed`?`Show Unchanged`:`Show All`),_=E(()=>!(![`load`,`transform`].includes(W.value.pluginDetailSelectedHook)||!n.buildMetrics.calls?.filter(e=>e.type===W.value.pluginDetailSelectedHook).filter(e=>e.unchanged).length)),x=E(()=>{let e=n.buildMetrics.calls?.filter(e=>e.type===W.value.pluginDetailSelectedHook).filter(e=>e.unchanged),t=e.reduce((e,t)=>e+t.duration,0);return{count:e.length,duration:t}});b(()=>s.value.selected,e=>{W.value.pluginDetailsTableFields=e});function S(){h(),W.value.pluginDetailsShowType=p.value}return(n,r)=>{let p=Oe,h=Qe;return d(),l(`div`,$e,[c(`div`,et,[y(i)?(d(),l(`div`,tt,[v(p,{"build-metrics":e.buildMetrics},{header:m(()=>[c(`div`,nt,[c(`button`,{class:`w8 h8 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`,onClick:r[0]||=e=>y(a)(!1)},[...r[3]||=[c(`i`,{class:`i-ph-sidebar-simple-duotone inline-flex op50`},null,-1)]])])]),_:1},8,[`build-metrics`])])):T(``,!0),c(`div`,rt,[c(`div`,it,[c(`div`,at,[y(i)?T(``,!0):(d(),l(`button`,{key:0,class:`w8 h8 rounded-full cursor-pointer mr1 hover:bg-active flex items-center justify-center`,onClick:r[1]||=e=>y(a)(!0)},[...r[4]||=[c(`i`,{class:`i-ph-sidebar-duotone inline-flex op50`},null,-1)]])),v(Y,{modelValue:s.value,"onUpdate:modelValue":r[2]||=e=>s.value=e,"selected-container-class":`px0! py1 border-none bg-none flex-nowrap! h-full`,rules:o,class:`[&_[icon-catppuccin]]:filter-none! h-full border-none`},null,8,[`modelValue`])]),_.value?(d(),l(`div`,ot,[c(`p`,st,[v($,{number:x.value.count},null,8,[`number`]),r[5]||=t(` module unchanged, but cost `,-1),v(K,{duration:x.value.duration},null,8,[`duration`])]),c(`button`,{class:`rounded-md px2 py1 select-none h-full border border-base rounded-lg hover:bg-active`,title:g.value,onClick:S},[c(`div`,lt,u(g.value),1)],8,ct)])):T(``,!0)]),c(`div`,ut,[v(h,{modules:e.modules,"build-metrics":e.buildMetrics,"selected-fields":f.value,root:e.root},null,8,[`modules`,`build-metrics`,`selected-fields`,`root`])])])])])}}}),{__name:`FlowmapPluginFlow`}),ft={class:`flex gap-1 items-center flex-wrap`},pt={key:0,class:`i-ph-arrow-right-bold text-sm op-fade`},mt=[`onClick`],ht=s({__name:`ChartNavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(t,{emit:n}){let r=t,i=n,a=E(()=>{let e=[],t=r.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(t,n)=>(d(),l(`div`,ft,[(d(!0),l(_,null,e(a.value,(e,t)=>(d(),l(_,{key:e.id},[t>0?(d(),l(`div`,pt)):T(``,!0),c(`button`,{class:`hover:bg-active rounded px1`,onClick:t=>i(`select`,e)},[c(`span`,null,u(e.text||e.id),1)],8,mt)],64))),128))]))}}),gt={class:`grid grid-cols-[max-content_1fr] gap-2 p4`},_t={class:`flex flex-col gap-4`},vt={key:0,class:`grid grid-cols-[300px_1fr] gap-1`},yt=[`onClick`],bt={key:0,class:`flex gap2 items-center pl2 hover:bg-active`},xt={class:`font-mono text-sm`},St=[`onClick`],Ct=[`title`],wt=s({__name:`PluginsSunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(n,{emit:r}){let i=n,a=r,o=p(`el`);w(()=>o.value?.append(i.graph.el));function s(e){return ae(i.graph.options.getColor?.(e)||`#000`)}return(r,i)=>{let p=x(`tooltip`);return d(),l(`div`,gt,[c(`div`,{ref_key:`el`,ref:o,class:`w-500px`},null,512),c(`div`,_t,[v(ht,{class:`border-b border-base py2`,selected:n.selected,options:n.graph.options,onSelect:i[0]||=e=>a(`select`,e)},null,8,[`selected`,`options`]),n.selected?(d(),l(`div`,vt,[(d(!0),l(_,null,e(n.selected.children,e=>(d(),l(_,{key:e.id},[c(`button`,{class:`ws-nowrap text-nowrap text-left overflow-hidden text-ellipsis text-sm hover:bg-active rounded px2`,onClick:t=>a(`select`,e)},[e.meta?.type===`hook`?(d(),l(`div`,bt,[i[1]||=c(`i`,{class:`i-ph-function-duotone inline-flex`},null,-1),c(`span`,xt,u(e.text),1)])):h(r.$slots,`module`,{child:e},()=>[c(`span`,null,u(e.text||e.id),1)],void 0,1)],8,yt),c(`button`,{class:`relative flex gap-1 items-center hover:bg-active rounded`,onClick:t=>a(`select`,e)},[c(`div`,{class:`h-5 rounded shadow border border-base`,style:f({background:s(e),width:`${e.size/n.selected.size*100}%`})},null,4),v(K,{duration:e.size,class:`text-xs`},null,8,[`duration`]),e.children.length>0&&e.meta?.type!==`hook`?g((d(),l(`div`,{key:0,title:`${e.children.length} dependencies`,class:`text-xs op-fade`},[t(` (`+u(e.children.length)+`) `,1)],8,Ct)),[[p,`${e.children.length} dependencies`]]):T(``,!0)],8,St)],64))),128))])):T(``,!0)])])}}});function Tt(e){let{data:t,nameKey:n,sizeKey:s,rootText:c,nodeType:l,graphOptions:u,onUpdate:d}=e,f=i(void 0),p=i(void 0),m=r(void 0),h=i(void 0),g,_=E(()=>{if(e.tree)return e.tree.value;let r=y(t),i=new Map,a=0,o={id:`~root`,text:c,size:0,sizeSelf:0,children:[]};if(!r?.length)return{map:i,root:o,maxDepth:a};let u=[];u.unshift(()=>{o.size+=o.children.reduce((e,t)=>e+t.size,0),o.subtext=G(o.size).join(` `),o.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function d(e,t,n,r,o){if(i.has(t))return i.get(t);o>a&&(a=o);let s={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return i.set(t,s),r.children.push(s),u.unshift(()=>{let t=s.sizeSelf;s.size+=s.children.reduce((e,t)=>e+t.size,0),s.subtext=G(s.size).join(` `),s.children.length&&t/s.size>.1&&s.children.push({id:`${s.id}-self`,text:``,size:t,sizeSelf:t,subtext:G(t).join(` `),children:[],meta:{...e,path:``,type:l},parent:s}),s.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),s}function f(e){let t=e[n].split(`/`).filter(Boolean),r=o,a=``,c=0;t.forEach((o,u)=>{if(a+=(a?`/`:``)+o,c++,u===t.length-1){let t={id:e[n],text:o,size:e[s],sizeSelf:e[s],subtext:G(e[s]).join(` `),children:[],meta:{...e,path:o,type:l}};r.children.push(t),i.set(e[n],t)}else r=d(e,a,o,r,c)})}return r.forEach(f),u.forEach(e=>e()),{map:i,root:o,maxDepth:a}}),v=E(()=>({animate:W.value.chartAnimation,palette:{stroke:P.value?`#222`:`#555`,fg:P.value?`#fff`:`#000`,bg:P.value?`#111`:`#fff`},getColor:se(_.value.root,P.value?.8:.9,P.value?1:1.1),getSubtext:e=>e.subtext,...u}));function x(e,t){m.value=e?.meta,e?.children.length||(e=e?.parent),h.value?.select(e,t)}function S(){g?.(),p.value=_.value.root,d?.(),a(()=>{let e=m.value&&_.value.map.get(m.value[n])||null;e&&x(e,!1)}),g=()=>{h.value?.dispose(),h.value=void 0,m.value=void 0}}return a(()=>{b(()=>[_.value,v.value],()=>{S()},{deep:!0,immediate:!1}),S()}),o(()=>{g?.()}),{tree:_,chartOptions:v,graph:h,nodeHover:f,nodeSelected:p,selectedNode:m,selectNode:x,buildGraph:S}}var Et={key:1,class:`relative h-full w-full`},Dt={class:`bg-glass absolute left-2 top-2 z-panel-content p2 border border-base rounded-lg flex flex-col gap-2`},Ot={class:`font-mono px1`},kt={class:`text-xs font-mono flex items-center gap-3 ml2`},At={class:`flex gap-2`},jt={class:`of-auto h-full pt-30`},Mt={key:2,class:`flex items-center justify-center w-full h-full`},Nt={key:0,class:`border border-base rounded-lg shadow-lg px3 py2 bg-glass pointer-events-none text-sm max-w-80`},Pt={key:0,class:`flex items-center gap2`},Ft={key:0,class:`flex font-semibold font-mono text-base mb2`},It={key:1,class:`border-t border-base pt2 flex flex-col gap-1.5 min-w-48`},Lt={class:`flex justify-between items-center py1`},Rt=[`datetime`],zt={class:`flex justify-between items-center py1`},Bt=[`datetime`],Vt={class:`flex justify-between items-center py1 border-t border-base border-dashed pt2`},Ht={key:2},Ut=Object.assign(s({__name:`PluginDetailsLoader`,props:{plugin:{},query:{},modules:{},root:{}},emits:[`close`],setup(e,{emit:r}){let i=e,a=r,o=k(),{state:s,isLoading:f,execute:p}=fe(async()=>await o.value.call(`vite:inspect:get-plugin-details`,i.query,i.plugin),null),h=Q(()=>{p()},100);b(()=>[i.query.vite,i.query.env,i.plugin],()=>{p()}),ee(()=>{h()});let g=E(()=>{let e=new Set;return s.value?.calls?.filter(t=>e.has(t.module)?!1:(e.add(t.module),!0))??[]}),x=E(()=>s.value?.loadMetrics.reduce((e,t)=>e+t.duration,0)),S=E(()=>s.value?.transformMetrics.reduce((e,t)=>e+t.duration,0)),w=E(()=>s.value?.resolveIdMetrics.reduce((e,t)=>e+t.duration,0)),A=E(()=>s.value?.calls?.reduce((e,t)=>e+t.duration,0)),j=E(()=>i.modules.map(e=>({mod:e,path:ce(e.id,i.root),type:z(e.id)}))),M=E(()=>R.filter(e=>j.value.some(t=>e.match.test(t.mod.id))));function N(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}let P=E(()=>{let e=new Map;if(!s.value)return{root:t({id:`~root`,text:`Project`,children:[]}),map:new Map,maxDepth:3};function t(t,n){e.set(t.id,t);let r=ne(t,n,(e,t)=>(t?.meta?.duration??0)-(e?.meta?.duration??0));return r.children&&r.children.forEach(e=>{e.parent=r}),r}function n(e,n){let r=n.filter(e=>!M.value.some(t=>z(e.module).name===t.name));return[...M.value.map((r,i)=>{let a=n.filter(e=>z(e.module).name===r.name);return t({id:`${e}-${r.name}-${i}`,text:r.description,children:a.map((n,r)=>t({id:`${e}-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:r.description,id:`${e}-${r.name}-${i}`,duration:a.reduce((e,t)=>e+t.duration,0)}})}),t({id:`${e}-other`,text:`Other`,children:r.map((n,r)=>t({id:`${e}-other-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:`Other`,id:`${e}-other`,duration:r.reduce((e,t)=>e+t.duration,0)}})]}let r=n(`resolveId`,s.value.resolveIdMetrics),i=n(`loads`,s.value.loadMetrics),a=n(`transforms`,s.value.transformMetrics);function o(e,n,r){return t({id:e,text:n,children:r.sort((e,t)=>t.size-e.size),meta:{id:e,type:`hook`,title:n,duration:{"~loads":x.value,"~resolves":w.value,"~transforms":S.value}[e]}})}return{root:t({id:`~root`,text:`Project`,children:[o(`~resolves`,`Resolve Id`,r),o(`~loads`,`Load`,i),o(`~transforms`,`Transform`,a)]}),map:e,maxDepth:3}}),F=D(pe()),{tree:I,chartOptions:L,graph:B,nodeHover:V,nodeSelected:U,selectedNode:G,selectNode:q,buildGraph:Y}=Tt({data:[],tree:P,nameKey:`id`,sizeKey:`duration`,rootText:`Project`,graphOptions:{onClick(e){e&&(V.value=e),G.value=e?.meta},onHover(e){e&&(V.value=e),e===null&&(V.value=void 0)},onLeave(){V.value=void 0},onSelect(e){U.value=e||I.value.root,G.value=e?.meta},getSubtext(e){return H(e.size,!0)}},onUpdate(){B.value=new te(I.value.root,L.value)}});return b(()=>W.value.pluginDetailsViewType,()=>{Y()}),(r,i)=>{let o=O,p=dt,h=Z,b=ie;return d(),l(_,null,[y(f)?(d(),n(o,{key:0})):y(s)?.calls?.length?(d(),l(`div`,Et,[v(re,{class:`absolute right-2 top-1.5`,onClick:i[0]||=e=>a(`close`)}),c(`div`,Dt,[c(`div`,Ot,[v(J,{name:y(s)?.plugin_name},null,8,[`name`])]),c(`div`,kt,[v(K,{duration:w.value,class:`flex gap-1 items-center`,title:`Resolve Id hooks cost: ${y(H)(w.value,!0)}`},{default:m(()=>[...i[3]||=[c(`span`,{class:`i-ph-magnifying-glass-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),v(K,{duration:x.value,class:`flex gap-1 items-center`,title:`Load hooks cost: ${y(H)(x.value,!0)}`},{default:m(()=>[...i[4]||=[c(`span`,{class:`i-ph-upload-simple-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),v(K,{duration:S.value,class:`flex gap-1 items-center`,title:`Transform hooks cost: ${y(H)(S.value,!0)}`},{default:m(()=>[...i[5]||=[c(`span`,{class:`i-ph-magic-wand-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),i[7]||=c(`span`,{class:`op40`},`|`,-1),v(K,{duration:A.value,class:`flex gap-1 items-center`,title:`Total build cost: ${y(H)(A.value,!0)}`},{default:m(()=>[...i[6]||=[c(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),i[8]||=c(`span`,{class:`op40`},`|`,-1),v($,{number:g.value.length,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${g.value.length}`},null,8,[`number`,`title`]),i[9]||=c(`span`,{class:`op40`},`|`,-1),v($,{number:y(s)?.calls?.length??0,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${y(s)?.calls?.length??0}`},null,8,[`number`,`title`])]),c(`div`,At,[c(`button`,{class:C([y(W).pluginDetailsViewType===`flow`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:i[1]||=e=>y(W).pluginDetailsViewType=`flow`},[...i[10]||=[c(`div`,{class:`i-ph-git-branch-duotone rotate-180`},null,-1),t(` Build Flow `,-1)]],2),c(`button`,{class:C([y(W).pluginDetailsViewType===`sunburst`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:i[2]||=e=>y(W).pluginDetailsViewType=`sunburst`},[...i[11]||=[c(`div`,{"i-ph-chart-sunburst-duotone":``},null,-1),t(` Sunburst `,-1)]],2)])]),c(`div`,jt,[y(W).pluginDetailsViewType===`flow`?(d(),n(p,{key:0,modules:e.modules,"build-metrics":y(s),root:e.root},null,8,[`modules`,`build-metrics`,`root`])):T(``,!0),y(W).pluginDetailsViewType===`sunburst`&&y(B)?(d(),n(wt,{key:1,graph:y(B),selected:y(U),onSelect:y(q)},{module:m(({child:t})=>[v(h,{id:t.text,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:e.root,link:N(t.meta?.graphModuleId)},null,8,[`id`,`cwd`,`link`])]),_:1},8,[`graph`,`selected`,`onSelect`])):T(``,!0)])])):(d(),l(`div`,Mt,[...i[12]||=[c(`span`,{class:`italic op50`},` No data `,-1)]])),v(b,{"hover-x":F.x,"hover-y":F.y},{default:m(()=>[y(V)?(d(),l(`div`,Nt,[y(V).meta?.title?(d(),l(`div`,Pt,[t(u(y(V).meta.title)+` `,1),v(K,{duration:y(V).meta.duration},null,8,[`duration`])])):(d(),l(_,{key:1},[y(V).meta?.module?(d(),l(`div`,Ft,[v(h,{id:y(V).meta.module,cwd:e.root,link:!1},null,8,[`id`,`cwd`])])):T(``,!0),y(V).meta?.module?(d(),l(`div`,It,[c(`div`,Lt,[i[13]||=c(`label`,{class:`text-xs opacity-70`},`Start Time`,-1),c(`time`,{datetime:new Date(y(V).meta.timestamp_start).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},u(y(X)(y(V).meta.timestamp_start)),9,Rt)]),c(`div`,zt,[i[14]||=c(`label`,{class:`text-xs opacity-70`},`End Time`,-1),c(`time`,{datetime:new Date(y(V).meta.timestamp_end).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},u(y(X)(y(V).meta.timestamp_end)),9,Bt)]),c(`div`,Vt,[i[15]||=c(`label`,{class:`text-xs op70`},`Duration`,-1),v(K,{duration:y(V).meta.duration},null,8,[`duration`])])])):(d(),l(`div`,Ht,[v(K,{duration:y(V).meta?.duration},null,8,[`duration`])]))],64))])):T(``,!0)]),_:1},8,[`hover-x`,`hover-y`])],64)}}}),{__name:`DataPluginDetailsLoader`}),Wt={class:`flex flex-col gap-2 p4`},Gt={class:`flex pb2`},Kt={class:`w-8 text-right text-xs op50`},qt={class:`overflow-hidden text-ellipsis break-all line-clamp-2`},Jt=s({__name:`PluginsFlatList`,props:{plugins:{},itemSize:{},pageMode:{type:Boolean,default:!0},scroller:{default:`dynamic`}},setup(e){let t=M();return(n,r)=>(d(),l(`div`,Wt,[v(U,{items:e.plugins,"key-prop":`plugin_id`,"item-size":e.itemSize,"page-mode":e.pageMode,scroller:e.scroller},{default:m(({item:e})=>[c(`div`,Gt,[v(y(j),{to:{path:y(t).path,query:{plugin:e.plugin_id}},class:`font-mono border rounded border-base w-full px2 py1 text-sm hover:bg-active flex gap-4 items-center`},{default:m(()=>[c(`div`,Kt,` #`+u(e.plugin_id),1),c(`span`,qt,[v(J,{name:e.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`,`item-size`,`page-mode`,`scroller`])]))}}),Yt={key:1,class:`h-full flex flex-col gap-3 items-center justify-center p8 text-center`},Xt={class:`font-mono text-sm max-w-180 ws-pre-wrap`},Zt={key:2,class:`relative min-h-screen`},Qt={class:`sticky left-4 right-4 top-4 z-panel-nav p-4`},$t={class:`fixed bottom-4 py-1 px-2 bg-glass left-1/2 translate-x--1/2 border border-base rounded-full text-center text-xs`},en={class:`op50`},tn=s({__name:`plugins`,setup(e){let a=k(),o=M(),s=N(),f=i(null),p=i([]),m=r(!0),h=r(null),g=E(()=>typeof o.query.plugin==`string`?o.query.plugin:void 0),_=r({search:o.query.search||``,selected:o.query.plugin_types?te(o.query.plugin_types):null}),y=E(()=>f.value?.instances[0]),b=E(()=>y.value?.environments[0]||``),x=E(()=>y.value?.root||``),C=E(()=>!y.value?.vite||!b.value?null:{vite:y.value.vite,env:b.value}),w=E(()=>y.value?.plugins.map((e,t)=>I(e,t))??[]),D=E(()=>[...L.filter(e=>w.value.some(t=>e.match.test(t.name))),V]),j=E(()=>{let e=w.value;return _.value.selected&&(e=e.filter(e=>{let t=q(e.name);return _.value.selected.includes(t.name)})),e}),P=ge(()=>j.value,()=>new oe(j.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),F=E(()=>_.value.search?P.value.search(_.value.search).map(e=>e.item):j.value);de(_.value,e=>{s.replace({query:U({...o.query,search:e.search||void 0,plugin_types:e.selected||void 0})})},{debounce:500});function I(e,t){let n=e&&typeof e==`object`?e:{};return{plugin_id:t,name:typeof n.name==`string`?n.name:`plugin-${t}`,enforce:n.enforce===`pre`||n.enforce===`post`?n.enforce:void 0}}function R(){g.value&&s.replace({query:{...o.query,plugin:void 0}})}async function z(e={}){e.silent||(m.value=!0),h.value=null;try{f.value=await a.value.call(`vite:inspect:get-metadata`),C.value?p.value=(await a.value.call(`vite:inspect:get-modules-list`,C.value)).map(H):p.value=[]}catch(e){h.value=e}finally{e.silent||(m.value=!1)}}let B=Q(()=>{z({silent:!0})},100);function H(e){return{...e,imports:e.deps.map(e=>({module_id:e}))}}function te(e){return Array.isArray(e)?e.map(String):[String(e)]}function U(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}return S(()=>{z()}),ee(()=>{B()}),me(`Escape`,e=>{e.preventDefault(),!(!e.isTrusted||e.repeat)&&R()}),(e,r)=>{let i=O,a=Ut;return m.value?(d(),n(i,{key:0,text:`Loading plugins...`})):h.value?(d(),l(`div`,Yt,[r[3]||=c(`div`,{class:`i-ph-warning-duotone text-4xl text-amber`},null,-1),c(`div`,Xt,u(h.value.message),1),c(`button`,{class:`btn-action`,onClick:r[0]||=e=>z()},[...r[2]||=[c(`span`,{class:`i-ph-arrow-clockwise-duotone`},null,-1),t(` Retry `,-1)]])])):(d(),l(`div`,Zt,[c(`div`,Qt,[v(Y,{modelValue:_.value,"onUpdate:modelValue":r[1]||=e=>_.value=e,rules:D.value},null,8,[`modelValue`,`rules`])]),v(Jt,{plugins:F.value??[],scroller:`window`},null,8,[`plugins`]),c(`div`,$t,[c(`span`,en,u(F.value.length)+` of `+u(w.value.length||0),1)]),g.value&&C.value?(d(),l(`div`,{key:0,class:`fixed inset-0 backdrop-blur-8 backdrop-brightness-95 z-panel-content`,onClick:A(R,[`self`])},[(d(),l(`div`,{key:g.value,class:`fixed right-0 bottom-0 top-20 left-20 z-panel-content bg-glass border-l border-t border-base rounded-tl-xl`},[v(a,{plugin:g.value,query:C.value,modules:p.value,root:x.value,onClose:R},null,8,[`plugin`,`query`,`modules`,`root`])]))])):T(``,!0)]))}}});export{tn as default};
@@ -1 +0,0 @@
1
- import{$t as e,Dt as t,L as n,P as r,Qt as i,R as a,en as o,gt as s,i as c,nn as l}from"./V9lF8C-P.js";import{a as u,c as d,f,l as p,n as m,r as h,t as g}from"./NLJpu4QF.js";var _=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;function v(e){return _.test(e)}import.meta.url.replace(/\/app\/.*$/,`/`);var y=Symbol(`layout-meta`),b=Symbol(`route`),x=l({docsBase:e,reporters:o});function S(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function C(e,t,n=`.`,r){if(!S(t))return C(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:S(a)&&S(i[t])?i[t]=C(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function w(e){return(...t)=>t.reduce((t,n)=>C(t,n,``,e),{})}var T=w();function E(e,t){try{return t in e}catch{return!1}}var D=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:M(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=j(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function O(e){if(typeof e==`string`)return new D(e);if(k(e))return e;let t=new D(e.message??e.statusMessage??``,{cause:e.cause||e});if(E(e,`stack`))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=M(e.statusCode,t.statusCode):e.status&&(t.statusCode=M(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;j(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function k(e){return e?.constructor?.__h3_error__===!0}var A=/[^\u0009\u0020-\u007E]/g;function j(e=``){return e.replace(A,``)}function M(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var N=()=>c()?.$router;function P(e){let t=e.scope,n=s();for(;n;){if(n===t)return!0;n=n.parent}return!1}var F=(()=>{if(n()){let e=r();if(!e||P(e))return a(b,c()._route)}return c()._route});function I(e){return e}var L=()=>{try{if(c()._processingMiddleware)return!0}catch{return!1}return!1},R=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?z(e):N().resolve(e).href;if(t?.open){let{protocol:e}=new URL(n,window.location.href);if(e&&u(e))throw x.NUXT_E2002({toPath:n,protocol:e});let{target:r=`_blank`,windowFeatures:i={}}=t.open,a=[];for(let[e,t]of Object.entries(i))t!==void 0&&a.push(`${e.toLowerCase()}=${t}`);return open(n,r,a.join(`, `)),Promise.resolve()}let r=h(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw x.NUXT_E2001({toPath:n});let{protocol:e}=new URL(n,window.location.href);if(e&&u(e))throw x.NUXT_E2002({toPath:n,protocol:e})}let a=L();if(!i&&a){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=p(e);return{path:t,...n&&{query:d(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let o=N(),s=c();if(i)return s._scope.stop(),t?.replace?location.replace(n):location.href=n,a?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let l=typeof e==`string`?B(e):e;return t?.replace?o.replace(l):o.push(l)};function z(e){return f(e.path||``,e.query||{})+(e.hash||``)}function B(e){let t=p(e);return m(g(t.pathname))+t.search+t.hash}var V=`__nuxt_error`,H=()=>t(c().payload,`error`),U=e=>{let t=J(e);try{let e=H();c().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},W=(e,t)=>{let n=e.callHook(`app:error`,J(t));return i.NUXT_E1012({userAgent:navigator.userAgent,cause:t}),n},G=async(e,t)=>{if(v(navigator.userAgent)){await W(e,t);return}await e.runWithContext(()=>U(t))},K=async(e={})=>{let t=c(),n=H();t.callHook(`app:error:cleared`,e),e.redirect&&await N().replace(e.redirect),n.value=void 0},q=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,J=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=O(e);return Object.defineProperty(t,V,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};export{b as _,q as a,I as c,z as d,F as f,y as g,x as h,J as i,B as l,T as m,G as n,U as o,N as p,K as r,H as s,W as t,R as u,v};
@@ -1 +0,0 @@
1
- import{A as e,S as t,T as n,Xt as r,Y as i,dt as a,j as o}from"./V9lF8C-P.js";import{t as s}from"./FvQ1Jpsu.js";import{t as c}from"./SLYki7Hm.js";import{t as l}from"./BDNMzG2s.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 c({title:`${g.status} - ${g.statusText} | ${g.appName}`,script:[{innerHTML:`!function(){let e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(let e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(let t of e)if("childList"===t.type)for(let e of t.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;let r=function(e){let 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{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after,:before{--un-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration: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 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--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: }`}]}),(c,g)=>{let _=s;return i(),n(`div`,u,[t(`div`,d,[t(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(l.status)},null,8,f),t(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(l.statusText)},null,8,p),t(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(l.description)},null,8,m),t(`div`,h,[o(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:a(()=>[e(r(l.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-ba13c364`]]);export{g as default};