@nuxt/devtools 4.0.0-alpha.10 → 4.0.0-alpha.11
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/README.md +2 -0
- package/dist/chunks/analyze-build.mjs +1 -2
- package/dist/chunks/code-server.mjs +1 -2
- package/dist/chunks/data-inspector.mjs +82 -0
- package/dist/chunks/module-main.mjs +24 -94
- package/dist/chunks/vite-inspect.mjs +1 -2
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-ki8oaugs.js +1 -0
- package/dist/client/_nuxt/analyze-build-ne41xjd4.js +1 -0
- package/dist/client/_nuxt/{assets-fyld29gf.js → assets-f8xklgq9.js} +2 -2
- package/dist/client/_nuxt/{auth-required-panel-mm5lidl3.js → auth-required-panel-hlhmg87z.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/491c94f8-60b1-4f88-a55c-3cb1bf18dd79.json +1 -0
- package/dist/client/_nuxt/cd81saaa.js +2 -0
- package/dist/client/_nuxt/{client-botfq0nw.js → client-iet3i2jx.js} +1 -1
- package/dist/client/_nuxt/code-diff-f21wjzw6.js +8 -0
- package/dist/client/_nuxt/code-snippets-e28cw1b6.js +1 -0
- package/dist/client/_nuxt/{components-k5rsm3c3.js → components-o6uyjkn7.js} +1 -1
- package/dist/client/_nuxt/{composable-item-o8crh7o9.js → composable-item-ocorhvb4.js} +1 -1
- package/dist/client/_nuxt/composables-li5sexni.js +1 -0
- package/dist/client/_nuxt/{custom-_name_-j6w4b10b.js → custom-_name_-m5d1q22j.js} +1 -1
- package/dist/client/_nuxt/{data-schema-button-j2dsypzz.js → data-schema-button-kil5d35s.js} +1 -1
- package/dist/client/_nuxt/{data-schema-drawer-9s1351p5.js → data-schema-drawer-pb9ef6ns.js} +1 -1
- package/dist/client/_nuxt/{debug-muupfuzb.js → debug-nrr1l0ts.js} +1 -1
- package/dist/client/_nuxt/{default-k6jiq1wt.js → default-m4s11ttb.js} +1 -1
- package/dist/client/_nuxt/dialog-loe55arg.js +1 -0
- package/dist/client/_nuxt/dist-gklva25a.js +1 -0
- package/dist/client/_nuxt/{duration-display-kup58tqe.js → duration-display-fjuy04uz.js} +1 -1
- package/dist/client/_nuxt/{editor-bzxz1rcq.js → editor-eakm7xzk.js} +1 -1
- package/dist/client/_nuxt/{error-404-25vom0cq.js → error-404-nauqrial.js} +1 -1
- package/dist/client/_nuxt/error-404.css-k0vnbfeq.css +1 -0
- package/dist/client/_nuxt/{error-500-htafeoa3.js → error-500-h4c50p0t.js} +1 -1
- package/dist/client/_nuxt/error-500.css-lhh2zs4d.css +1 -0
- package/dist/client/_nuxt/{error-lj28vdr1.js → error-nukkk3mr.js} +1 -1
- package/dist/client/_nuxt/{filepath-item-jdy5gc4m.js → filepath-item-l8m3u23m.js} +1 -1
- package/dist/client/_nuxt/full-kcw32vsy.js +1 -0
- package/dist/client/_nuxt/fuse-ipb957gg.js +1 -0
- package/dist/client/_nuxt/{help-fab-ll6mbhgs.js → help-fab-ccbj2zxc.js} +1 -1
- package/dist/client/_nuxt/{hooks-hgffr865.js → hooks-d7ream10.js} +1 -1
- package/dist/client/_nuxt/{imports-i2fnwttt.js → imports-eqmikopw.js} +1 -1
- package/dist/client/_nuxt/{launch-page-ksxhzp2z.js → launch-page-l2e581he.js} +1 -1
- package/dist/client/_nuxt/modules-j9bs520l.js +1 -0
- package/dist/client/_nuxt/nbadge-n73p68uz.js +1 -0
- package/dist/client/_nuxt/{nbutton-mtj8qzr9.js → nbutton-np26z5og.js} +1 -1
- package/dist/client/_nuxt/ncard-kyrmtdmn.js +1 -0
- package/dist/client/_nuxt/{ncheckbox-mksfz5p0.js → ncheckbox-hmazj87n.js} +1 -1
- package/dist/client/_nuxt/{ncode-block-pfi5niis.js → ncode-block-ltlsxf5u.js} +1 -1
- package/dist/client/_nuxt/ndialog-mpi6dkdo.js +3 -0
- package/dist/client/_nuxt/{ndrawer-h46qfenr.js → ndrawer-hw8gqgye.js} +1 -1
- package/dist/client/_nuxt/{ndropdown-ow0z3stn.js → ndropdown-l76w9qwv.js} +1 -1
- package/dist/client/_nuxt/nicon-co5pnhft.js +4 -0
- package/dist/client/_nuxt/{nicon-title-e2gzkzl3.js → nicon-title-ejbxuupx.js} +1 -1
- package/dist/client/_nuxt/{nlink-j55iyj5x.js → nlink-h3jrz76l.js} +1 -1
- package/dist/client/_nuxt/{nloading-k4sy0f8c.js → nloading-lhpm96ki.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown-mnxob7ua.js → nmarkdown-7qnv8atx.js} +1 -1
- package/dist/client/_nuxt/{nnavbar-dwxbkqvw.js → nnavbar-g38amume.js} +1 -1
- package/dist/client/_nuxt/none-ju85xmqv.js +1 -0
- package/dist/client/_nuxt/npanel-grids-fa3ah9jo.js +1 -0
- package/dist/client/_nuxt/npm-napoklx5.js +1 -0
- package/dist/client/_nuxt/{nsection-block-cb29dqkc.js → nsection-block-kzcj1vk3.js} +1 -1
- package/dist/client/_nuxt/{nselect-glgbbae4.js → nselect-md65qzv8.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs-jzyd56a1.js → nselect-tabs-brv0wfuv.js} +1 -1
- package/dist/client/_nuxt/{nsplit-pane-b5ki4jwa.js → nsplit-pane-bs5dfe16.js} +1 -1
- package/dist/client/_nuxt/{ntext-input-lzyyx3ym.js → ntext-input-obq09i2s.js} +1 -1
- package/dist/client/_nuxt/{ntip-oohvtkqd.js → ntip-nv65xhm1.js} +1 -1
- package/dist/client/_nuxt/{nuxt-f4tmbbs7.js → nuxt-hj3jyofn.js} +1 -1
- package/dist/client/_nuxt/{nuxt-link-dgri2bli.js → nuxt-link-nsgkom6k.js} +1 -1
- package/dist/client/_nuxt/{nuxt-logo-gzcu6lh0.js → nuxt-logo-dead1uws.js} +1 -1
- package/dist/client/_nuxt/{open-graph-mc8dh9qn.js → open-graph-d1iodawb.js} +1 -1
- package/dist/client/_nuxt/{overview-lpfgamus.js → overview-cbabgv3v.js} +1 -1
- package/dist/client/_nuxt/{pages-bv99uu3p.js → pages-oi6j0pbk.js} +1 -1
- package/dist/client/_nuxt/{payload-k2hrsm04.js → payload-ie12v3te.js} +1 -1
- package/dist/client/_nuxt/{plugins-ljid8ktq.js → plugins-20xi1djl.js} +1 -1
- package/dist/client/_nuxt/ready-ikhds7hc.js +2 -0
- package/dist/client/_nuxt/rolldown-runtime-f96lzs6p.js +1 -0
- package/dist/client/_nuxt/{runtime-configs-lvgzbcdu.js → runtime-configs-fq4qn3y8.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs-iwv9ewrw.js → server-route-inputs-c90qumt8.js} +1 -1
- package/dist/client/_nuxt/{server-routes-mkqbltfh.js → server-routes-mcizq24b.js} +1 -1
- package/dist/client/_nuxt/server-tasks-cicwbkvm.js +1 -0
- package/dist/client/_nuxt/{settings-ngc5p8qn.js → settings-noeex3c7.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list-chmjyp53.js → stacktrace-list-gmhj3wmk.js} +1 -1
- package/dist/client/_nuxt/{state-commands-f4h87cfl.js → state-commands-bzr47er3.js} +1 -1
- package/dist/client/_nuxt/{state-components-jymg7dj7.js → state-components-jvq23n80.js} +1 -1
- package/dist/client/_nuxt/state-editor-h7d9pjpa.js +1 -0
- package/dist/client/_nuxt/{state-modules-bewlxq5o.js → state-modules-fie7gkqb.js} +1 -1
- package/dist/client/_nuxt/{state-routes-f5cna95h.js → state-routes-ntw79bv6.js} +1 -1
- package/dist/client/_nuxt/state-schema-eifqm6o4.js +1 -0
- package/dist/client/_nuxt/{state-tabs-m7neqayd.js → state-tabs-dhcec3o6.js} +1 -1
- package/dist/client/_nuxt/storage-m9yh2hjt.js +1 -0
- package/dist/client/_nuxt/{tab-icon-nktg799o.js → tab-icon-bw4o7q2t.js} +1 -1
- package/dist/client/_nuxt/telemetry-mienojg2.js +1 -0
- package/dist/client/_nuxt/{timeline-o9hhhb94.js → timeline-ce3m8i2h.js} +1 -1
- package/dist/client/_nuxt/unhead.dnki-vlv7-jmz34zx6.js +1 -0
- package/dist/client/_nuxt/{unocss-runtime-bjggyd5e.js → unocss-runtime-htk43m9c.js} +1 -1
- package/dist/client/_nuxt/utils-d6zq4cvn.js +1 -0
- package/dist/client/_nuxt/vendor/json-editor-vue-h1waqukq.js +3862 -0
- package/dist/client/_nuxt/vendor/{markdown-exit-n4f1gsja.js → markdown-exit-nzr6hp55.js} +6 -6
- package/dist/client/_nuxt/vendor/quicktype-core-lz5bp16m.js +929 -0
- package/dist/client/_nuxt/vendor/shiki-g3svwmfz.js +152 -0
- package/dist/client/_nuxt/vendor/unocss-hvwio62w.js +3 -0
- package/dist/client/_nuxt/vendor/vis-bjkylbfi.js +30 -0
- package/dist/client/_nuxt/{virtual-files-kcs310xn.js → virtual-files-la0ohl9t.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/vite-devtools.client.js +5 -1
- package/dist/shared/{devtools.CCWq4fFE.mjs → devtools.BNZC-DT8.mjs} +1 -0
- package/package.json +23 -23
- package/dist/client/_nuxt/__blank-dil3nwfh.js +0 -1
- package/dist/client/_nuxt/analyze-build-2e03hfez.js +0 -1
- package/dist/client/_nuxt/builds/meta/dbb6f1eb-fdec-4078-b409-19d1ed6035a2.json +0 -1
- package/dist/client/_nuxt/code-diff-oxve94ak.js +0 -8
- package/dist/client/_nuxt/code-snippets-mcrkbsd4.js +0 -1
- package/dist/client/_nuxt/composables-ml69kqh9.js +0 -1
- package/dist/client/_nuxt/dialog-c7wnj3nl.js +0 -1
- package/dist/client/_nuxt/dist-d6zuldkp.js +0 -1
- package/dist/client/_nuxt/error-404.css-mpcol2vk.css +0 -1
- package/dist/client/_nuxt/error-500.css-273x0c3h.css +0 -1
- package/dist/client/_nuxt/full-gpj1mlf5.js +0 -1
- package/dist/client/_nuxt/fuse-blwyun20.js +0 -1
- package/dist/client/_nuxt/modules-dae72omf.js +0 -1
- package/dist/client/_nuxt/nbadge-oyy0wjng.js +0 -1
- package/dist/client/_nuxt/ncard-mtvdl2wf.js +0 -1
- package/dist/client/_nuxt/ndialog-dj1ywkc1.js +0 -3
- package/dist/client/_nuxt/nicon-obdu3k9r.js +0 -3
- package/dist/client/_nuxt/nju74r39.js +0 -2
- package/dist/client/_nuxt/none-md25735q.js +0 -1
- package/dist/client/_nuxt/npanel-grids-ga8arlvs.js +0 -1
- package/dist/client/_nuxt/npm-febdntx4.js +0 -1
- package/dist/client/_nuxt/ready-h6bi8le4.js +0 -1
- package/dist/client/_nuxt/rolldown-runtime-ln9q81id.js +0 -1
- package/dist/client/_nuxt/server-tasks-kbf4txeq.js +0 -1
- package/dist/client/_nuxt/state-editor-bg13n53w.js +0 -1
- package/dist/client/_nuxt/state-schema-espdew31.js +0 -1
- package/dist/client/_nuxt/storage-cep8dxy9.js +0 -1
- package/dist/client/_nuxt/telemetry-9f19c0i9.js +0 -1
- package/dist/client/_nuxt/unhead.dgx-hwv-uc-gaht5h60.js +0 -1
- package/dist/client/_nuxt/utils-bisj7255.js +0 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-lmhxk84q.js +0 -3862
- package/dist/client/_nuxt/vendor/quicktype-core-b6sxxdgw.js +0 -929
- package/dist/client/_nuxt/vendor/shiki-abzmnals.js +0 -152
- package/dist/client/_nuxt/vendor/unocss-hqrnsbiy.js +0 -3
- package/dist/client/_nuxt/vendor/vis-i54ppuvk.js +0 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,H as t,Qt as n,Yt as r,a as i,bt as a,ct as o,d as s,f as c,h as l,ot as u,p as d,q as f,x as p}from"./vendor/json-editor-vue-
|
|
1
|
+
import{C as e,H as t,Qt as n,Yt as r,a as i,bt as a,ct as o,d as s,f as c,h as l,ot as u,p as d,q as f,x as p}from"./vendor/json-editor-vue-h1waqukq.js";import{M as m}from"./utils-d6zq4cvn.js";import{t as h}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as g}from"./ncard-kyrmtdmn.js";import{t as _}from"./fuse-ipb957gg.js";import{r as v}from"./state-routes-ntw79bv6.js";import{t as y}from"./ncode-block-ltlsxf5u.js";import{t as b}from"./composables-ioamscf4.js";import{t as x}from"./npanel-grids-fa3ah9jo.js";import{t as S}from"./nsplit-pane-bs5dfe16.js";import{t as C}from"./help-fab-ccbj2zxc.js";import{t as w}from"./nnavbar-g38amume.js";var T={},E={class:`markdown-body`};function D(e,n){return t(),l(`div`,E,[...n[0]||=[c(`template`,null,[c(`div`,{class:`markdown-body`},[c(`h1`,null,`Virtual Files`),c(`p`,null,`Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.`)])],-1)]])}var O=h(T,[[`render`,D]]),k=[`onClick`],A={key:0,"h-full":``,"of-hidden":``,flex:`~ col`},j={border:`b base`,"flex-none":``,px4:``,py2:``,"text-sm":``,op75:``},M=e({__name:`virtual-files`,setup(e){b({icon:`i-carbon-border-none`,title:`Virtual Files`,layout:`full`,category:`advanced`});let h=a(``),T=m(),E=v(),D=a();u(()=>{if(!E.value)return;let e=`/_vfs.json/${encodeURIComponent(E.value)}`;fetch(e,{headers:{accept:`application/json`}}).then(e=>e.json()).then(e=>D.value=e.current)});function M(e){if(T.value?.rootDir)return e.startsWith(T.value?.rootDir)?e.slice(T.value.rootDir.length):e}let N=s(()=>T.value?T.value.entries.filter(e=>!e.id.startsWith(`${T.value?.rootDir||``}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),P=s(()=>new _(N.value,{keys:[`id`,`path`]})),F=s(()=>h.value?P.value.search(h.value).map(e=>e.item):N.value);return(e,a)=>{let s=w,u=y,m=g,_=x,v=S,b=O,T=C;return t(),l(i,null,[p(v,{class:`virtual-files`,"storage-key":`tab-virtual-files`},{left:o(()=>[p(s,{search:h.value,"onUpdate:search":a[0]||=e=>h.value=e,"no-padding":``,p3:``},null,8,[`search`]),(t(!0),l(i,null,f(F.value,e=>(t(),l(i,{key:e.id},[c(`button`,{block:``,"w-full":``,"select-none":``,truncate:``,px2:``,py1:``,"text-start":``,"text-sm":``,"font-mono":``,class:r(e.id===D.value?.id?`text-primary n-bg-active`:`text-secondary hover:n-bg-hover`),onClick:t=>E.value=e.id},n(M(e.id)),11,k),a[1]||=c(`div`,{"x-divider":``},null,-1)],64))),128))]),right:o(()=>[D.value?.content?(t(),l(`div`,A,[c(`div`,j,[c(`code`,null,n(D.value.id),1)]),p(u,{"h-full":``,"of-auto":``,"text-sm":``,code:D.value.content,lang:`typescript`},null,8,[`code`])])):(t(),d(_,{key:1},{default:o(()=>[p(m,{px6:``,py2:``},{default:o(()=>[...a[2]||=[c(`span`,{op75:``},`Select a file to start`,-1)]]),_:1})]),_:1}))]),_:1}),p(T,null,{default:o(()=>[p(b)]),_:1})],64)}}});export{M as default};
|
package/dist/client/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/cd81saaa.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-meav5jmw.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-lb1ewor6.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-bhad58wt.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/cd81saaa.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-hj3jyofn.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-h1waqukq.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rolldown-runtime-f96lzs6p.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nicon-co5pnhft.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ready-ikhds7hc.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-2c3gpsw0.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-g3svwmfz.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unhead.dnki-vlv7-jmz34zx6.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/composables-li5sexni.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-link-nsgkom6k.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/utils-d6zq4cvn.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-gklva25a.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npm-napoklx5.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-hvwio62w.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/editor-eakm7xzk.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-routes-ntw79bv6.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/telemetry-mienojg2.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nloading-lhpm96ki.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_plugin-vue_export-helper-d9irwgla.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ntext-input-obq09i2s.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/tab-icon-bw4o7q2t.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nbutton-np26z5og.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndialog-mpi6dkdo.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncard-kyrmtdmn.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/fuse-ipb957gg.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-tabs-dhcec3o6.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-commands-bzr47er3.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-logo-dead1uws.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dialog-loe55arg.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-schema-eifqm6o4.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/cd81saaa.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-m4s11ttb.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-kcw32vsy.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-ju85xmqv.js"><link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-ivoxtfjk.css"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-pb9ef6ns.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect-md65qzv8.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown-l76w9qwv.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block-ltlsxf5u.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-iet3i2jx.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer-hw8gqgye.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-lz5bp16m.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-htk43m9c.js"><link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-k0vnbfeq.css"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-nauqrial.js"><link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-lhh2zs4d.css"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-h4c50p0t.js"></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"491c94f8-60b1-4f88-a55c-3cb1bf18dd79",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1787118759169,false]</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '@nuxt/kit';
|
|
2
|
-
export { m as default } from './shared/devtools.
|
|
2
|
+
export { m as default } from './shared/devtools.BNZC-DT8.mjs';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { DEVTOOLS_MOUNT_PATH } from "@vitejs/devtools-kit/constants";
|
|
1
2
|
import { defineNuxtPlugin } from "#imports";
|
|
2
3
|
export default defineNuxtPlugin(() => {
|
|
3
|
-
|
|
4
|
+
const script = document.createElement("script");
|
|
5
|
+
script.type = "module";
|
|
6
|
+
script.src = `${DEVTOOLS_MOUNT_PATH}embedded.js`;
|
|
7
|
+
document.body.appendChild(script);
|
|
4
8
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.11",
|
|
5
5
|
"description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devtools.nuxt.com",
|
|
@@ -49,15 +49,14 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@devframes/plugin-code-server": "^0.
|
|
53
|
-
"@devframes/plugin-data-inspector": "^0.
|
|
52
|
+
"@devframes/plugin-code-server": "^0.9.2",
|
|
53
|
+
"@devframes/plugin-data-inspector": "^0.9.2",
|
|
54
54
|
"@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29755283.b4586ef2",
|
|
55
|
-
"@vitejs/devtools": "^0.
|
|
56
|
-
"@vitejs/devtools-kit": "^0.
|
|
57
|
-
"birpc": "^4.
|
|
55
|
+
"@vitejs/devtools": "^0.5.0",
|
|
56
|
+
"@vitejs/devtools-kit": "^0.5.0",
|
|
57
|
+
"birpc": "^4.1.0",
|
|
58
58
|
"consola": "^3.4.2",
|
|
59
59
|
"destr": "^2.0.5",
|
|
60
|
-
"diff": "^9.0.0",
|
|
61
60
|
"error-stack-parser-es": "^2.0.1",
|
|
62
61
|
"fast-npm-meta": "^2.2.0",
|
|
63
62
|
"hookable": "^6.1.1",
|
|
@@ -65,7 +64,7 @@
|
|
|
65
64
|
"launch-editor": "^2.14.1",
|
|
66
65
|
"local-pkg": "^1.2.1",
|
|
67
66
|
"magicast": "^0.5.4",
|
|
68
|
-
"ohash": "^2.0.
|
|
67
|
+
"ohash": "^2.0.12",
|
|
69
68
|
"pathe": "^2.0.3",
|
|
70
69
|
"perfect-debounce": "^2.1.0",
|
|
71
70
|
"pkg-types": "^2.3.1",
|
|
@@ -74,30 +73,31 @@
|
|
|
74
73
|
"tinyexec": "^1.3.0",
|
|
75
74
|
"tinyglobby": "^0.2.17",
|
|
76
75
|
"unstorage": "^1.17.5",
|
|
77
|
-
"verkit": "^0.
|
|
78
|
-
"vite-plugin-vue-tracer": "^1.
|
|
79
|
-
"ws": "^8.21.
|
|
80
|
-
"@nuxt/devtools-kit": "4.0.0-alpha.
|
|
76
|
+
"verkit": "^0.4.0",
|
|
77
|
+
"vite-plugin-vue-tracer": "^1.5.0",
|
|
78
|
+
"ws": "^8.21.3",
|
|
79
|
+
"@nuxt/devtools-kit": "4.0.0-alpha.11"
|
|
81
80
|
},
|
|
82
81
|
"devDependencies": {
|
|
83
82
|
"@antfu/utils": "^9.3.0",
|
|
84
83
|
"@iconify-json/bxl": "^1.2.4",
|
|
85
84
|
"@iconify-json/carbon": "^1.2.25",
|
|
86
|
-
"@iconify-json/logos": "^1.2.
|
|
85
|
+
"@iconify-json/logos": "^1.2.13",
|
|
87
86
|
"@iconify-json/ph": "^1.2.2",
|
|
88
87
|
"@iconify-json/ri": "^1.2.10",
|
|
89
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
88
|
+
"@iconify-json/simple-icons": "^1.2.93",
|
|
90
89
|
"@iconify-json/tabler": "^1.2.38",
|
|
91
90
|
"@parcel/watcher": "^2.6.0",
|
|
92
91
|
"@types/markdown-it-link-attributes": "^3.0.5",
|
|
93
|
-
"@unhead/schema": "^3.2
|
|
92
|
+
"@unhead/schema": "^3.3.2",
|
|
94
93
|
"@unocss/nuxt": "^66.7.5",
|
|
95
94
|
"@unocss/preset-icons": "^66.7.5",
|
|
96
95
|
"@unocss/preset-uno": "^66.7.5",
|
|
97
96
|
"@unocss/runtime": "^66.7.5",
|
|
98
|
-
"@vitejs/devtools": "^0.
|
|
97
|
+
"@vitejs/devtools": "^0.5.0",
|
|
99
98
|
"@vueuse/nuxt": "^14.4.0",
|
|
100
99
|
"cronstrue": "^3.24.0",
|
|
100
|
+
"diff": "^9.0.0",
|
|
101
101
|
"exsolve": "^1.1.1",
|
|
102
102
|
"floating-vue": "^5.2.2",
|
|
103
103
|
"fuse.js": "^7.5.0",
|
|
@@ -112,10 +112,10 @@
|
|
|
112
112
|
"package-manager-detector": "^1.8.0",
|
|
113
113
|
"quicktype-core": "22.0.0",
|
|
114
114
|
"scule": "^1.3.0",
|
|
115
|
-
"shiki": "^4.4.
|
|
116
|
-
"shiki-codegen": "^4.4.
|
|
115
|
+
"shiki": "^4.4.3",
|
|
116
|
+
"shiki-codegen": "^4.4.3",
|
|
117
117
|
"theme-vitesse": "^1.0.0",
|
|
118
|
-
"tsx": "^4.23.
|
|
118
|
+
"tsx": "^4.23.12",
|
|
119
119
|
"ua-parser-modern": "^0.1.1",
|
|
120
120
|
"unbuild": "^3.6.1",
|
|
121
121
|
"unimport": "^6.4.0",
|
|
@@ -123,11 +123,11 @@
|
|
|
123
123
|
"unplugin-vue": "^7.2.0",
|
|
124
124
|
"unplugin-vue-markdown": "^32.0.0",
|
|
125
125
|
"vanilla-jsoneditor": "^3.13.0",
|
|
126
|
-
"vis-data": "^8.0.
|
|
127
|
-
"vis-network": "^10.1.
|
|
126
|
+
"vis-data": "^8.0.5",
|
|
127
|
+
"vis-network": "^10.1.1",
|
|
128
128
|
"vite-plugin-inspect": "^12.0.2",
|
|
129
|
-
"vue-tsc": "^3.3.
|
|
130
|
-
"vue-virtual-scroller": "^3.0.
|
|
129
|
+
"vue-tsc": "^3.3.10",
|
|
130
|
+
"vue-virtual-scroller": "^3.0.5"
|
|
131
131
|
},
|
|
132
132
|
"scripts": {
|
|
133
133
|
"build": "pnpm dev:prepare && pnpm build:module && pnpm build:client",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,H as t,h as n}from"./vendor/json-editor-vue-lmhxk84q.js";import{t as r}from"./composables-ioamscf4.js";var i={"h-screen":``,"w-screen":``,"bg-black":``},a=e({__name:`__blank`,setup(e){return r({layout:`none`}),(e,r)=>(t(),n(`div`,i))}});export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./nuxt-f4tmbbs7.js";import{C as t,S as n,h as r}from"./nicon-obdu3k9r.js";import{C as i,H as a,Qt as o,Yt as s,a as c,b as l,bt as u,ct as d,d as f,f as p,h as m,kt as h,lt as g,m as _,p as v,q as y,x as b}from"./vendor/json-editor-vue-lmhxk84q.js";import{xt as x}from"./ready-h6bi8le4.js";import{_ as S,g as C}from"./utils-bisj7255.js";import{t as w}from"./npm-febdntx4.js";import{t as T}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as E}from"./ntext-input-lzyyx3ym.js";import{t as D}from"./nbutton-mtj8qzr9.js";import{t as O}from"./ndialog-dj1ywkc1.js";import{t as k}from"./state-commands-f4h87cfl.js";import{t as A}from"./telemetry-9f19c0i9.js";import{t as j}from"./ncode-block-pfi5niis.js";import{t as M}from"./composables-ioamscf4.js";import{t as N}from"./filepath-item-jdy5gc4m.js";import{t as P}from"./npanel-grids-ga8arlvs.js";import{t as F}from"./nsplit-pane-b5ki4jwa.js";import{t as I}from"./ntip-oohvtkqd.js";import{t as L}from"./ncheckbox-mksfz5p0.js";import{t as R}from"./help-fab-ll6mbhgs.js";var z={"h-full":``,grid:`~ rows-[max-content_1fr]`},B={flex:`~ wrap`,"w-full":``},V=[`onClick`],H={key:0,flex:`~ col gap-4 items-center justify-center`,p4:``},U={grid:`~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center`,"w-100":``},W=`/__nuxt_devtools__/client`,G=Object.assign(i({__name:`BuildAnalyzeDetails`,props:{current:{},prev:{}},setup(n){let i=n,v=`${e().app.baseURL.replace(W,`/`)}/__nuxt_devtools__/analyze/`.replace(/\/+/g,`/`),S=f(()=>{let e=[{name:`Overview`,id:`overview`}];return i.current.features.bundleClient&&e.push({name:`Client Bundle`,id:`bundle-client`}),i.current.features.bundleNitro&&e.push({name:`Nitro Bundle`,id:`bundle-nitro`}),i.current.features.viteInspect&&e.push({name:`Vite Inspect`,id:`vite-inspect`}),e}),C=u(S.value[0]);function w(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function T(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(1)}GB`}async function E(e){return r.clearAnalyzeBuilds([e])}return(e,r)=>{let i=N,u=D;return a(),m(`div`,z,[p(`div`,B,[(a(!0),m(c,null,y(S.value,(e,t)=>(a(),m(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:s(e.id===C.value?.id?``:`border-b`),onClick:t=>C.value=e},[p(`div`,{class:s(e.id===C.value?.id?``:`op30`)},o(e.name),3)],10,V))),128)),r[1]||=p(`div`,{border:`b base`,"flex-auto":``},null,-1)]),C.value?.id===`overview`?(a(),m(`div`,H,[r[15]||=p(`div`,{"flex-auto":``},null,-1),p(`div`,U,[r[10]||=p(`div`,{"i-carbon-commit":``,"text-xl":``},null,-1),p(`div`,null,[r[2]||=p(`div`,{"text-sm":``,op50:``},` Name `,-1),p(`div`,null,o(n.current.name),1)]),r[11]||=p(`div`,{"i-carbon-time":``,"text-xl":``},null,-1),p(`div`,null,[r[3]||=p(`div`,{"text-sm":``,op50:``},` Build duration `,-1),p(`div`,null,o(w(n.current)),1)]),n.current.size?.clientBundle?(a(),m(c,{key:0},[r[5]||=p(`div`,{"i-carbon-cics-program":``,"text-xl":``},null,-1),p(`div`,null,[r[4]||=p(`div`,{"text-sm":``,op50:``},` Client bundle size `,-1),p(`div`,null,o(T(n.current.size.clientBundle)),1)])],64)):_(``,!0),n.current.size?.nitroBundle?(a(),m(c,{key:1},[r[7]||=p(`div`,{"i-carbon-bare-metal-server":``,"text-xl":``},null,-1),p(`div`,null,[r[6]||=p(`div`,{"text-sm":``,op50:``},` Nitro bundle size `,-1),p(`div`,null,o(T(n.current.size.nitroBundle)),1)])],64)):_(``,!0),r[12]||=p(`div`,{"i-carbon-edge-node":``,"text-xl":``},null,-1),p(`div`,null,[r[8]||=p(`div`,{"text-sm":``,op50:``},` Built `,-1),p(`div`,null,o(h(t)(new Date(n.current.endTime))),1)]),r[13]||=p(`div`,{"i-carbon:folder-parent":``,"text-xl":``},null,-1),p(`div`,null,[r[9]||=p(`div`,{"text-sm":``,op50:``},` Report Path `,-1),b(i,{filepath:n.current.analyzeDir},null,8,[`filepath`])])]),r[16]||=p(`div`,{"flex-auto":``},null,-1),b(u,{n:`rose`,icon:`carbon-delete`,onClick:r[0]||=e=>E(n.current.name)},{default:d(()=>[...r[14]||=[l(` Delete this report `,-1)]]),_:1})])):_(``,!0),r._lazyshow1||C.value?.id===`bundle-client`?(r._lazyshow1=!0,a(),m(c,null,[g(p(`iframe`,{src:`${h(v)}${n.current.slug}/client.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[x,C.value?.id===`bundle-client`]])],64)):_(`v-show-if`,!0),r._lazyshow2||C.value?.id===`bundle-nitro`?(r._lazyshow2=!0,a(),m(c,null,[g(p(`iframe`,{src:`${h(v)}${n.current.slug}/nitro.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[x,C.value?.id===`bundle-nitro`]])],64)):_(`v-show-if`,!0),r._lazyshow3||C.value?.id===`vite-inspect`?(r._lazyshow3=!0,a(),m(c,null,[g(p(`iframe`,{src:`${h(v)}${n.current.slug}/.vite-inspect/`,"h-full":``,"w-full":``},null,8,[`src`]),[[x,C.value?.id===`vite-inspect`]])],64)):_(`v-show-if`,!0)])}}}),{__name:`BuildAnalyzeDetails`}),K={},q={class:`markdown-body`};function J(e,t){return a(),m(`div`,q,[...t[0]||=[p(`template`,null,[p(`div`,{class:`markdown-body`},[p(`h1`,null,`Build Analyze`),p(`p`,null,[l(`DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command `),p(`code`,{"v-pre":``},`nuxt build --analyze`),l(` and present the output data directly in DevTools for easy browsing and comparing.`)])])],-1)]])}var Y=T(K,[[`render`,J]]),X={flex:`~ col`},Z=[`onClick`],Q={flex:`~ gap-1 items-center wrap`,"w-full":``,"text-sm":``,op60:``},$={flex:`~ items-center justify-center wrap`,p4:``},ee={flex:`~ col gap-1`,"w-250":``,p4:``},te={flex:`~ gap-3`,mt2:``,"justify-end":``},ne=i({__name:`analyze-build`,setup(e){M({icon:`carbon-edge-node`,title:`Build Analyze`,layout:`full`,category:`analyze`,show(){return w(`^3.5.0`)}});let i=n(),g=S(),x=C(`analyze-build:slug`,``),T=f(()=>g.value?.builds.find(e=>e.slug===x.value)??g.value?.builds[0]),N=u(!1),z=u(``),B=f(()=>g.value?.builds.some(e=>e.name===z.value.trim()));async function V(){if(z.value=await r.generateAnalyzeBuildName(),!await i.start())return;A(`analyze-build:start`);let e=await r.startAnalyzeBuild(z.value);N.value&&r.revealTerminal(e)}function H(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function U(){g.value?.activeSessionId&&r.revealTerminal(g.value.activeSessionId)}return k(()=>[{id:`action:analyze-build: start`,title:`Start a new analyze build`,icon:`i-carbon-edge-node`,action:V}]),(e,n)=>{let r=D,u=G,f=P,S=F,C=E,w=I,k=j,A=L,M=O,W=Y,K=R;return a(),m(c,null,[b(S,{"left-size":30},{left:d(()=>[p(`div`,X,[(a(!0),m(c,null,y(h(g)?.builds,e=>(a(),m(c,{key:e.slug},[p(`button`,{flex:`~ col gap1`,p3:``,"hover:bg-active":``,class:s(e.slug===T.value?.slug?`text-primary bg-active`:``),onClick:t=>x.value=e.slug},[p(`code`,null,o(e.name),1),p(`div`,Q,[n[4]||=p(`div`,{"i-carbon-time":``},null,-1),p(`span`,null,o(H(e)),1),n[5]||=p(`div`,{"flex-auto":``},null,-1),p(`span`,null,o(h(t)(new Date(e.endTime))),1)])],10,Z),n[6]||=p(`div`,{"x-divider":``},null,-1)],64))),128)),p(`div`,$,[h(g)?.isBuilding?(a(),v(r,{key:1,n:`primary`,icon:`carbon-circle-dash animate-spin`,title:`Open the output in the Terminals dock`,onClick:n[1]||=e=>U()},{default:d(()=>[...n[8]||=[l(` Building... `,-1)]]),_:1})):(a(),v(r,{key:0,n:`primary`,icon:`carbon-edge-node`,onClick:n[0]||=e=>V()},{default:d(()=>[...n[7]||=[l(` Start a new build `,-1)]]),_:1}))])])]),right:d(()=>[T.value?(a(),v(u,{key:0,current:T.value},null,8,[`current`])):(a(),v(f,{key:1}))]),_:1}),b(h(i),null,{default:d(({resolve:e})=>[b(M,{"model-value":!0,onClose:t=>e(!1)},{default:d(()=>[p(`div`,ee,[n[13]||=p(`h3`,{class:`text-lg font-medium leading-6`,mb2:``},` Start analyze build? `,-1),n[14]||=p(`p`,{op50:``},` Enter the name of the build: `,-1),b(C,{modelValue:z.value,"onUpdate:modelValue":n[2]||=e=>z.value=e,placeholder:`Build name`},null,8,[`modelValue`]),B.value?(a(),v(w,{key:0,"n-orange":``},{default:d(()=>[...n[9]||=[l(` A build with the same name already exists, continue would overrides the previous build result. `,-1)]]),_:1})):_(``,!0),n[15]||=p(`div`,{my3:``,"x-divider":``},null,-1),n[16]||=p(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),b(k,{code:`npx nuxi analyze --no-serve --name=${z.value}`,lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),b(A,{modelValue:N.value,"onUpdate:modelValue":n[3]||=e=>N.value=e,mt2:``,n:`primary`},{default:d(()=>[...n[10]||=[l(` Open the Terminals dock `,-1)]]),_:1},8,[`modelValue`]),p(`div`,te,[b(r,{onClick:t=>e(!1)},{default:d(()=>[...n[11]||=[l(` Cancel `,-1)]]),_:1},8,[`onClick`]),b(r,{n:`solid primary`,onClick:t=>e(!0)},{default:d(()=>[...n[12]||=[l(` Start `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1}),b(K,null,{default:d(()=>[b(W)]),_:1})],64)}}});export{ne as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"dbb6f1eb-fdec-4078-b409-19d1ed6035a2","timestamp":1785808652793,"prerendered":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{E as e}from"./nicon-obdu3k9r.js";import{C as t,H as n,bt as r,d as i,p as a,z as o}from"./vendor/json-editor-vue-lmhxk84q.js";import{t as s}from"./ncode-block-pfi5niis.js";var c=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends c{};function l(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function u(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function d(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function f(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function p(e,t){return d(e,t,``)}function m(e,t){return f(e,t,``)}function h(e,t){return t.slice(0,g(e,t))}function g(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function _(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function v(e,t){if(t)return b(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function y(e,t){if(t)return b(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function b(e,t){if(!t)return[y(e),v(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=_(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var x=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,S=RegExp(`[${x}]+|\\s+|[^${x}]`,`ug`);new class extends c{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=_(e,r)}else n=e.match(S)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&C(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&C(n,i,r,null,t.intlSegmenter),e}};function C(e,t,n,r,i){if(t&&n){let[a,o]=b(t.value,i),[s,c]=b(n.value,i);if(e){let r=l(a,s);e.value=f(e.value,s,r),t.value=p(t.value,r),n.value=p(n.value,r)}if(r){let e=u(o,c);r.value=d(r.value,c,e),t.value=m(t.value,e),n.value=m(n.value,e)}}else if(n){if(e){let e=y(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=y(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=y(r.value,i),[a,o]=b(t.value,i),s=l(n,a);t.value=p(t.value,s);let c=u(p(n,s),o);t.value=m(t.value,c),r.value=d(r.value,n,c),e.value=f(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=y(r.value,i),n=h(v(t.value,i),e);t.value=m(t.value,n)}else if(e){let n=h(v(e.value,i),y(t.value,i));t.value=p(t.value,n)}}new class extends c{tokenize(e){let t=RegExp(`(\\r?\\n)|[${x}]+|[^\\S\\n\\r]+|[^${x}]`,`ug`);return e.match(t)||[]}};var w=new class extends c{constructor(){super(...arguments),this.tokenize=E}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
2
|
-
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
3
|
-
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
4
|
-
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
5
|
-
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function T(e,t,n){return w.diff(e,t,n)}function E(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
6
|
-
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function D(e){return e==`.`||e==`!`||e==`?`}new class extends c{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(D(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends c{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends c{constructor(){super(...arguments),this.tokenize=E}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(O(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function O(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=O(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=O(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends c{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var k=Object.assign(t({__name:`CodeDiff`,props:{from:{},to:{},lang:{}},setup(t){let c=t,l=/class="shiki/,u=/class="line"/g;function d(e,t){let n=T(e.trim(),t.trim()),r=[],i=[],a=[];for(let e of n){let t=e.value.trimEnd().split(`
|
|
7
|
-
`);for(let n of t)e.added?(r.push(a.length),a.push(n)):(e.removed&&i.push(a.length),a.push(n))}return{added:r,removed:i,result:a.join(`
|
|
8
|
-
`)}}let f=i(()=>d(c.from,c.to));function p(e){let t=0;return e.replace(l,`class="shiki diff`).replace(u,e=>(t++,f.value.added.includes(t-1)?`class="line line-added"`:f.value.removed.includes(t-1)?`class="line line-removed"`:e))}let m=r();o(h);function h(){let t=e(m);t&&t.querySelector(`.line-added,.line-removed`)?.scrollIntoView()}return(e,r)=>{let i=s;return n(),a(i,{ref_key:`elRef`,ref:m,code:f.value.result,lang:t.lang,"transform-rendered":p,onLoaded:h},null,8,[`code`,`lang`])}}}),{__name:`CodeDiff`});export{k as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,Ct as t,H as n,Qt as r,Yt as i,a,b as o,ct as s,d as c,f as l,h as u,kt as d,m as f,ot as p,p as m,q as h,x as g}from"./vendor/json-editor-vue-lmhxk84q.js";import{t as _}from"./editor-bzxz1rcq.js";import{t as v}from"./nbutton-mtj8qzr9.js";import{t as y}from"./ncode-block-pfi5niis.js";function b(e){return typeof e==`string`?`'${e}'`:new x().serialize(e)}var x=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}();function S(e,t){return e===t||b(e)===b(t)}var C={key:0,relative:``,"n-code-block":``},w={flex:`~ wrap`,"w-full":``},T=[`onClick`],E={flex:`~ gap-2`,px3:``,pb3:``,n:`sm primary`},D=Object.assign(e({__name:`CodeSnippets`,props:{codeSnippets:{},eventType:{}},setup(e){let b=e,x=t(b.codeSnippets[0]),S=_(),D=c(()=>x.value?.lang||`text`);return p(()=>{b.codeSnippets.includes(x.value)||(x.value=b.codeSnippets[0])}),(t,c)=>{let p=y,_=v;return e.codeSnippets.length?(n(),u(`div`,C,[l(`div`,w,[(n(!0),u(a,null,h(e.codeSnippets,(e,t)=>(n(),u(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:i(e===x.value?``:`border-b`),onClick:t=>x.value=e},[l(`div`,{class:i(e===x.value?``:`op30`),"font-mono":``},r(e.name),3)],10,T))),128)),c[1]||=l(`div`,{border:`b base`,"flex-auto":``},null,-1)]),x.value?(n(),u(a,{key:0},[g(p,{code:x.value.code,lang:D.value,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`,`lang`]),l(`div`,E,[g(_,{icon:`carbon-copy`,onClick:c[0]||=t=>d(S)(x.value.code,e.eventType||`code-snippet-${x.value.name}`)},{default:s(()=>[...c[2]||=[o(` Copy `,-1)]]),_:1}),x.value?.docs?(n(),m(_,{key:0,to:x.value.docs,target:`_blank`,icon:`carbon-catalog`},{default:s(()=>[...c[3]||=[o(` Docs `,-1)]]),_:1},8,[`to`])):f(``,!0)])],64)):f(``,!0)])):f(``,!0)}}}),{__name:`CodeSnippets`});export{S as n,b as r,D as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,b as t,i as n,v as r}from"./nuxt-f4tmbbs7.js";import{Dt as i,I as a,L as o,O as s,P as c,bt as l,ht as u,k as d,ot as f,pt as p,w as m}from"./vendor/json-editor-vue-lmhxk84q.js";import{o as h}from"./unhead.dgx-hwv-uc-gaht5h60.js";var g=`usehead`;function _(){if(s()){let e=d(g);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function v(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(g,e)}}.install}var y=Object.assign((e,t)=>u(t)?i(t):t,{_static:!0});function b(e,t={}){return x(t.head||_(),e,t)}function x(e,t,n={}){let r=p();if(r&&!r.active)return{patch(){},dispose(){},_i:-1};let i=l(!1);if(n.onRendered&&r){let e=n.onRendered;n={...n,onRendered:t=>r.run(()=>e(t))}}let s;return f(()=>{let r=i.value?{}:h(t,y);s?s.patch(r):s=e.push(r,n)}),m()&&(a(()=>{s.dispose()}),o(()=>{i.value=!0}),c(()=>{i.value=!1})),s}var S=t({docsBase:e,reporters:r});function C(e){let t=e||n();return t.ssrContext?.head||t.runWithContext(()=>{if(s()){let e=d(`usehead`);if(!e)throw S.NUXT_E6001();return e}})}function w(e,t={}){return b(e,{head:t.head||C(t.nuxt),...t})}export{v as n,w as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as e,d as t}from"./nicon-obdu3k9r.js";var n=e();e();function r(){return t(`devtools:restart-dialogs`,()=>[])}export{r as n,n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-ln9q81id.js";import{f as t,u as n}from"./dist-2c3gpsw0.js";var r=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,a=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function o(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){s(e);return}return t}function s(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function c(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!a.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(r.test(e)||i.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,o)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var l=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function u(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new l(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var d=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function f(e=`GET`){return d.has(e.toUpperCase())}function p(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var m=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),h=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function g(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return h.test(t)?`json`:t===`text/event-stream`?`stream`:m.has(t)||t.startsWith(`text/`)?`text`:`blob`}function _(e,t,n,r){let i=v(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function v(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function y(e,t){if(t)if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}var b=new Set([408,409,425,429,500,502,503,504]),x=new Set([101,204,205,304]);function S(e={}){let{fetch:r=globalThis.fetch,Headers:i=globalThis.Headers,AbortController:a=globalThis.AbortController}=e;async function o(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:+!f(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):b.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),s(e.request,{...e.options,retry:t-1})}}let n=u(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,s),n}let s=async function(s,l={}){let u={request:s,options:_(s,l,e.defaults,i),response:void 0,error:void 0};if(u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&(await y(u,u.options.onRequest),u.options.headers instanceof i||(u.options.headers=new i(u.options.headers||{}))),typeof u.request==`string`&&(u.options.baseURL&&(u.request=n(u.request,u.options.baseURL)),u.options.query&&(u.request=t(u.request,u.options.query),delete u.options.query),`query`in u.options&&delete u.options.query,`params`in u.options&&delete u.options.params),u.options.body&&f(u.options.method))if(p(u.options.body)){let e=u.options.headers.get(`content-type`);typeof u.options.body!=`string`&&(u.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(u.options.body).toString():JSON.stringify(u.options.body)),e||u.options.headers.set(`content-type`,`application/json`),u.options.headers.has(`accept`)||u.options.headers.set(`accept`,`application/json`)}else(`pipeTo`in u.options.body&&typeof u.options.body.pipeTo==`function`||typeof u.options.body.pipe==`function`)&&(`duplex`in u.options||(u.options.duplex=`half`));let d;if(!u.options.signal&&u.options.timeout){let e=new a;d=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},u.options.timeout),u.options.signal=e.signal}try{u.response=await r(u.request,u.options)}catch(e){return u.error=e,u.options.onRequestError&&await y(u,u.options.onRequestError),await o(u)}finally{d&&clearTimeout(d)}if((u.response.body||u.response._bodyInit)&&!x.has(u.response.status)&&u.options.method!==`HEAD`){let e=(u.options.parseResponse?`json`:u.options.responseType)||g(u.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await u.response.text(),t=u.options.parseResponse||c;u.response._data=t(e);break}case`stream`:u.response._data=u.response.body||u.response._bodyInit;break;default:u.response._data=await u.response[e]()}}return u.options.onResponse&&await y(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await y(u,u.options.onResponseError),await o(u)):u.response},l=async function(e,t){return(await s(e,t))._data};return l.raw=s,l.native=(...e)=>r(...e),l.create=(t={},n={})=>S({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),l}var C=e({$fetch:()=>k,AbortController:()=>D,Headers:()=>E,createFetch:()=>S,fetch:()=>T,ofetch:()=>O}),w=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})(),T=w.fetch?(...e)=>w.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),E=w.Headers,D=w.AbortController,O=S({fetch:T,Headers:E,AbortController:D}),k=O;export{C as n,k as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.grid[data-v-ac9e54b0]{display:grid}.mb-2[data-v-ac9e54b0]{margin-bottom:.5rem}.mb-4[data-v-ac9e54b0]{margin-bottom:1rem}.max-w-520px[data-v-ac9e54b0]{max-width:520px}.min-h-screen[data-v-ac9e54b0]{min-height:100vh}.w-full[data-v-ac9e54b0]{width:100%}.flex[data-v-ac9e54b0]{display:flex}.cursor-pointer[data-v-ac9e54b0]{cursor:pointer}.appearance-none[data-v-ac9e54b0]{appearance:none}.place-content-center[data-v-ac9e54b0]{place-content:center}.items-center[data-v-ac9e54b0]{align-items:center}.justify-center[data-v-ac9e54b0]{justify-content:center}.overflow-hidden[data-v-ac9e54b0]{overflow:hidden}.border-0[data-v-ac9e54b0]{border-width:0}.bg-transparent[data-v-ac9e54b0]{background-color:#0000}.bg-white[data-v-ac9e54b0]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.p-0[data-v-ac9e54b0]{padding:0}.px-2[data-v-ac9e54b0]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-ac9e54b0]{text-align:center}.text-\[80px\][data-v-ac9e54b0]{font-size:80px}.text-2xl[data-v-ac9e54b0]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-ac9e54b0]{font-size:.875rem;line-height:1.25rem}.text-\[\#020420\][data-v-ac9e54b0]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-ac9e54b0]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-ac9e54b0]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.text-inherit[data-v-ac9e54b0]{color:inherit}.font-medium[data-v-ac9e54b0]{font-weight:500}.font-semibold[data-v-ac9e54b0]{font-weight:600}.leading-none[data-v-ac9e54b0]{line-height:1}.tracking-wide[data-v-ac9e54b0]{letter-spacing:.025em}.font-sans[data-v-ac9e54b0]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-ac9e54b0]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline[data-v-ac9e54b0]{text-decoration-line:underline}.underline-offset-3[data-v-ac9e54b0]{text-underline-offset:3px}.antialiased[data-v-ac9e54b0]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-ac9e54b0]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-ac9e54b0]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (width>=640px){.sm\:text-\[110px\][data-v-ac9e54b0]{font-size:110px}.sm\:text-3xl[data-v-ac9e54b0]{font-size:1.875rem;line-height:2.25rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.grid[data-v-fc5e8022]{display:grid}.mb-2[data-v-fc5e8022]{margin-bottom:.5rem}.mb-4[data-v-fc5e8022]{margin-bottom:1rem}.max-w-520px[data-v-fc5e8022]{max-width:520px}.min-h-screen[data-v-fc5e8022]{min-height:100vh}.place-content-center[data-v-fc5e8022]{place-content:center}.overflow-hidden[data-v-fc5e8022]{overflow:hidden}.bg-white[data-v-fc5e8022]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-fc5e8022]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-fc5e8022]{text-align:center}.text-\[80px\][data-v-fc5e8022]{font-size:80px}.text-2xl[data-v-fc5e8022]{font-size:1.5rem;line-height:2rem}.text-\[\#020420\][data-v-fc5e8022]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-fc5e8022]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-fc5e8022]{font-weight:600}.leading-none[data-v-fc5e8022]{line-height:1}.tracking-wide[data-v-fc5e8022]{letter-spacing:.025em}.font-sans[data-v-fc5e8022]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-fc5e8022]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-fc5e8022]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-fc5e8022]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-fc5e8022]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (width>=640px){.sm\:text-\[110px\][data-v-fc5e8022]{font-size:110px}.sm\:text-3xl[data-v-fc5e8022]{font-size:1.875rem;line-height:2.25rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{H as e,J as t,h as n}from"./vendor/json-editor-vue-lmhxk84q.js";import{t as r}from"./_plugin-vue_export-helper-d9irwgla.js";var i={},a={"h-full":``,"of-auto":``};function o(r,i){return e(),n(`div`,a,[t(r.$slots,`default`)])}var s=r(i,[[`render`,o]]);export{s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return Array.isArray?Array.isArray(e):u(e)===`[object Array]`}function t(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 n(e){return e==null?``:t(e)}function r(e){return typeof e==`string`}function i(e){return typeof e==`number`}function a(e){return e===!0||e===!1||s(e)&&u(e)==`[object Boolean]`}function o(e){return typeof e==`object`}function s(e){return o(e)&&e!==null}function c(e){return e!=null}function l(e){return!e.trim().length}function u(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var d=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,f=e=>`Invalid value for key ${e}`,p=e=>`Pattern length exceeds max of ${e}.`,m=e=>`Missing ${e} property in key`,h=e=>`Property 'weight' in key '${e}' must be a positive integer`,g=`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.`,_=Object.prototype.hasOwnProperty,v=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=y(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 y(t){let n=null,i=null,a=null,o=1,s=null;if(r(t)||e(t))a=t,n=b(t),i=x(t);else{if(!_.call(t,`name`))throw Error(m(`name`));let e=t.name;if(a=e,_.call(t,`weight`)&&t.weight!==void 0&&(o=t.weight,o<=0))throw Error(h(x(e)));n=b(e),i=x(e),s=t.getFn??null}return{path:n,id:i,weight:o,src:a,getFn:s}}function b(t){return e(t)?t:t.split(`.`)}function x(t){return e(t)?t.join(`.`):t}function S(t,o){let s=[],l=!1,u=(t,o,d,f)=>{if(c(t))if(!o[d])s.push(f===void 0?t:{v:t,i:f});else{let p=t[o[d]];if(!c(p))return;if(d===o.length-1&&(r(p)||i(p)||a(p)||typeof p==`bigint`))s.push(f===void 0?n(p):{v:n(p),i:f});else if(e(p)){l=!0;for(let e=0,t=p.length;e<t;e+=1)u(p[e],o,d+1,e)}else o.length&&u(p,o,d+1,f)}};return u(t,r(o)?o.split(`.`):o,0),l?s:s[0]}var C={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},w={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},T={location:0,threshold:.6,distance:100},E={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:`any`,getFn:S,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},D=Object.freeze({...w,...C,...T,...E});function ee(e){return e>=9&&e<=13||e===32||e===160}function te(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++)ee(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 O=class{constructor({getFn:e=D.getFn,fieldNormWeight:t=D.fieldNormWeight}={}){this.norm=te(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(r(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(d);if(r(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(d);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!c(e)||l(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(t,i){let a={i,$:{}};for(let i=0,o=this.keys.length;i<o;i++){let o=this.keys[i],s=o.getFn?o.getFn(t):this.getFn(t,o.path);if(c(s)){if(e(s)){let e=[];for(let t=0,i=s.length;t<i;t+=1){let i=s[t];if(c(i)){if(r(i)){if(!l(i)){let n={v:i,i:t,n:this.norm.get(i)};e.push(n)}}else if(c(i.v)){let t=r(i.v)?i.v:n(i.v);if(!l(t)){let n={v:t,i:i.i,n:this.norm.get(t)};e.push(n)}}}}a.$[i]=e}else if(r(s)&&!l(s)){let e={v:s,n:this.norm.get(s)};a.$[i]=e}}}return a}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function k(e,t,{getFn:n=D.getFn,fieldNormWeight:r=D.fieldNormWeight}={}){let i=new O({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(y)),i.setSources(t),i.create(),i}function ne(e,{getFn:t=D.getFn,fieldNormWeight:n=D.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new O({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function A(e=[],t=D.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 re(e,t,n,{location:r=D.location,distance:i=D.distance,threshold:a=D.threshold,findAllMatches:o=D.findAllMatches,minMatchCharLength:s=D.minMatchCharLength,includeMatches:c=D.includeMatches,ignoreLocation:l=D.ignoreLocation}={}){if(t.length>32)throw Error(p(32));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),m=a,h=f,g=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},_=s>1||c,v=_?Array(d):[],y;for(;(y=e.indexOf(t,h))>-1;){let e=g(0,y);if(m=Math.min(e,m),h=y+u,_){let e=0;for(;e<u;)v[y+e]=1,e+=1}}h=-1;let b=[],x=1,S=0,C=u+d,w=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=C;for(;r<i;)g(t,f+i)<=m?r=i:C=i,i=Math.floor((C-r)/2+r);C=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]|=(b[r+1]|b[r])<<1|1|b[r+1]),c[r]&w&&(x=g(t,i),x<=m)){if(m=x,h=i,S=t,h<=f)break;a=Math.max(1,2*f-h)}}if(g(t+1,f)>m)break;b=c}if(_&&h>=0){let t=Math.min(d-1,h+u-1+S);for(let r=h;r<=t;r+=1)n[e[r]]&&(v[r]=1)}let T={isMatch:h>=0,score:Math.max(.001,x)};if(_){let e=A(v,s);e.length?c&&(T.indices=e):T.isMatch=!1}return T}function ie(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 j(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 M={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},ae=RegExp(`[`+Object.keys(M).join(``)+`]`,`g`),N=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(ae,e=>M[e]):e=>e,P=class{constructor(e,{location:t=D.location,threshold:n=D.threshold,distance:r=D.distance,includeMatches:i=D.includeMatches,findAllMatches:a=D.findAllMatches,minMatchCharLength:o=D.minMatchCharLength,isCaseSensitive:s=D.isCaseSensitive,ignoreDiacritics:c=D.ignoreDiacritics,ignoreLocation:l=D.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?N(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:ie(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?N(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}=re(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=j(u)),p}},oe=new Set([`fuzzy`,`include`]);function se(e){return e.startsWith(`inverse`)}var F=[{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 P(e,{location:t.location??D.location,threshold:t.threshold??D.threshold,distance:t.distance??D.distance,includeMatches:t.includeMatches??D.includeMatches,findAllMatches:t.findAllMatches??D.findAllMatches,minMatchCharLength:t.minMatchCharLength??D.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??D.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??D.ignoreDiacritics,ignoreLocation:t.ignoreLocation??D.ignoreLocation});return{type:`fuzzy`,search(e){return n.searchIn(e)}}}}],I=F.length,ce=`\0`,le=`|`;function ue(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 L(e,t){let n=e.match(t);return n?n[1]:null}function de(e,t={}){return e.replace(/\\\|/g,ce).split(le).map(e=>{let n=ue(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<I;){let e=F[o],n=L(i,e.multiRegex);n&&(r.push(e.create(n,t)),a=!0)}if(!a)for(o=-1;++o<I;){let e=F[o],n=L(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}var fe=class{constructor(e,{isCaseSensitive:t=D.isCaseSensitive,ignoreDiacritics:n=D.ignoreDiacritics,includeMatches:r=D.includeMatches,minMatchCharLength:i=D.minMatchCharLength,ignoreLocation:a=D.ignoreLocation,findAllMatches:o=D.findAllMatches,location:s=D.location,threshold:c=D.threshold,distance:l=D.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?N(e):e,this.pattern=e,this.query=de(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?N(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,se(r.type)&&(c=!0),n&&(oe.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=j(o)),e}}return{isMatch:!1,score:1}}},R=[];function z(...e){R.push(...e)}function B(e,t){for(let n=0,r=R.length;n<r;n+=1){let r=R[n];if(r.condition(e,t))return new r(e,t)}return new P(e,t)}var V={AND:`$and`,OR:`$or`},H={PATH:`$path`,PATTERN:`$val`},U=e=>!!(e[V.AND]||e[V.OR]),pe=e=>!!e[H.PATH],W=t=>!e(t)&&o(t)&&!U(t),G=e=>({[V.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function K(t,n,{auto:i=!0}={}){let a=t=>{if(r(t)){let e={keyId:null,pattern:t};return i&&(e.searcher=B(t,n)),e}let o=Object.keys(t),s=pe(t);if(!s&&o.length>1&&!U(t))return a(G(t));if(W(t)){let e=s?t[H.PATH]:o[0],a=s?t[H.PATTERN]:t[e];if(!r(a))throw Error(f(e));let c={keyId:x(e),pattern:a};return i&&(c.searcher=B(a,n)),c}let c={children:[],operator:o[0]};return o.forEach(n=>{let r=t[n];e(r)&&r.forEach(e=>{c.children.push(a(e))})}),c};return U(t)||(t=G(t)),a(t)}function q(e,{ignoreFieldNorm:t=D.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 me(e,{ignoreFieldNorm:t=D.ignoreFieldNorm}){e.forEach(e=>{e.score=q(e.matches,{ignoreFieldNorm:t})})}var he=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 ge(e){let t=[];return e.matches.forEach(e=>{if(!c(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 _e(e,t,{includeMatches:n=D.includeMatches,includeScore:r=D.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=ge(e)),r&&(a.score=e.score),a})}var ve=/[\p{L}\p{M}\p{N}_]+/gu,J=new WeakSet;function ye(e){J.has(e)||(J.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 be(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||ye(e),t=>t.match(e)||[]):e=>e.match(ve)||[]}function Y({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=be(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=N(n)),r(n)}}}var xe=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Y({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 P(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=j(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}};function X(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 Z(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0){X(e,a,i,r);return}if(o)for(let t=0;t<n;t++){let n=o[t];if(n)if(Array.isArray(n))for(let t of n)X(e,t.v,i,r);else X(e,n.v,i,r)}}function Se(e,t,n){let r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(let i of e)Z(r,i,t,n);return r}function Ce(e,t,n,r){Z(e,t,n,r)}function we(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 Q(e,t){if(t.length===0)return;let n=Array.from(new Set(t)).sort((e,t)=>e-t);for(let t of n)we(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 $=class{constructor(e,t,n){this.options={...D,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new v(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=B(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 O))throw Error(`Incorrect 'index' type`);if(this._myIndex=t||k(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=Y({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=Se(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!c(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=Y({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});Ce(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&&Q(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(d);this._invertedIndex&&Q(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:a,includeScore:o,shouldSort:s,sortFn:c,ignoreFieldNorm:l}=this.options;if(r(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return i(n)&&n>-1&&(e=e.slice(0,n)),e}let u=s&&i(n)&&n>0&&r(e),d=c,f=(e,t)=>d(e,t)||e.idx-t.idx,p;if(u){let t=new he(n,f);r(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:l}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:l}),p=t.extractSorted()}else p=r(e)?r(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),me(p,{ignoreFieldNorm:l}),s&&p.sort(r(e)?f:d),i(n)&&n>-1&&(p=p.slice(0,n));return _e(p,this._docs,{includeMatches:a,includeScore:o})}_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(!c(e))return;let l=r.searchIn(e);if(l.isMatch){let r={score:l.score,value:e,norm:s,indices:l.indices};i&&(r.matchedMask=l.matchedMask,r.matchedTerms=l.matchedTerms,r.termCount=l.termCount);let c=[r];if(!i||this._coversAllTokens(c)){let r={item:e,idx:a,matches:c};t?(r.score=q(r.matches,{ignoreFieldNorm:n}),t.insert(r)):o.push(r)}}}),o}_searchLogical(e){let t=K(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===V.AND)return[]}return s},i=this._myIndex.records,a=new Map,o=[];return i.forEach(({$:e,i:n})=>{if(c(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(!c(e))return;let l=[],u=!1,d=!1;if(o.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(l.push(...i),i[0].hasInverse&&(d=!0)):u=!0}),!(d&&u)&&l.length&&(!i||this._coversAllTokens(l))){let r={idx:a,item:e,matches:l};t?(r.score=q(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:t,value:n,searcher:r}){if(!c(n))return[];let i=[];if(e(n))n.forEach(({v:e,i:n,n:a})=>{if(!c(e))return;let o=r.searchIn(e);if(o.isMatch){let r={score:o.score,key:t,value:e,idx:n,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(r.matchedMask=o.matchedMask,r.matchedTerms=o.matchedTerms,r.termCount=o.termCount),i.push(r)}});else{let{v:e,n:a}=n,o=r.searchIn(e);if(o.isMatch){let n={score:o.score,key:t,value:e,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),i.push(n)}}return i}_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}};$.version=`7.5.0`,$.createIndex=k,$.parseIndex=ne,$.config=D,$.match=function(e,t,n){if(n&&n.useTokenSearch)throw Error(g);return B(e,{...D,...n}).searchIn(t)},$.parseQuery=K,z(fe),z(xe),$.use=function(...e){e.forEach(e=>z(e))};var Te=$;export{Te as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,t}from"./nicon-obdu3k9r.js";import{C as n,Dt as r,H as i,I as a,J as o,M as s,N as c,P as l,Qt as u,Tt as d,Yt as f,Z as p,Zt as m,a as h,at as g,b as _,bt as v,ct as y,d as b,et as x,f as S,gt as ee,h as C,kt as w,lt as te,m as T,p as E,q as D,v as O,x as k,xt as A,z as j}from"./vendor/json-editor-vue-lmhxk84q.js";import{ft as ne}from"./ready-h6bi8le4.js";import{t as re}from"./nuxt-link-dgri2bli.js";import{w as M}from"./utils-bisj7255.js";import{n as N}from"./editor-bzxz1rcq.js";import{t as P}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as F}from"./nbutton-mtj8qzr9.js";import{t as I}from"./ncard-mtvdl2wf.js";import{t as ie}from"./ndialog-dj1ywkc1.js";import{t as L}from"./fuse-blwyun20.js";import{t as R}from"./state-commands-f4h87cfl.js";import{t as z}from"./dialog-c7wnj3nl.js";import{t as B}from"./telemetry-9f19c0i9.js";import{t as V}from"./ndropdown-ow0z3stn.js";import{t as H}from"./ncode-block-pfi5niis.js";import{t as U}from"./composables-ioamscf4.js";import{t as ae}from"./filepath-item-jdy5gc4m.js";import{t as W}from"./ntip-oohvtkqd.js";import{t as oe}from"./ncheckbox-mksfz5p0.js";import{t as se}from"./help-fab-ll6mbhgs.js";import{t as ce}from"./nnavbar-dwxbkqvw.js";import{t as G}from"./nicon-title-e2gzkzl3.js";import{t as le}from"./nsection-block-cb29dqkc.js";import{t as K}from"./nbadge-oyy0wjng.js";import{t as ue}from"./duration-display-kup58tqe.js";import{n as q,r as de,t as fe}from"./state-modules-bewlxq5o.js";import{t as pe}from"./nlink-j55iyj5x.js";import{t as J}from"./code-diff-oxve94ak.js";var Y=v([]),me={flex:`~ col gap2`,"flex-auto":``,"of-hidden":``,px1:``},he={"gap-1t":``,flex:``,"items-center":``,"text-ellipsis":``,"ws-nowrap":``,"text-lg":``},ge={key:2},_e={key:1,flex:`~ gap-2`,title:`Documentation`},ve={key:2,flex:`~ gap-2`},ye={key:0,flex:`~ gap-4 items-center`},be={key:0,flex:`~ gap-2 items-center`,op50:``},xe={key:1,flex:`~ gap-2 items-center`,op50:``},Se={key:1},Ce={flex:`~ col`,"items-end":``},we={key:0,"h-20":``,"w-20":``,flex:``,"flex-none":``,rounded:``,"bg-gray:3":``,p4:``},Te=[`src`,`alt`],Ee={key:1,"i-carbon-cube":``,ma:``,"flex-none":``,"text-4xl":``,op30:``},De={key:1,flex:`~`,mt2:``,"flex-auto":``,"items-end":``,"justify-end":``},Oe=[`src`],ke={flex:``,"justify-end":``},Ae=`https://ipx.nuxt.com/s_80,f_webp/gh/nuxt/modules/main/icons/`,je=`https://ipx.nuxt.com/s_44,f_webp/gh_avatar/`,Me=`https://github.com/`,Ne=`https://www.npmjs.com/package/`,Pe=Object.assign(n({__name:`ModuleItemBase`,props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(e){let n=e,r=b(()=>({...n.mod?.meta,...n.mod,...n.info})),{format:a}=Intl.NumberFormat(navigator.language||`en`,{notation:`compact`,maximumFractionDigits:1}),s=b(()=>a(r.value.stats?.stars||0)),c=b(()=>a(r.value.stats?.downloads||0)),l=N();return(n,a)=>{let d=re,p=t,m=ue,g=I;return i(),E(g,{p4:``,flex:`~ gap2`},{default:y(()=>[S(`div`,me,[o(n.$slots,`main`,{},()=>[S(`div`,he,[e.mod.isPackageModule?(i(),E(d,{key:0,to:Ne+(r.value.npm||r.value.name),target:`_blank`,hover:`underline text-primary`},{default:y(()=>[_(u(r.value.name),1)]),_:1},8,[`to`])):e.mod.entryPath?(i(),C(`button`,{key:1,role:`button`,hover:`underline text-primary`,onClick:a[0]||=t=>w(l)(e.mod.entryPath)},u(r.value.name),1)):(i(),C(`span`,ge,u(r.value.name),1)),o(n.$slots,`badge`)]),r.value.description?(i(),C(`div`,{key:0,class:f(e.compact?`ws-nowrap of-hidden truncate`:`line-clamp-2`),"mt--1":``,"text-sm":``,op50:``},u(r.value.description),3)):T(``,!0),a[3]||=S(`div`,{"flex-auto":``},null,-1),r.value.website?(i(),C(`div`,_e,[a[1]||=S(`span`,{"i-carbon-link":``,"flex-none":``,"text-lg":``,op50:``},null,-1),k(d,{to:r.value.website,target:`_blank`,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-sm":``,op50:``,hover:`op100 underline text-primary`},{default:y(()=>[_(u(r.value.website.replace(/^https?:\/\//,``)),1)]),_:1},8,[`to`])])):T(``,!0),r.value.github?(i(),C(`div`,ve,[a[2]||=S(`span`,{"i-carbon-logo-github":``,"flex-none":``,"text-lg":``,op50:``},null,-1),k(d,{to:r.value.github,target:`_blank`,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-sm":``,op50:``,hover:`op100 underline text-primary`},{default:y(()=>[_(u(r.value.github.replace(/^https?:\/\/github.com\//,``)),1)]),_:1},8,[`to`])])):T(``,!0)]),o(n.$slots,`items`),r.value.stats?(i(),C(`div`,ye,[r.value.stats.stars?(i(),C(`div`,be,[k(p,{icon:`carbon-star`,"flex-none":``,"text-lg":``}),S(`span`,null,u(s.value),1)])):T(``,!0),r.value.stats.downloads?(i(),C(`div`,xe,[k(p,{icon:`carbon-download`,"flex-none":``,"text-lg":``}),S(`span`,null,u(c.value),1)])):T(``,!0)])):T(``,!0),e.mod.timings?.setup?(i(),C(`div`,Se,[k(m,{title:`Module Setup Time`,flex:`~ items-center`,duration:e.mod.timings.setup,factor:.5},{before:y(()=>[k(p,{icon:`carbon-time`,mr2:``,"flex-none":``,"text-lg":``,op50:``})]),_:1},8,[`duration`])])):T(``,!0)]),S(`div`,Ce,[r.value.icon||e.mod.isPackageModule?(i(),C(`div`,we,[r.value.icon?(i(),C(`img`,{key:0,src:Ae+r.value.icon,alt:e.mod.name,ma:``},null,8,Te)):(i(),C(`div`,Ee))])):T(``,!0),r.value.maintainers?.length&&e.maintainers?(i(),C(`div`,De,[(i(!0),C(h,null,D(r.value.maintainers,e=>(i(),E(d,{key:e.name,target:`_blank`,to:Me+e.github,title:e.name},{default:y(()=>[S(`img`,{src:je+e.github,"h-6":``,"w-6":``,"rounded-full":``},null,8,Oe)]),_:2},1032,[`to`,`title`]))),128))])):T(``,!0),n.$slots.actions?(i(),C(h,{key:2},[a[4]||=S(`div`,{"flex-auto":``},null,-1),S(`div`,ke,[o(n.$slots,`actions`)])],64)):T(``,!0)])]),_:3})}}}),{__name:`ModuleItemBase`}),Fe={key:0,flex:`~ gap-2`,title:`Open on filesystem`},Ie=[`title`,`onClick`],Le={key:1,"mx--2":``},X=[`onClick`],Re={key:2,"mx--2":``},ze=[`onClick`],Be={op50:``},Ve={"text-green":``},He={key:3,flex:`~ gap-2`,"items-center":``,title:`NPM`},Ue={"text-sm":``,op50:``},We=Object.assign(n({__name:`ModuleItem`,props:{mod:{}},setup(t){let n=t,r=b(()=>n.mod.info),a=b(()=>({...n.mod?.meta,...n.mod,...r.value}));return(n,o)=>{let s=ae,c=de,l=Pe;return i(),E(l,{mod:t.mod,info:r.value},{items:y(()=>[t.mod.entryPath?(i(),C(`div`,Fe,[o[0]||=S(`span`,{"i-carbon-folder-move-to":``,"flex-none":``,"text-lg":``,op50:``},null,-1),k(s,{filepath:t.mod.entryPath,"text-sm":``,op50:``,hover:`text-primary op100`},null,8,[`filepath`])])):T(``,!0),a.value.npm?(i(),E(c,{key:a.value.npm,"package-name":a.value.npm,options:{dev:!0}},{default:y(({info:t,update:n,state:r,id:a,restart:s})=>[r===`running`?(i(),C(`button`,{key:0,flex:`~ gap-2`,"animate-pulse":``,"items-center":``,title:a?`Open the output in the Terminals dock`:void 0,onClick:t=>a?w(e).revealTerminal(a):void 0},[...o[1]||=[S(`span`,{"i-carbon-circle-dash":``,"flex-none":``,"animate-spin":``,"text-lg":``,op50:``},null,-1),S(`code`,{"text-sm":``,op50:``},`Upgrading...`,-1)]],8,Ie)):r===`updated`?(i(),C(`div`,Le,[S(`button`,{flex:`~ gap-2`,hover:`bg-primary/20`,"items-center":``,rounded:``,"bg-primary:10":``,px2:``,"text-sm":``,"text-primary":``,onClick:s},[...o[2]||=[S(`span`,{"i-carbon-intent-request-active":``,"flex-none":``,"text-lg":``,"text-primary":``},null,-1),S(`code`,{"text-xs":``},`Update installed, click to restart`,-1)]],8,X)])):t?.needsUpdate?(i(),C(`div`,Re,[S(`button`,{flex:`~ gap-2`,title:`Click to upgrade`,"items-center":``,rounded:``,px2:``,"text-sm":``,hover:`bg-active`,onClick:e=>n()},[o[3]||=S(`span`,{"i-carbon-intent-request-upgrade":``,"flex-none":``,"text-lg":``,op50:``},null,-1),S(`code`,Be,`v`+u(t.current),1),o[4]||=S(`div`,{"i-carbon-arrow-right":``,op50:``},null,-1),S(`code`,Ve,`v`+u(t.latest),1)],8,ze)])):t?.latest?(i(),C(`div`,He,[o[5]||=S(`span`,{"i-carbon-cube":``,"flex-none":``,"text-lg":``,op50:``},null,-1),S(`code`,Ue,`v`+u(t.current),1)])):T(``,!0)]),_:1},8,[`package-name`])):T(``,!0)]),_:1},8,[`mod`,`info`])}}}),{__name:`ModuleItem`}),Ge=Object.assign(n({__name:`ModuleItemInstall`,props:{item:{}},emits:[`start`],setup(t,{emit:n}){let r=t,a=n,o=fe(),s=b(()=>o.value.find(e=>e.name===r.item.npm)),c=b(()=>s.value&&s.value.isPackageModule),l=b(()=>s.value&&s.value.isPackageModule&&s.value.isUninstallable);async function u(t,n){let r=n===`install`?e.installNuxtModule:e.uninstallNuxtModule,i=await r(t.npm,!0);if(B(`modules:${n}`,{moduleName:t.npm}),i.commands&&await z.start(t,i,n)){Y.value.push({name:t.npm,info:t,processId:i.processId}),a(`start`);try{await r(t.npm,!1,i.processId)}finally{let e=Y.value.findIndex(e=>e.processId===i.processId);e!==-1&&Y.value.splice(e,1)}}}let d={};return(e,n)=>{let r=K,a=F,o=V,s=Pe;return i(),E(s,{mod:d,role:c.value?``:`button`,info:t.item,mb2:``,"h-full":``,class:f(c.value?`border-dashed op75`:`hover:bg-active!`),compact:!0,onClick:n[1]||=e=>c.value?null:u(t.item,`install`)},O({_:2},[c.value?{name:`badge`,fn:y(()=>[k(r,{n:`green`,textContent:`Installed`}),l.value?(i(),E(o,{key:0,n:`sm green`},{trigger:y(({click:e})=>[k(a,{icon:`carbon-overflow-menu-vertical`,border:!1,onClick:t=>e()},null,8,[`onClick`])]),default:y(()=>[k(a,{icon:`carbon-trash-can`,n:`red`,onClick:n[0]||=e=>u(t.item,`uninstall`)},{default:y(()=>[...n[2]||=[_(` Uninstall `,-1)]]),_:1})]),_:1})):T(``,!0)]),key:`0`}:void 0]),1032,[`role`,`info`,`class`])}}}),{__name:`ModuleItemInstall`});function Ke(e){return e==null?`null`:typeof e==`function`?`a function`:`'${e}'`}function qe(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 ${Ke(n)})`);return r}function Je(e,t,n){return qe(e,t,n)}function Ye(e,t){return e.map((e,n)=>Je(e,n,t))}function Xe(e,t,n){let r=[],i=[];for(let a=0;a<e.length;a++){let o=e[a],s=Je(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 Ze(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]!==Je(t[r],r,n))return!1;return!0}function Qe(e,t,n){if(!Ze(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 $e(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 et(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 tt(e){return e.flowMode&&e.direction===`vertical`&&!e.gridItems?`flow`:e.disableTransform?`position`:`transform`}function nt(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 rt(e){return b(()=>r(e))}function it(e,t,n,i,a){let o=rt(e);return{el:b(()=>{let e=o.value.el;return r(t??e)}),before:b(()=>{let e=o.value.before;return r(n??e)}),after:b(()=>{let e=o.value.after;return r(i??e)}),scrollParent:b(()=>{let e=o.value.scrollParent;return r(e)}),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 at={itemsLimit:1e3};function ot(e){return typeof window<`u`&&e===window}var Z=(()=>{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 st(e,t,n){return t!==`horizontal`||!n||ot(n)||getComputedStyle(n).direction!==`rtl`?e:Z===`negative`?-e:e}function ct(e,t,n){return st(e,t,n)}function lt(e,t,n,r){let i=ct(n,t,e),a=!!(r!=null&&r.smooth);if(ot(e)){t===`vertical`?e.scrollTo({top:i,behavior:a?`smooth`:`auto`}):e.scrollTo({left:i,behavior:a?`smooth`:`auto`});return}if(typeof e.scrollTo==`function`){e.scrollTo(t===`vertical`?{top:i,behavior:a?`smooth`:`auto`}:{left:i,behavior:a?`smooth`:`auto`});return}t===`vertical`?e.scrollTop=i:e.scrollLeft=i}function ut(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 dt=/auto|scroll/;function ft(e,t){return e.parentNode===null?t:ft(e.parentNode,[...t,e])}function pt(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function mt(e){return pt(e,`overflow`)+pt(e,`overflow-y`)+pt(e,`overflow-x`)}function Q(e){return dt.test(mt(e))}function ht(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return;if(e.parentNode===null)return document.scrollingElement||document.documentElement;let t=ft(e.parentNode,[]);for(let e=0;e<t.length;e+=1)if(t[e]instanceof Element&&Q(t[e]))return t[e];return document.scrollingElement||document.documentElement}function gt(e,t){if(t)return t;if(!e)return;let n=ht(e);if(n)return typeof window<`u`&&window.document&&(n===window.document.documentElement||n===window.document.body)?window:n}var _t=!1;function vt(){return _t}if(typeof window<`u`){_t=!1;try{let e=Object.defineProperty({},"passive",{get(){_t=!0}});window.addEventListener(`test`,null,e)}catch{}}function $(e){return typeof e==`number`?e:null}function yt(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 bt(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 xt=0,St=[];function Ct(e){for(let t=0;t<e.length;t++)e[t]}function wt(e,t){return e&&typeof e==`object`?e[t]:void 0}function Tt(e,t){return e.map(e=>wt(e,t))}function Et(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 Dt(e){let t=e;t._vs_styleStamp++}function Ot(e){let t=e;t._vs_visibilityStamp++,t._vs_styleStamp++}function kt(e,t,n,r){if(n){for(let e of n)r(e);return}for(let n=e;n<t;n++)r(n)}var At=8,jt=1;function Mt(e,t,n,i,o,s){let u=rt(e),d=it(u,t,n,i,o),f=b(()=>{let e=r(G().items);return Ct(e),e}),p=v([]),m=v(0),h=v(0),_=v(0),y=v(!1),x=0,S=0,C=0,w=0,te=!1,T=null,E=new Map,D=new Map,O=!1,k=0,ne=0,re=!1,M=null,N=null,P=null,F=0,I=null,ie=null,L=[],R=[],z=null,B=null,V=null,H=!1,U=!1,ae=!1,W=new Set,oe=v({}),se=[],ce={accumulator:0};function G(){return u.value}function le(){return s?.pageMode??G().pageMode}let K=b(()=>r(G().enabled??!0)),ue=b(()=>gt(d.el.value,d.scrollParent.value)),q=b(()=>{let e=f.value;return e.length>0&&typeof e[0]!=`object`}),de=b(()=>{let e=G();if($(e.itemSize)===null){let t=f.value,n=Array.from({length:t.length});ce.accumulator=0,n[-1]=ce;let r=e.minItemSize,i=oe.value,a=q.value,o=1e4,s=0,c;for(let l=0,u=t.length;l<u;l++){let u=a?l:qe(t[l],l,e.keyField);c=bt(t[l],l,e.itemSize,i[u],r,e.sizeField),c<o&&(o=c),s+=c;let d=se[l]??(se[l]={accumulator:0,size:void 0});d.accumulator=s,d.size=c,n[l]=d}return se.length=t.length,F=o,n}return St}),fe=b(()=>p.value.filter(e=>(e._vs_visibilityStamp,e.nr.used)).sort((e,t)=>e.nr.index-t.nr.index)),pe=b(()=>{let e=G(),t=q.value?null:e.keyField;return Xe(f.value,t,(t,n,r)=>yt(t,n,e.itemSize,oe.value[r],e.sizeField))});function J(e=G()){return e.direction??`vertical`}function Y(e=G()){let t=J(e),n=e.flowMode??!1;return n&&t!==`vertical`&&(U||=(console.warn(`[vue-recycle-scroller] flowMode only supports vertical lists. Falling back to standard positioning.`),!0),n=!1),n&&e.gridItems&&(ae||=(console.warn(`[vue-recycle-scroller] flowMode does not support gridItems. Falling back to standard positioning.`),!0),n=!1),tt({direction:t,disableTransform:e.disableTransform??!1,flowMode:n,gridItems:e.gridItems})}function me(){p.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=G();return oe.value=Qe(e,f.value,q.value?null:t.keyField),Object.keys(oe.value).length>0}function ge(e){let t=D.get(e);return t||(t=[],D.set(e,t)),t}function _e(e,t,n,r,i){let a=A({item:n,position:0,offset:0,nr:ee({id:xt++,index:t,used:!0,key:r,type:i}),_vs_styleStamp:0,_vs_visibilityStamp:0});return e.push(a),a}function ve(e){let t=ge(e);if(t&&t.length){let e=t.pop();return e.nr.used=!0,Ot(e),e}}function ye(e,t){let n=p.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,p.value.length-1)}function xe(){let e=p.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<x?(r=n.activeStart+n.headInsertCount,n.headInsertCount++,n.activeCount++):t>=S&&(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=G().hiddenPosition??-999999,Ot(e),E.delete(e.nr.key),t&&be(e)}function we(){E.clear(),D.clear();for(let e=0,t=p.value.length;e<t;e++){let t=p.value[e];t&&Ce(t)}}function Te(e){let t=-1;return t=requestAnimationFrame(()=>{W.delete(t),e()}),W.add(t),t}function Ee(){for(let e of W)cancelAnimationFrame(e);W.clear()}function De(){M&&=(clearTimeout(M),null),N&&=(clearTimeout(N),null),P&&=(clearTimeout(P),null),B&&=(clearTimeout(B),null),V&&=(clearTimeout(V),null)}function Oe(){var e,t;K.value&&((t=(e=d.callbacks).onResize)==null||t.call(e),y.value&&Z(!1))}function ke(){if(!K.value)return;z&&!H&&ze();let e=G();if(!O){if(O=!0,M)return;let t=()=>Te(()=>{O=!1;let{continuous:t}=Z(!1,!0);t||(N&&clearTimeout(N),N=setTimeout(ke,e.updateInterval+100))});t(),e.updateInterval&&(M=setTimeout(()=>{M=null,O&&t()},e.updateInterval))}}function Ae(e,t){var n,r,i,a;K.value&&y.value&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?((r=(n=d.callbacks).onVisible)==null||r.call(n),Te(()=>{Z(!1)})):(a=(i=d.callbacks).onHidden)==null||a.call(i))}function je(){return ue.value??window}function Me(){let e=d.before.value;return e?J(G())===`vertical`?e.scrollHeight:e.scrollWidth:0}function Ne(){let e=d.el.value;if(!e)return{start:0,end:0};let t=J(G()),n=t===`vertical`,r;if(le()){let t=e.getBoundingClientRect(),i=n?t.height:t.width,a=ue.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:st(e.scrollLeft,t,e),end:st(e.scrollLeft,t,e)+e.clientWidth};return r}function Pe(){let e=d.el.value;if(!e)return{start:0,end:0};if(J(G())===`vertical`){let t=st(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 x>0&&a<=(n[x-1]?.accumulator??0)||x<t-1&&a>(n[x]?.accumulator??1/0)||S>1&&o<=(n[S-2]?.accumulator??0)||S<t&&o>(n[S-1]?.accumulator??1/0)}function Ie(e){let t=G(),n=$(t.itemSize);return n===null?de.value[e]?.size||Number(t.minItemSize)||0:n}function Le(e){let t=G();return nt(e,{direction:J(t),mode:Y(t),itemSize:$(t.itemSize),gridItems:t.gridItems,itemSecondarySize:t.itemSecondarySize})}function X(e){let t=G(),n=t.gridItems||1,r=$(t.itemSize);return e<=0?0:r===null?de.value[e-1]?.accumulator||0:Math.floor(e/n)*r}function Re(e){let t=G(),n=f.value.length,r=t.gridItems||1,i=$(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);X(t)<=e?(s=t,a=t+1):o=t-1}return s}function ze(){B&&=(clearTimeout(B),null),z=null}function Be(){B&&clearTimeout(B),B=setTimeout(()=>{z=null,B=null},150)}function Ve(e,t){if(!e.length){ze();return}let n=Math.max(Ne().start-Me(),0),r=Math.min(Re(n),e.length-1),i=e[r],a=t?qe(i,r,t):r,o=Me()+X(r);z={key:a,offset:Ne().start-o}}function He(e){if(!z)return!1;let t=G(),n=Ye(e??f.value,q.value?null:t.keyField).indexOf(z.key);if(n===-1)return ze(),!1;let r=Me()+X(n)+z.offset,i=Ne().start;return Math.abs(r-i)<.5?!1:(H=!0,mt(r),Te(()=>{H=!1}),!0)}function Ue(){if(We(),!K.value)return;let e=le()?je():d.el.value;e&&(I=e,I.addEventListener(`scroll`,ke,vt()?{passive:!0}:!1),le()&&e===window&&(ie=e,ie.addEventListener(`resize`,Oe)))}function We(){I&&=(I.removeEventListener(`scroll`,ke),null),ie&&=(ie.removeEventListener(`resize`,Oe),null)}function Ge(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 Ke(){let e=G(),t=$(e.itemSize);if(!e.gridItems||t==null)return!1;let n=d.el.value;if(!n)return!1;let r=e.itemSecondarySize||t,i=J(e)===`vertical`?n.clientWidth:n.clientHeight;return r*e.gridItems>i}function Je(e,t,n,r){if(Math.abs(e-t)!==1||t<0||t>=n)return e;let i=e>t?X(t)+Ie(t):X(t);return Math.abs(i-r)<=At?t:e}function Ze(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?X(a)+Ie(a):X(a);return Math.abs(o-r)<=At?t:e}function ot(e,t,n){let r={...e,visibleStartIndex:Je(e.visibleStartIndex,C,t,n.rawViewportStart),visibleEndIndex:Ze(e.visibleEndIndex,w,t,n.rawViewportEnd,!1),startIndex:Je(e.startIndex,x,t,n.renderStart),endIndex:Ze(e.endIndex,S,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=G(),a=$(i.itemSize),o=i.gridItems||1,s=i.itemSecondarySize||a||0,c=F,l=i.typeField,u=q.value?null:i.keyField,g=f.value,v=g.length,y=de.value,b=E,ee=p.value,D=null,O=null,A,j,M,N,I,ie=a!==null||v===0||y[v-1]!=null;if(!v||!ie)!v||!T?A=j=N=I=M=0:(A=Math.min(T.startIndex,v),j=Math.min(T.endIndex,v),N=Math.min(T.visibleStartIndex,v),I=Math.min(T.visibleEndIndex,v),M=y[v-1]?.accumulator??T.totalSizeValue);else if(re)A=N=0,j=I=Math.min(i.prerender,g.length),M=0;else{let e=Ne(),n=Pe(),r=k,l=ne,u={...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,v,y,i.buffer);if(!(a===null&&(t>=c||d)||a!==null&&t>=a)&&!(o>1&&a!=null&&u>=s))return{continuous:!0}}k=e.start,ne=n.start;let p=i.buffer;u.start-=p,u.end+=p,f.start-=p,f.end+=p;let m=0,h=d.before.value;h&&(m=h.scrollHeight,u.start-=m);let _=d.after.value;if(_){let e=_.scrollHeight;u.end+=e}let b=Y(i)===`flow`&&a===null&&!t&&te&&Math.abs(e.start-r)<=jt&&Math.abs(n.start-l)<=jt;if(a===null){let t,n=0,r=v-1,i=~~(v/2),a;do a=i,t=y[i]?.accumulator??0,t<u.start?n=i:i<v-1&&(y[i+1]?.accumulator??1/0)>u.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),A=i,M=y[v-1]?.accumulator??0,j=i;j<v&&(y[j]?.accumulator??0)<u.end;j++);for(j===-1?j=g.length-1:(j++,j>v&&(j=v)),N=A;N<v&&m+(y[N]?.accumulator??1/0)<u.start;N++);for(I=N;I<v&&m+(y[I]?.accumulator??0)<u.end;I++);if(b){let t=ot({startIndex:A,endIndex:j,visibleStartIndex:N,visibleEndIndex:I},v,{rawViewportStart:e.start-m,rawViewportEnd:e.end-m,renderStart:e.start-p-m,renderEnd:e.end+p-m});A=t.startIndex,j=t.endIndex,N=t.visibleStartIndex,I=t.visibleEndIndex}T={startIndex:A,endIndex:j,visibleStartIndex:N,visibleEndIndex:I,totalSizeValue:M}}else if(o>1){let e=Ge(v,o,a,s,u,f);D=e.renderedIndices,O=new Set(D),A=e.startIndex,j=e.endIndex,N=e.visibleStartIndex,I=e.visibleEndIndex,M=e.totalSize}else{A=~~(u.start/a*o);let e=A%o;A-=e,j=Math.ceil(u.end/a*o),N=Math.max(0,Math.floor((u.start-m)/a*o)),I=Math.floor((u.end-m)/a*o),A<0&&(A=0),j>v&&(j=v),N<0&&(N=0),I>v&&(I=v),M=Math.ceil(v/o)*a}}j-A>at.itemsLimit&&ct(),m.value=M,h.value=0,_.value=Y(i)===`flow`?M:0;let L,R=A<=S&&j>=x,z=Y(i)===`flow`,B=z&&R&&!e,V=null;if(!R||e)we();else{let e=e=>{let t=ee[e];t&&(L=t,L.nr.used&&((O?O.has(L.nr.index):L.nr.index>=A&&L.nr.index<j)||Ce(L,B)))};if(B){for(let t=ee.length-1;t>=0;t--)e(t);V=xe()}else for(let t=0,n=ee.length;t<n;t++)e(t)}let H,U,ae=null,W=0;return kt(A,j,D,e=>{let t=y[e]&&y[e].size,n=a||t||F||1;H=g[e];let r=u?qe(H,e,u):e;L=b.get(r);let i=!1;if(L)L.item!==H&&(L.item=H),L.nr.used||console.warn(`Expected existing view's used flag to be true, got ${L.nr.used}`);else{if(U=H[l],L=ve(U),L){let t=L.nr.index!==e||L.nr.key!==r;L.item=H,L.nr.index=e,L.nr.key=r,L.nr.type!==U&&console.warn(`Reused view's type does not match pool's type`),t&&Dt(L)}else L=_e(ee,e,H,r,U);b.set(r,L),i=!0}a===null?(L.position=y[e-1]?.accumulator||0,L.offset=0):(L.position=Math.floor(e/o)*a,L.offset=e%o*s),V&&i&&Se(L,e,V),ae??=L.position,W+=n}),z?(ae==null?(h.value=0,_.value=M):(h.value=ae,_.value=Math.max(0,M-ae-W)),B||me()):(h.value=0,_.value=0),x=A,S=j,C=N,w=I,te=!0,i.emitUpdate&&((r=(n=d.callbacks).onUpdate)==null||r.call(n,A,j,N,I)),Y(i)!==`flow`&&(P&&clearTimeout(P),P=setTimeout(ft,i.updateInterval+300)),{continuous:R}}function ct(){throw V=setTimeout(()=>{V=null,console.warn(`It seems the scroller element isn't scrolling, so it tries to render all the items at once.`,`Scroller:`,d.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 dt(){if(Ke())return!1;let e=p.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 ft(){if(K.value){if(Y()===`flow`){me();return}p.value.sort((e,t)=>e.nr.index-t.nr.index),dt()&&(Z(!1),P&&clearTimeout(P))}}function pt(e,t){if(!K.value)return;let n=G(),r=J(n),i=d.el.value;if(!i)return;let a=Math.max(0,Math.min(e,f.value.length-1)),o=Ne().start,s=ut(i,r,n.pageMode,ue.value),c=et(X(a),Ie(a),o,s,t?.align,t?.offset??0);if(c==null)return;mt(c,t);let l=$(n.itemSize);if(n.gridItems&&l!=null){let e=d.el.value;if(!e)return;let i=n.gridItems,o=n.itemSecondarySize||l,s=a%i*o,c=r===`vertical`?`horizontal`:`vertical`,u=et(s,o,c===`horizontal`?st(e.scrollLeft,`horizontal`,e):e.scrollTop,c===`horizontal`?e.clientWidth:e.clientHeight,t?.align,t?.offset??0);u!=null&<(e,c,u,t)}}function mt(e,t){if(!K.value)return;let n=J(G()),r=d.el.value;if(r)if(le()){let i=ue.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:st(n===`vertical`?s.scrollTop:s.scrollLeft,n,s),d=l[a]-c[a];lt(o?window:s,n,e+u+d,t)}else lt(r,n,e,t)}let Q=G(),ht=f.value;return L=Ye(ht,ht.length>0&&typeof ht[0]!=`object`?null:Q.keyField),R=Tt(ht,Q.typeField),Q.cache&&he(Q.cache),K.value&&Q.prerender&&(re=!0,Z(!1)),Q.gridItems&&$(Q.itemSize)==null&&console.error(`[vue-recycle-scroller] You must provide an itemSize when using gridItems`),j(()=>{K.value&&(Ue(),c(()=>{re=!1,Z(!0),y.value=!0}))}),l(()=>{if(!K.value)return;let e=k;typeof e==`number`&&c(()=>{mt(e)})}),a(()=>{De(),Ee(),We()}),g(K,e=>{e?(Ue(),c(()=>{Z(!0),y.value=!0})):(We(),De(),Ee(),y.value=!1)}),g(()=>G().cache,e=>{K.value&&(he(e),Z(!0))}),g(()=>r(G().items).slice(),(e,t)=>{if(!K.value)return;let n=G(),r=q.value?null:n.keyField,i=Ye(e,r),a=Tt(e,n.typeField),o=L,s=!Et(i,a,o,R);n.shift&&$e(o,i)>0?Ve(t??[],r):ze(),L=i,R=a,He(e),Z(s)}),g(()=>G().keyField,()=>{if(!K.value)return;let e=G(),t=q.value?null:e.keyField;L=Ye(f.value,t),R=Tt(f.value,e.typeField),ze(),Z(!0)}),g(()=>G().typeField,()=>{if(!K.value)return;let e=G();R=Tt(f.value,e.typeField),ze(),Z(!0)}),g(le,()=>{K.value&&(We(),Ue(),Z(!1))}),g(d.el,()=>{K.value&&(We(),Ue(),Z(!1))}),g(ue,()=>{!K.value||!le()||(We(),Ue(),Z(!1))}),g(de,()=>{K.value&&(He()&&Be(),Z(!1))}),g(()=>G().gridItems,()=>{K.value&&Z(!0)}),g(()=>G().itemSecondarySize,()=>{K.value&&Z(!0)}),{pool:p,visiblePool:fe,totalSize:m,startSpacerSize:h,endSpacerSize:_,ready:y,sizes:de,simpleArray:q,scrollToItem:pt,scrollToPosition:mt,getScroll:Ne,findItemIndex:Re,getItemOffset:X,getItemSize:Ie,getViewStyle:Le,cacheSnapshot:pe,restoreCache:he,updateVisibleItems:Z,handleResize:Oe,handleVisibilityChange:Ae,sortViews:ft}}var Nt=new WeakMap;function Pt(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 Ft(e,t){It(e);let n=Pt(t.value);if(Nt.set(e,n),typeof IntersectionObserver>`u`){let t=e.getBoundingClientRect();n.visible=!0,n.callback(!0,{boundingClientRect:t});return}n.observer=new IntersectionObserver(e=>{let t=e[0],r=!!(t!=null&&t.isIntersecting);n.visible!==null&&n.visible===r||(n.visible=r,n.callback(r,t))},n.intersection),n.observer.observe(e)}function It(e){let t=Nt.get(e);t!=null&&t.observer&&(t.observer.disconnect(),t.observer=null)}var Lt={mounted(e,t){Ft(e,t)},updated(e,t){t.value!==t.oldValue&&Ft(e,t)},unmounted(e){It(e),Nt.delete(e)}},Rt=n({__name:`ItemView`,props:{view:{},itemTag:{}},setup(e){let t=e;return(e,n)=>(i(),E(p(t.itemTag),{class:`vue-recycle-scroller__item-view`},{default:y(()=>[o(e.$slots,`default`,{item:t.view.item,index:t.view.nr.index,active:t.view.nr.used})]),_:3}))}}),zt=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})(n({__name:`ResizeObserver`,emits:[`notify`],setup(e,{emit:t}){let n=t,r=v(),o=null,s=null;function c(){n(`notify`)}return j(()=>{let e=r.value?.parentElement;if(e){if(typeof ResizeObserver<`u`){o=new ResizeObserver(()=>{c()}),o.observe(e);return}s=()=>c(),window.addEventListener(`resize`,s)}}),a(()=>{o&&=(o.disconnect(),null),s&&=(window.removeEventListener(`resize`,s),null)}),(e,t)=>(i(),C(`div`,{ref_key:`el`,ref:r,class:`vue-recycle-scroller__resize-observer`,"aria-hidden":`true`},null,512))}}),[[`__scopeId`,`data-v-08cc04ab`]]),Bt=n({__name:`RecycleScroller`,props:{items:{},keyField:{default:`id`},direction:{default:`vertical`},listTag:{default:`div`},itemTag:{default:`div`},itemSize:{default:null},gridItems:{default:void 0},itemSecondarySize:{default:void 0},minItemSize:{default:null},sizeField:{default:`size`},typeField:{default:`type`},buffer:{default:200},pageMode:{type:Boolean,default:!1},scrollParent:{default:void 0},shift:{type:Boolean,default:!1},cache:{default:void 0},prerender:{default:0},emitUpdate:{type:Boolean,default:!1},disableTransform:{type:Boolean,default:!1},flowMode:{type:Boolean,default:!1},hiddenPosition:{default:void 0},updateInterval:{default:0},skipHover:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},listClass:{default:``},itemClass:{default:``}},emits:[`resize`,`visible`,`hidden`,`update`,`scrollStart`,`scrollEnd`],setup(e,{expose:t,emit:n}){let r=e,a=n,c=Lt,l=v(),u=v(),g=v(),_=v(null),S=d(r,`items`),{pool:ee,visiblePool:O,totalSize:A,startSpacerSize:j,endSpacerSize:ne,ready:re,scrollToItem:M,scrollToPosition:N,getScroll:P,findItemIndex:F,getItemOffset:I,getItemSize:ie,getViewStyle:L,cacheSnapshot:R,restoreCache:z,updateVisibleItems:B,handleResize:V,handleVisibilityChange:H}=Mt(b(()=>({items:S,el:l,before:u,after:g,keyField:r.keyField,direction:r.direction,itemSize:r.itemSize,gridItems:r.gridItems,itemSecondarySize:r.itemSecondarySize,minItemSize:r.minItemSize,sizeField:r.sizeField,typeField:r.typeField,buffer:r.buffer,pageMode:r.pageMode,scrollParent:r.scrollParent,shift:r.shift,cache:r.cache,prerender:r.prerender,emitUpdate:r.emitUpdate,disableTransform:r.disableTransform,flowMode:r.flowMode,hiddenPosition:r.hiddenPosition,updateInterval:r.updateInterval,enabled:r.enabled,onResize:()=>a(`resize`),onVisible:()=>a(`visible`),onHidden:()=>a(`hidden`),onUpdate:(e,t,n,i)=>{a(`update`,e,t,n,i),n<=0&&a(`scrollStart`),i>=r.items.length-1&&a(`scrollEnd`)}}))),U=b(()=>tt({direction:r.direction,disableTransform:r.disableTransform,flowMode:r.flowMode,gridItems:r.gridItems})===`flow`),ae=b(()=>({height:`${j.value}px`})),W=b(()=>({height:`${ne.value}px`}));function oe(e){_.value=e}function se(){_.value=null}let ce=b(()=>{let e={[r.direction===`vertical`?`minHeight`:`minWidth`]:`${A.value}px`},t=$(r.itemSize);if(r.gridItems&&t!=null){let n=(r.itemSecondarySize||t)*r.gridItems;e[r.direction===`vertical`?`minWidth`:`minHeight`]=`${n}px`}return e});return t({el:l,visiblePool:O,startSpacerSize:j,endSpacerSize:ne,scrollToItem:M,scrollToPosition:N,getScroll:P,findItemIndex:F,getItemOffset:I,getItemSize:ie,cacheSnapshot:R,restoreCache:z,updateVisibleItems:B}),(e,t)=>te((i(),C(`div`,{ref_key:`el`,ref:l,class:f([`vue-recycle-scroller`,{"grid-mode":r.gridItems,"flow-mode":U.value,ready:w(re),"page-mode":r.pageMode,[`direction-${r.direction}`]:!0}])},[e.$slots.before?(i(),C(`div`,{key:0,ref_key:`before`,ref:u,class:`vue-recycle-scroller__slot`},[o(e.$slots,`before`)],512)):T(``,!0),(i(),E(p(r.listTag),{style:m(ce.value),class:f([`vue-recycle-scroller__item-wrapper`,r.listClass])},{default:y(()=>[U.value&&w(j)>0?(i(),E(p(r.itemTag),{key:0,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:m(ae.value)},null,8,[`style`])):T(``,!0),(i(!0),C(h,null,D(w(ee),t=>(i(),E(Rt,s({key:t.nr.id,view:t,"item-tag":r.itemTag,style:w(re)?w(L)(t):null,class:[`vue-recycle-scroller__item-view`,[r.itemClass,{hover:!r.skipHover&&_.value===t.nr.key}]]},x(r.skipHover?{}:{mouseenter:()=>{oe(t.nr.key)},mouseleave:()=>{se()}})),{default:y(t=>[o(e.$slots,`default`,s({ref_for:!0},t))]),_:2},1040,[`view`,`item-tag`,`style`,`class`]))),128)),U.value&&w(ne)>0?(i(),E(p(r.itemTag),{key:1,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:m(W.value)},null,8,[`style`])):T(``,!0),r.items.length===0?o(e.$slots,`empty`,{key:2}):T(``,!0)]),_:3},8,[`style`,`class`])),e.$slots.after?(i(),C(`div`,{key:1,ref_key:`after`,ref:g,class:`vue-recycle-scroller__slot`},[o(e.$slots,`after`)],512)):T(``,!0),k(zt,{onNotify:w(V)},null,8,[`onNotify`])],2)),[[w(c),w(H)]])}}),Vt={"h-full":``,flex:`~ col gap-4`},Ht={flex:`~ items-center`},Ut={flex:`~ col`,"w-30":``,"of-auto":``},Wt={flex:`~ justify-between`,"w-full":``,"text-xs":``,capitalize:``,op75:``},Gt={flex:`~ items-center gap-2`},Kt={flex:`~ gap1`,"text-sm":``,op50:``},qt={key:0},Jt={"flex-auto":``,"of-auto":``,flex:`~ col gap-2`,pl6:``,pr4:``},Yt=Object.assign(n({__name:`ModuleInstallList`,emits:[`close`],setup(e,{emit:n}){let r=n,a=q(),o=fe(),s=[`downloads`,`stars`,`updated`,`created`],c=v(!1),l=v(s[0]),d=v(!0),f={downloads:(e,t)=>e.stats.downloads-t.stats.downloads,stars:(e,t)=>e.stats.stars-t.stats.stars,created:(e,t)=>e.stats.createdAt-t.stats.createdAt,updated:(e,t)=>e.stats.publishedAt-t.stats.publishedAt},p=b(()=>a.value?.toSorted((e,t)=>f[l.value](e,t)*(c.value?1:-1))),m=v(``),g=b(()=>new L(a.value||[],{keys:[`name`,`description`,`npm`,`category`],sortFn:(e,t)=>{let n=a.value?.[e.idx],r=a.value?.[t.idx];return n&&r?f[l.value](n,r)*(c.value?1:-1):e.score-t.score},threshold:.2})),x=b(()=>{let e=p.value;return d.value&&(e=(e||[]).filter(e=>!o.value.some(t=>t.name===e.name))),m.value?g.value.search(m.value).map(e=>e.item).filter(t=>e?.includes(t)):e});return(e,n)=>{let o=G,f=F,p=t,g=V,v=oe,b=ce,ee=Ge;return i(),C(`div`,Vt,[k(o,{mx6:``,mt6:``,"text-xl":``,op75:``,icon:`i-carbon-intent-request-create`,text:`Install Module`}),k(b,{search:m.value,"onUpdate:search":n[2]||=e=>m.value=e,"no-padding":``,"px-6":``,"pb-3":``,"pt-2":``},{actions:y(()=>[k(g,{direction:`end`,n:`sm primary`},{trigger:y(({click:e})=>[S(`div`,Ht,[k(f,{icon:c.value?`tabler:sort-ascending`:`tabler:sort-descending`,"h-full":``,"rounded-r-none":``,onClick:n[0]||=e=>c.value=!c.value},null,8,[`icon`]),k(f,{flex:`~ justify-between`,"min-w-30":``,"border-l-0":``,"rounded-l-none":``,"px-2":``,capitalize:``,hover:`border-l-1`,onClick:t=>e()},{default:y(()=>[_(u(l.value)+` `,1),k(p,{icon:`carbon:chevron-down`})]),_:1},8,[`onClick`])])]),default:y(()=>[S(`div`,Ut,[(i(),C(h,null,D(s,e=>k(f,{key:e,border:!1,p2:``,hover:`n-checkbox-hover text-green`,onClick:t=>l.value=e},{default:y(()=>[S(`span`,Wt,[_(u(e)+` `,1),l.value===e?(i(),E(p,{key:0,icon:`carbon:checkmark`})):T(``,!0)])]),_:2},1032,[`onClick`])),64))])]),_:1})]),default:y(()=>[S(`div`,Gt,[k(v,{modelValue:d.value,"onUpdate:modelValue":n[1]||=e=>d.value=e,n:`primary md`},{default:y(()=>[...n[4]||=[S(`span`,{op75:``},`Exclude installed modules`,-1)]]),_:1},8,[`modelValue`]),S(`div`,Kt,[m.value||d.value?(i(),C(`span`,qt,u(x.value?.length)+` matched · `,1)):T(``,!0),S(`span`,null,u(w(a)?.length)+` modules in total`,1)])])]),_:1},8,[`search`]),S(`div`,Jt,[k(w(Bt),{class:`scroller`,items:x.value||[],"item-size":200,"key-field":`name`},{default:y(({item:e})=>[k(ee,{item:e,onStart:n[3]||=e=>r(`close`)},null,8,[`item`])]),_:1},8,[`items`])])])}}}),{__name:`ModuleInstallList`}),Xt={flex:`~ col gap-2`,"w-150":``,p4:``,border:`t base`},Zt={capitalize:``},Qt={op50:``},$t={flex:`~ gap-3`,mt2:``,"justify-end":``},en=Object.assign(n({__name:`ModuleActionDialog`,setup(e){let t=M(),n=N(),r={};return(e,a)=>{let o=Pe,s=H,c=pe,l=J,d=W,p=F,m=ie;return i(),E(w(z),null,{default:y(({resolve:e,args:i})=>[k(m,{"model-value":!0,onClose:t=>e(!1)},{default:y(()=>[k(o,{mod:r,info:i[0],border:`none`,"w-150":``,"n-panel-grids":``},null,8,[`info`]),S(`div`,Xt,[S(`h2`,{"text-xl":``,class:f(i[2]===`install`?`text-primary`:`text-red`)},[S(`span`,Zt,u(i[2]),1),a[1]||=_(),S(`code`,null,u(i[0].name),1),a[2]||=_(`? `,-1)],2),a[7]||=S(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),k(s,{code:i[1].commands.join(` `),lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),S(`p`,Qt,[a[3]||=_(` Then your `,-1),k(c,{role:`button`,n:`primary`,underline:``,onClick:a[0]||=e=>w(n)(w(t)?._nuxtConfigFile),textContent:`Nuxt config`}),a[4]||=_(` will be updated as: `,-1)]),k(l,{from:i[1].configOriginal,to:i[1].configGenerated,"max-h-80":``,"of-auto":``,py2:``,border:`~ base rounded`,lang:`ts`},null,8,[`from`,`to`]),a[8]||=S(`p`,null,[S(`span`,{op50:``},`After that, Nuxt will `),S(`span`,{"text-orange":``},`restart automatically`),_(`. `)],-1),S(`div`,$t,[k(d,{n:`sm amber`,"flex-auto":``,icon:`i-carbon-data-backup`},{default:y(()=>[...a[5]||=[_(` Please make sure to backup your project first. `,-1)]]),_:1}),k(p,{onClick:t=>e(!1)},{default:y(()=>[...a[6]||=[_(` Cancel `,-1)]]),_:1},8,[`onClick`]),k(p,{n:`solid`,capitalize:``,class:f(i[2]===`install`?`n-primary`:`n-red`),onClick:t=>e(!0)},{default:y(()=>[_(u(i[2]),1)]),_:2},1032,[`class`,`onClick`])])])]),_:2},1032,[`onClose`])]),_:1})}}}),{__name:`ModuleActionDialog`}),tn={},nn={class:`markdown-body`};function rn(e,t){return i(),C(`div`,nn,[...t[0]||=[S(`template`,null,[S(`div`,{class:`markdown-body`},[S(`h1`,null,`Modules`),S(`p`,null,[_(`Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using `),S(`code`,{"v-pre":``},`nuxt.config`),_(`.`)]),S(`p`,null,[_(`You can explore the list of modules on `),S(`a`,{href:`https://nuxt.com/modules`,target:`_blank`,rel:`noopener`},`nuxt.com/modules`),_(` or install them directly inside the DevTools.`)]),S(`p`,null,[S(`a`,{href:`https://nuxt.com/docs/guide/concepts/modules`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var an=P(tn,[[`render`,rn]]),on={"h-full":``,"w-full":``,"of-auto":``},sn=[`onClick`],cn={relative:``,"h-20":``,"w-20":``,flex:``,"flex-none":``,rounded:``,"bg-gray:3":``,p3:``},ln=[`src`,`alt`],un={"text-lg":``,"group-hover":`text-primary`,transition:``,flex:`~ gap-2 items-center`},dn={op75:``},fn={key:0,border:`l base`,pos:`fixed bottom-0 right-0 top-0`,"z-200":``,"w-150":``,"bg-base":``},pn=`https://ipx.nuxt.com/s_80,f_webp/gh/nuxt/modules/main/icons/`,mn=n({__name:`modules`,setup(t){U({icon:`carbon-3d-mpr-toggle`,title:`Modules`,order:5});let n=v(!1),r=fe(),a=b(()=>r.value.filter(e=>e.isPackageModule)),o=b(()=>r.value.filter(e=>!e.isPackageModule));return R(()=>[{id:`action:modules:install`,title:`Install a new module`,icon:`i-carbon-intent-request-create `,action:()=>{n.value=!0}}]),(t,r)=>{let s=We,c=I,l=le,d=F,f=Yt,p=en,m=an,g=se;return i(),C(h,null,[S(`div`,on,[k(l,{icon:`carbon-3d-mpr-toggle`,text:`Installed Modules`,"container-class":`grid grid-cols-minmax-400px gap3 px4`,padding:!1,description:`Total modules: ${a.value.length}`},{default:y(()=>[(i(!0),C(h,null,D(a.value,e=>(i(),E(s,{key:e.name,mod:e},null,8,[`mod`]))),128)),(i(!0),C(h,null,D(`processInstallingModules`in t?t.processInstallingModules:w(Y),t=>(i(),C(`button`,{key:t.processId,block:``,"min-h-30":``,title:`Open the output in the Terminals dock`,onClick:n=>w(e).revealTerminal(t.processId)},[k(c,{border:`1.5 dashed`,"h-full":``,"animate-pulse":``,p4:``,transition:``,hover:`border-primary`,flex:`~ col gap-1 items-center justify-center`,role:`button`,class:`group`},{default:y(()=>[S(`div`,cn,[S(`img`,{src:pn+t.info.icon,alt:t.info.name,ma:``},null,8,ln),r[4]||=S(`div`,{"i-carbon-cube":``,ma:``,"text-4xl":``,op30:``},null,-1)]),S(`div`,un,[r[5]||=S(`div`,{"i-carbon-circle-dash":``,"animate-spin":``,"text-xl":``,op75:``},null,-1),S(`span`,dn,`Installing `+u(t.name)+`...`,1)])]),_:2},1024)],8,sn))),128)),k(c,{border:`1.5 dashed`,"min-h-30":``,p4:``,transition:``,hover:`border-primary`,flex:`~ col gap-2 items-center justify-center`,role:`button`,class:`group`,onClick:r[0]||=e=>n.value=!0},{default:y(()=>[...r[6]||=[S(`div`,{"i-carbon-intent-request-create":``,"text-4xl":``,op40:``,"group-hover":`op75 text-primary`,transition:``},null,-1),S(`div`,{"text-lg":``,op40:``,"group-hover":`op75 text-primary`,transition:``},` Install New Module `,-1)]]),_:1})]),_:1},8,[`description`]),o.value.length?(i(),E(l,{key:0,icon:`carbon-3d-mpr-toggle`,text:`User Modules`,"container-class":`grid grid-cols-minmax-400px gap3 px4`,padding:!1,description:`Total modules: ${o.value.length}`},{default:y(()=>[(i(!0),C(h,null,D(o.value,e=>(i(),C(h,{key:e.meta?.name||e.entryPath},[e.meta?.name||e.entryPath?(i(),E(s,{key:0,mod:e},null,8,[`mod`])):T(``,!0)],64))),128))]),_:1},8,[`description`])):T(``,!0),k(ne,{name:`fade-in`},{default:y(()=>[n.value?(i(),C(`div`,{key:0,class:`fixed bottom-0 left-0 right-0 top-0 z-100`,"bg-black:20":``,"backdrop-blur-2":``,onClick:r[1]||=e=>n.value=!1})):T(``,!0)]),_:1}),k(ne,{name:`slide-in`},{default:y(()=>[n.value?(i(),C(`div`,fn,[k(d,{icon:`carbon-close`,pos:`absolute top-3 right-3 z-10`,"rounded-full":``,"text-xl":``,border:!1,onClick:r[2]||=e=>n.value=!1}),k(f,{onClose:r[3]||=e=>n.value=!1})])):T(``,!0)]),_:1}),k(p)]),k(g,null,{default:y(()=>[k(m)]),_:1})],64)}}});export{mn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{H as e,J as t,h as n}from"./vendor/json-editor-vue-lmhxk84q.js";import{t as r}from"./_plugin-vue_export-helper-d9irwgla.js";var i={},a={class:`n-badge`};function o(r,i){return e(),n(`span`,a,[t(r.$slots,`default`)])}var s=Object.assign(r(i,[[`render`,o]]),{__name:`NBadge`});export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{H as e,J as t,h as n}from"./vendor/json-editor-vue-lmhxk84q.js";import{t as r}from"./_plugin-vue_export-helper-d9irwgla.js";var i={},a={class:`n-card n-card-base`};function o(r,i){return e(),n(`div`,a,[t(r.$slots,`default`)])}var s=Object.assign(r(i,[[`render`,o]]),{__name:`NCard`});export{s as t};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{E as e,H as t,R as n,V as r,w as i,z as a}from"./nicon-obdu3k9r.js";import{C as o,Ct as s,Dt as c,H as l,J as u,M as d,N as f,Yt as p,at as m,bt as h,c as g,ct as _,d as v,f as y,kt as b,lt as x,m as S,ot as C,p as w,x as T}from"./vendor/json-editor-vue-lmhxk84q.js";import{xt as E}from"./ready-h6bi8le4.js";import{t as ee}from"./ncard-mtvdl2wf.js";var D=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],O=D.join(`,`),k=typeof Element>`u`,A=k?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,j=!k&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},M=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):M(e.parentNode))},te=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},N=function(e,t,n){if(M(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(O));return t&&A.call(e,O)&&r.unshift(e),r=r.filter(n),r},P=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!M(a,!1))if(a.tagName===`SLOT`){var o=a.assignedElements(),s=P(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{A.call(a,O)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!M(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=P(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return r},F=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},I=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||te(e))&&!F(e)?0:e.tabIndex},ne=function(e,t){var n=I(e);return n<0&&t&&!F(e)?0:n},re=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},L=function(e){return e.tagName===`INPUT`},ie=function(e){return L(e)&&e.type===`hidden`},ae=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},oe=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},se=function(e){if(!e.name)return!0;var t=e.form||j(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=oe(r,e.form);return!i||i===e},ce=function(e){return L(e)&&e.type===`radio`},le=function(e){return ce(e)&&!se(e)},ue=function(e){var t=e&&j(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=j(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},R=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},de=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=A.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(A.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=j(e);if(s&&!s.shadowRoot&&r(s)===!0)return R(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(ue(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return R(e);return!1},fe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return A.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},z=function(e,t){return!(t.disabled||ie(t)||de(t,e)||ae(t)||fe(t))},B=function(e,t){return!(le(t)||I(t)<0||!z(e,t))},pe=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},V=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=ne(a,i),s=i?V(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(re).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},me=function(e,t){return t||={},V(t.getShadowRoot?P([e],t.includeContainer,{filter:B.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:pe}):N(e,t.includeContainer,B.bind(null,t)))},he=function(e,t){return t||={},t.getShadowRoot?P([e],t.includeContainer,{filter:z.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):N(e,t.includeContainer,z.bind(null,t))},H=function(e,t){if(t||={},!e)throw Error(`No node provided`);return A.call(e,O)!==!1&&B(t,e)},ge=D.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),U=function(e,t){if(t||={},!e)throw Error(`No node provided`);return A.call(e,ge)!==!1&&z(t,e)};function W(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _e(e){if(Array.isArray(e))return W(e)}function G(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=J(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function ve(e,t,n){return(t=Ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function be(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?K(Object(n),!0).forEach(function(t){ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xe(e){return _e(e)||ye(e)||J(e)||be()}function Se(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ce(e){var t=Se(e,`string`);return typeof t==`symbol`?t:t+``}function J(e,t){if(e){if(typeof e==`string`)return W(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}var Y={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){t!==Y.getActiveTrap(e)&&Y.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),Y.unpauseTrap(e)},pauseTrap:function(e){Y.getActiveTrap(e)?._setPausedState(!0)},unpauseTrap:function(e){var t=Y.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},we=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},Te=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},X=function(e){return e?.key===`Tab`||e?.keyCode===9},Ee=function(e){return X(e)&&!e.shiftKey},De=function(e){return X(e)&&e.shiftKey},Z=function(e){return setTimeout(e,0)},Q=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},$=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},Oe=[],ke=function(e,t){var n=t?.document||document,r=t?.trapStack||Oe,i=q({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:Ee,isKeyBackward:De},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,xe(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(e){var t=e.activeElement;return t?t.shadowRoot&&t.shadowRoot.activeElement!==null?u(t.shadowRoot):t:null},d=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!U(e,i.tabbableOptions)){var t=u(n);if(c(t)>=0)e=t;else{var r=a.tabbableGroups[0];e=r&&r.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},f=function(){if(a.containerGroups=a.containers.map(function(e){var t=me(e,i.tabbableOptions),n=he(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return H(e)}),s=n.slice().reverse().find(function(e){return H(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return I(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return H(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return H(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw Error(`At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.`)},p=function(e){if(e!==!1&&e!==u(document)){if(!e||!e.focus){p(d());return}e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,we(e)&&e.select()}},m=function(e){var t=l(`setReturnFocus`,{params:[e]});return t||t!==!1&&e},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r!==void 0&&r;t||=$(n),f();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),d=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(d.container===t||U(t,i.tabbableOptions)&&!H(t,i.tabbableOptions)&&!d.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=I(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else X(n)||(s=d.nextTabbableNode(t,!1))}else{var g=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(d.container===t||U(t,i.tabbableOptions)&&!H(t,i.tabbableOptions)&&!d.nextTabbableNode(t))&&(g=u),g>=0){var _=g===a.tabbableGroups.length-1?0:g+1,v=a.tabbableGroups[_];s=I(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else X(n)||(s=d.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},g=function(e){if(!(c($(e),e)>=0)){if(Q(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Q(i.allowOutsideClick,e)||e.preventDefault()}},_=function(e){var t=$(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode)if(I(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var u=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});u>=0&&(i.isKeyForward(a.recentNavEvent)?u+1<l.length&&(r=l[u+1],o=!1):u-1>=0&&(r=l[u-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return I(e)>0})})||(o=!1);else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||d())}a.recentNavEvent=void 0},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(X(e)&&e.preventDefault(),p(n))},y=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&v(e,i.isKeyBackward(e))},b=function(e){Te(e)&&Q(i.escapeDeactivates,e)!==!1&&(e.preventDefault(),o.deactivate())},x=function(e){c($(e),e)>=0||Q(i.clickOutsideDeactivates,e)||Q(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},S=function(){if(a.active){Y.activateTrap(r,o);var e;return i.delayInitialFocus?e=new Promise(function(e){a.delayInitialFocusTimer=Z(function(){p(d()),e()})}):p(d()),n.addEventListener(`focusin`,_,!0),n.addEventListener(`mousedown`,g,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,g,{capture:!0,passive:!1}),n.addEventListener(`click`,x,{capture:!0,passive:!1}),n.addEventListener(`keydown`,y,{capture:!0,passive:!1}),n.addEventListener(`keydown`,b),e}},C=function(e){a.active&&!a.paused&&o._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t=new Set,n=new Set,r=G(e),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;t.add(s);for(var c=typeof ShadowRoot<`u`&&s.getRootNode()instanceof ShadowRoot,l=s;l;){t.add(l);var u=l.parentElement,d=[];u?d=u.children:!u&&c&&(d=l.getRootNode().children,u=l.getRootNode().host,c=typeof ShadowRoot<`u`&&u.getRootNode()instanceof ShadowRoot);var f=G(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;n.add(m)}}catch(e){f.e(e)}finally{f.f()}l=u}}}catch(e){r.e(e)}finally{r.f()}t.forEach(function(e){n.delete(e)}),a.adjacentElements=n},w=function(){if(a.active)return n.removeEventListener(`focusin`,_,!0),n.removeEventListener(`mousedown`,g,!0),n.removeEventListener(`touchstart`,g,!0),n.removeEventListener(`click`,x,!0),n.removeEventListener(`keydown`,y,!0),n.removeEventListener(`keydown`,b),o},T=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){var t=a.mostRecentlyFocusedNode;t&&e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===t||typeof e.contains==`function`&&e.contains(t)})})&&a.containers.some(function(e){return e?.isConnected})&&(f(),p(d()))}):void 0,E=function(){T&&(T.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){T.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),i=s(e,`onPostActivate`),c=s(e,`checkCanFocusTrap`),l=Y.getActiveTrap(r),d=!1;if(l&&!l.paused){var p;(p=l._setSubtreeIsolation)==null||p.call(l,!1),d=!0}try{c||f(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=u(n),t?.({trap:o});var m=function(){c&&f();var e=function(){o._setSubtreeIsolation(!0),E(),i?.({trap:o})},t=S();t?t.then(e):e()};if(c)return c(a.containers.concat()).then(m,m),this;m()}catch(e){if(l===Y.getActiveTrap(r)&&d){var h;(h=l._setSubtreeIsolation)==null||h.call(l,!0)}throw e}return this},deactivate:function(e){if(!a.active)return this;var t=q({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||o._setSubtreeIsolation(!1),a.alreadySilent.clear(),w(),a.active=!1,a.paused=!1,E(),Y.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`delayReturnFocus`),d=s(t,`returnFocus`,`returnFocusOnDeactivate`);n?.({trap:o});var f=function(){d&&p(m(a.nodeFocusedBeforeActivation)),c?.({trap:o})},h=function(){u&&d?Z(f):f()};return d&&l?(l(m(a.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return!a.active||(a.manuallyPaused=!1,r[r.length-1]!==this)?this:this._setPausedState(!1,e)},updateContainerElements:function(e){return a.containers=[].concat(e).filter(Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),i.isolateSubtrees&&C(a.containers),a.active&&(f(),a.paused||o._setSubtreeIsolation(!0)),E(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,`onPause`),r=s(t,`onPostPause`);n?.({trap:o}),w(),o._setSubtreeIsolation(!1),E(),r?.({trap:o})}else{var i=s(t,`onUnpause`),c=s(t,`onPostUnpause`);i?.({trap:o}),(function(){f();var e=function(){o._setSubtreeIsolation(!0),E(),c?.({trap:o})},t=S();t?t.then(e):e()})()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){if(e)switch(i.isolateSubtrees){case`aria-hidden`:(t.ariaHidden===`true`||t.getAttribute(`aria-hidden`)?.toLowerCase()===`true`)&&a.alreadySilent.add(t),t.setAttribute(`aria-hidden`,`true`);break;default:(t.inert||t.hasAttribute(`inert`))&&a.alreadySilent.add(t),t.setAttribute(`inert`,!0);break}else if(!a.alreadySilent.has(t))switch(i.isolateSubtrees){case`aria-hidden`:t.removeAttribute(`aria-hidden`);break;default:t.removeAttribute(`inert`);break}})}}}),o.updateContainerElements(e),o};function Ae(n,i={}){let o,{immediate:l,...u}=i,d=s(!1),f=s(!1),p=e=>o&&o.activate(e),h=e=>o&&o.deactivate(e);return m(v(()=>r(c(n)).map(t=>{let n=c(t);return typeof n==`string`?n:e(n)}).filter(a)),e=>{if(e.length)if(!o)o=ke(e,{...u,onActivate(e){d.value=!0,i.onActivate&&i.onActivate(e)},onDeactivate(e){d.value=!1,i.onDeactivate&&i.onDeactivate(e)}}),l&&p();else{let t=o?.active;o?.updateContainerElements(e),!t&&l&&p()}},{flush:`post`}),t(()=>h()),{hasFocus:d,isPaused:f,activate:p,deactivate:h,pause:()=>{o&&(o.pause(),f.value=!0)},unpause:()=>{o&&(o.unpause(),f.value=!1)}}}var je=Object.assign(o({inheritAttrs:!1,__name:`NDialog`,props:{modelValue:{type:Boolean,default:!1},dim:{type:Boolean,default:!0},autoClose:{type:Boolean,default:!0}},emits:[`close`,`update:modelValue`],setup(e,{emit:t}){let r=e,a=t,o=n(r,`modelValue`,a,{passive:!0}),s=h(null),c=h(!1),{activate:m,deactivate:D}=Ae(v(()=>s.value||document.body),{immediate:!1});return C(()=>{!c.value&&o.value&&(c.value=!0),o.value&&s.value?f(m):D()}),i(s,()=>{r.modelValue&&r.autoClose&&(o.value=!1,a(`close`))},{ignore:[`a`,`button`,`summary`]}),(t,n)=>{let r=ee;return c.value?(l(),w(g,{key:0,to:`body`},[x(y(`div`,{class:p([`fixed inset-0 z-100 flex items-center justify-center n-glass-effect n-transition`,[b(o)?``:`op0 pointer-events-none visibility-none`]]),role:`dialog`,"aria-modal":`true`},[y(`div`,{class:p([`absolute inset-0 -z-1`,[e.dim?`glass-effect`:``]])},null,2),T(r,d(t.$attrs,{ref_key:`card`,ref:s,class:`max-h-screen of-auto`}),{default:_(()=>[u(t.$slots,`default`)]),_:3},16)],2),[[E,b(o)]])])):S(``,!0)}}}),{__name:`NDialog`});export{je as t};
|