@nuxt/devtools 3.2.3 → 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/chunks/module-main.mjs +264 -140
- package/dist/chunks/timeline.mjs +0 -1
- package/dist/chunks/vscode.mjs +14 -41
- package/dist/chunks/vue-devtools.mjs +0 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-cpzbm3dn.js +1 -0
- package/dist/client/_nuxt/analyze-build-e7v5vkef.js +1 -0
- package/dist/client/_nuxt/{assets-fjp0hrmh.js → assets-b5c187l4.js} +2 -2
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/25fc8778-785e-4df1-8047-b131fc1cd4b2.json +1 -0
- package/dist/client/_nuxt/{client-lh91kcpv.js → client-im47u3kz.js} +1 -1
- package/dist/client/_nuxt/code-diff-idsu3m0z.js +8 -0
- package/dist/client/_nuxt/{code-snippets-ho13b87l.js → code-snippets-k81hoi4s.js} +1 -1
- package/dist/client/_nuxt/components-bmictfph.js +1 -0
- package/dist/client/_nuxt/composable-item-cza22cup.js +1 -0
- package/dist/client/_nuxt/composables-b2ccklz4.js +1 -0
- package/dist/client/_nuxt/constants-ih922r91.js +1 -0
- package/dist/client/_nuxt/copkoh3j.js +4 -0
- package/dist/client/_nuxt/custom-_name_-gqm5kr56.js +1 -0
- package/dist/client/_nuxt/{data-schema-button-ke4komn6.js → data-schema-button-b308wyi0.js} +1 -1
- package/dist/client/_nuxt/data-schema-drawer-lr34uwsh.js +2 -0
- package/dist/client/_nuxt/debug-kgc8fptp.js +1 -0
- package/dist/client/_nuxt/{default-bunv5fnq.js → default-jvhm51ri.js} +1 -1
- package/dist/client/_nuxt/dev-auth-ojiqold5.js +1 -0
- package/dist/client/_nuxt/{duration-display-20xlusue.js → duration-display-f7ucshmo.js} +1 -1
- package/dist/client/_nuxt/entry.css-me26coxn.css +1 -0
- package/dist/client/_nuxt/error-404-nggtc73s.js +1 -0
- package/dist/client/_nuxt/error-404.css-j1aav08u.css +1 -0
- package/dist/client/_nuxt/error-500-dym2gzqx.js +1 -0
- package/dist/client/_nuxt/error-500.css-eu9fz4va.css +1 -0
- package/dist/client/_nuxt/{error-isnb18yz.js → error-fqinfa1x.js} +2 -2
- package/dist/client/_nuxt/{filepath-item-fnp9jxof.js → filepath-item-e1s52fbh.js} +1 -1
- package/dist/client/_nuxt/full-et0weok9.js +1 -0
- package/dist/client/_nuxt/{help-fab-oc1qudll.js → help-fab-hz6r2oxa.js} +1 -1
- package/dist/client/_nuxt/hooks-i7nsduqp.js +1 -0
- package/dist/client/_nuxt/imports-9o2qs53q.js +1 -0
- package/dist/client/_nuxt/{launch-page-kf0w74wk.js → launch-page-hpkkqhit.js} +1 -1
- package/dist/client/_nuxt/mitt.es-fjx0h8xe.js +1 -0
- package/dist/client/_nuxt/modules-jok0opuq.js +1 -0
- package/dist/client/_nuxt/nbadge-m66xoquo.js +1 -0
- package/dist/client/_nuxt/{nbutton-oi1rfqiz.js → nbutton-gygn07c2.js} +1 -1
- package/dist/client/_nuxt/ncard-mqcl8pso.js +1 -0
- package/dist/client/_nuxt/ncheckbox-c0r45qtu.js +1 -0
- package/dist/client/_nuxt/{ncode-block-coc4sua0.js → ncode-block-figzf35k.js} +1 -1
- package/dist/client/_nuxt/ndrawer-bgqyrlmt.js +1 -0
- package/dist/client/_nuxt/ndropdown-cip8lboe.js +1 -0
- package/dist/client/_nuxt/{nicon-m5br9nvg.js → nicon-m1crov2l.js} +1 -1
- package/dist/client/_nuxt/{nicon-title-e35pdr21.js → nicon-title-tqdvw0w0.js} +1 -1
- package/dist/client/_nuxt/{nlink-dmk2d6qc.js → nlink-od4lllbl.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown-nct1w6kn.js → nmarkdown-hw0hmqw7.js} +1 -1
- package/dist/client/_nuxt/{nnavbar-n3j7iul1.js → nnavbar-lpozm5fj.js} +1 -1
- package/dist/client/_nuxt/none-bdxkqeml.js +1 -0
- package/dist/client/_nuxt/npanel-grids-dd23ifsw.js +1 -0
- package/dist/client/_nuxt/nsection-block-lqrohs9v.js +1 -0
- package/dist/client/_nuxt/nselect-gczoit0g.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-bsw5fg3d.js +1 -0
- package/dist/client/_nuxt/{nswitch-b36trghq.js → nswitch-ke379yjx.js} +1 -1
- package/dist/client/_nuxt/ntext-input-cygthohl.js +1 -0
- package/dist/client/_nuxt/ntip-ke63ovgc.js +1 -0
- package/dist/client/_nuxt/nuxt-link-bumooa9d.js +1 -0
- package/dist/client/_nuxt/nuxt-otp6bp04.js +1 -0
- package/dist/client/_nuxt/{open-graph-m7wd1sxi.js → open-graph-lumhcitx.js} +2 -2
- package/dist/client/_nuxt/overview-c1ufrox9.js +1 -0
- package/dist/client/_nuxt/pages-cf1hvns3.js +1 -0
- package/dist/client/_nuxt/pages-lgihsvbt.js +1 -0
- package/dist/client/_nuxt/payload-fvgw4hh9.js +1 -0
- package/dist/client/_nuxt/pinia-lmrgyjxw.js +1 -0
- package/dist/client/_nuxt/plugins-ccaip8nh.js +1 -0
- package/dist/client/_nuxt/ready-dadbdj5i.js +1 -0
- package/dist/client/_nuxt/render-tree-corj3giw.js +1 -0
- package/dist/client/_nuxt/rpc-ez4fzlum.js +1 -0
- package/dist/client/_nuxt/runtime-configs-im0uu24n.js +1 -0
- package/dist/client/_nuxt/server-discovery-ffkkczqi.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-lspeoiem.js +1 -0
- package/dist/client/_nuxt/server-routes-dhvqrowz.js +7 -0
- package/dist/client/_nuxt/server-tasks-mr9ezn8q.js +1 -0
- package/dist/client/_nuxt/settings-issronwn.js +1 -0
- package/dist/client/_nuxt/{splitpanes.es-ceqv8417.js → splitpanes.es-bxyirks2.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list-m1sv2uvd.js → stacktrace-list-hiui24c3.js} +1 -1
- package/dist/client/_nuxt/state-components-fbls8ka7.js +1 -0
- package/dist/client/_nuxt/state-editor-c7e04uj2.js +1 -0
- package/dist/client/_nuxt/state-modules-inqbwd7z.js +1 -0
- package/dist/client/_nuxt/{state-routes-m6gv5n9v.js → state-routes-jln33b1m.js} +1 -1
- package/dist/client/_nuxt/state-tabs-etl5jr30.js +1 -0
- package/dist/client/_nuxt/storage-husj5pg6.js +1 -0
- package/dist/client/_nuxt/storage-options-cth3coln.js +1 -0
- package/dist/client/_nuxt/telemetry-eqv6a0hn.js +1 -0
- package/dist/client/_nuxt/terminals-kitd8oja.js +1 -0
- package/dist/client/_nuxt/timeline-gr4tcvcz.js +31 -0
- package/dist/client/_nuxt/unocss-runtime-cpug61u1.js +1 -0
- package/dist/client/_nuxt/utils-nbkl6byi.js +2 -0
- package/dist/client/_nuxt/vendor/{json-editor-vue-hkofgjf7.js → json-editor-vue-eojr4v24.js} +3 -3
- package/dist/client/_nuxt/vendor/{markdown-it-bcxn77q6.js → markdown-it-ckeo8pwp.js} +1 -1
- package/dist/client/_nuxt/vendor/{shiki-niqic03h.js → shiki-lqo1hg2n.js} +3 -3
- package/dist/client/_nuxt/vendor/{unocss-bj3ln324.js → unocss-k727ub0h.js} +1 -1
- package/dist/client/_nuxt/virtual-files-ky9cc4av.js +1 -0
- package/dist/client/_nuxt/vue-devtools-dunhx2nz.js +4 -0
- package/dist/client/_nuxt/{vue-router-dxks01bs.js → vue-router-jbnxw7nb.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/dirs.d.mts +1 -2
- package/dist/dirs.mjs +1 -21
- package/dist/module.d.mts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -5
- package/dist/runtime/plugins/devtools.client.js +1 -1
- package/dist/runtime/plugins/view/client.js +22 -72
- package/dist/runtime/plugins/view/state.d.ts +0 -1
- package/dist/runtime/plugins/view/state.js +0 -2
- package/dist/shared/devtools.COlX0Gls.mjs +114 -0
- package/dist/shared/{devtools.C1a10l_c.d.mts → devtools.LsRDzDTD.d.mts} +0 -12
- package/dist/types.d.mts +1 -1
- package/dist/webcomponents/index.d.mts +1 -3
- package/dist/webcomponents/index.mjs +38 -1185
- package/package.json +24 -32
- package/cli.mjs +0 -2
- package/dist/client/_nuxt/__blank-gayjf0ih.js +0 -1
- package/dist/client/_nuxt/analyze-build-bnq2cil8.js +0 -1
- package/dist/client/_nuxt/builds/meta/f343c68e-9061-4942-a0df-50170dc001bd.json +0 -1
- package/dist/client/_nuxt/client-s5g5n0ac.js +0 -2
- package/dist/client/_nuxt/code-diff-cb7twqkt.js +0 -8
- package/dist/client/_nuxt/components-peth8amc.js +0 -1
- package/dist/client/_nuxt/composable-item-b09pj4ca.js +0 -1
- package/dist/client/_nuxt/composables-cwesk2q8.js +0 -1
- package/dist/client/_nuxt/constants-lof1c7kz.js +0 -1
- package/dist/client/_nuxt/custom-_name_-lfwzilnd.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-dqe6w00i.js +0 -2
- package/dist/client/_nuxt/debug-itzra6gt.js +0 -1
- package/dist/client/_nuxt/dev-auth-j4vxv6a1.js +0 -1
- package/dist/client/_nuxt/entry.css-ckq2wff8.css +0 -1
- package/dist/client/_nuxt/error-404-c73bftho.js +0 -1
- package/dist/client/_nuxt/error-404.css-pazrj6fo.css +0 -1
- package/dist/client/_nuxt/error-500-75llnfh8.js +0 -1
- package/dist/client/_nuxt/error-500.css-hlldh6hu.css +0 -1
- package/dist/client/_nuxt/full-h8pokapo.js +0 -1
- package/dist/client/_nuxt/head-c2jgvqd9.js +0 -1
- package/dist/client/_nuxt/hooks-i5p6cuw0.js +0 -1
- package/dist/client/_nuxt/imports-ia8eldh8.js +0 -1
- package/dist/client/_nuxt/l471sqq0.js +0 -4
- package/dist/client/_nuxt/modules-obwfskfp.js +0 -1
- package/dist/client/_nuxt/nbadge-hpznun17.js +0 -1
- package/dist/client/_nuxt/ncard-ech06vlh.js +0 -1
- package/dist/client/_nuxt/ncheckbox-k9nxqa1w.js +0 -1
- package/dist/client/_nuxt/ndrawer-ijwn9421.js +0 -1
- package/dist/client/_nuxt/ndropdown-moy416uy.js +0 -1
- package/dist/client/_nuxt/none-bs12srzp.js +0 -1
- package/dist/client/_nuxt/npanel-grids-bl37sfq7.js +0 -1
- package/dist/client/_nuxt/nsection-block-l0c6dpg8.js +0 -1
- package/dist/client/_nuxt/nselect-kgjpj17v.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-if6er1us.js +0 -1
- package/dist/client/_nuxt/ntext-input-ngomk0u2.js +0 -1
- package/dist/client/_nuxt/nuxt-bfozs29x.js +0 -1
- package/dist/client/_nuxt/nuxt-link-mev16ngd.js +0 -1
- package/dist/client/_nuxt/overview-dbrpdvvy.js +0 -1
- package/dist/client/_nuxt/pages-gnfgydad.js +0 -1
- package/dist/client/_nuxt/pages-izgjpbm4.js +0 -1
- package/dist/client/_nuxt/payload-hc17espa.js +0 -1
- package/dist/client/_nuxt/pinia-ns87k5yi.js +0 -1
- package/dist/client/_nuxt/plugins-mswypwe4.js +0 -1
- package/dist/client/_nuxt/ready-szdlhgcr.js +0 -1
- package/dist/client/_nuxt/render-tree-hec27xi7.js +0 -1
- package/dist/client/_nuxt/runtime-configs-chx5ggf0.js +0 -1
- package/dist/client/_nuxt/server-discovery-cjcj8emm.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-lqwnul2k.js +0 -1
- package/dist/client/_nuxt/server-routes-e0uqj8di.js +0 -7
- package/dist/client/_nuxt/server-tasks-izz5mcrk.js +0 -1
- package/dist/client/_nuxt/settings-dhxjcakv.js +0 -1
- package/dist/client/_nuxt/state-components-mnfvrbtw.js +0 -1
- package/dist/client/_nuxt/state-dkywakbf.js +0 -1
- package/dist/client/_nuxt/state-editor-epijodsw.js +0 -1
- package/dist/client/_nuxt/state-modules-ehax0fup.js +0 -1
- package/dist/client/_nuxt/state-tabs-mo8r9nzk.js +0 -1
- package/dist/client/_nuxt/storage-hdyfvofj.js +0 -1
- package/dist/client/_nuxt/storage-options-owy2vf04.js +0 -1
- package/dist/client/_nuxt/telemetry-bagjjni2.js +0 -1
- package/dist/client/_nuxt/terminals-hem69799.js +0 -1
- package/dist/client/_nuxt/timeline-luryae8h.js +0 -31
- package/dist/client/_nuxt/unocss-runtime-jcr8lucj.js +0 -1
- package/dist/client/_nuxt/virtual-files-o2l5arel.js +0 -1
- package/dist/client/_nuxt/vue-devtools-na2nb82m.js +0 -3
- package/dist/client/_nuxt/vue-virtual-scroller.esm-d0igfpwe.js +0 -2
- package/dist/shared/devtools.DuFZOCNN.mjs +0 -122
- /package/dist/client/_nuxt/{_plugin-vue_export-helper-dp8rxgcg.js → _plugin-vue_export-helper-n58akrbk.js} +0 -0
- /package/dist/client/_nuxt/vendor/{quicktype-core-f8dnflnv.js → quicktype-core-k4qx3809.js} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0-alpha.1",
|
|
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",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"./*": "./*"
|
|
26
26
|
},
|
|
27
27
|
"types": "./dist/module.d.mts",
|
|
28
|
-
"bin": "./cli.mjs",
|
|
29
28
|
"files": [
|
|
30
29
|
"*.cjs",
|
|
31
30
|
"*.d.ts",
|
|
@@ -33,47 +32,39 @@
|
|
|
33
32
|
"dist"
|
|
34
33
|
],
|
|
35
34
|
"peerDependencies": {
|
|
36
|
-
"@vitejs/devtools": "*",
|
|
37
35
|
"vite": ">=6.0"
|
|
38
36
|
},
|
|
39
|
-
"peerDependenciesMeta": {
|
|
40
|
-
"@vitejs/devtools": {
|
|
41
|
-
"optional": true
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
37
|
"dependencies": {
|
|
45
|
-
"@nuxt/kit": "^4.
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
38
|
+
"@nuxt/kit": "^4.4.2",
|
|
39
|
+
"@vitejs/devtools": "^0.1.3",
|
|
40
|
+
"@vitejs/devtools-kit": "^0.1.3",
|
|
41
|
+
"@vue/devtools-core": "^8.1.0",
|
|
42
|
+
"@vue/devtools-kit": "^8.1.0",
|
|
48
43
|
"birpc": "^4.0.0",
|
|
49
44
|
"consola": "^3.4.2",
|
|
50
45
|
"destr": "^2.0.5",
|
|
51
46
|
"error-stack-parser-es": "^1.0.5",
|
|
52
|
-
"execa": "^8.0.1",
|
|
53
47
|
"fast-npm-meta": "^1.4.2",
|
|
54
48
|
"get-port-please": "^3.2.0",
|
|
55
|
-
"hookable": "^6.0
|
|
49
|
+
"hookable": "^6.1.0",
|
|
56
50
|
"image-meta": "^0.2.2",
|
|
57
|
-
"is-installed-globally": "^1.0.0",
|
|
58
51
|
"launch-editor": "^2.13.1",
|
|
59
52
|
"local-pkg": "^1.1.2",
|
|
60
53
|
"magicast": "^0.5.2",
|
|
61
|
-
"nypm": "^0.6.5",
|
|
62
54
|
"ohash": "^2.0.11",
|
|
63
55
|
"pathe": "^2.0.3",
|
|
64
56
|
"perfect-debounce": "^2.1.0",
|
|
65
57
|
"pkg-types": "^2.3.0",
|
|
66
58
|
"semver": "^7.7.4",
|
|
67
|
-
"simple-git": "^3.32.3",
|
|
68
59
|
"sirv": "^3.0.2",
|
|
69
|
-
"structured-clone-es": "^
|
|
60
|
+
"structured-clone-es": "^2.0.0",
|
|
61
|
+
"tinyexec": "^1.0.4",
|
|
70
62
|
"tinyglobby": "^0.2.15",
|
|
71
63
|
"vite-plugin-inspect": "^11.3.3",
|
|
72
|
-
"vite-plugin-vue-tracer": "^1.
|
|
73
|
-
"which": "^
|
|
64
|
+
"vite-plugin-vue-tracer": "^1.3.0",
|
|
65
|
+
"which": "^6.0.1",
|
|
74
66
|
"ws": "^8.19.0",
|
|
75
|
-
"@nuxt/devtools-kit": "
|
|
76
|
-
"@nuxt/devtools-wizard": "3.2.3"
|
|
67
|
+
"@nuxt/devtools-kit": "4.0.0-alpha.1"
|
|
77
68
|
},
|
|
78
69
|
"devDependencies": {
|
|
79
70
|
"@antfu/utils": "^9.3.0",
|
|
@@ -84,19 +75,19 @@
|
|
|
84
75
|
"@iconify-json/logos": "^1.2.10",
|
|
85
76
|
"@iconify-json/ph": "^1.2.2",
|
|
86
77
|
"@iconify-json/ri": "^1.2.10",
|
|
87
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
88
|
-
"@iconify-json/tabler": "^1.2.
|
|
78
|
+
"@iconify-json/simple-icons": "^1.2.74",
|
|
79
|
+
"@iconify-json/tabler": "^1.2.31",
|
|
89
80
|
"@nuxt/test-utils": "^4.0.0",
|
|
90
81
|
"@parcel/watcher": "^2.5.6",
|
|
91
82
|
"@types/markdown-it-link-attributes": "^3.0.5",
|
|
92
|
-
"@unhead/schema": "^2.1.
|
|
83
|
+
"@unhead/schema": "^2.1.12",
|
|
93
84
|
"@unocss/nuxt": "^66.6.6",
|
|
94
85
|
"@unocss/preset-icons": "^66.6.6",
|
|
95
86
|
"@unocss/preset-uno": "^66.6.6",
|
|
96
87
|
"@unocss/runtime": "^66.6.6",
|
|
97
|
-
"@vitejs/devtools": "^0.
|
|
98
|
-
"@vitest/ui": "^4.0
|
|
99
|
-
"@vue/devtools-applet": "^8.0
|
|
88
|
+
"@vitejs/devtools": "^0.1.3",
|
|
89
|
+
"@vitest/ui": "^4.1.0",
|
|
90
|
+
"@vue/devtools-applet": "^8.1.0",
|
|
100
91
|
"@vueuse/nuxt": "^14.2.1",
|
|
101
92
|
"@xterm/addon-fit": "^0.11.0",
|
|
102
93
|
"@xterm/xterm": "^6.0.0",
|
|
@@ -108,25 +99,26 @@
|
|
|
108
99
|
"lightningcss": "^1.32.0",
|
|
109
100
|
"markdown-it": "^14.1.1",
|
|
110
101
|
"markdown-it-link-attributes": "^4.0.1",
|
|
111
|
-
"my-ua-parser": "^2.0.4",
|
|
112
102
|
"nitropack": "^2.13.1",
|
|
113
|
-
"nuxt": "^4.
|
|
103
|
+
"nuxt": "^4.4.2",
|
|
114
104
|
"ofetch": "^1.5.1",
|
|
105
|
+
"package-manager-detector": "^1.6.0",
|
|
115
106
|
"quicktype-core": "22.0.0",
|
|
116
107
|
"scule": "^1.3.0",
|
|
117
108
|
"shiki": "^4.0.2",
|
|
118
109
|
"shiki-codegen": "^4.0.2",
|
|
119
110
|
"theme-vitesse": "^1.0.0",
|
|
120
111
|
"tsx": "^4.21.0",
|
|
121
|
-
"
|
|
112
|
+
"ua-parser-modern": "^0.1.1",
|
|
113
|
+
"unimport": "^6.0.2",
|
|
122
114
|
"unocss": "^66.6.6",
|
|
123
115
|
"unplugin-vue": "^7.1.1",
|
|
124
116
|
"unplugin-vue-markdown": "^30.0.0",
|
|
125
117
|
"vanilla-jsoneditor": "^3.11.0",
|
|
126
118
|
"vis-data": "^8.0.3",
|
|
127
119
|
"vis-network": "^10.0.2",
|
|
128
|
-
"vue-tsc": "^3.2.
|
|
129
|
-
"vue-virtual-scroller": "^2.0.0-beta.
|
|
120
|
+
"vue-tsc": "^3.2.6",
|
|
121
|
+
"vue-virtual-scroller": "^2.0.0-beta.10"
|
|
130
122
|
},
|
|
131
123
|
"scripts": {
|
|
132
124
|
"build": "pnpm dev:prepare && pnpm build:module && pnpm build:discovery && pnpm build:client",
|
package/cli.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,W as t,v as n}from"./vendor/json-editor-vue-hkofgjf7.js";import"./nuxt-bfozs29x.js";import{t as r}from"./composables-cwesk2q8.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{C as e,Ct as t,E as n,Mt as r,Qt as i,W as a,Y as o,_ as s,c,dt as l,ft as u,g as d,h as f,m as p,tn as m,v as h,w as g}from"./vendor/json-editor-vue-hkofgjf7.js";import{g as _,k as v}from"./ready-szdlhgcr.js";import{a as y}from"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{N as b,t as x}from"./state-dkywakbf.js";import{_ as S,u as C,v as w}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import{n as T}from"./dev-auth-j4vxv6a1.js";import"./nuxt-link-mev16ngd.js";import{t as E}from"./_plugin-vue_export-helper-dp8rxgcg.js";import"./nicon-m5br9nvg.js";import{t as D}from"./nbutton-oi1rfqiz.js";import"./ncard-ech06vlh.js";import{r as O}from"./state-routes-m6gv5n9v.js";import{t as k}from"./telemetry-bagjjni2.js";import"./state-tabs-mo8r9nzk.js";import{t as A}from"./npanel-grids-bl37sfq7.js";import{t as j}from"./ntext-input-ngomk0u2.js";import{D as M,c as N,f as P,o as F,p as I,t as L}from"#entry";import"./client-lh91kcpv.js";import{t as R}from"./ncode-block-coc4sua0.js";import{t as z}from"./composables-cwesk2q8.js";import{t as B}from"./ncheckbox-k9nxqa1w.js";import{t as V}from"./filepath-item-fnp9jxof.js";import{t as H}from"./help-fab-oc1qudll.js";var U={"h-full":``,grid:`~ rows-[max-content_1fr]`},W={flex:`~ wrap`,"w-full":``},G=[`onClick`],K={key:0,flex:`~ col gap-4 items-center justify-center`,p4:``},q={grid:`~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center`,"w-100":``},J=`/__nuxt_devtools__/client`,Y=n({__name:`BuildAnalyzeDetails`,props:{current:{},prev:{}},setup(n){let d=n,_=`${y().app.baseURL.replace(J,`/`)}/__nuxt_devtools__/analyze/`.replace(/\/+/g,`/`),b=p(()=>{let e=[{name:`Overview`,id:`overview`}];return d.current.features.bundleClient&&e.push({name:`Client Bundle`,id:`bundle-client`}),d.current.features.bundleNitro&&e.push({name:`Nitro Bundle`,id:`bundle-nitro`}),d.current.features.viteInspect&&e.push({name:`Vite Inspect`,id:`vite-inspect`}),e}),x=t(b.value[0]);function S(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function E(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 O(e){return C.clearAnalyzeBuilds(await T(),[e])}return(t,d)=>{let p=V,y=D;return a(),h(`div`,U,[f(`div`,W,[(a(!0),h(c,null,o(b.value,(e,t)=>(a(),h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:i(e.id===x.value?.id?``:`border-b`),onClick:t=>x.value=e},[f(`div`,{class:i(e.id===x.value?.id?``:`op30`)},m(e.name),3)],10,G))),128)),d[1]||=f(`div`,{border:`b base`,"flex-auto":``},null,-1)]),x.value?.id===`overview`?(a(),h(`div`,K,[d[15]||=f(`div`,{"flex-auto":``},null,-1),f(`div`,q,[d[10]||=f(`div`,{"i-carbon-commit":``,"text-xl":``},null,-1),f(`div`,null,[d[2]||=f(`div`,{"text-sm":``,op50:``},` Name `,-1),f(`div`,null,m(n.current.name),1)]),d[11]||=f(`div`,{"i-carbon-time":``,"text-xl":``},null,-1),f(`div`,null,[d[3]||=f(`div`,{"text-sm":``,op50:``},` Build duration `,-1),f(`div`,null,m(S(n.current)),1)]),n.current.size?.clientBundle?(a(),h(c,{key:0},[d[5]||=f(`div`,{"i-carbon-cics-program":``,"text-xl":``},null,-1),f(`div`,null,[d[4]||=f(`div`,{"text-sm":``,op50:``},` Client bundle size `,-1),f(`div`,null,m(E(n.current.size.clientBundle)),1)])],64)):s(``,!0),n.current.size?.nitroBundle?(a(),h(c,{key:1},[d[7]||=f(`div`,{"i-carbon-bare-metal-server":``,"text-xl":``},null,-1),f(`div`,null,[d[6]||=f(`div`,{"text-sm":``,op50:``},` Nitro bundle size `,-1),f(`div`,null,m(E(n.current.size.nitroBundle)),1)])],64)):s(``,!0),d[12]||=f(`div`,{"i-carbon-edge-node":``,"text-xl":``},null,-1),f(`div`,null,[d[8]||=f(`div`,{"text-sm":``,op50:``},` Built `,-1),f(`div`,null,m(r(w)(new Date(n.current.endTime))),1)]),d[13]||=f(`div`,{"i-carbon:folder-parent":``,"text-xl":``},null,-1),f(`div`,null,[d[9]||=f(`div`,{"text-sm":``,op50:``},` Report Path `,-1),g(p,{filepath:n.current.analyzeDir},null,8,[`filepath`])])]),d[16]||=f(`div`,{"flex-auto":``},null,-1),g(y,{n:`rose`,icon:`carbon-delete`,onClick:d[0]||=e=>O(n.current.name)},{default:l(()=>[...d[14]||=[e(` Delete this report `,-1)]]),_:1})])):s(``,!0),d._lazyshow1||x.value?.id===`bundle-client`?(d._lazyshow1=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(_)}${n.current.slug}/client.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[v,x.value?.id===`bundle-client`]])],64)):s(`v-show-if`,!0),d._lazyshow2||x.value?.id===`bundle-nitro`?(d._lazyshow2=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(_)}${n.current.slug}/nitro.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[v,x.value?.id===`bundle-nitro`]])],64)):s(`v-show-if`,!0),d._lazyshow3||x.value?.id===`vite-inspect`?(d._lazyshow3=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(_)}${n.current.slug}/.vite-inspect/`,"h-full":``,"w-full":``},null,8,[`src`]),[[v,x.value?.id===`vite-inspect`]])],64)):s(`v-show-if`,!0)])}}}),X=Object.assign(Y,{__name:`BuildAnalyzeDetails`}),Z={},Q={class:`markdown-body`};function $(t,n){return a(),h(`div`,Q,[...n[0]||=[f(`template`,null,[f(`div`,{class:`markdown-body`},[f(`h1`,null,`Build Analyze`),f(`p`,null,[e(`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 `),f(`code`,{"v-pre":``},`nuxt build --analyze`),e(` and present the output data directly in DevTools for easy browsing and comparing.`)])])],-1)]])}var ee=E(Z,[[`render`,$]]),te={flex:`~ col`},ne=[`onClick`],re={flex:`~ gap-1 items-center wrap`,"w-full":``,"text-sm":``,op60:``},ie={flex:`~ items-center justify-center wrap`,p4:``},ae={flex:`~ col gap-1`,"w-250":``,p4:``},oe={flex:`~ gap-3`,mt2:``,"justify-end":``},se=n({__name:`analyze-build`,setup(n){z({icon:`carbon-edge-node`,title:`Build Analyze`,layout:`full`,category:`analyze`,show(){return M(`^3.5.0`)}});let u=S(),v=x(),y=_(),E=b(`analyze-build:slug`,``),V=p(()=>v.value?.builds.find(e=>e.slug===E.value)??v.value?.builds[0]),U=t(!1),W=t(``),G=p(()=>v.value?.builds.some(e=>e.name===W.value.trim()));async function K(){W.value=await C.generateAnalyzeBuildName(),await u.start()&&(k(`analyze-build:start`),L.value={name:W.value,processId:await C.startAnalyzeBuild(await T(),W.value)},U.value&&Y())}let q=O();function J(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function Y(){L.value?.processId&&(q.value=L.value.processId,y.push(`/modules/terminals`))}return F(()=>[{id:`action:analyze-build: start`,title:`Start a new analyze build`,icon:`i-carbon-edge-node`,action:K}]),(t,n)=>{let p=D,_=X,y=A,b=N,x=j,S=I,C=R,T=B,O=P,k=ee,M=H;return a(),h(c,null,[g(b,{"left-size":30},{left:l(()=>[f(`div`,te,[(a(!0),h(c,null,o(r(v)?.builds,e=>(a(),h(c,{key:e.slug},[f(`button`,{flex:`~ col gap1`,p3:``,"hover:bg-active":``,class:i(e.slug===V.value?.slug?`text-primary bg-active`:``),onClick:t=>E.value=e.slug},[f(`code`,null,m(e.name),1),f(`div`,re,[n[4]||=f(`div`,{"i-carbon-time":``},null,-1),f(`span`,null,m(J(e)),1),n[5]||=f(`div`,{"flex-auto":``},null,-1),f(`span`,null,m(r(w)(new Date(e.endTime))),1)])],10,ne),n[6]||=f(`div`,{"x-divider":``},null,-1)],64))),128)),f(`div`,ie,[r(L)?(a(),d(p,{key:1,n:`primary`,icon:`carbon-circle-dash animate-spin`,onClick:n[1]||=e=>Y()},{default:l(()=>[...n[8]||=[e(` Building... `,-1)]]),_:1})):(a(),d(p,{key:0,n:`primary`,icon:`carbon-edge-node`,onClick:n[0]||=e=>K()},{default:l(()=>[...n[7]||=[e(` Start a new build `,-1)]]),_:1}))])])]),right:l(()=>[V.value?(a(),d(_,{key:0,current:V.value},null,8,[`current`])):(a(),d(y,{key:1}))]),_:1}),g(r(u),null,{default:l(({resolve:t})=>[g(O,{"model-value":!0,onClose:e=>t(!1)},{default:l(()=>[f(`div`,ae,[n[13]||=f(`h3`,{class:`text-lg font-medium leading-6`,mb2:``},` Start analyze build? `,-1),n[14]||=f(`p`,{op50:``},` Enter the name of the build: `,-1),g(x,{modelValue:W.value,"onUpdate:modelValue":n[2]||=e=>W.value=e,placeholder:`Build name`},null,8,[`modelValue`]),G.value?(a(),d(S,{key:0,"n-orange":``},{default:l(()=>[...n[9]||=[e(` A build with the same name already exists, continue would overrides the previous build result. `,-1)]]),_:1})):s(``,!0),n[15]||=f(`div`,{my3:``,"x-divider":``},null,-1),n[16]||=f(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),g(C,{code:`npx nuxi analyze --no-serve --name=${W.value}`,lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),g(T,{modelValue:U.value,"onUpdate:modelValue":n[3]||=e=>U.value=e,mt2:``,n:`primary`},{default:l(()=>[...n[10]||=[e(` Navigate to terminal `,-1)]]),_:1},8,[`modelValue`]),f(`div`,oe,[g(p,{onClick:e=>t(!1)},{default:l(()=>[...n[11]||=[e(` Cancel `,-1)]]),_:1},8,[`onClick`]),g(p,{n:`solid primary`,onClick:e=>t(!0)},{default:l(()=>[...n[12]||=[e(` Start `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1}),g(M,null,{default:l(()=>[g(k)]),_:1})],64)}}});export{se as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"f343c68e-9061-4942-a0df-50170dc001bd","timestamp":1773033748539,"prerendered":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor/markdown-it-bcxn77q6.js","./rolldown-runtime-oipoa1or.js","./vendor/shiki-niqic03h.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{A as e,At as t,Ct as n,D as r,Dt as i,E as a,Et as o,F as s,M as c,Mt as l,Ot as u,St as d,Tt as f,V as p,a as m,bt as h,c as g,ct as _,gt as v,j as y,lt as b,m as x,mt as S,vt as C,wt as w,xt as T}from"./vendor/json-editor-vue-hkofgjf7.js";import{x as E}from"./ready-szdlhgcr.js";import{i as D}from"./nuxt-bfozs29x.js";import{D as O,O as ee,k as te}from"./vendor/shiki-niqic03h.js";function k(e,t){return v()?(h(e,t),!0):!1}var A=new WeakMap,ne=(...e)=>{let t=e[0],n=r()?.proxy??v();if(n==null&&!y())throw Error(`injectLocal must be called in setup`);return n&&A.has(n)&&t in A.get(n)?A.get(n)[t]:c(...e)},j=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var re=e=>e!==void 0,ie=e=>e!=null,ae=Object.prototype.toString,oe=e=>ae.call(e)===`[object Object]`,M=()=>{},se=ce();function ce(){var e,t;return j&&!!(!((e=window)==null||(e=e.navigator)==null)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function le(...e){if(e.length!==1)return u(...e);let t=e[0];return typeof t==`function`?d(S(()=>({get:t,set:M}))):n(t)}function ue(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var de=e=>e();function fe(e,n={}){let r,i,a=M,o=e=>{clearTimeout(e),a(),a=M},s;return c=>{let l=t(e),u=t(n.maxWait);return r&&o(r),l<=0||u!==void 0&&u<=0?(i&&=(o(i),void 0),Promise.resolve(c())):new Promise((e,t)=>{a=n.rejectOnCancel?t:e,s=c,u&&!i&&(i=setTimeout(()=>{r&&o(r),i=void 0,e(s())},u)),r=setTimeout(()=>{i&&o(i),i=void 0,e(c())},l)})}}function pe(e=de,t={}){let{initialState:n=`active`}=t,r=le(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:d(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function me(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function he(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function ge(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function _e(e){return Object.entries(e)}function N(e){return Array.isArray(e)?e:[e]}function ve(e){let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}var ye=/-(\w)/g,be=ve(e=>e.replace(ye,(e,t)=>t?t.toUpperCase():``));function xe(e){return e||r()}function Se(e,t){if(typeof Symbol<`u`){let n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}else return Object.assign([...t],e)}function Ce(e){return C(e)?T(new Proxy({},{get(t,n,r){return l(Reflect.get(e.value,n,r))},set(t,n,r){return C(e.value[n])&&!C(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):T(e)}function we(e){return Ce(x(e))}function Te(e,t=200,n={}){return ue(fe(t,n),e)}function Ee(e,r=200,i={}){let a=n(t(e)),o=Te(()=>{a.value=e.value},r,i);return _(e,()=>o()),f(a)}var De=Ee;function Oe(e,t,n={}){let{eventFilter:r=de,...i}=n;return _(e,ue(r,t),i)}function ke(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=pe(r,{initialState:i});return{stop:Oe(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function P(e,t=!0,n){xe(n)?p(e,n):t?e():s(e)}function Ae(e,n=!1){function r(r,{flush:i=`sync`,deep:a=!1,timeout:o,throwOnTimeout:c}={}){let l=null,u=[new Promise(t=>{l=_(e,e=>{r(e)!==n&&(l?l():s(()=>l?.()),t(e))},{flush:i,deep:a,immediate:!0})})];return o!=null&&u.push(me(o,c).then(()=>t(e)).finally(()=>l?.())),Promise.race(u)}function i(i,a){if(!C(i))return r(e=>e===i,a);let{flush:o=`sync`,deep:c=!1,timeout:l,throwOnTimeout:u}=a??{},d=null,f=[new Promise(t=>{d=_([e,i],([e,r])=>{n!==(e===r)&&(d?d():s(()=>d?.()),t(e))},{flush:o,deep:c,immediate:!0})})];return l!=null&&f.push(me(l,u).then(()=>t(e)).finally(()=>(d?.(),t(e)))),Promise.race(f)}function a(e){return r(e=>!!e,e)}function o(e){return i(null,e)}function c(e){return i(void 0,e)}function l(e){return r(Number.isNaN,e)}function u(e,n){return r(n=>{let r=Array.from(n);return r.includes(e)||r.includes(t(e))},n)}function d(e){return f(1,e)}function f(e=1,t){let n=-1;return r(()=>(n+=1,n>=e),t)}return Array.isArray(t(e))?{toMatch:r,toContains:u,changed:d,changedTimes:f,get not(){return Ae(e,!n)}}:{toMatch:r,toBe:i,toBeTruthy:a,toBeNull:o,toBeNaN:l,toBeUndefined:c,changed:d,changedTimes:f,get not(){return Ae(e,!n)}}}function je(e){return Ae(e)}var Me=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Ne=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;function Pe(e,t,n,r){let i=e<12?`AM`:`PM`;return r&&(i=i.split(``).reduce((e,t)=>e+=`${t}.`,``)),n?i.toLowerCase():i}function F(e){let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function Fe(e,n,r={}){let i=e.getFullYear(),a=e.getMonth(),o=e.getDate(),s=e.getHours(),c=e.getMinutes(),l=e.getSeconds(),u=e.getMilliseconds(),d=e.getDay(),f=r.customMeridiem??Pe,p=e=>e.split(` `)[1]??``,m={Yo:()=>F(i),YY:()=>String(i).slice(-2),YYYY:()=>i,M:()=>a+1,Mo:()=>F(a+1),MM:()=>`${a+1}`.padStart(2,`0`),MMM:()=>e.toLocaleDateString(t(r.locales),{month:`short`}),MMMM:()=>e.toLocaleDateString(t(r.locales),{month:`long`}),D:()=>String(o),Do:()=>F(o),DD:()=>`${o}`.padStart(2,`0`),H:()=>String(s),Ho:()=>F(s),HH:()=>`${s}`.padStart(2,`0`),h:()=>`${s%12||12}`.padStart(1,`0`),ho:()=>F(s%12||12),hh:()=>`${s%12||12}`.padStart(2,`0`),m:()=>String(c),mo:()=>F(c),mm:()=>`${c}`.padStart(2,`0`),s:()=>String(l),so:()=>F(l),ss:()=>`${l}`.padStart(2,`0`),SSS:()=>`${u}`.padStart(3,`0`),d:()=>d,dd:()=>e.toLocaleDateString(t(r.locales),{weekday:`narrow`}),ddd:()=>e.toLocaleDateString(t(r.locales),{weekday:`short`}),dddd:()=>e.toLocaleDateString(t(r.locales),{weekday:`long`}),A:()=>f(s,c),AA:()=>f(s,c,!1,!0),a:()=>f(s,c,!0),aa:()=>f(s,c,!0,!0),z:()=>p(e.toLocaleDateString(t(r.locales),{timeZoneName:`shortOffset`})),zz:()=>p(e.toLocaleDateString(t(r.locales),{timeZoneName:`shortOffset`})),zzz:()=>p(e.toLocaleDateString(t(r.locales),{timeZoneName:`shortOffset`})),zzzz:()=>p(e.toLocaleDateString(t(r.locales),{timeZoneName:`longOffset`}))};return n.replace(Ne,(e,t)=>t??m[e]?.call(m)??e)}function Ie(e){if(e===null)return new Date(NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e==`string`&&!/Z$/i.test(e)){let t=e.match(Me);if(t){let e=t[2]-1||0,n=(t[7]||`0`).substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)}function Le(e,n=`HH:mm:ss`,r={}){return x(()=>Fe(Ie(t(e)),t(n),r))}function Re(e,n=1e3,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,s=null,c=o(!1);function l(){s&&=(clearInterval(s),null)}function u(){c.value=!1,l()}function d(){let r=t(n);r<=0||(c.value=!0,a&&e(),l(),c.value&&(s=setInterval(e,r)))}return i&&j&&d(),(C(n)||typeof n==`function`)&&k(_(n,()=>{c.value&&j&&d()})),k(u),{isActive:f(c),pause:u,resume:d}}function ze(e,n,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,s=o(!1),c;function l(){c&&=(clearTimeout(c),void 0)}function u(){s.value=!1,l()}function d(...r){a&&e(),l(),s.value=!0,c=setTimeout(()=>{s.value=!1,c=void 0,e(...r)},t(n))}return i&&(s.value=!0,j&&d()),k(u),{isPending:f(s),start:d,stop:u}}function Be(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return Oe(e,t,{...a,eventFilter:fe(r,{maxWait:i})})}function Ve(e,t,n){return _(e,t,{...n,immediate:!0})}function He(e,t,r){let i;i=C(r)?{evaluating:r}:r||{};let{lazy:a=!1,flush:s=`sync`,evaluating:c=void 0,shallow:l=!0,onError:u=globalThis.reportError??M}=i,d=o(!a),f=l?o(t):n(t),p=0;return b(async t=>{if(!d.value)return;p++;let n=p,r=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{let i=await e(e=>{t(()=>{c&&(c.value=!1),r||e()})});n===p&&(f.value=i)}catch(e){u(e)}finally{c&&n===p&&(c.value=!1),r=!0}},{flush:s}),a?x(()=>(d.value=!0,f.value)):f}function Ue(e={}){let{inheritAttrs:t=!0}=e,n=o(),r=a({setup(e,{slots:t}){return()=>{n.value=t.default}}}),i=a({inheritAttrs:t,props:e.props,setup(r,{attrs:i,slots:a}){return()=>{if(!n.value)throw Error(`[VueUse] Failed to find the definition of reusable template`);let o=n.value?.call(n,{...e.props==null?We(i):r,$slots:a});return t&&o?.length===1?o[0]:o}}});return Se({define:r,reuse:i},[r,i])}function We(e){let t={};for(let n in e)t[be(n)]=e[n];return t}function Ge(t={}){let r=0,i=n([]);function o(...e){let n=w({key:r++,args:e,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:t});return i.value.push(n),n.promise=new Promise((e,t)=>{n.resolve=t=>(n.isResolving=!0,e(t)),n.reject=t}).finally(()=>{n.promise=void 0;let e=i.value.indexOf(n);e!==-1&&i.value.splice(e,1)}),n.promise}function s(...e){return t.singleton&&i.value.length>0?i.value[0].promise:o(...e)}let c=a((n,{slots:r})=>{let a=()=>i.value.map(t=>e(g,{key:t.key},r.default?.call(r,t)));return t.transition?()=>e(E,t.transition,a):a});return c.start=s,c}var I=j?window:void 0,Ke=j?window.document:void 0,qe=j?window.navigator:void 0;j&&window.location;function L(e){let n=t(e);return n?.$el??n}function R(...e){let n=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=x(()=>{let n=N(t(e[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0});return Ve(()=>[r.value?.map(e=>L(e))??[I].filter(e=>e!=null),N(t(r.value?e[1]:e[0])),N(l(r.value?e[2]:e[1])),t(r.value?e[3]:e[2])],([e,t,r,i],a,o)=>{if(!e?.length||!t?.length||!r?.length)return;let s=oe(i)?{...i}:i,c=e.flatMap(e=>t.flatMap(t=>r.map(r=>n(e,t,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var Je=!1;function Ye(e,n,r={}){let{window:i=I,ignore:a=[],capture:o=!0,detectIframe:s=!1,controls:c=!1}=r;if(!i)return c?{stop:M,cancel:M,trigger:M}:M;if(se&&!Je){Je=!0;let e={passive:!0};Array.from(i.document.body.children).forEach(t=>t.addEventListener(`click`,M,e)),i.document.documentElement.addEventListener(`click`,M,e)}let l=!0,u=e=>t(a).some(t=>{if(typeof t==`string`)return Array.from(i.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=L(t);return n&&(e.target===n||e.composedPath().includes(n))}});function d(e){let n=t(e);return n&&n.$.subTree.shapeFlag===16}function f(e,n){let r=t(e),i=r.$.subTree&&r.$.subTree.children;return i==null||!Array.isArray(i)?!1:i.some(e=>e.el===n.target||n.composedPath().includes(e.el))}let p=t=>{let r=L(e);if(t.target!=null&&!(!(r instanceof Element)&&d(e)&&f(e,t))&&!(!r||r===t.target||t.composedPath().includes(r))){if(`detail`in t&&t.detail===0&&(l=!u(t)),!l){l=!0;return}n(t)}},m=!1,h=[R(i,`click`,e=>{m||(m=!0,setTimeout(()=>{m=!1},0),p(e))},{passive:!0,capture:o}),R(i,`pointerdown`,t=>{let n=L(e);l=!u(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),s&&R(i,`blur`,t=>{setTimeout(()=>{let r=L(e);i.document.activeElement?.tagName===`IFRAME`&&!r?.contains(i.document.activeElement)&&n(t)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(e=>e());return c?{stop:g,cancel:()=>{l=!1},trigger:e=>{l=!0,p(e),l=!1}}:g}function Xe(){let e=o(!1),t=r();return t&&p(()=>{e.value=!0},t),e}function z(e){let t=Xe();return x(()=>(t.value,!!e()))}function Ze(e,n,r={}){let{window:i=I,...a}=r,o,s=z(()=>i&&`MutationObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=_(x(()=>{let n=N(t(e)).map(L).filter(ie);return new Set(n)}),e=>{c(),s.value&&e.size&&(o=new MutationObserver(n),e.forEach(e=>o.observe(e,a)))},{immediate:!0,flush:`post`}),u=()=>o?.takeRecords(),d=()=>{l(),c()};return k(d),{isSupported:s,stop:d,takeRecords:u}}function Qe(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function $e(...e){let n,r,i={};e.length===3?(n=e[0],r=e[1],i=e[2]):e.length===2?typeof e[1]==`object`?(n=!0,r=e[0],i=e[1]):(n=e[0],r=e[1]):(n=!0,r=e[0]);let{target:a=I,eventName:o=`keydown`,passive:s=!1,dedupe:c=!1}=i,l=Qe(n);return R(a,o,e=>{e.repeat&&t(c)||l(e)&&r(e)},s)}function et(e,t,n={}){return $e(e,t,{...n,eventName:`keydown`})}function tt(e,n={}){let{immediate:r=!0,fpsLimit:i=null,window:a=I,once:s=!1}=n,c=o(!1),l=x(()=>{let e=t(i);return e?1e3/e:null}),u=0,f=null;function p(t){if(!c.value||!a)return;u||=t;let n=t-u;if(l.value&&n<l.value){f=a.requestAnimationFrame(p);return}if(u=t,e({delta:n,timestamp:t}),s){c.value=!1,f=null;return}f=a.requestAnimationFrame(p)}function m(){!c.value&&a&&(c.value=!0,u=0,f=a.requestAnimationFrame(p))}function h(){c.value=!1,f!=null&&a&&(a.cancelAnimationFrame(f),f=null)}return r&&m(),k(h),{isActive:d(c),pause:h,resume:m}}var nt=Symbol(`vueuse-ssr-width`);function rt(){let e=y()?ne(nt,null):null;return typeof e==`number`?e:void 0}function it(e,n={}){let{window:r=I,ssrWidth:i=rt()}=n,a=z(()=>r&&`matchMedia`in r&&typeof r.matchMedia==`function`),s=o(typeof i==`number`),c=o(),l=o(!1);return b(()=>{if(s.value){s.value=!a.value,l.value=t(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),r=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||r);return n&&a&&(a=i>=ge(n[1])),r&&a&&(a=i<=ge(r[1])),t?!a:a});return}a.value&&(c.value=r.matchMedia(t(e)),l.value=c.value.matches)}),R(c,`change`,e=>{l.value=e.matches},{passive:!0}),x(()=>l.value)}var at=[`hash`,`host`,`hostname`,`href`,`pathname`,`port`,`protocol`,`search`];function ot(e={}){let{window:t=I}=e,r=Object.fromEntries(at.map(e=>[e,n()]));for(let[e,n]of _e(r))_(n,n=>{!t?.location||t.location[e]===n||(t.location[e]=n)});let i=e=>{var n;let{state:i,length:a}=t?.history||{},{origin:o}=t?.location||{};for(let e of at)r[e].value=t==null||(n=t.location)==null?void 0:n[e];return T({trigger:e,state:i,length:a,origin:o,...r})},a=n(i(`load`));if(t){let e={passive:!0};R(t,`popstate`,()=>a.value=i(`popstate`),e),R(t,`hashchange`,()=>a.value=i(`hashchange`),e)}return a}function st(e,t={}){let{controls:n=!1,navigator:r=qe}=t,a=z(()=>r&&`permissions`in r),s=o(),c=typeof e==`string`?{name:e}:e,l=o(),u=()=>{l.value=s.value?.state??`prompt`};R(s,`change`,u,{passive:!0});let d=he(async()=>{if(a.value){if(!s.value)try{s.value=await r.permissions.query(c)}catch{s.value=void 0}finally{u()}if(n)return i(s.value)}});return d(),n?{state:l,isSupported:a,query:d}:l}function ct(e={}){let{navigator:n=qe,read:r=!1,source:i,copiedDuring:a=1500,legacy:s=!1}=e,c=z(()=>n&&`clipboard`in n),l=st(`clipboard-read`),u=st(`clipboard-write`),f=x(()=>c.value||s),p=o(``),m=o(!1),h=ze(()=>m.value=!1,a,{immediate:!1});async function g(){let e=!(c.value&&b(l.value));if(!e)try{p.value=await n.clipboard.readText()}catch{e=!0}e&&(p.value=y())}f.value&&r&&R([`copy`,`cut`],g,{passive:!0});async function _(e=t(i)){if(f.value&&e!=null){let t=!(c.value&&b(u.value));if(!t)try{await n.clipboard.writeText(e)}catch{t=!0}t&&v(e),p.value=e,m.value=!0,h.start()}}function v(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function y(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function b(e){return e===`granted`||e===`prompt`}return{isSupported:f,text:d(p),copied:d(m),copy:_}}function lt(e){return JSON.parse(JSON.stringify(e))}var B=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},V=`__vueuse_ssr_handlers__`,ut=dt();function dt(){return V in B||(B[V]=B[V]||{}),B[V]}function ft(e,t){return ut[e]||t}function pt(e){return it(`(prefers-color-scheme: dark)`,e)}function mt(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var ht={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},gt=`vueuse-storage`;function H(e,r,i,a={}){let{flush:c=`pre`,deep:l=!0,listenToStorageChanges:u=!0,writeDefaults:d=!0,mergeDefaults:f=!1,shallow:p,window:m=I,eventFilter:h,onError:g=e=>{console.error(e)},initOnMounted:v}=a,y=(p?o:n)(typeof r==`function`?r():r),b=x(()=>t(e));if(!i)try{i=ft(`getDefaultStorage`,()=>I?.localStorage)()}catch(e){g(e)}if(!i)return y;let S=t(r),C=mt(S),w=a.serializer??ht[C],{pause:T,resume:E}=ke(y,e=>ee(e),{flush:c,deep:l,eventFilter:h});_(b,()=>k(),{flush:c});let D=!1;m&&u&&(i instanceof Storage?R(m,`storage`,e=>{v&&!D||k(e)},{passive:!0}):R(m,gt,e=>{v&&!D||A(e)})),v?P(()=>{D=!0,k()}):k();function O(e,t){if(m){let n={key:b.value,oldValue:e,newValue:t,storageArea:i};m.dispatchEvent(i instanceof Storage?new StorageEvent(`storage`,n):new CustomEvent(gt,{detail:n}))}}function ee(e){try{let t=i.getItem(b.value);if(e==null)O(t,null),i.removeItem(b.value);else{let n=w.write(e);t!==n&&(i.setItem(b.value,n),O(t,n))}}catch(e){g(e)}}function te(e){let t=e?e.newValue:i.getItem(b.value);if(t==null)return d&&S!=null&&i.setItem(b.value,w.write(S)),S;if(!e&&f){let e=w.read(t);return typeof f==`function`?f(e,S):C===`object`&&!Array.isArray(e)?{...S,...e}:e}else if(typeof t!=`string`)return t;else return w.read(t)}function k(e){if(!(e&&e.storageArea!==i)){if(e&&e.key==null){y.value=S;return}if(!(e&&e.key!==b.value)){T();try{let t=w.write(y.value);(e===void 0||e?.newValue!==t)&&(y.value=te(e))}catch(e){g(e)}finally{e?s(E):E()}}}}function A(e){k(e.detail)}return y}var _t=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function vt(e={}){let{selector:t=`html`,attribute:n=`class`,initialValue:r=`auto`,window:i=I,storage:a,storageKey:o=`vueuse-color-scheme`,listenToStorageChanges:s=!0,storageRef:c,emitAuto:l,disableTransition:u=!0}=e,d={auto:``,light:`light`,dark:`dark`,...e.modes||{}},f=pt({window:i}),p=x(()=>f.value?`dark`:`light`),m=c||(o==null?le(r):H(o,r,a,{window:i,listenToStorageChanges:s})),h=x(()=>m.value===`auto`?p.value:m.value),g=ft(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?i?.document.querySelector(e):L(e);if(!r)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(d).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let c;u&&(c=i.document.createElement(`style`),c.appendChild(document.createTextNode(_t)),i.document.head.appendChild(c));for(let e of a)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),u&&(i.getComputedStyle(c).opacity,document.head.removeChild(c))});function v(e){g(t,n,d[e]??e)}function y(t){e.onChanged?e.onChanged(t,v):v(t)}_(h,y,{flush:`post`,immediate:!0}),P(()=>y(h.value));let b=x({get(){return l?m.value:h.value},set(e){m.value=e}});return Object.assign(b,{store:m,system:p,state:h})}function yt(e,n,r={}){let{window:i=I,...a}=r,o,s=z(()=>i&&`ResizeObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=_(x(()=>{let n=t(e);return Array.isArray(n)?n.map(e=>L(e)):[L(n)]}),e=>{if(c(),s.value&&i){o=new ResizeObserver(n);for(let t of e)t&&o.observe(t,a)}},{immediate:!0,flush:`post`}),u=()=>{c(),l()};return k(u),{isSupported:s,stop:u}}function bt(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:s=`sync`}=t,c=o(0),l=o(0),u=o(0),d=o(0),f=o(0),p=o(0),m=o(0),h=o(0);function g(){let t=L(e);if(!t){n&&(c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let r=t.getBoundingClientRect();c.value=r.height,l.value=r.bottom,u.value=r.left,d.value=r.right,f.value=r.top,p.value=r.width,m.value=r.x,h.value=r.y}function v(){s===`sync`?g():s===`next-frame`&&requestAnimationFrame(()=>g())}return yt(e,v),_(()=>L(e),e=>!e&&v()),Ze(e,v,{attributeFilter:[`style`,`class`]}),i&&R(`scroll`,v,{capture:!0,passive:!0}),r&&R(`resize`,v,{passive:!0}),P(()=>{a&&v()}),{height:c,bottom:l,left:u,right:d,top:f,width:p,x:m,y:h,update:v}}function xt(e,t={width:0,height:0},n={}){let{window:r=I,box:i=`content-box`}=n,a=x(()=>{var t;return(t=L(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),s=o(t.width),c=o(t.height),{stop:l}=yt(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=L(e);if(t){let e=t.getBoundingClientRect();s.value=e.width,c.value=e.height}}else if(n){let e=N(n);s.value=e.reduce((e,{inlineSize:t})=>e+t,0),c.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=t.contentRect.width,c.value=t.contentRect.height},n);P(()=>{let n=L(e);n&&(s.value=`offsetWidth`in n?n.offsetWidth:t.width,c.value=`offsetHeight`in n?n.offsetHeight:t.height)});let u=_(()=>L(e),e=>{s.value=e?t.width:0,c.value=e?t.height:0});function d(){l(),u()}return{width:s,height:c,stop:d}}function St(e={}){let{initialValue:t=``}=e,n=z(()=>typeof window<`u`&&`EyeDropper`in window),r=o(t);async function i(e){if(!n.value)return;let t=await new window.EyeDropper().open(e);return r.value=t.sRGBHex,t}return{isSupported:n,sRGBHex:r,open:i}}function Ct(e,t,n={}){let{window:r=I}=n;return H(e,t,r?.localStorage,n)}function wt(e){if(`interval`in e||`immediate`in e){let{interval:t=`requestAnimationFrame`,immediate:n=!0}=e;return t===`requestAnimationFrame`?e=>tt(e,{immediate:n}):n=>Re(n,t,e)}return tt}function Tt(e={}){let{controls:t=!1,scheduler:r=wt(e)}=e,i=n(new Date),a=r(()=>i.value=new Date);return t?{now:i,...a}:i}function Et(e,t,n={}){let{window:r=I}=n;return H(e,t,r?.sessionStorage,n)}var Dt=0;function Ot(e,t={}){let n=o(!1),{document:r=Ke,immediate:i=!0,manual:a=!1,id:s=`vueuse_styletag_${++Dt}`}=t,c=o(e),l=()=>{},u=()=>{if(!r)return;let e=r.getElementById(s)||r.createElement(`style`);e.isConnected||(e.id=s,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(l=_(c,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},f=()=>{!r||!n.value||(l(),r.head.removeChild(r.getElementById(s)),n.value=!1)};return i&&!a&&P(u),a||k(f),{id:s,css:c,unload:f,load:u,isLoaded:d(n)}}var kt=[{max:6e4,value:1e3,name:`second`},{max:276e4,value:6e4,name:`minute`},{max:72e6,value:36e5,name:`hour`},{max:5184e5,value:864e5,name:`day`},{max:24192e5,value:6048e5,name:`week`},{max:28512e6,value:2592e6,name:`month`},{max:1/0,value:31536e6,name:`year`}],At={justNow:`just now`,past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?`last month`:`next month`:`${e} month${e>1?`s`:``}`,year:(e,t)=>e===1?t?`last year`:`next year`:`${e} year${e>1?`s`:``}`,day:(e,t)=>e===1?t?`yesterday`:`tomorrow`:`${e} day${e>1?`s`:``}`,week:(e,t)=>e===1?t?`last week`:`next week`:`${e} week${e>1?`s`:``}`,hour:e=>`${e} hour${e>1?`s`:``}`,minute:e=>`${e} minute${e>1?`s`:``}`,second:e=>`${e} second${e>1?`s`:``}`,invalid:``};function jt(e){return e.toISOString().slice(0,10)}function Mt(e){if(`updateInterval`in e){let{updateInterval:t=3e4}=e;return e=>Re(e,t)}return e=>Re(e,3e4)}function Nt(e,n={}){let{controls:r=!1,scheduler:i=Mt(n)}=n,{now:a,...o}=Tt({scheduler:i,controls:!0}),s=x(()=>Pt(new Date(t(e)),n,t(a)));return r?{timeAgo:s,...o}:s}function Pt(e,t={},n=Date.now()){let{max:r,messages:i=At,fullDateFormatter:a=jt,units:o=kt,showSecond:s=!1,rounding:c=`round`}=t,l=typeof c==`number`?e=>+e.toFixed(c):Math[c],u=n-+e,d=Math.abs(u);function f(e,t){return l(Math.abs(e)/t.value)}function p(e,t){let n=f(e,t),r=e>0,i=m(t.name,n,r);return m(r?`past`:`future`,i,r)}function m(e,t,n){let r=i[e];return typeof r==`function`?r(t,n):r.replace(`{0}`,t.toString())}if(d<6e4&&!s)return i.justNow;if(typeof r==`number`&&d>r)return a(new Date(e));if(typeof r==`string`){let t=o.find(e=>e.name===r)?.max;if(t&&d>t)return a(new Date(e))}for(let[e,t]of o.entries()){if(f(u,t)<=0&&o[e-1])return p(u,o[e-1]);if(d<t.max)return p(u,t)}return i.invalid}function Ft(e,t,i,a={}){var o,c;let{clone:l=!1,passive:u=!1,eventName:d,deep:f=!1,defaultValue:p,shouldEmit:m}=a,h=r(),g=i||h?.emit||(h==null||(o=h.$emit)==null?void 0:o.bind(h))||(h==null||(c=h.proxy)==null||(c=c.$emit)==null?void 0:c.bind(h?.proxy)),v=d;t||=`modelValue`,v||=`update:${t.toString()}`;let y=e=>l?typeof l==`function`?l(e):lt(e):e,b=()=>re(e[t])?y(e[t]):p,S=e=>{m?m(e)&&g(v,e):g(v,e)};if(u){let r=n(b()),i=!1;return _(()=>e[t],e=>{i||(i=!0,r.value=y(e),s(()=>i=!1))}),_(r,n=>{!i&&(n!==e[t]||f)&&S(n)},{deep:f}),r}else return x({get(){return b()},set(e){S(e)}})}function It(e={}){let{window:t=I,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:s=`inner`}=e,c=o(n),l=o(r),u=()=>{if(t)if(s===`outer`)c.value=t.outerWidth,l.value=t.outerHeight;else if(s===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;c.value=Math.round(e*r),l.value=Math.round(n*r)}else a?(c.value=t.innerWidth,l.value=t.innerHeight):(c.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),P(u);let d={passive:!0};return R(`resize`,u,d),t&&s===`visual`&&t.visualViewport&&R(t.visualViewport,`resize`,u,d),i&&_(it(`(orientation: portrait)`),()=>u()),{width:c,height:l}}var U=o(),Lt;function Rt(){Lt||=(async()=>{let{default:e}=await m(async()=>{let{default:e}=await import(`./vendor/markdown-it-bcxn77q6.js`).then(e=>e.t);return{default:e}},__vite__mapDeps([0,1]),import.meta.url);U.value=new e({html:!0,linkify:!0,breaks:!0})})()}function zt(e){return Rt(),U.value?U.value.render(e):e}var Bt={json:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.S),__vite__mapDeps([2,1]),import.meta.url),yaml:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e._),__vite__mapDeps([2,1]),import.meta.url),yml:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e._),__vite__mapDeps([2,1]),import.meta.url),css:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.E),__vite__mapDeps([2,1]),import.meta.url),javascript:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),js:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),cjs:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),mjs:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),typescript:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),ts:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),cts:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),mts:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),vue:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.v),__vite__mapDeps([2,1]),import.meta.url),"vue-html":()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.y),__vite__mapDeps([2,1]),import.meta.url),html:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.C),__vite__mapDeps([2,1]),import.meta.url),diff:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.T),__vite__mapDeps([2,1]),import.meta.url),shellscript:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),bash:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),sh:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),shell:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),zsh:()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url)},Vt={"vitesse-dark":()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.g),__vite__mapDeps([2,1]),import.meta.url),"vitesse-light":()=>m(()=>import(`./vendor/shiki-niqic03h.js`).then(e=>e.h),__vite__mapDeps([2,1]),import.meta.url)},Ht=ee({langs:Bt,themes:Vt,engine:()=>O()}),{codeToHtml:Ut,codeToHast:Wt,codeToTokensBase:Gt,codeToTokens:Kt,codeToTokensWithThemes:qt,getSingletonHighlighter:Jt,getLastGrammarState:Yt}=te(Ht);const W=o();var Xt=null;function Zt(e,t=`text`,n){!Xt&&!W.value&&(Xt=Ht({langs:Object.keys(Bt),themes:Object.keys(Vt)}).then(e=>{W.value=e}));let r=W.value?.getLoadedLanguages().includes(t);return r?{code:W.value.codeToHtml(e,{...n,lang:t,themes:{dark:`vitesse-dark`,light:`vitesse-light`},transformers:[{root(e){return{type:`root`,children:e.children[0].children[0].children}}}]}),supported:!0}:{code:e,supported:r}}var Qt=`q`,$t=`s`;function en(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var tn=Math.random.bind(Math),nn=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function rn(e=21){let t=``,n=e;for(;n--;)t+=nn[tn()*64|0];return t}var an=6e4,on=e=>e,sn=on,{clearTimeout:cn,setTimeout:ln}=globalThis;function un(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=on,deserialize:s=sn,resolver:c,bind:l=`rpc`,timeout:u=an,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:Qt};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=en(),_=rn();s.i=_;let v;async function y(n=s){return u>=0&&(v=ln(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{cn(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.prototype.hasOwnProperty.call(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===Qt){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:$t,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:$t,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(cn(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}var dn=-1,G=0,K=1,q=2,J=3,fn=4,pn=5,mn=6,hn=7,gn=8,_n=typeof self==`object`?self:globalThis,vn=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case G:case dn:return n(o,i);case K:{let e=n([],i);for(let t of o)e.push(r(t));return e}case q:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case J:return n(new Date(o),i);case fn:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case pn:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case mn:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case hn:{let{name:e,message:t}=o;return n(new _n[e](t),i)}case gn:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i)}return n(new _n[a](o),i)};return r},yn=e=>vn(new Map,e)(0),Y=``,{toString:bn}={},{keys:xn}=Object,X=e=>{let t=typeof e;if(t!==`object`||!e)return[G,t];let n=bn.call(e).slice(8,-1);switch(n){case`Array`:return[K,Y];case`Object`:return[q,Y];case`Date`:return[J,Y];case`RegExp`:return[fn,Y];case`Map`:return[pn,Y];case`Set`:return[mn,Y]}return n.includes(`Array`)?[K,n]:n.includes(`Error`)?[hn,n]:[q,n]},Z=([e,t])=>e===G&&(t===`function`||t===`symbol`),Sn=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=X(r);switch(o){case G:{let t=r;switch(s){case`bigint`:o=gn,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([dn],r)}return i([o,t],r)}case K:{if(s)return i([s,[...r]],r);let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case q:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of xn(r))(e||!Z(X(r[t])))&&n.push([a(t),a(r[t])]);return c}case J:return i([o,r.toISOString()],r);case fn:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case pn:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(Z(X(n))||Z(X(i))))&&t.push([a(n),a(i)]);return n}case mn:{let t=[],n=i([o,t],r);for(let n of r)(e||!Z(X(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},Cn=(e,{json:t,lossy:n}={})=>{let r=[];return Sn(!(t||n),!!t,new Map,r)(e),r},{parse:wn,stringify:Tn}=JSON,En={json:!0,lossy:!0},Dn=e=>yn(wn(e)),On=e=>Tn(Cn(e,En)),kn=Dn;async function An(e=`/`,t=!0){try{let t=`${e}@vite/client`,n=await fetch(t);if((await n.text()).startsWith(`<`)||!n.headers.get(`content-type`)?.includes(`javascript`))throw Error(`Not javascript`);return await m(()=>import(t),[],import.meta.url)}catch{t&&console.error(`[vite-hot-client] Failed to import "${e}@vite/client"`)}}function jn(e=window.location.pathname){return e.split(`/`).map((e,t,n)=>n.slice(0,t+1).join(`/`)||`/`)}async function Mn(e=`/___`,t){t??=jn();for(let n of t){let t=(await An(n,!1))?.createHotContext(e);if(t)return t}console.error(`[vite-hot-client] Failed to import vite client, tried with:`,t)}const Nn=`nuxt:devtools:rpc`,Pn={behavior:{telemetry:null,openInEditor:void 0},ui:{componentsView:`list`,componentsGraphShowNodeModules:!1,componentsGraphShowGlobalComponents:!0,componentsGraphShowPages:!1,componentsGraphShowLayouts:!1,componentsGraphShowWorkspace:!0,interactionCloseOnOutsideClick:!1,showExperimentalFeatures:!1,showHelpButtons:!0,showPanel:!0,scale:1,minimizePanelInactive:5e3,hiddenTabs:[],pinnedTabs:[],hiddenTabCategories:[],sidebarExpanded:!1,sidebarScrollable:!1},serverRoutes:{selectedRoute:null,view:`tree`,inputDefaults:{query:[],body:[],headers:[]},sendFrom:`app`},serverTasks:{enabled:!1,selectedTask:null,view:`list`,inputDefaults:{query:[],body:[],headers:[{active:!0,key:`Content-Type`,value:`application/json`,type:`string`}]}},assets:{view:`grid`}};var Fn=/^\/|\/$/g,In=/\/__nuxt_devtools__\/client\/.*$/;const Q=n(!1),Ln=o(),Rn=De(Q,2e3);var zn=Wn(),Bn=()=>{};const Vn={},Hn=new Map,Un=un(Vn,{post:async e=>{(await zn).send(Nn,e)},on:e=>{Bn=e},serialize:On,deserialize:kn,resolver(e,t){if(t)return t;if(!e.includes(`:`))return;let[n,r]=e.split(`:`);return Hn.get(n)?.[r]},onFunctionError(e,t){return console.error(`[nuxt-devtools] RPC error on executing "${t}":`),console.error(e),!0},onGeneralError(e){return console.error(`[nuxt-devtools] RPC error:`),console.error(e),!0},timeout:12e4});async function Wn(){let e=window.parent?.__NUXT__?.config?.app??window.parent?.useNuxtApp?.()?.payload?.config?.app,t=e?.baseURL??`/`,n=e?.buildAssetsDir?.replace(Fn,``)??`_nuxt`;t&&!t.endsWith(`/`)&&(t+=`/`);let r=window.location.href.replace(In,`/`),i=await Mn(void 0,[...new Set([`${t}${n}/`,`${t}_nuxt/`,t,`${r}${n}/`,`${r}_nuxt/`,r])]);if(!i)throw Q.value=!0,console.error(`[Nuxt DevTools] Unable to find Vite HMR context`),Error(`[Nuxt DevTools] Unable to connect to devtools`);return i.on(Nn,e=>{Q.value=!1,Bn(e)}),Q.value=!0,i.on(`vite:ws:connect`,()=>{console.log(`[nuxt-devtools] Connected to WebSocket`),Q.value=!1}),i.on(`vite:ws:disconnect`,()=>{console.log(`[nuxt-devtools] Disconnected from WebSocket`),Q.value=!0}),i}var Gn=`$s`;function Kn(...e){let t=typeof e[e.length-1]==`string`?e.pop():void 0;typeof e[0]!=`string`&&e.unshift(t);let[n,r]=e;if(!n||typeof n!=`string`)throw TypeError(`[nuxt] [useState] key must be a string: `+n);if(r!==void 0&&typeof r!=`function`)throw Error(`[nuxt] [useState] init must be a function: `+r);let i=Gn+n,a=D(),o=u(a.payload.state,i);if(o.value===void 0&&r){let e=r();if(C(e))return a.payload.state[i]=e,e;o.value=e}return o}function $(){return Kn(`devtools-client`)}function qn(){let e=$();return x(()=>e.value?.nuxt.vueApp.config.globalProperties?.$route)}function Jn(){let e=$();return x(()=>e.value?.nuxt.vueApp.config.globalProperties?.$router)}function Yn(){let e=$();return x(()=>e.value?.nuxt.vueApp.config.globalProperties?.$head)}var Xn=n(!1);setTimeout(()=>{Xn.value=!0},2e3);const Zn=x(()=>Xn.value&&!$().value);function Qn(){return vt({storageKey:`nuxt-devtools-color-mode`})}function $n(){let e=$(),t=Qn();return x(()=>({host:e.value,devtools:{rpc:Un,colorMode:t.value,renderCodeHighlight(e,t){return Zt(e,t)},renderMarkdown(e){return zt(e)},extendClientRpc(e,t){return Hn.set(e,t),new Proxy({},{get(t,n){if(typeof n==`string`)return Un[`${e}:${n}`]}})}}}))}export{Tt as A,je as B,ct as C,R as D,xt as E,It as F,De as H,ie as I,we as L,Ot as M,Nt as N,St as O,Ft as P,N as R,ot as S,bt as T,Be as U,Le as V,Ge as _,qn as a,et as b,Kn as c,Q as d,Rn as f,Ue as g,He as h,Yn as i,Et as j,Ct as k,Vn as l,Pn as m,Zn as n,Jn as o,Ln as p,$ as r,$n as s,Qn as t,Un as u,Pt as v,vt as w,L as x,Ye as y,k as z};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{Ct as e,E as t,V as n,W as r,g as i,m as a}from"./vendor/json-editor-vue-hkofgjf7.js";import{x as o}from"./client-s5g5n0ac.js";import{t as s}from"./ncode-block-coc4sua0.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){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function v(e){let t=e.match(/^\s*/);return t?t[0]:``}var y=`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}`,b=RegExp(`[${y}]+|\\s+|[^${y}]`,`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=[];for(let t of Array.from(r.segment(e))){let e=t.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}}else n=e.match(b)||[];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)&&x(n,i,r,e),n=e,r=null,i=null)}),(r||i)&&x(n,i,r,null),e}};function x(e,t,n,r){if(t&&n){let i=v(t.value),a=_(t.value),o=v(n.value),s=_(n.value);if(e){let r=l(i,o);e.value=f(e.value,o,r),t.value=p(t.value,r),n.value=p(n.value,r)}if(r){let e=u(a,s);r.value=d(r.value,s,e),t.value=m(t.value,e),n.value=m(n.value,e)}}else if(n){if(e){let e=v(n.value);n.value=n.value.substring(e.length)}if(r){let e=v(r.value);r.value=r.value.substring(e.length)}}else if(e&&r){let n=v(r.value),i=v(t.value),a=_(t.value),o=l(n,i);t.value=p(t.value,o);let s=u(p(n,o),a);t.value=m(t.value,s),r.value=d(r.value,n,s),e.value=f(e.value,n,n.slice(0,n.length-s.length))}else if(r){let e=v(r.value),n=h(_(t.value),e);t.value=m(t.value,n)}else if(e){let n=h(_(e.value),v(t.value));t.value=p(t.value,n)}}new class extends c{tokenize(e){let t=RegExp(`(\\r?\\n)|[${y}]+|[^\\S\\n\\r]+|[^${y}]`,`ug`);return e.match(t)||[]}};const S=new class extends c{constructor(){super(...arguments),this.tokenize=w}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 C(e,t,n){return S.diff(e,t,n)}function w(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 T(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(T(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=w}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(E(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 E(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]=E(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]=E(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 D=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=C(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=a(()=>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=e();n(h);function h(){let e=o(m);e&&e.querySelector(`.line-added,.line-removed`)?.scrollIntoView()}return(e,n)=>{let a=s;return r(),i(a,{ref_key:`elRef`,ref:m,code:f.value.result,lang:t.lang,"transform-rendered":p,onLoaded:h},null,8,[`code`,`lang`])}}}),O=Object.assign(D,{__name:`CodeDiff`});export{O as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,C as t,Ct as n,E as r,Et as i,Mt as a,P as o,Q as s,Qt as c,V as l,W as u,X as d,Y as f,Z as p,_ as m,c as h,ct as g,dt as _,ft as v,g as y,h as b,m as x,tn as S,v as C,vt as w,w as T}from"./vendor/json-editor-vue-hkofgjf7.js";import"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{T as E,c as ee,d as te,i as ne,x as D,y as O}from"./state-dkywakbf.js";import{H as k,r as A,t as re}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import{t as j}from"./storage-options-owy2vf04.js";import"./dev-auth-j4vxv6a1.js";import"./nuxt-link-mev16ngd.js";import{t as M}from"./_plugin-vue_export-helper-dp8rxgcg.js";import{t as N}from"./nicon-m5br9nvg.js";import{t as P}from"./nbutton-oi1rfqiz.js";import{t as F}from"./ncard-ech06vlh.js";import"./state-routes-m6gv5n9v.js";import"./telemetry-bagjjni2.js";import"./ntext-input-ngomk0u2.js";import{s as I,u as L}from"#entry";import{t as R}from"./ndrawer-ijwn9421.js";import{t as z}from"./composables-cwesk2q8.js";import{t as ie}from"./ncheckbox-k9nxqa1w.js";import{t as B}from"./filepath-item-fnp9jxof.js";import{t as V}from"./help-fab-oc1qudll.js";import{t as H}from"./nnavbar-n3j7iul1.js";import{t as U}from"./nicon-title-e35pdr21.js";import{t as W}from"./nsection-block-l0c6dpg8.js";import{n as G}from"./dist-m49wlq01.js";import{t as K}from"./nbadge-hpznun17.js";import{n as q,t as J}from"./vendor/vis-id8udisj.js";import{t as Y}from"./nselect-tabs-if6er1us.js";import{n as X,t as ae}from"./state-components-mnfvrbtw.js";var oe={},se={class:`markdown-body`};function ce(e,t){return u(),C(`div`,se,[...t[0]||=[b(`template`,null,[b(`div`,{class:`markdown-body`},[b(`h1`,null,`Components`),b(`p`,null,`Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.`),b(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),b(`p`,null,[b(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var le=M(oe,[[`render`,ce]]),ue={"text-sm":``,"font-mono":``},de=r({__name:`ComponentName`,props:{component:{}},setup(e){let n=e,r=x(()=>n.component.pascalName||G(n.component.name||n.component.__name||n.component.kebabName||``));return(e,n)=>(u(),C(`code`,ue,[n[0]||=b(`span`,{mr1:``,op20:``},`<`,-1),t(S(r.value),1),n[1]||=b(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),Z=Object.assign(de,{__name:`ComponentName`}),Q={flex:`~ col gap1`,"items-start":``,"of-hidden":``},fe={flex:`~ gap2 items-center`,px3:``},pe={px3:``,pb2:``},me={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},he={"text-sm":``},ge={"text-primary":``},_e={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},ve={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},ye={"text-sm":``},be={"text-primary":``},xe={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},Se=r({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=x(()=>n.component.pascalName||G(n.component.name||n.component.__name||n.component.kebabName||``)),i=x(()=>n.component.filePath||n.component.file||n.component.__file||``),o=L();return(n,s)=>{let c=Z,l=P,p=K,g=B;return u(),C(`div`,Q,[b(`div`,fe,[T(c,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(u(),y(l,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:_(()=>[...s[1]||=[t(` Docs `,-1)]]),_:1},8,[`to`])):m(``,!0),T(l,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:s[0]||=e=>a(o)(`<${r.value}></${r.value}>`,`component-name`)},{default:_(()=>[...s[2]||=[t(` Copy `,-1)]]),_:1}),e.component.global?(u(),y(p,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):m(``,!0)]),b(`div`,pe,[i.value?(u(),y(g,{key:0,filepath:i.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):m(``,!0)]),e.dependents?(u(),C(`div`,me,[b(`div`,he,[b(`strong`,ge,S(e.dependents.length),1),s[3]||=b(`span`,{op50:``},` references`,-1)]),e.dependents.length?(u(),C(`div`,_e,[(u(!0),C(h,null,f(e.dependents,e=>(u(),y(g,{key:e,filepath:e},null,8,[`filepath`]))),128))])):m(``,!0)])):m(``,!0),e.dependencies?(u(),C(`div`,ve,[b(`div`,ye,[b(`strong`,be,S(e.dependencies.length),1),s[4]||=b(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(u(),C(`div`,xe,[(u(!0),C(h,null,f(e.dependencies,e=>(u(),y(g,{key:e,filepath:e},null,8,[`filepath`]))),128))])):m(``,!0)])):m(``,!0),d(n.$slots,`default`)])}}}),$=Object.assign(Se,{__name:`ComponentDetails`}),Ce={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},we={relative:``,"h-full":``,"w-full":``},Te={key:0,py4:``,pt3:``,flex:`~ col`},Ee={border:`t base`,p4:``},De=r({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(e){let r=e,o=n(),s=n(),c=re(),f=i(),p=te(),v=ee(),y=ne(),{componentsGraphShowNodeModules:S,componentsGraphShowGlobalComponents:E,componentsGraphShowPages:D,componentsGraphShowLayouts:O,componentsGraphShowWorkspace:A}=j(`ui`),M=n(),N=n(``),I=k(N,300),L=x(()=>{let e=r.relationships||[];if(M.value){let t=new Set;function n(r){!r||t.has(r)||(t.add(r),r.deps.forEach(t=>{n(e.find(e=>e.id===t))}))}return n(M.value),[...t]}return e}),z=x(()=>{let e=L.value.map(e=>{let t=r.components.find(t=>t.filePath===e.id),n=p.value?.find(t=>t.file===e.id),i=y.value?.find(t=>t.file===e.id),a=e.id.includes(`/node_modules/`)?`lib`:t?t.global?`global`:`user`:i?`layout`:n?`page`:`unknown`;if(!S.value&&a===`lib`||!D.value&&a===`page`||!O.value&&a===`layout`||!A.value&&a===`user`&&v.value&&!e.id.startsWith(v.value.rootDir)||!E.value&&a===`global`)return null;let o=a===`layout`?`hexagon`:a===`page`?`square`:`dot`,s=I.value&&!e.id.toLowerCase().includes(I.value.toLowerCase());return{id:e.id,label:Y(e.id),group:a,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:c.value===`dark`?`white`:`black`},color:s?`#8885`:M.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:n,layout:i,relationship:e}}}).filter(e=>!!e),t=L.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new q(e),edges:t}}),B=x(()=>f.value?.component?(r.relationships?.find(e=>e.id===f.value?.component?.filePath)?.deps)?.map(e=>r.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),V=x(()=>f.value?.component?(r.relationships?.filter(e=>e.deps.includes(f.value.component.filePath)))?.map(e=>r.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);l(()=>{let e=new J(o.value,z.value,{nodes:{shape:`dot`,size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:`forceAtlas2Based`,timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:`#42b883`},unknown:{color:`#b86542`},lib:{color:`#b4b842`},page:{color:`#42b2b8`},layout:{color:`#4256b8`}}});e.on(`click`,e=>{let t=e.nodes?.[0];f.value=z.value.nodes.get(t).extra}),g(z,()=>{e.setData(z.value)})});function U(){f.value=void 0}let W=/.*\/components\//,G=/\.vue$/,K=/\/index$/;function Y(e){let t=r.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(W,``).replace(G,``).replace(K,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function X(){M.value=f.value?.relationship,f.value=void 0}return(e,n)=>{let r=ie,i=H,c=F,l=$,p=P,g=R;return u(),C(h,null,[T(i,{ref_key:`navbar`,ref:s,search:N.value,"onUpdate:search":n[6]||=e=>N.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:_(()=>[b(`div`,Ce,[T(r,{modelValue:a(D),"onUpdate:modelValue":n[0]||=e=>w(D)?D.value=e:null,n:`primary sm`},{default:_(()=>[...n[8]||=[b(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(O),"onUpdate:modelValue":n[1]||=e=>w(O)?O.value=e:null,n:`primary sm`},{default:_(()=>[...n[9]||=[b(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(A),"onUpdate:modelValue":n[2]||=e=>w(A)?A.value=e:null,n:`primary sm`},{default:_(()=>[...n[10]||=[b(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(S),"onUpdate:modelValue":n[3]||=e=>w(S)?S.value=e:null,n:`primary sm`},{default:_(()=>[...n[11]||=[b(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(E),"onUpdate:modelValue":n[4]||=e=>w(E)?E.value=e:null,n:`primary sm`},{default:_(()=>[...n[12]||=[b(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),M.value?(u(),C(`button`,{key:0,flex:`~ gap-1`,"flex-none":``,"items-center":``,"rounded-full":``,"bg-gray:20":``,py1:``,pl3:``,pr2:``,"text-xs":``,op50:``,"hover:op100":``,onClick:n[5]||=e=>M.value=void 0},[...n[13]||=[t(` Clear filter `,-1),b(`div`,{"i-carbon-close":``},null,-1)]])):m(``,!0),n[14]||=b(`div`,{"flex-auto":``},null,-1),d(e.$slots,`default`)]),_:3},8,[`search`]),b(`div`,we,[b(`div`,{ref_key:`container`,ref:o,"h-full":``,"w-full":``},null,512),T(c,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:_(()=>[...n[15]||=[b(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),b(`div`,{op50:``},` Component `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),b(`div`,{op50:``},` Global Component `),b(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),b(`div`,{op50:``},` Page `),b(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[b(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),b(`div`,{op50:``},` Layout `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),b(`div`,{op50:``},` Library Component `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),b(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),T(g,{"model-value":!!(f.value&&f.value.component),top:s.value,border:`t l base`,"w-80":``,onClose:U},{default:_(()=>[f.value&&f.value.component?(u(),C(`div`,Te,[T(l,{component:f.value.component,dependencies:B.value,dependents:V.value},null,8,[`component`,`dependencies`,`dependents`]),b(`div`,Ee,[T(p,{n:`primary solid`,onClick:n[7]||=e=>X()},{default:_(()=>[...n[16]||=[t(` Filter to this component `,-1)]]),_:1})])])):m(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),Oe=Object.assign(De,{__name:`ComponentsGraph`}),ke={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},Ae={key:0,"ml--1":``,"text-primary":``},je=r({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let t=e,n=x(()=>t.component.filePath||t.component.file||t.component.__file||``);return(t,r)=>{let i=Z,a=$,o=p(`VDropdown`),s=K,l=B;return u(),C(`div`,ke,[T(o,null,{popper:_(()=>[T(a,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:_(()=>[b(`button`,{"hover:text-primary":``,class:c(e.dependents&&e.dependents.length===0?`op50`:``)},[T(i,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(u(),C(`sup`,Ae,` x`+S(e.dependents?.length),1)):m(``,!0),e.component.global?(u(),y(s,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):m(``,!0),d(t.$slots,`default`),n.value?(u(),y(l,{key:2,filepath:n.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):m(``,!0)])}}}),Me=Object.assign(je,{__name:`ComponentItem`}),Ne={flex:`~ gap-2 items-center`},Pe={pl4:``},Fe=r({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let t=e,r=n(``),i=n(`all`),s=x(()=>{let e=t.components.map(e=>O(e,t.relationships));return i.value===`using`?e.filter(e=>e.dependents?.length):i.value===`not-used`?e.filter(e=>!e.dependents?.length):e}),c={ClientOnly:`https://nuxt.com/docs/api/components/client-only`,DevOnly:`https://nuxt.com/docs/api/components/dev-only`,NuxtClientFallback:`https://nuxt.com/docs/api/components/nuxt-client-fallback`,NuxtPicture:`https://nuxt.com/docs/api/components/nuxt-picture`,NuxtRouteAnnouncer:`https://nuxt.com/docs/api/components/nuxt-route-announcer`,NuxtTime:`https://nuxt.com/docs/api/components/nuxt-time`,NuxtPage:`https://nuxt.com/docs/api/components/nuxt-page`,NuxtLayout:`https://nuxt.com/docs/api/components/nuxt-layout`,NuxtLink:`https://nuxt.com/docs/api/components/nuxt-link`,NuxtLoadingIndicator:`https://nuxt.com/docs/api/components/nuxt-loading-indicator`,NuxtErrorBoundary:`https://nuxt.com/docs/api/components/nuxt-error-boundary`,NuxtWelcome:`https://nuxt.com/docs/api/components/nuxt-welcome`,NuxtIsland:`https://nuxt.com/docs/api/components/nuxt-island`,NuxtImg:`https://nuxt.com/docs/api/components/nuxt-img`},l=x(()=>new I(s.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),p=x(()=>{let e=[],t=new Map,n=[],i=[],a={user:0,lib:0,builtin:0,runtime:0};return(r.value?l.value.search(r.value).map(e=>e.item):s.value).forEach(r=>{let o=r.component;if(o.filePath&&E(o.filePath)){let e=D(o.filePath);if(!e)return;e===`nuxt`?(o.meta??={},o.meta.docs??=c?.[o.pascalName],n.push(r),a.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(r),a.lib++)}else o.global&&!o.filePath?(i.push(r),a.runtime++):(e.push(r),a.user++)}),{count:a,user:e,builtin:n,lib:t,runtime:i}});return(e,t)=>{let n=N,s=Y,c=H,l=Me,g=W,v=U;return u(),C(h,null,[T(c,{search:r.value,"onUpdate:search":t[1]||=e=>r.value=e,pb3:``},{actions:_(()=>[d(e.$slots,`default`)]),default:_(()=>[b(`div`,Ne,[T(n,{icon:`carbon-filter`,op50:``}),T(s,{modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`])])]),_:3},8,[`search`]),p.value.user.length?(u(),y(g,{key:0,icon:`carbon-nominal`,text:`User components`,open:p.value.user.length<=a(50),description:`Total components: ${p.value.count.user}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.user,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):m(``,!0),p.value.runtime.length?(u(),y(g,{key:1,icon:`carbon-load-balancer-global`,open:p.value.runtime.length<=a(50),text:`Runtime components`,description:`Total components: ${p.value.count.runtime}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.runtime,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):m(``,!0),p.value.builtin.length?(u(),y(g,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${p.value.count.builtin}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.builtin,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):m(``,!0),p.value.lib.size?(u(),y(g,{key:3,open:p.value.count.lib<=a(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:_(()=>[(u(!0),C(h,null,f(p.value.lib.entries(),([e,t])=>(u(),C(`div`,{key:e,"ml-2":``},[T(v,{text:`${e} (${t.length})`,py1:``,op50:``},null,8,[`text`]),b(`div`,Pe,[(u(!0),C(h,null,f(t,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):m(``,!0)],64)}}}),Ie=Object.assign(Fe,{__name:`ComponentsList`}),Le={relative:``,"h-full":``,"of-auto":``},Re={"flex-none":``,flex:`~ gap3`},ze=r({__name:`components`,setup(t){z({icon:`i-carbon-assembly-cluster`,title:`Components`,order:2});let n=A(),r=ae(),i=X(),{componentsView:o}=j(`ui`);function c(){n.value?.inspector?.enable()}function l(){o.value=o.value===`list`?`graph`:`list`}return(t,d)=>{let f=P,p=le,g=V,x=s(`tooltip`);return u(),C(h,null,[b(`div`,Le,[(u(),y(e(a(o)===`list`?Ie:Oe),{components:a(r),relationships:a(i)},{default:_(()=>[b(`div`,Re,[v(T(f,{"text-lg":``,border:!1,icon:a(o)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:l},null,8,[`icon`]),[[x,`Toggle View`,void 0,{"bottom-end":!0}]]),a(n)?.inspector?.isAvailable?v((u(),y(f,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:c},null,512)),[[x,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):m(``,!0)])]),_:1},8,[`components`,`relationships`]))]),T(g,null,{default:_(()=>[T(p)]),_:1})],64)}}});export{ze as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,E as t,Mt as n,Qt as r,W as i,Y as a,Z as o,_ as s,c,dt as l,g as u,h as d,m as f,tn as p,v as m,w as h}from"./vendor/json-editor-vue-hkofgjf7.js";import{t as g}from"./nicon-m5br9nvg.js";import{t as _}from"./nbutton-oi1rfqiz.js";import{d as v,u as y}from"#entry";import{t as b}from"./filepath-item-fnp9jxof.js";import{t as x}from"./constants-lof1c7kz.js";import{t as S}from"./dist-m49wlq01.js";import{t as C}from"./nmarkdown-nct1w6kn.js";var w={rounded:``,"font-mono":``},T={key:0,"text-primary":``},E={key:0},D={title:`Vue Directive`},O={"max-w-100":``},k={px4:``,py3:``,"text-sm":``},A={flex:`~ gap2`,n:`primary xs`},j={border:`t base`,"max-h-60":``,"of-auto":``,px4:``,py3:``},M={"text-sm":``},N={"text-primary":``},P={flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},F={key:1,"text-sm":``,op50:``},I=t({__name:`ComposableItem`,props:{item:{},isDirective:{type:Boolean,default:!1},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:`px2 py1 text-sm bg-gray:5 `}},setup(t){let I=t,L=y(),R=v(),z=f(()=>I.item.as||I.item.name),B=f(()=>{let e=z.value;return I.isDirective&&(e[0]!==`v`&&(e=`v${e}`),e=S(e)),e}),V=f(()=>I.metadata?.injectionUsage?.[z.value]?.count||0),H=f(()=>(I.metadata?.injectionUsage?.[z.value]?.moduleIds||[]).filter(e=>!e.endsWith(`?macro=true`))),U=f(()=>I.item.meta?.docsUrl?I.item.meta.docsUrl:[`nuxt`,`#app`,`nuxt3`].includes(I.item.from)?x.nuxt[I.item.name]:I.item.from===`vue`?x.vue[I.item.name]:null);return(f,v)=>{let y=g,x=C,S=_,W=b,G=o(`VDropdown`);return i(),u(G,{disabled:!I.metadata},{popper:l(()=>[d(`div`,O,[d(`div`,k,[t.item.meta?.description?(i(),u(x,{key:0,tag:`div`,pb3:``,"text-sm":``,markdown:t.item.meta.description},null,8,[`markdown`])):s(``,!0),d(`div`,A,[h(S,{icon:`carbon-copy`,onClick:v[0]||=e=>n(L)(B.value,`imports-name`)},{default:l(()=>[...v[2]||=[e(` Copy `,-1)]]),_:1}),t.filepath?(i(),u(S,{key:0,icon:`carbon-code`,onClick:v[1]||=e=>t.filepath&&n(R)(t.filepath)},{default:l(()=>[...v[3]||=[e(` Source `,-1)]]),_:1})):s(``,!0),U.value?(i(),u(S,{key:1,icon:`carbon-catalog`,to:U.value,target:`_blank`},{default:l(()=>[...v[4]||=[e(` Docs `,-1)]]),_:1},8,[`to`])):s(``,!0)])]),d(`div`,j,[V.value?(i(),m(c,{key:0},[d(`div`,M,[v[5]||=d(`span`,{op50:``},`It has been referenced `,-1),d(`strong`,N,p(V.value),1),v[6]||=d(`span`,{op50:``},` times by:`,-1)]),d(`div`,P,[(i(!0),m(c,null,a(H.value,e=>(i(),u(W,{key:e,filepath:e},null,8,[`filepath`]))),128))])],64)):(i(),m(`div`,F,` Not in use via auto import. `))])])]),default:l(()=>[d(`button`,{"hover:text-primary":``,class:r([t.metadata&&!V.value?`op30 hover:op100`:``,t.classes])},[d(`code`,w,[e(p(z.value)+` `,1),V.value&&t.counter?(i(),m(`sup`,T,`x`+p(V.value),1)):s(``,!0)]),t.isDirective?(i(),m(`sup`,E,[d(`abbr`,D,[h(y,{icon:`tabler:hexagon-letter-d`})])])):s(``,!0)],2)]),_:1},8,[`disabled`])}}}),L=Object.assign(I,{__name:`ComposableItem`});export{L as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=e=>{};export{e as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={nuxt:{useAppConfig:`https://nuxt.com/docs/api/composables/use-app-config`,useAsyncData:`https://nuxt.com/docs/api/composables/use-async-data`,useCookie:`https://nuxt.com/docs/api/composables/use-cookie`,useError:`https://nuxt.com/docs/api/composables/use-error`,useFetch:`https://nuxt.com/docs/api/composables/use-fetch`,useHead:`https://nuxt.com/docs/api/composables/use-head`,useHeadSafe:`https://nuxt.com/docs/api/composables/use-head-safe`,useLazyAsyncData:`https://nuxt.com/docs/api/composables/use-lazy-async-data`,useLazyFetch:`https://nuxt.com/docs/api/composables/use-lazy-fetch`,useNuxtApp:`https://nuxt.com/docs/api/composables/use-nuxt-app`,useRoute:`https://nuxt.com/docs/api/composables/use-route`,useRouter:`https://nuxt.com/docs/api/composables/use-router`,useRuntimeConfig:`https://nuxt.com/docs/api/composables/use-runtime-config`,useState:`https://nuxt.com/docs/api/composables/use-state`,$fetch:`https://nuxt.com/docs/api/utils/dollarfetch`,abortNavigation:`https://nuxt.com/docs/api/utils/abort-navigation`,createError:`https://nuxt.com/docs/api/utils/create-error`,defineNuxtComponent:`https://nuxt.com/docs/api/utils/define-nuxt-component`,definePageMeta:`https://nuxt.com/docs/api/utils/define-page-meta`,navigateTo:`https://nuxt.com/docs/api/utils/navigate-to#navigateto`,onBeforeRouteLeave:`https://nuxt.com/docs/api/utils/on-before-route-leave`,onBeforeRouteUpdate:`https://nuxt.com/docs/api/utils/on-before-route-update`,updateAppConfig:`https://nuxt.com/docs/api/utils/update-app-config`},vue:{ref:`https://vuejs.org/api/reactivity-core.html#ref`,computed:`https://vuejs.org/api/reactivity-core.html#computed`,reactive:`https://vuejs.org/api/reactivity-core.html#reactive`,watch:`https://vuejs.org/api/reactivity-core.html#watch`,watchEffect:`https://vuejs.org/api/reactivity-core.html#watcheffect`,watchPostEffect:`https://vuejs.org/api/reactivity-core.html#watchposteffect`,watchSyncEffect:`https://vuejs.org/api/reactivity-core.html#watchsynceffect`,onMounted:`https://vuejs.org/api/composition-api-lifecycle.html#onmounted`,onUnmounted:`https://vuejs.org/api/composition-api-lifecycle.html#onunmounted`,onActivated:`https://vuejs.org/api/composition-api-lifecycle.html#onactivated`,onDeactivated:`https://vuejs.org/api/composition-api-lifecycle.html#ondeactivated`,onBeforeMount:`https://vuejs.org/api/composition-api-lifecycle.html#onbeforemount`,onBeforeUnmount:`https://vuejs.org/api/composition-api-lifecycle.html#onbeforeunmount`,onUpdated:`https://vuejs.org/api/composition-api-lifecycle.html#onupdated`,onBeforeUpdate:`https://vuejs.org/api/composition-api-lifecycle.html#onbeforeupdate`,nextTick:`https://vuejs.org/api/general.html#nexttick`}},t={snippet:`i-carbon-code`,headers:`i-carbon-html-reference`,cookies:`i-carbon-cookie`,params:`i-carbon-text-selection`,query:`i-carbon-help`,body:`i-carbon-document`};export{t as n,e as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,C as t,Ct as n,E as r,F as i,H as a,Mt as o,V as s,W as c,dt as l,g as u,h as d,lt as f,m as p,tn as m,v as h,w as g,xt as _}from"./vendor/json-editor-vue-hkofgjf7.js";import{g as v,h as y}from"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import"./state-dkywakbf.js";import{T as b,s as x,t as S,u as C}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import{i as w,r as T}from"./dev-auth-j4vxv6a1.js";import"./nuxt-link-mev16ngd.js";import"./nicon-m5br9nvg.js";import"./nbutton-oi1rfqiz.js";import{t as E}from"./ncard-ech06vlh.js";import"./telemetry-bagjjni2.js";import{r as D}from"./state-tabs-mo8r9nzk.js";import{t as O}from"./npanel-grids-bl37sfq7.js";import"./ntext-input-ngomk0u2.js";import{a as k}from"#entry";import"./client-lh91kcpv.js";import{t as A}from"./composables-cwesk2q8.js";import"./nmarkdown-nct1w6kn.js";import{t as j}from"./launch-page-kf0w74wk.js";var M=new Map,N=r({__name:`IframeView`,props:{tab:{}},setup(e){let t=e,r=S(),o=n(),l=p(()=>t.tab.name),u=n(),d=_(b(o));s(()=>{let e=t.tab.view,n=e.persistent!==!1,r=[`clipboard-write`,`clipboard-read`,...e.permissions||[]];if(M.get(l.value)&&n)u.value=M.get(l.value),u.value.style.visibility=`visible`;else{u.value=document.createElement(`iframe`),u.value.setAttribute(`allow`,r.join(`; `)),u.value.setAttribute(`aria-label`,`Nuxt Devtools`),n&&M.set(l.value,u.value),u.value.src=e.src;try{u.value.style.opacity=`0.01`,u.value.onload=()=>{v(),m(),u.value.style.opacity=`1`}}catch{u.value.style.opacity=`1`}document.body.appendChild(u.value),i(y)}setTimeout(m,100)}),f(y),f(m),f(v),a(()=>{u.value&&(u.value.style.visibility=`hidden`)});function m(){if(!(!u.value||!u.value.contentWindow))try{let e=u.value.contentWindow.document.querySelector(`html`);e?.classList.toggle(`dark`,r.value===`dark`),e?.classList.toggle(`light`,r.value===`dark`),new MutationObserver(()=>{r.value=u.value?.contentWindow?.document.querySelector(`html`)?.classList.contains(`dark`)?`dark`:`light`}).observe(e,{attributes:!0,attributeFilter:[`class`]})}catch{}}let g=x();function v(){if(!(!u.value||!u.value.contentWindow))try{u.value.contentWindow.__NUXT_DEVTOOLS__=g.value}catch{}}function y(){u.value&&Object.assign(u.value.style,{position:`fixed`,left:`${d.left}px`,top:`${d.top}px`,width:`${d.width}px`,height:`${d.height}px`,outline:`none`})}return(e,t)=>(c(),h(`div`,{ref_key:`anchor`,ref:o,"h-full":``,"w-full":``},null,512))}}),P=Object.assign(N,{__name:`IframeView`}),F={flex:`~ col gap2`,mxa:``,"items-center":``},I={"text-xl":``},L={"text-rose":``},R=r({__name:`custom-[name]`,props:{name:{}},setup(n){let r=n;A({layout:`full`});let i=y(),a=v(),f=p(()=>r.name??i.params.name),h=D(),_=p(()=>h.value.find(e=>e.name===f.value));return s(()=>{_.value?_.value.requireAuth&&!T.value&&w():setTimeout(()=>{_.value||a.push(`/modules/overview`)},2e3)}),(n,r)=>{let i=O,a=k,s=P,p=j,h=E;return _.value?_.value.requireAuth&&!o(T)?(c(),u(a,{key:1})):_.value.view.type===`iframe`?(c(),u(s,{key:2,tab:_.value},null,8,[`tab`])):_.value.view.type===`vnode`?(c(),u(e(_.value.view.vnode),{key:3})):_.value.view.type===`launch`?(c(),u(p,{key:4,name:`custom-${_.value.name}`,icon:_.value.view.icon||_.value.icon,title:_.value.view.title||_.value.title,description:_.value.view.description,actions:_.value.view.actions,onAction:r[0]||=e=>o(C).customTabAction(_.value.name,e)},null,8,[`name`,`icon`,`title`,`description`,`actions`])):(c(),u(i,{key:5},{default:l(()=>[g(h,{flex:`~ col`,"h-full":``,"items-center":``,"justify-center":``},{default:l(()=>[t(` Unknown tab type `+m(_.value.view),1)]),_:1})]),_:1})):(c(),u(i,{key:0},{default:l(()=>[d(`div`,F,[r[3]||=d(`div`,{"i-carbon-queued":``,mb2:``,"text-5xl":``,op50:``},null,-1),d(`p`,I,[r[1]||=t(` Tab `,-1),d(`code`,L,m(f.value),1),r[2]||=t(` not found `,-1)]),r[4]||=d(`p`,{op50:``},` It might because the module contributing this tab is not installed or enabled `,-1),r[5]||=d(`p`,{mt8:``,"animate-pulse":``},` Redirecting to overview page... `,-1)])]),_:1}))}}});export{R as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ct as e,E as t,Mt as n,W as r,Y as i,_ as a,c as o,ct as s,d as c,dt as l,g as u,h as d,m as f,tn as p,v as m,w as h}from"./vendor/json-editor-vue-hkofgjf7.js";import"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import"./state-dkywakbf.js";import{h as g}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import"./dev-auth-j4vxv6a1.js";import"./nuxt-link-mev16ngd.js";import"./nicon-m5br9nvg.js";import{t as _}from"./nbutton-oi1rfqiz.js";import"./state-routes-m6gv5n9v.js";import"./telemetry-bagjjni2.js";import{r as v,u as y}from"#entry";import{t as b}from"./nselect-kgjpj17v.js";import{t as x}from"./nswitch-b36trghq.js";import{t as S}from"./ndropdown-moy416uy.js";import"./client-lh91kcpv.js";import{t as C}from"./ncode-block-coc4sua0.js";import{t as w}from"./ndrawer-ijwn9421.js";import{n as T,t as E}from"./vendor/quicktype-core-f8dnflnv.js";var D=E(),O=T(),k={border:`b base`,flex:`~ items-center gap-2`,sticky:``,"left-0":``,"right-0":``,"top-0":``,"z-1":``,"bg-base":``,p3:``},A={key:0,flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--2":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-lime:30":``,"text-8px":``},j={flex:`~ col`,"w-100":``,"of-auto":``,py2:``},M={"text-xs":``,capitalize:``,op75:``},N=t({__name:`DataSchemaDrawer`,setup(t){let T=v(),E=e(0),N=e(`TypeScript`),P=f(()=>O.all.find(e=>e.displayName===N.value)),F=e(P.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)),I=g(async()=>{if(E.value,!T.value)return``;let e=(0,D.jsonInputForTargetLanguage)(N.value);await e.addSource({name:T.value.name??`Data`,samples:[T.value.input]});let t=new D.InputData;return t.addInput(e),(await(0,D.quicktype)({inputData:t,lang:N.value,rendererOptions:F.value?.reduce((e,t)=>(e[t.name]=t.defaultValue,e),{})})).lines.join(`
|
|
2
|
-
`)}),L=f(()=>{let e=N.value.toLocaleLowerCase();return e.startsWith(`javascript`)?`javascript`:e.startsWith(`json`)?`json`:e.startsWith(`typescript`)?`typescript`:e});s(F,()=>{E.value++},{deep:!0}),s(N,()=>{F.value=P.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)});let R=y();function z(){R(I.value||``)}return(e,t)=>{let s=b,f=_,g=x,v=S,y=C,E=w;return P.value?(r(),u(c,{key:0,to:`body`},[h(E,{"model-value":!!n(T)?.input,"auto-close":``,"max-w-screen":``,"w-2xl":``,"n-code-block":``,onClose:t[2]||=e=>T.value=null},{default:l(()=>[d(`div`,k,[t[3]||=d(`p`,{"mr-2":``},` Schema `,-1),h(s,{modelValue:N.value,"onUpdate:modelValue":t[0]||=e=>N.value=e,n:`xs primary`},{default:l(()=>[(r(!0),m(o,null,i(n(O.all),e=>(r(),m(`option`,{key:e.displayName},p(e.displayName),1))),128))]),_:1},8,[`modelValue`]),F.value?.length?(r(),u(v,{key:0,n:`sm lime`},{trigger:l(({click:e})=>[h(f,{icon:`carbon-settings`,"h-full":``,onClick:t=>e()},null,8,[`onClick`]),F.value?(r(),m(`span`,A,p(F.value.length),1)):a(``,!0)]),default:l(()=>[d(`div`,j,[(r(!0),m(o,null,i(F.value,(e,t)=>(r(),u(g,{key:e.name,modelValue:F.value[t].defaultValue,"onUpdate:modelValue":e=>F.value[t].defaultValue=e,flex:`~ gap-2`,rounded:``,px2:``,py2:``},{default:l(()=>[d(`span`,M,p(e.description),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):a(``,!0),t[4]||=d(`div`,{"flex-auto":``},null,-1),h(f,{icon:`carbon-copy`,"mr-6":``,"h-full":``,onClick:t[1]||=e=>z()})]),n(I)?(r(),u(y,{key:0,lang:L.value,code:n(I)},null,8,[`lang`,`code`])):a(``,!0)]),_:1},8,[`model-value`])])):a(``,!0)}}}),P=Object.assign(N,{__name:`DataSchemaDrawer`});export{P as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,Mt as r,Qt as i,W as a,X as o,Y as s,_ as c,c as l,dt as u,en as d,g as f,h as p,m,tn as h,v as g,w as _}from"./vendor/json-editor-vue-hkofgjf7.js";import"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{l as v}from"./state-dkywakbf.js";import"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import"./dev-auth-j4vxv6a1.js";import"./nuxt-link-mev16ngd.js";import"./nicon-m5br9nvg.js";import{t as y}from"./nbutton-oi1rfqiz.js";import"./state-routes-m6gv5n9v.js";import"./telemetry-bagjjni2.js";import"./client-lh91kcpv.js";import{t as b}from"./ncode-block-coc4sua0.js";import{t as x}from"./composables-cwesk2q8.js";import{t as S}from"./ncheckbox-k9nxqa1w.js";import{t as C}from"./filepath-item-fnp9jxof.js";import"./nicon-title-e35pdr21.js";import{t as w}from"./nsection-block-l0c6dpg8.js";import{t as T}from"./nbadge-hpznun17.js";import{t as E}from"./color-b9xoe9j2.js";var D=n({__name:`NBadgeHashed`,props:{text:{}},setup(t){let n=t,r=m(()=>({color:E(n.text,50,60),background:E(n.text,50,60,.05)}));return(n,i)=>(a(),f(T,{style:d(r.value)},{default:u(()=>[e(h(t.text),1),o(n.$slots,`default`)]),_:3},8,[`style`]))}}),O=Object.assign(D,{__name:`NBadgeHashed`}),k={flex:`~ gap-2 col`,mb4:``},A={flex:`~ gap-3 items-center`},j={key:0,flex:`~ gap-1`,"items-center":``,p1:``,border:`~ base rounded`},M={"max-w-full":``,"of-auto":``},N={"text-center":``,op50:``},P={flex:`~`,px4:``},F={key:0,op50:``},I={px2:``,"text-center":``},L={"of-auto":``},R=n({__name:`DebugModuleMutationRecords`,props:{moduleMutationRecords:{}},setup(e){let n=e,r=/^[a-z]:[\\/]/i;function o(e){return e.startsWith(`/`)||e.match(r)}let d=t(!1),v=t(!1),x=t(!1),w=t(!1),T=t(!1),E=t(``),D=m(()=>{let e=n.moduleMutationRecords;return d.value||(e=e.filter(e=>!e.name.startsWith(`nuxt:`)&&e.name!==`@nuxt/devtools`)),v.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.templates`)),x.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.transpile`)),w.value||(e=e.filter(e=>e.keys.join(`.`)!==`plugins`)),T.value||(e=e.filter(e=>e.method||e.value!==`[]`&&e.value!==`{}`)),E.value&&(e=e.filter(e=>e.name===E.value)),e});return(t,n)=>{let r=S,m=O,R=y,z=C,B=b;return a(),g(l,null,[p(`div`,k,[p(`div`,A,[_(r,{modelValue:d.value,"onUpdate:modelValue":n[0]||=e=>d.value=e,n:`primary`},{default:u(()=>[...n[6]||=[p(`span`,{"ws-nowrap":``,op75:``},`Builtin Modules`,-1)]]),_:1},8,[`modelValue`]),_(r,{modelValue:v.value,"onUpdate:modelValue":n[1]||=e=>v.value=e,n:`primary`},{default:u(()=>[...n[7]||=[p(`span`,{"ws-nowrap":``,op75:``},`Templates`,-1)]]),_:1},8,[`modelValue`]),_(r,{modelValue:x.value,"onUpdate:modelValue":n[2]||=e=>x.value=e,n:`primary`},{default:u(()=>[...n[8]||=[p(`span`,{"ws-nowrap":``,op75:``},`Transpile`,-1)]]),_:1},8,[`modelValue`]),_(r,{modelValue:w.value,"onUpdate:modelValue":n[3]||=e=>w.value=e,n:`primary`},{default:u(()=>[...n[9]||=[p(`span`,{"ws-nowrap":``,op75:``},`Plugins`,-1)]]),_:1},8,[`modelValue`]),_(r,{modelValue:T.value,"onUpdate:modelValue":n[4]||=e=>T.value=e,n:`primary`},{default:u(()=>[...n[10]||=[p(`span`,{"ws-nowrap":``,op75:``},`Empty Initial`,-1)]]),_:1},8,[`modelValue`]),E.value?(a(),g(`div`,j,[_(m,{"font-mono":``,text:E.value},null,8,[`text`]),_(R,{icon:`carbon-close`,border:!1,onClick:n[5]||=e=>E.value=``})])):c(``,!0)])]),p(`table`,M,[n[11]||=p(`thead`,{border:`b base`},[p(`tr`,null,[p(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Index `),p(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Module `),p(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Key Path `),p(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Method `),p(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Value `)])],-1),p(`tbody`,null,[(a(!0),g(l,null,s(D.value,t=>(a(),g(`tr`,{key:e.moduleMutationRecords.indexOf(t),border:`b dashed transparent hover:base`},[p(`td`,N,[p(`div`,null,h(e.moduleMutationRecords.indexOf(t)+1),1)]),p(`td`,null,[t.name&&o(t.name)?(a(),f(z,{key:0,filepath:t.name},null,8,[`filepath`])):(a(),f(m,{key:1,role:`button`,"font-mono":``,text:t.name,onClick:e=>E.value=t.name},null,8,[`text`,`onClick`]))]),p(`td`,null,[p(`code`,P,[(a(!0),g(l,null,s(t.keys,(e,n)=>(a(),g(l,{key:n},[p(`span`,null,h(e),1),n<t.keys.length-1?(a(),g(`span`,F,` . `)):c(``,!0)],64))),128))])]),p(`td`,I,[_(m,{"font-mono":``,text:t.method||`=`,class:i(t.method?``:`saturate-0`)},null,8,[`text`,`class`])]),p(`td`,L,[_(B,{code:String(t.value),lang:`ts`,"grammar-context-code":`let a = `,"ws-normal":``,"break-all":``,py1:``,lines:!1,inline:!0},null,8,[`code`])])]))),128))])])],64)}}}),z=Object.assign(R,{__name:`DebugModuleMutationRecords`}),B={key:0,p6:``},V={key:1},H=n({__name:`debug`,setup(e){x({icon:`i-carbon-debug`,title:`Debug`,category:`advanced`});let t=v();return(e,n)=>{let i=w;return r(t)?(a(),g(`div`,V,[_(i,{icon:`carbon-container-image-push-pull`,text:`Module Mutation Records`,description:`Records of module mutations to nuxt options`},{default:u(()=>[_(z,{"module-mutation-records":r(t).moduleMutationRecords||[]},null,8,[`module-mutation-records`])]),_:1})])):(a(),g(`div`,B,[...n[0]||=[p(`div`,null,`No Debug Context Found`,-1),p(`div`,null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)]]))}}});export{H as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-oipoa1or.js";import{Ct as t}from"./vendor/json-editor-vue-hkofgjf7.js";import{B as n,_ as r,c as i,u as a}from"./client-s5g5n0ac.js";var o=e(((e,t)=>{(function(n,r){var i=``,a=`?`,o=`function`,s=`undefined`,c=`object`,l=`string`,u=`major`,d=`model`,f=`name`,p=`type`,m=`vendor`,h=`version`,g=`architecture`,_=`console`,v=`mobile`,y=`tablet`,b=`smarttv`,x=`wearable`,S=`embedded`,C=500,w=`Amazon`,T=`Apple`,E=`ASUS`,D=`BlackBerry`,O=`Browser`,k=`Chrome`,ee=`Edge`,A=`Firefox`,j=`Google`,M=`Huawei`,N=`LG`,P=`Microsoft`,F=`Motorola`,I=`Opera`,L=`Samsung`,R=`Sharp`,z=`Sony`,B=`Xiaomi`,V=`Zebra`,H=`Facebook`,U=`Chromium OS`,W=`Mac OS`,te=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},G=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},K=function(e,t){return typeof e===l?q(t).indexOf(q(e))!==-1:!1},q=function(e){return e.toLowerCase()},ne=function(e){return typeof e===l?e.replace(/[^\d\.]/g,i).split(`.`)[0]:r},J=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,i),typeof t===s?e:e.substring(0,C)},Y=function(e,t){for(var n=0,i,a,s,l,u,d;n<t.length&&!u;){var f=t[n],p=t[n+1];for(i=a=0;i<f.length&&!u&&f[i];)if(u=f[i++].exec(e),u)for(s=0;s<p.length;s++)d=u[++a],l=p[s],typeof l===c&&l.length>0?l.length===2?typeof l[1]==o?this[l[0]]=l[1].call(this,d):this[l[0]]=l[1]:l.length===3?typeof l[1]===o&&!(l[1].exec&&l[1].test)?this[l[0]]=d?l[1].call(this,d,l[2]):r:this[l[0]]=d?d.replace(l[1],l[2]):r:l.length===4&&(this[l[0]]=d?l[3].call(this,d.replace(l[1],l[2])):r):this[l]=d||r;n+=2}},X=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(K(t[n][i],e))return n===a?r:n}else if(K(t[n],e))return n===a?r:n;return e},re={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},ie={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,"8.1":`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},ae={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[f,`Chrome`]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[f,`Edge`]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,h],[/opios[\/ ]+([\w\.]+)/i],[h,[f,I+` Mini`]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[f,I+` GX`]],[/\bopr\/([\w\.]+)/i],[h,[f,I]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[f,`Baidu`]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,h],[/\bddg\/([\w\.]+)/i],[h,[f,`DuckDuckGo`]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[f,`UC`+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[f,`WeChat`]],[/konqueror\/([\w\.]+)/i],[h,[f,`Konqueror`]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[f,`IE`]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[f,`Yandex`]],[/slbrowser\/([\w\.]+)/i],[h,[f,`Smart Lenovo `+O]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,`$1 Secure `+O],h],[/\bfocus\/([\w\.]+)/i],[h,[f,A+` Focus`]],[/\bopt\/([\w\.]+)/i],[h,[f,I+` Touch`]],[/coc_coc\w+\/([\w\.]+)/i],[h,[f,`Coc Coc`]],[/dolfin\/([\w\.]+)/i],[h,[f,`Dolphin`]],[/coast\/([\w\.]+)/i],[h,[f,I+` Coast`]],[/miuibrowser\/([\w\.]+)/i],[h,[f,`MIUI `+O]],[/fxios\/([-\w\.]+)/i],[h,[f,A]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,`360 `+O]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,`$1 `+O],h],[/samsungbrowser\/([\w\.]+)/i],[h,[f,L+` Internet`]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g,` `],h],[/metasr[\/ ]?([\d\.]+)/i],[h,[f,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,`Sogou Mobile`],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,h],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,H],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[f,`GSA`]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[f,`TikTok`]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[f,k+` Headless`]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,k+` WebView`],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[f,`Android `+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[f,`Mobile Safari`]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[h,X,re]],[/(webkit|khtml)\/([\w\.]+)/i],[f,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,`Netscape`],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[f,A+` Reality`]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,h],[/(cobalt)\/([\w\.]+)/i],[f,[h,/master.|lts./,``]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,`amd64`]],[/(ia32(?=;))/i],[[g,q]],[/((?:i[346]|x)86)[;\)]/i],[[g,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,`armhf`]],[/windows (ce|mobile); ppc;/i],[[g,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,i,q]],[/(sun4\w)[;\)]/i],[[g,`sparc`]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[m,L],[p,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[m,L],[p,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[m,T],[p,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[m,T],[p,y]],[/(macintosh);/i],[d,[m,T]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[m,R],[p,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[m,M],[p,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[m,M],[p,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g,` `],[m,B],[p,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g,` `],[m,B],[p,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[m,`OPPO`],[p,v]],[/\b(opd2\d{3}a?) bui/i],[d,[m,`OPPO`],[p,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[m,`Vivo`],[p,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[m,`Realme`],[p,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[m,F],[p,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[m,F],[p,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[m,N],[p,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[m,N],[p,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[m,`Lenovo`],[p,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g,` `],[m,`Nokia`],[p,v]],[/(pixel c)\b/i],[d,[m,j],[p,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[m,j],[p,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[m,z],[p,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,`Xperia Tablet`],[m,z],[p,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[m,`OnePlus`],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[m,w],[p,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,`Fire Phone $1`],[m,w],[p,v]],[/(playbook);[-\w\),; ]+(rim)/i],[d,m,[p,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[m,D],[p,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[m,E],[p,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[m,E],[p,v]],[/(nexus 9)/i],[d,[m,`HTC`],[p,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[d,/_/g,` `],[p,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[m,`Acer`],[p,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[m,`Meizu`],[p,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[m,`Ulefone`],[p,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,d,[p,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,d,[p,y]],[/(surface duo)/i],[d,[m,P],[p,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[m,`Fairphone`],[p,v]],[/(u304aa)/i],[d,[m,`AT&T`],[p,v]],[/\bsie-(\w*)/i],[d,[m,`Siemens`],[p,v]],[/\b(rct\w+) b/i],[d,[m,`RCA`],[p,y]],[/\b(venue[\d ]{2,7}) b/i],[d,[m,`Dell`],[p,y]],[/\b(q(?:mv|ta)\w+) b/i],[d,[m,`Verizon`],[p,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[m,`Barnes & Noble`],[p,y]],[/\b(tm\d{3}\w+) b/i],[d,[m,`NuVision`],[p,y]],[/\b(k88) b/i],[d,[m,`ZTE`],[p,y]],[/\b(nx\d{3}j) b/i],[d,[m,`ZTE`],[p,v]],[/\b(gen\d{3}) b.+49h/i],[d,[m,`Swiss`],[p,v]],[/\b(zur\d{3}) b/i],[d,[m,`Swiss`],[p,y]],[/\b((zeki)?tb.*\b) b/i],[d,[m,`Zeki`],[p,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,`Dragon Touch`],d,[p,y]],[/\b(ns-?\w{0,9}) b/i],[d,[m,`Insignia`],[p,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[m,`NextBook`],[p,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,`Voice`],d,[p,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,`LvTel`],d,[p,v]],[/\b(ph-1) /i],[d,[m,`Essential`],[p,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[m,`Envizen`],[p,y]],[/\b(trio[-\w\. ]+) b/i],[d,[m,`MachSpeed`],[p,y]],[/\btu_(1491) b/i],[d,[m,`Rotor`],[p,y]],[/(shield[\w ]+) b/i],[d,[m,`Nvidia`],[p,y]],[/(sprint) (\w+)/i],[m,d,[p,v]],[/(kin\.[onetw]{3})/i],[[d,/\./g,` `],[m,P],[p,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[m,V],[p,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[m,V],[p,v]],[/smart-tv.+(samsung)/i],[m,[p,b]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,`SmartTV`],[m,L],[p,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,N],[p,b]],[/(apple) ?tv/i],[m,[d,T+` TV`],[p,b]],[/crkey/i],[[d,k+`cast`],[m,j],[p,b]],[/droid.+aft(\w+)( bui|\))/i],[d,[m,w],[p,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[m,R],[p,b]],[/(bravia[\w ]+)( bui|\))/i],[d,[m,z],[p,b]],[/(mitv-\w{5}) bui/i],[d,[m,B],[p,b]],[/Hbbtv.*(technisat) (.*);/i],[m,d,[p,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,J],[d,J],[p,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,d,[p,_]],[/droid.+; (shield) bui/i],[d,[m,`Nvidia`],[p,_]],[/(playstation [345portablevi]+)/i],[d,[m,z],[p,_]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[m,P],[p,_]],[/((pebble))app/i],[m,d,[p,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[m,T],[p,x]],[/droid.+; (glass) \d/i],[d,[m,j],[p,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[m,V],[p,x]],[/(quest( \d| pro)?)/i],[d,[m,H],[p,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[p,S]],[/(aeobc)\b/i],[d,[m,w],[p,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,v]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[m,`Generic`]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[f,ee+`HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[f,`Blink`]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,h],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[h,X,ie]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,X,ie],[f,`Windows`]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,`.`],[f,`iOS`]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,W],[h,/_/g,`.`]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,h],[/\(bb(10);/i],[h,[f,D]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[f,`Symbian`]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[f,A+` OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[f,`webOS`]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[f,`watchOS`]],[/crkey\/([\d\.]+)/i],[h,[f,k+`cast`]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,U],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,h],[/(sunos) ?([\w\.\d]*)/i],[[f,`Solaris`],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,h]]},Z=function(e,t){if(typeof e===c&&(t=e,e=r),!(this instanceof Z))return new Z(e,t).getResult();var a=typeof n!==s&&n.navigator?n.navigator:r,_=e||(a&&a.userAgent?a.userAgent:i),b=a&&a.userAgentData?a.userAgentData:r,x=t?te(ae,t):ae,S=a&&a.userAgent==_;return this.getBrowser=function(){var e={};return e[f]=r,e[h]=r,Y.call(e,_,x.browser),e[u]=ne(e[h]),S&&a&&a.brave&&typeof a.brave.isBrave==o&&(e[f]=`Brave`),e},this.getCPU=function(){var e={};return e[g]=r,Y.call(e,_,x.cpu),e},this.getDevice=function(){var e={};return e[m]=r,e[d]=r,e[p]=r,Y.call(e,_,x.device),S&&!e[p]&&b&&b.mobile&&(e[p]=v),S&&e[d]==`Macintosh`&&a&&typeof a.standalone!==s&&a.maxTouchPoints&&a.maxTouchPoints>2&&(e[d]=`iPad`,e[p]=y),e},this.getEngine=function(){var e={};return e[f]=r,e[h]=r,Y.call(e,_,x.engine),e},this.getOS=function(){var e={};return e[f]=r,e[h]=r,Y.call(e,_,x.os),S&&!e[f]&&b&&b.platform&&b.platform!=`Unknown`&&(e[f]=b.platform.replace(/chrome os/i,U).replace(/macos/i,W)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return _},this.setUA=function(e){return _=typeof e===l&&e.length>C?J(e,C):e,this},this.setUA(_),this};Z.BROWSER=G([f,h,u]),Z.CPU=G([g]),Z.DEVICE=G([d,m,p,_,v,b,y,x,S]),Z.ENGINE=Z.OS=G([f,h]),typeof e===s?typeof define===o&&define.amd?define(function(){return Z}):typeof n!==s&&(n.UAParser=Z):(typeof t!==s&&t.exports&&(e=t.exports=Z),e.UAParser=Z);var Q=typeof n!==s&&(n.jQuery||n.Zepto);if(Q&&!Q.ua){var $=new Z;Q.ua=$.getResult(),Q.ua.get=function(){return $.getUA()},Q.ua.set=function(e){$.setUA(e);var t=$.getResult();for(var n in t)Q.ua[n]=t[n]}}})(typeof window==`object`?window:e)}));const s=r(),c=r();function l(){return i(`devtools:restart-dialogs`,()=>[])}var u;function d(e){u?.(e)}function f(e){u=e}var p=o();const m=t(localStorage.getItem(`__nuxt_dev_token__`)),h=t(!1);var g=new BroadcastChannel(`__nuxt_dev_token__`);g.addEventListener(`message`,e=>{if(e.data.event===`new-token`){if(e.data.data===m.value)return;let t=e.data.data;a.verifyAuthToken(t).then(e=>{m.value=e?t:null,h.value=e})}});function _(e){m.value=e,h.value=!0,localStorage.setItem(`__nuxt_dev_token__`,e),g.postMessage({event:`new-token`,data:e})}async function v(){if(h.value)return m.value;if(m.value||await x(),h.value=await a.verifyAuthToken(m.value),!h.value)throw m.value=null,d({message:`Invalid auth token, action canceled`,icon:`i-carbon-warning-alt`,classes:`text-red`}),await x(),Error(`[Nuxt DevTools] Invalid auth token`);return m.value}const y=new p.UAParser(navigator.userAgent).getResult();async function b(){let e=[y.browser.name,y.browser.version,`|`,y.os.name,y.os.version,y.device.type].filter(e=>e).join(` `);return await a.requestForAuth(e,window.location.origin)}async function x(){if(m.value||b(),await Promise.race([c.start(),n(m.value).toBeTruthy()])===!1)throw d({message:`Action canceled`,icon:`carbon-close`,classes:`text-orange`}),Error(`[Nuxt DevTools] User canceled auth`)}export{_ as a,d as c,l as d,b as i,c as l,v as n,y as o,h as r,f as s,m as t,s as u};
|