@vitejs/devtools-vite 0.8.3 → 0.9.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.
- package/dist/index.mjs +48 -71
- package/dist/nitro.json +3 -3
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/1OzoDyp-.js +1 -0
- package/dist/public/_nuxt/BD9RWFCr.js +1 -0
- package/dist/public/_nuxt/{BpcgOZ8f.js → BI2czHt6.js} +6 -5
- package/dist/public/_nuxt/BOY6uhyO.js +2 -0
- package/dist/public/_nuxt/{BDNMzG2s.js → BmP83cE4.js} +1 -0
- package/dist/public/_nuxt/CG20mqIK.js +9 -0
- package/dist/public/_nuxt/DZWKP7A0.js +2 -0
- package/dist/public/_nuxt/DhatuQj5.js +2 -0
- package/dist/public/_nuxt/DiR5oYyH.js +1 -0
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/906bbb79-70d6-4f08-8d21-7f4f73261f24.json +1 -0
- package/dist/public/_nuxt/ceT2ACMd.js +2 -0
- package/dist/public/_nuxt/entry.DkD6LOGS.css +1 -0
- package/dist/public/_nuxt/error-404.bD12eKH_.css +1 -0
- package/dist/public/_nuxt/error-500.CAuZFXRr.css +1 -0
- package/dist/public/index.html +1 -1
- package/package.json +13 -13
- package/dist/public/_nuxt/3I19oYXS.js +0 -1
- package/dist/public/_nuxt/B3GmGsvS.js +0 -2
- package/dist/public/_nuxt/B95zZTfe.js +0 -2
- package/dist/public/_nuxt/BHYBAU6o.js +0 -1
- package/dist/public/_nuxt/B_A1QLnD.js +0 -2
- package/dist/public/_nuxt/Cya-tyvy.js +0 -1
- package/dist/public/_nuxt/DEDqDK_N.js +0 -1
- package/dist/public/_nuxt/DbCy1lFc.js +0 -1
- package/dist/public/_nuxt/DsNyhCdQ.js +0 -1
- package/dist/public/_nuxt/DzOoRO9v.js +0 -1
- package/dist/public/_nuxt/GbHA8sGJ.js +0 -4
- package/dist/public/_nuxt/XWR6704C.js +0 -3
- package/dist/public/_nuxt/builds/meta/182d478f-b12f-4a7e-9193-974ad455ae4b.json +0 -1
- package/dist/public/_nuxt/entry.Dzmi34AE.css +0 -1
- package/dist/public/_nuxt/error-404.DX_MWdQh.css +0 -1
- package/dist/public/_nuxt/error-500.k6s4_nCY.css +0 -1
- package/dist/public/_nuxt/l8iGVs4x.js +0 -1
- package/dist/public/_nuxt/rpc.CVTFzytL.css +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
//# allFunctionsCalledOnLoad
|
|
2
|
+
import{$t as e,At as t,Bt as n,Ct as r,D as i,Dt as a,Et as o,G as s,Gt as c,H as l,Ht as u,It as d,J as f,Jt as p,K as m,Kt as h,Mt as g,Nt as _,Ot as v,Q as y,Qt as b,Rt as x,St as S,Tt as C,U as w,Ut as ee,V as te,Vt as T,W as E,Xt as ne,Y as D,Zt as O,_t as k,a as A,an as re,at as ie,b as j,bt as M,ct as N,dt as P,en as F,gt as ae,in as I,it as L,kt as oe,lt as R,mt as z,nn as B,ot as V,pt as H,q as se,qt as U,rn as W,st as G,tn as K,tt as ce,ut as q,vt as J,wt as le,xt as ue,yt as de,zt as Y}from"#entry";import{t as fe}from"./BmP83cE4.js";var pe=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)}},me=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 pe(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 he(e){let t=new me,n=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return n.cache=t,n}var ge=[{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`}],_e=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^[vV][iI][tT][eE]:|^rolldown:vite-resolve$/,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`}],ve={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},ye={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`},be=he(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of ge)if(t.match.test(e))return t;return ve}),xe=he(e=>{for(let t of _e)if(t.match.test(e))return t;return ye}),Se=[`title`],Ce=z({__name:`DisplayFileIcon`,props:{filename:{}},setup(e){let t=e,n=V(()=>be(t.filename));return(e,t)=>(a(),q(`div`,{class:B([`flex-none icon-catppuccin`,[n.value.icon]]),title:n.value.description||n.value.name},null,10,Se))}});function we(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return Te(n%360,t)}function Te(e,t=1){return`hsla(${e}, ${A.value?50:65}%, ${A.value?60:40}%, ${t})`}var Ee={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,rolldown:18,virtual:160,nuxt:140};function De(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in Ee){let n=Ee[e];return typeof n==`number`?Te(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return we(e,t)}var Oe=z({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=>k(`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: ${De(t[c-1])}`),r[c]?.push(`op50`)),t[c-2]===`node_modules`&&!s.startsWith(`.`)){let e=`color: ${De(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}}}),ke=[`textContent`],Ae=z({__name:`DisplayBadge`,props:{text:{},color:{type:[Boolean,Number],default:!0},as:{},size:{}},setup(e){let n=e,r=V(()=>!n.text||n.color===!1?{}:{color:typeof n.color==`number`?Te(n.color):we(n.text),background:typeof n.color==`number`?Te(n.color,.1):we(n.text,.1)}),i=V(()=>(n.size||`sm`)===`sm`?`px-1.5 text-11px leading-1.6em`:``);return(o,s)=>(a(),N(g(e.as||`span`),{class:B([`ws-nowrap rounded`,i.value]),style:I(r.value)},{default:T(()=>[t(o.$slots,`default`,{},()=>[G(`span`,{textContent:re(n.text)},null,8,ke)])]),_:3},8,[`class`,`style`]))}}),je={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function Me(e,t){let n=je.themes[e]||{},r;do r=n[t],r===void 0?n.$extend?n=je.themes[n.$extend]||{}:(n=null,r=je[t]):n=null;while(n);return r}function Ne(e){let t=[e],n=je.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=je.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function Pe(e){let t=[e],n=je.themes[e]||{};do n.$extend?(t.push(n.$extend),n=je.themes[n.$extend]||{}):n=null;while(n);return t}var Fe=(()=>{if(typeof window>`u`)return!1;let e=!1;try{let t=Object.defineProperty({},"passive",{get(){e=!0}});window.addEventListener(`test`,null,t)}catch{}return e})(),Ie=typeof window<`u`&&typeof navigator<`u`&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Le=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Re={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},ze={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function Be(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Ve(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var He=[],Ue=null,We={};function Ge(e){let t=We[e];return t||=We[e]=[],t}var Ke=function(){};typeof window<`u`&&(Ke=window.Element);function X(e){return function(t){return Me(t.theme,e)}}var qe=`__floating-vue__popper`,Je=()=>z({name:`VPopper`,provide(){return{[qe]:{parentPopper:this}}},inject:{[qe]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:X(`disabled`)},positioningDisabled:{type:Boolean,default:X(`positioningDisabled`)},placement:{type:String,default:X(`placement`),validator:e=>Le.includes(e)},delay:{type:[String,Number,Object],default:X(`delay`)},distance:{type:[Number,String],default:X(`distance`)},skidding:{type:[Number,String],default:X(`skidding`)},triggers:{type:Array,default:X(`triggers`)},showTriggers:{type:[Array,Function],default:X(`showTriggers`)},hideTriggers:{type:[Array,Function],default:X(`hideTriggers`)},popperTriggers:{type:Array,default:X(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:X(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:X(`popperHideTriggers`)},container:{type:[String,Object,Ke,Boolean],default:X(`container`)},boundary:{type:[String,Ke],default:X(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:X(`strategy`)},autoHide:{type:[Boolean,Function],default:X(`autoHide`)},handleResize:{type:Boolean,default:X(`handleResize`)},instantMove:{type:Boolean,default:X(`instantMove`)},eagerMount:{type:Boolean,default:X(`eagerMount`)},popperClass:{type:[String,Array,Object],default:X(`popperClass`)},computeTransformOrigin:{type:Boolean,default:X(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:X(`autoMinSize`)},autoSize:{type:[Boolean,String],default:X(`autoSize`)},autoMaxSize:{type:Boolean,default:X(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:X(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:X(`preventOverflow`)},overflowPadding:{type:[Number,String],default:X(`overflowPadding`)},arrowPadding:{type:[Number,String],default:X(`arrowPadding`)},arrowOverflow:{type:Boolean,default:X(`arrowOverflow`)},flip:{type:Boolean,default:X(`flip`)},shift:{type:Boolean,default:X(`shift`)},shiftCrossAxis:{type:Boolean,default:X(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:X(`noAutoFocus`)},disposeTimeout:{type:Number,default:X(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId??this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[qe]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){this.parentPopper?.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){this.$_hideInProgress||(this.shownChildren.size>0?this.pendingHide=!0:this.hasPopperShowTriggerHover&&this.$_isAimingPopper()?this.parentPopper&&(this.parentPopper.lockedChild=this,this.parentPopper.lockedChildTimer&&clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3)):(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)))},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(s({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(l({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(m({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(E({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(te({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{if(r.autoSize?.skip)return{};let i,a;return n.startsWith(`top`)||n.startsWith(`bottom`)?i=e.reference.width:a=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=i==null?null:`${i}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=a==null?null:`${a}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(se({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await w(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ue&&this.instantMove&&Ue.instantMove&&Ue!==this.parentPopper?(Ue.$_applyHide(!0),this.$_applyShow(!0)):t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){this.shownChildren.size>0?this.pendingHide=!0:(this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,this.$_scheduleTimer&&clearTimeout(this.$_scheduleTimer),this.isShown&&(Ue=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`)))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){this.$_disposeTimer&&clearTimeout(this.$_disposeTimer),this.$_scheduleTimer&&clearTimeout(this.$_scheduleTimer),this.skipTransition=e,this.isShown||(this.$_ensureTeleport(),await Ve(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...f(this.$_referenceNode),...f(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n<He.length;n++)t=He[n],t.showGroup!==e&&(t.hide(),t.$emit(`close-group`))}He.push(this),document.body.classList.add(`v-popper--some-open`);for(let e of Pe(this.theme))Ge(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit(`apply-show`),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ve(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(this.$_scheduleTimer&&clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Be(He,this),He.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of Pe(this.theme)){let t=Ge(e);Be(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}Ue===this&&(Ue=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),this.$_disposeTimer&&clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ve(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: ${this.container}`);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{(!this.isShown||this.$_hideInProgress)&&(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,Re,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Re,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,ze,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],ze,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,Fe?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(nt>=e.left&&nt<=e.right&&rt>=e.top&&rt<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=nt-et,n=rt-tt,r=e.left+e.width/2-et+(e.top+e.height/2)-tt+e.width+e.height,i=et+t*r,a=tt+n*r;return it(et,tt,i,a,e.left,e.top,e.left,e.bottom)||it(et,tt,i,a,e.left,e.top,e.right,e.top)||it(et,tt,i,a,e.right,e.top,e.right,e.bottom)||it(et,tt,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(Ie){let e=!Fe||{passive:!0,capture:!0};document.addEventListener(`touchstart`,e=>Ye(e,!0),e),document.addEventListener(`touchend`,e=>Z(e,!0),e)}else window.addEventListener(`mousedown`,e=>Ye(e,!1),!0),window.addEventListener(`click`,e=>Z(e,!1),!0);window.addEventListener(`resize`,$e)}function Ye(e,t){if(je.autoHideOnMousedown)Xe(e,t);else for(let t=0;t<He.length;t++){let n=He[t];try{n.mouseDownContains=n.popperNode().contains(e.target)}catch{}}}function Z(e,t){je.autoHideOnMousedown||Xe(e,t)}function Xe(e,t){let n={};for(let r=He.length-1;r>=0;r--){let i=He[r];try{let r=Array.from(i.shownChildren).some(t=>{let n=He.find(e=>e.randomId===t);return n&&n.popperNode().contains(e.target)}),a=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target)||r;i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&Ze(i,a,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&a){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let r=i.parentPopper;for(;r&&Ze(r,r.containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper}})}catch{}}}function Ze(e,t,n){return n.closeAllPopover||n.closePopover&&t||Qe(e,n)&&!t}function Qe(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function $e(){for(let e=0;e<He.length;e++)He[e].$_computePosition()}var et=0,tt=0,nt=0,rt=0;typeof window<`u`&&window.addEventListener(`mousemove`,e=>{et=nt,tt=rt,nt=e.clientX,rt=e.clientY},Fe?{passive:!0}:void 0);function it(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var at=z({extends:Je(),render(){var e;return k(`div`,{ref:`reference`,class:[`v-popper`,{"v-popper--shown":this.slotData.isShown}]},(e=this.$slots).default?.call(e,this.slotData))}}),ot=(e=`theme`)=>({computed:{themeClass(){return Ne(this[e])}}}),st=z({name:`VPopperContent`,mixins:[ot()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],mounted(){this.handleResize&&(this.$_resizeObserver=new ResizeObserver(()=>this.$emit(`resize`)),this.$_resizeObserver.observe(this.$refs.inner))},beforeUnmount(){var e;(e=this.$_resizeObserver)==null||e.disconnect()},methods:{toPx(e){return e!=null&&!Number.isNaN(e)?`${e}px`:null}},render(){var e;let{autoHide:t,classes:n,result:r,shown:i}=this;return k(`div`,{id:this.popperId,ref:`popover`,"data-allow-mismatch":``,class:[`v-popper__popper`,this.themeClass,n.popperClass,{"v-popper__popper--shown":i,"v-popper__popper--hidden":!i,"v-popper__popper--show-from":n.showFrom,"v-popper__popper--show-to":n.showTo,"v-popper__popper--hide-from":n.hideFrom,"v-popper__popper--hide-to":n.hideTo,"v-popper__popper--skip-transition":this.skipTransition,"v-popper__popper--arrow-overflow":r&&r.arrow.overflow,"v-popper__popper--no-positioning":!r}],style:r?{position:r.strategy,transform:`translate3d(${Math.round(r.x)}px,${Math.round(r.y)}px,0)`}:void 0,"aria-hidden":i||t?`false`:`true`,tabindex:t?0:void 0,"data-popper-placement":r?r.placement:void 0,onKeyup:e=>{e.key===`Escape`&&t&&this.$emit(`hide`)}},[k(`div`,{class:`v-popper__backdrop`,onClick:()=>t&&this.$emit(`hide`)}),k(`div`,{class:`v-popper__wrapper`,style:r?{transformOrigin:r.transformOrigin}:void 0},[k(`div`,{ref:`inner`,class:`v-popper__inner`},this.mounted?[k(`div`,(e=this.$slots).default?.call(e))]:void 0),k(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:r?{left:this.toPx(r.arrow.x),top:this.toPx(r.arrow.y)}:void 0},[k(`div`,{class:`v-popper__arrow-outer`}),k(`div`,{class:`v-popper__arrow-inner`})])])])}}),ct={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},lt=function(){};typeof window<`u`&&(lt=window.Element);var ut=z({name:`VPopperWrapper`,mixins:[ct,ot(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,lt,Boolean],default:void 0},boundary:{type:[String,lt],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}},render(){return k(at,{ref:`popper`,...this.$props,theme:this.finalTheme,targetNodes:this.getTargetNodes,popperNode:()=>this.$refs.popperContent.$el,class:[this.themeClass],onShow:()=>this.$emit(`show`),onHide:()=>this.$emit(`hide`),"onUpdate:shown":e=>this.$emit(`update:shown`,e),onApplyShow:()=>this.$emit(`apply-show`),onApplyHide:()=>this.$emit(`apply-hide`),onCloseGroup:()=>this.$emit(`close-group`),onCloseDirective:()=>this.$emit(`close-directive`),onAutoHide:()=>this.$emit(`auto-hide`),onResize:()=>this.$emit(`resize`)},{default:({popperId:e,isShown:t,shouldMountContent:n,skipTransition:r,autoHide:i,show:a,hide:o,handleResize:s,onResize:c,classes:l,result:u})=>{var d;return[(d=this.$slots).default?.call(d,{shown:t,show:a,hide:o}),k(st,{ref:`popperContent`,popperId:e,theme:this.finalTheme,shown:t,mounted:n,skipTransition:r,autoHide:i,handleResize:s,classes:l,result:u,onHide:o,onResize:c},{default:()=>{var e;return(e=this.$slots).popper?.call(e,{shown:t,hide:o})}})]}})}});function dt(e,t){return{...ut,name:e,vPopperTheme:t}}dt(`VDropdown`,`dropdown`);var ft=dt(`VMenu`,`menu`),pt=dt(`VTooltip`,`tooltip`),mt=Je();z({name:`VTooltipDirective`,mixins:[ct],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>Me(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Me(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}},render(){return k(mt,{ref:`popper`,...this.$attrs,theme:this.theme,targetNodes:this.targetNodes,popperNode:()=>this.$refs.popperContent.$el,onApplyShow:this.onShow,onApplyHide:this.onHide},{default:({popperId:e,isShown:t,shouldMountContent:n,skipTransition:r,autoHide:i,hide:a,handleResize:o,onResize:s,classes:c,result:l})=>k(st,{ref:`popperContent`,class:{"v-popper--tooltip-loading":this.loading},popperId:e,theme:this.theme,shown:t,mounted:n,skipTransition:r,autoHide:i,handleResize:o,classes:c,result:l,onHide:a,onResize:s},{default:()=>this.html?k(`div`,{innerHTML:this.finalContent}):k(`div`,{textContent:this.finalContent})})})}});var ht=/^[A-Za-z]:\//;function gt(e=``){return e&&e.replace(/\\/g,`/`).replace(ht,e=>e.toUpperCase())}var _t=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,vt=/^\/([A-Za-z]:)?$/;function yt(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var bt=function(...e){e=e.map(e=>gt(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:yt();i&&i.length!==0&&(t=`${i}/${t}`,n=St(i))}return t=xt(t,!n),n&&!St(t)?`/${t}`:t.length>0?t:`.`};function xt(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}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 St=function(e){return _t.test(e)},Ct=function(e,t){let n=bt(e).replace(vt,`$1`).split(`/`),r=bt(t).replace(vt,`$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(`/`)},wt={class:`overflow-hidden text-ellipsis break-all line-clamp-2`},Tt={class:`font-mono text-sm`},Et=Object.assign(z({__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 n=e,r=y(),i=typeof window>`u`?``:window.location.hash,o=V(()=>{if(!n.id)return``;let e=n.id.replace(/%2F/g,`/`);if(e.startsWith(`./`)||e.startsWith(`../`))return e;let t=n.cwd||``,r=t?Ct(t,e):e;return r.startsWith(`.`)||(r=`./${r}`),r.startsWith(`./`)||/^(?:\.\.\/){1,3}[^.]/.test(r)?r:e}),s=V(()=>`flex items-center`);return(c,l)=>(a(),N(g(e.link?K(D):`div`),{to:e.link?typeof e.link==`string`?e.link:{path:K(r).path,query:{...K(r).query,module:e.id,chunk:void 0},hash:K(i)}:void 0},{default:T(()=>[H(K(pt),{class:`my-auto text-sm font-mono block w-full`,triggers:[`hover`],delay:1200,disabled:e.disableTooltip||(n.id?.length||0)<30,placement:`bottom-start`},{popper:T(()=>[G(`span`,Tt,re(n.id),1)]),default:T(()=>[e.id?(a(),q(`div`,{key:0,class:B(s.value)},[e.icon?(a(),N(Ce,{key:0,filename:e.id,class:`mr1.5`},null,8,[`filename`])):R(``,!0),G(`span`,wt,[H(Oe,{path:o.value,minimal:e.minimal},null,8,[`path`,`minimal`])]),t(c.$slots,`default`),e.kind?(a(),N(Ae,{key:1,class:`ml1`,text:e.kind},null,8,[`text`])):R(``,!0)],2)):R(``,!0),G(`div`,null,[t(c.$slots,`detail`)])]),_:3},8,[`disabled`])]),_:3},8,[`to`]))}}),{__name:`DisplayModuleId`});function Dt(e){return e==null?`null`:typeof e==`function`?`a function`:`'${e}'`}function Ot(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 ${Dt(n)})`);return r}function kt(e,t,n){if(typeof n==`function`&&t==null)throw Error(`index is required when using a function keyField`);return Ot(e,t??0,n)}function At(e,t,n){return Ot(e,t,n)}function jt(e,t){return e.map((e,n)=>At(e,n,t))}function Mt(e,t,n){let r=[],i=[];for(let a=0;a<e.length;a++){let o=e[a],s=At(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 Nt(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]!==At(t[r],r,n))return!1;return!0}function Pt(e,t,n){if(!Nt(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 Ft(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 It(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 Lt(e){return e.flowMode&&e.direction===`vertical`&&!e.gridItems?`flow`:e.disableTransform?`position`:`transform`}function Rt(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 zt(t){return V(()=>e(t))}function Bt(t,n,r,i,a){let o=zt(t);return{el:V(()=>{let t=o.value.el;return e(n??t)}),before:V(()=>{let t=o.value.before;return e(r??t)}),after:V(()=>{let t=o.value.after;return e(i??t)}),scrollParent:V(()=>{let t=o.value.scrollParent;return e(t)}),callbacks:{onResize:()=>(a?.onResize??o.value.onResize)?.(),onVisible:()=>(a?.onVisible??o.value.onVisible)?.(),onHidden:()=>(a?.onHidden??o.value.onHidden)?.(),onUpdate:(e,t,n,r)=>(a?.onUpdate??o.value.onUpdate)?.(e,t,n,r)}}}var Vt={itemsLimit:1e3};function Ht(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 Wt(e,t,n){return t!==`horizontal`||!n||Ht(n)||getComputedStyle(n).direction!==`rtl`?e:Ut===`negative`?-e:e}function Gt(e,t,n){return Wt(e,t,n)}function Kt(e,t,n,r){let i=Gt(n,t,e),a=!!(r!=null&&r.smooth);Ht(e)?t===`vertical`?e.scrollTo({top:i,behavior:a?`smooth`:`auto`}):e.scrollTo({left:i,behavior:a?`smooth`:`auto`}):typeof e.scrollTo==`function`?e.scrollTo(t===`vertical`?{top:i,behavior:a?`smooth`:`auto`}:{left:i,behavior:a?`smooth`:`auto`}):t===`vertical`?e.scrollTop=i:e.scrollLeft=i}function qt(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 Jt=/auto|scroll/;function Yt(e,t){return e.parentNode===null?t:Yt(e.parentNode,[...t,e])}function Xt(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function Zt(e){return Xt(e,`overflow`)+Xt(e,`overflow-y`)+Xt(e,`overflow-x`)}function Qt(e){return Jt.test(Zt(e))}function $t(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return;if(e.parentNode===null)return document.scrollingElement||document.documentElement;let t=Yt(e.parentNode,[]);for(let e=0;e<t.length;e+=1)if(t[e]instanceof Element&&Qt(t[e]))return t[e];return document.scrollingElement||document.documentElement}function en(e,t){if(t)return t;if(!e)return;let n=$t(e);if(n)return typeof window<`u`&&window.document&&(n===window.document.documentElement||n===window.document.body)?window:n}var tn=!1;function nn(){return tn}if(typeof window<`u`){tn=!1;try{let e=Object.defineProperty({},"passive",{get(){tn=!0}});window.addEventListener(`test`,null,e)}catch{}}function rn(e){return typeof e==`number`?e:null}function an(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 on(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 sn=0,cn=[];function ln(e){for(let t=0;t<e.length;t++)e[t]}function un(e,t){return e&&typeof e==`object`?e[t]:void 0}function dn(e,t){return e.map(e=>un(e,t))}function fn(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 pn(e){let t=e;t._vs_styleStamp++}function mn(e){let t=e;t._vs_visibilityStamp++,t._vs_styleStamp++}function hn(e,t,n,r){if(n)for(let e of n)r(e);else for(let n=e;n<t;n++)r(n)}var gn=8,_n=1;function vn(t,n,i,a,o,s){let l=zt(t),u=Bt(l,n,i,a,o),d=V(()=>{let t=e(W().items);return ln(t),t}),f=U([]),m=U(0),h=U(0),g=U(0),_=U(!1),v=0,y=0,b=0,x=0,w=!1,ee=null,te=new Map,T=new Map,E=!1,ne=0,D=0,O=!1,k=null,A=null,re=null,ie=0,j=null,M=null,N=[],P=[],F=null,ae=null,I=null,L=!1,oe=!1,R=!1,z=new Set,B=U({}),H=[],se={accumulator:0};function W(){return l.value}function G(){return s?.pageMode??W().pageMode}let K=V(()=>e(W().enabled??!0)),ce=V(()=>en(u.el.value,u.scrollParent.value)),q=V(()=>{let e=d.value;return e.length>0&&typeof e[0]!=`object`}),J=V(()=>{let e=W();if(rn(e.itemSize)===null){let t=d.value,n=Array.from({length:t.length});se.accumulator=0,n[-1]=se;let r=e.minItemSize,i=B.value,a=q.value,o=1e4,s=0,c;for(let l=0,u=t.length;l<u;l++){let u=a?l:Ot(t[l],l,e.keyField);c=on(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,ie=o,n}return cn}),le=V(()=>f.value.filter(e=>(e._vs_visibilityStamp,e.nr.used)).sort((e,t)=>e.nr.index-t.nr.index)),de=V(()=>{let e=W(),t=q.value?null:e.keyField;return Mt(d.value,t,(t,n,r)=>an(t,n,e.itemSize,B.value[r],e.sizeField))});function fe(e=W()){return e.direction??`vertical`}function pe(e=W()){let t=fe(e),n=e.flowMode??!1;return n&&t!==`vertical`&&(oe||=(console.warn(`[vue-recycle-scroller] flowMode only supports vertical lists. Falling back to standard positioning.`),!0),n=!1),n&&e.gridItems&&(R||=(console.warn(`[vue-recycle-scroller] flowMode does not support gridItems. Falling back to standard positioning.`),!0),n=!1),Lt({direction:t,disableTransform:e.disableTransform??!1,flowMode:n,gridItems:e.gridItems})}function me(){f.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 he(e){let t=W();return B.value=Pt(e,d.value,q.value?null:t.keyField),Object.keys(B.value).length>0}function ge(e){let t=T.get(e);return t||(t=[],T.set(e,t)),t}function _e(e,t,n,r,i){let a=c({id:sn++,index:t,used:!0,key:r,type:i}),o=p({item:n,position:0,offset:0,nr:a,_vs_styleStamp:0,_vs_visibilityStamp:0});return e.push(o),o}function ve(e){let t=ge(e);if(t&&t.length){let e=t.pop();return e.nr.used=!0,mn(e),e}}function ye(e,t){let n=f.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 be(e){ye(e,f.value.length-1)}function xe(){let e=f.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 Se(e,t,n){let r=null;t<v?(r=n.activeStart+n.headInsertCount,n.headInsertCount++,n.activeCount++):t>=y&&(r=n.activeStart+n.activeCount,n.activeCount++),r!=null&&ye(e,r)}function Ce(e,t=!1){let n=e.nr.type;ge(n).push(e),e.nr.used=!1,e.position=W().hiddenPosition??-999999,mn(e),te.delete(e.nr.key),t&&be(e)}function we(){te.clear(),T.clear();for(let e=0,t=f.value.length;e<t;e++){let t=f.value[e];t&&Ce(t)}}function Te(e){let t=-1;return t=requestAnimationFrame(()=>{z.delete(t),e()}),z.add(t),t}function Ee(){for(let e of z)cancelAnimationFrame(e);z.clear()}function De(){k&&=(clearTimeout(k),null),A&&=(clearTimeout(A),null),re&&=(clearTimeout(re),null),ae&&=(clearTimeout(ae),null),I&&=(clearTimeout(I),null)}function Oe(){var e,t;K.value&&((t=(e=u.callbacks).onResize)==null||t.call(e),_.value&&Z(!1))}function ke(){if(!K.value)return;F&&!L&&Be();let e=W();if(!E){if(E=!0,k)return;let t=()=>Te(()=>{E=!1;let{continuous:t}=Z(!1,!0);t||(A&&clearTimeout(A),A=setTimeout(ke,e.updateInterval+100))});t(),e.updateInterval&&(k=setTimeout(()=>{k=null,E&&t()},e.updateInterval))}}function Ae(e,t){var n,r,i,a;K.value&&_.value&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?((r=(n=u.callbacks).onVisible)==null||r.call(n),Te(()=>{Z(!1)})):(a=(i=u.callbacks).onHidden)==null||a.call(i))}function je(){return ce.value??window}function Me(){let e=u.before.value;return e?fe(W())===`vertical`?e.scrollHeight:e.scrollWidth:0}function Ne(){let e=u.el.value;if(!e)return{start:0,end:0};let t=fe(W()),n=t===`vertical`,r;if(G()){let t=e.getBoundingClientRect(),i=n?t.height:t.width,a=ce.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:Wt(e.scrollLeft,t,e),end:Wt(e.scrollLeft,t,e)+e.clientWidth};return r}function Pe(){let e=u.el.value;if(!e)return{start:0,end:0};if(fe(W())===`vertical`){let t=Wt(e.scrollLeft,`horizontal`,e);return{start:t,end:t+e.clientWidth}}return{start:e.scrollTop,end:e.scrollTop+e.clientHeight}}function Fe(e,t,n,r){let i=Me(),a=e.start-r-i,o=e.end+r-i;return v>0&&a<=(n[v-1]?.accumulator??0)||v<t-1&&a>(n[v]?.accumulator??1/0)||y>1&&o<=(n[y-2]?.accumulator??0)||y<t&&o>(n[y-1]?.accumulator??1/0)}function Ie(e){let t=W(),n=rn(t.itemSize);return n===null?J.value[e]?.size||Number(t.minItemSize)||0:n}function Le(e){let t=W();return Rt(e,{direction:fe(t),mode:pe(t),itemSize:rn(t.itemSize),gridItems:t.gridItems,itemSecondarySize:t.itemSecondarySize})}function Re(e){let t=W(),n=t.gridItems||1,r=rn(t.itemSize);return e<=0?0:r===null?J.value[e-1]?.accumulator||0:Math.floor(e/n)*r}function ze(e){let t=W(),n=d.value.length,r=t.gridItems||1,i=rn(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);Re(t)<=e?(s=t,a=t+1):o=t-1}return s}function Be(){ae&&=(clearTimeout(ae),null),F=null}function Ve(){ae&&clearTimeout(ae),ae=setTimeout(()=>{F=null,ae=null},150)}function He(e,t){if(!e.length){Be();return}let n=Math.max(Ne().start-Me(),0),r=Math.min(ze(n),e.length-1),i=e[r],a=t?Ot(i,r,t):r,o=Me()+Re(r);F={key:a,offset:Ne().start-o}}function Ue(e){if(!F)return!1;let t=W(),n=jt(e??d.value,q.value?null:t.keyField).indexOf(F.key);if(n===-1)return Be(),!1;let r=Me()+Re(n)+F.offset,i=Ne().start;return Math.abs(r-i)<.5?!1:(L=!0,et(r),Te(()=>{L=!1}),!0)}function We(){if(Ge(),!K.value)return;let e=G()?je():u.el.value;e&&(j=e,j.addEventListener(`scroll`,ke,nn()?{passive:!0}:!1),G()&&e===window&&(M=e,M.addEventListener(`resize`,Oe)))}function Ge(){j&&=(j.removeEventListener(`scroll`,ke),null),M&&=(M.removeEventListener(`resize`,Oe),null)}function Ke(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 X(){let e=W(),t=rn(e.itemSize);if(!e.gridItems||t==null)return!1;let n=u.el.value;if(!n)return!1;let r=e.itemSecondarySize||t,i=fe(e)===`vertical`?n.clientWidth:n.clientHeight;return r*e.gridItems>i}function qe(e,t,n,r){if(Math.abs(e-t)!==1||t<0||t>=n)return e;let i=e>t?Re(t)+Ie(t):Re(t);return Math.abs(i-r)<=gn?t:e}function Je(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?Re(a)+Ie(a):Re(a);return Math.abs(o-r)<=gn?t:e}function Ye(e,t,n){let r={...e,visibleStartIndex:qe(e.visibleStartIndex,b,t,n.rawViewportStart),visibleEndIndex:Je(e.visibleEndIndex,x,t,n.rawViewportEnd,!1),startIndex:qe(e.startIndex,v,t,n.renderStart),endIndex:Je(e.endIndex,y,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 Z(e,t=!1){var n,r;if(!K.value)return{continuous:!0};let i=W(),a=rn(i.itemSize),o=i.gridItems||1,s=i.itemSecondarySize||a||0,c=ie,l=i.typeField,p=q.value?null:i.keyField,_=d.value,S=_.length,C=J.value,T=te,E=f.value,k=null,A=null,j,M,N,P,F,ae=a!==null||S===0||C[S-1]!=null;if(!S||!ae)!S||!ee?j=M=P=F=N=0:(j=Math.min(ee.startIndex,S),M=Math.min(ee.endIndex,S),P=Math.min(ee.visibleStartIndex,S),F=Math.min(ee.visibleEndIndex,S),N=C[S-1]?.accumulator??ee.totalSizeValue);else if(O)j=P=0,M=F=Math.min(i.prerender,_.length),N=0;else{let e=Ne(),n=Pe(),r=ne,l=D,d={...e},f={...n};if(t){let t=e.start-r;t<0&&(t=-t);let u=n.start-l;u<0&&(u=-u);let d=a===null&&Fe(e,S,C,i.buffer);if(!(a===null&&(t>=c||d)||a!==null&&t>=a)&&!(o>1&&a!=null&&u>=s))return{continuous:!0}}ne=e.start,D=n.start;let p=i.buffer;d.start-=p,d.end+=p,f.start-=p,f.end+=p;let m=0,h=u.before.value;h&&(m=h.scrollHeight,d.start-=m);let g=u.after.value;if(g){let e=g.scrollHeight;d.end+=e}let v=pe(i)===`flow`&&a===null&&!t&&w&&Math.abs(e.start-r)<=_n&&Math.abs(n.start-l)<=_n;if(a===null){let t,n=0,r=S-1,i=~~(S/2),a;do a=i,t=C[i]?.accumulator??0,t<d.start?n=i:i<S-1&&(C[i+1]?.accumulator??1/0)>d.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),j=i,N=C[S-1]?.accumulator??0,M=i;M<S&&(C[M]?.accumulator??0)<d.end;M++);for(M===-1?M=_.length-1:(M++,M>S&&(M=S)),P=j;P<S&&m+(C[P]?.accumulator??1/0)<d.start;P++);for(F=P;F<S&&m+(C[F]?.accumulator??0)<d.end;F++);if(v){let t=Ye({startIndex:j,endIndex:M,visibleStartIndex:P,visibleEndIndex:F},S,{rawViewportStart:e.start-m,rawViewportEnd:e.end-m,renderStart:e.start-p-m,renderEnd:e.end+p-m});j=t.startIndex,M=t.endIndex,P=t.visibleStartIndex,F=t.visibleEndIndex}ee={startIndex:j,endIndex:M,visibleStartIndex:P,visibleEndIndex:F,totalSizeValue:N}}else if(o>1){let e=Ke(S,o,a,s,d,f);k=e.renderedIndices,A=new Set(k),j=e.startIndex,M=e.endIndex,P=e.visibleStartIndex,F=e.visibleEndIndex,N=e.totalSize}else{j=~~(d.start/a*o);let e=j%o;j-=e,M=Math.ceil(d.end/a*o),P=Math.max(0,Math.floor((d.start-m)/a*o)),F=Math.floor((d.end-m)/a*o),j<0&&(j=0),M>S&&(M=S),P<0&&(P=0),F>S&&(F=S),N=Math.ceil(S/o)*a}}let I=typeof i.itemsLimit==`number`&&i.itemsLimit>0?i.itemsLimit:Vt.itemsLimit;(k?.length??M-j)>I&&Xe(),m.value=N,h.value=0,g.value=pe(i)===`flow`?N:0;let L,oe=j<=y&&M>=v,R=pe(i)===`flow`,z=R&&oe&&!e,B=null;if(!oe||e)we();else{let e=e=>{let t=E[e];t&&(L=t,L.nr.used&&((A?A.has(L.nr.index):L.nr.index>=j&&L.nr.index<M)||Ce(L,z)))};if(z){for(let t=E.length-1;t>=0;t--)e(t);B=xe()}else for(let t=0,n=E.length;t<n;t++)e(t)}let V,H,se=null,U=0;return hn(j,M,k,e=>{let t=C[e]&&C[e].size,n=a||t||ie||1;V=_[e];let r=p?Ot(V,e,p):e;L=T.get(r);let i=!1;if(L)L.item!==V&&(L.item=V),L.nr.used||console.warn(`Expected existing view's used flag to be true, got ${L.nr.used}`);else{if(H=V[l],L=ve(H),L){let t=L.nr.index!==e||L.nr.key!==r;L.item=V,L.nr.index=e,L.nr.key=r,L.nr.type!==H&&console.warn(`Reused view's type does not match pool's type`),t&&pn(L)}else L=_e(E,e,V,r,H);T.set(r,L),i=!0}a===null?(L.position=C[e-1]?.accumulator||0,L.offset=0):(L.position=Math.floor(e/o)*a,L.offset=e%o*s),B&&i&&Se(L,e,B),se??=L.position,U+=n}),R?(se==null?(h.value=0,g.value=N):(h.value=se,g.value=Math.max(0,N-se-U)),z||me()):(h.value=0,g.value=0),v=j,y=M,b=P,x=F,w=!0,i.emitUpdate&&((r=(n=u.callbacks).onUpdate)==null||r.call(n,j,M,P,F)),pe(i)!==`flow`&&(re&&clearTimeout(re),re=setTimeout(Qe,i.updateInterval+300)),{continuous:oe}}function Xe(){throw I=setTimeout(()=>{I=null,console.warn(`It seems the scroller element isn't scrolling, so it tries to render all the items at once.`,`Scroller:`,u.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 Ze(){if(X())return!1;let e=f.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 Qe(){if(K.value){if(pe()===`flow`){me();return}f.value.sort((e,t)=>e.nr.index-t.nr.index),Ze()&&(Z(!1),re&&clearTimeout(re))}}function $e(e,t){if(!K.value)return;let n=W(),r=fe(n),i=u.el.value;if(!i)return;let a=Math.max(0,Math.min(e,d.value.length-1)),o=Ne().start,s=qt(i,r,n.pageMode,ce.value),c=It(Re(a),Ie(a),o,s,t?.align,t?.offset??0);if(c==null)return;et(c,t);let l=rn(n.itemSize);if(n.gridItems&&l!=null){let e=u.el.value;if(!e)return;let i=n.gridItems,o=n.itemSecondarySize||l,s=a%i*o,c=r===`vertical`?`horizontal`:`vertical`,d=It(s,o,c===`horizontal`?Wt(e.scrollLeft,`horizontal`,e):e.scrollTop,c===`horizontal`?e.clientWidth:e.clientHeight,t?.align,t?.offset??0);d!=null&&Kt(e,c,d,t)}}function et(e,t){if(!K.value)return;let n=fe(W()),r=u.el.value;if(r){if(G()){let i=ce.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:Wt(n===`vertical`?s.scrollTop:s.scrollLeft,n,s),d=l[a]-c[a];Kt(o?window:s,n,e+u+d,t)}else Kt(r,n,e,t)}}let tt=W(),nt=d.value;return N=jt(nt,nt.length>0&&typeof nt[0]!=`object`?null:tt.keyField),P=dn(nt,tt.typeField),tt.cache&&he(tt.cache),K.value&&tt.prerender&&(O=!0,Z(!1)),tt.gridItems&&rn(tt.itemSize)==null&&console.error(`[vue-recycle-scroller] You must provide an itemSize when using gridItems`),C(()=>{K.value&&(We(),ue(()=>{O=!1,Z(!0),_.value=!0}))}),S(()=>{if(!K.value)return;let e=ne;typeof e==`number`&&ue(()=>{et(e)})}),r(()=>{De(),Ee(),Ge()}),Y(K,e=>{e?(We(),ue(()=>{Z(!0),_.value=!0})):(Ge(),De(),Ee(),_.value=!1)}),Y(()=>W().cache,e=>{K.value&&(he(e),Z(!0))}),Y(()=>e(W().items).slice(),(e,t)=>{if(!K.value)return;let n=W(),r=q.value?null:n.keyField,i=jt(e,r),a=dn(e,n.typeField),o=N,s=!fn(i,a,o,P);n.shift&&Ft(o,i)>0?He(t??[],r):Be(),N=i,P=a,Ue(e),Z(s)}),Y(()=>W().keyField,()=>{if(!K.value)return;let e=W(),t=q.value?null:e.keyField;N=jt(d.value,t),P=dn(d.value,e.typeField),Be(),Z(!0)}),Y(()=>W().typeField,()=>{if(!K.value)return;let e=W();P=dn(d.value,e.typeField),Be(),Z(!0)}),Y(G,()=>{K.value&&(Ge(),We(),Z(!1))}),Y(u.el,()=>{K.value&&(Ge(),We(),Z(!1))}),Y(ce,()=>{!K.value||!G()||(Ge(),We(),Z(!1))}),Y(J,()=>{K.value&&(Ue()&&Ve(),Z(!1))}),Y(()=>W().gridItems,()=>{K.value&&Z(!0)}),Y(()=>W().itemSecondarySize,()=>{K.value&&Z(!0)}),{pool:f,visiblePool:le,totalSize:m,startSpacerSize:h,endSpacerSize:g,ready:_,sizes:J,simpleArray:q,scrollToItem:$e,scrollToPosition:et,getScroll:Ne,findItemIndex:ze,getItemOffset:Re,getItemSize:Ie,getViewStyle:Le,cacheSnapshot:de,restoreCache:he,updateVisibleItems:Z,handleResize:Oe,handleVisibilityChange:Ae,sortViews:Qe}}var yn="[vue-virtual-scroller] `sizeDependencies` is deprecated and will be removed in the next major release. Dynamic item sizing uses ResizeObserver in modern browsers.",bn=!1;function xn(e){e==null||bn||(bn=!0,console.warn(yn))}function Sn(t,n,r,i){let a=null,o=null,s=null,c=!1,l=null,u=[],d=r.resizeObserver?()=>{}:r.onVscrollUpdate(_),f=V(()=>{let n=e(t);if(r.vscrollData.simpleArray){if(n.index==null)throw Error(`index is required when using simple-array mode with dynamic item measurement`);return n.index}return kt(n.item,n.index,r.vscrollData.keyField)}),p=V(()=>r.vscrollData.sizes[f.value]||0),m=V(()=>e(t).active&&r.vscrollData.active);function h(){m.value?o!==f.value&&(o=f.value,a=null,s=null,x(f.value)):a=f.value}function g(){e(t).watchData&&!r.resizeObserver?l=Y(()=>e(t).item,()=>{v()},{deep:!0}):l&&=(l(),null)}function _({force:e}){!m.value&&e&&(s=f.value),(a===f.value||e||!p.value)&&h()}function v(){h()}function y(e){r.undefinedMap[e]&&r.undefinedSizeCount.value--,r.undefinedMap[e]=void 0}function b(e,t){r.vscrollData.sizes[e]?y(e):t?(r.undefinedMap[e]||r.undefinedSizeCount.value++,r.undefinedMap[e]=!0):r.undefinedMap[e]&&(r.undefinedSizeCount.value--,r.undefinedMap[e]=!1)}function x(t){r.measureQueue.schedule(t,{read(){if(f.value!==t)return null;let r=e(n);return r?{width:r.offsetWidth,height:r.offsetHeight}:null},write(e){let{width:t,height:n}=e;S(t,n)},done(){o=null}})}function S(e,t){let n=~~(r.direction.value===`vertical`?t:e);n&&p.value!==n&&C(n)}function C(n){var a,o;y(f.value),r.vscrollData.sizes[f.value]=n,e(t).emitResize&&((o=(a=e(i))?.onResize)==null||o.call(a,f.value))}function w(){if(!r.resizeObserver||c)return;let t=e(n);t&&(r.resizeObserver.observe(t),t.$_vs_id=f.value,t.$_vs_onResize=te,c=!0)}function ee(){if(!r.resizeObserver||!c)return;let t=e(n);t&&(r.resizeObserver.unobserve(t),t.$_vs_onResize=void 0,c=!1)}function te(e,t,n){f.value===e&&S(t,n)}xn(e(t).sizeDependencies),u.push(Y(()=>e(t).watchData,()=>{g()})),u.push(Y(()=>e(t).sizeDependencies,e=>{xn(e),r.resizeObserver||v()},{deep:!0})),u.push(Y(f,(t,i)=>{let o=e(n);o&&(o.$_vs_id=t),y(i),b(t,m.value);let s=r.vscrollData.sizes[t];s?(y(t),c&&(r.vscrollData.sizes[t]=s)):(a=t,v())})),u.push(Y(m,e=>{b(f.value,e),r.resizeObserver?e?w():ee():e&&s===f.value&&h()})),g();function T(){m.value&&(h(),w())}function E(){r.measureQueue.cancel(f.value),d(),ee(),y(f.value);let t=e(n);t&&(t.$_vs_id=void 0,t.$_vs_onResize=void 0),l&&=(l(),null);for(let e of u)e();u.length=0}return{id:f,size:p,finalActive:m,updateSize:h,mount:T,unmount:E}}function Cn(){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 wn(e={}){let t=e.queueFlush??(e=>ue(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 l(e){a.delete(e)}return{schedule:c,cancel:l}}function Tn(e){for(let t=0;t<e.length;t++)e[t]}function En(e){return e.item}function Dn(e,t){return t.get(e)||e}function On(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 kn(e){return e._vs_styleStamp??0}function An(e){return e._vs_visibilityStamp??0}var jn=[`position`,`top`,`left`,`transform`,`willChange`,`visibility`,`pointerEvents`,`display`];function Mn(e){let t={};for(let n of jn)t[n]=e.style[n];return t}function Nn(e,t){for(let n of jn)e.style[n]=t[n]??``}function Pn(e,t,n){e.style[t]!==n&&(e.style[t]=n)}function Fn(e,t,n,r,i,a,o){if(!(`view`in t)){Nn(e,a);return}let s=e.tagName===`TR`,c=Lt(i?{direction:n,flowMode:!0}:{direction:n,disableTransform:r||s}),l=Rt(Dn(t.view,o),{direction:n,mode:c});Pn(e,`position`,String(l.position??``)),Pn(e,`top`,String(l.top??``)),Pn(e,`left`,String(l.left??``)),Pn(e,`transform`,c===`flow`||s?``:String(l.transform??``)),Pn(e,`willChange`,String(l.willChange??``)),Pn(e,`visibility`,String(l.visibility??``)),Pn(e,`pointerEvents`,String(l.pointerEvents??``)),Pn(e,`display`,String(l.display??``))}function In(e,t){return`view`in e&&!t}function Ln(e,t,n,r,i,a){if(`view`in e){let t=Dn(e.view,a);return{active:t.nr.used&&i,id:En(t).id}}return{active:t.active&&i,id:Hn(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:An(Dn(e.view,r))};let i=Dn(e.view,r);return{active:i.nr.used,direction:t,flowMode:n,legacy:!1,styleStamp:kn(i),position:In(e,n)?i.position:null,offset:In(e,n)?i.offset:null}}function zn(e,t){if(`view`in e){let n=Dn(e.view,t);return{item:En(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 Bn(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 Vn(e,t){e.onResize!==t.onResize&&(e.onResize=t.onResize)}function Hn(e,t,n,r){return n?r??null:kt(e,r,t)}function Un(t){let r=zt(t),i=0,a={},s=Cn(),c=!1,l,u=!1,d=[],f=null,m=null,g=null,_=new Set,y=[],b=h({active:!0,sizes:{},keyField:D().keyField,simpleArray:!1}),x=V(()=>{let t=e(D().items);return Tn(t),t}),C=V(()=>D().direction??`vertical`),w=V(()=>e(D().el)),te=V(()=>e(D().before)),T=V(()=>e(D().after)),E=new Map;function D(){return r.value}let O=V(()=>e(D().enabled??!0));function k(e){let t=-1;return t=requestAnimationFrame(()=>{_.delete(t),e()}),_.add(t),t}function A(){for(let e of _)cancelAnimationFrame(e);_.clear()}let re=wn({maxTasksPerFlush:6,overflowQueueFlush(e){k(e)}});typeof ResizeObserver<`u`&&(l=new ResizeObserver(e=>{k(()=>{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 ie={vscrollData:b,resizeObserver:l,measureQueue:re,direction:C,undefinedMap:a,undefinedSizeCount:{get value(){return i},set value(e){i=e}},onVscrollUpdate(e){let t=t=>{e(t)};return s.on(`vscroll:update`,t),()=>s.off(`vscroll:update`,t)}};v(`vscrollData`,b),v(`vscrollParent`,{get $_undefinedSizes(){return i},set $_undefinedSizes(e){i=e},get $_undefinedMap(){return a},set $_undefinedMap(e){a=e},$_events:s,direction:C}),v(`vscrollResizeObserver`,l),v(`vscrollMeasurementContext`,ie),v(`vscrollAnchorRegistry`,{delete(e){E.delete(e)},set(e,t){E.set(e,t)}});let j=V(()=>{let e=x.value;return e.length>0&&typeof e[0]!=`object`}),M=ne(0),N=ne(y);n(()=>{if(!O.value)return;let e=m||!w.value?null:P(w.value.scrollTop,y),t=D().keyField,n=j.value,r=b.sizes,i=x.value,o=i.length,s=y.length!==o,c=y.length!==o;for(let e=0;e<o;e++){let o=i[e],l=n?e:Ot(o,e,t),u=r[l];typeof u>`u`&&!a[l]&&(u=0);let d=y[e];d?(d.item!==o&&(d.item=o,s=!0,c=!0),d.id!==l&&(d.id=l,s=!0,c=!0),d.size!==u&&(d.size=u,s=!0)):(d=p({item:o,id:l,size:u}),y[e]=d,s=!0,c=!0)}y.length!==o&&(y.length=o,s=!0,c=!0),s&&(f=e,M.value++,c?N.value=y.slice():F(N))});function P(e,t){if(!t.length)return null;let n=D().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 ae=D();d=jt(x.value,j.value?null:ae.keyField),ae.cache&&(b.sizes=Pt(ae.cache,x.value,j.value?null:ae.keyField));function I(){var e,t;(t=(e=D()).onHidden)==null||t.call(e)}function L(e,t,n,r){var i,a;(a=(i=D()).onUpdate)==null||a.call(i,e,t,n,r)}let oe=h({get enabled(){return O.value},get items(){return N.value},get keyField(){return`id`},get direction(){return C.value},get itemSize(){return null},get gridItems(){},get itemSecondarySize(){},get minItemSize(){return D().minItemSize},get sizeField(){return`size`},get typeField(){return`type`},get buffer(){return D().buffer??200},get pageMode(){return D().pageMode??!1},get shift(){return!1},get cache(){return D().cache},get prerender(){return D().prerender??0},get emitUpdate(){return D().emitUpdate??!1},get disableTransform(){return D().disableTransform??!1},get flowMode(){return D().flowMode??!1},get hiddenPosition(){return D().hiddenPosition},get updateInterval(){return D().updateInterval??0},get el(){return w.value},get before(){return te.value},get after(){return T.value},get scrollParent(){return D().scrollParent},get onResize(){return R},get onVisible(){return z},get onHidden(){return I},get onUpdate(){return L}});function R(){var e,t;ve(),(t=(e=D()).onResize)==null||t.call(e)}function z(){var e,t;s.emit(`vscroll:update`,{force:!1}),(t=(e=D()).onVisible)==null||t.call(e)}let B=vn(oe),H=new WeakMap,se=new WeakMap,U=ne([]);function W(e){let t=D();return Rt(Dn(e,H),{direction:C.value,mode:Lt({direction:C.value,disableTransform:t.disableTransform??!1,flowMode:t.flowMode??!1})})}function G(e){let t=se.get(e);return t||(t=On(e),se.set(e,t),H.set(t,e)),t}n(()=>{let e=B.pool.value,t=e.length,n=U.value,r=n.length!==t;for(let i=0;i<t;i++){let t=G(e[i]);n[i]!==t&&(n[i]=t,r=!0)}n.length!==t&&(n.length=t,r=!0),r&&F(U)});let K=V(()=>B.visiblePool.value.map(G)),ce=new WeakMap;function q(){g!=null&&(cancelAnimationFrame(g),_.delete(g),g=null)}function J(){q(),m=null}function de(){m==null||g!=null||(g=k(()=>{g=null,he()}))}function fe(){let e=w.value;if(!e)return null;let t=e.getBoundingClientRect(),n=null;for(let[e,r]of E.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 pe(e){let t=w.value;if(!t){J();return}let n=t.scrollTop,r=Math.min(B.findItemIndex(n),e.length-1),i=e[r];if(i==null){J();return}let a=fe();m={logicalKey:i,logicalOffset:n-B.getItemOffset(r),pendingKeys:new Set,stableFrames:0,visualKey:a?.key??null,visualOffset:a?.offset??0}}function me(e){let t=w.value;return!t||Math.abs(t.scrollTop-e)<.5?!1:(u=!0,t.scrollTop=e,B.updateVisibleItems(!0),t.dispatchEvent(new Event(`scroll`)),k(()=>{u=!1}),!0)}function he(){let e=m,t=w.value;if(!e||!t)return;let n=N.value.findIndex(t=>t.id===e.logicalKey);if(n===-1){J();return}let r=!1;if(r=me(B.getItemOffset(n)+e.logicalOffset)||r,!r&&e.visualKey!=null)for(let[n,i]of E.entries()){if(!i.active||i.id!==e.visualKey||getComputedStyle(n).visibility===`hidden`)continue;let a=n.getBoundingClientRect().top-t.getBoundingClientRect().top-e.visualOffset;r=me(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){J();return}}else e.stableFrames=0;de()}function ge(e,t,n,r){let i=ee(),a=ne(t),o=p({...n}),s=p({onResize:n.onResize}),c=ne(e),l=i.run(()=>(Y(()=>Ln(a.value,o,D().keyField,b.simpleArray,b.active,H),()=>{let e=c.value;if(e){let t=Ln(a.value,o,D().keyField,b.simpleArray,b.active,H),n=t.id;n!=null&&E.set(e,{active:t.active,id:n})}},{immediate:!0}),Y(()=>Rn(a.value,C.value,D().flowMode??!1,H),()=>{let e=c.value;e&&Fn(e,a.value,C.value,D().disableTransform??!1,D().flowMode??!1,r,H)},{immediate:!0}),Sn(o,c,ie,s)));l.mount(),ce.set(e,{binding:a,scope:i,options:o,callbacks:s,el:c,controller:l,restoreStyles:r})}let _e={mounted(e,t){if(!O.value)return;let n=Mn(e);ge(e,t.value,zn(t.value,H),n)},updated(e,t){if(!O.value)return;let n=ce.get(e),r=zn(t.value,H);if(!n){let n=Mn(e);ge(e,t.value,r,n);return}let i=n.binding.value!==t.value;i&&(n.binding.value=t.value),Bn(n.options,r),Vn(n.callbacks,r),n.el.value!==e&&(n.el.value=e),i&&Fn(e,t.value,C.value,D().disableTransform??!1,D().flowMode??!1,n.restoreStyles,H)},unmounted(e){let t=ce.get(e);t&&(t.controller.unmount(),t.scope.stop(),Nn(e,t.restoreStyles),E.delete(e),ce.delete(e))}};function ve(e=!1){O.value&&((e||j.value)&&(b.sizes={}),s.emit(`vscroll:update`,{force:!0}))}function ye(e,t){B.scrollToItem(e,t)}function be(e){let t=D();return b.sizes=Pt(e,x.value,j.value?null:t.keyField),B.restoreCache(e)}function xe(e,t){let n=D(),r=t??x.value.indexOf(e),i=j.value?r:kt(e,r>=0?r:t,n.keyField);return b.sizes[i]||0}function Se(){if(!O.value)return;let e=w.value;e&&(c||(c=!0,ue(()=>{e.scrollTop=e.scrollHeight+5e3;let t=()=>{e.scrollTop=e.scrollHeight+5e3,k(()=>{e.scrollTop=e.scrollHeight+5e3,i===0?c=!1:k(t)})};k(t)})))}function Ce(){m&&!u&&J()}return Y(()=>x.value.slice(),(e,t)=>{if(!O.value)return;let n=D(),r=j.value?null:n.keyField,i=jt(e,r);if(n.shift){let e=t?jt(t,r):d,n=Ft(e,i);n>0?(pe(e),m&&(m.pendingKeys=new Set(i.slice(0,n)),m.stableFrames=0,ue(()=>{m&&he()}))):J()}else J();d=i,ve()},{flush:`sync`}),Y(()=>D().cache,e=>{O.value&&e&&be(e)}),Y(()=>D().keyField,e=>{O.value&&(b.keyField=e,d=jt(x.value,j.value?null:e),J(),ve(!0))},{flush:`sync`}),Y(j,e=>{b.simpleArray=e},{immediate:!0}),Y(()=>D().direction,()=>{O.value&&(J(),ve(!0))}),Y(w,(e,t)=>{t?.removeEventListener(`scroll`,Ce),O.value&&e?.addEventListener(`scroll`,Ce)},{immediate:!0}),Y(O,e=>{let t=w.value;e?(t?.addEventListener(`scroll`,Ce),ve()):(t?.removeEventListener(`scroll`,Ce),q(),A(),J())}),Y(M,()=>{if(!O.value)return;let e=w.value;if(!e)return;if(m){he();return}let t=f;if(f=null,!t)return;let n=N.value.findIndex(e=>e.id===t.key);if(n===-1)return;let r=B.getItemOffset(n)+t.offset;r-e.scrollTop!==0&&(e.scrollTop=r)},{flush:`post`}),S(()=>{b.active=!0}),le(()=>{b.active=!1}),o(()=>{var e;q(),A(),(e=w.value)==null||e.removeEventListener(`scroll`,Ce),s.clear()}),{vscrollData:b,itemsWithSize:N,resizeObserver:l,measurementContext:ie,vDynamicScrollerItem:_e,...B,pool:U,visiblePool:K,simpleArray:j,forceUpdate:ve,scrollToItem:ye,restoreCache:be,getItemSize:xe,getViewStyle:W,scrollToBottom:Se,onScrollerResize:R,onScrollerVisible:z}}var Wn=new WeakMap;function Gn(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 Kn(e,t){qn(e);let n=Gn(t.value);if(Wn.set(e,n),typeof IntersectionObserver>`u`){let t=e.getBoundingClientRect();n.visible=!0,n.callback(!0,{boundingClientRect:t})}else 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 qn(e){let t=Wn.get(e);t!=null&&t.observer&&(t.observer.disconnect(),t.observer=null)}var Jn={mounted(e,t){Kn(e,t)},updated(e,t){t.value!==t.oldValue&&Kn(e,t)},unmounted(e){qn(e),Wn.delete(e)}},Yn=z({__name:`ItemView`,props:{view:{},itemTag:{}},setup(e){let n=e;return(e,r)=>(a(),N(g(n.itemTag),{class:`vue-recycle-scroller__item-view`},{default:T(()=>[t(e.$slots,`default`,{item:n.view.item,index:n.view.nr.index,active:n.view.nr.used})]),_:3}))}}),Xn=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})(z({__name:`ResizeObserver`,emits:[`notify`],setup(e,{emit:t}){let n=t,i=U(),o=null,s=null;function c(){n(`notify`)}return C(()=>{let e=i.value?.parentElement;if(e){if(typeof ResizeObserver<`u`){o=new ResizeObserver(()=>{c()}),o.observe(e);return}s=()=>c(),window.addEventListener(`resize`,s)}}),r(()=>{o&&=(o.disconnect(),null),s&&=(window.removeEventListener(`resize`,s),null)}),(e,t)=>(a(),q(`div`,{ref_key:`el`,ref:i,class:`vue-recycle-scroller__resize-observer`,"aria-hidden":`true`},null,512))}}),[[`__scopeId`,`data-v-08cc04ab`]]),Zn=z({__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},itemsLimit:{default:void 0},skipHover:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},listClass:{default:``},itemClass:{default:``}},emits:[`resize`,`visible`,`hidden`,`update`,`scrollStart`,`scrollEnd`],setup(e,{expose:n,emit:r}){let i=e,o=r,s=Jn,c=U(),l=U(),d=U(),f=U(null),p=O(i,`items`),{pool:m,visiblePool:h,totalSize:v,startSpacerSize:y,endSpacerSize:b,ready:x,scrollToItem:S,scrollToPosition:C,getScroll:w,findItemIndex:ee,getItemOffset:te,getItemSize:E,getViewStyle:ne,cacheSnapshot:D,restoreCache:k,updateVisibleItems:A,handleResize:re,handleVisibilityChange:ie}=vn(V(()=>({items:p,el:c,before:l,after:d,keyField:i.keyField,direction:i.direction,itemSize:i.itemSize,gridItems:i.gridItems,itemSecondarySize:i.itemSecondarySize,minItemSize:i.minItemSize,sizeField:i.sizeField,typeField:i.typeField,buffer:i.buffer,pageMode:i.pageMode,scrollParent:i.scrollParent,shift:i.shift,cache:i.cache,prerender:i.prerender,emitUpdate:i.emitUpdate,disableTransform:i.disableTransform,flowMode:i.flowMode,hiddenPosition:i.hiddenPosition,updateInterval:i.updateInterval,itemsLimit:i.itemsLimit,enabled:i.enabled,onResize:()=>o(`resize`),onVisible:()=>o(`visible`),onHidden:()=>o(`hidden`),onUpdate:(e,t,n,r)=>{o(`update`,e,t,n,r),n<=0&&o(`scrollStart`),r>=i.items.length-1&&o(`scrollEnd`)}}))),j=V(()=>Lt({direction:i.direction,disableTransform:i.disableTransform,flowMode:i.flowMode,gridItems:i.gridItems})===`flow`),P=V(()=>({height:`${y.value}px`})),F=V(()=>({height:`${b.value}px`}));function ae(e){f.value=e}function z(){f.value=null}let se=V(()=>{let e={[i.direction===`vertical`?`minHeight`:`minWidth`]:`${v.value}px`},t=rn(i.itemSize);if(i.gridItems&&t!=null){let n=(i.itemSecondarySize||t)*i.gridItems;e[i.direction===`vertical`?`minWidth`:`minHeight`]=`${n}px`}return e});return n({el:c,visiblePool:h,startSpacerSize:y,endSpacerSize:b,scrollToItem:S,scrollToPosition:C,getScroll:w,findItemIndex:ee,getItemOffset:te,getItemSize:E,cacheSnapshot:D,restoreCache:k,updateVisibleItems:A}),(e,n)=>u((a(),q(`div`,{ref_key:`el`,ref:c,class:B([`vue-recycle-scroller`,{"grid-mode":i.gridItems,"flow-mode":j.value,ready:K(x),"page-mode":i.pageMode,[`direction-${i.direction}`]:!0}])},[e.$slots.before?(a(),q(`div`,{key:0,ref_key:`before`,ref:l,class:`vue-recycle-scroller__slot`},[t(e.$slots,`before`)],512)):R(``,!0),(a(),N(g(i.listTag),{style:I(se.value),class:B([`vue-recycle-scroller__item-wrapper`,i.listClass])},{default:T(()=>[j.value&&K(y)>0?(a(),N(g(i.itemTag),{key:0,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:I(P.value)},null,8,[`style`])):R(``,!0),(a(!0),q(L,null,oe(K(m),n=>(a(),N(Yn,M({key:n.nr.id,view:n,"item-tag":i.itemTag,style:K(x)?K(ne)(n):null,class:[`vue-recycle-scroller__item-view`,[i.itemClass,{hover:!i.skipHover&&f.value===n.nr.key}]]},_(i.skipHover?{}:{mouseenter:()=>{ae(n.nr.key)},mouseleave:()=>{z()}})),{default:T(n=>[t(e.$slots,`default`,M({ref_for:!0},n))]),_:2},1040,[`view`,`item-tag`,`style`,`class`]))),128)),j.value&&K(b)>0?(a(),N(g(i.itemTag),{key:1,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:I(F.value)},null,8,[`style`])):R(``,!0),i.items.length===0?t(e.$slots,`empty`,{key:2}):R(``,!0)]),_:3},8,[`style`,`class`])),e.$slots.after?(a(),q(`div`,{key:1,ref_key:`after`,ref:d,class:`vue-recycle-scroller__slot`},[t(e.$slots,`after`)],512)):R(``,!0),H(Xn,{onNotify:K(re)},null,8,[`onNotify`])],2)),[[K(s),K(ie)]])}}),Qn=z({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:n,emit:r}){let i=e,o=r,s=U(),c=O(i,`items`),l=V(()=>{let e=s.value?.el;return e&&typeof e==`object`&&`value`in e?e.value:e}),{itemsWithSize:u,forceUpdate:d,startSpacerSize:f,endSpacerSize:p,scrollToItem:m,scrollToPosition:h,findItemIndex:g,getItemOffset:_,getItemSize:v,cacheSnapshot:y,restoreCache:b,scrollToBottom:x,onScrollerResize:S,onScrollerVisible:C}=Un(V(()=>({items:c,keyField:i.keyField,direction:i.direction,minItemSize:i.minItemSize,shift:i.shift,cache:i.cache,flowMode:i.flowMode,hiddenPosition:i.hiddenPosition,enabled:i.enabled,pageMode:i.pageMode,scrollParent:i.scrollParent,el:l.value,onResize:()=>o(`resize`),onVisible:()=>o(`visible`)})));function w(e,t,n){return{item:e.item,index:t,active:n,itemWithSize:e}}return n({startSpacerSize:f,endSpacerSize:p,scrollToItem:m,scrollToPosition:h,findItemIndex:g,getItemOffset:_,scrollToBottom:x,getItemSize:v,cacheSnapshot:y,restoreCache:b,forceUpdate:d}),(e,n)=>(a(),N(Zn,M({ref_key:`scroller`,ref:s,items:K(u),"min-item-size":i.minItemSize,direction:i.direction,cache:i.cache,"disable-transform":i.disableTransform,"flow-mode":i.flowMode,"hidden-position":i.hiddenPosition,enabled:i.enabled,"page-mode":i.pageMode,"scroll-parent":i.scrollParent,"key-field":`id`,"list-tag":i.listTag,"item-tag":i.itemTag},e.$attrs,{onResize:K(S),onVisible:K(C)}),P({default:T(({item:n,index:r,active:i})=>[t(e.$slots,`default`,W(ae(w(n,r,i))))]),empty:T(()=>[t(e.$slots,`empty`)]),_:2},[e.$slots.before?{name:`before`,fn:T(()=>[t(e.$slots,`before`)]),key:`0`}:void 0,e.$slots.after?{name:`after`,fn:T(()=>[t(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 $n(t,n,i){let a=J(`vscrollMeasurementContext`),o=J(`vscrollAnchorRegistry`,null),s=V(()=>{let r=e(t).el;return e(n??r)}),c={onResize:n=>(i?.onResize??e(t).onResize)?.(n)},l=V(()=>e(e(t).enabled??!0)),u=Sn(t,s,a,c),d=!1;function f(){d||=(u.mount(),!0)}function p(){d&&=(u.unmount(),!1)}return C(()=>{l.value&&f()}),Y(l,e=>{if(e)f();else{let e=s.value;o&&e&&o.delete(e),p()}}),o&&Y([u.id,u.finalActive,s,l],([e,t,n,r],[i,a,s])=>{s&&s!==n&&o.delete(s),r&&n&&o.set(n,{active:t,id:e})},{immediate:!0}),r(()=>{let e=s.value;o&&e&&o.delete(e),p()}),{id:u.id,size:u.size,finalActive:u.finalActive,updateSize:u.updateSize}}var er=z({__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:n}){let r=e,i=n,o=U();return $n(r,o,{onResize:e=>i(`resize`,e)}),(e,n)=>(a(),N(g(r.tag),{ref_key:`el`,ref:o},{default:T(()=>[t(e.$slots,`default`)]),_:3},512))}});function tr(e,t,n,r,i){return vn(e,t,n,r,i,{pageMode:!0})}var nr=z({__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},itemsLimit:{default:void 0},enabled:{type:Boolean,default:!0},listClass:{default:``},itemClass:{default:``}},emits:[`resize`,`visible`,`hidden`,`update`],setup(e,{expose:n,emit:r}){let i=e,o=r,s=Jn,c=U(),l=U(),d=U(),f=O(i,`items`),{pool:p,totalSize:m,startSpacerSize:h,endSpacerSize:_,ready:v,scrollToItem:y,scrollToPosition:b,getScroll:x,findItemIndex:S,getItemOffset:C,getItemSize:w,getViewStyle:ee,cacheSnapshot:te,restoreCache:E,updateVisibleItems:ne,handleResize:D,handleVisibilityChange:k}=tr(V(()=>({items:f,el:c,before:l,after:d,keyField:i.keyField,direction:i.direction,itemSize:i.itemSize,gridItems:i.gridItems,itemSecondarySize:i.itemSecondarySize,minItemSize:i.minItemSize,sizeField:i.sizeField,typeField:i.typeField,buffer:i.buffer,shift:i.shift,cache:i.cache,prerender:i.prerender,emitUpdate:i.emitUpdate,disableTransform:i.disableTransform,flowMode:i.flowMode,hiddenPosition:i.hiddenPosition,updateInterval:i.updateInterval,itemsLimit:i.itemsLimit,enabled:i.enabled,onResize:()=>o(`resize`),onVisible:()=>o(`visible`),onHidden:()=>o(`hidden`),onUpdate:(e,t,n,r)=>o(`update`,e,t,n,r)}))),A=V(()=>Lt({direction:i.direction,disableTransform:i.disableTransform,flowMode:i.flowMode,gridItems:i.gridItems})===`flow`),re=V(()=>({height:`${h.value}px`})),ie=V(()=>({height:`${_.value}px`}));return n({el:c,startSpacerSize:h,endSpacerSize:_,scrollToItem:y,scrollToPosition:b,getScroll:x,findItemIndex:S,getItemOffset:C,getItemSize:w,cacheSnapshot:te,restoreCache:E,updateVisibleItems:ne}),(e,n)=>u((a(),q(`div`,{ref_key:`el`,ref:c,class:B([`vue-recycle-scroller vue-window-scroller`,{"flow-mode":A.value,ready:K(v),[`direction-${i.direction}`]:!0}])},[e.$slots.before?(a(),q(`div`,{key:0,ref_key:`before`,ref:l,class:`vue-recycle-scroller__slot`},[t(e.$slots,`before`)],512)):R(``,!0),(a(),N(g(i.listTag),{style:I({[i.direction===`vertical`?`minHeight`:`minWidth`]:`${K(m)}px`}),class:B([`vue-recycle-scroller__item-wrapper`,i.listClass])},{default:T(()=>[A.value&&K(h)>0?(a(),N(g(i.itemTag),{key:0,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:I(re.value)},null,8,[`style`])):R(``,!0),(a(!0),q(L,null,oe(K(p),n=>(a(),N(Yn,{key:n.nr.id,view:n,"item-tag":i.itemTag,style:I(K(v)?K(ee)(n):null),class:B([`vue-recycle-scroller__item-view`,i.itemClass])},{default:T(n=>[t(e.$slots,`default`,M({ref_for:!0},n))]),_:2},1032,[`view`,`item-tag`,`style`,`class`]))),128)),A.value&&K(_)>0?(a(),N(g(i.itemTag),{key:1,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:I(ie.value)},null,8,[`style`])):R(``,!0),i.items.length===0?t(e.$slots,`empty`,{key:2}):R(``,!0)]),_:3},8,[`style`,`class`])),e.$slots.after?(a(),q(`div`,{key:1,ref_key:`after`,ref:d,class:`vue-recycle-scroller__slot`},[t(e.$slots,`after`)],512)):R(``,!0),H(Xn,{onNotify:K(D)},null,8,[`onNotify`])],2)),[[K(s),K(k)]])}}),rr=z({inheritAttrs:!1,__name:`DataVirtualList`,props:{items:{},keyProp:{},pageMode:{type:Boolean,default:!0},minItemSize:{default:30},itemSize:{},scroller:{default:`dynamic`}},setup(e){let n=e;return(e,r)=>n.scroller===`window`?(a(),q(`div`,M({key:0},e.$attrs,{class:`data-virtual-list-window`}),[H(K(nr),{class:`data-virtual-list-window__scroller`,"list-class":`data-virtual-list-window__list`,"item-class":`data-virtual-list-window__item`,items:n.items,"item-size":n.itemSize??null,"min-item-size":n.minItemSize,"key-field":n.keyProp,"flow-mode":n.itemSize==null},{before:T(()=>[t(e.$slots,`before`)]),default:T(({item:r,active:i,index:a})=>[t(e.$slots,`default`,M({key:r[n.keyProp]},{item:r,index:a,active:i}))]),_:3},8,[`items`,`item-size`,`min-item-size`,`key-field`,`flow-mode`])],16)):n.scroller===`dynamic`?(a(),N(K(Qn),M({key:1},e.$attrs,{items:n.items,"min-item-size":n.minItemSize,"key-field":n.keyProp,"page-mode":n.pageMode}),{before:T(()=>[t(e.$slots,`before`)]),default:T(({item:r,active:i,index:a})=>[H(K(er),{item:r,active:i,index:a},{default:T(()=>[t(e.$slots,`default`,M({key:r[n.keyProp]},{item:r,index:a,active:i}))]),_:2},1032,[`item`,`active`,`index`])]),_:3},16,[`items`,`min-item-size`,`key-field`,`page-mode`])):(a(),N(K(Zn),M({key:2},e.$attrs,{items:n.items,"item-size":n.itemSize??n.minItemSize,"key-field":n.keyProp,"page-mode":n.pageMode}),{before:T(()=>[t(e.$slots,`before`)]),default:T(({item:r,active:i,index:a})=>[t(e.$slots,`default`,M({key:r[n.keyProp]},{item:r,index:a,active:i}))]),_:3},16,[`items`,`item-size`,`key-field`,`page-mode`]))}});function ir(e,t){let n=[];return n=e==null?[``,`-`]:e<1?[`<1`,`ms`]:e<1e3?[e.toFixed(0),`ms`]:e<6e4?[(e/1e3).toFixed(1),`s`]:[(e/1e3/60).toFixed(1),`min`],t?n.join(` `):n}function ar(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 or(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 sr(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 cr={class:`ml-0.4 text-xs op75`},lr=z({__name:`DisplayNumberWithUnit`,props:{number:{},unit:{}},setup(e){return(n,r)=>(a(),q(`div`,null,[t(n.$slots,`default`),G(`span`,null,re(e.number),1),G(`span`,cr,re(e.unit),1)]))}}),ur=z({__name:`DisplayDuration`,props:{duration:{},factor:{default:1},unit:{default:`ms`},color:{type:Boolean,default:!0}},setup(e){let n=e,r=V(()=>{if(n.duration!=null)return n.unit===`ns`?n.duration/1e3:n.duration});function i(e){return!n.color||e==null?``:(e*=n.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 o=V(()=>ir(r.value));return(e,n)=>(a(),N(lr,{class:B(i(r.value)),number:o.value[0],unit:o.value[1]},{default:T(()=>[t(e.$slots,`default`)]),_:3},8,[`class`,`number`,`unit`]))}}),dr=z({__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-`],r=[...n,`vite:`];function i(){let e=t.compact?r:n;for(let n of e)if(t.name.startsWith(n))return t.compact?k(`span`,t.name.slice(n.length)):k(`span`,[k(`span`,{class:`op50`},n),k(`span`,t.name.slice(n.length))]);let i=t.name.split(`:`);return i.length>1?k(`span`,[k(`span`,{style:{color:De(i[0])}},`${i[0]}:`),k(`span`,i.slice(1).join(`:`))]):k(`span`,t.name)}return(e,t)=>(a(),N(g(i)))}}),fr=j(`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 pr(e){let t=new Map;return new Proxy(e.value,{get(e,n){return t.has(n)||t.set(n,V({get(){return e[n]},set(t){e[n]=t}})),t.get(n)}})}var mr=pr(fr),hr={},gr={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 _r(e,t){return a(),q(`button`,gr,[...t[0]||=[G(`div`,{class:`i-ph-x`},null,-1)]])}var vr=fe(hr,[[`render`,_r]]),yr={class:`flex flex-col relative`},br=z({__name:`FlowmapNode`,props:de({lines:{},classNodeInline:{},classNodeOuter:{},classNodeInner:{},classLineTop:{},classLineBottom:{},active:{type:Boolean}},{expanded:{type:Boolean,required:!1,default:!0},expandedModifiers:{}}),emits:[`update:expanded`],setup(e){let n=e,r=d(e,`expanded`);return(i,o)=>(a(),q(`div`,yr,[n.lines?.top?(a(),q(`div`,{key:0,class:B([`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`,n.classLineTop]]),style:I(typeof n.lines?.top==`number`?`height: ${n.lines.top}px`:``)},null,6)):R(``,!0),n.lines?.bottom?(a(),q(`div`,{key:1,class:B([`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`,n.classLineBottom]]),style:I(typeof n.lines?.bottom==`number`?`height: ${n.lines.bottom}px`:``)},null,6)):R(``,!0),t(i.$slots,`before`),G(`div`,{class:B([n.classNodeInline,`flowmap-node-inline flex w-max`])},[t(i.$slots,`inline-before`),G(`div`,{class:B([[n.classNodeOuter,e.active?`border-flow-active`:`border-flow`],`border rounded-2xl bg-base of-hidden cursor-pointer`]),onClick:o[0]||=e=>r.value=!r.value},[t(i.$slots,`inner`,{},()=>[G(`div`,{class:B([`px3 py1 flex flex-inline gap-2 items-center`,n.classNodeInner])},[t(i.$slots,`content`)],2)])],2),t(i.$slots,`inline-after`)],2),t(i.$slots,`after`)]))}}),xr=z({__name:`DisplayGraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:n,hoverY:r}=b(e),i=x(`hoverElement`),o=U(0),c=U(0);return Y([n,r],([e,t])=>{w({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},i.value,{placement:`right-start`,middleware:[E(),m(),s({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{o.value=e,c.value=t})}),(e,n)=>(a(),N(ie,{to:`body`},[G(`div`,{ref_key:`hoverElement`,ref:i,class:`fixed z-panel-content pointer-events-none`,style:I({left:`${o.value}px`,top:`${c.value}px`})},[t(e.$slots,`default`)],4)]))}});function Sr(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 Cr,wr,Tr,Er,Q,Dr=1,Or;function kr(e,t,n,r,i){if(!Array.isArray(e))return e;let a=window.devicePixelRatio||1;if(Cr!==t||wr!==a||Tr!==i){let n=Math.round(64*a)/64;Dr=i,Dr=Math.log2(Dr),Dr-=Math.floor(Dr);let r=Dr,o=Math.min(1,8*r);Dr=2**Dr;let s=8*Math.SQRT2/Dr;Cr=t,wr=a,Tr=i,Er||=document.createElement(`canvas`),Q||=Er.getContext(`2d`),Er.width=Er.height=Math.round(64*n),Q.scale(n,n),Q.fillStyle=e[0],Q.fillRect(0,0,64,64),Q.globalAlpha=.25,Q.fillStyle=e[1],Q.fillRect(0,0,64,64),Q.globalAlpha=.67,Q.strokeStyle=e[1],Q.beginPath();for(let e=0;e<=64;e+=16)Q.moveTo(e-32,e+32),Q.lineTo(e+32,e-32);if(Q.lineWidth=s*(1-(o-r)/2),Q.stroke(),o+r>0){Q.beginPath();for(let e=8;e<64;e+=16)Q.moveTo(e-32,e+32),Q.lineTo(e+32,e-32);Q.lineWidth=s*(o+r)/2,Q.stroke()}Or=t.createPattern(Er,`repeat`),Dr/=n}return n/=64*Dr*a,n-=Math.floor(n),n*=64*Dr*a,Or.setTransform(new DOMMatrix([Dr,0,0,Dr,n,r])),Or}function Ar(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 jr(e){return t=>t.id&&e[t.id]||t.color}function Mr(e,t=1,n=1){let r={};return Nr(r,e,0,Math.PI*2,t,n),jr(r)}function Nr(e,t,n,r,i=1,a=1){let o=t.size;e[t.id]=Sr(n+r/2,i,a);for(let s of t.children){let t=s.size/o*r;Nr(e,s,n,t,i,a),n+=t}}var Pr=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Fr(e=16,t=Pr){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function Ir(e,t,n=(e,t)=>t.size-e.size){if(e.__nanovis)return e;let r={...e};return r.id||=Fr(),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=>Ir(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 Lr(e){return e.children.length===0?1:Math.max(...e.children.map(e=>Lr(e)))+1}var Rr=/\bFirefox\//.test(navigator.userAgent),zr;function Br(e){return zr?zr.format(e):`${e}`}function Vr(){return(window.performance||Date).now()}function Hr(e){let t=e.toFixed(1).split(`.`,2);return`${Br(+t[0])}.${t[1]}`}function Ur(e){return e===1?`1 byte`:e<1024?`${Br(e)} bytes`:e<1048576?`${Hr(e/1024)} kb`:e<1073741824?`${Hr(e/1048576)} mb`:`${Hr(e/1073741824)} gb`}function Wr(e,t,n,r,i,a){if(Rr){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)}else e.strokeStyle=t,e.strokeRect(n,r,i,a)}function Gr(e){return window.addEventListener(`wheel`,e,{passive:!1}),()=>window.removeEventListener(`wheel`,e)}function Kr(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}try{zr=new Intl.NumberFormat}catch{}var qr=()=>({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)}}}),Jr={getText:e=>e.text,getSubtext:e=>e.subtext,animate:!0,animateDuration:350},Yr={fallback:`#CCC`,stroke:`#0008`,text:`#222`,hover:`#fff5`,shadow:`#0008`,fg:`#fff`,bg:`#222`},Xr=46,Zr=`14px sans-serif`,Qr=`bold ${Zr}`,$r=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={...Jr,...t};let{getColor:n=Mr(e),getText:r=()=>void 0,getSubtext:i=()=>void 0}=this.options;this.palette={...Yr,...t.palette},this.el=document.createElement(`div`),this.canvas=document.createElement(`canvas`),this.c=this.canvas.getContext(`2d`),this.root=e,this.maxDepth=Lr(e),this.disposables=[],this.events=qr(),this.getColor=n,this.getText=r,this.getSubtext=i,this.setFont(Zr),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(){}didDraw(){if(this.options.onDidDraw){this.c.save();try{this.options.onDidDraw(this.c)}finally{this.c.restore()}}}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(Xr)}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]}},ei=24,ti=5,ni=.01,ri=1e3,ii=class extends $r{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(Gr(e=>{let t=e.deltaX,n=e.deltaY,r=Vr(),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(Kr(()=>this.resize())),this.mainEl.append(this.canvas),this.el.append(this.mainEl)}tick(){let e=(Vr()-this.animationStart)/(this.options.animateDuration??Jr.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),this.didDraw()}changeSelectedNode(e,t=this.options.animate??Jr.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*ni),r=Math.min(this.totalBytes,r+e.size*ni),this.setViewport(n,r,t)}}select(e,t=this.options.animate??Jr.animate){this.changeSelectedNode(e,t)}resize(){this.width=this.el.clientWidth,this.height=this.maxDepth*ei+1,this.zoomedOutMin=this.width-ri>>1,this.zoomedOutWidth=this.zoomedOutMin+ri,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)+ti,d=t+ei/2,f=this.getText(e)||``,p=this.getSubtext(e)||``,m,h=0,g=s+o-u,_=kr(this.getColor(e)||this.palette.fallback,this.c,this.zoomedOutMin-this.viewportMin*a,ei,a*this.stripeScaleAdjust),v=this.palette.text,y=-1/0;i&1?(v=this.palette.fg,this.setFont(Qr)):(this.c.fillStyle=_,this.c.fillRect(o,t,l,ei),(i&2||this.hoveredNode&&e.id===this.hoveredNode.id)&&(this.c.fillStyle=this.palette.hover,this.c.fillRect(o,t,l,ei),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(Zr),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+ei,n,y,i&-2),n+=r.size;return i&1||Wr(this.c,this.palette.stroke,o+.5,t+.5,l,ei),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+ei&&e.id)return e;if(r>=t+ei)for(let r of e.children){let e=a(r,t+ei,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,this.animationStart=n?Vr():0,this.invalidate()}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),this.events.emit(`hover`,t,e)}};function ai(e,t){for(;t;){if(t===e)return!0;t=t.parent}return!1}function oi(e,t,n){if(e===t)return;let r=t.parent,i=r.size||1,a=0;oi(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 si={};function ci(e){return si[e]||(si[e]=400*Math.log(1+Math.log(1+e/8))),si[e]}var li=-Math.PI/2,ui=class extends $r{currentNode;hoveredNode;centerX=0;centerY=0;animationStart=0;radiusScale=1;sourceDepth=0;sourceStartAngle=li;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(Kr(()=>this.resize())),this.disposables.push(Gr(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(ci(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(Qr),this.c.textAlign=`center`,this.c.fillText(this.getSubtext(this.targetNode)??Ur(this.targetNode.size),this.centerX,this.centerY)),this.didDraw()}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=kr(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=(Vr()-this.animationStart)/(this.options.animateDuration??Jr.animateDuration);e<0||e>1?(e=1,this.animatedNode=this.targetNode,this.targetDepth=0,this.targetStartAngle=li,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 ci(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=Vr()),ai(this.animatedNode,this.currentNode)){let e={depth_:this.animatedDepth,startAngle_:this.animatedStartAngle,sweepAngle_:this.animatedSweepAngle};oi(this.animatedNode,this.currentNode,e),this.animatedDepth=e.depth_,this.animatedStartAngle=e.startAngle_,this.animatedSweepAngle=e.sweepAngle_,this.targetDepth=0,this.targetStartAngle=li,this.targetSweepAngle=Math.PI*2,this.animatedNode=this.currentNode}else if(ai(this.currentNode,this.animatedNode)){let e={depth_:0,startAngle_:li,sweepAngle_:Math.PI*2};oi(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 di(e){return Array.isArray?Array.isArray(e):xi(e)===`[object Array]`}function fi(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 pi(e){return e==null?``:fi(e)}function mi(e){return typeof e==`string`}function hi(e){return typeof e==`number`}function gi(e){return e===!0||e===!1||vi(e)&&xi(e)==`[object Boolean]`}function _i(e){return typeof e==`object`}function vi(e){return _i(e)&&e!==null}function yi(e){return e!=null}function bi(e){return!e.trim().length}function xi(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Si=`Incorrect 'index' type`,Ci=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,wi=e=>`Invalid value for key ${e}`,Ti=e=>`Pattern length exceeds max of ${e}.`,Ei=e=>`Missing ${e} property in key`,Di=e=>`Property 'weight' in key '${e}' must be a positive integer`,Oi=`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,Ai=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(mi(e)||di(e))r=e,t=Mi(e),n=Ni(e);else{if(!ki.call(e,`name`))throw Error(Ei(`name`));let o=e.name;if(r=o,ki.call(e,`weight`)&&e.weight!==void 0&&(i=e.weight,i<=0))throw Error(Di(Ni(o)));t=Mi(o),n=Ni(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:a}}function Mi(e){return di(e)?e:e.split(`.`)}function Ni(e){return di(e)?e.join(`.`):e}function Pi(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(yi(e)){if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!yi(s))return;if(a===t.length-1&&(mi(s)||hi(s)||gi(s)||typeof s==`bigint`))n.push(o===void 0?pi(s):{v:pi(s),i:o});else if(di(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,mi(t)?t.split(`.`):t,0),r?n:n[0]}var Fi={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Ii={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},Li={location:0,threshold:.6,distance:100},Ri={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:`any`,getFn:Pi,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},$=Object.freeze({...Ii,...Fi,...Li,...Ri});function zi(e){return e>=9&&e<=13||e===32||e===160}function Bi(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++)zi(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 Vi=class{constructor({getFn:e=$.getFn,fieldNormWeight:t=$.fieldNormWeight}={}){this.norm=Bi(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(mi(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(Ci);if(mi(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(Ci);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!yi(e)||bi(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(yi(i)){if(di(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(yi(n)){if(mi(n)){if(!bi(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(yi(n.v)){let t=mi(n.v)?n.v:pi(n.v);if(!bi(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[t]=e}else if(mi(i)&&!bi(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 Hi(e,t,{getFn:n=$.getFn,fieldNormWeight:r=$.fieldNormWeight}={}){let i=new Vi({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(ji)),i.setSources(t),i.create(),i}function Ui(e,{getFn:t=$.getFn,fieldNormWeight:n=$.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new Vi({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function Wi(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 Gi(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(Ti(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=Wi(_,s);e.length?c&&(w.indices=e):w.isMatch=!1}return w}function Ki(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 qi(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 Ji={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},Yi=RegExp(`[`+Object.keys(Ji).join(``)+`]`,`g`),Xi=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(Yi,e=>Ji[e]):e=>e,Zi=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?Xi(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Ki(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?Xi(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}=Gi(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=qi(u)),p}},Qi=new Set([`fuzzy`,`include`]);function $i(e){return e.startsWith(`inverse`)}var ea=[{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 Zi(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)}}}}],ta=ea.length,na=`\0`,ra=`|`;function ia(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 aa(e,t){let n=e.match(t);return n?n[1]:null}function oa(e,t={}){return e.replace(/\\\|/g,na).split(ra).map(e=>{let n=ia(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<ta;){let e=ea[o],n=aa(i,e.multiRegex);n&&(r.push(e.create(n,t)),a=!0)}if(!a)for(o=-1;++o<ta;){let e=ea[o],n=aa(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}var sa=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?Xi(e):e,this.pattern=e,this.query=oa(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?Xi(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,$i(r.type)&&(c=!0),n&&(Qi.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=qi(o)),e}}return{isMatch:!1,score:1}}},ca=[];function la(...e){ca.push(...e)}function ua(e,t){for(let n=0,r=ca.length;n<r;n+=1){let r=ca[n];if(r.condition(e,t))return new r(e,t)}return new Zi(e,t)}var da={AND:`$and`,OR:`$or`},fa={PATH:`$path`,PATTERN:`$val`},pa=e=>!!(e[da.AND]||e[da.OR]),ma=e=>!!e[fa.PATH],ha=e=>!di(e)&&_i(e)&&!pa(e),ga=e=>({[da.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function _a(e,t,{auto:n=!0}={}){let r=e=>{if(mi(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=ua(e,t)),r}let i=Object.keys(e),a=ma(e);if(!a&&i.length>1&&!pa(e))return r(ga(e));if(ha(e)){let r=a?e[fa.PATH]:i[0],o=a?e[fa.PATTERN]:e[r];if(!mi(o))throw Error(wi(r));let s={keyId:Ni(r),pattern:o};return n&&(s.searcher=ua(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];di(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return pa(e)||(e=ga(e)),r(e)}function va(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 ya(e,{ignoreFieldNorm:t=$.ignoreFieldNorm}){e.forEach(e=>{e.score=va(e.matches,{ignoreFieldNorm:t})})}var ba=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 xa(e){let t=[];return e.matches.forEach(e=>{if(!yi(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 Sa(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=xa(e)),r&&(a.score=e.score),a})}var Ca=/[\p{L}\p{M}\p{N}_]+/gu,wa=new WeakSet;function Ta(e){wa.has(e)||(wa.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 Ea(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||Ta(e),t=>t.match(e)||[]):e=>e.match(Ca)||[]}function Da({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=Ea(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=Xi(n)),r(n)}}}var Oa=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Da({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 Zi(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=qi(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 Aa(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0)ka(e,a,i,r);else 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)Aa(r,i,t,n);return r}function Ma(e,t,n,r){Aa(e,t,n,r)}function Na(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 Pa(e,t){if(t.length===0)return;let n=Array.from(new Set(t)).sort((e,t)=>e-t);for(let t of n)Na(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 Fa=class{constructor(e,t,n){this.options={...$,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Ai(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=ua(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 Vi))throw Error(Si);if(this._myIndex=t||Hi(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=Da({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(!yi(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=Da({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});Ma(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&&Pa(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(Ci);this._invertedIndex&&Pa(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(mi(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return hi(n)&&n>-1&&(e=e.slice(0,n)),e}let c=a&&hi(n)&&n>0&&mi(e),l=o,u=(e,t)=>l(e,t)||e.idx-t.idx,d;if(c){let t=new ba(n,u);mi(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),d=t.extractSorted()}else d=mi(e)?mi(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),ya(d,{ignoreFieldNorm:s}),a&&d.sort(mi(e)?u:l),hi(n)&&n>-1&&(d=d.slice(0,n));return Sa(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(!yi(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=va(r.matches,{ignoreFieldNorm:n}),t.insert(r)):o.push(r)}}}),o}_searchLogical(e){let t=_a(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===da.AND)return[]}return s},i=this._myIndex.records,a=new Map,o=[];return i.forEach(({$:e,i:n})=>{if(yi(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(!yi(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=va(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!yi(t))return[];let r=[];if(di(t))t.forEach(({v:t,i,n:a})=>{if(!yi(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}};Fa.version=`7.5.0`,Fa.createIndex=Hi,Fa.parseIndex=Ui,Fa.config=$,Fa.match=function(e,t,n){if(n&&n.useTokenSearch)throw Error(Oi);return ua(e,{...$,...n}).searchIn(t)},Fa.parseQuery=_a,la(sa),la(Oa),Fa.use=function(...e){e.forEach(e=>la(e))};var Ia=Fa,La={class:`flex-col gap-2 min-w-30vw border border-base rounded-xl bg-glass`},Ra={key:0,class:`flex items-center`},za=[`title`],Ba=[`checked`,`onChange`],Va={class:`text-sm`},Ha=[`title`],Ua={key:0,class:`op75 i-ph-selection-slash-duotone`},Wa={key:1,class:`op75 i-ph-selection-plus-duotone`},Ga=z({__name:`DataSearchPanel`,props:{rules:{},modelValue:{default:()=>({search:``,selected:null})},selectedContainerClass:{default:``}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,o=i(r,`modelValue`,n);function s(e){let{modelValue:t}=r;return!t?.selected||t.selected.includes(e.name)}function c(e){let{rules:t}=r;o?.value?.selected||(o.value.selected=t.map(e=>e.name)),o.value.selected.includes(e.name)?o.value.selected=o.value.selected.filter(t=>t!==e.name):o.value.selected.push(e.name),o?.value?.selected.length===r.rules.length&&(o.value.selected=null)}function l(){o?.value?.selected?.length===r.rules.length?o.value.selected=null:o?.value?.selected==null?o.value.selected=[]:o.value.selected=r.rules.map(e=>e.name).filter(e=>!o.value.selected?.includes(e))}function d(){o?.value?.selected?.length===0?o.value.selected=null:o.value.selected=[]}return(n,r)=>(a(),q(`div`,La,[t(n.$slots,`search`,{},()=>[e.modelValue.search===!1?R(``,!0):(a(),q(`div`,Ra,[u(G(`input`,{"onUpdate:modelValue":r[0]||=e=>K(o).search=e,class:`p2 px4 w-full`,style:{outline:`none`},placeholder:`Search`},null,512),[[ce,K(o).search]]),t(n.$slots,`search-end`)]))]),e.rules.length?(a(),q(`div`,{key:0,class:B([e.selectedContainerClass,`flex gap-2 flex-wrap p2 border-t border-base`])},[(a(!0),q(L,null,oe(e.rules,e=>(a(),q(`label`,{key:e.name,class:B([`border border-base rounded-md px2 py1 flex items-center gap-1 select-none`,s(e)?`bg-active`:`grayscale op50`]),title:e.description},[G(`input`,{type:`checkbox`,class:`mr1`,checked:s(e),onChange:t=>c(e)},null,40,Ba),G(`div`,{class:B([e.icon,`icon-catppuccin`])},null,2),G(`div`,Va,re(e.description||e.name),1)],10,za))),128)),G(`button`,{class:`rounded-md p1 flex items-center gap-1 select-none hover:bg-active`,title:`Reverse Selection`,onClick:l},[...r[1]||=[G(`div`,{class:`op75 i-ph-selection-background-duotone`},null,-1)]]),G(`button`,{class:`rounded-md p1 flex items-center gap-1 select-none hover:bg-active`,title:K(o).selected?.length===0?`Select All`:`Unselect All`,onClick:d},[K(o).selected?.length===0?(a(),q(`div`,Ua)):(a(),q(`div`,Wa))],8,Ha)],2)):R(``,!0),t(n.$slots,`default`)]))}}),Ka=`node_modules`;function qa(e){return e.replace(/%2F/gi,`/`).replace(/\\/g,`/`)}function Ja(e){return e[0]===`#`||!!e.match(/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/)}function Ya(e){let t=qa(e);if(Ja(t))return t;let n=t.split(`/`);return Qa(n)?.name??eo(n)?.name}function Xa(e){return e.match(/.*\/node_modules\/(.*)$/)?.[1]}function Za(e,t){let n=qa(e);if(Ja(n)||/^\w+:/.test(n)&&!/^[a-z]:\\/i.test(e))return{moduleName:n,path:n};let r=Ya(n),i=Xa(n);if(r&&i)return{moduleName:r,path:i};try{let e=Ct(t,n);return!e.startsWith(`./`)&&!e.startsWith(`../`)&&(e=`./${e}`),e.startsWith(`./.nuxt/`)&&(e=`#build${e.slice(7)}`),{path:e}}catch{return{path:n}}}function Qa(e){for(let t of to(e)){let n=$a(e,t+1);if(n)return{name:n,endIndex:t+1+(n.startsWith(`@`)?2:1)}}}function $a(e,t){let n=e[t];if(!n)return;let r=n.startsWith(`@`)?`${n}/${e[t+1]??``}`:n;return Ja(r)?r:void 0}function eo(e){for(let t of to(e)){if($a(e,t+1))continue;let n=t+1,r=e.indexOf(Ka,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=no(n);if(r)return{...r,index:t}}}}function to(e){return e.map((e,t)=>e===Ka?t:-1).filter(e=>e>=0).reverse()}function no(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(Ja(n)&&r)return{name:n,version:r}}var ro=he(Za);export{_e as A,Et as C,Ce as D,Oe as E,xe as M,ye as O,Qn as S,Ae as T,ir as _,ui as a,rr as b,Ir as c,vr as d,fr as f,ar as g,ur as h,ii as i,be as j,ge as k,xr as l,dr as m,Ga as n,Ar as o,mr as p,Ia as r,Mr as s,ro as t,br as u,sr as v,ft as w,er as x,or as y};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
//# allFunctionsCalledOnLoad
|
|
2
|
+
import{At as e,Dt as t,R as n,Vt as r,an as i,ct as a,d as o,it as s,kt as c,mt as l,n as u,nn as d,ot as f,pt as p,st as m,tn as h,ut as g,z as _}from"#entry";import{t as v}from"./BmP83cE4.js";var y={},b={class:`w-full pt8 pb6 flex flex-col gap3 items-center`};function x(n,r){return t(),g(`header`,b,[e(n.$slots,`default`)])}var S=v(y,[[`render`,x]]),C={key:1,class:`px4 pb4 flex flex-col items-center relative`},w={class:`border border-base rounded p2 flex flex-col gap-4 justify-center`},T={class:`font-mono truncate`},E=l({__name:`home`,setup(e){let l=u(),{state:v,isLoading:y}=o(async()=>{let[e,t]=await Promise.all([l.value.call(`vite:meta-info`),l.value.call(`vite:env-info`)]);return{metadata:e,envInfo:t}},null),b=f(()=>v.value?.metadata),x=f(()=>v.value?.envInfo),E=f(()=>[{id:`project`,icon:`i-ph-briefcase-duotone`,rows:[{id:`root`,icon:`i-ph-folder-duotone`,label:`Root`,value:b.value?.root},{id:`base`,icon:`i-ph-folder-simple-user-duotone`,label:`Base`,value:b.value?.base},{id:`plugins`,icon:`i-ph-plugs-duotone`,label:`Plugins`,value:b.value?.plugins.length??0}]},{id:`system`,icon:`i-ph-desktop-tower-duotone`,rows:[{id:`os`,icon:`i-ph-app-window-duotone`,label:`OS`,value:x.value?.os},{id:`cpu`,icon:`i-ph:cpu-duotone`,label:`CPU`,value:x.value?.cpu},{id:`memory`,icon:`i-ph:memory-duotone`,label:`Memory`,value:x.value?.memory}]},{id:`runtime`,icon:`i-ph-stack-duotone`,rows:[{id:`node`,icon:`i-catppuccin-package-json icon-catppuccin`,label:`Node`,value:x.value?.node},{id:`bun`,icon:`i-catppuccin:bun icon-catppuccin`,label:`Bun`,value:x.value?.bun},{id:`npm`,icon:`i-catppuccin:npm icon-catppuccin`,label:`NPM`,value:x.value?.npm},{id:`pnpm`,icon:`i-catppuccin:pnpm icon-catppuccin`,label:`PNPM`,value:x.value?.pnpm},{id:`yarn`,icon:`i-catppuccin:yarn icon-catppuccin`,label:`Yarn`,value:x.value?.yarn}]}]);return(e,o)=>h(y)?(t(),a(n,{key:0,text:`Connecting...`})):(t(),g(`div`,C,[p(S,null,{default:r(()=>[p(_)]),_:1}),m(`div`,w,[(t(!0),g(s,null,c(E.value,e=>(t(),g(`div`,{key:e.id,class:`p4 flex gap-14 items-center`},[m(`div`,{class:d([`text-3xl flex ml3`,e.icon])},null,2),m(`div`,null,[(t(!0),g(s,null,c(e.rows,e=>(t(),g(`div`,{key:e.id,class:`grid grid-cols-[max-content_80px_2fr] gap-2 items-center`},[m(`div`,{class:d(e.icon)},null,2),m(`div`,null,i(e.label),1),m(`div`,T,i(e.value),1)]))),128))])]))),128))])]))}});export{E as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Dt as e,Vt as t,X as n,Y as r,an as i,ft as a,i as o,st as s,ut as c}from"#entry";import{t as l}from"./BmP83cE4.js";var u={class:`antialiased bg-white dark:bg-neutral-950 dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-neutral-950 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=[`textContent`],_=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`},backToPrevious:{type:String,default:`Go back`}},setup(l){let _=l;return o({title:`${_.status} - ${_.statusText} | ${_.appName}`,script:[{innerHTML:`(()=>{if(!(window.history.state&&window.history.state.back||document.referrer.startsWith(window.location.origin+"/")))return;const t=document.querySelector("[data-back-home]"),e=document.querySelector("[data-back-previous]");t&&e&&(e.onclick=()=>window.history.back(),t.hidden=!0,e.hidden=!1)})();`,tagPosition:`bodyClose`}],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb);--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: }: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,button{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{-webkit-text-decoration:inherit;text-decoration:inherit}a,button{color:inherit}button{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;padding:0;text-transform:none;cursor:pointer}[type=button],button{-webkit-appearance:button;background-color:#0000;background-image:none}h1,h2,p{margin:0}[hidden]:where(:not([hidden=until-found])){display:none}`}]}),(o,_)=>(e(),c(`div`,u,[s(`div`,d,[s(`h1`,{class:`font-medium leading-none mb-4 sm:text-[72px] tabular-nums text-[56px]`,textContent:i(l.status)},null,8,f),s(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:i(l.statusText)},null,8,p),s(`p`,{class:`mb-4 px-2 text-md text-neutral-500`,textContent:i(l.description)},null,8,m),s(`div`,h,[n(r,{to:`/`,"data-back-home":``,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:t(()=>[a(i(l.backHome),1)]),_:1}),_[0]||=a(),s(`button`,{type:`button`,"data-back-previous":``,hidden:``,class:`appearance-none bg-transparent border-0 cursor-pointer font-medium font-sans hover:text-[#00DC82] p-0 text-inherit text-sm underline underline-offset-3`,textContent:i(l.backToPrevious)},null,8,g)])])]))}},[[`__scopeId`,`data-v-63a8b56a`]]);export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"906bbb79-70d6-4f08-8d21-7f4f73261f24","timestamp":1796192878830}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"906bbb79-70d6-4f08-8d21-7f4f73261f24","timestamp":1796192878830,"prerendered":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
//# allFunctionsCalledOnLoad
|
|
2
|
+
import{$ as e,At as t,Bt as n,Dt as r,Et as i,F as a,Ht as o,I as s,Kt as c,L as l,O as u,Q as d,R as f,Rt as p,S as m,Tt as h,Vt as g,Xt as _,Y as v,a as y,an as b,ct as x,d as S,f as C,ft as w,in as T,it as E,jt as D,kt as O,lt as k,mt as A,n as ee,nn as j,ot as M,pt as N,qt as P,rt as te,s as F,st as I,t as ne,tn as L,ut as R,xt as z,zt as B}from"#entry";import{A as V,C as H,M as U,O as re,T as W,_ as G,a as ie,b as ae,c as oe,d as se,f as K,g as q,h as J,j as Y,k as ce,l as le,m as X,n as ue,o as de,r as fe,s as pe,t as me,u as Z,v as Q,w as he}from"./DZWKP7A0.js";import{t as ge}from"./BmP83cE4.js";var $=A({__name:`DisplayNumberBadge`,props:{number:{},color:{default:`badge-color-gray op75`},icon:{},prefix:{},suffix:{},format:{default:`locale`}},setup(e){let n=e,i=M(()=>n.format===`percent`?Number(n.number).toLocaleString(void 0,{style:`percent`,minimumFractionDigits:2,maximumFractionDigits:2}):Number(n.number).toLocaleString());return(n,a)=>(r(),R(`div`,{class:j([e.color,`px-0.4em py-0.2em font-mono line-height-none flex items-center`])},[e.icon?(r(),R(`div`,{key:0,class:j([e.icon,`mr-1`])},null,2)):k(``,!0),w(` `+b(e.prefix||``)+b(i.value)+b(e.suffix||``)+` `,1),t(n.$slots,`after`)],2))}}),_e={class:`op50 text-xs flex justify-center items-center`},ve=A({__name:`FlowmapNodePluginInfo`,props:{modules:{},calls:{},duration:{}},setup(e){return(t,n)=>(r(),R(`span`,_e,[N($,{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]||=I(`span`,{class:`op40`},`|`,-1),N($,{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]||=I(`span`,{class:`op40`},`|`,-1),N(J,{duration:e.duration,class:`flex gap-1 items-center px1`,title:`Total build cost: ${L(G)(e.duration,!0)}`},{default:g(()=>[...n[0]||=[I(`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(A({__name:`PluginFlowTimeline`,props:{buildMetrics:{}},setup(e){let n=e;function i(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 a=M(()=>i(n.buildMetrics.resolveIdMetrics)),o=M(()=>i(n.buildMetrics.loadMetrics)),s=M(()=>i(n.buildMetrics.transformMetrics)),c=M(()=>{let e=n.buildMetrics.calls;if(e?.length)return e[0].timestamp_start}),l=M(()=>{let e=n.buildMetrics.calls;if(e?.length)return e.at(-1).timestamp_end});return(n,i)=>(r(),R(`div`,ye,[t(n.$slots,`header`),I(`div`,be,[I(`div`,xe,[N(Z,{active:!1,"class-node-inner":`w60`},{content:g(()=>[I(`div`,{class:`p2 w-full text-center`,onClick:i[0]||=e=>L(K).pluginDetailSelectedHook=``},[N(X,{name:e.buildMetrics.plugin_name,class:`font-mono text-sm ws-nowrap text-ellipsis line-clamp-1`},null,8,[`name`])])]),_:1})]),I(`div`,Se,[i[5]||=I(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),i[6]||=I(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),I(`span`,Ce,[i[4]||=I(`i`,{class:`i-ph-airplane-takeoff-thin text-4 inline-flex`},null,-1),c.value?(r(),R(`time`,{key:0,datetime:new Date(c.value).toISOString()},b(new Date(c.value).toLocaleString()),9,we)):k(``,!0)])]),N(Z,{"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},active:L(K).pluginDetailSelectedHook===`resolve`},{content:g(()=>[I(`div`,{class:`flex flex-col gap1 w-full`,onClick:i[1]||=e=>L(K).pluginDetailSelectedHook=`resolve`},[i[7]||=I(`span`,{class:`flex items-center justify-center gap-1`},[I(`i`,{class:`i-ph-magnifying-glass-duotone`}),w(` Resolve Id `)],-1),I(`div`,null,[N(ve,{modules:a.value.modules,calls:a.value.calls,duration:a.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`class-node-outer`,`active`]),N(Z,{active:L(K).pluginDetailSelectedHook===`load`,"class-node-inner":`w60`,"class-node-outer":`${!o.value.modules&&!o.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0}},{content:g(()=>[I(`div`,{class:`flex flex-col gap1 w-full`,onClick:i[2]||=e=>L(K).pluginDetailSelectedHook=`load`},[i[8]||=I(`span`,{class:`flex items-center justify-center gap-1`},[I(`i`,{class:`i-ph-upload-simple-duotone`}),w(` Load `)],-1),I(`div`,null,[N(ve,{modules:o.value.modules,calls:o.value.calls,duration:o.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),N(Z,{active:L(K).pluginDetailSelectedHook===`transform`,"class-node-inner":`w60`,"class-node-outer":`${!s.value.modules&&!s.value.calls?`b-dashed!`:``}`},{content:g(()=>[I(`div`,{class:`flex flex-col gap1 w-full`,onClick:i[3]||=e=>L(K).pluginDetailSelectedHook=`transform`},[i[9]||=I(`span`,{class:`flex items-center justify-center gap-1`},[I(`i`,{class:`i-ph-magic-wand-duotone`}),w(` Transform `)],-1),I(`div`,null,[N(ve,{modules:s.value.modules,calls:s.value.calls,duration:s.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),I(`div`,Te,[i[11]||=I(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),i[12]||=I(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),i[13]||=I(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-14 w-2 h-2 border-4 rounded-full`},null,-1),I(`span`,Ee,[i[10]||=I(`i`,{class:`i-ph-airplane-landing-thin text-4 inline-flex`},null,-1),l.value?(r(),R(`time`,{key:0,datetime:new Date(l.value).toISOString()},b(new Date(l.value).toLocaleString()),9,De)):k(``,!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(ge(A({__name:`PluginDetailsTable`,props:{modules:{},buildMetrics:{},selectedFields:{},root:{}},setup(e){let t=e,n={resolve:`Resolve Id`,load:`Load`,transform:`Transform`},i=M(()=>t.modules.map(e=>({mod:e,type:Y(e.id)}))),a=M(()=>ce.filter(e=>i.value.some(t=>e.match.test(t.mod.id)))),o=M(()=>{let e=new Map;for(let{mod:t,type:n}of i.value)e.set(t.id,n.name);return e}),s=P(K.value.pluginDetailsModuleTypes??a.value.map(e=>e.name)),c=M(()=>new Set(s.value)),{state:l,next:u}=C([``,`desc`,`asc`],{initialValue:K.value.pluginDetailsDurationSortType}),d=M(()=>{let e=K.value.pluginDetailSelectedHook,n=K.value.pluginDetailsShowType,r=n!==`all`&&[`load`,`transform`].includes(e),i=new Map(o.value),a=[];for(let o of t.buildMetrics.calls){if(!o.module||e&&o.type!==e||r&&(n===`changed`?o.unchanged:!o.unchanged))continue;let t=i.get(o.module);t||(t=Y(o.module).name,i.set(o.module,t)),c.value.has(t)&&a.push(o)}return l.value&&a.sort((e,t)=>l.value===`asc`?e.duration-t.duration:t.duration-e.duration),a});function f(e){s.value?.includes(e.name)?s.value=s.value?.filter(t=>t!==e.name):s.value?.push(e.name),K.value.pluginDetailsModuleTypes=s.value}function p(){u(),K.value.pluginDetailsDurationSortType=l.value}function m(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}return(t,i)=>d.value.length&&e.selectedFields.length?(r(),x(ae,{key:0,class:`plugin-details-table min-w-max h-full min-h-0`,role:`table`,items:d.value,"key-prop":`id`,"page-mode":!1,scroller:`fixed`,"item-size":36},{before:g(()=>[I(`div`,ke,[e.selectedFields.includes(`hookName`)?(r(),R(`div`,Ae,` Hook name `)):k(``,!0),e.selectedFields.includes(`module`)?(r(),R(`div`,je,[I(`button`,Me,[i[0]||=w(` Module `,-1),N(L(he),null,{popper:g(()=>[I(`div`,Pe,[(r(!0),R(E,null,O(a.value,e=>(r(),R(`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`},[I(`input`,{type:`checkbox`,class:`mr1`,checked:s.value?.includes(e.name),onChange:t=>f(e)},null,40,Ie),I(`div`,{class:j([e.icon,`icon-catppuccin`])},null,2),I(`div`,Le,b(e.description||e.name),1)],8,Fe))),128))])]),default:g(()=>[I(`span`,Ne,[I(`i`,{class:j([`i-ph-funnel-duotone text-xs`,s.value.length===a.value.length?`op50`:`text-primary op100`])},null,2)])]),_:1})])])):k(``,!0),e.selectedFields.includes(`duration`)?(r(),R(`div`,Re,[I(`button`,{class:`flex flex-row gap1 items-center justify-center w-full`,onClick:p},[i[1]||=w(` Duration `,-1),I(`span`,ze,[I(`i`,{class:j([`text-xs`,[L(l)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,L(l)?`op100 text-primary`:`op50`]])},null,2)])])])):k(``,!0),e.selectedFields.includes(`startTime`)?(r(),R(`div`,Be,` Start Time `)):k(``,!0),e.selectedFields.includes(`endTime`)?(r(),R(`div`,Ve,` End Time `)):k(``,!0)])]),default:g(({item:t,index:i})=>[I(`div`,{role:`row`,class:j([`border-base border-b border-dashed flex flex-row h-9`,[i===d.value.length-1?`border-b-0`:``]])},[e.selectedFields.includes(`hookName`)?(r(),R(`div`,He,[N(W,{text:n[t.type]},null,8,[`text`])])):k(``,!0),e.selectedFields.includes(`module`)?(r(),R(`div`,Ue,[N(H,{id:t.module,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:e.root,link:m(t.graphModuleId)},null,8,[`id`,`cwd`,`link`])])):k(``,!0),e.selectedFields.includes(`duration`)?(r(),R(`div`,We,[N(J,{duration:t.duration},null,8,[`duration`])])):k(``,!0),e.selectedFields.includes(`startTime`)?(r(),R(`div`,Ge,b(L(Q)(t.timestamp_start)),1)):k(``,!0),e.selectedFields.includes(`endTime`)?(r(),R(`div`,Ke,b(L(Q)(t.timestamp_end)),1)):k(``,!0)],2)]),_:1},8,[`items`])):(r(),R(`div`,qe,[I(`div`,Je,[I(`div`,Ye,[e.selectedFields.length?(r(),R(`p`,Ze,` No data `)):(r(),R(`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(A({__name:`PluginFlow`,props:{modules:{},buildMetrics:{},root:{}},setup(e){let t=e,[n,i]=s(!0),a=[{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`}],o=P({selected:K.value.pluginDetailsTableFields,search:!1}),c=M(()=>K.value.pluginDetailsTableFields?K.value.pluginDetailsTableFields:a.map(e=>e.name)),{state:l,next:u}=C([`changed`,`unchanged`,`all`],{initialValue:K.value.pluginDetailsShowType}),d=M(()=>l.value===`all`?`Show Changed`:l.value===`changed`?`Show Unchanged`:`Show All`),f=M(()=>!(![`load`,`transform`].includes(K.value.pluginDetailSelectedHook)||!t.buildMetrics.calls?.filter(e=>e.type===K.value.pluginDetailSelectedHook).filter(e=>e.unchanged).length)),p=M(()=>{let e=t.buildMetrics.calls?.filter(e=>e.type===K.value.pluginDetailSelectedHook).filter(e=>e.unchanged),n=e.reduce((e,t)=>e+t.duration,0);return{count:e.length,duration:n}});B(()=>o.value.selected,e=>{K.value.pluginDetailsTableFields=e});function m(){u(),K.value.pluginDetailsShowType=l.value}return(t,s)=>(r(),R(`div`,$e,[I(`div`,et,[L(n)?(r(),R(`div`,tt,[N(Oe,{"build-metrics":e.buildMetrics},{header:g(()=>[I(`div`,nt,[I(`button`,{class:`w8 h8 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`,onClick:s[0]||=e=>L(i)(!1)},[...s[3]||=[I(`i`,{class:`i-ph-sidebar-simple-duotone inline-flex op50`},null,-1)]])])]),_:1},8,[`build-metrics`])])):k(``,!0),I(`div`,rt,[I(`div`,it,[I(`div`,at,[L(n)?k(``,!0):(r(),R(`button`,{key:0,class:`w8 h8 rounded-full cursor-pointer mr1 hover:bg-active flex items-center justify-center`,onClick:s[1]||=e=>L(i)(!0)},[...s[4]||=[I(`i`,{class:`i-ph-sidebar-duotone inline-flex op50`},null,-1)]])),N(ue,{modelValue:o.value,"onUpdate:modelValue":s[2]||=e=>o.value=e,"selected-container-class":`px0! py1 border-none bg-none flex-nowrap! h-full`,rules:a,class:`[&_[icon-catppuccin]]:filter-none! h-full border-none`},null,8,[`modelValue`])]),f.value?(r(),R(`div`,ot,[I(`p`,st,[N($,{number:p.value.count},null,8,[`number`]),s[5]||=w(` module unchanged, but cost `,-1),N(J,{duration:p.value.duration},null,8,[`duration`])]),I(`button`,{class:`rounded-md px2 py1 select-none h-full border border-base rounded-lg hover:bg-active`,title:d.value,onClick:m},[I(`div`,lt,b(d.value),1)],8,ct)])):k(``,!0)]),I(`div`,ut,[N(Qe,{modules:e.modules,"build-metrics":e.buildMetrics,"selected-fields":c.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=A({__name:`ChartNavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:t}){let n=e,i=t,a=M(()=>{let e=[],t=n.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,t)=>(r(),R(`div`,ft,[(r(!0),R(E,null,O(a.value,(e,t)=>(r(),R(E,{key:e.id},[t>0?(r(),R(`div`,pt)):k(``,!0),I(`button`,{class:`hover:bg-active rounded px1`,onClick:t=>i(`select`,e)},[I(`span`,null,b(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=A({__name:`PluginsSunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:i}){let a=e,s=i,c=p(`el`);n(()=>c.value?.append(a.graph.el));function l(e){return de(a.graph.options.getColor?.(e)||`#000`)}return(n,i)=>{let a=D(`tooltip`);return r(),R(`div`,gt,[I(`div`,{ref_key:`el`,ref:c,class:`w-500px`},null,512),I(`div`,_t,[N(ht,{class:`border-b border-base py2`,selected:e.selected,options:e.graph.options,onSelect:i[0]||=e=>s(`select`,e)},null,8,[`selected`,`options`]),e.selected?(r(),R(`div`,vt,[(r(!0),R(E,null,O(e.selected.children,c=>(r(),R(E,{key:c.id},[I(`button`,{class:`ws-nowrap text-nowrap text-left overflow-hidden text-ellipsis text-sm hover:bg-active rounded px2`,onClick:e=>s(`select`,c)},[c.meta?.type===`hook`?(r(),R(`div`,bt,[i[1]||=I(`i`,{class:`i-ph-function-duotone inline-flex`},null,-1),I(`span`,xt,b(c.text),1)])):t(n.$slots,`module`,{child:c},()=>[I(`span`,null,b(c.text||c.id),1)],void 0,1)],8,yt),I(`button`,{class:`relative flex gap-1 items-center hover:bg-active rounded`,onClick:e=>s(`select`,c)},[I(`div`,{class:`h-5 rounded shadow border border-base`,style:T({background:l(c),width:`${c.size/e.selected.size*100}%`})},null,4),N(J,{duration:c.size,class:`text-xs`},null,8,[`duration`]),c.children.length>0&&c.meta?.type!==`hook`?o((r(),R(`div`,{key:0,title:`${c.children.length} dependencies`,class:`text-xs op-fade`},[w(` (`+b(c.children.length)+`) `,1)],8,Ct)),[[a,`${c.children.length} dependencies`]]):k(``,!0)],8,St)],64))),128))])):k(``,!0)])])}}});function Tt(e){let{data:t,nameKey:n,sizeKey:r,rootText:a,nodeType:o,graphOptions:s,onUpdate:c}=e,l=_(void 0),u=_(void 0),d=P(void 0),f=_(void 0),p,m=M(()=>{if(e.tree)return e.tree.value;let i=L(t),s=new Map,c=0,l={id:`~root`,text:a,size:0,sizeSelf:0,children:[]};if(!i?.length)return{map:s,root:l,maxDepth:c};let u=[];u.unshift(()=>{l.size+=l.children.reduce((e,t)=>e+t.size,0),l.subtext=q(l.size).join(` `),l.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function d(e,t,n,r,i){if(s.has(t))return s.get(t);i>c&&(c=i);let a={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return s.set(t,a),r.children.push(a),u.unshift(()=>{let t=a.sizeSelf;a.size+=a.children.reduce((e,t)=>e+t.size,0),a.subtext=q(a.size).join(` `),a.children.length&&t/a.size>.1&&a.children.push({id:`${a.id}-self`,text:``,size:t,sizeSelf:t,subtext:q(t).join(` `),children:[],meta:{...e,path:``,type:o},parent:a}),a.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),a}function f(e){let t=e[n].split(`/`).filter(Boolean),i=l,a=``,c=0;t.forEach((l,u)=>{if(a+=(a?`/`:``)+l,c++,u===t.length-1){let t={id:e[n],text:l,size:e[r],sizeSelf:e[r],subtext:q(e[r]).join(` `),children:[],meta:{...e,path:l,type:o}};i.children.push(t),s.set(e[n],t)}else i=d(e,a,l,i,c)})}return i.forEach(f),u.forEach(e=>e()),{map:s,root:l,maxDepth:c}}),h=M(()=>({animate:K.value.chartAnimation,palette:{stroke:y.value?`#222`:`#555`,fg:y.value?`#fff`:`#000`,bg:y.value?`#111`:`#fff`},getColor:pe(m.value.root,y.value?.8:.9,y.value?1:1.1),getSubtext:e=>e.subtext,...s}));function g(e,t){d.value=e?.meta,e?.children.length||(e=e?.parent),f.value?.select(e,t)}function v(){p?.(),u.value=m.value.root,c?.(),z(()=>{let e=d.value&&m.value.map.get(d.value[n])||null;e&&g(e,!1)}),p=()=>{f.value?.dispose(),f.value=void 0,d.value=void 0}}return z(()=>{B(()=>[m.value,h.value],()=>{v()},{deep:!0,immediate:!1}),v()}),i(()=>{p?.()}),{tree:m,chartOptions:h,graph:f,nodeHover:l,nodeSelected:u,selectedNode:d,selectNode:g,buildGraph:v}}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(A({__name:`PluginDetailsLoader`,props:{plugin:{},query:{},modules:{},root:{}},emits:[`close`],setup(e,{emit:t}){let n=e,i=t,o=ee(),{state:s,isLoading:l,execute:u}=S(async()=>await o.value.call(`vite:inspect:get-plugin-details`,n.query,n.plugin),null),d=a(()=>{u()},100);B(()=>[n.query.vite,n.query.env,n.plugin],()=>{u()}),ne(()=>{d()});let p=M(()=>{let e=new Set;return s.value?.calls?.filter(t=>!e.has(t.module)&&(e.add(t.module),!0))??[]}),h=M(()=>s.value?.loadMetrics.reduce((e,t)=>e+t.duration,0)),_=M(()=>s.value?.transformMetrics.reduce((e,t)=>e+t.duration,0)),v=M(()=>s.value?.resolveIdMetrics.reduce((e,t)=>e+t.duration,0)),y=M(()=>s.value?.calls?.reduce((e,t)=>e+t.duration,0)),C=M(()=>n.modules.map(e=>({mod:e,path:me(e.id,n.root),type:Y(e.id)}))),T=M(()=>ce.filter(e=>C.value.some(t=>e.match.test(t.mod.id))));function D(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}let O=M(()=>{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=oe(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=>!T.value.some(t=>Y(e.module).name===t.name));return[...T.value.map((r,i)=>{let a=n.filter(e=>Y(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":h.value,"~resolves":v.value,"~transforms":_.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}}),A=c(m()),{tree:P,chartOptions:te,graph:F,nodeHover:z,nodeSelected:V,selectedNode:U,selectNode:re,buildGraph:W}=Tt({data:[],tree:O,nameKey:`id`,sizeKey:`duration`,rootText:`Project`,graphOptions:{onClick(e){e&&(z.value=e),U.value=e?.meta},onHover(e){e&&(z.value=e),e===null&&(z.value=void 0)},onLeave(){z.value=void 0},onSelect(e){V.value=e||P.value.root,U.value=e?.meta},getSubtext(e){return G(e.size,!0)}},onUpdate(){F.value=new ie(P.value.root,te.value)}});return B(()=>K.value.pluginDetailsViewType,()=>{W()}),(t,n)=>(r(),R(E,null,[L(l)?(r(),x(f,{key:0})):L(s)?.calls?.length?(r(),R(`div`,Et,[N(se,{class:`absolute right-2 top-1.5`,onClick:n[0]||=e=>i(`close`)}),I(`div`,Dt,[I(`div`,Ot,[N(X,{name:L(s)?.plugin_name},null,8,[`name`])]),I(`div`,kt,[N(J,{duration:v.value,class:`flex gap-1 items-center`,title:`Resolve Id hooks cost: ${L(G)(v.value,!0)}`},{default:g(()=>[...n[3]||=[I(`span`,{class:`i-ph-magnifying-glass-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),N(J,{duration:h.value,class:`flex gap-1 items-center`,title:`Load hooks cost: ${L(G)(h.value,!0)}`},{default:g(()=>[...n[4]||=[I(`span`,{class:`i-ph-upload-simple-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),N(J,{duration:_.value,class:`flex gap-1 items-center`,title:`Transform hooks cost: ${L(G)(_.value,!0)}`},{default:g(()=>[...n[5]||=[I(`span`,{class:`i-ph-magic-wand-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),n[7]||=I(`span`,{class:`op40`},`|`,-1),N(J,{duration:y.value,class:`flex gap-1 items-center`,title:`Total build cost: ${L(G)(y.value,!0)}`},{default:g(()=>[...n[6]||=[I(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),n[8]||=I(`span`,{class:`op40`},`|`,-1),N($,{number:p.value.length,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${p.value.length}`},null,8,[`number`,`title`]),n[9]||=I(`span`,{class:`op40`},`|`,-1),N($,{number:L(s)?.calls?.length??0,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${L(s)?.calls?.length??0}`},null,8,[`number`,`title`])]),I(`div`,At,[I(`button`,{class:j([L(K).pluginDetailsViewType===`flow`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:n[1]||=e=>L(K).pluginDetailsViewType=`flow`},[...n[10]||=[I(`div`,{class:`i-ph-git-branch-duotone rotate-180`},null,-1),w(` Build Flow `,-1)]],2),I(`button`,{class:j([L(K).pluginDetailsViewType===`sunburst`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:n[2]||=e=>L(K).pluginDetailsViewType=`sunburst`},[...n[11]||=[I(`div`,{"i-ph-chart-sunburst-duotone":``},null,-1),w(` Sunburst `,-1)]],2)])]),I(`div`,jt,[L(K).pluginDetailsViewType===`flow`?(r(),x(dt,{key:0,modules:e.modules,"build-metrics":L(s),root:e.root},null,8,[`modules`,`build-metrics`,`root`])):k(``,!0),L(K).pluginDetailsViewType===`sunburst`&&L(F)?(r(),x(wt,{key:1,graph:L(F),selected:L(V),onSelect:L(re)},{module:g(({child:t})=>[N(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:D(t.meta?.graphModuleId)},null,8,[`id`,`cwd`,`link`])]),_:1},8,[`graph`,`selected`,`onSelect`])):k(``,!0)])])):(r(),R(`div`,Mt,[...n[12]||=[I(`span`,{class:`italic op50`},` No data `,-1)]])),N(le,{"hover-x":A.x,"hover-y":A.y},{default:g(()=>[L(z)?(r(),R(`div`,Nt,[L(z).meta?.title?(r(),R(`div`,Pt,[w(b(L(z).meta.title)+` `,1),N(J,{duration:L(z).meta.duration},null,8,[`duration`])])):(r(),R(E,{key:1},[L(z).meta?.module?(r(),R(`div`,Ft,[N(H,{id:L(z).meta.module,cwd:e.root,link:!1},null,8,[`id`,`cwd`])])):k(``,!0),L(z).meta?.module?(r(),R(`div`,It,[I(`div`,Lt,[n[13]||=I(`label`,{class:`text-xs opacity-70`},`Start Time`,-1),I(`time`,{datetime:new Date(L(z).meta.timestamp_start).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},b(L(Q)(L(z).meta.timestamp_start)),9,Rt)]),I(`div`,zt,[n[14]||=I(`label`,{class:`text-xs opacity-70`},`End Time`,-1),I(`time`,{datetime:new Date(L(z).meta.timestamp_end).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},b(L(Q)(L(z).meta.timestamp_end)),9,Bt)]),I(`div`,Vt,[n[15]||=I(`label`,{class:`text-xs op70`},`Duration`,-1),N(J,{duration:L(z).meta.duration},null,8,[`duration`])])])):(r(),R(`div`,Ht,[N(J,{duration:L(z).meta?.duration},null,8,[`duration`])]))],64))])):k(``,!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=A({__name:`PluginsFlatList`,props:{plugins:{},itemSize:{},pageMode:{type:Boolean,default:!0},scroller:{default:`dynamic`}},setup(e){let t=d();return(n,i)=>(r(),R(`div`,Wt,[N(ae,{items:e.plugins,"key-prop":`plugin_id`,"item-size":e.itemSize,"page-mode":e.pageMode,scroller:e.scroller},{default:g(({item:e})=>[I(`div`,Gt,[N(L(v),{to:{path:L(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:g(()=>[I(`div`,Kt,` #`+b(e.plugin_id),1),I(`span`,qt,[N(X,{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=A({__name:`plugins`,setup(t){let n=ee(),i=d(),o=e(),s=_(null),c=_([]),p=P(!0),m=P(null),g=M(()=>typeof i.query.plugin==`string`?i.query.plugin:void 0),v=P({search:i.query.search||``,selected:i.query.plugin_types?G(i.query.plugin_types):null}),y=M(()=>s.value?.instances[0]),S=M(()=>y.value?.environments[0]||``),C=M(()=>y.value?.root||``),T=M(()=>!y.value?.vite||!S.value?null:{vite:y.value.vite,env:S.value}),E=M(()=>y.value?.plugins.map((e,t)=>L(e,t))??[]),D=M(()=>[...V.filter(e=>E.value.some(t=>e.match.test(t.name))),re]),O=M(()=>{let e=E.value;return v.value.selected&&(e=e.filter(e=>{let t=U(e.name);return v.value.selected.includes(t.name)})),e}),A=u(()=>O.value,()=>new fe(O.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),j=M(()=>v.value.search?A.value.search(v.value.search).map(e=>e.item):O.value);l(v.value,e=>{o.replace({query:ie({...i.query,search:e.search||void 0,plugin_types:e.selected||void 0})})},{debounce:500});function L(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 z(){g.value&&o.replace({query:{...i.query,plugin:void 0}})}async function B(e={}){e.silent||(p.value=!0),m.value=null;try{s.value=await n.value.call(`vite:inspect:get-metadata`),T.value?c.value=(await n.value.call(`vite:inspect:get-modules-list`,T.value)).map(W):c.value=[]}catch(e){m.value=e}finally{e.silent||(p.value=!1)}}let H=a(()=>{B({silent:!0})},100);function W(e){return{...e,imports:e.deps.map(e=>({module_id:e}))}}function G(e){return Array.isArray(e)?e.map(String):[String(e)]}function ie(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}return h(()=>{B()}),ne(()=>{H()}),F(`Escape`,e=>{e.preventDefault(),e.isTrusted&&!e.repeat&&z()}),(e,t)=>p.value?(r(),x(f,{key:0,text:`Loading plugins...`})):m.value?(r(),R(`div`,Yt,[t[3]||=I(`div`,{class:`i-ph-warning-duotone text-4xl text-amber`},null,-1),I(`div`,Xt,b(m.value.message),1),I(`button`,{class:`btn-action`,onClick:t[0]||=e=>B()},[...t[2]||=[I(`span`,{class:`i-ph-arrow-clockwise-duotone`},null,-1),w(` Retry `,-1)]])])):(r(),R(`div`,Zt,[I(`div`,Qt,[N(ue,{modelValue:v.value,"onUpdate:modelValue":t[1]||=e=>v.value=e,rules:D.value},null,8,[`modelValue`,`rules`])]),N(Jt,{plugins:j.value??[],scroller:`window`},null,8,[`plugins`]),I(`div`,$t,[I(`span`,en,b(j.value.length)+` of `+b(E.value.length||0),1)]),g.value&&T.value?(r(),R(`div`,{key:0,class:`fixed inset-0 backdrop-blur-8 backdrop-brightness-95 z-panel-content`,onClick:te(z,[`self`])},[(r(),R(`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`},[N(Ut,{plugin:g.value,query:T.value,modules:c.value,root:C.value,onClose:z},null,8,[`plugin`,`query`,`modules`,`root`])]))])):k(``,!0)]))}});export{tn as default};
|