@nuxt/devtools 1.3.1 → 1.3.3

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 (75) hide show
  1. package/dist/chunks/module-main.mjs +1 -1
  2. package/dist/client/200.html +16 -16
  3. package/dist/client/404.html +16 -16
  4. package/dist/client/_nuxt/{DCvec3a_.js → B-raFxqM.js} +1 -1
  5. package/dist/client/_nuxt/{CDjZ2Pwm.js → B3Qmg_qx.js} +1 -1
  6. package/dist/client/_nuxt/{DRzmYdLW.js → B4UVI4YI.js} +1 -1
  7. package/dist/client/_nuxt/{BEabNaD3.js → B7GIg3G6.js} +1 -1
  8. package/dist/client/_nuxt/{DgR63EN_.js → B8I-AuTp.js} +1 -1
  9. package/dist/client/_nuxt/{BcobmRlA.js → BC70P7_F.js} +1 -1
  10. package/dist/client/_nuxt/{BYVFCOjE.js → BCmHY4gl.js} +1 -1
  11. package/dist/client/_nuxt/{BNIC4eZE.js → BIZE-RmO.js} +1 -1
  12. package/dist/client/_nuxt/{LKwhzCVp.js → BJ6YdImB.js} +1 -1
  13. package/dist/client/_nuxt/{Cdv1FpqM.js → BMFk7jIo.js} +1 -1
  14. package/dist/client/_nuxt/{66lAmVWa.js → BQJhJYMu.js} +1 -1
  15. package/dist/client/_nuxt/{BbqA4Ggc.js → BQNSMSKH.js} +1 -1
  16. package/dist/client/_nuxt/{f1qyuWhx.js → BQwqZtdq.js} +1 -1
  17. package/dist/client/_nuxt/{JkOP3KoO.js → BUsJdU1D.js} +1 -1
  18. package/dist/client/_nuxt/{BNSBUDhB.js → BVv9Eso3.js} +1 -1
  19. package/dist/client/_nuxt/{BOBmlKb6.js → B_TJJefU.js} +1 -1
  20. package/dist/client/_nuxt/{5Viy9mJZ.js → B_kufNum.js} +1 -1
  21. package/dist/client/_nuxt/{J3djixjQ.js → BdPp7ki7.js} +2 -2
  22. package/dist/client/_nuxt/{DnhEYZMs.js → BkHeZ-Kl.js} +1 -1
  23. package/dist/client/_nuxt/{BBiSxoA1.js → BmLFD5M3.js} +1 -1
  24. package/dist/client/_nuxt/{B_Ym5JKn.js → C6Ei2A0L.js} +1 -1
  25. package/dist/client/_nuxt/{DRuHuqMZ.js → CCmycU7E.js} +1 -1
  26. package/dist/client/_nuxt/{DE_Uwlru.js → CG2u9oVp.js} +1 -1
  27. package/dist/client/_nuxt/{Bx439kud.js → CJA0Nzuy.js} +1 -1
  28. package/dist/client/_nuxt/{DCzXkWpZ.js → CJh8tcLd.js} +1 -1
  29. package/dist/client/_nuxt/{DdJKusQR.js → CNqbp7Gb.js} +1 -1
  30. package/dist/client/_nuxt/{Bs6Xt_hm.js → CPaWbrKR.js} +1 -1
  31. package/dist/client/_nuxt/{D4dWpejW.js → CSqTRDVQ.js} +1 -1
  32. package/dist/client/_nuxt/{BL23Bc6O.js → CY-72W8G.js} +1 -1
  33. package/dist/client/_nuxt/{BlKdmH9f.js → CY3rhNYA.js} +1 -1
  34. package/dist/client/_nuxt/{D0LPR03l.js → CaqiXFWz.js} +1 -1
  35. package/dist/client/_nuxt/{CgvvXsvn.js → Cf2y5AWw.js} +1 -1
  36. package/dist/client/_nuxt/{Br0oqAKP.js → Chcty9cC.js} +1 -1
  37. package/dist/client/_nuxt/{BkK_qJ34.js → CiJaujZp.js} +1 -1
  38. package/dist/client/_nuxt/{DQFmACZp.js → CicM_Tn6.js} +1 -1
  39. package/dist/client/_nuxt/{DO3F8Knp.js → Cj0TlqSt.js} +1 -1
  40. package/dist/client/_nuxt/{DjVyxknR.js → CwbK9Dp1.js} +1 -1
  41. package/dist/client/_nuxt/{BlDdoh7Z.js → CxjTqXJ3.js} +1 -1
  42. package/dist/client/_nuxt/{CgdhjF_I.js → D3UZejev.js} +1 -1
  43. package/dist/client/_nuxt/{Zl399FYQ.js → D67vQ_AH.js} +1 -1
  44. package/dist/client/_nuxt/{CQfzcXIu.js → D6s5UxPA.js} +1 -1
  45. package/dist/client/_nuxt/{CLKMZBSj.js → D9QwXXm-.js} +1 -1
  46. package/dist/client/_nuxt/{DW3jphl9.js → DHStGI0s.js} +1 -1
  47. package/dist/client/_nuxt/{DTnMHt2b.js → DNKTLI-X.js} +1 -1
  48. package/dist/client/_nuxt/{CGdFtN3I.js → DNcopq6z.js} +1 -1
  49. package/dist/client/_nuxt/{B4a1LB7w.js → DdXfWFmw.js} +1 -1
  50. package/dist/client/_nuxt/{B1WwrPQO.js → Diil_3yv.js} +1 -1
  51. package/dist/client/_nuxt/{BWnGocWo.js → Dja8TLy7.js} +1 -1
  52. package/dist/client/_nuxt/{B7vUcbNk.js → DkWzd13i.js} +1 -1
  53. package/dist/client/_nuxt/{CiwDa1gT.js → DrlyhbnE.js} +1 -1
  54. package/dist/client/_nuxt/{2rHQ-89_.js → DtbS56cH.js} +1 -1
  55. package/dist/client/_nuxt/{-qWogbxp.js → Du-HkQgI.js} +1 -1
  56. package/dist/client/_nuxt/{5rat9AfN.js → Rgd--cyG.js} +1 -1
  57. package/dist/client/_nuxt/{tYBohD88.js → VjEYhvFP.js} +1 -1
  58. package/dist/client/_nuxt/builds/latest.json +1 -1
  59. package/dist/client/_nuxt/builds/meta/18b2ce8f-3b8c-41e7-8fa5-448213ee4a24.json +1 -0
  60. package/dist/client/_nuxt/{HBr8xMzr.js → d85UEzaq.js} +1 -1
  61. package/dist/client/_nuxt/{DQS-rzez.js → d9hkAmu-.js} +1 -1
  62. package/dist/client/_nuxt/entry.C09IdXcP.css +1 -0
  63. package/dist/client/_nuxt/{Dw5Tt5gJ.js → hV8zgwZN.js} +1 -1
  64. package/dist/client/_nuxt/{CSxKs2xg.js → p0yxMpsq.js} +5 -5
  65. package/dist/client/_nuxt/{K0tfU50F.js → pO9n-Epq.js} +1 -1
  66. package/dist/client/_nuxt/{C0doa8lg.js → szFYwhVn.js} +1 -1
  67. package/dist/client/_nuxt/{CLVJ1qFH.js → wH9tLl3L.js} +1 -1
  68. package/dist/client/_nuxt/{B5LBktAa.js → yolNcZdz.js} +1 -1
  69. package/dist/client/index.html +16 -16
  70. package/dist/module.json +1 -1
  71. package/dist/runtime/plugins/view/FrameBox.vue +8 -8
  72. package/package.json +7 -7
  73. package/dist/client/_nuxt/builds/meta/24abe175-04a3-492b-88f5-fff7ea90b9c1.json +0 -1
  74. package/dist/client/_nuxt/entry.CyP5HdOH.css +0 -1
  75. package/dist/client/_nuxt/index.BeOv1PgR.css +0 -1
@@ -31,7 +31,7 @@ import { setupHooksDebug } from '../runtime/shared/hooks.mjs';
31
31
  import Git from 'simple-git';
32
32
  import { runtimeDir, clientDir, packageDir, isGlobalInstall } from '../dirs.mjs';
33
33
 
34
- const version = "1.3.1";
34
+ const version = "1.3.3";
35
35
 
36
36
  function getHomeDir() {
37
37
  return process.env.XDG_CONFIG_HOME || homedir();
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html><html><head><meta charset="utf-8">
2
2
  <meta name="viewport" content="width=device-width, initial-scale=1">
3
- <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.CyP5HdOH.css">
4
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CSxKs2xg.js">
3
+ <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.C09IdXcP.css">
4
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/p0yxMpsq.js">
5
5
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Blr6EMNg.js">
6
6
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/V_y36BGi.js">
7
7
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BGq4KZyx.js">
@@ -16,23 +16,23 @@
16
16
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DvyTQcux.js">
17
17
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZfs-ost.js">
18
18
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CsTmP73Z.js">
19
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DnhEYZMs.js">
20
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CLKMZBSj.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/LKwhzCVp.js">
19
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BkHeZ-Kl.js">
20
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D9QwXXm-.js">
21
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BJ6YdImB.js">
22
22
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D5r6TWiw.js">
23
23
  <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NCodeBlock.Bcfh0aRP.css">
24
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DgR63EN_.js">
25
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CgvvXsvn.js">
26
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BL23Bc6O.js">
27
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Zl399FYQ.js">
28
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DjVyxknR.js">
29
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/f1qyuWhx.js">
30
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/-qWogbxp.js">
31
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D4dWpejW.js">
24
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/B8I-AuTp.js">
25
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Cf2y5AWw.js">
26
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CY-72W8G.js">
27
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D67vQ_AH.js">
28
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CwbK9Dp1.js">
29
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BQwqZtdq.js">
30
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Du-HkQgI.js">
31
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CSqTRDVQ.js">
32
32
  <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.ClUqCsUG.css">
33
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C0doa8lg.js">
33
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/szFYwhVn.js">
34
34
  <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.Xj6Xfe4d.css">
35
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/66lAmVWa.js">
36
- <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/CSxKs2xg.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(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 m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
35
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BQJhJYMu.js">
36
+ <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/p0yxMpsq.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(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 m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
37
37
  </script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
38
38
  <script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html><html><head><meta charset="utf-8">
2
2
  <meta name="viewport" content="width=device-width, initial-scale=1">
3
- <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.CyP5HdOH.css">
4
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CSxKs2xg.js">
3
+ <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.C09IdXcP.css">
4
+ <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/p0yxMpsq.js">
5
5
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Blr6EMNg.js">
6
6
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/V_y36BGi.js">
7
7
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BGq4KZyx.js">
@@ -16,23 +16,23 @@
16
16
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DvyTQcux.js">
17
17
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BZfs-ost.js">
18
18
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CsTmP73Z.js">
19
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DnhEYZMs.js">
20
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CLKMZBSj.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/LKwhzCVp.js">
19
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BkHeZ-Kl.js">
20
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D9QwXXm-.js">
21
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BJ6YdImB.js">
22
22
  <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D5r6TWiw.js">
23
23
  <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/NCodeBlock.Bcfh0aRP.css">
24
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DgR63EN_.js">
25
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CgvvXsvn.js">
26
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BL23Bc6O.js">
27
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Zl399FYQ.js">
28
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/DjVyxknR.js">
29
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/f1qyuWhx.js">
30
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/-qWogbxp.js">
31
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D4dWpejW.js">
24
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/B8I-AuTp.js">
25
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Cf2y5AWw.js">
26
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CY-72W8G.js">
27
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/D67vQ_AH.js">
28
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CwbK9Dp1.js">
29
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BQwqZtdq.js">
30
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/Du-HkQgI.js">
31
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/CSqTRDVQ.js">
32
32
  <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.ClUqCsUG.css">
33
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/C0doa8lg.js">
33
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/szFYwhVn.js">
34
34
  <link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.Xj6Xfe4d.css">
35
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/66lAmVWa.js">
36
- <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/CSxKs2xg.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(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 m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
35
+ <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/BQJhJYMu.js">
36
+ <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/p0yxMpsq.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(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 m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
37
37
  </script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
38
38
  <script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -1,4 +1,4 @@
1
- import{d as B,a as w,aJ as W,o as t,m as c,k as s,a9 as T,f as l,t as k,ad as O,F as f,n as E,h as y,r as C,w as Y,aA as q,a1 as j,bV as U,p as x,i as m,G as z,q as Z,e as K,as as P,j as v,aw as X,v as F,_ as G,aL as Q,al as ee,b1 as se,bW as te,ab as ne,N as oe,ac as ae,A as le,L as R,a5 as ie,Z as re}from"./CSxKs2xg.js";import{_ as M}from"./CgdhjF_I.js";import{_ as H}from"./B7vUcbNk.js";import{_ as ce}from"./DO3F8Knp.js";import{e as pe}from"./CDjZ2Pwm.js";import{_ as de}from"./DTnMHt2b.js";import{_ as ue}from"./-qWogbxp.js";import{_ as me}from"./5Viy9mJZ.js";import{_ as ke}from"./B_Ym5JKn.js";import{_ as he}from"./5rat9AfN.js";import{_ as _e}from"./2rHQ-89_.js";import"./BcobmRlA.js";import"./f1qyuWhx.js";import"./Bs6Xt_hm.js";import"./BcJws1i5.js";import"./DjVyxknR.js";const fe=B({__name:"TimelineItemFunction",props:{item:{}},setup(_){const d=_,p=w(()=>W(d.item.name,50,60,"_op_")),e=w(()=>p.value.replace(/_op_/,"1")),o=w(()=>W(d.item.name,50,40)),i=w(()=>p.value.replace(/_op_/,"0.2"));return(n,a)=>(t(),c("button",{class:"group",style:T({color:l(e),borderLeft:`2px solid ${l(e)}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[s("div",{style:T({backgroundColor:l(i)}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),s("div",{style:T({color:l(o),"--c":l(e)}),border:"r-2 t-2 y-2 transparent","min-w-max":"",px1:"","text-left":"","group-hover":"border-$c"},k(n.item.name),5)],4))}}),ye={relative:"","h-full":""},ve={absolute:"","left-2":"","top-2.3em":"","text-xs":"",op50:""},be=B({__name:"TimelineSegment",props:{segment:{}},emits:["select"],setup(_,{emit:d}){const p=_,e=d,o=O(()=>p.segment.start,{updateInterval:1e3,showSecond:!0,controls:!1,messages:{justNow:"",past:i=>i,future:i=>i,invalid:"-",second:i=>i?`${i}s`:"",minute:i=>`${i}m`,hour:i=>`${i}h`,week:i=>`${i}w`,day:i=>`${i}d`,month:i=>`${i}mo`,year:i=>`${i}y`}});return(i,n)=>{const a=fe;return t(),c("div",ye,[s("button",{absolute:"","left-0":"","right-0":"","top-0":"","bg-green:5":"",px2:"",py1:"","text-left":"","text-xs":"","text-green6":"","font-mono":"",onClick:n[0]||(n[0]=r=>i.segment.route?e("select",i.segment.route):void 0)},k(i.segment.route?.event.to),1),s("div",ve,k(l(o))+" ago ",1),s("div",null,[(t(!0),c(f,null,E(i.segment.functions,(r,u)=>(t(),y(a,{key:u,item:r.event,style:T({position:"absolute",minWidth:`${r.relativeWidth*100}%`,maxWidth:`${r.relativeWidth*100}%`,top:`${4+r.layer*1.6}em`,left:`${r.relativeStart*100}%`}),onClick:h=>e("select",r)},null,8,["item","style","onClick"]))),128))])])}}}),ge=3e3,xe=50;function $e(_){const d=[];let p={start:0,end:0,events:[],functions:[],duration:0};for(const e of _){const o=e.end||e.start;(e.start-p.end>ge||e.type==="route")&&(p={start:e.start,end:o,events:[],functions:[],duration:0},d.push(p)),p.events.push(e),p.end=o+xe}return d.forEach((e,o)=>{const i=e.end-e.start,n=[];e.duration=i,e.previousGap=o>0?e.start-d[o-1].end:0,e.events.forEach(a=>{const r=a.end||a.start;let u=0;a.type!=="route"&&(u=n.findIndex($=>$<=a.start),u===-1?(u=n.length,n.push(r+1e3)):n[u]=r+1e3);const h={event:a,segment:e,relativeStart:(a.start-e.start)/i,relativeWidth:(r-a.start)/i,layer:u};a.type==="function"?e.functions.push(h):e.route=h})}),d}const Ae={relative:""},De={key:0,border:"x base","h-full":"","flex-inline":"","bg-true-gray-1":"",py15:"","text-xs":"","write-vertical-left":"",op50:"","dark:bg-true-gray-9":""},Ce=B({__name:"TimelineTable",props:{data:{}},emits:["select"],setup(_,{emit:d}){const p=_,e=d,o=C(),i=C(),n=C(),a=C(),r=C(!0),u=C(1.5),h=w(()=>$e(p.data.events)),$=w(()=>(p.data.events.length,o.value?.scrollWidth||window.innerWidth));function A(){a.value&&(a.value.style.width=`${$.value}px`)}function S(){r.value&&o.value&&(o.value.scrollTo({left:o.value.scrollWidth-o.value.clientWidth,behavior:"smooth"}),n.value.scrollTo({left:o.value.scrollWidth-o.value.clientWidth,behavior:"smooth"}))}return Y(()=>p.data.events.length,async()=>{await q(),A(),S()},{flush:"post"}),j(o,"scroll",()=>{n.value.scrollLeft!==o.value.scrollLeft&&(A(),n.value.scrollLeft=o.value.scrollLeft,r.value=o.value.scrollLeft>=o.value.scrollWidth-o.value.clientWidth)}),j(n,"scroll",()=>{n.value.scrollLeft!==o.value.scrollLeft&&(A(),o.value.scrollLeft=n.value.scrollLeft)}),j(o,"wheel",b=>{b.altKey?(u.value=U(u.value+b.deltaY/200,.5,3),A()):o.value.scrollLeft+=b.deltaY}),(b,L)=>{const D=M,V=be;return t(),c(f,null,[s("div",Ae,[s("div",{ref_key:"minimap",ref:i,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(t(!0),c(f,null,E(l(h),(g,N)=>(t(),c("div",{key:N,relative:"","h-full":"","flex-inline":"",style:T({width:`${Math.max(100,g.duration/10)/l($)*100}%`})},[(t(!0),c(f,null,E(g.functions,(I,J)=>(t(),c("div",{key:J,"h-3px":"",rounded:"",style:T({width:`max(${I.relativeWidth*100}%, 10px)`,position:"absolute",top:`${I.layer*4}px`,left:`${I.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in b?b.getHashColorFromString:l(W))(I.event.name,50,60)})},null,4))),128)),g.route?(t(),c("div",{key:0,absolute:"","top-0":"","h-full":"","w-px":"","border-l":"","border-green6":"",op10:"",style:T({left:`${g.route.relativeStart*100}%`})},null,4)):x("",!0)],4))),128))],512),s("div",{ref_key:"minimapScroller",ref:n,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[s("div",{ref_key:"minimapScrollerInner",ref:a,"h-1px":""},null,512)],512)]),s("div",{ref_key:"scroller",ref:o,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(t(!0),c(f,null,E(l(h),(g,N)=>(t(),c(f,{key:N},[g.previousGap&&g.previousGap>=200?(t(),c("div",De,[m(D,{op50:"",duration:g.previousGap,color:!1},null,8,["duration"])])):x("",!0),m(V,{"flex-inline":"","of-x-hidden":"","hover:of-x-visible":"","bg-base":"",class:z(N===l(h).length-1?"border-r border-base":""),segment:g,style:T({width:`${Math.max(50,g.duration/10)*l(u)}px`}),onSelect:L[0]||(L[0]=I=>e("select",I))},null,8,["class","segment","style"])],64))),128))],512)],64)}}}),Be=Z(Ce,[["__scopeId","data-v-27e8fb2d"]]),we={border:"t base",flex:"~ col","h-full":"","of-y-auto":"","text-sm":""},Te=["onClick"],Se=s("div",{"i-carbon-function":"",op50:""},null,-1),Ne={flex:"~","ml--1":"","font-mono":""},Fe=s("div",{op30:""}," ( ",-1),Ee={key:0,mr2:"",op30:""},Le={op75:""},Ie=s("div",{op30:""}," ) ",-1),Ve=s("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[s("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1),We={flex:"~ col items-start"},Me={"text-xs":"","font-mono":"",op30:""},je={"text-green":"","font-bold":"","font-mono":""},Oe=s("div",{"flex-auto":""},null,-1),ze=s("div",{"min-h-100":""},null,-1),Ge=B({__name:"TimelineList",props:{data:{}},emits:["select"],setup(_,{emit:d}){const p=d;return(e,o)=>{const i=M;return t(),c("div",we,[(t(!0),c(f,null,E(e.data.events,(n,a)=>(t(),c("button",{key:a,border:"b base",px3:"",py2:"",flex:"~ items-center gap-2",hover:"bg-active",onClick:r=>p("select",n)},[n.type==="function"?(t(),c(f,{key:0},[Se,s("div",{"font-mono":"",style:T({color:n.type==="function"?("getHashColorFromString"in e?e.getHashColorFromString:l(W))(n.name,50,60):""})},k(n.name),5),s("div",Ne,[Fe,(t(!0),c(f,null,E(n.args,(r,u)=>(t(),c(f,{key:u},[u?(t(),c("div",Ee," , ")):x("",!0),s("div",Le,k(r===null?"null":r===void 0?"undefined":typeof r=="function"?"[function]":Array.isArray(r)?"[Array]":typeof r=="object"?"[object]":JSON.stringify(r)),1)],64))),128)),Ie])],64)):(t(),c(f,{key:1},[Ve,s("div",We,[s("div",Me,k(n.from),1),s("div",je,k(n.to),1)])],64)),Oe,n.end?(t(),y(i,{key:2,duration:n.end-n.start,color:n.type==="function"},null,8,["duration","color"])):x("",!0)],8,Te))),128)),ze])}}}),Re={key:0,"text-blue":""},Pe={key:1,"text-purple":""},He={key:2,"text-green":""},Je={key:3,"text-gray":""},Ye={key:4,"text-gray":""},qe={key:5,"text-gray":""},Ue={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Ze={key:1},Ke={p2:"","text-sm":"",border:"t base"},Xe=B({__name:"TimelineArgumentView",props:{value:{}},setup(_){const d=_,p=C(),e=C();function o(){try{p.value=JSON.parse(JSON.stringify(d.value))}catch(a){console.error(a),e.value=a}}const i=B({emits:["setup"],setup(a,{emit:r}){return r("setup"),()=>null}}),n=K();return(a,r)=>{const u=G,h=P("VMenu");return typeof a.value=="string"?(t(),c("div",Re,k(JSON.stringify(a.value)),1)):typeof a.value=="number"?(t(),c("div",Pe,k(a.value),1)):typeof a.value=="boolean"?(t(),c("div",He,k(a.value),1)):typeof a.value>"u"?(t(),c("div",Je," undefined ")):typeof a.value=="function"?(t(),c("div",Ye," [Function"+k(a.value.name?`: ${a.value.name}`:"")+"] ",1)):a.value===null?(t(),c("div",qe," null ")):(t(),y(h,{key:6,placement:"top"},{popper:v(()=>[m(l(i),{onSetup:o}),l(e)?(t(),c("div",Ue," Failed to display object: "+k(l(e)),1)):l(p)?(t(),c("div",Ze,[m(l(pe),X({"model-value":l(p)},a.$attrs,{class:["json-editor-vue",[a.$colorMode.value==="dark"?"jse-theme-dark":""]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":!0,indentation:2,"tab-size":2}),null,16,["model-value","class"]),s("div",Ke,[m(u,{title:"Copy to clipboard",icon:"carbon-copy",onClick:r[0]||(r[0]=$=>l(n)(JSON.stringify(l(p),null,2),"timeline-argument"))},{default:v(()=>[F(" Copy ")]),_:1})])])):x("",!0)]),default:v(()=>[s("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:z([Array.isArray(a.value)?"text-amber bg-amber:10":"text-orange bg-orange:10"])},k(Array.isArray(a.value)?`[Array(${a.value.length})]`:"[Object]"),3)]),_:1}))}}}),Qe={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},es={"mx--1":""},ss={flex:"~ gap-1","font-mono":""},ts={key:1},ns=s("span",{ml1:"",op30:""},"(",-1),os={key:0,op30:""},as=s("span",{op30:""},")",-1),ls={flex:"~ gap-1","text-sm":""},is=s("span",{mx1:"",op50:""},"·",-1),rs={class:"text-sm text-gray-400"},cs=B({__name:"TimelineDetailsFunction",props:{record:{}},setup(_){const d=_,p=O(()=>d.record.start,{showSecond:!0}),e=Q(),o=w(()=>e.value?.metadata),i=w(()=>e.value?.imports.find(n=>n.as===d.record.name));return(n,a)=>{const r=H,u=ce,h=Xe,$=M,A=de;return n.record?(t(),c("div",Qe,[s("div",es,[m(r,{n:"yellow",textContent:"Function call"})]),s("div",ss,[l(i)?(t(),y(u,{key:0,item:l(i),metadata:l(o),counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(t(),c("span",ts,k(n.record.name),1)),ns,(t(!0),c(f,null,E(n.record.args,(S,b)=>(t(),c(f,{key:b},[b?(t(),c("span",os,", ")):x("",!0),m(h,{value:S},null,8,["value"])],64))),128)),as]),s("div",ls,[n.record.end?(t(),y($,{key:0,duration:n.record.end-n.record.start},null,8,["duration"])):x("",!0),is,s("div",rs,k(l(p)),1)]),n.record.stacktrace?(t(),y(A,{key:0,stacktrace:n.record.stacktrace,class:"text-xs text-gray-400"},null,8,["stacktrace"])):x("",!0)])):x("",!0)}}}),ps={key:0,"p-4":"",flex:"~ col gap-2"},ds={"mx--1":""},us={flex:"~ gap-1 items-center","font-mono":""},ms={op50:""},ks=s("span",{"i-carbon-arrow-right":"",op50:""},null,-1),hs={flex:"~ gap-1","text-sm":""},_s=s("span",{mx1:"",op50:""},"·",-1),fs={class:"text-sm text-gray-400"},ys=B({__name:"TimelineDetailsRoute",props:{record:{}},setup(_){const d=_,p=O(()=>d.record.start,{showSecond:!0});return(e,o)=>{const i=H,n=M;return e.record?(t(),c("div",ps,[s("div",ds,[m(i,{n:"green",textContent:"Route Change"})]),s("div",us,[s("span",ms,k(e.record.from),1),ks,s("span",null,k(e.record.to),1)]),s("div",hs,[e.record.end?(t(),y(n,{key:0,duration:e.record.end-e.record.start},null,8,["duration"])):x("",!0),_s,s("div",fs,k(l(p)),1)])])):x("",!0)}}}),vs={key:0,"h-screen":"","of-hidden":""},bs={"h-screen":"","w-full":"",flex:"","flex-col":""},gs={"h-10":"",flex:"~ gap-2 items-center justify-end",p2:"",px3:""},xs={"text-sm":""},$s=s("div",{"flex-auto":""},null,-1),As={"min-h-50":"",px3:"",py2:""},Ds=B({__name:"TimelineView",setup(_){const d=ee(),p=C("table"),e=C(),o=w(()=>d.value?.metrics.clientTimeline());function i(){o.value&&(o.value.events=[])}function n(){p.value=p.value==="table"?"list":"table"}return(a,r)=>{const u=P("VTooltip"),h=G,$=Be,A=Ge,S=cs,b=ys,L=ue;return l(o)?(t(),c("div",vs,[s("div",bs,[s("div",gs,[m(u,{flex:""},{popper:v(()=>[s("div",xs,k(l(o).options.enabled?"Recording...":"Paused"),1)]),default:v(()=>[s("div",{"text-lg":"",class:z(l(o).options.enabled?"i-carbon-radio-button-checked text-primary animate-pulse":"i-carbon-pause-outline op30")},null,2)]),_:1}),l(o).options.enabled?(t(),y(h,{key:1,size:"small",ml1:"","text-sm":"",n:"orange",icon:"i-carbon-stop",onClick:r[1]||(r[1]=D=>l(o).options.enabled=!1)},{default:v(()=>[F(" Stop Tracking ")]),_:1})):(t(),y(h,{key:0,size:"small",ml1:"","text-sm":"",n:"primary",icon:"i-carbon-play",onClick:r[0]||(r[0]=D=>l(o).options.enabled=!0)},{default:v(()=>[F(" Start Tracking ")]),_:1})),$s,m(h,{icon:l(p)==="table"?"i-carbon-roadmap":"i-carbon-list",class:"ml-2",title:"Toggle View",border:!1,onClick:n},null,8,["icon"]),m(h,{icon:"i-carbon-trash-can","hover-text-red":"",class:"ml-2",border:!1,onClick:i})]),l(p)==="table"?(t(),y($,{key:0,data:{...l(o)},onSelect:r[2]||(r[2]=D=>e.value=D.event)},null,8,["data"])):(t(),y(A,{key:1,data:{...l(o)},onSelect:r[3]||(r[3]=D=>e.value=D)},null,8,["data"]))]),m(L,{"model-value":!!l(e),"auto-close":"",transition:"bottom",left:"#nuxt-devtools-side-nav",onClose:r[4]||(r[4]=D=>e.value=void 0)},{default:v(()=>[s("div",As,[l(e)?.type==="function"?(t(),y(S,{key:0,record:l(e)},null,8,["record"])):l(e)?.type==="route"?(t(),y(b,{key:1,record:l(e)},null,8,["record"])):x("",!0)])]),_:1},8,["model-value"])])):x("",!0)}}}),Cs={class:"markdown-body"},Bs=s("h1",null,"Timeline",-1),ws=s("p",null,[s("blockquote",{"text-orange":"","bg-orange:10":"",py1:""}," This is an experimental feature ")],-1),Ts=se(`<p>Timeline tracks your route navigations and functions calls in your Nuxt application. It can be used to debug performance issues and to understand how your application works.</p><h2>Function calls</h2><p>Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through <code>import {} from &#39;#imports&#39;</code>.</p><pre class="shiki shiki-themes vitesse-light vitesse-dark" style="background-color:#ffffff;--shiki-dark-bg:#121212;color:#393a34;--shiki-dark:#dbd7caee;" tabindex="0"><code><span class="line"><span style="color:#999999;--shiki-dark:#666666;">&lt;</span><span style="color:#1E754F;--shiki-dark:#4D9375;">script</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> setup</span><span style="color:#999999;--shiki-dark:#666666;">&gt;</span></span>
1
+ import{d as B,a as w,aJ as W,o as t,m as c,k as s,a9 as T,f as l,t as k,ad as O,F as f,n as E,h as y,r as C,w as Y,aA as q,a1 as j,bV as U,p as x,i as m,G as z,q as Z,e as K,as as P,j as v,aw as X,v as F,_ as G,aL as Q,al as ee,b1 as se,bW as te,ab as ne,N as oe,ac as ae,A as le,L as R,a5 as ie,Z as re}from"./p0yxMpsq.js";import{_ as M}from"./D3UZejev.js";import{_ as H}from"./DkWzd13i.js";import{_ as ce}from"./Cj0TlqSt.js";import{e as pe}from"./B3Qmg_qx.js";import{_ as de}from"./DNKTLI-X.js";import{_ as ue}from"./Du-HkQgI.js";import{_ as me}from"./B_kufNum.js";import{_ as ke}from"./C6Ei2A0L.js";import{_ as he}from"./Rgd--cyG.js";import{_ as _e}from"./DtbS56cH.js";import"./BC70P7_F.js";import"./BQwqZtdq.js";import"./CPaWbrKR.js";import"./BcJws1i5.js";import"./CwbK9Dp1.js";const fe=B({__name:"TimelineItemFunction",props:{item:{}},setup(_){const d=_,p=w(()=>W(d.item.name,50,60,"_op_")),e=w(()=>p.value.replace(/_op_/,"1")),o=w(()=>W(d.item.name,50,40)),i=w(()=>p.value.replace(/_op_/,"0.2"));return(n,a)=>(t(),c("button",{class:"group",style:T({color:l(e),borderLeft:`2px solid ${l(e)}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[s("div",{style:T({backgroundColor:l(i)}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),s("div",{style:T({color:l(o),"--c":l(e)}),border:"r-2 t-2 y-2 transparent","min-w-max":"",px1:"","text-left":"","group-hover":"border-$c"},k(n.item.name),5)],4))}}),ye={relative:"","h-full":""},ve={absolute:"","left-2":"","top-2.3em":"","text-xs":"",op50:""},be=B({__name:"TimelineSegment",props:{segment:{}},emits:["select"],setup(_,{emit:d}){const p=_,e=d,o=O(()=>p.segment.start,{updateInterval:1e3,showSecond:!0,controls:!1,messages:{justNow:"",past:i=>i,future:i=>i,invalid:"-",second:i=>i?`${i}s`:"",minute:i=>`${i}m`,hour:i=>`${i}h`,week:i=>`${i}w`,day:i=>`${i}d`,month:i=>`${i}mo`,year:i=>`${i}y`}});return(i,n)=>{const a=fe;return t(),c("div",ye,[s("button",{absolute:"","left-0":"","right-0":"","top-0":"","bg-green:5":"",px2:"",py1:"","text-left":"","text-xs":"","text-green6":"","font-mono":"",onClick:n[0]||(n[0]=r=>i.segment.route?e("select",i.segment.route):void 0)},k(i.segment.route?.event.to),1),s("div",ve,k(l(o))+" ago ",1),s("div",null,[(t(!0),c(f,null,E(i.segment.functions,(r,u)=>(t(),y(a,{key:u,item:r.event,style:T({position:"absolute",minWidth:`${r.relativeWidth*100}%`,maxWidth:`${r.relativeWidth*100}%`,top:`${4+r.layer*1.6}em`,left:`${r.relativeStart*100}%`}),onClick:h=>e("select",r)},null,8,["item","style","onClick"]))),128))])])}}}),ge=3e3,xe=50;function $e(_){const d=[];let p={start:0,end:0,events:[],functions:[],duration:0};for(const e of _){const o=e.end||e.start;(e.start-p.end>ge||e.type==="route")&&(p={start:e.start,end:o,events:[],functions:[],duration:0},d.push(p)),p.events.push(e),p.end=o+xe}return d.forEach((e,o)=>{const i=e.end-e.start,n=[];e.duration=i,e.previousGap=o>0?e.start-d[o-1].end:0,e.events.forEach(a=>{const r=a.end||a.start;let u=0;a.type!=="route"&&(u=n.findIndex($=>$<=a.start),u===-1?(u=n.length,n.push(r+1e3)):n[u]=r+1e3);const h={event:a,segment:e,relativeStart:(a.start-e.start)/i,relativeWidth:(r-a.start)/i,layer:u};a.type==="function"?e.functions.push(h):e.route=h})}),d}const Ae={relative:""},De={key:0,border:"x base","h-full":"","flex-inline":"","bg-true-gray-1":"",py15:"","text-xs":"","write-vertical-left":"",op50:"","dark:bg-true-gray-9":""},Ce=B({__name:"TimelineTable",props:{data:{}},emits:["select"],setup(_,{emit:d}){const p=_,e=d,o=C(),i=C(),n=C(),a=C(),r=C(!0),u=C(1.5),h=w(()=>$e(p.data.events)),$=w(()=>(p.data.events.length,o.value?.scrollWidth||window.innerWidth));function A(){a.value&&(a.value.style.width=`${$.value}px`)}function S(){r.value&&o.value&&(o.value.scrollTo({left:o.value.scrollWidth-o.value.clientWidth,behavior:"smooth"}),n.value.scrollTo({left:o.value.scrollWidth-o.value.clientWidth,behavior:"smooth"}))}return Y(()=>p.data.events.length,async()=>{await q(),A(),S()},{flush:"post"}),j(o,"scroll",()=>{n.value.scrollLeft!==o.value.scrollLeft&&(A(),n.value.scrollLeft=o.value.scrollLeft,r.value=o.value.scrollLeft>=o.value.scrollWidth-o.value.clientWidth)}),j(n,"scroll",()=>{n.value.scrollLeft!==o.value.scrollLeft&&(A(),o.value.scrollLeft=n.value.scrollLeft)}),j(o,"wheel",b=>{b.altKey?(u.value=U(u.value+b.deltaY/200,.5,3),A()):o.value.scrollLeft+=b.deltaY}),(b,L)=>{const D=M,V=be;return t(),c(f,null,[s("div",Ae,[s("div",{ref_key:"minimap",ref:i,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(t(!0),c(f,null,E(l(h),(g,N)=>(t(),c("div",{key:N,relative:"","h-full":"","flex-inline":"",style:T({width:`${Math.max(100,g.duration/10)/l($)*100}%`})},[(t(!0),c(f,null,E(g.functions,(I,J)=>(t(),c("div",{key:J,"h-3px":"",rounded:"",style:T({width:`max(${I.relativeWidth*100}%, 10px)`,position:"absolute",top:`${I.layer*4}px`,left:`${I.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in b?b.getHashColorFromString:l(W))(I.event.name,50,60)})},null,4))),128)),g.route?(t(),c("div",{key:0,absolute:"","top-0":"","h-full":"","w-px":"","border-l":"","border-green6":"",op10:"",style:T({left:`${g.route.relativeStart*100}%`})},null,4)):x("",!0)],4))),128))],512),s("div",{ref_key:"minimapScroller",ref:n,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[s("div",{ref_key:"minimapScrollerInner",ref:a,"h-1px":""},null,512)],512)]),s("div",{ref_key:"scroller",ref:o,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(t(!0),c(f,null,E(l(h),(g,N)=>(t(),c(f,{key:N},[g.previousGap&&g.previousGap>=200?(t(),c("div",De,[m(D,{op50:"",duration:g.previousGap,color:!1},null,8,["duration"])])):x("",!0),m(V,{"flex-inline":"","of-x-hidden":"","hover:of-x-visible":"","bg-base":"",class:z(N===l(h).length-1?"border-r border-base":""),segment:g,style:T({width:`${Math.max(50,g.duration/10)*l(u)}px`}),onSelect:L[0]||(L[0]=I=>e("select",I))},null,8,["class","segment","style"])],64))),128))],512)],64)}}}),Be=Z(Ce,[["__scopeId","data-v-27e8fb2d"]]),we={border:"t base",flex:"~ col","h-full":"","of-y-auto":"","text-sm":""},Te=["onClick"],Se=s("div",{"i-carbon-function":"",op50:""},null,-1),Ne={flex:"~","ml--1":"","font-mono":""},Fe=s("div",{op30:""}," ( ",-1),Ee={key:0,mr2:"",op30:""},Le={op75:""},Ie=s("div",{op30:""}," ) ",-1),Ve=s("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[s("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1),We={flex:"~ col items-start"},Me={"text-xs":"","font-mono":"",op30:""},je={"text-green":"","font-bold":"","font-mono":""},Oe=s("div",{"flex-auto":""},null,-1),ze=s("div",{"min-h-100":""},null,-1),Ge=B({__name:"TimelineList",props:{data:{}},emits:["select"],setup(_,{emit:d}){const p=d;return(e,o)=>{const i=M;return t(),c("div",we,[(t(!0),c(f,null,E(e.data.events,(n,a)=>(t(),c("button",{key:a,border:"b base",px3:"",py2:"",flex:"~ items-center gap-2",hover:"bg-active",onClick:r=>p("select",n)},[n.type==="function"?(t(),c(f,{key:0},[Se,s("div",{"font-mono":"",style:T({color:n.type==="function"?("getHashColorFromString"in e?e.getHashColorFromString:l(W))(n.name,50,60):""})},k(n.name),5),s("div",Ne,[Fe,(t(!0),c(f,null,E(n.args,(r,u)=>(t(),c(f,{key:u},[u?(t(),c("div",Ee," , ")):x("",!0),s("div",Le,k(r===null?"null":r===void 0?"undefined":typeof r=="function"?"[function]":Array.isArray(r)?"[Array]":typeof r=="object"?"[object]":JSON.stringify(r)),1)],64))),128)),Ie])],64)):(t(),c(f,{key:1},[Ve,s("div",We,[s("div",Me,k(n.from),1),s("div",je,k(n.to),1)])],64)),Oe,n.end?(t(),y(i,{key:2,duration:n.end-n.start,color:n.type==="function"},null,8,["duration","color"])):x("",!0)],8,Te))),128)),ze])}}}),Re={key:0,"text-blue":""},Pe={key:1,"text-purple":""},He={key:2,"text-green":""},Je={key:3,"text-gray":""},Ye={key:4,"text-gray":""},qe={key:5,"text-gray":""},Ue={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Ze={key:1},Ke={p2:"","text-sm":"",border:"t base"},Xe=B({__name:"TimelineArgumentView",props:{value:{}},setup(_){const d=_,p=C(),e=C();function o(){try{p.value=JSON.parse(JSON.stringify(d.value))}catch(a){console.error(a),e.value=a}}const i=B({emits:["setup"],setup(a,{emit:r}){return r("setup"),()=>null}}),n=K();return(a,r)=>{const u=G,h=P("VMenu");return typeof a.value=="string"?(t(),c("div",Re,k(JSON.stringify(a.value)),1)):typeof a.value=="number"?(t(),c("div",Pe,k(a.value),1)):typeof a.value=="boolean"?(t(),c("div",He,k(a.value),1)):typeof a.value>"u"?(t(),c("div",Je," undefined ")):typeof a.value=="function"?(t(),c("div",Ye," [Function"+k(a.value.name?`: ${a.value.name}`:"")+"] ",1)):a.value===null?(t(),c("div",qe," null ")):(t(),y(h,{key:6,placement:"top"},{popper:v(()=>[m(l(i),{onSetup:o}),l(e)?(t(),c("div",Ue," Failed to display object: "+k(l(e)),1)):l(p)?(t(),c("div",Ze,[m(l(pe),X({"model-value":l(p)},a.$attrs,{class:["json-editor-vue",[a.$colorMode.value==="dark"?"jse-theme-dark":""]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":!0,indentation:2,"tab-size":2}),null,16,["model-value","class"]),s("div",Ke,[m(u,{title:"Copy to clipboard",icon:"carbon-copy",onClick:r[0]||(r[0]=$=>l(n)(JSON.stringify(l(p),null,2),"timeline-argument"))},{default:v(()=>[F(" Copy ")]),_:1})])])):x("",!0)]),default:v(()=>[s("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:z([Array.isArray(a.value)?"text-amber bg-amber:10":"text-orange bg-orange:10"])},k(Array.isArray(a.value)?`[Array(${a.value.length})]`:"[Object]"),3)]),_:1}))}}}),Qe={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},es={"mx--1":""},ss={flex:"~ gap-1","font-mono":""},ts={key:1},ns=s("span",{ml1:"",op30:""},"(",-1),os={key:0,op30:""},as=s("span",{op30:""},")",-1),ls={flex:"~ gap-1","text-sm":""},is=s("span",{mx1:"",op50:""},"·",-1),rs={class:"text-sm text-gray-400"},cs=B({__name:"TimelineDetailsFunction",props:{record:{}},setup(_){const d=_,p=O(()=>d.record.start,{showSecond:!0}),e=Q(),o=w(()=>e.value?.metadata),i=w(()=>e.value?.imports.find(n=>n.as===d.record.name));return(n,a)=>{const r=H,u=ce,h=Xe,$=M,A=de;return n.record?(t(),c("div",Qe,[s("div",es,[m(r,{n:"yellow",textContent:"Function call"})]),s("div",ss,[l(i)?(t(),y(u,{key:0,item:l(i),metadata:l(o),counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(t(),c("span",ts,k(n.record.name),1)),ns,(t(!0),c(f,null,E(n.record.args,(S,b)=>(t(),c(f,{key:b},[b?(t(),c("span",os,", ")):x("",!0),m(h,{value:S},null,8,["value"])],64))),128)),as]),s("div",ls,[n.record.end?(t(),y($,{key:0,duration:n.record.end-n.record.start},null,8,["duration"])):x("",!0),is,s("div",rs,k(l(p)),1)]),n.record.stacktrace?(t(),y(A,{key:0,stacktrace:n.record.stacktrace,class:"text-xs text-gray-400"},null,8,["stacktrace"])):x("",!0)])):x("",!0)}}}),ps={key:0,"p-4":"",flex:"~ col gap-2"},ds={"mx--1":""},us={flex:"~ gap-1 items-center","font-mono":""},ms={op50:""},ks=s("span",{"i-carbon-arrow-right":"",op50:""},null,-1),hs={flex:"~ gap-1","text-sm":""},_s=s("span",{mx1:"",op50:""},"·",-1),fs={class:"text-sm text-gray-400"},ys=B({__name:"TimelineDetailsRoute",props:{record:{}},setup(_){const d=_,p=O(()=>d.record.start,{showSecond:!0});return(e,o)=>{const i=H,n=M;return e.record?(t(),c("div",ps,[s("div",ds,[m(i,{n:"green",textContent:"Route Change"})]),s("div",us,[s("span",ms,k(e.record.from),1),ks,s("span",null,k(e.record.to),1)]),s("div",hs,[e.record.end?(t(),y(n,{key:0,duration:e.record.end-e.record.start},null,8,["duration"])):x("",!0),_s,s("div",fs,k(l(p)),1)])])):x("",!0)}}}),vs={key:0,"h-screen":"","of-hidden":""},bs={"h-screen":"","w-full":"",flex:"","flex-col":""},gs={"h-10":"",flex:"~ gap-2 items-center justify-end",p2:"",px3:""},xs={"text-sm":""},$s=s("div",{"flex-auto":""},null,-1),As={"min-h-50":"",px3:"",py2:""},Ds=B({__name:"TimelineView",setup(_){const d=ee(),p=C("table"),e=C(),o=w(()=>d.value?.metrics.clientTimeline());function i(){o.value&&(o.value.events=[])}function n(){p.value=p.value==="table"?"list":"table"}return(a,r)=>{const u=P("VTooltip"),h=G,$=Be,A=Ge,S=cs,b=ys,L=ue;return l(o)?(t(),c("div",vs,[s("div",bs,[s("div",gs,[m(u,{flex:""},{popper:v(()=>[s("div",xs,k(l(o).options.enabled?"Recording...":"Paused"),1)]),default:v(()=>[s("div",{"text-lg":"",class:z(l(o).options.enabled?"i-carbon-radio-button-checked text-primary animate-pulse":"i-carbon-pause-outline op30")},null,2)]),_:1}),l(o).options.enabled?(t(),y(h,{key:1,size:"small",ml1:"","text-sm":"",n:"orange",icon:"i-carbon-stop",onClick:r[1]||(r[1]=D=>l(o).options.enabled=!1)},{default:v(()=>[F(" Stop Tracking ")]),_:1})):(t(),y(h,{key:0,size:"small",ml1:"","text-sm":"",n:"primary",icon:"i-carbon-play",onClick:r[0]||(r[0]=D=>l(o).options.enabled=!0)},{default:v(()=>[F(" Start Tracking ")]),_:1})),$s,m(h,{icon:l(p)==="table"?"i-carbon-roadmap":"i-carbon-list",class:"ml-2",title:"Toggle View",border:!1,onClick:n},null,8,["icon"]),m(h,{icon:"i-carbon-trash-can","hover-text-red":"",class:"ml-2",border:!1,onClick:i})]),l(p)==="table"?(t(),y($,{key:0,data:{...l(o)},onSelect:r[2]||(r[2]=D=>e.value=D.event)},null,8,["data"])):(t(),y(A,{key:1,data:{...l(o)},onSelect:r[3]||(r[3]=D=>e.value=D)},null,8,["data"]))]),m(L,{"model-value":!!l(e),"auto-close":"",transition:"bottom",left:"#nuxt-devtools-side-nav",onClose:r[4]||(r[4]=D=>e.value=void 0)},{default:v(()=>[s("div",As,[l(e)?.type==="function"?(t(),y(S,{key:0,record:l(e)},null,8,["record"])):l(e)?.type==="route"?(t(),y(b,{key:1,record:l(e)},null,8,["record"])):x("",!0)])]),_:1},8,["model-value"])])):x("",!0)}}}),Cs={class:"markdown-body"},Bs=s("h1",null,"Timeline",-1),ws=s("p",null,[s("blockquote",{"text-orange":"","bg-orange:10":"",py1:""}," This is an experimental feature ")],-1),Ts=se(`<p>Timeline tracks your route navigations and functions calls in your Nuxt application. It can be used to debug performance issues and to understand how your application works.</p><h2>Function calls</h2><p>Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through <code>import {} from &#39;#imports&#39;</code>.</p><pre class="shiki shiki-themes vitesse-light vitesse-dark" style="background-color:#ffffff;--shiki-dark-bg:#121212;color:#393a34;--shiki-dark:#dbd7caee;" tabindex="0"><code><span class="line"><span style="color:#999999;--shiki-dark:#666666;">&lt;</span><span style="color:#1E754F;--shiki-dark:#4D9375;">script</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> setup</span><span style="color:#999999;--shiki-dark:#666666;">&gt;</span></span>
2
2
  <span class="line"><span style="color:#1E754F;--shiki-dark:#4D9375;">import</span><span style="color:#999999;--shiki-dark:#666666;"> {</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> useMouse</span><span style="color:#999999;--shiki-dark:#666666;"> }</span><span style="color:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;"> &#39;</span><span style="color:#B56959;--shiki-dark:#C98A7D;">@vueuse/core</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;">&#39;</span></span>
3
3
  <span class="line"><span style="color:#1E754F;--shiki-dark:#4D9375;">import</span><span style="color:#999999;--shiki-dark:#666666;"> {</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> useNuxtApp</span><span style="color:#999999;--shiki-dark:#666666;"> }</span><span style="color:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;"> &#39;</span><span style="color:#B56959;--shiki-dark:#C98A7D;">#imports</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;">&#39;</span></span>
4
4
  <span class="line"></span>
@@ -1,4 +1,4 @@
1
- import{bO,c as wO,by as jO,d as xO,bv as $O,r as Jp,aB as kO,a as My,aC as SO,aq as CO,w as Kp,f as OO,bn as MO}from"./CSxKs2xg.js";function Nn(t){return Array.isArray(t)}function Zn(t){return t!==null&&typeof t=="object"&&(t.constructor===void 0||t.constructor.name==="Object")}function fS(t){return t&&typeof t=="object"?t.op==="add":!1}function dS(t){return t&&typeof t=="object"?t.op==="remove":!1}function t0(t){return t&&typeof t=="object"?t.op==="replace":!1}function Zm(t){return t&&typeof t=="object"?t.op==="copy":!1}function Al(t){return t&&typeof t=="object"?t.op==="move":!1}function AO(t,e){return JSON.stringify(t)===JSON.stringify(e)}function EO(t,e){return t===e}function hS(t){return t.slice(0,t.length-1)}function TO(t){return t[t.length-1]}function _O(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:EO;if(t.length<e.length)return!1;for(let r=0;r<e.length;r++)if(!n(t[r],e[r]))return!1;return!0}function pS(t){return typeof t=="object"&&t!==null}function n0(t){if(Nn(t)){const e=t.slice();return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else if(Zn(t)){const e={...t};return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else return t}function r0(t,e,n){if(t[e]===n)return t;{const r=n0(t);return r[e]=n,r}}function Xe(t,e){let n=t,r=0;for(;r<e.length;)Zn(n)?n=n[e[r]]:Nn(n)?n=n[parseInt(e[r])]:n=void 0,r++;return n}function Zi(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.length===0)return n;const i=e[0],o=Zi(t?t[i]:void 0,e.slice(1),n,r);if(Zn(t)||Nn(t))return r0(t,i,o);if(r){const s=PO.test(i)?[]:{};return s[i]=o,s}else throw new Error("Path does not exist")}const PO=/^\d+$/;function mS(t,e,n){if(e.length===0)return n(t);if(!pS(t))throw new Error("Path doesn't exist");const r=e[0],i=mS(t[r],e.slice(1),n);return r0(t,r,i)}function i0(t,e){if(e.length===0)return t;if(!pS(t))throw new Error("Path does not exist");if(e.length===1){const i=e[0];if(i in t){const o=n0(t);return Nn(o)&&o.splice(parseInt(i),1),Zn(o)&&delete o[i],o}else return t}const n=e[0],r=i0(t[n],e.slice(1));return r0(t,n,r)}function o0(t,e,n){const r=e.slice(0,e.length-1),i=e[e.length-1];return mS(t,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const s=n0(o);return s.splice(parseInt(i),0,n),s})}function Li(t,e){return t===void 0?!1:e.length===0?!0:t===null?!1:Li(t[e[0]],e.slice(1))}function uo(t){const e=t.split("/");return e.shift(),e.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function We(t){return t.map(s0).join("")}function s0(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function Ay(t,e){return t+s0(e)}function Uh(t,e){return t.startsWith(e)&&(t.length===e.length||t[e.length]==="/")}function io(t,e,n){let r=t;for(let i=0;i<e.length;i++){FO(e[i]);let o=e[i];if(n&&n.before){const l=n.before(r,o);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(o=l.operation)}}const s=r,a=Ro(r,o.path);if(o.op==="add")r=IO(r,a,o.value);else if(o.op==="remove")r=NO(r,a);else if(o.op==="replace")r=RO(r,a,o.value);else if(o.op==="copy")r=DO(r,a,eg(o.from));else if(o.op==="move")r=LO(r,a,eg(o.from));else if(o.op==="test")BO(r,a,o.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));if(n&&n.after){const l=n.after(r,o,s);l!==void 0&&(r=l)}}return r}function RO(t,e,n){return Zi(t,e,n)}function NO(t,e){return i0(t,e)}function IO(t,e,n){return Wu(t,e)?o0(t,e,n):Zi(t,e,n)}function DO(t,e,n){const r=Xe(t,n);if(Wu(t,e))return o0(t,e,r);{const i=Xe(t,n);return Zi(t,e,i)}}function LO(t,e,n){const r=Xe(t,n),i=i0(t,n);return Wu(i,e)?o0(i,e,r):Zi(i,e,r)}function BO(t,e,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${We(e)}")`);if(!Li(t,e))throw new Error(`Test failed: path not found (path: "${We(e)}")`);const r=Xe(t,e);if(!AO(r,n))throw new Error(`Test failed, value differs (path: "${We(e)}")`)}function Wu(t,e){if(e.length===0)return!1;const n=Xe(t,hS(e));return Array.isArray(n)}function zO(t,e){if(TO(e)!=="-")return e;const n=hS(e),r=Xe(t,n);return n.concat(r.length)}function FO(t){if(!["add","remove","replace","copy","move","test"].includes(t.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(t.op));if(typeof t.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(t));if((t.op==="copy"||t.op==="move")&&typeof t.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(t))}function Ro(t,e){return zO(t,uo(e))}function eg(t){return uo(t)}function gS(t,e,n){let r=[];return io(t,e,{before:(o,s)=>{let a;const l=Ro(o,s.path);if(s.op==="add")a=bS(o,l);else if(s.op==="remove")a=yS(o,l);else if(s.op==="replace")a=vS(o,l);else if(s.op==="copy")a=qO(o,l);else if(s.op==="move")a=VO(o,l,eg(s.from));else if(s.op==="test")a=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(s));let c;if(n&&n.before){const u=n.before(o,s,a);if(u&&u.revertOperations&&(a=u.revertOperations),u&&u.document&&(c=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=a.concat(r),c!==void 0)return{document:c}}}),r}function vS(t,e){return[{op:"replace",path:We(e),value:Xe(t,e)}]}function yS(t,e){return[{op:"add",path:We(e),value:Xe(t,e)}]}function bS(t,e){return Wu(t,e)||!Li(t,e)?[{op:"remove",path:We(e)}]:vS(t,e)}function qO(t,e){return bS(t,e)}function VO(t,e,n){if(e.length<n.length&&_O(n,e))return[{op:"replace",path:We(e),value:t}];const r={op:"move",from:We(e),path:We(n)};return!Wu(t,e)&&Li(t,e)?[r,...yS(t,e)]:[r]}var Dd={},Ey={b:"\b",f:"\f",n:`
1
+ import{bO,c as wO,by as jO,d as xO,bv as $O,r as Jp,aB as kO,a as My,aC as SO,aq as CO,w as Kp,f as OO,bn as MO}from"./p0yxMpsq.js";function Nn(t){return Array.isArray(t)}function Zn(t){return t!==null&&typeof t=="object"&&(t.constructor===void 0||t.constructor.name==="Object")}function fS(t){return t&&typeof t=="object"?t.op==="add":!1}function dS(t){return t&&typeof t=="object"?t.op==="remove":!1}function t0(t){return t&&typeof t=="object"?t.op==="replace":!1}function Zm(t){return t&&typeof t=="object"?t.op==="copy":!1}function Al(t){return t&&typeof t=="object"?t.op==="move":!1}function AO(t,e){return JSON.stringify(t)===JSON.stringify(e)}function EO(t,e){return t===e}function hS(t){return t.slice(0,t.length-1)}function TO(t){return t[t.length-1]}function _O(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:EO;if(t.length<e.length)return!1;for(let r=0;r<e.length;r++)if(!n(t[r],e[r]))return!1;return!0}function pS(t){return typeof t=="object"&&t!==null}function n0(t){if(Nn(t)){const e=t.slice();return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else if(Zn(t)){const e={...t};return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else return t}function r0(t,e,n){if(t[e]===n)return t;{const r=n0(t);return r[e]=n,r}}function Xe(t,e){let n=t,r=0;for(;r<e.length;)Zn(n)?n=n[e[r]]:Nn(n)?n=n[parseInt(e[r])]:n=void 0,r++;return n}function Zi(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.length===0)return n;const i=e[0],o=Zi(t?t[i]:void 0,e.slice(1),n,r);if(Zn(t)||Nn(t))return r0(t,i,o);if(r){const s=PO.test(i)?[]:{};return s[i]=o,s}else throw new Error("Path does not exist")}const PO=/^\d+$/;function mS(t,e,n){if(e.length===0)return n(t);if(!pS(t))throw new Error("Path doesn't exist");const r=e[0],i=mS(t[r],e.slice(1),n);return r0(t,r,i)}function i0(t,e){if(e.length===0)return t;if(!pS(t))throw new Error("Path does not exist");if(e.length===1){const i=e[0];if(i in t){const o=n0(t);return Nn(o)&&o.splice(parseInt(i),1),Zn(o)&&delete o[i],o}else return t}const n=e[0],r=i0(t[n],e.slice(1));return r0(t,n,r)}function o0(t,e,n){const r=e.slice(0,e.length-1),i=e[e.length-1];return mS(t,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const s=n0(o);return s.splice(parseInt(i),0,n),s})}function Li(t,e){return t===void 0?!1:e.length===0?!0:t===null?!1:Li(t[e[0]],e.slice(1))}function uo(t){const e=t.split("/");return e.shift(),e.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function We(t){return t.map(s0).join("")}function s0(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function Ay(t,e){return t+s0(e)}function Uh(t,e){return t.startsWith(e)&&(t.length===e.length||t[e.length]==="/")}function io(t,e,n){let r=t;for(let i=0;i<e.length;i++){FO(e[i]);let o=e[i];if(n&&n.before){const l=n.before(r,o);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(o=l.operation)}}const s=r,a=Ro(r,o.path);if(o.op==="add")r=IO(r,a,o.value);else if(o.op==="remove")r=NO(r,a);else if(o.op==="replace")r=RO(r,a,o.value);else if(o.op==="copy")r=DO(r,a,eg(o.from));else if(o.op==="move")r=LO(r,a,eg(o.from));else if(o.op==="test")BO(r,a,o.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));if(n&&n.after){const l=n.after(r,o,s);l!==void 0&&(r=l)}}return r}function RO(t,e,n){return Zi(t,e,n)}function NO(t,e){return i0(t,e)}function IO(t,e,n){return Wu(t,e)?o0(t,e,n):Zi(t,e,n)}function DO(t,e,n){const r=Xe(t,n);if(Wu(t,e))return o0(t,e,r);{const i=Xe(t,n);return Zi(t,e,i)}}function LO(t,e,n){const r=Xe(t,n),i=i0(t,n);return Wu(i,e)?o0(i,e,r):Zi(i,e,r)}function BO(t,e,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${We(e)}")`);if(!Li(t,e))throw new Error(`Test failed: path not found (path: "${We(e)}")`);const r=Xe(t,e);if(!AO(r,n))throw new Error(`Test failed, value differs (path: "${We(e)}")`)}function Wu(t,e){if(e.length===0)return!1;const n=Xe(t,hS(e));return Array.isArray(n)}function zO(t,e){if(TO(e)!=="-")return e;const n=hS(e),r=Xe(t,n);return n.concat(r.length)}function FO(t){if(!["add","remove","replace","copy","move","test"].includes(t.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(t.op));if(typeof t.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(t));if((t.op==="copy"||t.op==="move")&&typeof t.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(t))}function Ro(t,e){return zO(t,uo(e))}function eg(t){return uo(t)}function gS(t,e,n){let r=[];return io(t,e,{before:(o,s)=>{let a;const l=Ro(o,s.path);if(s.op==="add")a=bS(o,l);else if(s.op==="remove")a=yS(o,l);else if(s.op==="replace")a=vS(o,l);else if(s.op==="copy")a=qO(o,l);else if(s.op==="move")a=VO(o,l,eg(s.from));else if(s.op==="test")a=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(s));let c;if(n&&n.before){const u=n.before(o,s,a);if(u&&u.revertOperations&&(a=u.revertOperations),u&&u.document&&(c=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=a.concat(r),c!==void 0)return{document:c}}}),r}function vS(t,e){return[{op:"replace",path:We(e),value:Xe(t,e)}]}function yS(t,e){return[{op:"add",path:We(e),value:Xe(t,e)}]}function bS(t,e){return Wu(t,e)||!Li(t,e)?[{op:"remove",path:We(e)}]:vS(t,e)}function qO(t,e){return bS(t,e)}function VO(t,e,n){if(e.length<n.length&&_O(n,e))return[{op:"replace",path:We(e),value:t}];const r={op:"move",from:We(e),path:We(n)};return!Wu(t,e)&&Li(t,e)?[r,...yS(t,e)]:[r]}var Dd={},Ey={b:"\b",f:"\f",n:`
2
2
  `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},HO=97;Dd.parse=function(t,e,n){var r={},i=0,o=0,s=0,a=n&&n.bigint&&typeof BigInt<"u";return{data:l("",!0),pointers:r};function l(V,z){c();var G;b(V,"value");var L=m();switch(L){case"t":p("rue"),G=!0;break;case"f":p("alse"),G=!1;break;case"n":p("ull"),G=null;break;case'"':G=u();break;case"[":G=d(V);break;case"{":G=h(V);break;default:v(),"-0123456789".indexOf(L)>=0?G=f():S()}return b(V,"valueEnd"),c(),z&&s<t.length&&S(),G}function c(){e:for(;s<t.length;){switch(t[s]){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
3
3
  `:o=0,i++;break;default:break e}s++}}function u(){for(var V="",z;z=m(),z!='"';)z=="\\"?(z=m(),z in Ey?V+=Ey[z]:z=="u"?V+=g():A()):V+=z;return V}function f(){var V="",z=!0;t[s]=="-"&&(V+=m()),V+=t[s]=="0"?m():y(),t[s]=="."&&(V+=m()+y(),z=!1),(t[s]=="e"||t[s]=="E")&&(V+=m(),(t[s]=="+"||t[s]=="-")&&(V+=m()),V+=y(),z=!1);var G=+V;return a&&z&&(G>Number.MAX_SAFE_INTEGER||G<Number.MIN_SAFE_INTEGER)?BigInt(V):G}function d(V){c();var z=[],G=0;if(m()=="]")return z;for(v();;){var L=V+"/"+G;z.push(l(L)),c();var H=m();if(H=="]")break;H!=","&&A(),c(),G++}return z}function h(V){c();var z={};if(m()=="}")return z;for(v();;){var G=w();m()!='"'&&A();var L=u(),H=V+"/"+tg(L);x(H,"key",G),b(H,"keyEnd"),c(),m()!=":"&&A(),c(),z[L]=l(H),c();var _=m();if(_=="}")break;_!=","&&A(),c()}return z}function p(V){for(var z=0;z<V.length;z++)m()!==V[z]&&A()}function m(){W();var V=t[s];return s++,o++,V}function v(){s--,o--}function g(){for(var V=4,z=0;V--;){z<<=4;var G=m().toLowerCase();G>="a"&&G<="f"?z+=G.charCodeAt()-HO+10:G>="0"&&G<="9"?z+=+G:A()}return String.fromCharCode(z)}function y(){for(var V="";t[s]>="0"&&t[s]<="9";)V+=m();if(V.length)return V;W(),S()}function b(V,z){x(V,z,w())}function x(V,z,G){r[V]=r[V]||{},r[V][z]=G}function w(){return{line:i,column:o,pos:s}}function S(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function A(){v(),S()}function W(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}};Dd.stringify=function(t,e,n){if(!bf(t))return;var r=0,i,o,s=typeof n=="object"?n.space:n;switch(typeof s){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&x(a," "),i=a,o=a;break;case"string":s=s.slice(0,10),i=0,o=0;for(var l=0;l<s.length;l++){var c=s[l];switch(c){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
4
4
  `:o=0,r++;break;default:throw new Error("whitespace characters not allowed in JSON")}i++}break;default:s=void 0}var u="",f={},d=0,h=0,p=0,m=n&&n.es6&&typeof Map=="function";return v(t,0,""),{json:u,pointers:f};function v(w,S,A){switch(b(A,"value"),typeof w){case"number":case"bigint":case"boolean":g(""+w);break;case"string":g(wf(w));break;case"object":w===null?g("null"):typeof w.toJSON=="function"?g(wf(w.toJSON())):Array.isArray(w)?W():m?w.constructor.BYTES_PER_ELEMENT?W():w instanceof Map?z():w instanceof Set?z(!0):V():V()}b(A,"valueEnd");function W(){if(w.length){g("[");for(var G=S+1,L=0;L<w.length;L++){L&&g(","),y(G);var H=bf(w[L])?w[L]:null,_=A+"/"+L;v(H,G,_)}y(S),g("]")}else g("[]")}function V(){var G=Object.keys(w);if(G.length){g("{");for(var L=S+1,H=0;H<G.length;H++){var _=G[H],ee=w[_];if(bf(ee)){H&&g(",");var Z=A+"/"+tg(_);y(L),b(Z,"key"),g(wf(_)),b(Z,"keyEnd"),g(":"),s&&g(" "),v(ee,L,Z)}}y(S),g("}")}else g("{}")}function z(G){if(w.size){g("{");for(var L=S+1,H=!0,_=w.entries(),ee=_.next();!ee.done;){var Z=ee.value,Q=Z[0],E=G?!0:Z[1];if(bf(E)){H||g(","),H=!1;var R=A+"/"+tg(Q);y(L),b(R,"key"),g(wf(Q)),b(R,"keyEnd"),g(":"),s&&g(" "),v(E,L,R)}ee=_.next()}y(S),g("}")}else g("{}")}}function g(w){h+=w.length,p+=w.length,u+=w}function y(w){if(s){for(u+=`
@@ -1 +1 @@
1
- import{d as y,a0 as $,m as p,k as o,G as i,i as w,j as B,f as l,F as u,I as C,J as S,aa as s,p as d,o as r,v as f,t as v,h as b,y as k,z as I,a6 as N,q as V}from"./CSxKs2xg.js";import{_ as x}from"./CGdFtN3I.js";const m=t=>(k("data-v-bae9fa8d"),t=t(),I(),t),z=["open"],T={"text-base":""},D={key:0,"text-sm":"",op50:""},F=m(()=>o("div",{class:"flex-auto"},null,-1)),j=m(()=>o("div",{class:"x-divider"},null,-1)),q=y({__name:"NSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){const a=$(t,"open",void 0,{passive:!0});function c(e){a.value=e.target.open}return(e,n)=>{const h=N,g=x;return r(),p(u,null,[o("details",{open:l(a),onToggle:n[0]||(n[0]=(..._)=>c&&c(..._))},[o("summary",{class:i(["cursor-pointer select-none hover:bg-active p4",e.collapse?"":"pointer-events-none"])},[w(g,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:i([l(a)?"op100":"op60",e.headerClass])},{default:B(()=>[o("div",null,[o("div",T,[s(e.$slots,"text",{},()=>[f(v(e.text),1)],!0)]),e.description||e.$slots.description?(r(),p("div",D,[s(e.$slots,"description",{},()=>[f(v(e.description),1)],!0)])):d("",!0)]),F,s(e.$slots,"actions",{},void 0,!0),e.collapse?(r(),b(h,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):d("",!0)]),_:3},8,["icon","text","class"])],2),n._lazyshow1||l(a)?(n._lazyshow1=!0,r(),p(u,null,[C(o("div",{class:i(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[s(e.$slots,"details",{},void 0,!0),o("div",{class:i([e.containerClass,"mt1"])},[s(e.$slots,"default",{},void 0,!0)],2),s(e.$slots,"footer",{},void 0,!0)],2),[[S,l(a)]])],64)):d("v-show-if",!0)],40,z),j],64)}}}),M=V(q,[["__scopeId","data-v-bae9fa8d"]]);export{M as _};
1
+ import{d as y,a0 as $,m as p,k as o,G as i,i as w,j as B,f as l,F as u,I as C,J as S,aa as s,p as d,o as r,v as f,t as v,h as b,y as k,z as I,a6 as N,q as V}from"./p0yxMpsq.js";import{_ as x}from"./DNcopq6z.js";const m=t=>(k("data-v-bae9fa8d"),t=t(),I(),t),z=["open"],T={"text-base":""},D={key:0,"text-sm":"",op50:""},F=m(()=>o("div",{class:"flex-auto"},null,-1)),j=m(()=>o("div",{class:"x-divider"},null,-1)),q=y({__name:"NSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){const a=$(t,"open",void 0,{passive:!0});function c(e){a.value=e.target.open}return(e,n)=>{const h=N,g=x;return r(),p(u,null,[o("details",{open:l(a),onToggle:n[0]||(n[0]=(..._)=>c&&c(..._))},[o("summary",{class:i(["cursor-pointer select-none hover:bg-active p4",e.collapse?"":"pointer-events-none"])},[w(g,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:i([l(a)?"op100":"op60",e.headerClass])},{default:B(()=>[o("div",null,[o("div",T,[s(e.$slots,"text",{},()=>[f(v(e.text),1)],!0)]),e.description||e.$slots.description?(r(),p("div",D,[s(e.$slots,"description",{},()=>[f(v(e.description),1)],!0)])):d("",!0)]),F,s(e.$slots,"actions",{},void 0,!0),e.collapse?(r(),b(h,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):d("",!0)]),_:3},8,["icon","text","class"])],2),n._lazyshow1||l(a)?(n._lazyshow1=!0,r(),p(u,null,[C(o("div",{class:i(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[s(e.$slots,"details",{},void 0,!0),o("div",{class:i([e.containerClass,"mt1"])},[s(e.$slots,"default",{},void 0,!0)],2),s(e.$slots,"footer",{},void 0,!0)],2),[[S,l(a)]])],64)):d("v-show-if",!0)],40,z),j],64)}}}),M=V(q,[["__scopeId","data-v-bae9fa8d"]]);export{M as _};
@@ -1 +1 @@
1
- import{d as m,a0 as c,o as l,m as t,F as v,n as f,G as d,f as o,k as i,t as _,I as g,aN as y,l as V}from"./CSxKs2xg.js";const h={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},k=["disabled","title"],x=["disabled","value","title"],C=m({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(r,{emit:b}){const a=c(r,"modelValue",b,{passive:!0});return(s,n)=>(l(),t("fieldset",h,[(l(!0),t(v,null,f(s.options,(e,p)=>(l(),t("label",{key:e.label,disabled:s.disabled,class:d(["relative n-border-base hover:n-bg-active px-0.5em py-0.1em",[p?"border-l n-border-base ml--1px":"",e.value===o(a)?"n-bg-active":""]]),title:e.label},[i("div",{class:d([e.value===o(a)?"":"op35"])},_(e.label),3),g(i("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>V(a)?a.value=u:null),type:"radio",disabled:s.disabled,value:e.value,title:e.label,class:"absolute inset-0 op-0.1"},null,8,x),[[y,o(a)]])],10,k))),128))]))}});export{C as _};
1
+ import{d as m,a0 as c,o as l,m as t,F as v,n as f,G as d,f as o,k as i,t as _,I as g,aN as y,l as V}from"./p0yxMpsq.js";const h={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},k=["disabled","title"],x=["disabled","value","title"],C=m({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(r,{emit:b}){const a=c(r,"modelValue",b,{passive:!0});return(s,n)=>(l(),t("fieldset",h,[(l(!0),t(v,null,f(s.options,(e,p)=>(l(),t("label",{key:e.label,disabled:s.disabled,class:d(["relative n-border-base hover:n-bg-active px-0.5em py-0.1em",[p?"border-l n-border-base ml--1px":"",e.value===o(a)?"n-bg-active":""]]),title:e.label},[i("div",{class:d([e.value===o(a)?"":"op35"])},_(e.label),3),g(i("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>V(a)?a.value=u:null),type:"radio",disabled:s.disabled,value:e.value,title:e.label,class:"absolute inset-0 op-0.1"},null,8,x),[[y,o(a)]])],10,k))),128))]))}});export{C as _};