@nuxt/devtools 0.8.2 → 0.8.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 (105) hide show
  1. package/dist/chunks/analyze-build.mjs +38 -6
  2. package/dist/chunks/module-main.mjs +1 -1
  3. package/dist/client/200.html +31 -31
  4. package/dist/client/404.html +31 -31
  5. package/dist/client/__blank/index.html +31 -31
  6. package/dist/client/_nuxt/{Badge.3c6fa035.js → Badge.efa8b534.js} +1 -1
  7. package/dist/client/_nuxt/{CodeDiff.vue.7a519a6d.js → CodeDiff.vue.52d6bbaa.js} +1 -1
  8. package/dist/client/_nuxt/{ComposableItem.vue.ffcca591.js → ComposableItem.vue.1525d3d2.js} +1 -1
  9. package/dist/client/_nuxt/{DataSchemaButton.vue.9ced8093.js → DataSchemaButton.vue.dabda5da.js} +1 -1
  10. package/dist/client/_nuxt/{DataSchemaDrawer.6edfca87.js → DataSchemaDrawer.345f79f6.js} +2 -2
  11. package/dist/client/_nuxt/{DrawerRight.vue.8980fc15.js → DrawerRight.vue.e75b5510.js} +1 -1
  12. package/dist/client/_nuxt/{DurationDisplay.vue.dca5d690.js → DurationDisplay.vue.73c682ac.js} +1 -1
  13. package/dist/client/_nuxt/{FilepathItem.vue.222c7a36.js → FilepathItem.vue.253590ec.js} +1 -1
  14. package/dist/client/_nuxt/{HelpFab.vue.6da14cd2.js → HelpFab.vue.b3c1cf3a.js} +1 -1
  15. package/dist/client/_nuxt/{LaunchPage.vue.ded97a46.js → LaunchPage.vue.45c2e269.js} +1 -1
  16. package/dist/client/_nuxt/{NCheckbox.vue.d47be8e5.js → NCheckbox.vue.e6a37232.js} +1 -1
  17. package/dist/client/_nuxt/{NCodeBlock.vue.cd0d52ca.js → NCodeBlock.vue.28dd841e.js} +1 -1
  18. package/dist/client/_nuxt/{NDropdown.vue.3bf5669f.js → NDropdown.vue.36b68b91.js} +1 -1
  19. package/dist/client/_nuxt/{NIconTitle.vue.590f73cc.js → NIconTitle.vue.635c5682.js} +1 -1
  20. package/dist/client/_nuxt/{NLink.vue.2bd59538.js → NLink.vue.19da93af.js} +1 -1
  21. package/dist/client/_nuxt/{NMarkdown.vue.0929ffc5.js → NMarkdown.vue.283d6615.js} +1 -1
  22. package/dist/client/_nuxt/{NSectionBlock.2eb550f4.js → NSectionBlock.e780f891.js} +1 -1
  23. package/dist/client/_nuxt/{NSelect.vue.120a17c7.js → NSelect.vue.60befa30.js} +1 -1
  24. package/dist/client/_nuxt/{NSelectTabs.vue.15ded4ea.js → NSelectTabs.vue.1cae281d.js} +1 -1
  25. package/dist/client/_nuxt/{NSwitch.vue.00f0a211.js → NSwitch.vue.eb1bdf97.js} +1 -1
  26. package/dist/client/_nuxt/{NTip.vue.b82daf5f.js → NTip.vue.eef318b6.js} +1 -1
  27. package/dist/client/_nuxt/{Navbar.vue.454bbdad.js → Navbar.vue.d85c454f.js} +1 -1
  28. package/dist/client/_nuxt/{StateEditor.vue.fb44992d.js → StateEditor.vue.83907c9e.js} +1 -1
  29. package/dist/client/_nuxt/{__blank.ed5e6688.js → __blank.fd22bfe8.js} +1 -1
  30. package/dist/client/_nuxt/{analyze-build.a348d54f.js → analyze-build.3961243f.js} +1 -1
  31. package/dist/client/_nuxt/{assets.9cc20f0c.js → assets.22c374b3.js} +1 -1
  32. package/dist/client/_nuxt/{client.ecec2ff5.js → client.766a1bb7.js} +1 -1
  33. package/dist/client/_nuxt/{components.eb546fab.js → components.f4ae9003.js} +1 -1
  34. package/dist/client/_nuxt/{css.5abce139.js → css.a67813b3.js} +12 -8
  35. package/dist/client/_nuxt/{custom-_name_.405b1822.js → custom-_name_.4e0a3203.js} +1 -1
  36. package/dist/client/_nuxt/{default.d9ec755b.js → default.7b425b73.js} +1 -1
  37. package/dist/client/_nuxt/entry.13b4d578.css +1 -0
  38. package/dist/client/_nuxt/entry.2f74e286.js +27 -0
  39. package/dist/client/_nuxt/{error-404.27f7c5ed.js → error-404.9d0e04bf.js} +1 -1
  40. package/dist/client/_nuxt/{error-500.6459d9b0.js → error-500.10115977.js} +1 -1
  41. package/dist/client/_nuxt/{full.ff28afbd.js → full.4288bf38.js} +1 -1
  42. package/dist/client/_nuxt/{hooks.a92c198c.js → hooks.1d6c1af1.js} +1 -1
  43. package/dist/client/_nuxt/{html.66e44e78.js → html.af01869e.js} +1 -1
  44. package/dist/client/_nuxt/{imports.af43913a.js → imports.39a7562f.js} +1 -1
  45. package/dist/client/_nuxt/{index.475555a9.js → index.14b447a4.js} +1 -1
  46. package/dist/client/_nuxt/{index.9d25c8b5.js → index.94061115.js} +1 -1
  47. package/dist/client/_nuxt/{javascript.ddb4c460.js → javascript.b7d6d348.js} +7 -7
  48. package/dist/client/_nuxt/{json-editor-vue.28570b6b.js → json-editor-vue.87488a70.js} +53 -53
  49. package/dist/client/_nuxt/{middleware.17de3e64.js → middleware.66f1417a.js} +1 -1
  50. package/dist/client/_nuxt/{modules.d2b55e3a.js → modules.3b512e2b.js} +1 -1
  51. package/dist/client/_nuxt/{none.60868d86.js → none.d43da723.js} +1 -1
  52. package/dist/client/_nuxt/{open-graph.b86b82fa.js → open-graph.c7507223.js} +1 -1
  53. package/dist/client/_nuxt/{overview.5b1b22e6.js → overview.dae47b2d.js} +1 -1
  54. package/dist/client/_nuxt/{pages.7ce7ead1.js → pages.0902f86b.js} +1 -1
  55. package/dist/client/_nuxt/{payload.95a96cbc.js → payload.7de203b9.js} +1 -1
  56. package/dist/client/_nuxt/{plugins.19d4d843.js → plugins.30d46375.js} +1 -1
  57. package/dist/client/_nuxt/{runtime-configs.ccb12a0d.js → runtime-configs.a32dc753.js} +1 -1
  58. package/dist/client/_nuxt/{server-routes.7cc44fc0.js → server-routes.7e333622.js} +1 -1
  59. package/dist/client/_nuxt/{settings.105e88e7.js → settings.5586d729.js} +1 -1
  60. package/dist/client/_nuxt/shellscript.9d056341.js +4 -0
  61. package/dist/client/_nuxt/{state-components.f27756f9.js → state-components.7549d0ff.js} +1 -1
  62. package/dist/client/_nuxt/{state-modules.4d65021c.js → state-modules.a4af1949.js} +1 -1
  63. package/dist/client/_nuxt/{storage-options.f78173e7.js → storage-options.0b849b9a.js} +1 -1
  64. package/dist/client/_nuxt/{storage.38ee52e0.js → storage.6d27a7d0.js} +1 -1
  65. package/dist/client/_nuxt/{terminals.6138e467.js → terminals.2f1b22dc.js} +1 -1
  66. package/dist/client/_nuxt/{timeline.aeb379fb.js → timeline.849dbd44.js} +1 -1
  67. package/dist/client/_nuxt/{typescript.3ef79501.js → typescript.24e7badf.js} +7 -7
  68. package/dist/client/_nuxt/unocss-runtime.e58f9c20.js +2 -0
  69. package/dist/client/_nuxt/{virtual-files.c0236487.js → virtual-files.d393fac8.js} +1 -1
  70. package/dist/client/_nuxt/{vue-html.b80b464f.js → vue-html.0806679f.js} +1 -1
  71. package/dist/client/_nuxt/{vue.5b4e1de3.js → vue.24311fdc.js} +18 -18
  72. package/dist/client/index.html +31 -31
  73. package/dist/client/modules/analyze-build/index.html +31 -31
  74. package/dist/client/modules/assets/index.html +31 -31
  75. package/dist/client/modules/components/index.html +31 -31
  76. package/dist/client/modules/hooks/index.html +31 -31
  77. package/dist/client/modules/imports/index.html +31 -31
  78. package/dist/client/modules/middleware/index.html +31 -31
  79. package/dist/client/modules/modules/index.html +31 -31
  80. package/dist/client/modules/open-graph/index.html +31 -31
  81. package/dist/client/modules/overview/index.html +31 -31
  82. package/dist/client/modules/pages/index.html +31 -31
  83. package/dist/client/modules/payload/index.html +31 -31
  84. package/dist/client/modules/plugins/index.html +31 -31
  85. package/dist/client/modules/runtime-configs/index.html +31 -31
  86. package/dist/client/modules/server-routes/index.html +31 -31
  87. package/dist/client/modules/storage/index.html +31 -31
  88. package/dist/client/modules/terminals/index.html +31 -31
  89. package/dist/client/modules/timeline/index.html +31 -31
  90. package/dist/client/modules/virtual-files/index.html +31 -31
  91. package/dist/client/settings/index.html +31 -31
  92. package/dist/dirs.d.mts +7 -0
  93. package/dist/module.d.mts +9 -0
  94. package/dist/module.d.ts +1 -1
  95. package/dist/module.json +1 -1
  96. package/dist/runtime/plugins/view/client.mjs +1 -1
  97. package/dist/shared/devtools.2a48a9e5.d.ts +62 -0
  98. package/dist/types.d.mts +42 -0
  99. package/dist/types.d.ts +2 -2
  100. package/package.json +27 -28
  101. package/dist/client/_nuxt/entry.102d44fe.js +0 -27
  102. package/dist/client/_nuxt/entry.a2a7b315.css +0 -1
  103. package/dist/client/_nuxt/shellscript.3d8bff4d.js +0 -4
  104. package/dist/client/_nuxt/unocss-runtime.50cd6f0c.js +0 -2
  105. /package/dist/{global-2a48a9e5.d.ts → shared/devtools.2a48a9e5.d.mts} +0 -0
@@ -0,0 +1,4 @@
1
+ const e=Object.freeze({information_for_contributors:["This file has been converted from https://github.com/jeff-hykin/better-shell-syntax/blob/master/autogenerated/shell.tmLanguage.json","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],version:"https://github.com/jeff-hykin/better-shell-syntax/commit/ce62ea59e8e522f8a07d8d8a2d1f992c6c600b91",name:"shellscript",scopeName:"source.shell",patterns:[{include:"#initial_context"}],repository:{alias_statement:{begin:"(alias)[ \\t]*+[ \\t]*+(?:((?<=^|;|&|[ \\t])(?:readonly|declare|typeset|export|local)(?=[ \\t]|;|&|$))[ \\t]*+)?((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$)?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))",end:"(?:(?= |\\t|$)|(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n))",beginCaptures:{1:{name:"storage.type.alias.shell"},2:{name:"storage.modifier.$2.shell"},3:{name:"variable.other.assignment.shell"},4:{name:"punctuation.definition.array.access.shell"},5:{name:"variable.other.assignment.shell"},6:{name:"punctuation.definition.array.access.shell"},7:{name:"keyword.operator.assignment.shell"},8:{name:"keyword.operator.assignment.compound.shell"},9:{name:"keyword.operator.assignment.compound.shell"}},endCaptures:{1:{name:"punctuation.terminator.statement.semicolon.shell"},2:{name:"punctuation.separator.statement.and.shell"},3:{name:"punctuation.separator.statement.or.shell"},4:{name:"punctuation.separator.statement.background.shell"}},name:"meta.expression.assignment.shell",patterns:[{include:"#normal_statement_context"}]},argument:{begin:"[ \\t]++(?!(?:&|\\||\\(|\\[|#|\\n|$|;))",end:"(?= |\\t|;|\\||&|$|\\n|\\)|\\`)",beginCaptures:{},endCaptures:{},name:"meta.argument.shell",patterns:[{include:"#argument_context"},{include:"#line_continuation"}]},argument_context:{patterns:[{match:`[ \\t]*+([^
2
+ '&;<>\\(\\)\\$\`\\\\"\\|]+(?!>))`,captures:{1:{name:"string.unquoted.argument.shell",patterns:[{match:"\\*",name:"variable.language.special.wildcard.shell"},{include:"#variable"},{include:"#numeric_literal"},{match:"(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)",captures:{1:{name:"constant.language.$1.shell"}}}]}}},{include:"#normal_statement_context"}]},assignment:{patterns:[{begin:"[ \\t]*+(?:((?<=^|;|&|[ \\t])(?:readonly|declare|typeset|export|local)(?=[ \\t]|;|&|$))[ \\t]*+)?((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$)?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))[ \\t]*+(\\()",end:"\\)",beginCaptures:{1:{name:"storage.modifier.$1.shell"},2:{name:"variable.other.assignment.shell"},3:{name:"punctuation.definition.array.access.shell"},4:{name:"variable.other.assignment.shell"},5:{name:"punctuation.definition.array.access.shell"},6:{name:"keyword.operator.assignment.shell"},7:{name:"keyword.operator.assignment.compound.shell"},8:{name:"keyword.operator.assignment.compound.shell"},9:{name:"punctuation.shell"}},endCaptures:{0:{name:"punctuation.shell"}},name:"meta.expression.assignment.shell",patterns:[{include:"#comment"},{include:"#argument_context"}]},{begin:"[ \\t]*+(?:((?<=^|;|&|[ \\t])(?:readonly|declare|typeset|export|local)(?=[ \\t]|;|&|$))[ \\t]*+)?((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$)?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))",end:"(?:(?= |\\t|$)|(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n))",beginCaptures:{1:{name:"storage.modifier.$1.shell"},2:{name:"variable.other.assignment.shell"},3:{name:"punctuation.definition.array.access.shell"},4:{name:"variable.other.assignment.shell"},5:{name:"punctuation.definition.array.access.shell"},6:{name:"keyword.operator.assignment.shell"},7:{name:"keyword.operator.assignment.compound.shell"},8:{name:"keyword.operator.assignment.compound.shell"}},endCaptures:{1:{name:"punctuation.terminator.statement.semicolon.shell"},2:{name:"punctuation.separator.statement.and.shell"},3:{name:"punctuation.separator.statement.or.shell"},4:{name:"punctuation.separator.statement.background.shell"}},name:"meta.expression.assignment.shell",patterns:[{include:"#comment"},{include:"#argument_context"}]}]},basic_command_name:{match:`(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!foreach\\b(?!\\/)|select\\b(?!\\/)|repeat\\b(?!\\/)|until\\b(?!\\/)|while\\b(?!\\/)|case\\b(?!\\/)|done\\b(?!\\/)|elif\\b(?!\\/)|else\\b(?!\\/)|esac\\b(?!\\/)|then\\b(?!\\/)|for\\b(?!\\/)|end\\b(?!\\/)|in\\b(?!\\/)|fi\\b(?!\\/)|do\\b(?!\\/)|if\\b(?!\\/))(?:((?<=^|;|&|[ \\t])(?:readonly|declare|typeset|export|local)(?=[ \\t]|;|&|$))|((?!"|'|\\\\\\n?$)[^!'" \\t\\n\\r]+?))(?:(?= |\\t)|(?=;|\\||&|\\n|\\)|\\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\))`,captures:{1:{name:"storage.modifier.$1.shell"},2:{name:"entity.name.function.call.shell entity.name.command.shell",patterns:[{match:"(?<!\\w)(?:continue|return|break)(?!\\w)",name:"keyword.control.$0.shell"},{match:"(?<!\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|:|\\.)(?!\\/)(?!\\w)",name:"support.function.builtin.shell"},{include:"#variable"}]}},name:"meta.statement.command.name.basic.shell"},block_comment:{begin:"\\s*+(\\/\\*)",end:"\\*\\/",beginCaptures:{1:{name:"punctuation.definition.comment.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.comment.end.shell"}},name:"comment.block.shell"},boolean:{match:"\\b(?:true|false)\\b",name:"constant.language.$0.shell"},"case-clause":{patterns:[{begin:"(?=\\S)",end:";;",endCaptures:{0:{name:"punctuation.terminator.case-clause.shell"}},name:"meta.scope.case-clause.shell",patterns:[{begin:"\\(|(?=\\S)",beginCaptures:{0:{name:"punctuation.definition.case-pattern.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.case-pattern.shell"}},name:"meta.scope.case-pattern.shell",patterns:[{match:"\\|",name:"punctuation.separator.pipe-sign.shell"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#pathname"}]},{begin:"(?<=\\))",end:"(?=;;)",name:"meta.scope.case-clause-body.shell",patterns:[{include:"#initial_context"}]}]}]},comment:{match:"(?:^|[ \\t]++)(?:((#!).*)|((#).*))",captures:{1:{name:"comment.line.number-sign.shell meta.shebang.shell"},2:{name:"punctuation.definition.comment.shebang.shell"},3:{name:"comment.line.number-sign.shell"},4:{name:"punctuation.definition.comment.shell"}}},comments:{patterns:[{include:"#block_comment"},{include:"#line_comment"}]},"compound-command":{patterns:[{begin:"\\[{1,2}",beginCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},end:"\\]{1,2}",endCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},name:"meta.scope.logical-expression.shell",patterns:[{include:"#logical-expression"},{include:"#initial_context"}]},{begin:"\\({2}",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},end:"\\){2}",endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.other.math.shell",patterns:[{include:"#math"}]},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.subshell.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.subshell.shell"}},name:"meta.scope.subshell.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=\\s|^){(?=\\s|$)",beginCaptures:{0:{name:"punctuation.definition.group.shell"}},end:"(?<=^|;)\\s*(})",endCaptures:{1:{name:"punctuation.definition.group.shell"}},name:"meta.scope.group.shell",patterns:[{include:"#initial_context"}]}]},continuation_of_double_quoted_command_name:{begin:'\\G(?<=")',end:'"',beginCaptures:{},endCaptures:{0:{name:"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},contentName:"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command",patterns:[{match:'\\\\[\\$\\n`"\\\\]',name:"constant.character.escape.shell"},{include:"#variable"},{include:"#interpolation"}]},continuation_of_single_quoted_command_name:{begin:"\\G(?<=')",end:"'",beginCaptures:{},endCaptures:{0:{name:"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},contentName:"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command"},custom_command_names:{patterns:[]},custom_commands:{patterns:[]},double_quote_context:{patterns:[{match:'\\\\[\\$`"\\\\\\n]',name:"constant.character.escape.shell"},{include:"#variable"},{include:"#interpolation"}]},double_quote_escape_char:{match:'\\\\[\\$`"\\\\\\n]',name:"constant.character.escape.shell"},function_definition:{begin:"[ \\t]*+(?:(\\bfunction\\b)[ \\t]*+([^ \\t\\n\\r\\(\\)=]+)(?:(\\()[ \\t]*+(\\)))?|([^ \\t\\n\\r\\(\\)=]+)[ \\t]*+(\\()[ \\t]*+(\\)))",end:"(?<=\\}|\\))",beginCaptures:{1:{name:"storage.type.function.shell"},2:{name:"entity.name.function.shell"},3:{name:"punctuation.definition.arguments.shell"},4:{name:"punctuation.definition.arguments.shell"},5:{name:"entity.name.function.shell"},6:{name:"punctuation.definition.arguments.shell"},7:{name:"punctuation.definition.arguments.shell"}},endCaptures:{},name:"meta.function.shell",patterns:[{match:"\\G(?:\\t| |\\n)"},{begin:"\\{",end:"\\}",beginCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},endCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},name:"meta.function.body.shell",patterns:[{include:"#initial_context"}]},{begin:"\\(",end:"\\)",beginCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},endCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},name:"meta.function.body.shell",patterns:[{include:"#initial_context"}]}],applyEndPatternLast:1},heredoc:{patterns:[{begin:`((?<!<)<<-)[ \\t]*+("|')[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(?:\\2)(.*)`,end:"^\\t*(?:\\3)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{},3:{name:"punctuation.definition.string.heredoc.shell"},4:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.quoted.heredoc.indent",patterns:[]},{begin:`((?<!<)<<(?!<))[ \\t]*+("|')[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(?:\\2)(.*)`,end:"^(?:\\3)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{},3:{name:"punctuation.definition.string.heredoc.shell"},4:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.quoted.heredoc.no-indent",patterns:[]},{begin:`((?<!<)<<-)[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(.*)`,end:"^\\t*(?:\\2)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{name:"punctuation.definition.string.heredoc.shell"},3:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.unquoted.heredoc.indent",patterns:[{include:"#double_quote_escape_char"},{include:"#variable"},{include:"#interpolation"}]},{begin:`((?<!<)<<(?!<))[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(.*)`,end:"^(?:\\2)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{name:"punctuation.definition.string.heredoc.shell"},3:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.unquoted.heredoc.no-indent",patterns:[{include:"#double_quote_escape_char"},{include:"#variable"},{include:"#interpolation"}]}]},herestring:{patterns:[{begin:"(<<<)\\s*(('))",beginCaptures:{1:{name:"keyword.operator.herestring.shell"},2:{name:"string.quoted.single.shell"},3:{name:"punctuation.definition.string.begin.shell"}},end:"(')",endCaptures:{0:{name:"string.quoted.single.shell"},1:{name:"punctuation.definition.string.end.shell"}},name:"meta.herestring.shell",contentName:"string.quoted.single.shell"},{begin:'(<<<)\\s*(("))',beginCaptures:{1:{name:"keyword.operator.herestring.shell"},2:{name:"string.quoted.double.shell"},3:{name:"punctuation.definition.string.begin.shell"}},end:'(")',endCaptures:{0:{name:"string.quoted.double.shell"},1:{name:"punctuation.definition.string.end.shell"}},name:"meta.herestring.shell",contentName:"string.quoted.double.shell",patterns:[{include:"#double_quote_context"}]},{captures:{1:{name:"keyword.operator.herestring.shell"},2:{name:"string.unquoted.herestring.shell",patterns:[{include:"#initial_context"}]}},match:"(<<<)\\s*(([^\\s)\\\\]|\\\\.)+)",name:"meta.herestring.shell"}]},initial_context:{patterns:[{include:"#comment"},{include:"#pipeline"},{include:"#normal_statement_seperator"},{include:"#logical_expression_double"},{include:"#logical_expression_single"},{include:"#misc_ranges"},{include:"#loop"},{include:"#function_definition"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#redirection"},{include:"#pathname"},{include:"#keyword"},{include:"#alias_statement"},{include:"#normal_statement"},{include:"#string"},{include:"#support"}]},inline_comment:{match:"(\\/\\*)((?:[^\\*]|(?:\\*)++[^\\/])*+((?:\\*)++\\/))",captures:{1:{name:"comment.block.shell punctuation.definition.comment.begin.shell"},2:{name:"comment.block.shell"},3:{patterns:[{match:"\\*\\/",name:"comment.block.shell punctuation.definition.comment.end.shell"},{match:"\\*",name:"comment.block.shell"}]}}},interpolation:{patterns:[{begin:"\\$\\({2}",beginCaptures:{0:{name:"punctuation.definition.evaluation.arithmetic.begin.shell"}},end:"\\)\\s*\\)",endCaptures:{0:{name:"punctuation.definition.evaluation.arithmetic.end.shell"}},name:"string.other.math.shell",patterns:[{include:"#math"}]},{begin:"`",beginCaptures:{0:{name:"punctuation.definition.evaluation.backticks.shell"}},end:"`",endCaptures:{0:{name:"punctuation.definition.evaluation.backticks.shell"}},name:"string.interpolated.backtick.shell",patterns:[{match:"\\\\[`\\\\$]",name:"constant.character.escape.shell"},{begin:"(?<=\\W)(?=#)(?!#{)",beginCaptures:{1:{name:"punctuation.whitespace.comment.leading.shell"}},end:"(?!\\G)",patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.shell"}},end:"(?=`)",name:"comment.line.number-sign.shell"}]},{include:"#initial_context"}]},{begin:"\\$\\(",beginCaptures:{0:{name:"punctuation.definition.evaluation.parens.begin.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.evaluation.parens.end.shell"}},name:"string.interpolated.dollar.shell",patterns:[{include:"#initial_context"}]}]},keyword:{patterns:[{match:"(?<=^|;|&| |\\t)(?:continue|foreach|return|select|repeat|break|until|while|case|done|elif|else|esac|then|for|end|do|if|fi|in)(?= |\\t|;|&|$)",name:"keyword.control.$0.shell"}]},line_comment:{begin:"\\s*+(\\/\\/)",end:"(?<=\\n)(?<!\\\\\\n)",beginCaptures:{1:{name:"punctuation.definition.comment.shell"}},endCaptures:{},name:"comment.line.double-slash.shell",patterns:[{include:"#line_continuation_character"}]},line_continuation:{match:"\\\\(?=\\n)",name:"constant.character.escape.line-continuation.shell"},"logical-expression":{patterns:[{comment:"do we want a special rule for ( expr )?",match:"=[=~]?|!=?|<|>|&&|\\|\\|",name:"keyword.operator.logical.shell"},{match:"(?<!\\S)-(nt|ot|ef|eq|ne|l[te]|g[te]|[a-hknoprstuwxzOGLSN])\\b",name:"keyword.operator.logical.shell"}]},logical_expression_context:{patterns:[{include:"#regex_comparison"},{include:"#logical-expression"},{include:"#logical_expression_single"},{include:"#logical_expression_double"},{include:"#comment"},{include:"#boolean"},{include:"#redirect_number"},{include:"#numeric_literal"},{include:"#pipeline"},{include:"#normal_statement_seperator"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#pathname"},{include:"#keyword"},{include:"#support"}]},logical_expression_double:{begin:"\\[\\[",end:"\\]\\]",beginCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},endCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},name:"meta.scope.logical-expression.shell",patterns:[{include:"#logical_expression_context"}]},logical_expression_single:{begin:"\\[",end:"\\]",beginCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},endCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},name:"meta.scope.logical-expression.shell",patterns:[{include:"#logical_expression_context"}]},loop:{patterns:[{begin:"(?<=^|;|&|\\s)(for)\\s+(?=\\({2})",beginCaptures:{1:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.for-loop.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)(for)\\s+(.+?)\\s+(in)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.control.shell"},2:{name:"variable.other.loop.shell",patterns:[{include:"#string"}]},3:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.for-in-loop.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)(while|until)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.while-loop.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)(select)\\s+((?:[^\\s\\\\]|\\\\.)+)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.control.shell"},2:{name:"variable.other.loop.shell"}},end:"(?<=^|;|&|\\s)(done)(?=\\s|;|&|$|\\))",endCaptures:{1:{name:"keyword.control.shell"}},name:"meta.scope.select-block.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)case(?=\\s|;|&|$)",beginCaptures:{0:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)esac(?=\\s|;|&|$)",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.case-block.shell",patterns:[{begin:"(?<=^|;|&|\\s)in(?=\\s|;|&|$)",beginCaptures:{0:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)(?=esac(\\s|;|&|$))",name:"meta.scope.case-body.shell",patterns:[{include:"#comment"},{include:"#case-clause"}]},{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)if(?=\\s|;|&|$)",beginCaptures:{0:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)fi(?=\\s|;|&|$)",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.if-block.shell",patterns:[{include:"#initial_context"}]}]},math:{patterns:[{include:"#variable"},{match:"\\+{1,2}|-{1,2}|!|~|\\*{1,2}|/|%|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|\\?|\\:|,|=|[*/%+\\-&^|]=|<<=|>>=",name:"keyword.operator.arithmetic.shell"},{match:"0[xX][0-9A-Fa-f]+",name:"constant.numeric.hex.shell"},{match:"0\\d+",name:"constant.numeric.octal.shell"},{match:"\\d{1,2}#[0-9a-zA-Z@_]+",name:"constant.numeric.other.shell"},{match:"\\d+",name:"constant.numeric.integer.shell"}]},misc_ranges:{patterns:[{include:"#logical_expression_single"},{include:"#logical_expression_double"},{begin:"\\(\\(",end:"\\)\\)",beginCaptures:{0:{name:"punctuation.section.arithmetic.shell"}},endCaptures:{0:{name:"punctuation.section.arithmetic.shell"}},name:"meta.arithmetic.shell",patterns:[{include:"#math"}]},{begin:"(?<!=)\\(",end:"\\)",beginCaptures:{0:{name:"punctuation.definition.subshell"}},endCaptures:{0:{name:"punctuation.definition.subshell"}},name:"meta.scope.subshell",patterns:[{include:"#initial_context"}]},{begin:"(?<![^ \\t])({)",end:"}",beginCaptures:{1:{name:"punctuation.definition.group.shell"}},endCaptures:{0:{name:"punctuation.definition.group.shell"}},name:"meta.scope.group.shell",patterns:[{include:"#initial_context"}]}]},modifiers:{match:"(?<=^|;|&|[ \\t])(?:readonly|declare|typeset|export|local)(?=[ \\t]|;|&|$)",name:"storage.modifier.$0.shell"},normal_statement:{begin:"(?!^[ \\t]*+$)(?:(?<=^until | until |\\tuntil |^while | while |\\twhile |^elif | elif |\\telif |^else | else |\\telse |^then | then |\\tthen |^do | do |\\tdo |^if | if |\\tif )|(?<=(?:^|;|\\||&|!|\\(|\\{|\\`)))[ \\t]*+(?!nocorrect\\W|nocorrect\\$|function\\W|function\\$|foreach\\W|foreach\\$|repeat\\W|repeat\\$|logout\\W|logout\\$|coproc\\W|coproc\\$|select\\W|select\\$|while\\W|while\\$|pushd\\W|pushd\\$|until\\W|until\\$|case\\W|case\\$|done\\W|done\\$|elif\\W|elif\\$|else\\W|else\\$|esac\\W|esac\\$|popd\\W|popd\\$|then\\W|then\\$|time\\W|time\\$|for\\W|for\\$|end\\W|end\\$|fi\\W|fi\\$|do\\W|do\\$|in\\W|in\\$|if\\W|if\\$)",end:"(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\)",beginCaptures:{},endCaptures:{},name:"meta.statement.shell",patterns:[{include:"#function_definition"},{include:"#assignment"},{begin:"[ \\t]*+(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!foreach\\b(?!\\/)|select\\b(?!\\/)|repeat\\b(?!\\/)|until\\b(?!\\/)|while\\b(?!\\/)|case\\b(?!\\/)|done\\b(?!\\/)|elif\\b(?!\\/)|else\\b(?!\\/)|esac\\b(?!\\/)|then\\b(?!\\/)|for\\b(?!\\/)|end\\b(?!\\/)|in\\b(?!\\/)|fi\\b(?!\\/)|do\\b(?!\\/)|if\\b(?!\\/))(?!\\\\\\n?$)",end:"(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\)",beginCaptures:{},endCaptures:{},name:"meta.statement.command.shell",patterns:[{begin:"\\G",end:"(?= |\\t|;|\\||&|$|\\n|\\)|\\`)",beginCaptures:{},endCaptures:{},name:"meta.statement.command.name.shell",patterns:[{include:"#modifiers"},{match:"(?<!\\w)(?:continue|return|break)(?!\\w)",name:"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{match:"(?<!\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|:|\\.)(?!\\/)(?!\\w)",name:"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{include:"#variable"},{match:`(?<=\\G|'|"|\\}|\\))([^ \\n\\t\\r"'=;&\\|\`\\)\\{]+)`,captures:{1:{name:"entity.name.function.call.shell entity.name.command.shell"}}},{begin:`(?:\\G|(?<! |\\t|;|\\||&|\\n|\\{|#))((?:\\$)?)((?:(")|(')))`,end:"(?<!\\G)(?<=(?:\\2))",beginCaptures:{1:{name:"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},2:{},3:{name:"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},4:{name:"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},endCaptures:{},patterns:[{include:"#continuation_of_single_quoted_command_name"},{include:"#continuation_of_double_quoted_command_name"}]},{include:"#line_continuation"}]},{include:"#line_continuation"},{include:"#option"},{include:"#argument"},{include:"#statement_context"},{include:"#string"}]},{include:"#line_continuation"},{include:"#normal_statement_context"}]},normal_statement_context:{patterns:[{include:"#comment"},{include:"#pipeline"},{include:"#normal_statement_seperator"},{include:"#misc_ranges"},{include:"#boolean"},{include:"#redirect_number"},{include:"#numeric_literal"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#redirection"},{include:"#pathname"},{include:"#keyword"},{include:"#support"}]},normal_statement_seperator:{match:"(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n)",captures:{1:{name:"punctuation.terminator.statement.semicolon.shell"},2:{name:"punctuation.separator.statement.and.shell"},3:{name:"punctuation.separator.statement.or.shell"},4:{name:"punctuation.separator.statement.background.shell"}}},numeric_literal:{match:"[ \\t]*+(?<==| |\\t|^|\\{|\\(|\\[)(?:(?:(?:(?:(0[xX][0-9A-Fa-f]+)|(0\\d+))|(\\d{1,2}#[0-9a-zA-Z@_]+))|(-?\\d+\\.\\d+))|(-?\\d+))(?!>)",captures:{1:{name:"constant.numeric.shell constant.numeric.hex.shell"},2:{name:"constant.numeric.shell constant.numeric.octal.shell"},3:{name:"constant.numeric.shell constant.numeric.other.shell"},4:{name:"constant.numeric.shell constant.numeric.integer.shell"},5:{name:"constant.numeric.shell constant.numeric.integer.shell"}}},option:{begin:"[ \\t]++(-)((?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t])))",end:"(?:(?=[ \\t])|(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\))",beginCaptures:{1:{name:"string.unquoted.argument.shell constant.other.option.dash.shell"},2:{name:"string.unquoted.argument.shell constant.other.option.shell"}},endCaptures:{},contentName:"string.unquoted.argument constant.other.option",patterns:[{include:"#option_context"}]},option_context:{patterns:[{include:"#misc_ranges"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#redirection"},{include:"#pathname"},{include:"#keyword"},{include:"#support"}]},pathname:{patterns:[{match:"(?<=\\s|:|=|^)~",name:"keyword.operator.tilde.shell"},{match:"\\*|\\?",name:"keyword.operator.glob.shell"},{begin:"([?*+@!])(\\()",beginCaptures:{1:{name:"keyword.operator.extglob.shell"},2:{name:"punctuation.definition.extglob.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.extglob.shell"}},name:"meta.structure.extglob.shell",patterns:[{include:"#initial_context"}]}]},pipeline:{patterns:[{match:"(?<=^|;|&|\\s)(time)(?=\\s|;|&|$)",name:"keyword.other.shell"},{match:"[|!]",name:"keyword.operator.pipe.shell"}]},redirect_number:{match:"(?<=[ \\t])(?:(1)|(2)|(\\d+))(?=>)",captures:{1:{name:"keyword.operator.redirect.stdout.shell"},2:{name:"keyword.operator.redirect.stderr.shell"},3:{name:"keyword.operator.redirect.$3.shell"}}},redirection:{patterns:[{begin:"[><]\\(",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.interpolated.process-substitution.shell",patterns:[{include:"#initial_context"}]},{match:"(?<![<>])(&>|\\d*>&\\d*|\\d*(>>|>|<)|\\d*<&|\\d*<>)(?![<>])",name:"keyword.operator.redirect.shell"}]},regex_comparison:{match:"\\=~",name:"keyword.operator.logical.regex.shell"},regexp:{patterns:[{match:".+"}]},simple_options:{match:"(?:[ \\t]++\\-\\w+)*",captures:{0:{patterns:[{match:"[ \\t]++(\\-)(\\w+)",captures:{1:{name:"string.unquoted.argument.shell constant.other.option.dash.shell"},2:{name:"string.unquoted.argument.shell constant.other.option.shell"}}}]}}},start_of_command:{match:"[ \\t]*+(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!foreach\\b(?!\\/)|select\\b(?!\\/)|repeat\\b(?!\\/)|until\\b(?!\\/)|while\\b(?!\\/)|case\\b(?!\\/)|done\\b(?!\\/)|elif\\b(?!\\/)|else\\b(?!\\/)|esac\\b(?!\\/)|then\\b(?!\\/)|for\\b(?!\\/)|end\\b(?!\\/)|in\\b(?!\\/)|fi\\b(?!\\/)|do\\b(?!\\/)|if\\b(?!\\/))(?!\\\\\\n?$)"},start_of_double_quoted_command_name:{match:`(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?:[ \\t]*+([^
3
+ '&;<>\\(\\)\\$\`\\\\"\\|]+(?!>)))?(?:(?:\\$")|")`,captures:{1:{name:"entity.name.function.call.shell entity.name.command.shell",patterns:[{match:"\\*",name:"variable.language.special.wildcard.shell"},{include:"#variable"},{include:"#numeric_literal"},{match:"(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)",captures:{1:{name:"constant.language.$1.shell"}}}]}},name:"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},start_of_single_quoted_command_name:{match:`(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?:[ \\t]*+([^
4
+ '&;<>\\(\\)\\$\`\\\\"\\|]+(?!>)))?(?:(?:\\$')|')`,captures:{1:{name:"entity.name.function.call.shell entity.name.command.shell",patterns:[{match:"\\*",name:"variable.language.special.wildcard.shell"},{include:"#variable"},{include:"#numeric_literal"},{match:"(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)",captures:{1:{name:"constant.language.$1.shell"}}}]}},name:"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},string:{patterns:[{match:"\\\\.",name:"constant.character.escape.shell"},{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.quoted.single.shell"},{begin:'\\$?"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.quoted.double.shell",patterns:[{match:'\\\\[\\$\\n`"\\\\]',name:"constant.character.escape.shell"},{include:"#variable"},{include:"#interpolation"}]},{begin:"\\$'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.quoted.single.dollar.shell",patterns:[{match:"\\\\(?:a|b|e|f|n|r|t|v|\\\\|')",name:"constant.character.escape.ansi-c.shell"},{match:'\\\\[0-9]{3}"',name:"constant.character.escape.octal.shell"},{match:'\\\\x[0-9a-fA-F]{2}"',name:"constant.character.escape.hex.shell"},{match:'\\\\c."',name:"constant.character.escape.control-char.shell"}]}]},support:{patterns:[{match:"(?<=^|;|&|\\s)(?::|\\.)(?=\\s|;|&|$)",name:"support.function.builtin.shell"}]},variable:{patterns:[{match:"(\\$)(\\@(?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},2:{name:"variable.parameter.positional.all.shell"}}},{match:"(\\$)([0-9](?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.parameter.positional.shell"},2:{name:"variable.parameter.positional.shell"}}},{match:"(\\$)([-*#?$!0_](?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.language.special.shell"},2:{name:"variable.language.special.shell"}}},{begin:"(\\$)(\\{)[ \\t]*+(?=\\d)",end:"\\}",beginCaptures:{1:{name:"punctuation.definition.variable.shell variable.parameter.positional.shell"},2:{name:"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},endCaptures:{0:{name:"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},contentName:"meta.parameter-expansion",patterns:[{match:"!|:[-=?]?|\\*|@|##|#|%%|%|\\/",name:"keyword.operator.expansion.shell"},{match:"(\\[)[^\\]]+(\\])",captures:{1:{name:"punctuation.section.array.shell"},2:{name:"punctuation.section.array.shell"}}},{match:"[0-9]+",name:"variable.parameter.positional.shell"},{match:"(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)",name:"variable.other.normal.shell"},{include:"#variable"},{include:"#string"}]},{begin:"(\\$)(\\{)",end:"\\}",beginCaptures:{1:{name:"punctuation.definition.variable.shell"},2:{name:"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},endCaptures:{0:{name:"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},contentName:"meta.parameter-expansion",patterns:[{match:"!|:[-=?]?|\\*|@|##|#|%%|%|\\/",name:"keyword.operator.expansion.shell"},{match:"(\\[)[^\\]]+(\\])",captures:{1:{name:"punctuation.section.array.shell"},2:{name:"punctuation.section.array.shell"}}},{match:"(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)",name:"variable.other.normal.shell"},{include:"#variable"},{include:"#string"}]},{match:"(\\$)(\\w+(?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.other.normal.shell"},2:{name:"variable.other.normal.shell"}}}]}},displayName:"Shell",aliases:["bash","sh","shell","zsh"]});var n=[e];export{n as default};
@@ -1 +1 @@
1
- import{aq as m,b2 as n,a as s,J as o}from"./entry.102d44fe.js";function u(){const p=m(),t=n("getComponents",()=>o.getComponents()),l=s(()=>Object.entries(p.value?.nuxt?.vueApp._context.components||{}).map(([e])=>({pascalName:e,global:!0})).filter(e=>!/^Lazy[A-Z]/.test(e.pascalName)).filter(e=>!(t.value||[]).find(a=>a.pascalName===e.pascalName)));return s(()=>[...l.value,...t.value||[]].sort((e,a)=>e.pascalName.localeCompare(a.pascalName)))}function r(){return n("getComponentsRelationships",()=>o.getComponentsRelationships())}export{r as a,u};
1
+ import{aq as m,b2 as n,a as s,J as o}from"./entry.2f74e286.js";function u(){const p=m(),t=n("getComponents",()=>o.getComponents()),l=s(()=>Object.entries(p.value?.nuxt?.vueApp._context.components||{}).map(([e])=>({pascalName:e,global:!0})).filter(e=>!/^Lazy[A-Z]/.test(e.pascalName)).filter(e=>!(t.value||[]).find(a=>a.pascalName===e.pascalName)));return s(()=>[...l.value,...t.value||[]].sort((e,a)=>e.pascalName.localeCompare(a.pascalName)))}function r(){return n("getComponentsRelationships",()=>o.getComponentsRelationships())}export{r as a,u};
@@ -1 +1 @@
1
- import{_ as F}from"./Badge.3c6fa035.js";import{_ as L}from"./NCodeBlock.vue.cd0d52ca.js";import{_ as E}from"./NCheckbox.vue.d47be8e5.js";import{_ as A}from"./NTip.vue.b82daf5f.js";import{d as G,N as W,b3 as q,r as V,b4 as z,L as H,P as J,o as m,m as v,a5 as K,f as t,t as $,p as w,F as B,i as s,h as O,j as u,k as h,l as M,v as p,C as Q,V as X,b5 as Y,a7 as Z,a as ee,an as te,ao as ae,b6 as se,b2 as ne}from"./entry.102d44fe.js";const oe={key:0},le={p4:"",flex:"~ col gap-1"},re={class:"text-lg font-medium leading-6"},ue=h("p",{op50:""}," The following command will be executed in your terminal: ",-1),ie={flex:"~ gap-3",mt2:"","justify-end":""},ge=G({__name:"NpmVersionCheck",props:{packageName:{},options:{},showVersion:{type:Boolean,default:!0}},setup(l){const a=l,e=W(),{info:n,update:i,state:y,processId:k,restart:c}=q(a.packageName,a.options),f=V(!0),_=V(!0),U=z(),x=H(),R=J();async function b(){const r=await i(async o=>x.start(o));r&&_.value&&U.value.push({id:r,message:`${a.packageName} has been updated. Do you want to restart the Nuxt server now?`}),r&&f.value&&(R.value=r,e.push("/modules/terminals"))}return(r,o)=>{const C=F,S=L,N=E,T=A,P=Q,j=X;return m(),v(B,null,[K(r.$slots,"default",{id:t(k),info:t(n),update:b,state:t(y),restart:t(c)},()=>[t(n)&&r.showVersion?(m(),v("code",oe,$(`v${t(n).current}`),1)):w("",!0),t(n)?.latest?(m(),v(B,{key:1},[t(n).needsUpdate?(m(),v("button",{key:0,onClick:o[0]||(o[0]=g=>b())},[s(C,{"bg-green-400:10":"","text-green-400":"",title:"updates available",textContent:"updates available"})])):(m(),O(C,{key:1,"bg-gray-400:10":"","text-gray-400":"",title:"latest",textContent:"latest"}))],64)):w("",!0)]),s(t(x),null,{default:u(({resolve:g,args:I})=>[s(j,{"model-value":!0,onClose:d=>g(!1)},{default:u(()=>[h("div",le,[h("h3",re," Update "+$(a.packageName)+"? ",1),ue,s(S,{code:I[0],lang:"bash",my3:"",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),s(N,{modelValue:t(f),"onUpdate:modelValue":o[1]||(o[1]=d=>M(f)?f.value=d:null),n:"primary"},{default:u(()=>[p(" Navigate to terminal ")]),_:1},8,["modelValue"]),s(N,{modelValue:t(_),"onUpdate:modelValue":o[2]||(o[2]=d=>M(_)?_.value=d:null),n:"primary"},{default:u(()=>[p(" Restart Nuxt server after update ")]),_:1},8,["modelValue"]),h("div",ie,[s(T,{n:"sm purple","flex-auto":"",icon:"carbon-chemistry"},{default:u(()=>[p(" Experimental feature. Please make sure to backup your project first. ")]),_:1}),s(P,{onClick:d=>g(!1)},{default:u(()=>[p(" Cancel ")]),_:2},1032,["onClick"]),s(P,{n:"solid primary",onClick:d=>g(!0)},{default:u(()=>[p(" Update ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)}}}),D=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"];function de(){return ne("getModulesList",async()=>(await $fetch("https://cdn.jsdelivr.net/npm/@nuxt/modules@latest/modules.json")).filter(a=>!D.includes(a.npm)&&a.compatibility.nuxt.includes("^3")))}function ve(){return Y("installed-modules",()=>{const l=Z(),a=de();return ee(()=>(l.value?._installedModules||[]).map(e=>{if(!e.entryPath)return;const n=e.entryPath&&te(e.entryPath),i=e.meta?.name?e.meta?.name:e.entryPath?n?ae(e.entryPath):l.value?.rootDir?se(e.entryPath,l.value?.rootDir).path:void 0:void 0,y=l.value?.modules?.includes(i),k=a.value?.find(c=>c.npm===i)||a.value?.find(c=>c.name===i);return{name:i,isPackageModule:n,isUninstallable:y,info:k,...e}}).filter(e=>e&&(!e.name||!D.includes(e.name))))})}export{ge as _,de as a,ve as u};
1
+ import{_ as F}from"./Badge.efa8b534.js";import{_ as L}from"./NCodeBlock.vue.28dd841e.js";import{_ as E}from"./NCheckbox.vue.e6a37232.js";import{_ as A}from"./NTip.vue.eef318b6.js";import{d as G,N as W,b3 as q,r as V,b4 as z,L as H,P as J,o as m,m as v,a5 as K,f as t,t as $,p as w,F as B,i as s,h as O,j as u,k as h,l as M,v as p,C as Q,V as X,b5 as Y,a7 as Z,a as ee,an as te,ao as ae,b6 as se,b2 as ne}from"./entry.2f74e286.js";const oe={key:0},le={p4:"",flex:"~ col gap-1"},re={class:"text-lg font-medium leading-6"},ue=h("p",{op50:""}," The following command will be executed in your terminal: ",-1),ie={flex:"~ gap-3",mt2:"","justify-end":""},ge=G({__name:"NpmVersionCheck",props:{packageName:{},options:{},showVersion:{type:Boolean,default:!0}},setup(l){const a=l,e=W(),{info:n,update:i,state:y,processId:k,restart:c}=q(a.packageName,a.options),f=V(!0),_=V(!0),U=z(),x=H(),R=J();async function b(){const r=await i(async o=>x.start(o));r&&_.value&&U.value.push({id:r,message:`${a.packageName} has been updated. Do you want to restart the Nuxt server now?`}),r&&f.value&&(R.value=r,e.push("/modules/terminals"))}return(r,o)=>{const C=F,S=L,N=E,T=A,P=Q,j=X;return m(),v(B,null,[K(r.$slots,"default",{id:t(k),info:t(n),update:b,state:t(y),restart:t(c)},()=>[t(n)&&r.showVersion?(m(),v("code",oe,$(`v${t(n).current}`),1)):w("",!0),t(n)?.latest?(m(),v(B,{key:1},[t(n).needsUpdate?(m(),v("button",{key:0,onClick:o[0]||(o[0]=g=>b())},[s(C,{"bg-green-400:10":"","text-green-400":"",title:"updates available",textContent:"updates available"})])):(m(),O(C,{key:1,"bg-gray-400:10":"","text-gray-400":"",title:"latest",textContent:"latest"}))],64)):w("",!0)]),s(t(x),null,{default:u(({resolve:g,args:I})=>[s(j,{"model-value":!0,onClose:d=>g(!1)},{default:u(()=>[h("div",le,[h("h3",re," Update "+$(a.packageName)+"? ",1),ue,s(S,{code:I[0],lang:"bash",my3:"",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),s(N,{modelValue:t(f),"onUpdate:modelValue":o[1]||(o[1]=d=>M(f)?f.value=d:null),n:"primary"},{default:u(()=>[p(" Navigate to terminal ")]),_:1},8,["modelValue"]),s(N,{modelValue:t(_),"onUpdate:modelValue":o[2]||(o[2]=d=>M(_)?_.value=d:null),n:"primary"},{default:u(()=>[p(" Restart Nuxt server after update ")]),_:1},8,["modelValue"]),h("div",ie,[s(T,{n:"sm purple","flex-auto":"",icon:"carbon-chemistry"},{default:u(()=>[p(" Experimental feature. Please make sure to backup your project first. ")]),_:1}),s(P,{onClick:d=>g(!1)},{default:u(()=>[p(" Cancel ")]),_:2},1032,["onClick"]),s(P,{n:"solid primary",onClick:d=>g(!0)},{default:u(()=>[p(" Update ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)}}}),D=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"];function de(){return ne("getModulesList",async()=>(await $fetch("https://cdn.jsdelivr.net/npm/@nuxt/modules@latest/modules.json")).filter(a=>!D.includes(a.npm)&&a.compatibility.nuxt.includes("^3")))}function ve(){return Y("installed-modules",()=>{const l=Z(),a=de();return ee(()=>(l.value?._installedModules||[]).map(e=>{if(!e.entryPath)return;const n=e.entryPath&&te(e.entryPath),i=e.meta?.name?e.meta?.name:e.entryPath?n?ae(e.entryPath):l.value?.rootDir?se(e.entryPath,l.value?.rootDir).path:void 0:void 0,y=l.value?.modules?.includes(i),k=a.value?.find(c=>c.npm===i)||a.value?.find(c=>c.name===i);return{name:i,isPackageModule:n,isUninstallable:y,info:k,...e}}).filter(e=>e&&(!e.name||!D.includes(e.name))))})}export{ge as _,de as a,ve as u};
@@ -1 +1 @@
1
- import{_ as O}from"./NCodeBlock.vue.cd0d52ca.js";import{d as B,bk as N,e as R,av as D,o as n,m as a,k as c,F as f,n as V,E as _,f as s,t as $,i as m,j as b,v,h as E,p as i,C as F,r as k,J as r,bl as h,bm as y}from"./entry.102d44fe.js";const T={key:0,relative:"","n-code-block":""},W={flex:"~ wrap","w-full":""},j=["onClick"],z=c("div",{border:"b base","flex-auto":""},null,-1),J={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},K=B({__name:"CodeSnippets",props:{codeSnippets:{}},setup(o){const p=o,e=N(p.codeSnippets[0]),w=R();return D(()=>{p.codeSnippets.includes(e.value)||(e.value=p.codeSnippets[0])}),(l,d)=>{const x=O,u=F;return l.codeSnippets.length?(n(),a("div",T,[c("div",W,[(n(!0),a(f,null,V(l.codeSnippets,(t,S)=>(n(),a("button",{key:S,px4:"",py2:"",border:"r base",hover:"bg-active",class:_(t===s(e)?"":"border-b"),onClick:G=>e.value=t},[c("div",{class:_(t===s(e)?"":"op30"),"font-mono":""},$(t.name),3)],10,j))),128)),z]),s(e)?(n(),a(f,{key:0},[m(x,{code:s(e).code,lang:s(e).lang,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),c("div",J,[m(u,{icon:"carbon-copy",onClick:d[0]||(d[0]=t=>s(w)(s(e).code))},{default:b(()=>[v(" Copy ")]),_:1}),s(e)?.docs?(n(),E(u,{key:0,to:s(e).docs,target:"_blank",icon:"carbon-catalog"},{default:b(()=>[v(" Docs ")]),_:1},8,["to"])):i("",!0)])],64)):i("",!0)])):i("",!0)}}}),g=k(await r.getOptions("assets")),L=h(g);y(g,async o=>{r.updateOptions("assets",o)},{deep:!0,flush:"post",debounce:500,maxWait:1e3});const C=k(await r.getOptions("serverRoutes")),q=h(C);y(C,async o=>{r.updateOptions("serverRoutes",o)},{deep:!0,flush:"post",debounce:500,maxWait:1e3});const A={serverRoutes:q,assets:L};function M(o){return A[o]}export{K as _,M as u};
1
+ import{_ as O}from"./NCodeBlock.vue.28dd841e.js";import{d as B,bk as N,e as R,av as D,o as n,m as a,k as c,F as f,n as V,E as _,f as s,t as $,i as m,j as b,v,h as E,p as i,C as F,r as k,J as r,bl as h,bm as y}from"./entry.2f74e286.js";const T={key:0,relative:"","n-code-block":""},W={flex:"~ wrap","w-full":""},j=["onClick"],z=c("div",{border:"b base","flex-auto":""},null,-1),J={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},K=B({__name:"CodeSnippets",props:{codeSnippets:{}},setup(o){const p=o,e=N(p.codeSnippets[0]),w=R();return D(()=>{p.codeSnippets.includes(e.value)||(e.value=p.codeSnippets[0])}),(l,d)=>{const x=O,u=F;return l.codeSnippets.length?(n(),a("div",T,[c("div",W,[(n(!0),a(f,null,V(l.codeSnippets,(t,S)=>(n(),a("button",{key:S,px4:"",py2:"",border:"r base",hover:"bg-active",class:_(t===s(e)?"":"border-b"),onClick:G=>e.value=t},[c("div",{class:_(t===s(e)?"":"op30"),"font-mono":""},$(t.name),3)],10,j))),128)),z]),s(e)?(n(),a(f,{key:0},[m(x,{code:s(e).code,lang:s(e).lang,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),c("div",J,[m(u,{icon:"carbon-copy",onClick:d[0]||(d[0]=t=>s(w)(s(e).code))},{default:b(()=>[v(" Copy ")]),_:1}),s(e)?.docs?(n(),E(u,{key:0,to:s(e).docs,target:"_blank",icon:"carbon-catalog"},{default:b(()=>[v(" Docs ")]),_:1},8,["to"])):i("",!0)])],64)):i("",!0)])):i("",!0)}}}),g=k(await r.getOptions("assets")),L=h(g);y(g,async o=>{r.updateOptions("assets",o)},{deep:!0,flush:"post",debounce:500,maxWait:1e3});const C=k(await r.getOptions("serverRoutes")),q=h(C);y(C,async o=>{r.updateOptions("serverRoutes",o)},{deep:!0,flush:"post",debounce:500,maxWait:1e3});const A={serverRoutes:q,assets:L};function M(o){return A[o]}export{K as _,M as u};
@@ -1 +1 @@
1
- import{d as O,N as ae,r as U,O as E,bo as P,aw as oe,w as se,av as le,W as re,a as ue,J as f,K as k,f as t,o as l,h as _,j as u,k as r,i as d,l as j,m as i,F as w,n as D,t as b,E as T,aa as A,v as c,p as F,ap as ie,H as ce,b7 as de,ab as pe,bp as _e,bq as z,_ as me,U as fe,a0 as ve,C as ye,ak as ge,A as he,R as ke,aB as be}from"./entry.102d44fe.js";import{_ as xe}from"./NSelect.vue.120a17c7.js";import{_ as we}from"./NLink.vue.2bd59538.js";import{_ as Ce}from"./FilepathItem.vue.222c7a36.js";import{U as Ke}from"./json-editor-vue.28570b6b.js";const Se={class:"h-[48px] flex items-center justify-between gap1 px-3"},$e={class:"w-full text-sm"},Ve=["value"],Ne=["onClick"],Ie=r("div",{"x-divider":""},null,-1),Ue={key:0,"h-full":"","of-hidden":"",flex:"~ col"},je={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},De={class:"flex items-center gap-4"},Ae={key:1},Be=["onKeyup"],Le=r("br",null,null,-1),Me={key:0,op50:""},qe={key:1},Re=r("code",null,"nitro.storage",-1),Ee=r("br",null,null,-1),Pe={"font-bold":""},Te=r("br",null,null,-1),Fe={"text-sm":""},ze=r("br",null,null,-1),Oe=O({__name:"StorageDetails",async setup(W){let p,g;const C=_e(),h=ae(),x=U(""),v=U(""),s=E("storage:current",""),e=U(),y=E("storage:file:state",""),{data:K}=([p,g]=P(()=>z("storageMounts",()=>f.getStorageMounts())),p=await p,g(),p),{data:S,refresh:B}=([p,g]=P(async()=>z("storageKeys",async()=>s.value?await f.getStorageKeys(s.value):[])),p=await p,g(),p),G=C.hook("storage:key:update",async(n,a)=>{if(!(!s.value||n.split(":")[0]!==s.value)&&(await B(),y.value===n)){if(a==="remove")return h.replace({query:{storage:s.value}});await V(y.value)}});oe(G),se(s,()=>{B(),y.value=""}),le(async()=>{if(!y.value){e.value=null;return}V(y.value)}),re("keydown",n=>{n.key==="s"&&(n.ctrlKey||n.metaKey)&&(N(),n.preventDefault())});function $(n){return n.replace(`${s.value}:`,"")}const H=ue(()=>S.value?S.value.filter(n=>n.includes(x.value)):[]);async function V(n){const a=await f.getStorageItem(await k(),n);e.value={key:n,updatedKey:$(n),editingKey:!1,content:a,updatedContent:a}}async function J(){if(!v.value||!s.value)return;const n=`${s.value}:${v.value}`;S.value?.includes(n)||await f.setStorageItem(await k(),n,""),h.replace({query:{storage:s.value,key:n}}),v.value=""}async function N(){e.value&&(await f.setStorageItem(await k(),e.value.key,e.value.updatedContent),await V(e.value.key))}async function Q(){!e.value||!s.value||(await f.removeStorageItem(await k(),e.value.key),e.value=null)}async function X(){if(!e.value||!s.value)return;const n=`${s.value}:${e.value.updatedKey}`,a=await k();await f.setStorageItem(a,n,e.value.updatedContent),await f.removeStorageItem(a,e.value.key),h.replace({query:{storage:s.value,key:n}})}return(n,a)=>{const Y=me,Z=xe,I=fe,ee=ve,L=ye,M=we,q=ge,R=he,te=ke,ne=Ce;return t(s)?(l(),_(te,{key:0,"storage-key":"tab-storage"},{left:u(()=>[r("div",Se,[d(Y,{icon:"carbon-chevron-left","ml--1":"",onClick:a[0]||(a[0]=o=>s.value="")}),r("div",$e,[d(Z,{modelValue:t(s),"onUpdate:modelValue":a[1]||(a[1]=o=>j(s)?s.value=o:null),n:"primary",icon:"carbon-data-base"},{default:u(()=>[(l(!0),i(w,null,D(t(K),(o,m)=>(l(),i("option",{key:m,value:m},b(m),9,Ve))),128))]),_:1},8,["modelValue"])])]),d(I,{modelValue:t(x),"onUpdate:modelValue":a[2]||(a[2]=o=>j(x)?x.value=o:null),icon:"carbon-search",placeholder:"Search...",n:"primary sm",border:"y x-none base! rounded-0",class:"w-full py2 ring-0!"},null,8,["modelValue"]),(l(!0),i(w,null,D(t(H),o=>(l(),i(w,{key:o},[r("button",{block:"","w-full":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:T(o===t(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:m=>y.value=o},b($(o)),11,Ne),Ie],64))),128)),d(I,{modelValue:t(v),"onUpdate:modelValue":a[3]||(a[3]=o=>j(v)?v.value=o:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:A(J,["enter"])},null,8,["modelValue","onKeyup"])]),right:u(()=>[t(e)?.key?(l(),i("div",Ue,[r("div",je,[r("div",De,[t(e).editingKey?(l(),_(I,{key:0,modelValue:t(e).updatedKey,"onUpdate:modelValue":a[4]||(a[4]=o=>t(e).updatedKey=o),onKeyup:A(X,["enter"])},null,8,["modelValue","onKeyup"])):(l(),i("code",Ae,[c(b($(t(e).key))+" ",1),d(ee,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:a[5]||(a[5]=o=>t(e).editingKey=!0)})])),t(e).editingKey?F("",!0):(l(),_(L,{key:2,n:"green xs",disabled:t(e).content===t(e).updatedContent,class:T({"border-green":t(e).content!==t(e).updatedContent}),onClick:N},{default:u(()=>[c(" Save ")]),_:1},8,["disabled","class"]))]),r("div",null,[d(L,{n:"red xs",onClick:Q},{default:u(()=>[c(" Delete ")]),_:1})])]),typeof t(e).content=="object"?(l(),_(t(Ke),ie({key:0,modelValue:t(e).updatedContent,"onUpdate:modelValue":a[6]||(a[6]=o=>t(e).updatedContent=o),class:[[n.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},n.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):ce((l(),i("textarea",{key:1,"onUpdate:modelValue":a[7]||(a[7]=o=>t(e).updatedContent=o),placeholder:"Item value...",class:"h-full of-auto p-4 text-sm font-mono outline-none",onKeyup:A(de(N,["ctrl"]),["enter"])},null,40,Be)),[[pe,t(e).updatedContent]])])):(l(),_(R,{key:1},{default:u(()=>[d(q,{px6:"",py4:""},{default:u(()=>[c(" Select one key to start."),Le,c("Learn more about "),d(M,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[c(" Nitro storage ")]),_:1})]),_:1})]),_:1}))]),_:1})):(l(),_(R,{key:1},{default:u(()=>[Object.keys(t(K)).length?(l(),i("p",Me," Select one storage to start: ")):(l(),i("p",qe,[c(" No custom storage defined in "),Re,c("."),Ee,c(" Learn more about "),d(M,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[c(" Nitro storage ")]),_:1})])),(l(!0),i(w,null,D(t(K),(o,m)=>(l(),_(q,{key:m,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:We=>s.value=m},{default:u(()=>[r("span",Pe,b(m),1),Te,r("span",Fe,b(o.driver)+" driver",1),ze,o.base?(l(),_(ne,{key:0,"text-xs":"",filepath:o.base},null,8,["filepath"])):F("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}}),Ye=O({__name:"storage",setup(W){return(p,g)=>{const C=Oe,h=be;return l(),_(h,null,{default:u(()=>[d(C)]),_:1})}}});export{Ye as default};
1
+ import{d as O,N as ae,r as U,O as E,bo as P,aw as oe,w as se,av as le,W as re,a as ue,J as f,K as k,f as t,o as l,h as _,j as u,k as r,i as d,l as j,m as i,F as w,n as D,t as b,E as T,aa as A,v as c,p as F,ap as ie,H as ce,b7 as de,ab as pe,bp as _e,bq as z,_ as me,U as fe,a0 as ve,C as ye,ak as ge,A as he,R as ke,aB as be}from"./entry.2f74e286.js";import{_ as xe}from"./NSelect.vue.60befa30.js";import{_ as we}from"./NLink.vue.19da93af.js";import{_ as Ce}from"./FilepathItem.vue.253590ec.js";import{U as Ke}from"./json-editor-vue.87488a70.js";const Se={class:"h-[48px] flex items-center justify-between gap1 px-3"},$e={class:"w-full text-sm"},Ve=["value"],Ne=["onClick"],Ie=r("div",{"x-divider":""},null,-1),Ue={key:0,"h-full":"","of-hidden":"",flex:"~ col"},je={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},De={class:"flex items-center gap-4"},Ae={key:1},Be=["onKeyup"],Le=r("br",null,null,-1),Me={key:0,op50:""},qe={key:1},Re=r("code",null,"nitro.storage",-1),Ee=r("br",null,null,-1),Pe={"font-bold":""},Te=r("br",null,null,-1),Fe={"text-sm":""},ze=r("br",null,null,-1),Oe=O({__name:"StorageDetails",async setup(W){let p,g;const C=_e(),h=ae(),x=U(""),v=U(""),s=E("storage:current",""),e=U(),y=E("storage:file:state",""),{data:K}=([p,g]=P(()=>z("storageMounts",()=>f.getStorageMounts())),p=await p,g(),p),{data:S,refresh:B}=([p,g]=P(async()=>z("storageKeys",async()=>s.value?await f.getStorageKeys(s.value):[])),p=await p,g(),p),G=C.hook("storage:key:update",async(n,a)=>{if(!(!s.value||n.split(":")[0]!==s.value)&&(await B(),y.value===n)){if(a==="remove")return h.replace({query:{storage:s.value}});await V(y.value)}});oe(G),se(s,()=>{B(),y.value=""}),le(async()=>{if(!y.value){e.value=null;return}V(y.value)}),re("keydown",n=>{n.key==="s"&&(n.ctrlKey||n.metaKey)&&(N(),n.preventDefault())});function $(n){return n.replace(`${s.value}:`,"")}const H=ue(()=>S.value?S.value.filter(n=>n.includes(x.value)):[]);async function V(n){const a=await f.getStorageItem(await k(),n);e.value={key:n,updatedKey:$(n),editingKey:!1,content:a,updatedContent:a}}async function J(){if(!v.value||!s.value)return;const n=`${s.value}:${v.value}`;S.value?.includes(n)||await f.setStorageItem(await k(),n,""),h.replace({query:{storage:s.value,key:n}}),v.value=""}async function N(){e.value&&(await f.setStorageItem(await k(),e.value.key,e.value.updatedContent),await V(e.value.key))}async function Q(){!e.value||!s.value||(await f.removeStorageItem(await k(),e.value.key),e.value=null)}async function X(){if(!e.value||!s.value)return;const n=`${s.value}:${e.value.updatedKey}`,a=await k();await f.setStorageItem(a,n,e.value.updatedContent),await f.removeStorageItem(a,e.value.key),h.replace({query:{storage:s.value,key:n}})}return(n,a)=>{const Y=me,Z=xe,I=fe,ee=ve,L=ye,M=we,q=ge,R=he,te=ke,ne=Ce;return t(s)?(l(),_(te,{key:0,"storage-key":"tab-storage"},{left:u(()=>[r("div",Se,[d(Y,{icon:"carbon-chevron-left","ml--1":"",onClick:a[0]||(a[0]=o=>s.value="")}),r("div",$e,[d(Z,{modelValue:t(s),"onUpdate:modelValue":a[1]||(a[1]=o=>j(s)?s.value=o:null),n:"primary",icon:"carbon-data-base"},{default:u(()=>[(l(!0),i(w,null,D(t(K),(o,m)=>(l(),i("option",{key:m,value:m},b(m),9,Ve))),128))]),_:1},8,["modelValue"])])]),d(I,{modelValue:t(x),"onUpdate:modelValue":a[2]||(a[2]=o=>j(x)?x.value=o:null),icon:"carbon-search",placeholder:"Search...",n:"primary sm",border:"y x-none base! rounded-0",class:"w-full py2 ring-0!"},null,8,["modelValue"]),(l(!0),i(w,null,D(t(H),o=>(l(),i(w,{key:o},[r("button",{block:"","w-full":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:T(o===t(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:m=>y.value=o},b($(o)),11,Ne),Ie],64))),128)),d(I,{modelValue:t(v),"onUpdate:modelValue":a[3]||(a[3]=o=>j(v)?v.value=o:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:A(J,["enter"])},null,8,["modelValue","onKeyup"])]),right:u(()=>[t(e)?.key?(l(),i("div",Ue,[r("div",je,[r("div",De,[t(e).editingKey?(l(),_(I,{key:0,modelValue:t(e).updatedKey,"onUpdate:modelValue":a[4]||(a[4]=o=>t(e).updatedKey=o),onKeyup:A(X,["enter"])},null,8,["modelValue","onKeyup"])):(l(),i("code",Ae,[c(b($(t(e).key))+" ",1),d(ee,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:a[5]||(a[5]=o=>t(e).editingKey=!0)})])),t(e).editingKey?F("",!0):(l(),_(L,{key:2,n:"green xs",disabled:t(e).content===t(e).updatedContent,class:T({"border-green":t(e).content!==t(e).updatedContent}),onClick:N},{default:u(()=>[c(" Save ")]),_:1},8,["disabled","class"]))]),r("div",null,[d(L,{n:"red xs",onClick:Q},{default:u(()=>[c(" Delete ")]),_:1})])]),typeof t(e).content=="object"?(l(),_(t(Ke),ie({key:0,modelValue:t(e).updatedContent,"onUpdate:modelValue":a[6]||(a[6]=o=>t(e).updatedContent=o),class:[[n.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},n.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):ce((l(),i("textarea",{key:1,"onUpdate:modelValue":a[7]||(a[7]=o=>t(e).updatedContent=o),placeholder:"Item value...",class:"h-full of-auto p-4 text-sm font-mono outline-none",onKeyup:A(de(N,["ctrl"]),["enter"])},null,40,Be)),[[pe,t(e).updatedContent]])])):(l(),_(R,{key:1},{default:u(()=>[d(q,{px6:"",py4:""},{default:u(()=>[c(" Select one key to start."),Le,c("Learn more about "),d(M,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[c(" Nitro storage ")]),_:1})]),_:1})]),_:1}))]),_:1})):(l(),_(R,{key:1},{default:u(()=>[Object.keys(t(K)).length?(l(),i("p",Me," Select one storage to start: ")):(l(),i("p",qe,[c(" No custom storage defined in "),Re,c("."),Ee,c(" Learn more about "),d(M,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[c(" Nitro storage ")]),_:1})])),(l(!0),i(w,null,D(t(K),(o,m)=>(l(),_(q,{key:m,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:We=>s.value=m},{default:u(()=>[r("span",Pe,b(m),1),Te,r("span",Fe,b(o.driver)+" driver",1),ze,o.base?(l(),_(ne,{key:0,"text-xs":"",filepath:o.base},null,8,["filepath"])):F("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}}),Ye=O({__name:"storage",setup(W){return(p,g)=>{const C=Oe,h=be;return l(),_(h,null,{default:u(()=>[d(C)]),_:1})}}});export{Ye as default};
@@ -1,4 +1,4 @@
1
- import{d as ae,r as he,ai as Se,W as me,J as re,K as Ce,o as Q,m as ie,k as te,i as de,f as J,h as se,p as oe,t as ne,F as _e,bp as be,_ as ue,br as ye,P as we,a as Ee,av as Le,n as ke,E as ce,b7 as Re,v as le,a0 as De,j as Ae,aB as xe}from"./entry.102d44fe.js";var fe={exports:{}};(function(ee,Z){(function(X,q){ee.exports=q()})(self,()=>(()=>{var X={4567:function(M,s,a){var h=this&&this.__decorate||function(t,n,c,v){var g,o=arguments.length,S=o<3?n:v===null?v=Object.getOwnPropertyDescriptor(n,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(t,n,c,v);else for(var C=t.length-1;C>=0;C--)(g=t[C])&&(S=(o<3?g(S):o>3?g(n,c,S):g(n,c))||S);return o>3&&S&&Object.defineProperty(n,c,S),S},u=this&&this.__param||function(t,n){return function(c,v){n(c,v,t)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const d=a(9042),_=a(6114),p=a(9924),f=a(844),l=a(5596),e=a(4725),r=a(3656);let i=class extends f.Disposable{constructor(t,n){super(),this._terminal=t,this._renderService=n,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let c=0;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);if(this._topBoundaryFocusListener=c=>this._handleBoundaryFocus(c,0),this._bottomBoundaryFocusListener=c=>this._handleBoundaryFocus(c,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new p.TimeBasedDebouncer(this._announceCharacters.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._liveRegionDebouncer),this.register(this._terminal.onResize(c=>this._handleResize(c.rows))),this.register(this._terminal.onRender(c=>this._refreshRows(c.start,c.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(c=>this._handleChar(c))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
1
+ import{d as ae,r as he,ai as Se,W as me,J as re,K as Ce,o as Q,m as ie,k as te,i as de,f as J,h as se,p as oe,t as ne,F as _e,bp as be,_ as ue,br as ye,P as we,a as Ee,av as Le,n as ke,E as ce,b7 as Re,v as le,a0 as De,j as Ae,aB as xe}from"./entry.2f74e286.js";var fe={exports:{}};(function(ee,Z){(function(X,q){ee.exports=q()})(self,()=>(()=>{var X={4567:function(M,s,a){var h=this&&this.__decorate||function(t,n,c,v){var g,o=arguments.length,S=o<3?n:v===null?v=Object.getOwnPropertyDescriptor(n,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(t,n,c,v);else for(var C=t.length-1;C>=0;C--)(g=t[C])&&(S=(o<3?g(S):o>3?g(n,c,S):g(n,c))||S);return o>3&&S&&Object.defineProperty(n,c,S),S},u=this&&this.__param||function(t,n){return function(c,v){n(c,v,t)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const d=a(9042),_=a(6114),p=a(9924),f=a(844),l=a(5596),e=a(4725),r=a(3656);let i=class extends f.Disposable{constructor(t,n){super(),this._terminal=t,this._renderService=n,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let c=0;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);if(this._topBoundaryFocusListener=c=>this._handleBoundaryFocus(c,0),this._bottomBoundaryFocusListener=c=>this._handleBoundaryFocus(c,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new p.TimeBasedDebouncer(this._announceCharacters.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._liveRegionDebouncer),this.register(this._terminal.onResize(c=>this._handleResize(c.rows))),this.register(this._terminal.onRender(c=>this._refreshRows(c.start,c.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(c=>this._handleChar(c))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
2
2
  `))),this.register(this._terminal.onA11yTab(c=>this._handleTab(c))),this.register(this._terminal.onKey(c=>this._handleKey(c.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new l.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,r.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,f.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(t){for(let n=0;n<t;n++)this._handleChar(" ")}_handleChar(t){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==t&&(this._charsToAnnounce+=t):this._charsToAnnounce+=t,t===`
3
3
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=d.tooMuchOutput)),_.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,_.isMac&&this._liveRegion.remove()}_handleKey(t){this._clearLiveRegion(),/\p{Control}/u.test(t)||this._charsToConsume.push(t)}_refreshRows(t,n){this._liveRegionDebouncer.refresh(t,n,this._terminal.rows)}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(t,n){const c=t.target,v=this._rowElements[n===0?1:this._rowElements.length-2];if(c.getAttribute("aria-posinset")===(n===0?"1":`${this._terminal.buffer.lines.length}`)||t.relatedTarget!==v)return;let g,o;if(n===0?(g=c,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(g=this._rowElements.shift(),o=c,this._rowContainer.removeChild(g)),g.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),n===0){const S=this._createAccessibilityTreeNode();this._rowElements.unshift(S),this._rowContainer.insertAdjacentElement("afterbegin",S)}else{const S=this._createAccessibilityTreeNode();this._rowElements.push(S),this._rowContainer.appendChild(S)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(n===0?-1:1),this._rowElements[n===0?1:this._rowElements.length-2].focus(),t.preventDefault(),t.stopImmediatePropagation()}_handleResize(t){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let n=this._rowContainer.children.length;n<this._terminal.rows;n++)this._rowElements[n]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[n]);for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const t=document.createElement("div");return t.setAttribute("role","listitem"),t.tabIndex=-1,this._refreshRowDimensions(t),t}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let t=0;t<this._terminal.rows;t++)this._refreshRowDimensions(this._rowElements[t])}}_refreshRowDimensions(t){t.style.height=`${this._renderService.dimensions.css.cell.height}px`}};i=h([u(1,e.IRenderService)],i),s.AccessibilityManager=i},3614:(M,s)=>{function a(_){return _.replace(/\r?\n/g,"\r")}function h(_,p){return p?"\x1B[200~"+_+"\x1B[201~":_}function u(_,p,f){_=h(_=a(_),f.decPrivateModes.bracketedPasteMode),f.triggerDataEvent(_,!0),p.value=""}function d(_,p,f){const l=f.getBoundingClientRect(),e=_.clientX-l.left-10,r=_.clientY-l.top-10;p.style.width="20px",p.style.height="20px",p.style.left=`${e}px`,p.style.top=`${r}px`,p.style.zIndex="1000",p.focus()}Object.defineProperty(s,"__esModule",{value:!0}),s.rightClickHandler=s.moveTextAreaUnderMouseCursor=s.paste=s.handlePasteEvent=s.copyHandler=s.bracketTextForPaste=s.prepareTextForTerminal=void 0,s.prepareTextForTerminal=a,s.bracketTextForPaste=h,s.copyHandler=function(_,p){_.clipboardData&&_.clipboardData.setData("text/plain",p.selectionText),_.preventDefault()},s.handlePasteEvent=function(_,p,f){_.stopPropagation(),_.clipboardData&&u(_.clipboardData.getData("text/plain"),p,f)},s.paste=u,s.moveTextAreaUnderMouseCursor=d,s.rightClickHandler=function(_,p,f,l,e){d(_,p,f),e&&l.rightClickSelect(_),p.value=l.selectionText,p.select()}},7239:(M,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorContrastCache=void 0;const h=a(1505);s.ColorContrastCache=class{constructor(){this._color=new h.TwoKeyMap,this._css=new h.TwoKeyMap}setCss(u,d,_){this._css.set(u,d,_)}getCss(u,d){return this._css.get(u,d)}setColor(u,d,_){this._color.set(u,d,_)}getColor(u,d){return this._color.get(u,d)}clear(){this._color.clear(),this._css.clear()}}},3656:(M,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.addDisposableDomListener=void 0,s.addDisposableDomListener=function(a,h,u,d){a.addEventListener(h,u,d);let _=!1;return{dispose:()=>{_||(_=!0,a.removeEventListener(h,u,d))}}}},6465:function(M,s,a){var h=this&&this.__decorate||function(e,r,i,t){var n,c=arguments.length,v=c<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,r,i,t);else for(var g=e.length-1;g>=0;g--)(n=e[g])&&(v=(c<3?n(v):c>3?n(r,i,v):n(r,i))||v);return c>3&&v&&Object.defineProperty(r,i,v),v},u=this&&this.__param||function(e,r){return function(i,t){r(i,t,e)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Linkifier2=void 0;const d=a(2585),_=a(8460),p=a(844),f=a(3656);let l=class extends p.Disposable{constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new _.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new _.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,p.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,p.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}get currentLink(){return this._currentLink}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const r=this._linkProviders.indexOf(e);r!==-1&&this._linkProviders.splice(r,1)}}}attachToDom(e,r,i){this._element=e,this._mouseService=r,this._renderService=i,this.register((0,f.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,f.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,f.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,f.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const r=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!r)return;this._isMouseOut=!1;const i=e.composedPath();for(let t=0;t<i.length;t++){const n=i[t];if(n.classList.contains("xterm"))break;if(n.classList.contains("xterm-hover"))return}this._lastBufferCell&&r.x===this._lastBufferCell.x&&r.y===this._lastBufferCell.y||(this._handleHover(r),this._lastBufferCell=r)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(e,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,r){var i,t;this._activeProviderReplies&&r||((i=this._activeProviderReplies)===null||i===void 0||i.forEach(c=>{c?.forEach(v=>{v.link.dispose&&v.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let n=!1;for(const[c,v]of this._linkProviders.entries())r?!((t=this._activeProviderReplies)===null||t===void 0)&&t.get(c)&&(n=this._checkLinkProviderResult(c,e,n)):v.provideLinks(e.y,g=>{var o,S;if(this._isMouseOut)return;const C=g?.map(w=>({link:w}));(o=this._activeProviderReplies)===null||o===void 0||o.set(c,C),n=this._checkLinkProviderResult(c,e,n),((S=this._activeProviderReplies)===null||S===void 0?void 0:S.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,r){const i=new Set;for(let t=0;t<r.size;t++){const n=r.get(t);if(n)for(let c=0;c<n.length;c++){const v=n[c],g=v.link.range.start.y<e?0:v.link.range.start.x,o=v.link.range.end.y>e?this._bufferService.cols:v.link.range.end.x;for(let S=g;S<=o;S++){if(i.has(S)){n.splice(c--,1);break}i.add(S)}}}}_checkLinkProviderResult(e,r,i){var t;if(!this._activeProviderReplies)return i;const n=this._activeProviderReplies.get(e);let c=!1;for(let v=0;v<e;v++)this._activeProviderReplies.has(v)&&!this._activeProviderReplies.get(v)||(c=!0);if(!c&&n){const v=n.find(g=>this._linkAtPosition(g.link,r));v&&(i=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviders.length&&!i)for(let v=0;v<this._activeProviderReplies.size;v++){const g=(t=this._activeProviderReplies.get(v))===null||t===void 0?void 0:t.find(o=>this._linkAtPosition(o.link,r));if(g){i=!0,this._handleNewLink(g);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const r=this._positionFromMouseEvent(e,this._element,this._mouseService);r&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,r)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,r){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!r||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=r)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,p.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const r=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);r&&this._linkAtPosition(e.link,r)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var i,t;return(t=(i=this._currentLink)===null||i===void 0?void 0:i.state)===null||t===void 0?void 0:t.decorations.pointerCursor},set:i=>{var t,n;!((t=this._currentLink)===null||t===void 0)&&t.state&&this._currentLink.state.decorations.pointerCursor!==i&&(this._currentLink.state.decorations.pointerCursor=i,this._currentLink.state.isHovered&&((n=this._element)===null||n===void 0||n.classList.toggle("xterm-cursor-pointer",i)))}},underline:{get:()=>{var i,t;return(t=(i=this._currentLink)===null||i===void 0?void 0:i.state)===null||t===void 0?void 0:t.decorations.underline},set:i=>{var t,n,c;!((t=this._currentLink)===null||t===void 0)&&t.state&&((c=(n=this._currentLink)===null||n===void 0?void 0:n.state)===null||c===void 0?void 0:c.decorations.underline)!==i&&(this._currentLink.state.decorations.underline=i,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,i))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(i=>{if(!this._currentLink)return;const t=i.start===0?0:i.start+1+this._bufferService.buffer.ydisp,n=this._bufferService.buffer.ydisp+1+i.end;if(this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=n&&(this._clearCurrentLink(t,n),this._lastMouseEvent&&this._element)){const c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._askForLink(c,!1)}})))}_linkHover(e,r,i){var t;!((t=this._currentLink)===null||t===void 0)&&t.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(r,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),r.hover&&r.hover(i,r.text)}_fireUnderlineEvent(e,r){const i=e.range,t=this._bufferService.buffer.ydisp,n=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-t-1,i.end.x,i.end.y-t-1,void 0);(r?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(n)}_linkLeave(e,r,i){var t;!((t=this._currentLink)===null||t===void 0)&&t.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(r,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),r.leave&&r.leave(i,r.text)}_linkAtPosition(e,r){const i=e.range.start.y*this._bufferService.cols+e.range.start.x,t=e.range.end.y*this._bufferService.cols+e.range.end.x,n=r.y*this._bufferService.cols+r.x;return i<=n&&n<=t}_positionFromMouseEvent(e,r,i){const t=i.getCoords(e,r,this._bufferService.cols,this._bufferService.rows);if(t)return{x:t[0],y:t[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,r,i,t,n){return{x1:e,y1:r,x2:i,y2:t,cols:this._bufferService.cols,fg:n}}};l=h([u(0,d.IBufferService)],l),s.Linkifier2=l},9042:(M,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.tooMuchOutput=s.promptLabel=void 0,s.promptLabel="Terminal input",s.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(M,s,a){var h=this&&this.__decorate||function(l,e,r,i){var t,n=arguments.length,c=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(l,e,r,i);else for(var v=l.length-1;v>=0;v--)(t=l[v])&&(c=(n<3?t(c):n>3?t(e,r,c):t(e,r))||c);return n>3&&c&&Object.defineProperty(e,r,c),c},u=this&&this.__param||function(l,e){return function(r,i){e(r,i,l)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkProvider=void 0;const d=a(511),_=a(2585);let p=class{constructor(l,e,r){this._bufferService=l,this._optionsService=e,this._oscLinkService=r}provideLinks(l,e){var r;const i=this._bufferService.buffer.lines.get(l-1);if(!i)return void e(void 0);const t=[],n=this._optionsService.rawOptions.linkHandler,c=new d.CellData,v=i.getTrimmedLength();let g=-1,o=-1,S=!1;for(let C=0;C<v;C++)if(o!==-1||i.hasContent(C)){if(i.loadCell(C,c),c.hasExtendedAttrs()&&c.extended.urlId){if(o===-1){o=C,g=c.extended.urlId;continue}S=c.extended.urlId!==g}else o!==-1&&(S=!0);if(S||o!==-1&&C===v-1){const w=(r=this._oscLinkService.getLinkData(g))===null||r===void 0?void 0:r.uri;if(w){const y={start:{x:o+1,y:l},end:{x:C+(S||C!==v-1?0:1),y:l}};let D=!1;if(!n?.allowNonHttpProtocols)try{const B=new URL(w);["http:","https:"].includes(B.protocol)||(D=!0)}catch{D=!0}D||t.push({text:w,range:y,activate:(B,H)=>n?n.activate(B,H,y):f(0,H),hover:(B,H)=>{var O;return(O=n?.hover)===null||O===void 0?void 0:O.call(n,B,H,y)},leave:(B,H)=>{var O;return(O=n?.leave)===null||O===void 0?void 0:O.call(n,B,H,y)}})}S=!1,c.hasExtendedAttrs()&&c.extended.urlId?(o=C,g=c.extended.urlId):(o=-1,g=-1)}}e(t)}};function f(l,e){if(confirm(`Do you want to navigate to ${e}?
4
4
 
@@ -1,4 +1,4 @@
1
- import{d as N,a as D,aC as M,o as s,m as c,k as e,a3 as I,f as a,t as y,a8 as j,F as b,n as L,h as g,r as T,w as Y,au as Z,W,bs as K,p as $,i as m,E as O,q as X,e as Q,al as G,j as h,ap as P,v as t,C as z,a7 as H,aE as ee,aP as ne,a5 as te,aO as oe,_ as J,aq as se,bt as le,L as ae,a6 as ie,A as re,J as R,V as ce}from"./entry.102d44fe.js";import{_ as V}from"./DurationDisplay.vue.dca5d690.js";import{_ as q}from"./Badge.3c6fa035.js";import{_ as ue}from"./ComposableItem.vue.ffcca591.js";import{U as de}from"./json-editor-vue.28570b6b.js";import{_ as pe}from"./FilepathItem.vue.222c7a36.js";import{_ as fe}from"./LaunchPage.vue.ded97a46.js";import{_ as me}from"./NLink.vue.2bd59538.js";import{_ as _e}from"./CodeDiff.vue.7a519a6d.js";import{_ as ye}from"./HelpFab.vue.6da14cd2.js";import"./NMarkdown.vue.0929ffc5.js";import"./client.ecec2ff5.js";import"./constants.4e5eba24.js";import"./NCodeBlock.vue.cd0d52ca.js";const ve=N({__name:"TimelineItemFunction",props:{item:{}},setup(v){const d=v,u=D(()=>M(d.item.name,50,60,"_op_")),n=D(()=>u.value.replace(/_op_/,"1")),l=D(()=>M(d.item.name,50,40)),i=D(()=>u.value.replace(/_op_/,"0.2"));return(p,o)=>(s(),c("button",{class:"group",style:I({color:a(n),borderLeft:`2px solid ${a(n)}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[e("div",{style:I({backgroundColor:a(i)}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),e("div",{style:I({color:a(l),"--c":a(n)}),border:"r-2 t-2 y-2 transparent","min-w-max":"",px1:"","text-left":"","group-hover":"border-$c"},y(p.item.name),5)],4))}}),he={relative:"","h-full":""},be={absolute:"","left-2":"","top-2.3em":"","text-xs":"",op50:""},ge=N({__name:"TimelineSegment",props:{segment:{}},emits:["select"],setup(v,{emit:d}){const u=v,n=j(()=>u.segment.start,{updateInterval:1e3,showSecond:!0,messages:{justNow:"",past:l=>l,future:l=>l,invalid:"-",second:l=>l?`${l}s`:"",minute:l=>`${l}m`,hour:l=>`${l}h`,week:l=>`${l}w`,day:l=>`${l}d`,month:l=>`${l}mo`,year:l=>`${l}y`}});return(l,i)=>{const p=ve;return s(),c("div",he,[e("button",{absolute:"","left-0":"","right-0":"","top-0":"","bg-green:5":"",px2:"",py1:"","text-left":"","text-xs":"","font-mono":"","text-green6":"",onClick:i[0]||(i[0]=o=>l.segment.route?d("select",l.segment.route):void 0)},y(l.segment.route?.event.to),1),e("div",be,y(a(n))+" ago ",1),e("div",null,[(s(!0),c(b,null,L(l.segment.functions,(o,r)=>(s(),g(p,{key:r,item:o.event,style:I({position:"absolute",minWidth:`${o.relativeWidth*100}%`,maxWidth:`${o.relativeWidth*100}%`,top:`${4+o.layer*1.6}em`,left:`${o.relativeStart*100}%`}),onClick:f=>d("select",o)},null,8,["item","style","onClick"]))),128))])])}}}),$e=3e3,xe=50;function ke(v){const d=[];let u={start:0,end:0,events:[],functions:[],duration:0};for(const n of v){const l=n.end||n.start;(n.start-u.end>$e||n.type==="route")&&(u={start:n.start,end:l,events:[],functions:[],duration:0},d.push(u)),u.events.push(n),u.end=l+xe}return d.forEach((n,l)=>{const i=n.end-n.start,p=[];n.duration=i,n.previousGap=l>0?n.start-d[l-1].end:0,n.events.forEach(o=>{const r=o.end||o.start;let f=0;o.type!=="route"&&(f=p.findIndex(k=>k<=o.start),f===-1?(f=p.length,p.push(r+1e3)):p[f]=r+1e3);const x={event:o,segment:n,relativeStart:(o.start-n.start)/i,relativeWidth:(r-o.start)/i,layer:f};o.type==="function"?n.functions.push(x):n.route=x})}),d}const we={relative:""},Ce={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":""},Te=N({__name:"TimelineTable",props:{data:{}},emits:["select"],setup(v,{emit:d}){const u=v,n=T(),l=T(),i=T(),p=T(),o=T(!0),r=T(1.5),f=D(()=>ke(u.data.events)),x=D(()=>(u.data.events.length,n.value?.scrollWidth||window.innerWidth));function k(){p.value&&(p.value.style.width=`${x.value}px`)}function B(){o.value&&n.value&&(n.value.scrollTo({left:n.value.scrollWidth-n.value.clientWidth,behavior:"smooth"}),i.value.scrollTo({left:n.value.scrollWidth-n.value.clientWidth,behavior:"smooth"}))}return Y(()=>u.data.events.length,async()=>{await Z(),k(),B()},{flush:"post"}),W(n,"scroll",()=>{i.value.scrollLeft!==n.value.scrollLeft&&(k(),i.value.scrollLeft=n.value.scrollLeft,o.value=n.value.scrollLeft>=n.value.scrollWidth-n.value.clientWidth)}),W(i,"scroll",()=>{i.value.scrollLeft!==n.value.scrollLeft&&(k(),n.value.scrollLeft=i.value.scrollLeft)}),W(n,"wheel",w=>{w.altKey?(r.value=K(r.value+w.deltaY/200,.5,3),k()):n.value.scrollLeft+=w.deltaY}),(w,F)=>{const C=V,S=ge;return s(),c(b,null,[e("div",we,[e("div",{ref_key:"minimap",ref:l,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(s(!0),c(b,null,L(a(f),(_,E)=>(s(),c("div",{key:E,relative:"","h-full":"","flex-inline":"",style:I({width:`${Math.max(100,_.duration/10)/a(x)*100}%`})},[(s(!0),c(b,null,L(_.functions,(A,U)=>(s(),c("div",{key:U,"h-3px":"",rounded:"",style:I({width:`max(${A.relativeWidth*100}%, 10px)`,position:"absolute",top:`${A.layer*4}px`,left:`${A.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in w?w.getHashColorFromString:a(M))(A.event.name,50,60)})},null,4))),128)),_.route?(s(),c("div",{key:0,absolute:"","top-0":"","h-full":"","w-px":"","border-l":"","border-green6":"",op10:"",style:I({left:`${_.route.relativeStart*100}%`})},null,4)):$("",!0)],4))),128))],512),e("div",{ref_key:"minimapScroller",ref:i,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[e("div",{ref_key:"minimapScrollerInner",ref:p,"h-1px":""},null,512)],512)]),e("div",{ref_key:"scroller",ref:n,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(s(!0),c(b,null,L(a(f),(_,E)=>(s(),c(b,{key:E},[_.previousGap&&_.previousGap>=200?(s(),c("div",Ce,[m(C,{op50:"",duration:_.previousGap,color:!1},null,8,["duration"])])):$("",!0),m(S,{"flex-inline":"","of-x-hidden":"","hover:of-x-visible":"","bg-base":"",class:O(E===a(f).length-1?"border-r border-base":""),segment:_,style:I({width:`${Math.max(50,_.duration/10)*a(r)}px`}),onSelect:F[0]||(F[0]=A=>d("select",A))},null,8,["class","segment","style"])],64))),128))],512)],64)}}});const Ne=X(Te,[["__scopeId","data-v-a2c475c0"]]),Se={border:"t base",flex:"~ col","h-full":"","of-y-auto":"","text-sm":""},Ae=["onClick"],De=e("div",{"i-carbon-function":"",op50:""},null,-1),Ie={flex:"~","font-mono":""},Fe=e("div",{op30:""}," ( ",-1),Le={key:0,mr2:"",op30:""},Be={op75:""},Ee=e("div",{op30:""}," ) ",-1),Me=e("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[e("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1),Ve={flex:"~ col items-start"},We={"text-xs":"","font-mono":"",op30:""},je={"font-bold":"","font-mono":"","text-green":""},Oe=e("div",{"flex-auto":""},null,-1),ze=e("div",{"min-h-100":""},null,-1),Re=N({__name:"TimelineList",props:{data:{}},emits:["select"],setup(v,{emit:d}){return(u,n)=>{const l=V;return s(),c("div",Se,[(s(!0),c(b,null,L(u.data.events,(i,p)=>(s(),c("button",{key:p,border:"b base",px3:"",py2:"",flex:"~ items-center gap-2",hover:"bg-active",onClick:o=>d("select",i)},[i.type==="function"?(s(),c(b,{key:0},[De,e("div",{"font-mono":"",style:I({color:i.type==="function"?("getHashColorFromString"in u?u.getHashColorFromString:a(M))(i.name,50,60):""})},y(i.name),5),e("div",Ie,[Fe,(s(!0),c(b,null,L(i.args,(o,r)=>(s(),c(b,{key:r},[p?(s(),c("div",Le," , ")):$("",!0),e("div",Be,y(o===null?"null":o===void 0?"undefined":typeof o=="function"?"[function]":Array.isArray(o)?"[Array]":typeof o=="object"?"[object]":JSON.stringify(o)),1)],64))),128)),Ee])],64)):(s(),c(b,{key:1},[Me,e("div",Ve,[e("div",We,y(i.from),1),e("div",je,y(i.to),1)])],64)),Oe,i.end?(s(),g(l,{key:2,duration:i.end-i.start,color:i.type==="function"},null,8,["duration","color"])):$("",!0)],8,Ae))),128)),ze])}}}),Ge={key:0,"text-blue":""},Pe={key:1,"text-purple":""},He={key:2,"text-green":""},Je={key:3,"text-gray":""},qe={key:4,"text-gray":""},Ue={key:5,"text-gray":""},Ye={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Ze={key:1},Ke={p2:"","text-sm":"",border:"t base"},Xe=N({__name:"TimelineArgumentView",props:{value:{}},setup(v){const d=v,u=T(),n=T();function l(){try{u.value=JSON.parse(JSON.stringify(d.value))}catch(o){console.error(o),n.value=o}}const i=N({emits:["setup"],setup(o,{emit:r}){return r("setup"),()=>null}}),p=Q();return(o,r)=>{const f=z,x=G("VMenu");return typeof o.value=="string"?(s(),c("div",Ge,y(JSON.stringify(o.value)),1)):typeof o.value=="number"?(s(),c("div",Pe,y(o.value),1)):typeof o.value=="boolean"?(s(),c("div",He,y(o.value),1)):typeof o.value>"u"?(s(),c("div",Je," undefined ")):typeof o.value=="function"?(s(),c("div",qe," [Function"+y(o.value.name?`: ${o.value.name}`:"")+"] ",1)):o.value===null?(s(),c("div",Ue," null ")):(s(),g(x,{key:6,placement:"top"},{popper:h(()=>[m(a(i),{onSetup:l}),a(n)?(s(),c("div",Ye," Failed to display object: "+y(a(n)),1)):a(u)?(s(),c("div",Ze,[m(a(de),P({"model-value":a(u)},o.$attrs,{class:["json-editor-vue",[o.$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"]),e("div",Ke,[m(f,{title:"Copy to clipboard",icon:"carbon-copy",onClick:r[0]||(r[0]=k=>a(p)(JSON.stringify(a(u),null,2)))},{default:h(()=>[t(" Copy ")]),_:1})])])):$("",!0)]),default:h(()=>[e("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:O([Array.isArray(o.value)?"text-amber bg-amber:10":"text-orange bg-orange:10"])},y(Array.isArray(o.value)?`[Array(${o.value.length})]`:"[Object]"),3)]),_:1}))}}}),Qe={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},en={"mx--1":""},nn={flex:"~ gap-1","font-mono":""},tn={key:1},on=e("span",{ml1:"",op30:""},"(",-1),sn={key:0,op30:""},ln=e("span",{op30:""},")",-1),an={flex:"~ gap-1","text-sm":""},rn=e("span",{mx1:"",op50:""},"·",-1),cn={class:"text-sm text-gray-400"},un={key:0,class:"text-xs text-gray-400",mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},dn={"text-right":""},pn={"ws-nowrap":""},fn=N({__name:"TimelineDetailsFunction",props:{record:{}},setup(v){const d=v,u=H(),n=j(()=>d.record.start,{showSecond:!0});function l(r){let f=new URL(r).pathname;return f.startsWith("/_nuxt/")&&(f=f.slice(6)),f.startsWith("/@id/virtual:nuxt:")?`#build/${f.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):f.includes("/@fs/")?`/${f.split("/@fs/")[1]}`:(u.value?.rootDir||"")+f}const i=ee(),p=D(()=>i.value?.metadata),o=D(()=>i.value?.imports.find(r=>r.as===d.record.name));return(r,f)=>{const x=q,k=ue,B=Xe,w=V,F=pe;return r.record?(s(),c("div",Qe,[e("div",en,[m(x,{"bg-yellow-600:10":"","text-yellow-600":"",op75:""},{default:h(()=>[t(" Function call ")]),_:1})]),e("div",nn,[a(o)?(s(),g(k,{key:0,item:a(o),metadata:a(p),counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(s(),c("span",tn,y(r.record.name),1)),on,(s(!0),c(b,null,L(r.record.args,(C,S)=>(s(),c(b,{key:S},[S?(s(),c("span",sn,", ")):$("",!0),m(B,{value:C},null,8,["value"])],64))),128)),ln]),e("div",an,[r.record.end?(s(),g(w,{key:0,duration:r.record.end-r.record.start},null,8,["duration"])):$("",!0),rn,e("div",cn,y(a(n)),1)]),r.record.stacktrace?(s(),c("div",un,[(s(!0),c(b,null,L(r.record.stacktrace,(C,S)=>(s(),c(b,{key:S},[e("div",dn,y(C.functionName||"(anonymous)"),1),e("div",pn,[C.fileName?(s(),g(F,{key:0,filepath:`${l(C.fileName)}:${C.lineNumber}:${C.columnNumber}`,subpath:""},null,8,["filepath"])):$("",!0)])],64))),128))])):$("",!0)])):$("",!0)}}}),mn={key:0,"p-4":"",flex:"~ col gap-2"},_n={"mx--1":""},yn={flex:"~ gap-1 items-center","font-mono":""},vn={op50:""},hn=e("span",{"i-carbon-arrow-right":"",op50:""},null,-1),bn={flex:"~ gap-1","text-sm":""},gn=e("span",{mx1:"",op50:""},"·",-1),$n={class:"text-sm text-gray-400"},xn=N({__name:"TimelineDetailsRoute",props:{record:{}},setup(v){const d=v,u=j(()=>d.record.start,{showSecond:!0});return(n,l)=>{const i=q,p=V;return n.record?(s(),c("div",mn,[e("div",_n,[m(i,{"bg-green-400:10":"","text-green-400":"",op50:""},{default:h(()=>[t(" Route Change ")]),_:1})]),e("div",yn,[e("span",vn,y(n.record.from),1),hn,e("span",null,y(n.record.to),1)]),e("div",bn,[n.record.end?(s(),g(p,{key:0,duration:n.record.end-n.record.start},null,8,["duration"])):$("",!0),gn,e("div",$n,y(a(u)),1)])])):$("",!0)}}}),kn={relative:"","h-full":"","w-full":"","of-auto":""},wn={inheritAttrs:!1},Cn=N({...wn,__name:"DrawerBottom",props:{modelValue:{type:Boolean},navbar:{},autoClose:{type:Boolean}},emits:["close"],setup(v,{emit:d}){const u=v,n=T();ne(n,()=>{u.modelValue&&u.autoClose&&d("close")},{ignore:["a","button","summary"]});const l=document.querySelector("#nuxt-devtools-side-nav")?.getBoundingClientRect().width;return(i,p)=>{const o=J;return s(),g(oe,{"enter-active-class":"duration-200 ease-in","enter-from-class":"transform translate-y-1/1","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100","leave-to-class":"transform translate-y-1/1"},{default:h(()=>[i.modelValue?(s(),c("div",P({key:0,ref_key:"el",ref:n,border:"t base",flex:"~ col gap-1",absolute:"","bottom-0":"","right-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","glass-effect":"",style:{left:`${a(l)}px`}},i.$attrs),[m(o,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",onClick:p[0]||(p[0]=r=>i.$emit("close"))}),e("div",kn,[te(i.$slots,"default")])],16)):$("",!0)]),_:3})}}}),Tn={key:0,"h-screen":"","of-hidden":""},Nn={"h-screen":"","w-full":"",flex:"","flex-col":""},Sn={"h-10":"",flex:"~ gap-2 items-center justify-end",p2:"",px3:""},An={"text-sm":""},Dn=e("div",{"flex-auto":""},null,-1),In={"min-h-50":"",px3:"",py2:""},Fn=N({__name:"TimelineView",setup(v){const d=se(),u=T("table"),n=T(),l=D(()=>d.value?.metrics.clientTimeline());function i(){l.value&&(l.value.events=[])}function p(){u.value=u.value==="table"?"list":"table"}return(o,r)=>{const f=G("VTooltip"),x=z,k=J,B=Ne,w=Re,F=fn,C=xn,S=Cn;return a(l)?(s(),c("div",Tn,[e("div",Nn,[e("div",Sn,[m(f,{flex:""},{popper:h(()=>[e("div",An,y(a(l).options.enabled?"Recording...":"Paused"),1)]),default:h(()=>[e("div",{"text-lg":"",class:O(a(l).options.enabled?"i-carbon-radio-button-checked text-primary animate-pulse":"i-carbon-pause-outline op30")},null,2)]),_:1}),a(l).options.enabled?(s(),g(x,{key:1,size:"small",ml1:"","text-sm":"",n:"orange",icon:"i-carbon-stop",onClick:r[1]||(r[1]=_=>a(l).options.enabled=!1)},{default:h(()=>[t(" Stop Tracking ")]),_:1})):(s(),g(x,{key:0,size:"small",ml1:"","text-sm":"",n:"primary",icon:"i-carbon-play",onClick:r[0]||(r[0]=_=>a(l).options.enabled=!0)},{default:h(()=>[t(" Start Tracking ")]),_:1})),Dn,m(k,{icon:a(u)==="table"?"i-carbon-roadmap":"i-carbon-list",class:"ml-2",title:"Toggle View",onClick:p},null,8,["icon"]),m(k,{icon:"i-carbon-trash-can","hover-text-red":"",class:"ml-2",onClick:i})]),a(u)==="table"?(s(),g(B,{key:0,data:{...a(l)},onSelect:r[2]||(r[2]=_=>n.value=_.event)},null,8,["data"])):(s(),g(w,{key:1,data:{...a(l)},onSelect:r[3]||(r[3]=_=>n.value=_)},null,8,["data"]))]),m(S,{"model-value":!!a(n),"auto-close":"",onClose:r[4]||(r[4]=_=>n.value=void 0)},{default:h(()=>[e("div",In,[a(n)?.type==="function"?(s(),g(F,{key:0,record:a(n)},null,8,["record"])):a(n)?.type==="route"?(s(),g(C,{key:1,record:a(n)},null,8,["record"])):$("",!0)])]),_:1},8,["model-value"])])):$("",!0)}}}),Ln={class:"markdown-body"},Bn=e("h1",null,"Timeline",-1),En=e("p",null,[e("blockquote",{"text-orange":"","bg-orange:10":"",py1:""}," This is an experimental feature ")],-1),Mn=e("p",null,"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.",-1),Vn=e("h2",null,"Function calls",-1),Wn=e("p",null,[t("Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through "),e("code",null,"import {} from '#imports'"),t(".")],-1),jn=e("pre",null,[e("code",{class:"language-html"},[e("div",{class:"shiki-container"},[e("pre",{class:"shiki vitesse-dark",style:{"background-color":"#121212",color:"#dbd7caee"},tabindex:"0"},[e("code",{"v-pre":""},[e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"<script setup>")]),t(`
1
+ import{d as N,a as D,aC as M,o as s,m as c,k as e,a3 as I,f as a,t as y,a8 as j,F as b,n as L,h as g,r as T,w as Y,au as Z,W,bs as K,p as $,i as m,E as O,q as X,e as Q,al as G,j as h,ap as P,v as t,C as z,a7 as H,aE as ee,aP as ne,a5 as te,aO as oe,_ as J,aq as se,bt as le,L as ae,a6 as ie,A as re,J as R,V as ce}from"./entry.2f74e286.js";import{_ as V}from"./DurationDisplay.vue.73c682ac.js";import{_ as q}from"./Badge.efa8b534.js";import{_ as ue}from"./ComposableItem.vue.1525d3d2.js";import{U as de}from"./json-editor-vue.87488a70.js";import{_ as pe}from"./FilepathItem.vue.253590ec.js";import{_ as fe}from"./LaunchPage.vue.45c2e269.js";import{_ as me}from"./NLink.vue.19da93af.js";import{_ as _e}from"./CodeDiff.vue.52d6bbaa.js";import{_ as ye}from"./HelpFab.vue.b3c1cf3a.js";import"./NMarkdown.vue.283d6615.js";import"./client.766a1bb7.js";import"./constants.4e5eba24.js";import"./NCodeBlock.vue.28dd841e.js";const ve=N({__name:"TimelineItemFunction",props:{item:{}},setup(v){const d=v,u=D(()=>M(d.item.name,50,60,"_op_")),n=D(()=>u.value.replace(/_op_/,"1")),l=D(()=>M(d.item.name,50,40)),i=D(()=>u.value.replace(/_op_/,"0.2"));return(p,o)=>(s(),c("button",{class:"group",style:I({color:a(n),borderLeft:`2px solid ${a(n)}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[e("div",{style:I({backgroundColor:a(i)}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),e("div",{style:I({color:a(l),"--c":a(n)}),border:"r-2 t-2 y-2 transparent","min-w-max":"",px1:"","text-left":"","group-hover":"border-$c"},y(p.item.name),5)],4))}}),he={relative:"","h-full":""},be={absolute:"","left-2":"","top-2.3em":"","text-xs":"",op50:""},ge=N({__name:"TimelineSegment",props:{segment:{}},emits:["select"],setup(v,{emit:d}){const u=v,n=j(()=>u.segment.start,{updateInterval:1e3,showSecond:!0,messages:{justNow:"",past:l=>l,future:l=>l,invalid:"-",second:l=>l?`${l}s`:"",minute:l=>`${l}m`,hour:l=>`${l}h`,week:l=>`${l}w`,day:l=>`${l}d`,month:l=>`${l}mo`,year:l=>`${l}y`}});return(l,i)=>{const p=ve;return s(),c("div",he,[e("button",{absolute:"","left-0":"","right-0":"","top-0":"","bg-green:5":"",px2:"",py1:"","text-left":"","text-xs":"","font-mono":"","text-green6":"",onClick:i[0]||(i[0]=o=>l.segment.route?d("select",l.segment.route):void 0)},y(l.segment.route?.event.to),1),e("div",be,y(a(n))+" ago ",1),e("div",null,[(s(!0),c(b,null,L(l.segment.functions,(o,r)=>(s(),g(p,{key:r,item:o.event,style:I({position:"absolute",minWidth:`${o.relativeWidth*100}%`,maxWidth:`${o.relativeWidth*100}%`,top:`${4+o.layer*1.6}em`,left:`${o.relativeStart*100}%`}),onClick:f=>d("select",o)},null,8,["item","style","onClick"]))),128))])])}}}),$e=3e3,xe=50;function ke(v){const d=[];let u={start:0,end:0,events:[],functions:[],duration:0};for(const n of v){const l=n.end||n.start;(n.start-u.end>$e||n.type==="route")&&(u={start:n.start,end:l,events:[],functions:[],duration:0},d.push(u)),u.events.push(n),u.end=l+xe}return d.forEach((n,l)=>{const i=n.end-n.start,p=[];n.duration=i,n.previousGap=l>0?n.start-d[l-1].end:0,n.events.forEach(o=>{const r=o.end||o.start;let f=0;o.type!=="route"&&(f=p.findIndex(k=>k<=o.start),f===-1?(f=p.length,p.push(r+1e3)):p[f]=r+1e3);const x={event:o,segment:n,relativeStart:(o.start-n.start)/i,relativeWidth:(r-o.start)/i,layer:f};o.type==="function"?n.functions.push(x):n.route=x})}),d}const we={relative:""},Ce={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":""},Te=N({__name:"TimelineTable",props:{data:{}},emits:["select"],setup(v,{emit:d}){const u=v,n=T(),l=T(),i=T(),p=T(),o=T(!0),r=T(1.5),f=D(()=>ke(u.data.events)),x=D(()=>(u.data.events.length,n.value?.scrollWidth||window.innerWidth));function k(){p.value&&(p.value.style.width=`${x.value}px`)}function B(){o.value&&n.value&&(n.value.scrollTo({left:n.value.scrollWidth-n.value.clientWidth,behavior:"smooth"}),i.value.scrollTo({left:n.value.scrollWidth-n.value.clientWidth,behavior:"smooth"}))}return Y(()=>u.data.events.length,async()=>{await Z(),k(),B()},{flush:"post"}),W(n,"scroll",()=>{i.value.scrollLeft!==n.value.scrollLeft&&(k(),i.value.scrollLeft=n.value.scrollLeft,o.value=n.value.scrollLeft>=n.value.scrollWidth-n.value.clientWidth)}),W(i,"scroll",()=>{i.value.scrollLeft!==n.value.scrollLeft&&(k(),n.value.scrollLeft=i.value.scrollLeft)}),W(n,"wheel",w=>{w.altKey?(r.value=K(r.value+w.deltaY/200,.5,3),k()):n.value.scrollLeft+=w.deltaY}),(w,F)=>{const C=V,S=ge;return s(),c(b,null,[e("div",we,[e("div",{ref_key:"minimap",ref:l,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(s(!0),c(b,null,L(a(f),(_,E)=>(s(),c("div",{key:E,relative:"","h-full":"","flex-inline":"",style:I({width:`${Math.max(100,_.duration/10)/a(x)*100}%`})},[(s(!0),c(b,null,L(_.functions,(A,U)=>(s(),c("div",{key:U,"h-3px":"",rounded:"",style:I({width:`max(${A.relativeWidth*100}%, 10px)`,position:"absolute",top:`${A.layer*4}px`,left:`${A.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in w?w.getHashColorFromString:a(M))(A.event.name,50,60)})},null,4))),128)),_.route?(s(),c("div",{key:0,absolute:"","top-0":"","h-full":"","w-px":"","border-l":"","border-green6":"",op10:"",style:I({left:`${_.route.relativeStart*100}%`})},null,4)):$("",!0)],4))),128))],512),e("div",{ref_key:"minimapScroller",ref:i,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[e("div",{ref_key:"minimapScrollerInner",ref:p,"h-1px":""},null,512)],512)]),e("div",{ref_key:"scroller",ref:n,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(s(!0),c(b,null,L(a(f),(_,E)=>(s(),c(b,{key:E},[_.previousGap&&_.previousGap>=200?(s(),c("div",Ce,[m(C,{op50:"",duration:_.previousGap,color:!1},null,8,["duration"])])):$("",!0),m(S,{"flex-inline":"","of-x-hidden":"","hover:of-x-visible":"","bg-base":"",class:O(E===a(f).length-1?"border-r border-base":""),segment:_,style:I({width:`${Math.max(50,_.duration/10)*a(r)}px`}),onSelect:F[0]||(F[0]=A=>d("select",A))},null,8,["class","segment","style"])],64))),128))],512)],64)}}});const Ne=X(Te,[["__scopeId","data-v-a2c475c0"]]),Se={border:"t base",flex:"~ col","h-full":"","of-y-auto":"","text-sm":""},Ae=["onClick"],De=e("div",{"i-carbon-function":"",op50:""},null,-1),Ie={flex:"~","font-mono":""},Fe=e("div",{op30:""}," ( ",-1),Le={key:0,mr2:"",op30:""},Be={op75:""},Ee=e("div",{op30:""}," ) ",-1),Me=e("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[e("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1),Ve={flex:"~ col items-start"},We={"text-xs":"","font-mono":"",op30:""},je={"font-bold":"","font-mono":"","text-green":""},Oe=e("div",{"flex-auto":""},null,-1),ze=e("div",{"min-h-100":""},null,-1),Re=N({__name:"TimelineList",props:{data:{}},emits:["select"],setup(v,{emit:d}){return(u,n)=>{const l=V;return s(),c("div",Se,[(s(!0),c(b,null,L(u.data.events,(i,p)=>(s(),c("button",{key:p,border:"b base",px3:"",py2:"",flex:"~ items-center gap-2",hover:"bg-active",onClick:o=>d("select",i)},[i.type==="function"?(s(),c(b,{key:0},[De,e("div",{"font-mono":"",style:I({color:i.type==="function"?("getHashColorFromString"in u?u.getHashColorFromString:a(M))(i.name,50,60):""})},y(i.name),5),e("div",Ie,[Fe,(s(!0),c(b,null,L(i.args,(o,r)=>(s(),c(b,{key:r},[p?(s(),c("div",Le," , ")):$("",!0),e("div",Be,y(o===null?"null":o===void 0?"undefined":typeof o=="function"?"[function]":Array.isArray(o)?"[Array]":typeof o=="object"?"[object]":JSON.stringify(o)),1)],64))),128)),Ee])],64)):(s(),c(b,{key:1},[Me,e("div",Ve,[e("div",We,y(i.from),1),e("div",je,y(i.to),1)])],64)),Oe,i.end?(s(),g(l,{key:2,duration:i.end-i.start,color:i.type==="function"},null,8,["duration","color"])):$("",!0)],8,Ae))),128)),ze])}}}),Ge={key:0,"text-blue":""},Pe={key:1,"text-purple":""},He={key:2,"text-green":""},Je={key:3,"text-gray":""},qe={key:4,"text-gray":""},Ue={key:5,"text-gray":""},Ye={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Ze={key:1},Ke={p2:"","text-sm":"",border:"t base"},Xe=N({__name:"TimelineArgumentView",props:{value:{}},setup(v){const d=v,u=T(),n=T();function l(){try{u.value=JSON.parse(JSON.stringify(d.value))}catch(o){console.error(o),n.value=o}}const i=N({emits:["setup"],setup(o,{emit:r}){return r("setup"),()=>null}}),p=Q();return(o,r)=>{const f=z,x=G("VMenu");return typeof o.value=="string"?(s(),c("div",Ge,y(JSON.stringify(o.value)),1)):typeof o.value=="number"?(s(),c("div",Pe,y(o.value),1)):typeof o.value=="boolean"?(s(),c("div",He,y(o.value),1)):typeof o.value>"u"?(s(),c("div",Je," undefined ")):typeof o.value=="function"?(s(),c("div",qe," [Function"+y(o.value.name?`: ${o.value.name}`:"")+"] ",1)):o.value===null?(s(),c("div",Ue," null ")):(s(),g(x,{key:6,placement:"top"},{popper:h(()=>[m(a(i),{onSetup:l}),a(n)?(s(),c("div",Ye," Failed to display object: "+y(a(n)),1)):a(u)?(s(),c("div",Ze,[m(a(de),P({"model-value":a(u)},o.$attrs,{class:["json-editor-vue",[o.$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"]),e("div",Ke,[m(f,{title:"Copy to clipboard",icon:"carbon-copy",onClick:r[0]||(r[0]=k=>a(p)(JSON.stringify(a(u),null,2)))},{default:h(()=>[t(" Copy ")]),_:1})])])):$("",!0)]),default:h(()=>[e("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:O([Array.isArray(o.value)?"text-amber bg-amber:10":"text-orange bg-orange:10"])},y(Array.isArray(o.value)?`[Array(${o.value.length})]`:"[Object]"),3)]),_:1}))}}}),Qe={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},en={"mx--1":""},nn={flex:"~ gap-1","font-mono":""},tn={key:1},on=e("span",{ml1:"",op30:""},"(",-1),sn={key:0,op30:""},ln=e("span",{op30:""},")",-1),an={flex:"~ gap-1","text-sm":""},rn=e("span",{mx1:"",op50:""},"·",-1),cn={class:"text-sm text-gray-400"},un={key:0,class:"text-xs text-gray-400",mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},dn={"text-right":""},pn={"ws-nowrap":""},fn=N({__name:"TimelineDetailsFunction",props:{record:{}},setup(v){const d=v,u=H(),n=j(()=>d.record.start,{showSecond:!0});function l(r){let f=new URL(r).pathname;return f.startsWith("/_nuxt/")&&(f=f.slice(6)),f.startsWith("/@id/virtual:nuxt:")?`#build/${f.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):f.includes("/@fs/")?`/${f.split("/@fs/")[1]}`:(u.value?.rootDir||"")+f}const i=ee(),p=D(()=>i.value?.metadata),o=D(()=>i.value?.imports.find(r=>r.as===d.record.name));return(r,f)=>{const x=q,k=ue,B=Xe,w=V,F=pe;return r.record?(s(),c("div",Qe,[e("div",en,[m(x,{"bg-yellow-600:10":"","text-yellow-600":"",op75:""},{default:h(()=>[t(" Function call ")]),_:1})]),e("div",nn,[a(o)?(s(),g(k,{key:0,item:a(o),metadata:a(p),counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(s(),c("span",tn,y(r.record.name),1)),on,(s(!0),c(b,null,L(r.record.args,(C,S)=>(s(),c(b,{key:S},[S?(s(),c("span",sn,", ")):$("",!0),m(B,{value:C},null,8,["value"])],64))),128)),ln]),e("div",an,[r.record.end?(s(),g(w,{key:0,duration:r.record.end-r.record.start},null,8,["duration"])):$("",!0),rn,e("div",cn,y(a(n)),1)]),r.record.stacktrace?(s(),c("div",un,[(s(!0),c(b,null,L(r.record.stacktrace,(C,S)=>(s(),c(b,{key:S},[e("div",dn,y(C.functionName||"(anonymous)"),1),e("div",pn,[C.fileName?(s(),g(F,{key:0,filepath:`${l(C.fileName)}:${C.lineNumber}:${C.columnNumber}`,subpath:""},null,8,["filepath"])):$("",!0)])],64))),128))])):$("",!0)])):$("",!0)}}}),mn={key:0,"p-4":"",flex:"~ col gap-2"},_n={"mx--1":""},yn={flex:"~ gap-1 items-center","font-mono":""},vn={op50:""},hn=e("span",{"i-carbon-arrow-right":"",op50:""},null,-1),bn={flex:"~ gap-1","text-sm":""},gn=e("span",{mx1:"",op50:""},"·",-1),$n={class:"text-sm text-gray-400"},xn=N({__name:"TimelineDetailsRoute",props:{record:{}},setup(v){const d=v,u=j(()=>d.record.start,{showSecond:!0});return(n,l)=>{const i=q,p=V;return n.record?(s(),c("div",mn,[e("div",_n,[m(i,{"bg-green-400:10":"","text-green-400":"",op50:""},{default:h(()=>[t(" Route Change ")]),_:1})]),e("div",yn,[e("span",vn,y(n.record.from),1),hn,e("span",null,y(n.record.to),1)]),e("div",bn,[n.record.end?(s(),g(p,{key:0,duration:n.record.end-n.record.start},null,8,["duration"])):$("",!0),gn,e("div",$n,y(a(u)),1)])])):$("",!0)}}}),kn={relative:"","h-full":"","w-full":"","of-auto":""},wn={inheritAttrs:!1},Cn=N({...wn,__name:"DrawerBottom",props:{modelValue:{type:Boolean},navbar:{},autoClose:{type:Boolean}},emits:["close"],setup(v,{emit:d}){const u=v,n=T();ne(n,()=>{u.modelValue&&u.autoClose&&d("close")},{ignore:["a","button","summary"]});const l=document.querySelector("#nuxt-devtools-side-nav")?.getBoundingClientRect().width;return(i,p)=>{const o=J;return s(),g(oe,{"enter-active-class":"duration-200 ease-in","enter-from-class":"transform translate-y-1/1","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100","leave-to-class":"transform translate-y-1/1"},{default:h(()=>[i.modelValue?(s(),c("div",P({key:0,ref_key:"el",ref:n,border:"t base",flex:"~ col gap-1",absolute:"","bottom-0":"","right-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","glass-effect":"",style:{left:`${a(l)}px`}},i.$attrs),[m(o,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",onClick:p[0]||(p[0]=r=>i.$emit("close"))}),e("div",kn,[te(i.$slots,"default")])],16)):$("",!0)]),_:3})}}}),Tn={key:0,"h-screen":"","of-hidden":""},Nn={"h-screen":"","w-full":"",flex:"","flex-col":""},Sn={"h-10":"",flex:"~ gap-2 items-center justify-end",p2:"",px3:""},An={"text-sm":""},Dn=e("div",{"flex-auto":""},null,-1),In={"min-h-50":"",px3:"",py2:""},Fn=N({__name:"TimelineView",setup(v){const d=se(),u=T("table"),n=T(),l=D(()=>d.value?.metrics.clientTimeline());function i(){l.value&&(l.value.events=[])}function p(){u.value=u.value==="table"?"list":"table"}return(o,r)=>{const f=G("VTooltip"),x=z,k=J,B=Ne,w=Re,F=fn,C=xn,S=Cn;return a(l)?(s(),c("div",Tn,[e("div",Nn,[e("div",Sn,[m(f,{flex:""},{popper:h(()=>[e("div",An,y(a(l).options.enabled?"Recording...":"Paused"),1)]),default:h(()=>[e("div",{"text-lg":"",class:O(a(l).options.enabled?"i-carbon-radio-button-checked text-primary animate-pulse":"i-carbon-pause-outline op30")},null,2)]),_:1}),a(l).options.enabled?(s(),g(x,{key:1,size:"small",ml1:"","text-sm":"",n:"orange",icon:"i-carbon-stop",onClick:r[1]||(r[1]=_=>a(l).options.enabled=!1)},{default:h(()=>[t(" Stop Tracking ")]),_:1})):(s(),g(x,{key:0,size:"small",ml1:"","text-sm":"",n:"primary",icon:"i-carbon-play",onClick:r[0]||(r[0]=_=>a(l).options.enabled=!0)},{default:h(()=>[t(" Start Tracking ")]),_:1})),Dn,m(k,{icon:a(u)==="table"?"i-carbon-roadmap":"i-carbon-list",class:"ml-2",title:"Toggle View",onClick:p},null,8,["icon"]),m(k,{icon:"i-carbon-trash-can","hover-text-red":"",class:"ml-2",onClick:i})]),a(u)==="table"?(s(),g(B,{key:0,data:{...a(l)},onSelect:r[2]||(r[2]=_=>n.value=_.event)},null,8,["data"])):(s(),g(w,{key:1,data:{...a(l)},onSelect:r[3]||(r[3]=_=>n.value=_)},null,8,["data"]))]),m(S,{"model-value":!!a(n),"auto-close":"",onClose:r[4]||(r[4]=_=>n.value=void 0)},{default:h(()=>[e("div",In,[a(n)?.type==="function"?(s(),g(F,{key:0,record:a(n)},null,8,["record"])):a(n)?.type==="route"?(s(),g(C,{key:1,record:a(n)},null,8,["record"])):$("",!0)])]),_:1},8,["model-value"])])):$("",!0)}}}),Ln={class:"markdown-body"},Bn=e("h1",null,"Timeline",-1),En=e("p",null,[e("blockquote",{"text-orange":"","bg-orange:10":"",py1:""}," This is an experimental feature ")],-1),Mn=e("p",null,"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.",-1),Vn=e("h2",null,"Function calls",-1),Wn=e("p",null,[t("Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through "),e("code",null,"import {} from '#imports'"),t(".")],-1),jn=e("pre",null,[e("code",{class:"language-html"},[e("div",{class:"shiki-container"},[e("pre",{class:"shiki vitesse-dark",style:{"background-color":"#121212",color:"#dbd7caee"},tabindex:"0"},[e("code",{"v-pre":""},[e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"<script setup>")]),t(`
2
2
  `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"import { useNuxtApp } from '#imports'")]),t(`
3
3
  `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"import { useMouse } from '@vueuse/core'")]),t(`
4
4
  `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})]),t(`