@nuxt/devtools 0.8.4 → 0.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/chunks/module-main.mjs +65 -21
  2. package/dist/chunks/vscode.mjs +2 -3
  3. package/dist/client/200.html +17 -17
  4. package/dist/client/404.html +17 -17
  5. package/dist/client/_nuxt/{Badge.a4bd58d4.js → Badge.15b76164.js} +1 -1
  6. package/dist/client/_nuxt/{CodeDiff.vue.a8c9e639.js → CodeDiff.vue.0e58df1f.js} +2 -2
  7. package/dist/client/_nuxt/ComposableItem.vue.e263b9a9.js +1 -0
  8. package/dist/client/_nuxt/{DataSchemaButton.vue.fbb61806.js → DataSchemaButton.vue.41ad6158.js} +1 -1
  9. package/dist/client/_nuxt/{DataSchemaDrawer.f84a2081.js → DataSchemaDrawer.6de1f238.js} +1 -1
  10. package/dist/client/_nuxt/{DrawerRight.vue.b9dc765f.js → DrawerRight.vue.5bde5a0b.js} +1 -1
  11. package/dist/client/_nuxt/{DurationDisplay.vue.1f34b658.js → DurationDisplay.vue.8da73fd3.js} +1 -1
  12. package/dist/client/_nuxt/{FilepathItem.vue.a4d269b8.js → FilepathItem.vue.7bd675c6.js} +1 -1
  13. package/dist/client/_nuxt/{HelpFab.vue.c0c3f8e6.js → HelpFab.vue.f082102a.js} +1 -1
  14. package/dist/client/_nuxt/LaunchPage.vue.f8df9e2a.js +1 -0
  15. package/dist/client/_nuxt/{NCheckbox.vue.0e359f85.js → NCheckbox.vue.fcd1d971.js} +1 -1
  16. package/dist/client/_nuxt/{NCodeBlock.vue.01eb6d1c.js → NCodeBlock.vue.84865d5b.js} +2 -2
  17. package/dist/client/_nuxt/{NDropdown.vue.b3117df4.js → NDropdown.vue.d756d40c.js} +1 -1
  18. package/dist/client/_nuxt/{NIconTitle.vue.79485c3a.js → NIconTitle.vue.b6d28480.js} +1 -1
  19. package/dist/client/_nuxt/NLink.vue.e0a3a39a.js +1 -0
  20. package/dist/client/_nuxt/{NMarkdown.vue.7a10e6e6.js → NMarkdown.vue.d2063d22.js} +1 -1
  21. package/dist/client/_nuxt/NSectionBlock.0d0061ef.css +1 -0
  22. package/dist/client/_nuxt/NSectionBlock.42a3cefc.js +1 -0
  23. package/dist/client/_nuxt/{NSelect.vue.9cac29ef.js → NSelect.vue.e3495019.js} +1 -1
  24. package/dist/client/_nuxt/{NSelectTabs.vue.72adf277.js → NSelectTabs.vue.4a83d611.js} +1 -1
  25. package/dist/client/_nuxt/{NSwitch.vue.67a4fdb0.js → NSwitch.vue.21018268.js} +1 -1
  26. package/dist/client/_nuxt/{NTip.vue.d505e897.js → NTip.vue.d193bf96.js} +1 -1
  27. package/dist/client/_nuxt/{Navbar.vue.8dc15d25.js → Navbar.vue.bacddf14.js} +1 -1
  28. package/dist/client/_nuxt/{StateEditor.vue.2463efc9.js → StateEditor.vue.5fea57d7.js} +1 -1
  29. package/dist/client/_nuxt/{analyze-build.423f57eb.js → analyze-build.7513704d.js} +1 -1
  30. package/dist/client/_nuxt/{assets.dc245910.js → assets.35017b46.js} +3 -3
  31. package/dist/client/_nuxt/{client.c59e50d6.js → client.d926285a.js} +1 -1
  32. package/dist/client/_nuxt/{components.31c6fd6f.js → components.fc36eeef.js} +1 -1
  33. package/dist/client/_nuxt/custom-_name_.50e8c68f.js +1 -0
  34. package/dist/client/_nuxt/{default.30ac8af4.js → default.c4c43b40.js} +1 -1
  35. package/dist/client/_nuxt/entry.38bf3bdf.css +1 -0
  36. package/dist/client/_nuxt/entry.54b63325.js +27 -0
  37. package/dist/client/_nuxt/{error-404.5c6d1cc1.js → error-404.087131b3.js} +1 -1
  38. package/dist/client/_nuxt/{error-500.b5b10475.js → error-500.d1c41037.js} +1 -1
  39. package/dist/client/_nuxt/{full.03097bfb.js → full.478da439.js} +1 -1
  40. package/dist/client/_nuxt/{hooks.d674696d.js → hooks.d9e8fd29.js} +1 -1
  41. package/dist/client/_nuxt/{imports.b827859f.js → imports.79d88ab3.js} +1 -1
  42. package/dist/client/_nuxt/{index.b5454355.js → index.5e3c6999.js} +1 -1
  43. package/dist/client/_nuxt/index.86b1fd88.js +1 -0
  44. package/dist/client/_nuxt/{json-editor-vue.1bc58c26.js → json-editor-vue.ce96762e.js} +1 -1
  45. package/dist/client/_nuxt/{middleware.434dc02a.js → middleware.87876377.js} +1 -1
  46. package/dist/client/_nuxt/{modules.7dc02a95.js → modules.caf682af.js} +2 -2
  47. package/dist/client/_nuxt/{none.2b3e8ddc.js → none.cfaeed76.js} +1 -1
  48. package/dist/client/_nuxt/{open-graph.693bd031.js → open-graph.cd0bdf97.js} +2 -2
  49. package/dist/client/_nuxt/overview.14a73720.js +1 -0
  50. package/dist/client/_nuxt/pages.746eb038.js +1 -0
  51. package/dist/client/_nuxt/payload.913d1fd8.js +1 -0
  52. package/dist/client/_nuxt/{plugins.cd2e64ba.js → plugins.5342d060.js} +1 -1
  53. package/dist/client/_nuxt/{runtime-configs.1f844468.js → runtime-configs.bf4f2459.js} +1 -1
  54. package/dist/client/_nuxt/server-routes.8c094c9d.js +9 -0
  55. package/dist/client/_nuxt/settings.59f50baa.js +1 -0
  56. package/dist/client/_nuxt/{state-components.a223a28c.js → state-components.c2201640.js} +1 -1
  57. package/dist/client/_nuxt/{state-modules.c0927595.js → state-modules.8816f603.js} +1 -1
  58. package/dist/client/_nuxt/{storage-options.8fdc9b2a.js → storage-options.b1a5fc25.js} +1 -1
  59. package/dist/client/_nuxt/storage.713a7e46.js +1 -0
  60. package/dist/client/_nuxt/{terminals.cb4eb909.js → terminals.a1c82952.js} +1 -1
  61. package/dist/client/_nuxt/{timeline.60d410a7.js → timeline.9cfa88d9.js} +2 -2
  62. package/dist/client/_nuxt/{unocss-runtime.68d64d4a.js → unocss-runtime.dedd4a37.js} +1 -1
  63. package/dist/client/_nuxt/virtual-files.7dc060d0.js +1 -0
  64. package/dist/client/index.html +17 -17
  65. package/dist/client/modules/analyze-build/index.html +17 -17
  66. package/dist/client/modules/assets/index.html +17 -17
  67. package/dist/client/modules/components/index.html +17 -17
  68. package/dist/client/modules/hooks/index.html +17 -17
  69. package/dist/client/modules/imports/index.html +17 -17
  70. package/dist/client/modules/middleware/index.html +17 -17
  71. package/dist/client/modules/modules/index.html +17 -17
  72. package/dist/client/modules/open-graph/index.html +17 -17
  73. package/dist/client/modules/overview/index.html +17 -17
  74. package/dist/client/modules/pages/index.html +17 -17
  75. package/dist/client/modules/payload/index.html +17 -17
  76. package/dist/client/modules/plugins/index.html +17 -17
  77. package/dist/client/modules/runtime-configs/index.html +17 -17
  78. package/dist/client/modules/server-routes/index.html +17 -17
  79. package/dist/client/modules/storage/index.html +17 -17
  80. package/dist/client/modules/terminals/index.html +17 -17
  81. package/dist/client/modules/timeline/index.html +17 -17
  82. package/dist/client/modules/virtual-files/index.html +17 -17
  83. package/dist/client/settings/index.html +17 -17
  84. package/dist/module.json +1 -1
  85. package/dist/module.mjs +1 -1
  86. package/dist/runtime/plugins/devtools.client.mjs +7 -0
  87. package/dist/shared/{devtools.4169e037.mjs → devtools.18eefaee.mjs} +3 -0
  88. package/package.json +7 -9
  89. package/dist/client/__blank/index.html +0 -42
  90. package/dist/client/_nuxt/ComposableItem.vue.bd112256.js +0 -1
  91. package/dist/client/_nuxt/LaunchPage.vue.012ddba7.js +0 -1
  92. package/dist/client/_nuxt/NLink.vue.6dc3b4af.js +0 -1
  93. package/dist/client/_nuxt/NSectionBlock.012f83f1.css +0 -1
  94. package/dist/client/_nuxt/NSectionBlock.2d8e1431.js +0 -1
  95. package/dist/client/_nuxt/__blank.20eb2cab.js +0 -1
  96. package/dist/client/_nuxt/custom-_name_.9b02fa14.js +0 -1
  97. package/dist/client/_nuxt/entry.05b33d7f.js +0 -27
  98. package/dist/client/_nuxt/entry.79095383.css +0 -1
  99. package/dist/client/_nuxt/index.b2055c8f.js +0 -1
  100. package/dist/client/_nuxt/overview.f2e48477.js +0 -1
  101. package/dist/client/_nuxt/pages.745a0630.js +0 -1
  102. package/dist/client/_nuxt/payload.897ca8fa.js +0 -1
  103. package/dist/client/_nuxt/server-routes.91c861d0.js +0 -9
  104. package/dist/client/_nuxt/settings.367ae337.js +0 -1
  105. package/dist/client/_nuxt/storage.76034502.js +0 -1
  106. package/dist/client/_nuxt/virtual-files.829bd209.js +0 -1
@@ -1,13 +1,13 @@
1
1
  import fs, { existsSync } from 'node:fs';
2
+ import os, { homedir } from 'node:os';
2
3
  import { resolve, join as join$1, dirname } from 'pathe';
3
4
  import { logger, useNuxt, addPlugin, addVitePlugin } from '@nuxt/kit';
4
5
  import { searchForWorkspaceRoot } from 'vite';
5
6
  import sirv from 'sirv';
6
- import c from 'picocolors';
7
+ import { colors } from 'consola/utils';
7
8
  import { createBirpcGroup } from 'birpc';
8
9
  import { stringify, parse } from 'flatted';
9
- import { R as ROUTE_AUTH, d as defaultTabOptions, W as WS_EVENT_NAME, a as ROUTE_ANALYZE, b as ROUTE_CLIENT, c as ROUTE_AUTH_VERIFY } from '../shared/devtools.4169e037.mjs';
10
- import { homedir } from 'node:os';
10
+ import { R as ROUTE_AUTH, d as defaultTabOptions, W as WS_EVENT_NAME, a as ROUTE_ANALYZE, b as ROUTE_CLIENT, c as ROUTE_AUTH_VERIFY } from '../shared/devtools.18eefaee.mjs';
11
11
  import { join } from 'node:path';
12
12
  import fsp from 'node:fs/promises';
13
13
  import { randomStr } from '@antfu/utils';
@@ -24,12 +24,11 @@ import 'pkg-types';
24
24
  import semver from 'semver';
25
25
  import { getPackageInfo } from 'local-pkg';
26
26
  import { resolveBuiltinPresets } from 'unimport';
27
- import boxen from 'boxen';
28
27
  import Git from 'simple-git';
29
28
  import { hash } from 'ohash';
30
29
  import { runtimeDir, clientDir, packageDir, isGlobalInstall } from '../dirs.mjs';
31
30
 
32
- const version = "0.8.4";
31
+ const version = "0.8.5";
33
32
 
34
33
  let token;
35
34
  async function getDevAuthToken() {
@@ -600,23 +599,23 @@ function setupGeneralRPC({ nuxt, options, refresh, openInEditorHooks }) {
600
599
  async requestForAuth(info) {
601
600
  const token = await getDevAuthToken();
602
601
  const message = [
603
- `A browser is requesting permissions of ${c.bold(c.yellow("writing files and running commands"))} from the DevTools UI.`,
604
- c.bold(info),
602
+ `A browser is requesting permissions of ${colors.bold(colors.yellow("writing files and running commands"))} from the DevTools UI.`,
603
+ colors.bold(info),
605
604
  "",
606
605
  "Please open the following URL in the browser:",
607
- c.bold(c.green(`${nuxt.options.devServer.https ? "https" : "http"}://${nuxt.options.devServer.host === "::" ? "localhost" : nuxt.options.devServer.host || "localhost"}:${nuxt.options.devServer.port}${ROUTE_AUTH}?token=${token}`)),
606
+ colors.bold(colors.green(`${nuxt.options.devServer.https ? "https" : "http"}://${nuxt.options.devServer.host === "::" ? "localhost" : nuxt.options.devServer.host || "localhost"}:${nuxt.options.devServer.port}${ROUTE_AUTH}?token=${token}`)),
608
607
  "",
609
608
  "Or manually copy and paste the following token:",
610
- c.bold(c.cyan(token))
609
+ colors.bold(colors.cyan(token))
611
610
  ];
612
- console.log(`
613
- ${boxen(message.join("\n"), {
614
- padding: 1,
615
- borderColor: "yellow",
616
- borderStyle: "round",
617
- title: "Permission Request"
618
- })}
619
- `);
611
+ logger.box({
612
+ message: message.join("\n"),
613
+ title: colors.bold(colors.yellow(" Permission Request ")),
614
+ style: {
615
+ borderColor: "yellow",
616
+ borderStyle: "rounded"
617
+ }
618
+ });
620
619
  },
621
620
  async verifyAuthToken(token) {
622
621
  return token === await getDevAuthToken();
@@ -657,13 +656,13 @@ const wizard = {
657
656
  enablePages
658
657
  };
659
658
 
660
- const LOG_PREFIX = c.cyan("Nuxt DevTools:");
659
+ const LOG_PREFIX = colors.cyan("Nuxt DevTools:");
661
660
 
662
661
  function setupWizardRPC({ nuxt, ensureDevAuthToken }) {
663
662
  return {
664
663
  async runWizard(token, name, ...args) {
665
664
  await ensureDevAuthToken(token);
666
- logger.info(LOG_PREFIX, `Running wizard ${c.green(name)}...`);
665
+ logger.info(LOG_PREFIX, `Running wizard ${colors.green(name)}...`);
667
666
  return wizard[name](nuxt, ...args);
668
667
  }
669
668
  };
@@ -979,6 +978,49 @@ function setupTimelineRPC({ nuxt }) {
979
978
  };
980
979
  }
981
980
 
981
+ const SEND_DELAY = 5e3;
982
+ function throttle(fn, delay) {
983
+ let timer;
984
+ return () => {
985
+ if (!timer) {
986
+ timer = setTimeout(() => {
987
+ timer = void 0;
988
+ fn();
989
+ }, delay);
990
+ }
991
+ };
992
+ }
993
+ function setupTelemetryRPC({ nuxt, options }) {
994
+ let telemetry;
995
+ if (options.telemetry !== false) {
996
+ nuxt.hook("telemetry:setup", (t) => {
997
+ telemetry = t;
998
+ t.eventFactories.devtools = (_, payload) => {
999
+ return {
1000
+ name: "devtools",
1001
+ version,
1002
+ ...payload
1003
+ };
1004
+ };
1005
+ t.createEvent("devtools", { event: "enabled" });
1006
+ });
1007
+ }
1008
+ const throttledSend = throttle(() => {
1009
+ telemetry?.sendEvents();
1010
+ }, SEND_DELAY);
1011
+ return {
1012
+ telemetryEvent(payload, immediate = false) {
1013
+ if (!telemetry)
1014
+ return;
1015
+ telemetry.createEvent("devtools", payload);
1016
+ if (immediate)
1017
+ telemetry.sendEvents();
1018
+ else
1019
+ throttledSend();
1020
+ }
1021
+ };
1022
+ }
1023
+
982
1024
  function setupRPC(nuxt, options) {
983
1025
  const serverFunctions = {};
984
1026
  const extendedRpcMap = /* @__PURE__ */ new Map();
@@ -1041,7 +1083,8 @@ function setupRPC(nuxt, options) {
1041
1083
  ...setupServerRoutesRPC(ctx),
1042
1084
  ...setupAnalyzeBuildRPC(ctx),
1043
1085
  ...setupOptionsRPC(ctx),
1044
- ...setupTimelineRPC(ctx)
1086
+ ...setupTimelineRPC(ctx),
1087
+ ...setupTelemetryRPC(ctx)
1045
1088
  });
1046
1089
  const wsClients = /* @__PURE__ */ new Set();
1047
1090
  const vitePlugin = {
@@ -1195,7 +1238,8 @@ window.__NUXT_DEVTOOLS_TIME_METRIC__.appInit = Date.now()
1195
1238
  packagePath: packageDir,
1196
1239
  isGlobalInstall: isGlobalInstall()
1197
1240
  });
1198
- logger.success(`Nuxt DevTools is enabled ${c.dim(`v${version}`)}${isGlobalInstall() ? c.dim("[global]") : ""} ${c.yellow("(experimental)")}`);
1241
+ const isMac = os.platform() === "darwin";
1242
+ logger.success(`Nuxt DevTools enabled ${colors.dim(`(v${version})`)}, press \`Shift\` + \`${isMac ? "Option" : "Alt"}\` + \`D\` in app to open ${isGlobalInstall() ? colors.dim("[global]") : ""} ${colors.yellow("(experimental)")}`);
1199
1243
  }
1200
1244
 
1201
1245
  const moduleMain = {
@@ -12,10 +12,10 @@ import { L as LOG_PREFIX } from './module-main.mjs';
12
12
  import 'pathe';
13
13
  import 'vite';
14
14
  import 'sirv';
15
- import 'picocolors';
15
+ import 'consola/utils';
16
16
  import 'birpc';
17
17
  import 'flatted';
18
- import '../shared/devtools.4169e037.mjs';
18
+ import '../shared/devtools.18eefaee.mjs';
19
19
  import '../dirs.mjs';
20
20
  import 'node:url';
21
21
  import 'is-installed-globally';
@@ -31,7 +31,6 @@ import 'pkg-types';
31
31
  import 'semver';
32
32
  import 'local-pkg';
33
33
  import 'unimport';
34
- import 'boxen';
35
34
  import 'simple-git';
36
35
  import 'ohash';
37
36
 
@@ -2,9 +2,9 @@
2
2
  <html >
3
3
  <head><meta charset="utf-8">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
- <link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.79095383.css">
6
- <link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.05b33d7f.js">
7
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.b5454355.js">
5
+ <link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.38bf3bdf.css">
6
+ <link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.54b63325.js">
7
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.5e3c6999.js">
8
8
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/onig.0c57a370.js">
9
9
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-dark.ab479e3d.js">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-light.696edcfd.js">
@@ -18,24 +18,24 @@
18
18
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vue-html.0806679f.js">
19
19
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/diff.22e0b108.js">
20
20
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/shellscript.9d056341.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.30ac8af4.js">
22
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.03097bfb.js">
23
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.2b3e8ddc.js">
21
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.c4c43b40.js">
22
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.478da439.js">
23
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.cfaeed76.js">
24
24
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js">
25
25
  <link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.6994516c.css">
26
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.f84a2081.js">
27
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.9cac29ef.js">
28
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.67a4fdb0.js">
29
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.b3117df4.js">
30
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.01eb6d1c.js">
31
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.c59e50d6.js">
32
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DrawerRight.vue.b9dc765f.js">
33
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.68d64d4a.js">
26
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.6de1f238.js">
27
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.e3495019.js">
28
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.21018268.js">
29
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.d756d40c.js">
30
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.84865d5b.js">
31
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.d926285a.js">
32
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DrawerRight.vue.5bde5a0b.js">
33
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.dedd4a37.js">
34
34
  <link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.82ac0ec5.css">
35
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.5c6d1cc1.js">
35
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.087131b3.js">
36
36
  <link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.ff959f66.css">
37
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.b5b10475.js">
38
- <script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.05b33d7f.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
37
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.d1c41037.js">
38
+ <script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.54b63325.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
39
39
  </script></head>
40
40
  <body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
41
41
  <script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
@@ -2,9 +2,9 @@
2
2
  <html >
3
3
  <head><meta charset="utf-8">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
- <link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.79095383.css">
6
- <link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.05b33d7f.js">
7
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.b5454355.js">
5
+ <link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.38bf3bdf.css">
6
+ <link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.54b63325.js">
7
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.5e3c6999.js">
8
8
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/onig.0c57a370.js">
9
9
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-dark.ab479e3d.js">
10
10
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-light.696edcfd.js">
@@ -18,24 +18,24 @@
18
18
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vue-html.0806679f.js">
19
19
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/diff.22e0b108.js">
20
20
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/shellscript.9d056341.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.30ac8af4.js">
22
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.03097bfb.js">
23
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.2b3e8ddc.js">
21
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.c4c43b40.js">
22
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.478da439.js">
23
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.cfaeed76.js">
24
24
  <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js">
25
25
  <link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.6994516c.css">
26
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.f84a2081.js">
27
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.9cac29ef.js">
28
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.67a4fdb0.js">
29
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.b3117df4.js">
30
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.01eb6d1c.js">
31
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.c59e50d6.js">
32
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DrawerRight.vue.b9dc765f.js">
33
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.68d64d4a.js">
26
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.6de1f238.js">
27
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.e3495019.js">
28
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.21018268.js">
29
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.d756d40c.js">
30
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.84865d5b.js">
31
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.d926285a.js">
32
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DrawerRight.vue.5bde5a0b.js">
33
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.dedd4a37.js">
34
34
  <link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.82ac0ec5.css">
35
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.5c6d1cc1.js">
35
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.087131b3.js">
36
36
  <link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.ff959f66.css">
37
- <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.b5b10475.js">
38
- <script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.05b33d7f.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
37
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.d1c41037.js">
38
+ <script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.54b63325.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
39
39
  </script></head>
40
40
  <body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
41
41
  <script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
@@ -1 +1 @@
1
- import{q as n,o,m as s,a5 as t}from"./entry.05b33d7f.js";const c={},r={class:"mx-0.5 select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function a(e,_){return o(),s("span",r,[t(e.$slots,"default")])}const l=n(c,[["render",a]]);export{l as _};
1
+ import{q as n,o,m as s,a6 as t}from"./entry.54b63325.js";const c={},r={class:"mx-0.5 select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function a(e,_){return o(),s("span",r,[t(e.$slots,"default")])}const l=n(c,[["render",a]]);export{l as _};
@@ -1,3 +1,3 @@
1
- import{_ as R}from"./NCodeBlock.vue.01eb6d1c.js";import{d as _,a as N,r as F,ai as W,bu as A,o as B,h as J,f as V}from"./entry.05b33d7f.js";function m(){}m.prototype={diff:function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=o.callback;typeof o=="function"&&(f=o,o={}),this.options=o;var r=this;function l(c){return f?(setTimeout(function(){f(void 0,c)},0),!0):c}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var i=t.length,u=e.length,s=1,d=i+u;o.maxEditLength&&(d=Math.min(d,o.maxEditLength));var a=[{newPos:-1,components:[]}],p=this.extractCommon(a[0],t,e,0);if(a[0].newPos+1>=i&&p+1>=u)return l([{value:this.join(t),count:t.length}]);function v(){for(var c=-1*s;c<=s;c+=2){var h=void 0,w=a[c-1],C=a[c+1],g=(C?C.newPos:0)-c;w&&(a[c-1]=void 0);var q=w&&w.newPos+1<i,$=C&&0<=g&&g<u;if(!q&&!$){a[c]=void 0;continue}if(!q||$&&w.newPos<C.newPos?(h=Z(C),r.pushComponent(h.components,void 0,!0)):(h=w,h.newPos++,r.pushComponent(h.components,!0,void 0)),g=r.extractCommon(h,t,e,c),h.newPos+1>=i&&g+1>=u)return l(M(r,h.components,t,e,r.useLongestToken));a[c]=h}s++}if(f)(function c(){setTimeout(function(){if(s>d)return f();v()||c()},0)})();else for(;s<=d;){var y=v();if(y)return y}},pushComponent:function(e,t,o){var f=e[e.length-1];f&&f.added===t&&f.removed===o?e[e.length-1]={count:f.count+1,added:t,removed:o}:e.push({count:1,added:t,removed:o})},extractCommon:function(e,t,o,f){for(var r=t.length,l=o.length,i=e.newPos,u=i-f,s=0;i+1<r&&u+1<l&&this.equals(t[i+1],o[u+1]);)i++,u++,s++;return s&&e.components.push({count:s}),e.newPos=i,u},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],o=0;o<e.length;o++)e[o]&&t.push(e[o]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function M(n,e,t,o,f){for(var r=0,l=e.length,i=0,u=0;r<l;r++){var s=e[r];if(s.removed){if(s.value=n.join(o.slice(u,u+s.count)),u+=s.count,r&&e[r-1].added){var a=e[r-1];e[r-1]=e[r],e[r]=a}}else{if(!s.added&&f){var d=t.slice(i,i+s.count);d=d.map(function(v,y){var c=o[u+y];return c.length>v.length?c:v}),s.value=n.join(d)}else s.value=n.join(t.slice(i,i+s.count));i+=s.count,s.added||(u+=s.count)}}var p=e[l-1];return l>1&&typeof p.value=="string"&&(p.added||p.removed)&&n.equals("",p.value)&&(e[l-2].value+=p.value,e.pop()),e}function Z(n){return{newPos:n.newPos,components:n.components.slice(0)}}var I=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,T=/\S/,O=new m;O.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!T.test(n)&&!T.test(e)};O.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<e.length-1;t++)!e[t+1]&&e[t+2]&&I.test(e[t])&&I.test(e[t+2])&&(e[t]+=e[t+2],e.splice(t+1,2),t--);return e};var D=new m;D.tokenize=function(n){var e=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var o=0;o<t.length;o++){var f=t[o];o%2&&!this.options.newlineIsToken?e[e.length-1]+=f:(this.options.ignoreWhitespace&&(f=f.trim()),e.push(f))}return e};function k(n,e,t){return D.diff(n,e,t)}var G=new m;G.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var H=new m;H.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function z(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z=function(e){return typeof e}:z=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(n)}var Q=Object.prototype.toString,L=new m;L.useLongestToken=!0;L.tokenize=D.tokenize;L.castInput=function(n){var e=this.options,t=e.undefinedReplacement,o=e.stringifyReplacer,f=o===void 0?function(r,l){return typeof l>"u"?t:l}:o;return typeof n=="string"?n:JSON.stringify(E(n,null,null,f),f," ")};L.equals=function(n,e){return m.prototype.equals.call(L,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function E(n,e,t,o,f){e=e||[],t=t||[],o&&(n=o(f,n));var r;for(r=0;r<e.length;r+=1)if(e[r]===n)return t[r];var l;if(Q.call(n)==="[object Array]"){for(e.push(n),l=new Array(n.length),t.push(l),r=0;r<n.length;r+=1)l[r]=E(n[r],e,t,o,f);return e.pop(),t.pop(),l}if(n&&n.toJSON&&(n=n.toJSON()),z(n)==="object"&&n!==null){e.push(n),l={},t.push(l);var i=[],u;for(u in n)n.hasOwnProperty(u)&&i.push(u);for(i.sort(),r=0;r<i.length;r+=1)u=i[r],l[u]=E(n[u],e,t,o,u);e.pop(),t.pop()}else l=n;return l}var x=new m;x.tokenize=function(n){return n.slice()};x.join=x.removeEmpty=function(n){return n};const Y=_({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function t(i,u){const s=k(i.trim(),u.trim()),d=[],a=[],p=[];for(const v of s){const y=v.value.trimEnd().split(`
1
+ import{_ as R}from"./NCodeBlock.vue.84865d5b.js";import{d as _,a as N,r as F,aj as W,bv as A,o as B,h as J,f as V}from"./entry.54b63325.js";function m(){}m.prototype={diff:function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=o.callback;typeof o=="function"&&(f=o,o={}),this.options=o;var r=this;function l(c){return f?(setTimeout(function(){f(void 0,c)},0),!0):c}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var i=t.length,s=e.length,u=1,d=i+s;o.maxEditLength&&(d=Math.min(d,o.maxEditLength));var a=[{newPos:-1,components:[]}],p=this.extractCommon(a[0],t,e,0);if(a[0].newPos+1>=i&&p+1>=s)return l([{value:this.join(t),count:t.length}]);function v(){for(var c=-1*u;c<=u;c+=2){var h=void 0,w=a[c-1],C=a[c+1],g=(C?C.newPos:0)-c;w&&(a[c-1]=void 0);var q=w&&w.newPos+1<i,$=C&&0<=g&&g<s;if(!q&&!$){a[c]=void 0;continue}if(!q||$&&w.newPos<C.newPos?(h=Z(C),r.pushComponent(h.components,void 0,!0)):(h=w,h.newPos++,r.pushComponent(h.components,!0,void 0)),g=r.extractCommon(h,t,e,c),h.newPos+1>=i&&g+1>=s)return l(M(r,h.components,t,e,r.useLongestToken));a[c]=h}u++}if(f)(function c(){setTimeout(function(){if(u>d)return f();v()||c()},0)})();else for(;u<=d;){var y=v();if(y)return y}},pushComponent:function(e,t,o){var f=e[e.length-1];f&&f.added===t&&f.removed===o?e[e.length-1]={count:f.count+1,added:t,removed:o}:e.push({count:1,added:t,removed:o})},extractCommon:function(e,t,o,f){for(var r=t.length,l=o.length,i=e.newPos,s=i-f,u=0;i+1<r&&s+1<l&&this.equals(t[i+1],o[s+1]);)i++,s++,u++;return u&&e.components.push({count:u}),e.newPos=i,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],o=0;o<e.length;o++)e[o]&&t.push(e[o]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function M(n,e,t,o,f){for(var r=0,l=e.length,i=0,s=0;r<l;r++){var u=e[r];if(u.removed){if(u.value=n.join(o.slice(s,s+u.count)),s+=u.count,r&&e[r-1].added){var a=e[r-1];e[r-1]=e[r],e[r]=a}}else{if(!u.added&&f){var d=t.slice(i,i+u.count);d=d.map(function(v,y){var c=o[s+y];return c.length>v.length?c:v}),u.value=n.join(d)}else u.value=n.join(t.slice(i,i+u.count));i+=u.count,u.added||(s+=u.count)}}var p=e[l-1];return l>1&&typeof p.value=="string"&&(p.added||p.removed)&&n.equals("",p.value)&&(e[l-2].value+=p.value,e.pop()),e}function Z(n){return{newPos:n.newPos,components:n.components.slice(0)}}var I=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,T=/\S/,O=new m;O.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!T.test(n)&&!T.test(e)};O.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<e.length-1;t++)!e[t+1]&&e[t+2]&&I.test(e[t])&&I.test(e[t+2])&&(e[t]+=e[t+2],e.splice(t+1,2),t--);return e};var D=new m;D.tokenize=function(n){var e=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var o=0;o<t.length;o++){var f=t[o];o%2&&!this.options.newlineIsToken?e[e.length-1]+=f:(this.options.ignoreWhitespace&&(f=f.trim()),e.push(f))}return e};function k(n,e,t){return D.diff(n,e,t)}var G=new m;G.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var H=new m;H.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function z(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z=function(e){return typeof e}:z=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(n)}var Q=Object.prototype.toString,L=new m;L.useLongestToken=!0;L.tokenize=D.tokenize;L.castInput=function(n){var e=this.options,t=e.undefinedReplacement,o=e.stringifyReplacer,f=o===void 0?function(r,l){return typeof l>"u"?t:l}:o;return typeof n=="string"?n:JSON.stringify(E(n,null,null,f),f," ")};L.equals=function(n,e){return m.prototype.equals.call(L,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function E(n,e,t,o,f){e=e||[],t=t||[],o&&(n=o(f,n));var r;for(r=0;r<e.length;r+=1)if(e[r]===n)return t[r];var l;if(Q.call(n)==="[object Array]"){for(e.push(n),l=new Array(n.length),t.push(l),r=0;r<n.length;r+=1)l[r]=E(n[r],e,t,o,f);return e.pop(),t.pop(),l}if(n&&n.toJSON&&(n=n.toJSON()),z(n)==="object"&&n!==null){e.push(n),l={},t.push(l);var i=[],s;for(s in n)n.hasOwnProperty(s)&&i.push(s);for(i.sort(),r=0;r<i.length;r+=1)s=i[r],l[s]=E(n[s],e,t,o,s);e.pop(),t.pop()}else l=n;return l}var x=new m;x.tokenize=function(n){return n.slice()};x.join=x.removeEmpty=function(n){return n};const Y=_({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function t(i,s){const u=k(i.trim(),s.trim()),d=[],a=[],p=[];for(const v of u){const y=v.value.trimEnd().split(`
2
2
  `);for(const c of y)v.added?(d.push(p.length),p.push(c)):(v.removed&&a.push(p.length),p.push(c))}return{added:d,removed:a,result:p.join(`
3
- `)}}const o=N(()=>t(e.from,e.to));function f(i){let u=0;return i.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,s=>(u++,o.value.added.includes(u-1)?'class="line line-added"':o.value.removed.includes(u-1)?'class="line line-removed"':s))}const r=F();W(l);function l(){const i=A(r);i&&i.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(i,u)=>{const s=R;return B(),J(s,{ref_key:"elRef",ref:r,code:V(o).result,lang:i.lang,"transform-rendered":f,onLoaded:l},null,8,["code","lang"])}}});export{Y as _};
3
+ `)}}const o=N(()=>t(e.from,e.to));function f(i){let s=0;return i.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,u=>(s++,o.value.added.includes(s-1)?'class="line line-added"':o.value.removed.includes(s-1)?'class="line line-removed"':u))}const r=F();W(l);function l(){const i=A(r);i&&i.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(i,s)=>{const u=R;return B(),J(u,{ref_key:"elRef",ref:r,code:V(o).result,lang:i.lang,"transform-rendered":f,onLoaded:l},null,8,["code","lang"])}}});export{Y as _};
@@ -0,0 +1 @@
1
+ import{_ as I}from"./NMarkdown.vue.d2063d22.js";import{d as V,e as D,a7 as U,a as c,am as $,o as s,h as r,j as i,k as o,p as l,i as E,f as e,v as u,m as _,F as v,t as h,n as j,G as F,E as S}from"./entry.54b63325.js";import{_ as z}from"./FilepathItem.vue.7bd675c6.js";import{C as k}from"./constants.4e5eba24.js";const G={"hover:text-primary":""},L={key:0,"text-primary":""},M={"max-w-100":""},O={px4:"",py3:"","text-sm":""},T={flex:"~ gap2",n:"primary xs"},W={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},q={"text-sm":""},A=o("span",{op50:""},"It has been referenced ",-1),H={"text-primary":""},J=o("span",{op50:""}," times by:",-1),K={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},P={key:1,"text-sm":"",op50:""},Z=V({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(x){const t=x,b=D(),g=U(),m=c(()=>t.item.as||t.item.name),n=c(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),C=c(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(a=>!a.endsWith("?macro=true"))),y=c(()=>{if(t.item.meta?.docsUrl)return t.item.meta.docsUrl;if(["nuxt","#app","nuxt3"].includes(t.item.from))return k.nuxt[t.item.name];if(t.item.from==="vue")return k.vue[t.item.name]});return(a,p)=>{const w=I,f=S,N=z,B=$("VDropdown");return s(),r(B,{disabled:!t.metadata},{popper:i(()=>[o("div",M,[o("div",O,[a.item.meta?.description?(s(),r(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:a.item.meta.description},null,8,["markdown"])):l("",!0),o("div",T,[E(f,{icon:"carbon-copy",onClick:p[0]||(p[0]=d=>e(b)(e(m)))},{default:i(()=>[u(" Copy ")]),_:1}),a.filepath?(s(),r(f,{key:0,icon:"carbon-code",onClick:p[1]||(p[1]=d=>a.filepath&&e(g)(a.filepath))},{default:i(()=>[u(" Source ")]),_:1})):l("",!0),e(y)?(s(),r(f,{key:1,icon:"carbon-catalog",to:e(y),target:"_blank"},{default:i(()=>[u(" Docs ")]),_:1},8,["to"])):l("",!0)])]),o("div",W,[e(n)?(s(),_(v,{key:0},[o("div",q,[A,o("strong",H,h(e(n)),1),J]),o("div",K,[(s(!0),_(v,null,j(e(C),d=>(s(),r(N,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),_("div",P," Not in use via auto import. "))])])]),default:i(()=>[o("button",G,[o("code",{rounded:"","font-mono":"",class:F([a.metadata&&!e(n)?"op30 hover:op100":"",a.classes])},[u(h(e(m))+" ",1),e(n)&&a.counter?(s(),_("sup",L,"x"+h(e(n)),1)):l("",!0)],2)])]),_:1},8,["disabled"])}}});export{Z as _};
@@ -1 +1 @@
1
- import{d as c,u as s,a9 as r,H as i,o as p,h as _,_ as u}from"./entry.05b33d7f.js";const h=c({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(m){const t=s();return(n,e)=>{const o=u,a=r("tooltip");return i((p(),_(o,{title:"Generate Data Schema",icon:"carbon:container-services",onClick:e[0]||(e[0]=l=>t.value=n.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{h as _};
1
+ import{d as c,u as s,aa as r,I as i,o as p,h as _,_ as u}from"./entry.54b63325.js";const h=c({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(m){const t=s();return(n,e)=>{const o=u,a=r("tooltip");return i((p(),_(o,{title:"Generate Data Schema",icon:"carbon:container-services",onClick:e[0]||(e[0]=l=>t.value=n.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{h as _};