@kong-ui-public/documentation 0.3.42 → 0.4.0

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 (155) hide show
  1. package/dist/Tableau10-GLA_9iAD-BMurskAd.js +9 -0
  2. package/dist/arc-BSRpyMf3-C5dasNo_.js +86 -0
  3. package/dist/array-CqVTtuYm-fKLgkG2b.js +6 -0
  4. package/dist/astro-mwoSwJnq-CNh-xuM0.js +27 -0
  5. package/dist/blockDiagram-6b2b5046-D02VCbQO-CPmGy0xX.js +1224 -0
  6. package/dist/c-eDnjw9rh-eDnjw9rh.js +87 -0
  7. package/dist/c4Diagram-b947cdbb-gYcL5VzP-DIDY83e1.js +1578 -0
  8. package/dist/channel-DHTQ8Ynn-7OPGex2S.js +5 -0
  9. package/dist/classDiagram-35230388-JdSKLSZv-D2crBRy-.js +217 -0
  10. package/dist/classDiagram-v2-412acd34-DFFRHXE_-B6aCxlD1.js +200 -0
  11. package/dist/clone-p6h9XXNm-3JQ-HRC6.js +8 -0
  12. package/dist/coffee-CRlSxcc3-CY091_1T.js +108 -0
  13. package/dist/cpp-DizfY48B-CA38N4Mn.js +208 -0
  14. package/dist/createText-423428c9-LivTKT7b-BXNfjcdp.js +2964 -0
  15. package/dist/csharp-uGDiXTZn-uGDiXTZn.js +762 -0
  16. package/dist/css-CAzixsid-CEpuX1HY.js +511 -0
  17. package/dist/csv-D4BoHddH-D4BoHddH.js +7 -0
  18. package/dist/diff-Bo5iyMQ2-Bo5iyMQ2.js +7 -0
  19. package/dist/docker-B10O2enb-B10O2enb.js +7 -0
  20. package/dist/documentation.es.js +5 -3130
  21. package/dist/documentation.umd.js +10152 -50
  22. package/dist/edges-d417c7a0-C1ggiwWz-Aj0OUf7e.js +1082 -0
  23. package/dist/erDiagram-0ea73325-mz0Z_-DA-Dr01LsTB.js +924 -0
  24. package/dist/flowDb-d35e309a-CPyxEMIt-lofeyUuw.js +1126 -0
  25. package/dist/flowDiagram-d949d7c1-DqCa0HNN-BK5wNO9Z.js +782 -0
  26. package/dist/flowDiagram-v2-49332944-UMosz1sZ-BG39AuNP.js +17 -0
  27. package/dist/flowchart-elk-definition-27cc417a-D2UKpS6N-r2p34307.js +48387 -0
  28. package/dist/ganttDiagram-5c869e3b-CVBHw4pG-CaG9QXQM.js +2490 -0
  29. package/dist/git-commit-CWf81VOF-DtOZSoIU.js +9 -0
  30. package/dist/git-rebase-sR-yVH_J-D5M2oE9O.js +9 -0
  31. package/dist/gitGraphDiagram-b9d81de9-BGm3fU0n-CbCpf-4j.js +1262 -0
  32. package/dist/go-BCCWZWY1-BCCWZWY1.js +7 -0
  33. package/dist/graph-4FyIWFHN-774TpNLL.js +870 -0
  34. package/dist/graphql-CT32SSoq-1pBWfpcR.js +18 -0
  35. package/dist/haml-8RvrfhLO-Bbc4xoLP.js +19 -0
  36. package/dist/handlebars-Cr5ro0bH-CLcCNLtV.js +15 -0
  37. package/dist/haskell-BfFu8DD8-BmkPJdLL.js +565 -0
  38. package/dist/html-BZB5lEhh-B74zAnWx.js +84 -0
  39. package/dist/html-derivative-0y7sV5Qc-D8-muTWn.js +9 -0
  40. package/dist/index-8fae9850-_CN7MNjP-Cq-s0PmS.js +373 -0
  41. package/dist/index-B-5DuDrq.js +29996 -0
  42. package/dist/infoDiagram-db7b18fc-V446j9uR-GSa8bniv.js +319 -0
  43. package/dist/ini-BsUFIxsI-BsUFIxsI.js +7 -0
  44. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  45. package/dist/java-Bk2JzfKB-Bk2JzfKB.js +74 -0
  46. package/dist/javascript-DqVBMyXe-DqVBMyXe.js +705 -0
  47. package/dist/journeyDiagram-d5636530-CFiu7dnV-DJMu6A22.js +803 -0
  48. package/dist/json-B12k4-6m-B12k4-6m.js +31 -0
  49. package/dist/json5-CvqQZK9I-CvqQZK9I.js +23 -0
  50. package/dist/jsonc-v2qGKRJY-v2qGKRJY.js +31 -0
  51. package/dist/jsonl-izxnMeZX-izxnMeZX.js +31 -0
  52. package/dist/jsx-aDp7j9_Z-aDp7j9_Z.js +705 -0
  53. package/dist/kotlin-NOMOielb-NOMOielb.js +7 -0
  54. package/dist/latex-Bw_ghldO-BlUAi6pB.js +339 -0
  55. package/dist/layout-2-aEcfuw-BqqWy5wB.js +1524 -0
  56. package/dist/less-CW2GmQHL-CW2GmQHL.js +165 -0
  57. package/dist/line-nVq5kEiy-DtZd3PHZ.js +34 -0
  58. package/dist/linear-Bz4oRFvQ-C869GXbm.js +447 -0
  59. package/dist/liquid-DJ2rh7oT-FwZwa67Y.js +28 -0
  60. package/dist/lua-5TZ-G8Be-CogscVHC.js +9 -0
  61. package/dist/make-whncTQWE-whncTQWE.js +7 -0
  62. package/dist/markdown-DYKdIx5--DYKdIx5-.js +135 -0
  63. package/dist/material-theme-lighter-BRE1Bis3-BRE1Bis3.js +769 -0
  64. package/dist/material-theme-palenight-Dhz61Tee-Dhz61Tee.js +769 -0
  65. package/dist/mdc-D0DPLwil-BfE3hy8_.js +88 -0
  66. package/dist/mdx-CKDMxEaL-CKDMxEaL.js +7 -0
  67. package/dist/mermaid-BxNM-z-u-BxNM-z-u.js +7 -0
  68. package/dist/mindmap-definition-377f8f1f-C2vFYDMs-B71SGbvx.js +19078 -0
  69. package/dist/nginx-C082G13W-vryM9k1W.js +9 -0
  70. package/dist/objective-c-BVtzkNiv-BVtzkNiv.js +115 -0
  71. package/dist/onig-BonMD2gC-BonMD2gC.js +4 -0
  72. package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
  73. package/dist/pascal-CrvtytWS-CrvtytWS.js +7 -0
  74. package/dist/path-Crsf9Nsj-SiSjwXsf.js +91 -0
  75. package/dist/perl-D29UPKP6-Dez6-HRy.js +17 -0
  76. package/dist/php-D7Tl-iS7-BtPFrDEt.js +789 -0
  77. package/dist/pieDiagram-b0208e96-DhA_SoTh-CfDd9YdA.js +501 -0
  78. package/dist/plsql-8SPzZKaa-8SPzZKaa.js +7 -0
  79. package/dist/postcss-Cz2vjx_4-Cz2vjx_4.js +7 -0
  80. package/dist/powershell-B0buHCuS-B0buHCuS.js +7 -0
  81. package/dist/proto-6YaU_lta-6YaU_lta.js +7 -0
  82. package/dist/pug-DbFO7359-duYD8LVa.js +21 -0
  83. package/dist/python-BQXev0_W-BQXev0_W.js +524 -0
  84. package/dist/quadrantDiagram-0332be45-C8q96Ohm-DMblaqnx.js +903 -0
  85. package/dist/r-DU7Q70f1-DU7Q70f1.js +7 -0
  86. package/dist/reg-DoGLEyFr-DoGLEyFr.js +7 -0
  87. package/dist/requirementDiagram-bf7890df-D30zCZjB-B_JBC9RM.js +767 -0
  88. package/dist/rst-Bm1i8IkK-C9EaDq6g.js +26 -0
  89. package/dist/ruby-CZZKXaz8-BxaDEkRP.js +102 -0
  90. package/dist/rust-CIl6NRUt-CIl6NRUt.js +7 -0
  91. package/dist/sankeyDiagram-0acdec17-B4vNjMaS-Bauvtonp.js +816 -0
  92. package/dist/sass-LqXmC1Fh-LqXmC1Fh.js +8 -0
  93. package/dist/scss-DjxgF7f7-DGTzny6p.js +98 -0
  94. package/dist/sequenceDiagram-c18d009d-BniqGSPK-DuYYUmiZ.js +2201 -0
  95. package/dist/shellscript-CUUTQKn5-CUUTQKn5.js +7 -0
  96. package/dist/shellsession-BIPXtZci-D6avbCwN.js +9 -0
  97. package/dist/splunk-C0K00wNV-C0K00wNV.js +7 -0
  98. package/dist/sql-DkzN59UV-DkzN59UV.js +27 -0
  99. package/dist/ssh-config-BbWAW6SY-BbWAW6SY.js +7 -0
  100. package/dist/stateDiagram-43596fc0-F0V9suMd-L2Ywe-J_.js +266 -0
  101. package/dist/stateDiagram-v2-2ead4f9c-DUgJH8tF-BVo1q2i1.js +184 -0
  102. package/dist/style.css +1 -1
  103. package/dist/styles-6860f46c-Dflmq0ac-BRNSwis6.js +1089 -0
  104. package/dist/styles-7383a064-Dg7mXkpq-C4bItohl.js +430 -0
  105. package/dist/styles-b2c874b6-HpcOhE4Y-Bj0upXzO.js +960 -0
  106. package/dist/stylus-CAHdVuhm-CAHdVuhm.js +21 -0
  107. package/dist/svelte-DAxjO8Sh-D0e501jC.js +29 -0
  108. package/dist/svgDrawCommon-0ee1b4e9-CNkCfzsJ-Bz_doYLk.js +64 -0
  109. package/dist/swift-x2DVyVjN-Bz5PC9YM.js +550 -0
  110. package/dist/timeline-definition-d977decf-Cl38e_0g-D_Dlqa-R.js +794 -0
  111. package/dist/toml-Dbtbfmwk-Dbtbfmwk.js +75 -0
  112. package/dist/tsx-BmwsDeeh-BmwsDeeh.js +705 -0
  113. package/dist/twig-B_Gr-ODl-Cl9Q0GWo.js +58 -0
  114. package/dist/types/components/DocumentationContent.vue.d.ts +8 -1
  115. package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -1
  116. package/dist/types/components/DocumentationDisplay.vue.d.ts +5 -1
  117. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -1
  118. package/dist/types/components/ProductDocumentModal.vue.d.ts +1 -1
  119. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -1
  120. package/dist/types/composables/useI18n.d.ts +4 -0
  121. package/dist/types/composables/useI18n.d.ts.map +1 -1
  122. package/dist/typescript-AEg-ehu7-AEg-ehu7.js +672 -0
  123. package/dist/v-BuvBsUKm-BuvBsUKm.js +7 -0
  124. package/dist/vb-cqjo5dul-cqjo5dul.js +7 -0
  125. package/dist/viml-h3ATW6He-h3ATW6He.js +7 -0
  126. package/dist/vue-Dz-azHaT-B9qBHMZi.js +71 -0
  127. package/dist/vue-html-DIGKAAs4-BeHSIJcx.js +11 -0
  128. package/dist/wasm-xOGcJ9Ts-xOGcJ9Ts.js +7 -0
  129. package/dist/wgsl-hGLOfCya-hGLOfCya.js +7 -0
  130. package/dist/xml-CfRpfi_B-BH3JRQfc.js +9 -0
  131. package/dist/xsl-BAqhSCYL-BTKPZRNQ.js +9 -0
  132. package/dist/xychartDiagram-e50adddc-JdLmRUgg-HmDalTeo.js +1282 -0
  133. package/dist/yaml-PGla5xPP-HJurM_FJ.js +206 -0
  134. package/package.json +13 -13
  135. package/dist/prism-bash.min-DDo5CyRs-DihCfXgx.js +0 -7
  136. package/dist/prism-css.min-BrrzZC7b-BrrzZC7b.js +0 -7
  137. package/dist/prism-docker.min-DnIEokC3-D0v8IWN_.js +0 -22
  138. package/dist/prism-go.min-C7UmK6TW-C7UmK6TW.js +0 -1
  139. package/dist/prism-http.min-CsU3-jB8-CQ8PCDXl.js +0 -23
  140. package/dist/prism-javascript.min-CEqHqgbm-CEqHqgbm.js +0 -8
  141. package/dist/prism-jq.min-Q555vXZm-Q555vXZm.js +0 -8
  142. package/dist/prism-json.min-B1GJqK1k-B1GJqK1k.js +0 -1
  143. package/dist/prism-log.min-SDopTpKN-SDopTpKN.js +0 -1
  144. package/dist/prism-lua.min-DwRnUVfS-DwRnUVfS.js +0 -1
  145. package/dist/prism-makefile.min-DyutknhE-DyutknhE.js +0 -1
  146. package/dist/prism-markdown.min-B7US-xc7-DB9aF_ZA.js +0 -63
  147. package/dist/prism-python.min-BIfpAh5K-BIfpAh5K.js +0 -1
  148. package/dist/prism-regex.min-f8DNqi8X-f8DNqi8X.js +0 -4
  149. package/dist/prism-rest.min-B6veHRJF-B6veHRJF.js +0 -1
  150. package/dist/prism-rust.min-Cb-Mi-h0-Cb-Mi-h0.js +0 -9
  151. package/dist/prism-scss.min-B0csyGJo-B0csyGJo.js +0 -1
  152. package/dist/prism-sql.min-BHXzX-c_-BHXzX-c_.js +0 -1
  153. package/dist/prism-typescript.min-oSVeWCAd-oSVeWCAd.js +0 -5
  154. package/dist/prism-xml-doc.min-yj0YzRGe-KgTQx-dc.js +0 -7
  155. package/dist/prism-yaml.min-CTetcdKA-C1YzP_OY.js +0 -28
@@ -0,0 +1,7 @@
1
+ const e = Object.freeze({ displayName: "Shell", name: "shellscript", 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)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))", 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" } }, end: "(?:(?= |\\t|$)|(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n))", 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|$|;))", beginCaptures: {}, end: "(?= |\\t|;|\\||&|$|\\n|\\)|\\`)", endCaptures: {}, name: "meta.argument.shell", patterns: [{ include: "#argument_context" }, { include: "#line_continuation" }] }, argument_context: { patterns: [{ captures: { 1: { name: "string.unquoted.argument.shell", patterns: [{ match: "\\*", name: "variable.language.special.wildcard.shell" }, { include: "#variable" }, { include: "#numeric_literal" }, { captures: { 1: { name: "constant.language.$1.shell" } }, match: "(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)" }] } }, match: "[ \\t]*+([^ \\t\\n'&;<>\\(\\)\\$`\\\\\"\\|]+(?!>))" }, { 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]*+(\\()", 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" } }, end: "\\)", 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)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))", 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" } }, end: "(?:(?= |\\t|$)|(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n))", 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: { 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" }] } }, 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]*#|\\])(?<!\\\\))`, name: "meta.statement.command.name.basic.shell" }, block_comment: { begin: "\\s*+(\\/\\*)", beginCaptures: { 1: { name: "punctuation.definition.comment.begin.shell" } }, end: "\\*\\/", 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: { 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" } }, match: "(?:^|[ \\t]++)(?:((#!).*)|((#).*))" }, 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(?<=")', beginCaptures: {}, contentName: "meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command", end: '"', endCaptures: { 0: { name: "string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell" } }, patterns: [{ match: '\\\\[\\$\\n`"\\\\]', name: "constant.character.escape.shell" }, { include: "#variable" }, { include: "#interpolation" }] }, continuation_of_single_quoted_command_name: { begin: "\\G(?<=')", beginCaptures: {}, contentName: "meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command", end: "'", endCaptures: { 0: { name: "string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell" } } }, 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: { applyEndPatternLast: 1, begin: "[ \\t]*+(?:(\\bfunction\\b)[ \\t]*+([^ \\t\\n\\r\\(\\)=]+)(?:(\\()[ \\t]*+(\\)))?|([^ \\t\\n\\r\\(\\)=]+)[ \\t]*+(\\()[ \\t]*+(\\)))", 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" } }, end: "(?<=\\}|\\))", endCaptures: {}, name: "meta.function.shell", patterns: [{ match: "\\G(?:\\t| |\\n)" }, { begin: "\\{", beginCaptures: { 0: { name: "punctuation.definition.group.shell punctuation.section.function.definition.shell" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.group.shell punctuation.section.function.definition.shell" } }, name: "meta.function.body.shell", patterns: [{ include: "#initial_context" }] }, { begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.shell punctuation.section.function.definition.shell" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.shell punctuation.section.function.definition.shell" } }, name: "meta.function.body.shell", patterns: [{ include: "#initial_context" }] }] }, heredoc: { patterns: [{ begin: `((?<!<)<<-)[ \\t]*+("|')[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(?:\\2)(.*)`, beginCaptures: { 1: { name: "keyword.operator.heredoc.shell" }, 2: {}, 3: { name: "punctuation.definition.string.heredoc.shell" }, 4: { patterns: [{ include: "#normal_statement_context" }] } }, contentName: "string.quoted.heredoc.indent", end: "^\\t*(?:\\3)(?=\\s|;|&|$)", endCaptures: { 0: { name: "punctuation.definition.string.heredoc.shell" } }, patterns: [] }, { begin: `((?<!<)<<(?!<))[ \\t]*+("|')[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(?:\\2)(.*)`, beginCaptures: { 1: { name: "keyword.operator.heredoc.shell" }, 2: {}, 3: { name: "punctuation.definition.string.heredoc.shell" }, 4: { patterns: [{ include: "#normal_statement_context" }] } }, contentName: "string.quoted.heredoc.no-indent", end: "^(?:\\3)(?=\\s|;|&|$)", endCaptures: { 0: { name: "punctuation.definition.string.heredoc.shell" } }, patterns: [] }, { begin: `((?<!<)<<-)[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(.*)`, beginCaptures: { 1: { name: "keyword.operator.heredoc.shell" }, 2: { name: "punctuation.definition.string.heredoc.shell" }, 3: { patterns: [{ include: "#normal_statement_context" }] } }, contentName: "string.unquoted.heredoc.indent", end: "^\\t*(?:\\2)(?=\\s|;|&|$)", endCaptures: { 0: { name: "punctuation.definition.string.heredoc.shell" } }, patterns: [{ include: "#double_quote_escape_char" }, { include: "#variable" }, { include: "#interpolation" }] }, { begin: `((?<!<)<<(?!<))[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(.*)`, beginCaptures: { 1: { name: "keyword.operator.heredoc.shell" }, 2: { name: "punctuation.definition.string.heredoc.shell" }, 3: { patterns: [{ include: "#normal_statement_context" }] } }, contentName: "string.unquoted.heredoc.no-indent", end: "^(?:\\2)(?=\\s|;|&|$)", endCaptures: { 0: { name: "punctuation.definition.string.heredoc.shell" } }, 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" } }, contentName: "string.quoted.single.shell", end: "(')", endCaptures: { 0: { name: "string.quoted.single.shell" }, 1: { name: "punctuation.definition.string.end.shell" } }, name: "meta.herestring.shell" }, { begin: '(<<<)\\s*(("))', beginCaptures: { 1: { name: "keyword.operator.herestring.shell" }, 2: { name: "string.quoted.double.shell" }, 3: { name: "punctuation.definition.string.begin.shell" } }, contentName: "string.quoted.double.shell", end: '(")', endCaptures: { 0: { name: "string.quoted.double.shell" }, 1: { name: "punctuation.definition.string.end.shell" } }, name: "meta.herestring.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: { 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" }] } }, match: "(\\/\\*)((?:[^\\*]|(?:\\*)++[^\\/])*+((?:\\*)++\\/))" }, 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*+(\\/\\/)", beginCaptures: { 1: { name: "punctuation.definition.comment.shell" } }, end: "(?<=\\n)(?<!\\\\\\n)", 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: "\\[\\[", beginCaptures: { 0: { name: "punctuation.definition.logical-expression.shell" } }, end: "\\]\\]", endCaptures: { 0: { name: "punctuation.definition.logical-expression.shell" } }, name: "meta.scope.logical-expression.shell", patterns: [{ include: "#logical_expression_context" }] }, logical_expression_single: { begin: "\\[", beginCaptures: { 0: { name: "punctuation.definition.logical-expression.shell" } }, end: "\\]", 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: "\\(\\(", beginCaptures: { 0: { name: "punctuation.section.arithmetic.shell" } }, end: "\\)\\)", endCaptures: { 0: { name: "punctuation.section.arithmetic.shell" } }, name: "meta.arithmetic.shell", patterns: [{ include: "#math" }] }, { begin: "(?<!=)\\(", beginCaptures: { 0: { name: "punctuation.definition.subshell" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.subshell" } }, name: "meta.scope.subshell", patterns: [{ include: "#initial_context" }] }, { begin: "(?<![^ \\t])({)", beginCaptures: { 1: { name: "punctuation.definition.group.shell" } }, end: "}", 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\\$)", beginCaptures: {}, end: "(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\)", 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?$)", beginCaptures: {}, end: "(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\)", endCaptures: {}, name: "meta.statement.command.shell", patterns: [{ begin: "\\G", beginCaptures: {}, end: "(?= |\\t|;|\\||&|$|\\n|\\)|\\`)", 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" }, { captures: { 1: { name: "entity.name.function.call.shell entity.name.command.shell" } }, match: `(?<=\\G|'|"|\\}|\\))([^ \\n\\t\\r"'=;&\\|\`\\)\\{]+)` }, { begin: `(?:\\G|(?<! |\\t|;|\\||&|\\n|\\{|#))((?:\\$)?)((?:(")|(')))`, 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" } }, end: "(?<!\\G)(?<=(?:\\2))", 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: { 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" } }, match: "(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n)" }, numeric_literal: { 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" } }, match: "[ \\t]*+(?<==| |\\t|^|\\{|\\(|\\[)(?:(?:(?:(?:(0[xX][0-9A-Fa-f]+)|(0\\d+))|(\\d{1,2}#[0-9a-zA-Z@_]+))|(-?\\d+\\.\\d+))|(-?\\d+))(?!>)" }, option: { begin: "[ \\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" } }, contentName: "string.unquoted.argument constant.other.option", end: "(?:(?=[ \\t])|(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\))", endCaptures: {}, 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: { captures: { 1: { name: "keyword.operator.redirect.stdout.shell" }, 2: { name: "keyword.operator.redirect.stderr.shell" }, 3: { name: "keyword.operator.redirect.$3.shell" } }, match: "(?<=[ \\t])(?:(1)|(2)|(\\d+))(?=>)" }, 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: { captures: { 0: { patterns: [{ captures: { 1: { name: "string.unquoted.argument.shell constant.other.option.dash.shell" }, 2: { name: "string.unquoted.argument.shell constant.other.option.shell" } }, match: "[ \\t]++(\\-)(\\w+)" }] } }, match: "(?:[ \\t]++\\-\\w+)*" }, 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: { 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" }, { captures: { 1: { name: "constant.language.$1.shell" } }, match: "(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)" }] } }, match: '(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?:[ \\t]*+([^ \\t\\n\'&;<>\\(\\)\\$`\\\\"\\|]+(?!>)))?(?:(?:\\$")|")', 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: { 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" }, { captures: { 1: { name: "constant.language.$1.shell" } }, match: "(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)" }] } }, match: "(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?:[ \\t]*+([^ \\t\\n'&;<>\\(\\)\\$`\\\\\"\\|]+(?!>)))?(?:(?:\\$')|')", 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: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.shell" } }, end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.shell" } }, name: "string.quoted.single.shell" }, { begin: '\\$?"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.shell" } }, end: '"', 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: "\\$'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.shell" } }, end: "'", 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: [{ captures: { 1: { name: "punctuation.definition.variable.shell variable.parameter.positional.all.shell" }, 2: { name: "variable.parameter.positional.all.shell" } }, match: "(\\$)(\\@(?!\\w))" }, { captures: { 1: { name: "punctuation.definition.variable.shell variable.parameter.positional.shell" }, 2: { name: "variable.parameter.positional.shell" } }, match: "(\\$)([0-9](?!\\w))" }, { captures: { 1: { name: "punctuation.definition.variable.shell variable.language.special.shell" }, 2: { name: "variable.language.special.shell" } }, match: "(\\$)([-*#?$!0_](?!\\w))" }, { begin: "(\\$)(\\{)[ \\t]*+(?=\\d)", 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" } }, contentName: "meta.parameter-expansion", end: "\\}", endCaptures: { 0: { name: "punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell" } }, patterns: [{ match: "!|:[-=?]?|\\*|@|##|#|%%|%|\\/", name: "keyword.operator.expansion.shell" }, { captures: { 1: { name: "punctuation.section.array.shell" }, 2: { name: "punctuation.section.array.shell" } }, match: "(\\[)[^\\]]+(\\])" }, { 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: "(\\$)(\\{)", beginCaptures: { 1: { name: "punctuation.definition.variable.shell" }, 2: { name: "punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell" } }, contentName: "meta.parameter-expansion", end: "\\}", endCaptures: { 0: { name: "punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell" } }, patterns: [{ match: "!|:[-=?]?|\\*|@|##|#|%%|%|\\/", name: "keyword.operator.expansion.shell" }, { captures: { 1: { name: "punctuation.section.array.shell" }, 2: { name: "punctuation.section.array.shell" } }, match: "(\\[)[^\\]]+(\\])" }, { match: "(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)", name: "variable.other.normal.shell" }, { include: "#variable" }, { include: "#string" }] }, { captures: { 1: { name: "punctuation.definition.variable.shell variable.other.normal.shell" }, 2: { name: "variable.other.normal.shell" } }, match: "(\\$)(\\w+(?!\\w))" }] } }, scopeName: "source.shell", aliases: ["bash", "sh", "shell", "zsh"] });
2
+ var n = [
3
+ e
4
+ ];
5
+ export {
6
+ n as default
7
+ };
@@ -0,0 +1,9 @@
1
+ import e from "./shellscript-CUUTQKn5-CUUTQKn5.js";
2
+ const s = Object.freeze({ displayName: "Shell Session", fileTypes: ["sh-session"], name: "shellsession", patterns: [{ captures: { 1: { name: "entity.other.prompt-prefix.shell-session" }, 2: { name: "punctuation.separator.prompt.shell-session" }, 3: { name: "source.shell", patterns: [{ include: "source.shell" }] } }, match: "(?x) ^ (?: ( (?:\\(\\S+\\)\\s*)? (?: sh\\S*? | \\w+\\S+[@:]\\S+(?:\\s+\\S+)? | \\[\\S+?[@:][^\\n]+?\\].*? ) ) \\s* )? ( [>$#%❯➜] | \\p{Greek} ) \\s+ (.*) $" }, { match: "^.+$", name: "meta.output.shell-session" }], scopeName: "text.shell-session", embeddedLangs: ["shellscript"], aliases: ["console"] });
3
+ var l = [
4
+ ...e,
5
+ s
6
+ ];
7
+ export {
8
+ l as default
9
+ };
@@ -0,0 +1,7 @@
1
+ const e = Object.freeze({ displayName: "Splunk Query Language", fileTypes: ["splunk", "spl"], name: "splunk", patterns: [{ comment: "Splunk Built-in functions", match: "(?<=(\\||\\[))([\\s]*)\\b(abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|append|appendcols|appendpipe|arules|associate|audit|autoregress|bucket|bucketdir|chart|cluster|collect|concurrency|contingency|convert|correlate|crawl|datamodel|dbinspect|dbxquery|dbxlookup|dedup|delete|delta|diff|dispatch|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|file|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geostats|head|highlight|history|input|inputcsv|inputlookup|iplocation|join|kmeans|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|metadata|metasearch|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\\b(?=[\\s])", name: "support.class.splunk_search" }, { comment: "Splunk Eval functions", match: "\\b(abs|acos|acosh|asin|asinh|atan|atan2|atanh|case|cidrmatch|ceiling|coalesce|commands|cos|cosh|exact|exp|floor|hypot|if|in|isbool|isint|isnotnull|isnull|isnum|isstr|len|like|ln|log|lower|ltrim|match|max|md5|min|mvappend|mvcount|mvdedup|mvfilter|mvfind|mvindex|mvjoin|mvrange|mvsort|mvzip|now|null|nullif|pi|pow|printf|random|relative_time|replace|round|rtrim|searchmatch|sha1|sha256|sha512|sigfig|sin|sinh|spath|split|sqrt|strftime|strptime|substr|tan|tanh|time|tonumber|tostring|trim|typeof|upper|urldecode|validate)(?=\\()\\b", name: "support.function.splunk_search" }, { comment: "Splunk Transforming functions", match: "\\b(avg|count|distinct_count|estdc|estdc_error|eval|max|mean|median|min|mode|percentile|range|stdev|stdevp|sum|sumsq|var|varp|first|last|list|values|earliest|earliest_time|latest|latest_time|per_day|per_hour|per_minute|per_second|rate)\\b", name: "support.function.splunk_search" }, { comment: "Splunk Macro Names", match: "(?<=\\`)[\\w]+(?=\\(|\\`)", name: "entity.name.function.splunk_search" }, { comment: "Digits", match: "\\b(\\d+)\\b", name: "constant.numeric.splunk_search" }, { comment: "Escape Characters", match: "(\\\\\\\\|\\\\\\||\\\\\\*|\\\\\\=)", name: "contant.character.escape.splunk_search" }, { comment: "Splunk Operators", match: "(\\|,)", name: "keyword.operator.splunk_search" }, { comment: "Splunk Language Constants", match: "(?i)\\b(as|by|or|and|over|where|output|outputnew)\\b|(?-i)\\b(NOT|true|false)\\b", name: "constant.language.splunk_search" }, { comment: "Splunk Macro Parameters", match: '(?<=\\(|,|[^=]\\s{300})([^\\(\\)\\",=]+)(?=\\)|,)', name: "variable.parameter.splunk_search" }, { comment: "Splunk Variables", match: "([\\w\\.]+)(\\[\\]|\\{\\})?([\\s]*)(?=\\=)", name: "variable.splunk_search" }, { comment: "Comparison or assignment", match: "=", name: "keyword.operator.splunk_search" }, { begin: '(?<!\\\\)"', end: '(?<!\\\\)"', name: "string.quoted.double.splunk_search" }, { begin: "(?<!\\\\)'", end: "(?<!\\\\)'", name: "string.quoted.single.splunk_search" }, { begin: 'query=\\"', end: '(?<!\\\\)"', name: "meta.embedded.block.sql" }, { begin: "(?<!\\\\)```", end: "(?<!\\\\)```", name: "comment.block.splunk_search" }, { begin: "`comment\\(", end: "\\)`", name: "comment.block.splunk_search" }], scopeName: "source.splunk_search", aliases: ["spl"] });
2
+ var a = [
3
+ e
4
+ ];
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,27 @@
1
+ const e = Object.freeze({ displayName: "SQL", name: "sql", patterns: [{ match: "((?<!@)@)\\b(\\w+)\\b", name: "text.variable" }, { match: "(\\[)[^\\]]*(\\])", name: "text.bracketed" }, { include: "#comments" }, { captures: { 1: { name: "keyword.other.create.sql" }, 2: { name: "keyword.other.sql" }, 5: { name: "entity.name.function.sql" } }, match: "(?i:^\\s*(create(?:\\s+or\\s+replace)?)\\s+(aggregate|conversion|database|domain|function|group|(unique\\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\s+)(['\"`]?)(\\w+)\\4", name: "meta.create.sql" }, { captures: { 1: { name: "keyword.other.create.sql" }, 2: { name: "keyword.other.sql" } }, match: "(?i:^\\s*(drop)\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))", name: "meta.drop.sql" }, { captures: { 1: { name: "keyword.other.create.sql" }, 2: { name: "keyword.other.table.sql" }, 3: { name: "entity.name.function.sql" }, 4: { name: "keyword.other.cascade.sql" } }, match: "(?i:\\s*(drop)\\s+(table)\\s+(\\w+)(\\s+cascade)?\\b)", name: "meta.drop.sql" }, { captures: { 1: { name: "keyword.other.create.sql" }, 2: { name: "keyword.other.table.sql" } }, match: "(?i:^\\s*(alter)\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|proc(edure)?|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\s+)", name: "meta.alter.sql" }, { captures: { 1: { name: "storage.type.sql" }, 2: { name: "storage.type.sql" }, 3: { name: "constant.numeric.sql" }, 4: { name: "storage.type.sql" }, 5: { name: "constant.numeric.sql" }, 6: { name: "storage.type.sql" }, 7: { name: "constant.numeric.sql" }, 8: { name: "constant.numeric.sql" }, 9: { name: "storage.type.sql" }, 10: { name: "constant.numeric.sql" }, 11: { name: "storage.type.sql" }, 12: { name: "storage.type.sql" }, 13: { name: "storage.type.sql" }, 14: { name: "constant.numeric.sql" }, 15: { name: "storage.type.sql" } }, match: `(?xi)
2
+
3
+
4
+ \\b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\\b
5
+
6
+
7
+ |\\b(bit\\svarying|character\\s(?:varying)?|tinyint|var\\schar|float|interval)\\((\\d+)\\)
8
+
9
+
10
+ |\\b(char|number|varchar\\d?)\\b(?:\\((\\d+)\\))?
11
+
12
+
13
+ |\\b(numeric|decimal)\\b(?:\\((\\d+),(\\d+)\\))?
14
+
15
+
16
+ |\\b(times?)\\b(?:\\((\\d+)\\))?(\\swith(?:out)?\\stime\\szone\\b)?
17
+
18
+
19
+ |\\b(timestamp)(?:(s|tz))?\\b(?:\\((\\d+)\\))?(\\s(with|without)\\stime\\szone\\b)?
20
+
21
+ ` }, { match: "(?i:\\b((?:primary|foreign)\\s+key|references|on\\sdelete(\\s+cascade)?|nocheck|check|constraint|collate|default)\\b)", name: "storage.modifier.sql" }, { match: "\\b\\d+\\b", name: "constant.numeric.sql" }, { match: "(?i:\\b(select(\\s+(all|distinct))?|insert\\s+(ignore\\s+)?into|update|delete|from|set|where|group\\s+by|or|like|and|union(\\s+all)?|having|order\\s+by|limit|cross\\s+join|join|straight_join|(inner|(left|right|full)(\\s+outer)?)\\s+join|natural(\\s+(inner|(left|right|full)(\\s+outer)?))?\\s+join)\\b)", name: "keyword.other.DML.sql" }, { match: "(?i:\\b(on|off|((is\\s+)?not\\s+)?null)\\b)", name: "keyword.other.DDL.create.II.sql" }, { match: "(?i:\\bvalues\\b)", name: "keyword.other.DML.II.sql" }, { match: "(?i:\\b(begin(\\s+work)?|start\\s+transaction|commit(\\s+work)?|rollback(\\s+work)?)\\b)", name: "keyword.other.LUW.sql" }, { match: "(?i:\\b(grant(\\swith\\sgrant\\soption)?|revoke)\\b)", name: "keyword.other.authorization.sql" }, { match: "(?i:\\bin\\b)", name: "keyword.other.data-integrity.sql" }, { match: "(?i:^\\s*(comment\\s+on\\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\\s+.*?\\s+(is)\\s+)", name: "keyword.other.object-comments.sql" }, { match: "(?i)\\bAS\\b", name: "keyword.other.alias.sql" }, { match: "(?i)\\b(DESC|ASC)\\b", name: "keyword.other.order.sql" }, { match: "\\*", name: "keyword.operator.star.sql" }, { match: "[!<>]?=|<>|<|>", name: "keyword.operator.comparison.sql" }, { match: "-|\\+|/", name: "keyword.operator.math.sql" }, { match: "\\|\\|", name: "keyword.operator.concatenator.sql" }, { captures: { 1: { name: "support.function.aggregate.sql" } }, match: "(?i)\\b(approx_count_distinct|approx_percentile_cont|approx_percentile_disc|avg|checksum_agg|count|count_big|group|grouping|grouping_id|max|min|sum|stdev|stdevp|var|varp)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.analytic.sql" } }, match: "(?i)\\b(cume_dist|first_value|lag|last_value|lead|percent_rank|percentile_cont|percentile_disc)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.bitmanipulation.sql" } }, match: "(?i)\\b(bit_count|get_bit|left_shift|right_shift|set_bit)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.conversion.sql" } }, match: "(?i)\\b(cast|convert|parse|try_cast|try_convert|try_parse)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.collation.sql" } }, match: "(?i)\\b(collationproperty|tertiary_weights)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.cryptographic.sql" } }, match: "(?i)\\b(asymkey_id|asymkeyproperty|certproperty|cert_id|crypt_gen_random|decryptbyasymkey|decryptbycert|decryptbykey|decryptbykeyautoasymkey|decryptbykeyautocert|decryptbypassphrase|encryptbyasymkey|encryptbycert|encryptbykey|encryptbypassphrase|hashbytes|is_objectsigned|key_guid|key_id|key_name|signbyasymkey|signbycert|symkeyproperty|verifysignedbycert|verifysignedbyasymkey)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.cursor.sql" } }, match: "(?i)\\b(cursor_status)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.datetime.sql" } }, match: "(?i)\\b(sysdatetime|sysdatetimeoffset|sysutcdatetime|current_time(stamp)?|getdate|getutcdate|datename|datepart|day|month|year|datefromparts|datetime2fromparts|datetimefromparts|datetimeoffsetfromparts|smalldatetimefromparts|timefromparts|datediff|dateadd|datetrunc|eomonth|switchoffset|todatetimeoffset|isdate|date_bucket)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.datatype.sql" } }, match: "(?i)\\b(datalength|ident_current|ident_incr|ident_seed|identity|sql_variant_property)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.expression.sql" } }, match: "(?i)\\b(coalesce|nullif)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.globalvar.sql" } }, match: "(?<!@)@@(?i)\\b(cursor_rows|connections|cpu_busy|datefirst|dbts|error|fetch_status|identity|idle|io_busy|langid|language|lock_timeout|max_connections|max_precision|nestlevel|options|packet_errors|pack_received|pack_sent|procid|remserver|rowcount|servername|servicename|spid|textsize|timeticks|total_errors|total_read|total_write|trancount|version)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.json.sql" } }, match: "(?i)\\b(json|isjson|json_object|json_array|json_value|json_query|json_modify|json_path_exists)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.logical.sql" } }, match: "(?i)\\b(choose|iif|greatest|least)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.mathematical.sql" } }, match: "(?i)\\b(abs|acos|asin|atan|atn2|ceiling|cos|cot|degrees|exp|floor|log|log10|pi|power|radians|rand|round|sign|sin|sqrt|square|tan)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.metadata.sql" } }, match: "(?i)\\b(app_name|applock_mode|applock_test|assemblyproperty|col_length|col_name|columnproperty|database_principal_id|databasepropertyex|db_id|db_name|file_id|file_idex|file_name|filegroup_id|filegroup_name|filegroupproperty|fileproperty|fulltextcatalogproperty|fulltextserviceproperty|index_col|indexkey_property|indexproperty|object_definition|object_id|object_name|object_schema_name|objectproperty|objectpropertyex|original_db_name|parsename|schema_id|schema_name|scope_identity|serverproperty|stats_date|type_id|type_name|typeproperty)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.ranking.sql" } }, match: "(?i)\\b(rank|dense_rank|ntile|row_number)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.rowset.sql" } }, match: "(?i)\\b(generate_series|opendatasource|openjson|openrowset|openquery|openxml|predict|string_split)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.security.sql" } }, match: "(?i)\\b(certencoded|certprivatekey|current_user|database_principal_id|has_perms_by_name|is_member|is_rolemember|is_srvrolemember|original_login|permissions|pwdcompare|pwdencrypt|schema_id|schema_name|session_user|suser_id|suser_sid|suser_sname|system_user|suser_name|user_id|user_name)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.string.sql" } }, match: "(?i)\\b(ascii|char|charindex|concat|difference|format|left|len|lower|ltrim|nchar|nodes|patindex|quotename|replace|replicate|reverse|right|rtrim|soundex|space|str|string_agg|string_escape|string_split|stuff|substring|translate|trim|unicode|upper)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.system.sql" } }, match: "(?i)\\b(binary_checksum|checksum|compress|connectionproperty|context_info|current_request_id|current_transaction_id|decompress|error_line|error_message|error_number|error_procedure|error_severity|error_state|formatmessage|get_filestream_transaction_context|getansinull|host_id|host_name|isnull|isnumeric|min_active_rowversion|newid|newsequentialid|rowcount_big|session_context|session_id|xact_state)\\b\\s*\\(" }, { captures: { 1: { name: "support.function.textimage.sql" } }, match: "(?i)\\b(patindex|textptr|textvalid)\\b\\s*\\(" }, { captures: { 1: { name: "constant.other.database-name.sql" }, 2: { name: "constant.other.table-name.sql" } }, match: "(\\w+?)\\.(\\w+)" }, { include: "#strings" }, { include: "#regexps" }, { match: "\\b(?i)(abort|abort_after_wait|absent|absolute|accent_sensitivity|acceptable_cursopt|acp|action|activation|add|address|admin|aes_128|aes_192|aes_256|affinity|after|aggregate|algorithm|all_constraints|all_errormsgs|all_indexes|all_levels|all_results|allow_connections|allow_dup_row|allow_encrypted_value_modifications|allow_page_locks|allow_row_locks|allow_snapshot_isolation|alter|altercolumn|always|anonymous|ansi_defaults|ansi_null_default|ansi_null_dflt_off|ansi_null_dflt_on|ansi_nulls|ansi_padding|ansi_warnings|appdomain|append|application|apply|arithabort|arithignore|array|assembly|asymmetric|asynchronous_commit|at|atan2|atomic|attach|attach_force_rebuild_log|attach_rebuild_log|audit|auth_realm|authentication|auto|auto_cleanup|auto_close|auto_create_statistics|auto_drop|auto_shrink|auto_update_statistics|auto_update_statistics_async|automated_backup_preference|automatic|autopilot|availability|availability_mode|backup|backup_priority|base64|basic|batches|batchsize|before|between|bigint|binary|binding|bit|block|blockers|blocksize|bmk|both|break|broker|broker_instance|bucket_count|buffer|buffercount|bulk_logged|by|call|caller|card|case|catalog|catch|cert|certificate|change_retention|change_tracking|change_tracking_context|changes|char|character|character_set|check_expiration|check_policy|checkconstraints|checkindex|checkpoint|checksum|cleanup_policy|clear|clear_port|close|clustered|codepage|collection|column_encryption_key|column_master_key|columnstore|columnstore_archive|colv_80_to_100|colv_100_to_80|commit_differential_base|committed|compatibility_level|compress_all_row_groups|compression|compression_delay|concat_null_yields_null|concatenate|configuration|connect|connection|containment|continue|continue_after_error|contract|contract_name|control|conversation|conversation_group_id|conversation_handle|copy|copy_only|count_rows|counter|create(\\\\s+or\\\\s+alter)?|credential|cross|cryptographic|cryptographic_provider|cube|cursor|cursor_close_on_commit|cursor_default|data|data_compression|data_flush_interval_seconds|data_mirroring|data_purity|data_source|database|database_name|database_snapshot|datafiletype|date_correlation_optimization|date|datefirst|dateformat|date_format|datetime|datetime2|datetimeoffset|day(s)?|db_chaining|dbid|dbidexec|dbo_only|deadlock_priority|deallocate|dec|decimal|declare|decrypt|decrypt_a|decryption|default_database|default_fulltext_language|default_language|default_logon_domain|default_schema|definition|delay|delayed_durability|delimitedtext|density_vector|dependent|des|description|desired_state|desx|differential|digest|disable|disable_broker|disable_def_cnst_chk|disabled|disk|distinct|distributed|distribution|drop|drop_existing|dts_buffers|dump|durability|dynamic|edition|elements|else|emergency|empty|enable|enable_broker|enabled|encoding|encrypted|encrypted_value|encryption|encryption_type|end|endpoint|endpoint_url|enhancedintegrity|entry|error_broker_conversations|errorfile|estimateonly|event|except|exec|executable|execute|exists|expand|expiredate|expiry_date|explicit|external|external_access|failover|failover_mode|failure_condition_level|fast|fast_forward|fastfirstrow|federated_service_account|fetch|field_terminator|fieldterminator|file|filelistonly|filegroup|filegrowth|filename|filestream|filestream_log|filestream_on|filetable|file_format|filter|first_row|fips_flagger|fire_triggers|first|firstrow|float|flush_interval_seconds|fmtonly|following|for|force|force_failover_allow_data_loss|force_service_allow_data_loss|forced|forceplan|formatfile|format_options|format_type|formsof|forward_only|free_cursors|free_exec_context|fullscan|fulltext|fulltextall|fulltextkey|function|generated|get|geography|geometry|global|go|goto|governor|guid|hadoop|hardening|hash|hashed|header_limit|headeronly|health_check_timeout|hidden|hierarchyid|histogram|histogram_steps|hits_cursors|hits_exec_context|hour(s)?|http|identity|identity_value|if|ifnull|ignore|ignore_constraints|ignore_dup_key|ignore_dup_row|ignore_triggers|image|immediate|implicit_transactions|include|include_null_values|incremental|index|inflectional|init|initiator|insensitive|insert|instead|int|integer|integrated|intersect|intermediate|interval_length_minutes|into|inuse_cursors|inuse_exec_context|io|is|isabout|iso_week|isolation|job_tracker_location|json|keep|keep_nulls|keep_replication|keepdefaults|keepfixed|keepidentity|keepnulls|kerberos|key|key_path|key_source|key_store_provider_name|keyset|kill|kilobytes_per_batch|labelonly|langid|language|last|lastrow|leading|legacy_cardinality_estimation|length|level|lifetime|lineage_80_to_100|lineage_100_to_80|listener_ip|listener_port|load|loadhistory|lob_compaction|local|local_service_name|locate|location|lock_escalation|lock_timeout|lockres|log|login|login_type|loop|manual|mark_in_use_for_removal|masked|master|match|matched|max_queue_readers|max_duration|max_outstanding_io_per_volume|maxdop|maxerrors|maxlength|maxtransfersize|max_plans_per_query|max_storage_size_mb|mediadescription|medianame|mediapassword|memogroup|memory_optimized|merge|message|message_forward_size|message_forwarding|microsecond|millisecond|minute(s)?|mirror_address|misses_cursors|misses_exec_context|mixed|modify|money|month|move|multi_user|must_change|name|namespace|nanosecond|native|native_compilation|nchar|ncharacter|nested_triggers|never|new_account|new_broker|newname|next|no|no_browsetable|no_checksum|no_compression|no_infomsgs|no_triggers|no_truncate|nocount|noexec|noexpand|noformat|noinit|nolock|nonatomic|nonclustered|nondurable|none|norecompute|norecovery|noreset|norewind|noskip|not|notification|nounload|now|nowait|ntext|ntlm|nulls|numeric|numeric_roundabort|nvarchar|object|objid|oem|offline|old_account|online|operation_mode|open|openjson|optimistic|option|orc|out|outer|output|over|override|owner|ownership|pad_index|page|page_checksum|page_verify|pagecount|paglock|param|parameter_sniffing|parameter_type_expansion|parameterization|parquet|parseonly|partial|partition|partner|password|path|pause|percentage|permission_set|persisted|period|physical_only|plan_forcing_mode|policy|pool|population|ports|preceding|precision|predicate|presume_abort|primary|primary_role|print|prior|priority |priority_level|private|proc(edure)?|procedure_name|profile|provider|quarter|query_capture_mode|query_governor_cost_limit|query_optimizer_hotfixes|query_store|queue|quoted_identifier|raiserror|range|raw|rcfile|rc2|rc4|rc4_128|rdbms|read_committed_snapshot|read|read_only|read_write|readcommitted|readcommittedlock|readonly|readpast|readuncommitted|readwrite|real|rebuild|receive|recmodel_70backcomp|recompile|reconfigure|recovery|recursive|recursive_triggers|redo_queue|reject_sample_value|reject_type|reject_value|relative|remote|remote_data_archive|remote_proc_transactions|remote_service_name|remove|removed_cursors|removed_exec_context|reorganize|repeat|repeatable|repeatableread|replace|replica|replicated|replnick_100_to_80|replnickarray_80_to_100|replnickarray_100_to_80|required|required_cursopt|resample|reset|resource|resource_manager_location|respect|restart|restore|restricted_user|resume|retaindays|retention|return|revert|rewind|rewindonly|returns|robust|role|rollup|root|round_robin|route|row|rowdump|rowguidcol|rowlock|row_terminator|rows|rows_per_batch|rowsets_only|rowterminator|rowversion|rsa_1024|rsa_2048|rsa_3072|rsa_4096|rsa_512|safe|safety|sample|save|scalar|schema|schemabinding|scoped|scroll|scroll_locks|sddl|second|secexpr|seconds|secondary|secondary_only|secondary_role|secret|security|securityaudit|selective|self|send|sent|sequence|serde_method|serializable|server|service|service_broker|service_name|service_objective|session_timeout|session|sessions|seterror|setopts|sets|shard_map_manager|shard_map_name|sharded|shared_memory|shortest_path|show_statistics|showplan_all|showplan_text|showplan_xml|showplan_xml_with_recompile|shrinkdb|shutdown|sid|signature|simple|single_blob|single_clob|single_nclob|single_user|singleton|site|size|size_based_cleanup_mode|skip|smalldatetime|smallint|smallmoney|snapshot|snapshot_import|snapshotrestorephase|soap|softnuma|sort_in_tempdb|sorted_data|sorted_data_reorg|spatial|sql|sql_bigint|sql_binary|sql_bit|sql_char|sql_date|sql_decimal|sql_double|sql_float|sql_guid|sql_handle|sql_longvarbinary|sql_longvarchar|sql_numeric|sql_real|sql_smallint|sql_time|sql_timestamp|sql_tinyint|sql_tsi_day|sql_tsi_frac_second|sql_tsi_hour|sql_tsi_minute|sql_tsi_month|sql_tsi_quarter|sql_tsi_second|sql_tsi_week|sql_tsi_year|sql_type_date|sql_type_time|sql_type_timestamp|sql_varbinary|sql_varchar|sql_variant|sql_wchar|sql_wlongvarchar|ssl|ssl_port|standard|standby|start|start_date|started|stat_header|state|statement|static|statistics|statistics_incremental|statistics_norecompute|statistics_only|statman|stats|stats_stream|status|stop|stop_on_error|stopat|stopatmark|stopbeforemark|stoplist|stopped|string_delimiter|subject|supplemental_logging|supported|suspend|symmetric|synchronous_commit|synonym|sysname|system|system_time|system_versioning|table|tableresults|tablock|tablockx|take|tape|target|target_index|target_partition|target_recovery_time|tcp|temporal_history_retention|text|textimage_on|then|thesaurus|throw|time|timeout|timestamp|tinyint|to|top|torn_page_detection|track_columns_updated|trailing|tran|transaction|transfer|transform_noise_words|triple_des|triple_des_3key|truncate|trustworthy|try|tsql|two_digit_year_cutoff|type|type_desc|type_warning|tzoffset|uid|unbounded|uncommitted|unique|uniqueidentifier|unlimited|unload|unlock|unsafe|updlock|url|use|useplan|useroptions|use_type_default|using|utcdatetime|valid_xml|validation|value|values|varbinary|varchar|verbose|verifyonly|version|view_metadata|virtual_device|visiblity|wait_at_low_priority|waitfor|webmethod|week|weekday|weight|well_formed_xml|when|while|widechar|widechar_ansi|widenative|window|windows|with|within|within group|witness|without|without_array_wrapper|workload|wsdl|xact_abort|xlock|xml|xmlschema|xquery|xsinil|year|zone)\\b", name: "keyword.other.sql" }, { captures: { 1: { name: "punctuation.section.scope.begin.sql" }, 2: { name: "punctuation.section.scope.end.sql" } }, comment: "Allow for special ↩ behavior", match: "(\\()(\\))", name: "meta.block.sql" }], repository: { "comment-block": { begin: "/\\*", captures: { 0: { name: "punctuation.definition.comment.sql" } }, end: "\\*/", name: "comment.block", patterns: [{ include: "#comment-block" }] }, comments: { patterns: [{ begin: "(^[ \\t]+)?(?=--)", beginCaptures: { 1: { name: "punctuation.whitespace.comment.leading.sql" } }, end: "(?!\\G)", patterns: [{ begin: "--", beginCaptures: { 0: { name: "punctuation.definition.comment.sql" } }, end: "\\n", name: "comment.line.double-dash.sql" }] }, { begin: "(^[ \\t]+)?(?=#)", beginCaptures: { 1: { name: "punctuation.whitespace.comment.leading.sql" } }, end: "(?!\\G)", patterns: [] }, { include: "#comment-block" }] }, regexps: { patterns: [{ begin: "/(?=\\S.*/)", beginCaptures: { 0: { name: "punctuation.definition.string.begin.sql" } }, end: "/", endCaptures: { 0: { name: "punctuation.definition.string.end.sql" } }, name: "string.regexp.sql", patterns: [{ include: "#string_interpolation" }, { match: "\\\\/", name: "constant.character.escape.slash.sql" }] }, { begin: "%r\\{", beginCaptures: { 0: { name: "punctuation.definition.string.begin.sql" } }, comment: "We should probably handle nested bracket pairs!?! -- Allan", end: "\\}", endCaptures: { 0: { name: "punctuation.definition.string.end.sql" } }, name: "string.regexp.modr.sql", patterns: [{ include: "#string_interpolation" }] }] }, string_escape: { match: "\\\\.", name: "constant.character.escape.sql" }, string_interpolation: { captures: { 1: { name: "punctuation.definition.string.begin.sql" }, 3: { name: "punctuation.definition.string.end.sql" } }, match: "(#\\{)([^\\}]*)(\\})", name: "string.interpolated.sql" }, strings: { patterns: [{ captures: { 2: { name: "punctuation.definition.string.begin.sql" }, 3: { name: "punctuation.definition.string.end.sql" } }, comment: "this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.", match: "(N)?(')[^']*(')", name: "string.quoted.single.sql" }, { begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.sql" } }, end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.sql" } }, name: "string.quoted.single.sql", patterns: [{ include: "#string_escape" }] }, { captures: { 1: { name: "punctuation.definition.string.begin.sql" }, 2: { name: "punctuation.definition.string.end.sql" } }, comment: "this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.", match: "(`)[^`\\\\]*(`)", name: "string.quoted.other.backtick.sql" }, { begin: "`", beginCaptures: { 0: { name: "punctuation.definition.string.begin.sql" } }, end: "`", endCaptures: { 0: { name: "punctuation.definition.string.end.sql" } }, name: "string.quoted.other.backtick.sql", patterns: [{ include: "#string_escape" }] }, { captures: { 1: { name: "punctuation.definition.string.begin.sql" }, 2: { name: "punctuation.definition.string.end.sql" } }, comment: "this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.", match: '(")[^"#]*(")', name: "string.quoted.double.sql" }, { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.sql" } }, end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.sql" } }, name: "string.quoted.double.sql", patterns: [{ include: "#string_interpolation" }] }, { begin: "%\\{", beginCaptures: { 0: { name: "punctuation.definition.string.begin.sql" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.string.end.sql" } }, name: "string.other.quoted.brackets.sql", patterns: [{ include: "#string_interpolation" }] }] } }, scopeName: "source.sql" });
22
+ var t = [
23
+ e
24
+ ];
25
+ export {
26
+ t as default
27
+ };
@@ -0,0 +1,7 @@
1
+ const e = Object.freeze({ displayName: "SSH Config", fileTypes: ["ssh_config", ".ssh/config", "sshd_config"], name: "ssh-config", patterns: [{ match: "\\b(A(cceptEnv|dd(ressFamily|KeysToAgent)|llow(AgentForwarding|Groups|StreamLocalForwarding|TcpForwarding|Users)|uth(enticationMethods|orized((Keys(Command(User)?|File)|Principals(Command(User)?|File)))))|B(anner|atchMode|ind(Address|Interface))|C(anonical(Domains|ize(FallbackLocal|Hostname|MaxDots|PermittedCNAMEs))|ertificateFile|hallengeResponseAuthentication|heckHostIP|hrootDirectory|iphers?|learAllForwardings|ientAlive(CountMax|Interval)|ompression(Level)?|onnect(Timeout|ionAttempts)|ontrolMaster|ontrolPath|ontrolPersist)|D(eny(Groups|Users)|isableForwarding|ynamicForward)|E(nableSSHKeysign|scapeChar|xitOnForwardFailure|xposeAuthInfo)|F(ingerprintHash|orceCommand|orward(Agent|X11(Timeout|Trusted)?))|G(atewayPorts|SSAPI(Authentication|CleanupCredentials|ClientIdentity|DelegateCredentials|KeyExchange|RenewalForcesRekey|ServerIdentity|StrictAcceptorCheck|TrustDns)|atewayPorts|lobalKnownHostsFile)|H(ashKnownHosts|ost(based(AcceptedKeyTypes|Authentication|KeyTypes|UsesNameFromPacketOnly)|Certificate|Key(Agent|Algorithms|Alias)?|Name))|I(dentit(iesOnly|y(Agent|File))|gnore(Rhosts|Unknown|UserKnownHosts)|nclude|PQoS)|K(bdInteractive(Authentication|Devices)|erberos(Authentication|GetAFSToken|OrLocalPasswd|TicketCleanup)|exAlgorithms)|L(istenAddress|ocal(Command|Forward)|oginGraceTime|ogLevel)|M(ACs|atch|ax(AuthTries|Sessions|Startups))|N(oHostAuthenticationForLocalhost|umberOfPasswordPrompts)|P(KCS11Provider|asswordAuthentication|ermit(EmptyPasswords|LocalCommand|Open|RootLogin|TTY|Tunnel|User(Environment|RC))|idFile|ort|referredAuthentications|rint(LastLog|Motd)|rotocol|roxy(Command|Jump|UseFdpass)|ubkey(AcceptedKeyTypes|Authentication))|R(Domain|SAAuthentication|ekeyLimit|emote(Command|Forward)|equestTTY|evoked(HostKeys|Keys)|hostsRSAAuthentication)|S(endEnv|erverAlive(CountMax|Interval)|treamLocalBind(Mask|Unlink)|trict(HostKeyChecking|Modes)|ubsystem|yslogFacility)|T(CPKeepAlive|rustedUserCAKeys|unnel(Device)?)|U(pdateHostKeys|se(BlacklistedKeys|DNS|Keychain|PAM|PrivilegedPort|r(KnownHostsFile)?))|V(erifyHostKeyDNS|ersionAddendum|isualHostKey)|X(11(DisplayOffset|Forwarding|UseLocalhost)|AuthLocation))\\b", name: "keyword.other.ssh-config" }, { begin: "(^[ \\t]+)?(?=#)", beginCaptures: { 1: { name: "punctuation.whitespace.comment.leading.ssh-config" } }, end: "(?!\\G)", patterns: [{ begin: "#", beginCaptures: { 0: { name: "punctuation.definition.comment.ssh-config" } }, end: "\\n", name: "comment.line.number-sign.ssh-config" }] }, { begin: "(^[ \\t]+)?(?=//)", beginCaptures: { 1: { name: "punctuation.whitespace.comment.leading.ssh-config" } }, end: "(?!\\G)", patterns: [{ begin: "//", beginCaptures: { 0: { name: "punctuation.definition.comment.ssh-config" } }, end: "\\n", name: "comment.line.double-slash.ssh-config" }] }, { captures: { 1: { name: "storage.type.ssh-config" }, 2: { name: "entity.name.section.ssh-config" }, 3: { name: "meta.toc-list.ssh-config" } }, match: "(?:^| |\\t)(Host)\\s+((.*))$" }, { match: "\\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b", name: "constant.numeric.ssh-config" }, { match: "\\b[0-9]+\\b", name: "constant.numeric.ssh-config" }, { match: "\\b(yes|no)\\b", name: "constant.language.ssh-config" }, { match: "\\b[A-Z_]+\\b", name: "constant.language.ssh-config" }], scopeName: "source.ssh-config" });
2
+ var n = [
3
+ e
4
+ ];
5
+ export {
6
+ n as default
7
+ };
@@ -0,0 +1,266 @@
1
+ import { D as T, v as N, A as G } from "./styles-b2c874b6-HpcOhE4Y-Bj0upXzO.js";
2
+ import { c as t, h as M, l as k, i as L, j as z, ao as O, y as P } from "./index-B-5DuDrq.js";
3
+ import { Z as U } from "./graph-4FyIWFHN-774TpNLL.js";
4
+ import { A as I } from "./layout-2-aEcfuw-BqqWy5wB.js";
5
+ import { P as R } from "./line-nVq5kEiy-DtZd3PHZ.js";
6
+ const C = (e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), W = (e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), $ = (e, i) => {
7
+ const g = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), s = g.node().getBBox();
8
+ return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", s.width + 2 * t().state.padding).attr("height", s.height + 2 * t().state.padding).attr("rx", t().state.radius), g;
9
+ }, j = (e, i) => {
10
+ const g = function(o, f, b) {
11
+ const m = o.append("tspan").attr("x", 2 * t().state.padding).text(f);
12
+ b || m.attr("dy", t().state.textHeight);
13
+ }, s = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.descriptions[0]).node().getBBox(), d = s.height, h = e.append("text").attr("x", t().state.padding).attr(
14
+ "y",
15
+ d + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
16
+ ).attr("class", "state-description");
17
+ let l = !0, a = !0;
18
+ i.descriptions.forEach(function(o) {
19
+ l || (g(h, o, a), a = !1), l = !1;
20
+ });
21
+ const n = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + d + t().state.dividerMargin / 2).attr("y2", t().state.padding + d + t().state.dividerMargin / 2).attr("class", "descr-divider"), x = h.node().getBBox(), p = Math.max(x.width, s.width);
22
+ return n.attr("x2", p + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", p + 2 * t().state.padding).attr("height", x.height + d + 2 * t().state.padding).attr("rx", t().state.radius), e;
23
+ }, J = (e, i, g) => {
24
+ const s = t().state.padding, d = 2 * t().state.padding, h = e.node().getBBox(), l = h.width, a = h.x, n = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), x = n.node().getBBox().width + d;
25
+ let p = Math.max(x, l);
26
+ p === l && (p = p + d);
27
+ let o;
28
+ const f = e.node().getBBox();
29
+ i.doc, o = a - s, x > l && (o = (l - p) / 2 + s), Math.abs(a - f.x) < s && x > l && (o = a - (x - l) / 2);
30
+ const b = 1 - t().state.textHeight;
31
+ return e.insert("rect", ":first-child").attr("x", o).attr("y", b).attr("class", g ? "alt-composit" : "composit").attr("width", p).attr(
32
+ "height",
33
+ f.height + t().state.textHeight + t().state.titleShift + 1
34
+ ).attr("rx", "0"), n.attr("x", o + s), x <= l && n.attr("x", a + (p - d) / 2 - x / 2 + s), e.insert("rect", ":first-child").attr("x", o).attr(
35
+ "y",
36
+ t().state.titleShift - t().state.textHeight - t().state.padding
37
+ ).attr("width", p).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", o).attr(
38
+ "y",
39
+ t().state.titleShift - t().state.textHeight - t().state.padding
40
+ ).attr("width", p).attr("height", f.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
41
+ }, Y = (e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
42
+ "cx",
43
+ t().state.padding + t().state.sizeUnit + t().state.miniPadding
44
+ ).attr(
45
+ "cy",
46
+ t().state.padding + t().state.sizeUnit + t().state.miniPadding
47
+ ), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), Z = (e, i) => {
48
+ let g = t().state.forkWidth, s = t().state.forkHeight;
49
+ if (i.parentId) {
50
+ let d = g;
51
+ g = s, s = d;
52
+ }
53
+ return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", g).attr("height", s).attr("x", t().state.padding).attr("y", t().state.padding);
54
+ }, F = (e, i, g, s) => {
55
+ let d = 0;
56
+ const h = s.append("text");
57
+ h.style("text-anchor", "start"), h.attr("class", "noteText");
58
+ let l = e.replace(/\r\n/g, "<br/>");
59
+ l = l.replace(/\n/g, "<br/>");
60
+ const a = l.split(z.lineBreakRegex);
61
+ let n = 1.25 * t().state.noteMargin;
62
+ for (const x of a) {
63
+ const p = x.trim();
64
+ if (p.length > 0) {
65
+ const o = h.append("tspan");
66
+ if (o.text(p), n === 0) {
67
+ const f = o.node().getBBox();
68
+ n += f.height;
69
+ }
70
+ d += n, o.attr("x", i + t().state.noteMargin), o.attr("y", g + d + 1.25 * t().state.noteMargin);
71
+ }
72
+ }
73
+ return { textWidth: h.node().getBBox().width, textHeight: d };
74
+ }, X = (e, i) => {
75
+ i.attr("class", "state-note");
76
+ const g = i.append("rect").attr("x", 0).attr("y", t().state.padding), s = i.append("g"), { textWidth: d, textHeight: h } = F(e, 0, 0, s);
77
+ return g.attr("height", h + 2 * t().state.noteMargin), g.attr("width", d + t().state.noteMargin * 2), g;
78
+ }, H = function(e, i) {
79
+ const g = i.id, s = {
80
+ id: g,
81
+ label: i.id,
82
+ width: 0,
83
+ height: 0
84
+ }, d = e.append("g").attr("id", g).attr("class", "stateGroup");
85
+ i.type === "start" && C(d), i.type === "end" && Y(d), (i.type === "fork" || i.type === "join") && Z(d, i), i.type === "note" && X(i.note.text, d), i.type === "divider" && W(d), i.type === "default" && i.descriptions.length === 0 && $(d, i), i.type === "default" && i.descriptions.length > 0 && j(d, i);
86
+ const h = d.node().getBBox();
87
+ return s.width = h.width + 2 * t().state.padding, s.height = h.height + 2 * t().state.padding, s;
88
+ };
89
+ let A = 0;
90
+ const q = function(e, i, g) {
91
+ const s = function(n) {
92
+ switch (n) {
93
+ case N.relationType.AGGREGATION:
94
+ return "aggregation";
95
+ case N.relationType.EXTENSION:
96
+ return "extension";
97
+ case N.relationType.COMPOSITION:
98
+ return "composition";
99
+ case N.relationType.DEPENDENCY:
100
+ return "dependency";
101
+ }
102
+ };
103
+ i.points = i.points.filter((n) => !Number.isNaN(n.y));
104
+ const d = i.points, h = R().x(function(n) {
105
+ return n.x;
106
+ }).y(function(n) {
107
+ return n.y;
108
+ }).curve(O), l = e.append("path").attr("d", h(d)).attr("id", "edge" + A).attr("class", "transition");
109
+ let a = "";
110
+ if (t().state.arrowMarkerAbsolute && (a = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, a = a.replace(/\(/g, "\\("), a = a.replace(/\)/g, "\\)")), l.attr(
111
+ "marker-end",
112
+ "url(" + a + "#" + s(N.relationType.DEPENDENCY) + "End)"
113
+ ), g.title !== void 0) {
114
+ const n = e.append("g").attr("class", "stateLabel"), { x, y: p } = P.calcLabelPosition(i.points), o = z.getRows(g.title);
115
+ let f = 0;
116
+ const b = [];
117
+ let m = 0, S = 0;
118
+ for (let u = 0; u <= o.length; u++) {
119
+ const c = n.append("text").attr("text-anchor", "middle").text(o[u]).attr("x", x).attr("y", p + f), y = c.node().getBBox();
120
+ m = Math.max(m, y.width), S = Math.min(S, y.x), k.info(y.x, x, p + f), f === 0 && (f = c.node().getBBox().height, k.info("Title height", f, p)), b.push(c);
121
+ }
122
+ let E = f * o.length;
123
+ if (o.length > 1) {
124
+ const u = (o.length - 1) * f * 0.5;
125
+ b.forEach((c, y) => c.attr("y", p + y * f - u)), E = f * o.length;
126
+ }
127
+ const r = n.node().getBBox();
128
+ n.insert("rect", ":first-child").attr("class", "box").attr("x", x - m / 2 - t().state.padding / 2).attr("y", p - E / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", E + t().state.padding), k.info(r);
129
+ }
130
+ A++;
131
+ };
132
+ let w;
133
+ const v = {}, K = function() {
134
+ }, Q = function(e) {
135
+ e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
136
+ }, V = function(e, i, g, s) {
137
+ w = t().state;
138
+ const d = t().securityLevel;
139
+ let h;
140
+ d === "sandbox" && (h = M("#i" + i));
141
+ const l = d === "sandbox" ? M(h.nodes()[0].contentDocument.body) : M("body"), a = d === "sandbox" ? h.nodes()[0].contentDocument : document;
142
+ k.debug("Rendering diagram " + e);
143
+ const n = l.select(`[id='${i}']`);
144
+ Q(n);
145
+ const x = s.db.getRootDoc();
146
+ D(x, n, void 0, !1, l, a, s);
147
+ const p = w.padding, o = n.node().getBBox(), f = o.width + p * 2, b = o.height + p * 2, m = f * 1.75;
148
+ L(n, b, m, w.useMaxWidth), n.attr(
149
+ "viewBox",
150
+ `${o.x - w.padding} ${o.y - w.padding} ` + f + " " + b
151
+ );
152
+ }, _ = (e) => e ? e.length * w.fontSizeFactor : 1, D = (e, i, g, s, d, h, l) => {
153
+ const a = new U({
154
+ compound: !0,
155
+ multigraph: !0
156
+ });
157
+ let n, x = !0;
158
+ for (n = 0; n < e.length; n++)
159
+ if (e[n].stmt === "relation") {
160
+ x = !1;
161
+ break;
162
+ }
163
+ g ? a.setGraph({
164
+ rankdir: "LR",
165
+ multigraph: !0,
166
+ compound: !0,
167
+ // acyclicer: 'greedy',
168
+ ranker: "tight-tree",
169
+ ranksep: x ? 1 : w.edgeLengthFactor,
170
+ nodeSep: x ? 1 : 50,
171
+ isMultiGraph: !0
172
+ // ranksep: 5,
173
+ // nodesep: 1
174
+ }) : a.setGraph({
175
+ rankdir: "TB",
176
+ multigraph: !0,
177
+ compound: !0,
178
+ // isCompound: true,
179
+ // acyclicer: 'greedy',
180
+ // ranker: 'longest-path'
181
+ ranksep: x ? 1 : w.edgeLengthFactor,
182
+ nodeSep: x ? 1 : 50,
183
+ ranker: "tight-tree",
184
+ // ranker: 'network-simplex'
185
+ isMultiGraph: !0
186
+ }), a.setDefaultEdgeLabel(function() {
187
+ return {};
188
+ }), l.db.extract(e);
189
+ const p = l.db.getStates(), o = l.db.getRelations(), f = Object.keys(p);
190
+ for (const r of f) {
191
+ const u = p[r];
192
+ g && (u.parentId = g);
193
+ let c;
194
+ if (u.doc) {
195
+ let y = i.append("g").attr("id", u.id).attr("class", "stateGroup");
196
+ c = D(u.doc, y, u.id, !s, d, h, l);
197
+ {
198
+ y = J(y, u, s);
199
+ let B = y.node().getBBox();
200
+ c.width = B.width, c.height = B.height + w.padding / 2, v[u.id] = { y: w.compositTitleSize };
201
+ }
202
+ } else
203
+ c = H(i, u);
204
+ if (u.note) {
205
+ const y = {
206
+ descriptions: [],
207
+ id: u.id + "-note",
208
+ note: u.note,
209
+ type: "note"
210
+ }, B = H(i, y);
211
+ u.note.position === "left of" ? (a.setNode(c.id + "-note", B), a.setNode(c.id, c)) : (a.setNode(c.id, c), a.setNode(c.id + "-note", B)), a.setParent(c.id, c.id + "-group"), a.setParent(c.id + "-note", c.id + "-group");
212
+ } else
213
+ a.setNode(c.id, c);
214
+ }
215
+ k.debug("Count=", a.nodeCount(), a);
216
+ let b = 0;
217
+ o.forEach(function(r) {
218
+ b++, k.debug("Setting edge", r), a.setEdge(
219
+ r.id1,
220
+ r.id2,
221
+ {
222
+ relation: r,
223
+ width: _(r.title),
224
+ height: w.labelHeight * z.getRows(r.title).length,
225
+ labelpos: "c"
226
+ },
227
+ "id" + b
228
+ );
229
+ }), I(a), k.debug("Graph after layout", a.nodes());
230
+ const m = i.node();
231
+ a.nodes().forEach(function(r) {
232
+ r !== void 0 && a.node(r) !== void 0 ? (k.warn("Node " + r + ": " + JSON.stringify(a.node(r))), d.select("#" + m.id + " #" + r).attr(
233
+ "transform",
234
+ "translate(" + (a.node(r).x - a.node(r).width / 2) + "," + (a.node(r).y + (v[r] ? v[r].y : 0) - a.node(r).height / 2) + " )"
235
+ ), d.select("#" + m.id + " #" + r).attr("data-x-shift", a.node(r).x - a.node(r).width / 2), h.querySelectorAll("#" + m.id + " #" + r + " .divider").forEach((u) => {
236
+ const c = u.parentElement;
237
+ let y = 0, B = 0;
238
+ c && (c.parentElement && (y = c.parentElement.getBBox().width), B = parseInt(c.getAttribute("data-x-shift"), 10), Number.isNaN(B) && (B = 0)), u.setAttribute("x1", 0 - B + 8), u.setAttribute("x2", y - B - 8);
239
+ })) : k.debug("No Node " + r + ": " + JSON.stringify(a.node(r)));
240
+ });
241
+ let S = m.getBBox();
242
+ a.edges().forEach(function(r) {
243
+ r !== void 0 && a.edge(r) !== void 0 && (k.debug("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(a.edge(r))), q(i, a.edge(r), a.edge(r).relation));
244
+ }), S = m.getBBox();
245
+ const E = {
246
+ id: g || "root",
247
+ label: g || "root",
248
+ width: 0,
249
+ height: 0
250
+ };
251
+ return E.width = S.width + 2 * w.padding, E.height = S.height + 2 * w.padding, k.debug("Doc rendered", E, a), E;
252
+ }, tt = {
253
+ setConf: K,
254
+ draw: V
255
+ }, nt = {
256
+ parser: T,
257
+ db: N,
258
+ renderer: tt,
259
+ styles: G,
260
+ init: (e) => {
261
+ e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute, N.clear();
262
+ }
263
+ };
264
+ export {
265
+ nt as diagram
266
+ };