@elmethis/core 1.0.0-alpha.149 → 1.0.0-alpha.150

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 (666) hide show
  1. package/dist/index.d.ts +2 -3
  2. package/dist/index.mjs +119 -121
  3. package/package.json +1 -1
  4. package/dist/_virtual/_commonjsHelpers.mjs +0 -6
  5. package/dist/_virtual/advancedFormat.mjs +0 -7
  6. package/dist/_virtual/advancedFormat2.mjs +0 -4
  7. package/dist/_virtual/cancellation.mjs +0 -5
  8. package/dist/_virtual/cancellation2.mjs +0 -4
  9. package/dist/_virtual/constants.mjs +0 -4
  10. package/dist/_virtual/cose-base.mjs +0 -4
  11. package/dist/_virtual/cose-base2.mjs +0 -4
  12. package/dist/_virtual/customParseFormat.mjs +0 -7
  13. package/dist/_virtual/customParseFormat2.mjs +0 -4
  14. package/dist/_virtual/cytoscape-cose-bilkent.mjs +0 -7
  15. package/dist/_virtual/cytoscape-cose-bilkent2.mjs +0 -4
  16. package/dist/_virtual/cytoscape-fcose.mjs +0 -7
  17. package/dist/_virtual/cytoscape-fcose2.mjs +0 -4
  18. package/dist/_virtual/dayjs.min.mjs +0 -7
  19. package/dist/_virtual/dayjs.min2.mjs +0 -4
  20. package/dist/_virtual/events.mjs +0 -5
  21. package/dist/_virtual/events2.mjs +0 -4
  22. package/dist/_virtual/index.mjs +0 -5
  23. package/dist/_virtual/index2.mjs +0 -4
  24. package/dist/_virtual/is.mjs +0 -4
  25. package/dist/_virtual/isoWeek.mjs +0 -7
  26. package/dist/_virtual/isoWeek2.mjs +0 -4
  27. package/dist/_virtual/layout-base.mjs +0 -4
  28. package/dist/_virtual/layout-base2.mjs +0 -4
  29. package/dist/_virtual/ral.mjs +0 -4
  30. package/dist/components/code/ElmMermaid.stories.d.ts +0 -7
  31. package/dist/components/code/ElmMermaid.vue.d.ts +0 -8
  32. package/dist/components/code/ElmMermaid.vue.mjs +0 -6
  33. package/dist/components/code/ElmMermaid.vue2.mjs +0 -56
  34. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/constants.mjs +0 -20
  35. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.mjs +0 -76
  36. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/helpers.mjs +0 -57
  37. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/model.mjs +0 -220
  38. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/visitor.mjs +0 -64
  39. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.mjs +0 -101
  40. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.mjs +0 -45
  41. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.mjs +0 -693
  42. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.mjs +0 -39
  43. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/print.mjs +0 -14
  44. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/timer.mjs +0 -10
  45. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/to-fast-properties.mjs +0 -15
  46. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.mjs +0 -15
  47. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.mjs +0 -28
  48. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.mjs +0 -20
  49. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/name.mjs +0 -54
  50. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.mjs +0 -17
  51. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +0 -27
  52. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.mjs +0 -24
  53. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.mjs +0 -120
  54. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.mjs +0 -33
  55. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/html.mjs +0 -10
  56. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/id.mjs +0 -29
  57. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.mjs +0 -41
  58. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-4AB2E3PP.mjs +0 -6
  59. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2NYFTIL2.mjs +0 -34
  60. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2O5ZK7RR.mjs +0 -34
  61. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7PKI6E2E.mjs +0 -541
  62. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-C4OEIS7N.mjs +0 -46
  63. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EXZZNE6F.mjs +0 -34
  64. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ROXG7S4E.mjs +0 -42
  65. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-V4Q32G6S.mjs +0 -34
  66. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-O2Q2CXLX.mjs +0 -6
  67. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-4N47QTOZ.mjs +0 -6
  68. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-KVYON367.mjs +0 -6
  69. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-R6RNRRYF.mjs +0 -6
  70. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-MK3ICKWK.mjs +0 -6
  71. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs +0 -115
  72. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/all-star-lookahead.mjs +0 -531
  73. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/atn.mjs +0 -393
  74. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/dfa.mjs +0 -42
  75. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/lang/lang_extensions.mjs +0 -12
  76. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/constants.mjs +0 -4
  77. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst.mjs +0 -42
  78. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.mjs +0 -87
  79. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/errors_public.mjs +0 -161
  80. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/exceptions_public.mjs +0 -60
  81. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/checks.mjs +0 -416
  82. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/first.mjs +0 -47
  83. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/follow.mjs +0 -41
  84. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.mjs +0 -24
  85. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/interpreter.mjs +0 -424
  86. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/keys.mjs +0 -22
  87. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.mjs +0 -48
  88. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/lookahead.mjs +0 -387
  89. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/resolver.mjs +0 -40
  90. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/rest.mjs +0 -83
  91. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/parser.mjs +0 -181
  92. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.mjs +0 -25
  93. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.mjs +0 -69
  94. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.mjs +0 -270
  95. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.mjs +0 -59
  96. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.mjs +0 -128
  97. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.mjs +0 -38
  98. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.mjs +0 -323
  99. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.mjs +0 -434
  100. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.mjs +0 -251
  101. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.mjs +0 -167
  102. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.mjs +0 -19
  103. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer.mjs +0 -720
  104. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_errors_public.mjs +0 -11
  105. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_public.mjs +0 -552
  106. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp.mjs +0 -214
  107. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp_parser.mjs +0 -20
  108. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens.mjs +0 -115
  109. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens_public.mjs +0 -88
  110. package/dist/node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.mjs +0 -1090
  111. package/dist/node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.mjs +0 -2555
  112. package/dist/node_modules/.pnpm/cytoscape-cose-bilkent@4.1.0_cytoscape@3.31.1/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.mjs +0 -374
  113. package/dist/node_modules/.pnpm/cytoscape-fcose@2.2.0_cytoscape@3.31.1/node_modules/cytoscape-fcose/cytoscape-fcose.mjs +0 -1278
  114. package/dist/node_modules/.pnpm/cytoscape@3.31.1/node_modules/cytoscape/dist/cytoscape.esm.mjs +0 -29469
  115. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/max.mjs +0 -21
  116. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/min.mjs +0 -21
  117. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/sum.mjs +0 -21
  118. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.mjs +0 -6
  119. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.mjs +0 -10
  120. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.mjs +0 -47
  121. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.mjs +0 -6
  122. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.mjs +0 -21
  123. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.mjs +0 -21
  124. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.mjs +0 -6
  125. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/range.mjs +0 -11
  126. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.mjs +0 -51
  127. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/axis.mjs +0 -94
  128. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/identity.mjs +0 -6
  129. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.mjs +0 -338
  130. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.mjs +0 -13
  131. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/lab.mjs +0 -95
  132. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/math.mjs +0 -6
  133. package/dist/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.mjs +0 -70
  134. package/dist/node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.mjs +0 -6
  135. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/defaultLocale.mjs +0 -20
  136. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/exponent.mjs +0 -7
  137. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatDecimal.mjs +0 -15
  138. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatGroup.mjs +0 -15
  139. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatNumerals.mjs +0 -10
  140. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatPrefixAuto.mjs +0 -12
  141. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatRounded.mjs +0 -10
  142. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatSpecifier.mjs +0 -37
  143. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTrim.mjs +0 -21
  144. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTypes.mjs +0 -21
  145. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/identity.mjs +0 -6
  146. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/locale.mjs +0 -82
  147. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionFixed.mjs +0 -7
  148. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionPrefix.mjs +0 -7
  149. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionRound.mjs +0 -8
  150. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.mjs +0 -13
  151. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.mjs +0 -29
  152. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.mjs +0 -4
  153. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.mjs +0 -9
  154. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/hcl.mjs +0 -18
  155. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.mjs +0 -8
  156. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.mjs +0 -15
  157. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.mjs +0 -20
  158. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.mjs +0 -20
  159. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.mjs +0 -8
  160. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.mjs +0 -43
  161. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.mjs +0 -28
  162. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.mjs +0 -59
  163. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.mjs +0 -18
  164. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.mjs +0 -16
  165. package/dist/node_modules/.pnpm/d3-path@1.0.9/node_modules/d3-path/src/path.mjs +0 -73
  166. package/dist/node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.mjs +0 -88
  167. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/align.mjs +0 -22
  168. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/constant.mjs +0 -8
  169. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankey.mjs +0 -326
  170. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankeyLinkHorizontal.mjs +0 -13
  171. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/categorical/Tableau10.mjs +0 -5
  172. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/colors.mjs +0 -8
  173. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/band.mjs +0 -56
  174. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.mjs +0 -8
  175. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.mjs +0 -95
  176. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.mjs +0 -16
  177. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/linear.mjs +0 -61
  178. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/nice.mjs +0 -14
  179. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/number.mjs +0 -6
  180. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.mjs +0 -38
  181. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.mjs +0 -34
  182. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/time.mjs +0 -54
  183. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.mjs +0 -6
  184. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.mjs +0 -8
  185. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.mjs +0 -20
  186. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.mjs +0 -14
  187. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.mjs +0 -9
  188. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.mjs +0 -12
  189. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs +0 -7
  190. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.mjs +0 -10
  191. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.mjs +0 -46
  192. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.mjs +0 -9
  193. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.mjs +0 -64
  194. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.mjs +0 -14
  195. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.mjs +0 -76
  196. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.mjs +0 -6
  197. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.mjs +0 -28
  198. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.mjs +0 -11
  199. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.mjs +0 -6
  200. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.mjs +0 -31
  201. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.mjs +0 -8
  202. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.mjs +0 -16
  203. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.mjs +0 -20
  204. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.mjs +0 -88
  205. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.mjs +0 -14
  206. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.mjs +0 -10
  207. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.mjs +0 -19
  208. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.mjs +0 -9
  209. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.mjs +0 -18
  210. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.mjs +0 -12
  211. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.mjs +0 -6
  212. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.mjs +0 -64
  213. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.mjs +0 -14
  214. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.mjs +0 -23
  215. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.mjs +0 -9
  216. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.mjs +0 -10
  217. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.mjs +0 -17
  218. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.mjs +0 -24
  219. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.mjs +0 -16
  220. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.mjs +0 -16
  221. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.mjs +0 -8
  222. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.mjs +0 -22
  223. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.mjs +0 -6
  224. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.mjs +0 -28
  225. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.mjs +0 -20
  226. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.mjs +0 -10
  227. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.mjs +0 -11
  228. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.mjs +0 -6
  229. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/array.mjs +0 -4
  230. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/constant.mjs +0 -8
  231. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/link/index.mjs +0 -45
  232. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/point.mjs +0 -10
  233. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.mjs +0 -133
  234. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.mjs +0 -6
  235. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.mjs +0 -8
  236. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.mjs +0 -66
  237. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.mjs +0 -63
  238. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.mjs +0 -50
  239. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.mjs +0 -49
  240. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bundle.mjs +0 -43
  241. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.mjs +0 -73
  242. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalClosed.mjs +0 -69
  243. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.mjs +0 -57
  244. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.mjs +0 -83
  245. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomClosed.mjs +0 -75
  246. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.mjs +0 -63
  247. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.mjs +0 -39
  248. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.mjs +0 -25
  249. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.mjs +0 -99
  250. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.mjs +0 -54
  251. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.mjs +0 -59
  252. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/descending.mjs +0 -6
  253. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/identity.mjs +0 -6
  254. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.mjs +0 -41
  255. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.mjs +0 -32
  256. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.mjs +0 -5
  257. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.mjs +0 -19
  258. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/pie.mjs +0 -55
  259. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.mjs +0 -10
  260. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/defaultLocale.mjs +0 -25
  261. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/locale.mjs +0 -542
  262. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/day.mjs +0 -34
  263. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/duration.mjs +0 -16
  264. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/hour.mjs +0 -26
  265. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/interval.mjs +0 -61
  266. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/millisecond.mjs +0 -23
  267. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/minute.mjs +0 -26
  268. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/month.mjs +0 -27
  269. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/second.mjs +0 -15
  270. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/ticks.mjs +0 -54
  271. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/week.mjs +0 -66
  272. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/year.mjs +0 -45
  273. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.mjs +0 -13
  274. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.mjs +0 -96
  275. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.mjs +0 -21
  276. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs +0 -5
  277. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.mjs +0 -9
  278. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.mjs +0 -39
  279. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.mjs +0 -55
  280. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.mjs +0 -42
  281. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.mjs +0 -18
  282. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.mjs +0 -18
  283. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.mjs +0 -14
  284. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.mjs +0 -15
  285. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.mjs +0 -23
  286. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.mjs +0 -16
  287. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.mjs +0 -68
  288. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.mjs +0 -11
  289. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.mjs +0 -18
  290. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.mjs +0 -23
  291. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.mjs +0 -13
  292. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.mjs +0 -125
  293. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.mjs +0 -20
  294. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.mjs +0 -24
  295. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.mjs +0 -8
  296. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.mjs +0 -47
  297. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.mjs +0 -25
  298. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.mjs +0 -18
  299. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.mjs +0 -25
  300. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.mjs +0 -22
  301. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.mjs +0 -64
  302. package/dist/node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs +0 -45
  303. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/acyclic.mjs +0 -55
  304. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/add-border-segments.mjs +0 -33
  305. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/coordinate-system.mjs +0 -66
  306. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/data/list.mjs +0 -49
  307. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/greedy-fas.mjs +0 -97
  308. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/layout.mjs +0 -344
  309. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/nesting-graph.mjs +0 -94
  310. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/normalize.mjs +0 -69
  311. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.mjs +0 -25
  312. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/barycenter.mjs +0 -29
  313. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.mjs +0 -33
  314. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/cross-count.mjs +0 -54
  315. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/index.mjs +0 -51
  316. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/init-order.mjs +0 -30
  317. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.mjs +0 -84
  318. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.mjs +0 -66
  319. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort.mjs +0 -47
  320. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.mjs +0 -66
  321. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/bk.mjs +0 -296
  322. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/index.mjs +0 -29
  323. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.mjs +0 -45
  324. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/index.mjs +0 -29
  325. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.mjs +0 -148
  326. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/util.mjs +0 -30
  327. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/util.mjs +0 -164
  328. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dfs.mjs +0 -33
  329. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.mjs +0 -2
  330. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.mjs +0 -2
  331. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/postorder.mjs +0 -7
  332. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/preorder.mjs +0 -7
  333. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/topsort.mjs +0 -7
  334. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/graph.mjs +0 -420
  335. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/json.mjs +0 -47
  336. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.mjs +0 -286
  337. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/advancedFormat.mjs +0 -58
  338. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/customParseFormat.mjs +0 -133
  339. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isoWeek.mjs +0 -37
  340. package/dist/node_modules/.pnpm/dompurify@3.2.4/node_modules/dompurify/dist/purify.es.mjs +0 -965
  341. package/dist/node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.mjs +0 -43
  342. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/index.mjs +0 -131
  343. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/reusable.mjs +0 -5
  344. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/type.mjs +0 -24
  345. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hex.mjs +0 -40
  346. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hsl.mjs +0 -50
  347. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/index.mjs +0 -39
  348. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/keyword.mjs +0 -172
  349. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/rgb.mjs +0 -33
  350. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/constants.mjs +0 -13
  351. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust.mjs +0 -15
  352. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust_channel.mjs +0 -13
  353. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/change.mjs +0 -12
  354. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/channel.mjs +0 -8
  355. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/darken.mjs +0 -7
  356. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/invert.mjs +0 -12
  357. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_dark.mjs +0 -7
  358. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_light.mjs +0 -7
  359. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/lighten.mjs +0 -7
  360. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/luminance.mjs +0 -10
  361. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/mix.mjs +0 -20
  362. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/rgba.mjs +0 -18
  363. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/channel.mjs +0 -95
  364. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/index.mjs +0 -11
  365. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/lang.mjs +0 -14
  366. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/unit.mjs +0 -10
  367. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/default-module.mjs +0 -87
  368. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/dependency-injection.mjs +0 -74
  369. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/comment-provider.mjs +0 -17
  370. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/documentation-provider.mjs +0 -62
  371. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/jsdoc.mjs +0 -478
  372. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/generated/ast.mjs +0 -725
  373. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/grammar-config.mjs +0 -20
  374. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/async-parser.mjs +0 -11
  375. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/completion-parser-builder.mjs +0 -13
  376. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/cst-node-builder.mjs +0 -233
  377. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser-builder.mjs +0 -17
  378. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser.mjs +0 -453
  379. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/lexer.mjs +0 -72
  380. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/parser-builder-base.mjs +0 -336
  381. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/token-builder.mjs +0 -105
  382. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/value-converter.mjs +0 -111
  383. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/linker.mjs +0 -139
  384. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/name-provider.mjs +0 -19
  385. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/references.mjs +0 -80
  386. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-computation.mjs +0 -70
  387. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-provider.mjs +0 -62
  388. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope.mjs +0 -60
  389. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/hydrator.mjs +0 -256
  390. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/json-serializer.mjs +0 -202
  391. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/service-registry.mjs +0 -69
  392. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/syntax-tree.mjs +0 -73
  393. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/ast-utils.mjs +0 -159
  394. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/caching.mjs +0 -137
  395. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/collections.mjs +0 -177
  396. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/cst-utils.mjs +0 -126
  397. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/disposable.mjs +0 -12
  398. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/errors.mjs +0 -12
  399. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-loader.mjs +0 -33
  400. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-utils.mjs +0 -377
  401. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/promise-utils.mjs +0 -56
  402. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/regexp-utils.mjs +0 -239
  403. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/stream.mjs +0 -466
  404. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/uri-utils.mjs +0 -37
  405. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/document-validator.mjs +0 -236
  406. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/validation-registry.mjs +0 -142
  407. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-descriptions.mjs +0 -75
  408. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-node-locator.mjs +0 -43
  409. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/configuration.mjs +0 -81
  410. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/document-builder.mjs +0 -328
  411. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/documents.mjs +0 -210
  412. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/file-system-provider.mjs +0 -15
  413. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/index-manager.mjs +0 -74
  414. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-lock.mjs +0 -64
  415. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-manager.mjs +0 -106
  416. package/dist/node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.mjs +0 -3197
  417. package/dist/node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.mjs +0 -3745
  418. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +0 -6
  419. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs +0 -21
  420. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs +0 -21
  421. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs +0 -6
  422. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs +0 -21
  423. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +0 -6
  424. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +0 -6
  425. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.mjs +0 -15
  426. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs +0 -18
  427. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs +0 -5
  428. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs +0 -5
  429. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +0 -6
  430. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs +0 -16
  431. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs +0 -12
  432. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +0 -13
  433. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.mjs +0 -8
  434. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs +0 -24
  435. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs +0 -10
  436. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs +0 -10
  437. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.mjs +0 -13
  438. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.mjs +0 -12
  439. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs +0 -10
  440. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs +0 -13
  441. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs +0 -13
  442. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.mjs +0 -8
  443. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs +0 -16
  444. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +0 -83
  445. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs +0 -21
  446. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEach.mjs +0 -6
  447. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseExtremum.mjs +0 -14
  448. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFilter.mjs +0 -13
  449. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.mjs +0 -12
  450. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFlatten.mjs +0 -21
  451. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs +0 -5
  452. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.mjs +0 -8
  453. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs +0 -13
  454. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +0 -9
  455. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs +0 -14
  456. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.mjs +0 -6
  457. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.mjs +0 -9
  458. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs +0 -9
  459. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.mjs +0 -14
  460. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.mjs +0 -45
  461. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs +0 -9
  462. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.mjs +0 -35
  463. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.mjs +0 -6
  464. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs +0 -22
  465. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs +0 -9
  466. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs +0 -14
  467. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.mjs +0 -20
  468. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +0 -19
  469. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs +0 -20
  470. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseLt.mjs +0 -6
  471. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMap.mjs +0 -12
  472. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.mjs +0 -15
  473. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.mjs +0 -20
  474. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs +0 -27
  475. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs +0 -61
  476. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.mjs +0 -8
  477. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.mjs +0 -9
  478. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseReduce.mjs +0 -9
  479. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs +0 -9
  480. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs +0 -14
  481. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs +0 -10
  482. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs +0 -21
  483. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs +0 -8
  484. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.mjs +0 -46
  485. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.mjs +0 -6
  486. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castFunction.mjs +0 -7
  487. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs +0 -13
  488. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs +0 -9
  489. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs +0 -16
  490. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +0 -7
  491. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs +0 -9
  492. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs +0 -8
  493. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs +0 -8
  494. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs +0 -11
  495. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs +0 -23
  496. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.mjs +0 -8
  497. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs +0 -5
  498. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs +0 -23
  499. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseEach.mjs +0 -21
  500. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs +0 -15
  501. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.mjs +0 -10
  502. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs +0 -12
  503. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.mjs +0 -50
  504. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.mjs +0 -59
  505. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.mjs +0 -50
  506. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs +0 -4
  507. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +0 -9
  508. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs +0 -8
  509. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.mjs +0 -13
  510. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs +0 -9
  511. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs +0 -5
  512. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs +0 -25
  513. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +0 -17
  514. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +0 -34
  515. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs +0 -6
  516. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.mjs +0 -25
  517. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs +0 -8
  518. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs +0 -8
  519. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs +0 -15
  520. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs +0 -10
  521. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs +0 -11
  522. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs +0 -13
  523. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +0 -43
  524. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs +0 -9
  525. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isFlattenable.mjs +0 -10
  526. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs +0 -10
  527. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs +0 -17
  528. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs +0 -16
  529. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs +0 -7
  530. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs +0 -11
  531. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs +0 -8
  532. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.mjs +0 -7
  533. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs +0 -7
  534. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs +0 -20
  535. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs +0 -8
  536. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs +0 -7
  537. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs +0 -14
  538. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs +0 -14
  539. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs +0 -9
  540. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs +0 -7
  541. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs +0 -7
  542. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs +0 -10
  543. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.mjs +0 -10
  544. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.mjs +0 -11
  545. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs +0 -15
  546. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs +0 -5
  547. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +0 -5
  548. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs +0 -12
  549. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs +0 -18
  550. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs +0 -8
  551. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs +0 -8
  552. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs +0 -21
  553. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs +0 -6
  554. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs +0 -12
  555. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.mjs +0 -8
  556. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.mjs +0 -6
  557. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.mjs +0 -10
  558. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs +0 -6
  559. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs +0 -20
  560. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs +0 -8
  561. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs +0 -8
  562. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs +0 -6
  563. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs +0 -6
  564. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs +0 -22
  565. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.mjs +0 -12
  566. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs +0 -16
  567. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs +0 -11
  568. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs +0 -18
  569. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/clone.mjs +0 -8
  570. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs +0 -8
  571. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs +0 -6
  572. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/filter.mjs +0 -11
  573. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatMap.mjs +0 -8
  574. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatten.mjs +0 -8
  575. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forEach.mjs +0 -11
  576. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs +0 -8
  577. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.mjs +0 -8
  578. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs +0 -6
  579. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs +0 -13
  580. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs +0 -4
  581. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs +0 -8
  582. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs +0 -8
  583. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs +0 -11
  584. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEmpty.mjs +0 -35
  585. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs +0 -13
  586. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs +0 -7
  587. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs +0 -8
  588. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs +0 -7
  589. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs +0 -6
  590. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs +0 -22
  591. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs +0 -8
  592. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs +0 -9
  593. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs +0 -8
  594. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +0 -9
  595. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs +0 -9
  596. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.mjs +0 -11
  597. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs +0 -22
  598. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs +0 -8
  599. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/min.mjs +0 -9
  600. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.mjs +0 -5
  601. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.mjs +0 -10
  602. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/reduce.mjs +0 -12
  603. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +0 -6
  604. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs +0 -6
  605. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs +0 -8
  606. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs +0 -7
  607. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqBy.mjs +0 -8
  608. package/dist/node_modules/.pnpm/marked@15.0.7/node_modules/marked/lib/marked.esm.mjs +0 -2152
  609. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-IEHRJDOE.mjs +0 -1093
  610. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-JOT3LUYC.mjs +0 -3598
  611. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-VJAJSXHY.mjs +0 -2487
  612. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BMEZGHF.mjs +0 -17
  613. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5NNNAHNI.mjs +0 -143
  614. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6JRP7KZX.mjs +0 -2696
  615. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7B677QYD.mjs +0 -19
  616. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-A2AXSNBT.mjs +0 -1828
  617. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AEK57VVT.mjs +0 -1961
  618. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-C3MQ5ANM.mjs +0 -332
  619. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-D6G4REZN.mjs +0 -109
  620. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-H2D2JQ3I.mjs +0 -78
  621. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HRU6DDCH.mjs +0 -5018
  622. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-IIMUDSI4.mjs +0 -696
  623. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-K557N5IZ.mjs +0 -17
  624. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O4NI6UNU.mjs +0 -557
  625. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RZ5BOZE2.mjs +0 -38
  626. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TYCBKAJE.mjs +0 -57
  627. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VV3M67IP.mjs +0 -107
  628. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XZIHB7SX.mjs +0 -17
  629. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YTJNT7DU.mjs +0 -3052
  630. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-GIVACNV2.mjs +0 -27
  631. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-COTLJTTW.mjs +0 -27
  632. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/dagre-OKDRZEBW.mjs +0 -662
  633. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-SSKATNLV.mjs +0 -306
  634. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-VNBRO52H.mjs +0 -191
  635. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q7BY3M3F.mjs +0 -1168
  636. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-4HSFHLVR.mjs +0 -2339
  637. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-APWFNJXF.mjs +0 -2104
  638. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-7IBYFJ6S.mjs +0 -1215
  639. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-PH2N3AL5.mjs +0 -31
  640. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-U35MCT3I.mjs +0 -1201
  641. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-NDS4AKOZ.mjs +0 -1055
  642. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-ALO5MXBD.mjs +0 -1195
  643. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-IB7DONF6.mjs +0 -188
  644. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-7GDLP6J5.mjs +0 -1340
  645. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-KVF5MWMF.mjs +0 -1168
  646. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-QLVOVGJD.mjs +0 -670
  647. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-X6HHIX6F.mjs +0 -3419
  648. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-DGXRK772.mjs +0 -477
  649. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-YXO3MK2T.mjs +0 -27
  650. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-BDJGKUSR.mjs +0 -1232
  651. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-VJFVF3MP.mjs +0 -1778
  652. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/mermaid.core.mjs +0 -1222
  653. package/dist/node_modules/.pnpm/roughjs@4.6.6/node_modules/roughjs/bundled/rough.esm.mjs +0 -1001
  654. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.mjs +0 -16
  655. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.mjs +0 -164
  656. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.mjs +0 -29
  657. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.mjs +0 -156
  658. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.mjs +0 -38
  659. package/dist/node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.mjs +0 -42
  660. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.mjs +0 -95
  661. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.mjs +0 -133
  662. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.mjs +0 -40
  663. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.mjs +0 -28
  664. package/dist/node_modules/.pnpm/vscode-languageserver-textdocument@1.0.12/node_modules/vscode-languageserver-textdocument/lib/esm/main.mjs +0 -225
  665. package/dist/node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.mjs +0 -1262
  666. package/dist/node_modules/.pnpm/vscode-uri@3.0.8/node_modules/vscode-uri/lib/esm/index.mjs +0 -344
@@ -1,2696 +0,0 @@
1
- import { __name } from "./chunk-YTJNT7DU.mjs";
2
- function isNothing(subject) {
3
- return typeof subject === "undefined" || subject === null;
4
- }
5
- __name(isNothing, "isNothing");
6
- function isObject(subject) {
7
- return typeof subject === "object" && subject !== null;
8
- }
9
- __name(isObject, "isObject");
10
- function toArray(sequence) {
11
- if (Array.isArray(sequence)) return sequence;
12
- else if (isNothing(sequence)) return [];
13
- return [sequence];
14
- }
15
- __name(toArray, "toArray");
16
- function extend(target, source) {
17
- var index, length, key, sourceKeys;
18
- if (source) {
19
- sourceKeys = Object.keys(source);
20
- for (index = 0, length = sourceKeys.length; index < length; index += 1) {
21
- key = sourceKeys[index];
22
- target[key] = source[key];
23
- }
24
- }
25
- return target;
26
- }
27
- __name(extend, "extend");
28
- function repeat(string, count) {
29
- var result = "", cycle;
30
- for (cycle = 0; cycle < count; cycle += 1) {
31
- result += string;
32
- }
33
- return result;
34
- }
35
- __name(repeat, "repeat");
36
- function isNegativeZero(number) {
37
- return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
38
- }
39
- __name(isNegativeZero, "isNegativeZero");
40
- var isNothing_1 = isNothing;
41
- var isObject_1 = isObject;
42
- var toArray_1 = toArray;
43
- var repeat_1 = repeat;
44
- var isNegativeZero_1 = isNegativeZero;
45
- var extend_1 = extend;
46
- var common = {
47
- isNothing: isNothing_1,
48
- isObject: isObject_1,
49
- toArray: toArray_1,
50
- repeat: repeat_1,
51
- isNegativeZero: isNegativeZero_1,
52
- extend: extend_1
53
- };
54
- function formatError(exception2, compact) {
55
- var where = "", message = exception2.reason || "(unknown reason)";
56
- if (!exception2.mark) return message;
57
- if (exception2.mark.name) {
58
- where += 'in "' + exception2.mark.name + '" ';
59
- }
60
- where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
61
- if (!compact && exception2.mark.snippet) {
62
- where += "\n\n" + exception2.mark.snippet;
63
- }
64
- return message + " " + where;
65
- }
66
- __name(formatError, "formatError");
67
- function YAMLException$1(reason, mark) {
68
- Error.call(this);
69
- this.name = "YAMLException";
70
- this.reason = reason;
71
- this.mark = mark;
72
- this.message = formatError(this, false);
73
- if (Error.captureStackTrace) {
74
- Error.captureStackTrace(this, this.constructor);
75
- } else {
76
- this.stack = new Error().stack || "";
77
- }
78
- }
79
- __name(YAMLException$1, "YAMLException$1");
80
- YAMLException$1.prototype = Object.create(Error.prototype);
81
- YAMLException$1.prototype.constructor = YAMLException$1;
82
- YAMLException$1.prototype.toString = /* @__PURE__ */ __name(function toString(compact) {
83
- return this.name + ": " + formatError(this, compact);
84
- }, "toString");
85
- var exception = YAMLException$1;
86
- function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
87
- var head = "";
88
- var tail = "";
89
- var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
90
- if (position - lineStart > maxHalfLength) {
91
- head = " ... ";
92
- lineStart = position - maxHalfLength + head.length;
93
- }
94
- if (lineEnd - position > maxHalfLength) {
95
- tail = " ...";
96
- lineEnd = position + maxHalfLength - tail.length;
97
- }
98
- return {
99
- str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, "→") + tail,
100
- pos: position - lineStart + head.length
101
- // relative position
102
- };
103
- }
104
- __name(getLine, "getLine");
105
- function padStart(string, max) {
106
- return common.repeat(" ", max - string.length) + string;
107
- }
108
- __name(padStart, "padStart");
109
- function makeSnippet(mark, options) {
110
- options = Object.create(options || null);
111
- if (!mark.buffer) return null;
112
- if (!options.maxLength) options.maxLength = 79;
113
- if (typeof options.indent !== "number") options.indent = 1;
114
- if (typeof options.linesBefore !== "number") options.linesBefore = 3;
115
- if (typeof options.linesAfter !== "number") options.linesAfter = 2;
116
- var re = /\r?\n|\r|\0/g;
117
- var lineStarts = [0];
118
- var lineEnds = [];
119
- var match;
120
- var foundLineNo = -1;
121
- while (match = re.exec(mark.buffer)) {
122
- lineEnds.push(match.index);
123
- lineStarts.push(match.index + match[0].length);
124
- if (mark.position <= match.index && foundLineNo < 0) {
125
- foundLineNo = lineStarts.length - 2;
126
- }
127
- }
128
- if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
129
- var result = "", i2, line;
130
- var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
131
- var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
132
- for (i2 = 1; i2 <= options.linesBefore; i2++) {
133
- if (foundLineNo - i2 < 0) break;
134
- line = getLine(
135
- mark.buffer,
136
- lineStarts[foundLineNo - i2],
137
- lineEnds[foundLineNo - i2],
138
- mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i2]),
139
- maxLineLength
140
- );
141
- result = common.repeat(" ", options.indent) + padStart((mark.line - i2 + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
142
- }
143
- line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
144
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
145
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
146
- for (i2 = 1; i2 <= options.linesAfter; i2++) {
147
- if (foundLineNo + i2 >= lineEnds.length) break;
148
- line = getLine(
149
- mark.buffer,
150
- lineStarts[foundLineNo + i2],
151
- lineEnds[foundLineNo + i2],
152
- mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i2]),
153
- maxLineLength
154
- );
155
- result += common.repeat(" ", options.indent) + padStart((mark.line + i2 + 1).toString(), lineNoLength) + " | " + line.str + "\n";
156
- }
157
- return result.replace(/\n$/, "");
158
- }
159
- __name(makeSnippet, "makeSnippet");
160
- var snippet = makeSnippet;
161
- var TYPE_CONSTRUCTOR_OPTIONS = [
162
- "kind",
163
- "multi",
164
- "resolve",
165
- "construct",
166
- "instanceOf",
167
- "predicate",
168
- "represent",
169
- "representName",
170
- "defaultStyle",
171
- "styleAliases"
172
- ];
173
- var YAML_NODE_KINDS = [
174
- "scalar",
175
- "sequence",
176
- "mapping"
177
- ];
178
- function compileStyleAliases(map2) {
179
- var result = {};
180
- if (map2 !== null) {
181
- Object.keys(map2).forEach(function(style) {
182
- map2[style].forEach(function(alias) {
183
- result[String(alias)] = style;
184
- });
185
- });
186
- }
187
- return result;
188
- }
189
- __name(compileStyleAliases, "compileStyleAliases");
190
- function Type$1(tag, options) {
191
- options = options || {};
192
- Object.keys(options).forEach(function(name) {
193
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
194
- throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
195
- }
196
- });
197
- this.options = options;
198
- this.tag = tag;
199
- this.kind = options["kind"] || null;
200
- this.resolve = options["resolve"] || function() {
201
- return true;
202
- };
203
- this.construct = options["construct"] || function(data) {
204
- return data;
205
- };
206
- this.instanceOf = options["instanceOf"] || null;
207
- this.predicate = options["predicate"] || null;
208
- this.represent = options["represent"] || null;
209
- this.representName = options["representName"] || null;
210
- this.defaultStyle = options["defaultStyle"] || null;
211
- this.multi = options["multi"] || false;
212
- this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
213
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
214
- throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
215
- }
216
- }
217
- __name(Type$1, "Type$1");
218
- var type = Type$1;
219
- function compileList(schema2, name) {
220
- var result = [];
221
- schema2[name].forEach(function(currentType) {
222
- var newIndex = result.length;
223
- result.forEach(function(previousType, previousIndex) {
224
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
225
- newIndex = previousIndex;
226
- }
227
- });
228
- result[newIndex] = currentType;
229
- });
230
- return result;
231
- }
232
- __name(compileList, "compileList");
233
- function compileMap() {
234
- var result = {
235
- scalar: {},
236
- sequence: {},
237
- mapping: {},
238
- fallback: {},
239
- multi: {
240
- scalar: [],
241
- sequence: [],
242
- mapping: [],
243
- fallback: []
244
- }
245
- }, index, length;
246
- function collectType(type2) {
247
- if (type2.multi) {
248
- result.multi[type2.kind].push(type2);
249
- result.multi["fallback"].push(type2);
250
- } else {
251
- result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
252
- }
253
- }
254
- __name(collectType, "collectType");
255
- for (index = 0, length = arguments.length; index < length; index += 1) {
256
- arguments[index].forEach(collectType);
257
- }
258
- return result;
259
- }
260
- __name(compileMap, "compileMap");
261
- function Schema$1(definition) {
262
- return this.extend(definition);
263
- }
264
- __name(Schema$1, "Schema$1");
265
- Schema$1.prototype.extend = /* @__PURE__ */ __name(function extend2(definition) {
266
- var implicit = [];
267
- var explicit = [];
268
- if (definition instanceof type) {
269
- explicit.push(definition);
270
- } else if (Array.isArray(definition)) {
271
- explicit = explicit.concat(definition);
272
- } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
273
- if (definition.implicit) implicit = implicit.concat(definition.implicit);
274
- if (definition.explicit) explicit = explicit.concat(definition.explicit);
275
- } else {
276
- throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
277
- }
278
- implicit.forEach(function(type$1) {
279
- if (!(type$1 instanceof type)) {
280
- throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");
281
- }
282
- if (type$1.loadKind && type$1.loadKind !== "scalar") {
283
- throw new exception("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
284
- }
285
- if (type$1.multi) {
286
- throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
287
- }
288
- });
289
- explicit.forEach(function(type$1) {
290
- if (!(type$1 instanceof type)) {
291
- throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");
292
- }
293
- });
294
- var result = Object.create(Schema$1.prototype);
295
- result.implicit = (this.implicit || []).concat(implicit);
296
- result.explicit = (this.explicit || []).concat(explicit);
297
- result.compiledImplicit = compileList(result, "implicit");
298
- result.compiledExplicit = compileList(result, "explicit");
299
- result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
300
- return result;
301
- }, "extend");
302
- var schema = Schema$1;
303
- var str = new type("tag:yaml.org,2002:str", {
304
- kind: "scalar",
305
- construct: /* @__PURE__ */ __name(function(data) {
306
- return data !== null ? data : "";
307
- }, "construct")
308
- });
309
- var seq = new type("tag:yaml.org,2002:seq", {
310
- kind: "sequence",
311
- construct: /* @__PURE__ */ __name(function(data) {
312
- return data !== null ? data : [];
313
- }, "construct")
314
- });
315
- var map = new type("tag:yaml.org,2002:map", {
316
- kind: "mapping",
317
- construct: /* @__PURE__ */ __name(function(data) {
318
- return data !== null ? data : {};
319
- }, "construct")
320
- });
321
- var failsafe = new schema({
322
- explicit: [
323
- str,
324
- seq,
325
- map
326
- ]
327
- });
328
- function resolveYamlNull(data) {
329
- if (data === null) return true;
330
- var max = data.length;
331
- return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
332
- }
333
- __name(resolveYamlNull, "resolveYamlNull");
334
- function constructYamlNull() {
335
- return null;
336
- }
337
- __name(constructYamlNull, "constructYamlNull");
338
- function isNull(object) {
339
- return object === null;
340
- }
341
- __name(isNull, "isNull");
342
- var _null = new type("tag:yaml.org,2002:null", {
343
- kind: "scalar",
344
- resolve: resolveYamlNull,
345
- construct: constructYamlNull,
346
- predicate: isNull,
347
- represent: {
348
- canonical: /* @__PURE__ */ __name(function() {
349
- return "~";
350
- }, "canonical"),
351
- lowercase: /* @__PURE__ */ __name(function() {
352
- return "null";
353
- }, "lowercase"),
354
- uppercase: /* @__PURE__ */ __name(function() {
355
- return "NULL";
356
- }, "uppercase"),
357
- camelcase: /* @__PURE__ */ __name(function() {
358
- return "Null";
359
- }, "camelcase"),
360
- empty: /* @__PURE__ */ __name(function() {
361
- return "";
362
- }, "empty")
363
- },
364
- defaultStyle: "lowercase"
365
- });
366
- function resolveYamlBoolean(data) {
367
- if (data === null) return false;
368
- var max = data.length;
369
- return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
370
- }
371
- __name(resolveYamlBoolean, "resolveYamlBoolean");
372
- function constructYamlBoolean(data) {
373
- return data === "true" || data === "True" || data === "TRUE";
374
- }
375
- __name(constructYamlBoolean, "constructYamlBoolean");
376
- function isBoolean(object) {
377
- return Object.prototype.toString.call(object) === "[object Boolean]";
378
- }
379
- __name(isBoolean, "isBoolean");
380
- var bool = new type("tag:yaml.org,2002:bool", {
381
- kind: "scalar",
382
- resolve: resolveYamlBoolean,
383
- construct: constructYamlBoolean,
384
- predicate: isBoolean,
385
- represent: {
386
- lowercase: /* @__PURE__ */ __name(function(object) {
387
- return object ? "true" : "false";
388
- }, "lowercase"),
389
- uppercase: /* @__PURE__ */ __name(function(object) {
390
- return object ? "TRUE" : "FALSE";
391
- }, "uppercase"),
392
- camelcase: /* @__PURE__ */ __name(function(object) {
393
- return object ? "True" : "False";
394
- }, "camelcase")
395
- },
396
- defaultStyle: "lowercase"
397
- });
398
- function isHexCode(c) {
399
- return 48 <= c && c <= 57 || 65 <= c && c <= 70 || 97 <= c && c <= 102;
400
- }
401
- __name(isHexCode, "isHexCode");
402
- function isOctCode(c) {
403
- return 48 <= c && c <= 55;
404
- }
405
- __name(isOctCode, "isOctCode");
406
- function isDecCode(c) {
407
- return 48 <= c && c <= 57;
408
- }
409
- __name(isDecCode, "isDecCode");
410
- function resolveYamlInteger(data) {
411
- if (data === null) return false;
412
- var max = data.length, index = 0, hasDigits = false, ch;
413
- if (!max) return false;
414
- ch = data[index];
415
- if (ch === "-" || ch === "+") {
416
- ch = data[++index];
417
- }
418
- if (ch === "0") {
419
- if (index + 1 === max) return true;
420
- ch = data[++index];
421
- if (ch === "b") {
422
- index++;
423
- for (; index < max; index++) {
424
- ch = data[index];
425
- if (ch === "_") continue;
426
- if (ch !== "0" && ch !== "1") return false;
427
- hasDigits = true;
428
- }
429
- return hasDigits && ch !== "_";
430
- }
431
- if (ch === "x") {
432
- index++;
433
- for (; index < max; index++) {
434
- ch = data[index];
435
- if (ch === "_") continue;
436
- if (!isHexCode(data.charCodeAt(index))) return false;
437
- hasDigits = true;
438
- }
439
- return hasDigits && ch !== "_";
440
- }
441
- if (ch === "o") {
442
- index++;
443
- for (; index < max; index++) {
444
- ch = data[index];
445
- if (ch === "_") continue;
446
- if (!isOctCode(data.charCodeAt(index))) return false;
447
- hasDigits = true;
448
- }
449
- return hasDigits && ch !== "_";
450
- }
451
- }
452
- if (ch === "_") return false;
453
- for (; index < max; index++) {
454
- ch = data[index];
455
- if (ch === "_") continue;
456
- if (!isDecCode(data.charCodeAt(index))) {
457
- return false;
458
- }
459
- hasDigits = true;
460
- }
461
- if (!hasDigits || ch === "_") return false;
462
- return true;
463
- }
464
- __name(resolveYamlInteger, "resolveYamlInteger");
465
- function constructYamlInteger(data) {
466
- var value = data, sign = 1, ch;
467
- if (value.indexOf("_") !== -1) {
468
- value = value.replace(/_/g, "");
469
- }
470
- ch = value[0];
471
- if (ch === "-" || ch === "+") {
472
- if (ch === "-") sign = -1;
473
- value = value.slice(1);
474
- ch = value[0];
475
- }
476
- if (value === "0") return 0;
477
- if (ch === "0") {
478
- if (value[1] === "b") return sign * parseInt(value.slice(2), 2);
479
- if (value[1] === "x") return sign * parseInt(value.slice(2), 16);
480
- if (value[1] === "o") return sign * parseInt(value.slice(2), 8);
481
- }
482
- return sign * parseInt(value, 10);
483
- }
484
- __name(constructYamlInteger, "constructYamlInteger");
485
- function isInteger(object) {
486
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common.isNegativeZero(object));
487
- }
488
- __name(isInteger, "isInteger");
489
- var int = new type("tag:yaml.org,2002:int", {
490
- kind: "scalar",
491
- resolve: resolveYamlInteger,
492
- construct: constructYamlInteger,
493
- predicate: isInteger,
494
- represent: {
495
- binary: /* @__PURE__ */ __name(function(obj) {
496
- return obj >= 0 ? "0b" + obj.toString(2) : "-0b" + obj.toString(2).slice(1);
497
- }, "binary"),
498
- octal: /* @__PURE__ */ __name(function(obj) {
499
- return obj >= 0 ? "0o" + obj.toString(8) : "-0o" + obj.toString(8).slice(1);
500
- }, "octal"),
501
- decimal: /* @__PURE__ */ __name(function(obj) {
502
- return obj.toString(10);
503
- }, "decimal"),
504
- /* eslint-disable max-len */
505
- hexadecimal: /* @__PURE__ */ __name(function(obj) {
506
- return obj >= 0 ? "0x" + obj.toString(16).toUpperCase() : "-0x" + obj.toString(16).toUpperCase().slice(1);
507
- }, "hexadecimal")
508
- },
509
- defaultStyle: "decimal",
510
- styleAliases: {
511
- binary: [2, "bin"],
512
- octal: [8, "oct"],
513
- decimal: [10, "dec"],
514
- hexadecimal: [16, "hex"]
515
- }
516
- });
517
- var YAML_FLOAT_PATTERN = new RegExp(
518
- // 2.5e4, 2.5 and integers
519
- "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
520
- );
521
- function resolveYamlFloat(data) {
522
- if (data === null) return false;
523
- if (!YAML_FLOAT_PATTERN.test(data) || // Quick hack to not allow integers end with `_`
524
- // Probably should update regexp & check speed
525
- data[data.length - 1] === "_") {
526
- return false;
527
- }
528
- return true;
529
- }
530
- __name(resolveYamlFloat, "resolveYamlFloat");
531
- function constructYamlFloat(data) {
532
- var value, sign;
533
- value = data.replace(/_/g, "").toLowerCase();
534
- sign = value[0] === "-" ? -1 : 1;
535
- if ("+-".indexOf(value[0]) >= 0) {
536
- value = value.slice(1);
537
- }
538
- if (value === ".inf") {
539
- return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
540
- } else if (value === ".nan") {
541
- return NaN;
542
- }
543
- return sign * parseFloat(value, 10);
544
- }
545
- __name(constructYamlFloat, "constructYamlFloat");
546
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
547
- function representYamlFloat(object, style) {
548
- var res;
549
- if (isNaN(object)) {
550
- switch (style) {
551
- case "lowercase":
552
- return ".nan";
553
- case "uppercase":
554
- return ".NAN";
555
- case "camelcase":
556
- return ".NaN";
557
- }
558
- } else if (Number.POSITIVE_INFINITY === object) {
559
- switch (style) {
560
- case "lowercase":
561
- return ".inf";
562
- case "uppercase":
563
- return ".INF";
564
- case "camelcase":
565
- return ".Inf";
566
- }
567
- } else if (Number.NEGATIVE_INFINITY === object) {
568
- switch (style) {
569
- case "lowercase":
570
- return "-.inf";
571
- case "uppercase":
572
- return "-.INF";
573
- case "camelcase":
574
- return "-.Inf";
575
- }
576
- } else if (common.isNegativeZero(object)) {
577
- return "-0.0";
578
- }
579
- res = object.toString(10);
580
- return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
581
- }
582
- __name(representYamlFloat, "representYamlFloat");
583
- function isFloat(object) {
584
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
585
- }
586
- __name(isFloat, "isFloat");
587
- var float = new type("tag:yaml.org,2002:float", {
588
- kind: "scalar",
589
- resolve: resolveYamlFloat,
590
- construct: constructYamlFloat,
591
- predicate: isFloat,
592
- represent: representYamlFloat,
593
- defaultStyle: "lowercase"
594
- });
595
- var json = failsafe.extend({
596
- implicit: [
597
- _null,
598
- bool,
599
- int,
600
- float
601
- ]
602
- });
603
- var core = json;
604
- var YAML_DATE_REGEXP = new RegExp(
605
- "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
606
- );
607
- var YAML_TIMESTAMP_REGEXP = new RegExp(
608
- "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
609
- );
610
- function resolveYamlTimestamp(data) {
611
- if (data === null) return false;
612
- if (YAML_DATE_REGEXP.exec(data) !== null) return true;
613
- if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
614
- return false;
615
- }
616
- __name(resolveYamlTimestamp, "resolveYamlTimestamp");
617
- function constructYamlTimestamp(data) {
618
- var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
619
- match = YAML_DATE_REGEXP.exec(data);
620
- if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
621
- if (match === null) throw new Error("Date resolve error");
622
- year = +match[1];
623
- month = +match[2] - 1;
624
- day = +match[3];
625
- if (!match[4]) {
626
- return new Date(Date.UTC(year, month, day));
627
- }
628
- hour = +match[4];
629
- minute = +match[5];
630
- second = +match[6];
631
- if (match[7]) {
632
- fraction = match[7].slice(0, 3);
633
- while (fraction.length < 3) {
634
- fraction += "0";
635
- }
636
- fraction = +fraction;
637
- }
638
- if (match[9]) {
639
- tz_hour = +match[10];
640
- tz_minute = +(match[11] || 0);
641
- delta = (tz_hour * 60 + tz_minute) * 6e4;
642
- if (match[9] === "-") delta = -delta;
643
- }
644
- date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
645
- if (delta) date.setTime(date.getTime() - delta);
646
- return date;
647
- }
648
- __name(constructYamlTimestamp, "constructYamlTimestamp");
649
- function representYamlTimestamp(object) {
650
- return object.toISOString();
651
- }
652
- __name(representYamlTimestamp, "representYamlTimestamp");
653
- var timestamp = new type("tag:yaml.org,2002:timestamp", {
654
- kind: "scalar",
655
- resolve: resolveYamlTimestamp,
656
- construct: constructYamlTimestamp,
657
- instanceOf: Date,
658
- represent: representYamlTimestamp
659
- });
660
- function resolveYamlMerge(data) {
661
- return data === "<<" || data === null;
662
- }
663
- __name(resolveYamlMerge, "resolveYamlMerge");
664
- var merge = new type("tag:yaml.org,2002:merge", {
665
- kind: "scalar",
666
- resolve: resolveYamlMerge
667
- });
668
- var BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
669
- function resolveYamlBinary(data) {
670
- if (data === null) return false;
671
- var code, idx, bitlen = 0, max = data.length, map2 = BASE64_MAP;
672
- for (idx = 0; idx < max; idx++) {
673
- code = map2.indexOf(data.charAt(idx));
674
- if (code > 64) continue;
675
- if (code < 0) return false;
676
- bitlen += 6;
677
- }
678
- return bitlen % 8 === 0;
679
- }
680
- __name(resolveYamlBinary, "resolveYamlBinary");
681
- function constructYamlBinary(data) {
682
- var idx, tailbits, input = data.replace(/[\r\n=]/g, ""), max = input.length, map2 = BASE64_MAP, bits = 0, result = [];
683
- for (idx = 0; idx < max; idx++) {
684
- if (idx % 4 === 0 && idx) {
685
- result.push(bits >> 16 & 255);
686
- result.push(bits >> 8 & 255);
687
- result.push(bits & 255);
688
- }
689
- bits = bits << 6 | map2.indexOf(input.charAt(idx));
690
- }
691
- tailbits = max % 4 * 6;
692
- if (tailbits === 0) {
693
- result.push(bits >> 16 & 255);
694
- result.push(bits >> 8 & 255);
695
- result.push(bits & 255);
696
- } else if (tailbits === 18) {
697
- result.push(bits >> 10 & 255);
698
- result.push(bits >> 2 & 255);
699
- } else if (tailbits === 12) {
700
- result.push(bits >> 4 & 255);
701
- }
702
- return new Uint8Array(result);
703
- }
704
- __name(constructYamlBinary, "constructYamlBinary");
705
- function representYamlBinary(object) {
706
- var result = "", bits = 0, idx, tail, max = object.length, map2 = BASE64_MAP;
707
- for (idx = 0; idx < max; idx++) {
708
- if (idx % 3 === 0 && idx) {
709
- result += map2[bits >> 18 & 63];
710
- result += map2[bits >> 12 & 63];
711
- result += map2[bits >> 6 & 63];
712
- result += map2[bits & 63];
713
- }
714
- bits = (bits << 8) + object[idx];
715
- }
716
- tail = max % 3;
717
- if (tail === 0) {
718
- result += map2[bits >> 18 & 63];
719
- result += map2[bits >> 12 & 63];
720
- result += map2[bits >> 6 & 63];
721
- result += map2[bits & 63];
722
- } else if (tail === 2) {
723
- result += map2[bits >> 10 & 63];
724
- result += map2[bits >> 4 & 63];
725
- result += map2[bits << 2 & 63];
726
- result += map2[64];
727
- } else if (tail === 1) {
728
- result += map2[bits >> 2 & 63];
729
- result += map2[bits << 4 & 63];
730
- result += map2[64];
731
- result += map2[64];
732
- }
733
- return result;
734
- }
735
- __name(representYamlBinary, "representYamlBinary");
736
- function isBinary(obj) {
737
- return Object.prototype.toString.call(obj) === "[object Uint8Array]";
738
- }
739
- __name(isBinary, "isBinary");
740
- var binary = new type("tag:yaml.org,2002:binary", {
741
- kind: "scalar",
742
- resolve: resolveYamlBinary,
743
- construct: constructYamlBinary,
744
- predicate: isBinary,
745
- represent: representYamlBinary
746
- });
747
- var _hasOwnProperty$3 = Object.prototype.hasOwnProperty;
748
- var _toString$2 = Object.prototype.toString;
749
- function resolveYamlOmap(data) {
750
- if (data === null) return true;
751
- var objectKeys = [], index, length, pair, pairKey, pairHasKey, object = data;
752
- for (index = 0, length = object.length; index < length; index += 1) {
753
- pair = object[index];
754
- pairHasKey = false;
755
- if (_toString$2.call(pair) !== "[object Object]") return false;
756
- for (pairKey in pair) {
757
- if (_hasOwnProperty$3.call(pair, pairKey)) {
758
- if (!pairHasKey) pairHasKey = true;
759
- else return false;
760
- }
761
- }
762
- if (!pairHasKey) return false;
763
- if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
764
- else return false;
765
- }
766
- return true;
767
- }
768
- __name(resolveYamlOmap, "resolveYamlOmap");
769
- function constructYamlOmap(data) {
770
- return data !== null ? data : [];
771
- }
772
- __name(constructYamlOmap, "constructYamlOmap");
773
- var omap = new type("tag:yaml.org,2002:omap", {
774
- kind: "sequence",
775
- resolve: resolveYamlOmap,
776
- construct: constructYamlOmap
777
- });
778
- var _toString$1 = Object.prototype.toString;
779
- function resolveYamlPairs(data) {
780
- if (data === null) return true;
781
- var index, length, pair, keys, result, object = data;
782
- result = new Array(object.length);
783
- for (index = 0, length = object.length; index < length; index += 1) {
784
- pair = object[index];
785
- if (_toString$1.call(pair) !== "[object Object]") return false;
786
- keys = Object.keys(pair);
787
- if (keys.length !== 1) return false;
788
- result[index] = [keys[0], pair[keys[0]]];
789
- }
790
- return true;
791
- }
792
- __name(resolveYamlPairs, "resolveYamlPairs");
793
- function constructYamlPairs(data) {
794
- if (data === null) return [];
795
- var index, length, pair, keys, result, object = data;
796
- result = new Array(object.length);
797
- for (index = 0, length = object.length; index < length; index += 1) {
798
- pair = object[index];
799
- keys = Object.keys(pair);
800
- result[index] = [keys[0], pair[keys[0]]];
801
- }
802
- return result;
803
- }
804
- __name(constructYamlPairs, "constructYamlPairs");
805
- var pairs = new type("tag:yaml.org,2002:pairs", {
806
- kind: "sequence",
807
- resolve: resolveYamlPairs,
808
- construct: constructYamlPairs
809
- });
810
- var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
811
- function resolveYamlSet(data) {
812
- if (data === null) return true;
813
- var key, object = data;
814
- for (key in object) {
815
- if (_hasOwnProperty$2.call(object, key)) {
816
- if (object[key] !== null) return false;
817
- }
818
- }
819
- return true;
820
- }
821
- __name(resolveYamlSet, "resolveYamlSet");
822
- function constructYamlSet(data) {
823
- return data !== null ? data : {};
824
- }
825
- __name(constructYamlSet, "constructYamlSet");
826
- var set = new type("tag:yaml.org,2002:set", {
827
- kind: "mapping",
828
- resolve: resolveYamlSet,
829
- construct: constructYamlSet
830
- });
831
- var _default = core.extend({
832
- implicit: [
833
- timestamp,
834
- merge
835
- ],
836
- explicit: [
837
- binary,
838
- omap,
839
- pairs,
840
- set
841
- ]
842
- });
843
- var _hasOwnProperty$1 = Object.prototype.hasOwnProperty;
844
- var CONTEXT_FLOW_IN = 1;
845
- var CONTEXT_FLOW_OUT = 2;
846
- var CONTEXT_BLOCK_IN = 3;
847
- var CONTEXT_BLOCK_OUT = 4;
848
- var CHOMPING_CLIP = 1;
849
- var CHOMPING_STRIP = 2;
850
- var CHOMPING_KEEP = 3;
851
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
852
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
853
- var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
854
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
855
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
856
- function _class(obj) {
857
- return Object.prototype.toString.call(obj);
858
- }
859
- __name(_class, "_class");
860
- function is_EOL(c) {
861
- return c === 10 || c === 13;
862
- }
863
- __name(is_EOL, "is_EOL");
864
- function is_WHITE_SPACE(c) {
865
- return c === 9 || c === 32;
866
- }
867
- __name(is_WHITE_SPACE, "is_WHITE_SPACE");
868
- function is_WS_OR_EOL(c) {
869
- return c === 9 || c === 32 || c === 10 || c === 13;
870
- }
871
- __name(is_WS_OR_EOL, "is_WS_OR_EOL");
872
- function is_FLOW_INDICATOR(c) {
873
- return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
874
- }
875
- __name(is_FLOW_INDICATOR, "is_FLOW_INDICATOR");
876
- function fromHexCode(c) {
877
- var lc;
878
- if (48 <= c && c <= 57) {
879
- return c - 48;
880
- }
881
- lc = c | 32;
882
- if (97 <= lc && lc <= 102) {
883
- return lc - 97 + 10;
884
- }
885
- return -1;
886
- }
887
- __name(fromHexCode, "fromHexCode");
888
- function escapedHexLen(c) {
889
- if (c === 120) {
890
- return 2;
891
- }
892
- if (c === 117) {
893
- return 4;
894
- }
895
- if (c === 85) {
896
- return 8;
897
- }
898
- return 0;
899
- }
900
- __name(escapedHexLen, "escapedHexLen");
901
- function fromDecimalCode(c) {
902
- if (48 <= c && c <= 57) {
903
- return c - 48;
904
- }
905
- return -1;
906
- }
907
- __name(fromDecimalCode, "fromDecimalCode");
908
- function simpleEscapeSequence(c) {
909
- return c === 48 ? "\0" : c === 97 ? "\x07" : c === 98 ? "\b" : c === 116 ? " " : c === 9 ? " " : c === 110 ? "\n" : c === 118 ? "\v" : c === 102 ? "\f" : c === 114 ? "\r" : c === 101 ? "\x1B" : c === 32 ? " " : c === 34 ? '"' : c === 47 ? "/" : c === 92 ? "\\" : c === 78 ? "…" : c === 95 ? " " : c === 76 ? "\u2028" : c === 80 ? "\u2029" : "";
910
- }
911
- __name(simpleEscapeSequence, "simpleEscapeSequence");
912
- function charFromCodepoint(c) {
913
- if (c <= 65535) {
914
- return String.fromCharCode(c);
915
- }
916
- return String.fromCharCode(
917
- (c - 65536 >> 10) + 55296,
918
- (c - 65536 & 1023) + 56320
919
- );
920
- }
921
- __name(charFromCodepoint, "charFromCodepoint");
922
- var simpleEscapeCheck = new Array(256);
923
- var simpleEscapeMap = new Array(256);
924
- for (i = 0; i < 256; i++) {
925
- simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
926
- simpleEscapeMap[i] = simpleEscapeSequence(i);
927
- }
928
- var i;
929
- function State$1(input, options) {
930
- this.input = input;
931
- this.filename = options["filename"] || null;
932
- this.schema = options["schema"] || _default;
933
- this.onWarning = options["onWarning"] || null;
934
- this.legacy = options["legacy"] || false;
935
- this.json = options["json"] || false;
936
- this.listener = options["listener"] || null;
937
- this.implicitTypes = this.schema.compiledImplicit;
938
- this.typeMap = this.schema.compiledTypeMap;
939
- this.length = input.length;
940
- this.position = 0;
941
- this.line = 0;
942
- this.lineStart = 0;
943
- this.lineIndent = 0;
944
- this.firstTabInLine = -1;
945
- this.documents = [];
946
- }
947
- __name(State$1, "State$1");
948
- function generateError(state, message) {
949
- var mark = {
950
- name: state.filename,
951
- buffer: state.input.slice(0, -1),
952
- // omit trailing \0
953
- position: state.position,
954
- line: state.line,
955
- column: state.position - state.lineStart
956
- };
957
- mark.snippet = snippet(mark);
958
- return new exception(message, mark);
959
- }
960
- __name(generateError, "generateError");
961
- function throwError(state, message) {
962
- throw generateError(state, message);
963
- }
964
- __name(throwError, "throwError");
965
- function throwWarning(state, message) {
966
- if (state.onWarning) {
967
- state.onWarning.call(null, generateError(state, message));
968
- }
969
- }
970
- __name(throwWarning, "throwWarning");
971
- var directiveHandlers = {
972
- YAML: /* @__PURE__ */ __name(function handleYamlDirective(state, name, args) {
973
- var match, major, minor;
974
- if (state.version !== null) {
975
- throwError(state, "duplication of %YAML directive");
976
- }
977
- if (args.length !== 1) {
978
- throwError(state, "YAML directive accepts exactly one argument");
979
- }
980
- match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
981
- if (match === null) {
982
- throwError(state, "ill-formed argument of the YAML directive");
983
- }
984
- major = parseInt(match[1], 10);
985
- minor = parseInt(match[2], 10);
986
- if (major !== 1) {
987
- throwError(state, "unacceptable YAML version of the document");
988
- }
989
- state.version = args[0];
990
- state.checkLineBreaks = minor < 2;
991
- if (minor !== 1 && minor !== 2) {
992
- throwWarning(state, "unsupported YAML version of the document");
993
- }
994
- }, "handleYamlDirective"),
995
- TAG: /* @__PURE__ */ __name(function handleTagDirective(state, name, args) {
996
- var handle, prefix;
997
- if (args.length !== 2) {
998
- throwError(state, "TAG directive accepts exactly two arguments");
999
- }
1000
- handle = args[0];
1001
- prefix = args[1];
1002
- if (!PATTERN_TAG_HANDLE.test(handle)) {
1003
- throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
1004
- }
1005
- if (_hasOwnProperty$1.call(state.tagMap, handle)) {
1006
- throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
1007
- }
1008
- if (!PATTERN_TAG_URI.test(prefix)) {
1009
- throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
1010
- }
1011
- try {
1012
- prefix = decodeURIComponent(prefix);
1013
- } catch (err) {
1014
- throwError(state, "tag prefix is malformed: " + prefix);
1015
- }
1016
- state.tagMap[handle] = prefix;
1017
- }, "handleTagDirective")
1018
- };
1019
- function captureSegment(state, start, end, checkJson) {
1020
- var _position, _length, _character, _result;
1021
- if (start < end) {
1022
- _result = state.input.slice(start, end);
1023
- if (checkJson) {
1024
- for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
1025
- _character = _result.charCodeAt(_position);
1026
- if (!(_character === 9 || 32 <= _character && _character <= 1114111)) {
1027
- throwError(state, "expected valid JSON character");
1028
- }
1029
- }
1030
- } else if (PATTERN_NON_PRINTABLE.test(_result)) {
1031
- throwError(state, "the stream contains non-printable characters");
1032
- }
1033
- state.result += _result;
1034
- }
1035
- }
1036
- __name(captureSegment, "captureSegment");
1037
- function mergeMappings(state, destination, source, overridableKeys) {
1038
- var sourceKeys, key, index, quantity;
1039
- if (!common.isObject(source)) {
1040
- throwError(state, "cannot merge mappings; the provided source object is unacceptable");
1041
- }
1042
- sourceKeys = Object.keys(source);
1043
- for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
1044
- key = sourceKeys[index];
1045
- if (!_hasOwnProperty$1.call(destination, key)) {
1046
- destination[key] = source[key];
1047
- overridableKeys[key] = true;
1048
- }
1049
- }
1050
- }
1051
- __name(mergeMappings, "mergeMappings");
1052
- function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
1053
- var index, quantity;
1054
- if (Array.isArray(keyNode)) {
1055
- keyNode = Array.prototype.slice.call(keyNode);
1056
- for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
1057
- if (Array.isArray(keyNode[index])) {
1058
- throwError(state, "nested arrays are not supported inside keys");
1059
- }
1060
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
1061
- keyNode[index] = "[object Object]";
1062
- }
1063
- }
1064
- }
1065
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
1066
- keyNode = "[object Object]";
1067
- }
1068
- keyNode = String(keyNode);
1069
- if (_result === null) {
1070
- _result = {};
1071
- }
1072
- if (keyTag === "tag:yaml.org,2002:merge") {
1073
- if (Array.isArray(valueNode)) {
1074
- for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
1075
- mergeMappings(state, _result, valueNode[index], overridableKeys);
1076
- }
1077
- } else {
1078
- mergeMappings(state, _result, valueNode, overridableKeys);
1079
- }
1080
- } else {
1081
- if (!state.json && !_hasOwnProperty$1.call(overridableKeys, keyNode) && _hasOwnProperty$1.call(_result, keyNode)) {
1082
- state.line = startLine || state.line;
1083
- state.lineStart = startLineStart || state.lineStart;
1084
- state.position = startPos || state.position;
1085
- throwError(state, "duplicated mapping key");
1086
- }
1087
- if (keyNode === "__proto__") {
1088
- Object.defineProperty(_result, keyNode, {
1089
- configurable: true,
1090
- enumerable: true,
1091
- writable: true,
1092
- value: valueNode
1093
- });
1094
- } else {
1095
- _result[keyNode] = valueNode;
1096
- }
1097
- delete overridableKeys[keyNode];
1098
- }
1099
- return _result;
1100
- }
1101
- __name(storeMappingPair, "storeMappingPair");
1102
- function readLineBreak(state) {
1103
- var ch;
1104
- ch = state.input.charCodeAt(state.position);
1105
- if (ch === 10) {
1106
- state.position++;
1107
- } else if (ch === 13) {
1108
- state.position++;
1109
- if (state.input.charCodeAt(state.position) === 10) {
1110
- state.position++;
1111
- }
1112
- } else {
1113
- throwError(state, "a line break is expected");
1114
- }
1115
- state.line += 1;
1116
- state.lineStart = state.position;
1117
- state.firstTabInLine = -1;
1118
- }
1119
- __name(readLineBreak, "readLineBreak");
1120
- function skipSeparationSpace(state, allowComments, checkIndent) {
1121
- var lineBreaks = 0, ch = state.input.charCodeAt(state.position);
1122
- while (ch !== 0) {
1123
- while (is_WHITE_SPACE(ch)) {
1124
- if (ch === 9 && state.firstTabInLine === -1) {
1125
- state.firstTabInLine = state.position;
1126
- }
1127
- ch = state.input.charCodeAt(++state.position);
1128
- }
1129
- if (allowComments && ch === 35) {
1130
- do {
1131
- ch = state.input.charCodeAt(++state.position);
1132
- } while (ch !== 10 && ch !== 13 && ch !== 0);
1133
- }
1134
- if (is_EOL(ch)) {
1135
- readLineBreak(state);
1136
- ch = state.input.charCodeAt(state.position);
1137
- lineBreaks++;
1138
- state.lineIndent = 0;
1139
- while (ch === 32) {
1140
- state.lineIndent++;
1141
- ch = state.input.charCodeAt(++state.position);
1142
- }
1143
- } else {
1144
- break;
1145
- }
1146
- }
1147
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
1148
- throwWarning(state, "deficient indentation");
1149
- }
1150
- return lineBreaks;
1151
- }
1152
- __name(skipSeparationSpace, "skipSeparationSpace");
1153
- function testDocumentSeparator(state) {
1154
- var _position = state.position, ch;
1155
- ch = state.input.charCodeAt(_position);
1156
- if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
1157
- _position += 3;
1158
- ch = state.input.charCodeAt(_position);
1159
- if (ch === 0 || is_WS_OR_EOL(ch)) {
1160
- return true;
1161
- }
1162
- }
1163
- return false;
1164
- }
1165
- __name(testDocumentSeparator, "testDocumentSeparator");
1166
- function writeFoldedLines(state, count) {
1167
- if (count === 1) {
1168
- state.result += " ";
1169
- } else if (count > 1) {
1170
- state.result += common.repeat("\n", count - 1);
1171
- }
1172
- }
1173
- __name(writeFoldedLines, "writeFoldedLines");
1174
- function readPlainScalar(state, nodeIndent, withinFlowCollection) {
1175
- var preceding, following, captureStart, captureEnd, hasPendingContent, _line, _lineStart, _lineIndent, _kind = state.kind, _result = state.result, ch;
1176
- ch = state.input.charCodeAt(state.position);
1177
- if (is_WS_OR_EOL(ch) || is_FLOW_INDICATOR(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) {
1178
- return false;
1179
- }
1180
- if (ch === 63 || ch === 45) {
1181
- following = state.input.charCodeAt(state.position + 1);
1182
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
1183
- return false;
1184
- }
1185
- }
1186
- state.kind = "scalar";
1187
- state.result = "";
1188
- captureStart = captureEnd = state.position;
1189
- hasPendingContent = false;
1190
- while (ch !== 0) {
1191
- if (ch === 58) {
1192
- following = state.input.charCodeAt(state.position + 1);
1193
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
1194
- break;
1195
- }
1196
- } else if (ch === 35) {
1197
- preceding = state.input.charCodeAt(state.position - 1);
1198
- if (is_WS_OR_EOL(preceding)) {
1199
- break;
1200
- }
1201
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && is_FLOW_INDICATOR(ch)) {
1202
- break;
1203
- } else if (is_EOL(ch)) {
1204
- _line = state.line;
1205
- _lineStart = state.lineStart;
1206
- _lineIndent = state.lineIndent;
1207
- skipSeparationSpace(state, false, -1);
1208
- if (state.lineIndent >= nodeIndent) {
1209
- hasPendingContent = true;
1210
- ch = state.input.charCodeAt(state.position);
1211
- continue;
1212
- } else {
1213
- state.position = captureEnd;
1214
- state.line = _line;
1215
- state.lineStart = _lineStart;
1216
- state.lineIndent = _lineIndent;
1217
- break;
1218
- }
1219
- }
1220
- if (hasPendingContent) {
1221
- captureSegment(state, captureStart, captureEnd, false);
1222
- writeFoldedLines(state, state.line - _line);
1223
- captureStart = captureEnd = state.position;
1224
- hasPendingContent = false;
1225
- }
1226
- if (!is_WHITE_SPACE(ch)) {
1227
- captureEnd = state.position + 1;
1228
- }
1229
- ch = state.input.charCodeAt(++state.position);
1230
- }
1231
- captureSegment(state, captureStart, captureEnd, false);
1232
- if (state.result) {
1233
- return true;
1234
- }
1235
- state.kind = _kind;
1236
- state.result = _result;
1237
- return false;
1238
- }
1239
- __name(readPlainScalar, "readPlainScalar");
1240
- function readSingleQuotedScalar(state, nodeIndent) {
1241
- var ch, captureStart, captureEnd;
1242
- ch = state.input.charCodeAt(state.position);
1243
- if (ch !== 39) {
1244
- return false;
1245
- }
1246
- state.kind = "scalar";
1247
- state.result = "";
1248
- state.position++;
1249
- captureStart = captureEnd = state.position;
1250
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1251
- if (ch === 39) {
1252
- captureSegment(state, captureStart, state.position, true);
1253
- ch = state.input.charCodeAt(++state.position);
1254
- if (ch === 39) {
1255
- captureStart = state.position;
1256
- state.position++;
1257
- captureEnd = state.position;
1258
- } else {
1259
- return true;
1260
- }
1261
- } else if (is_EOL(ch)) {
1262
- captureSegment(state, captureStart, captureEnd, true);
1263
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1264
- captureStart = captureEnd = state.position;
1265
- } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1266
- throwError(state, "unexpected end of the document within a single quoted scalar");
1267
- } else {
1268
- state.position++;
1269
- captureEnd = state.position;
1270
- }
1271
- }
1272
- throwError(state, "unexpected end of the stream within a single quoted scalar");
1273
- }
1274
- __name(readSingleQuotedScalar, "readSingleQuotedScalar");
1275
- function readDoubleQuotedScalar(state, nodeIndent) {
1276
- var captureStart, captureEnd, hexLength, hexResult, tmp, ch;
1277
- ch = state.input.charCodeAt(state.position);
1278
- if (ch !== 34) {
1279
- return false;
1280
- }
1281
- state.kind = "scalar";
1282
- state.result = "";
1283
- state.position++;
1284
- captureStart = captureEnd = state.position;
1285
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1286
- if (ch === 34) {
1287
- captureSegment(state, captureStart, state.position, true);
1288
- state.position++;
1289
- return true;
1290
- } else if (ch === 92) {
1291
- captureSegment(state, captureStart, state.position, true);
1292
- ch = state.input.charCodeAt(++state.position);
1293
- if (is_EOL(ch)) {
1294
- skipSeparationSpace(state, false, nodeIndent);
1295
- } else if (ch < 256 && simpleEscapeCheck[ch]) {
1296
- state.result += simpleEscapeMap[ch];
1297
- state.position++;
1298
- } else if ((tmp = escapedHexLen(ch)) > 0) {
1299
- hexLength = tmp;
1300
- hexResult = 0;
1301
- for (; hexLength > 0; hexLength--) {
1302
- ch = state.input.charCodeAt(++state.position);
1303
- if ((tmp = fromHexCode(ch)) >= 0) {
1304
- hexResult = (hexResult << 4) + tmp;
1305
- } else {
1306
- throwError(state, "expected hexadecimal character");
1307
- }
1308
- }
1309
- state.result += charFromCodepoint(hexResult);
1310
- state.position++;
1311
- } else {
1312
- throwError(state, "unknown escape sequence");
1313
- }
1314
- captureStart = captureEnd = state.position;
1315
- } else if (is_EOL(ch)) {
1316
- captureSegment(state, captureStart, captureEnd, true);
1317
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1318
- captureStart = captureEnd = state.position;
1319
- } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1320
- throwError(state, "unexpected end of the document within a double quoted scalar");
1321
- } else {
1322
- state.position++;
1323
- captureEnd = state.position;
1324
- }
1325
- }
1326
- throwError(state, "unexpected end of the stream within a double quoted scalar");
1327
- }
1328
- __name(readDoubleQuotedScalar, "readDoubleQuotedScalar");
1329
- function readFlowCollection(state, nodeIndent) {
1330
- var readNext = true, _line, _lineStart, _pos, _tag = state.tag, _result, _anchor = state.anchor, following, terminator, isPair, isExplicitPair, isMapping, overridableKeys = /* @__PURE__ */ Object.create(null), keyNode, keyTag, valueNode, ch;
1331
- ch = state.input.charCodeAt(state.position);
1332
- if (ch === 91) {
1333
- terminator = 93;
1334
- isMapping = false;
1335
- _result = [];
1336
- } else if (ch === 123) {
1337
- terminator = 125;
1338
- isMapping = true;
1339
- _result = {};
1340
- } else {
1341
- return false;
1342
- }
1343
- if (state.anchor !== null) {
1344
- state.anchorMap[state.anchor] = _result;
1345
- }
1346
- ch = state.input.charCodeAt(++state.position);
1347
- while (ch !== 0) {
1348
- skipSeparationSpace(state, true, nodeIndent);
1349
- ch = state.input.charCodeAt(state.position);
1350
- if (ch === terminator) {
1351
- state.position++;
1352
- state.tag = _tag;
1353
- state.anchor = _anchor;
1354
- state.kind = isMapping ? "mapping" : "sequence";
1355
- state.result = _result;
1356
- return true;
1357
- } else if (!readNext) {
1358
- throwError(state, "missed comma between flow collection entries");
1359
- } else if (ch === 44) {
1360
- throwError(state, "expected the node content, but found ','");
1361
- }
1362
- keyTag = keyNode = valueNode = null;
1363
- isPair = isExplicitPair = false;
1364
- if (ch === 63) {
1365
- following = state.input.charCodeAt(state.position + 1);
1366
- if (is_WS_OR_EOL(following)) {
1367
- isPair = isExplicitPair = true;
1368
- state.position++;
1369
- skipSeparationSpace(state, true, nodeIndent);
1370
- }
1371
- }
1372
- _line = state.line;
1373
- _lineStart = state.lineStart;
1374
- _pos = state.position;
1375
- composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1376
- keyTag = state.tag;
1377
- keyNode = state.result;
1378
- skipSeparationSpace(state, true, nodeIndent);
1379
- ch = state.input.charCodeAt(state.position);
1380
- if ((isExplicitPair || state.line === _line) && ch === 58) {
1381
- isPair = true;
1382
- ch = state.input.charCodeAt(++state.position);
1383
- skipSeparationSpace(state, true, nodeIndent);
1384
- composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1385
- valueNode = state.result;
1386
- }
1387
- if (isMapping) {
1388
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
1389
- } else if (isPair) {
1390
- _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
1391
- } else {
1392
- _result.push(keyNode);
1393
- }
1394
- skipSeparationSpace(state, true, nodeIndent);
1395
- ch = state.input.charCodeAt(state.position);
1396
- if (ch === 44) {
1397
- readNext = true;
1398
- ch = state.input.charCodeAt(++state.position);
1399
- } else {
1400
- readNext = false;
1401
- }
1402
- }
1403
- throwError(state, "unexpected end of the stream within a flow collection");
1404
- }
1405
- __name(readFlowCollection, "readFlowCollection");
1406
- function readBlockScalar(state, nodeIndent) {
1407
- var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp, ch;
1408
- ch = state.input.charCodeAt(state.position);
1409
- if (ch === 124) {
1410
- folding = false;
1411
- } else if (ch === 62) {
1412
- folding = true;
1413
- } else {
1414
- return false;
1415
- }
1416
- state.kind = "scalar";
1417
- state.result = "";
1418
- while (ch !== 0) {
1419
- ch = state.input.charCodeAt(++state.position);
1420
- if (ch === 43 || ch === 45) {
1421
- if (CHOMPING_CLIP === chomping) {
1422
- chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
1423
- } else {
1424
- throwError(state, "repeat of a chomping mode identifier");
1425
- }
1426
- } else if ((tmp = fromDecimalCode(ch)) >= 0) {
1427
- if (tmp === 0) {
1428
- throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
1429
- } else if (!detectedIndent) {
1430
- textIndent = nodeIndent + tmp - 1;
1431
- detectedIndent = true;
1432
- } else {
1433
- throwError(state, "repeat of an indentation width identifier");
1434
- }
1435
- } else {
1436
- break;
1437
- }
1438
- }
1439
- if (is_WHITE_SPACE(ch)) {
1440
- do {
1441
- ch = state.input.charCodeAt(++state.position);
1442
- } while (is_WHITE_SPACE(ch));
1443
- if (ch === 35) {
1444
- do {
1445
- ch = state.input.charCodeAt(++state.position);
1446
- } while (!is_EOL(ch) && ch !== 0);
1447
- }
1448
- }
1449
- while (ch !== 0) {
1450
- readLineBreak(state);
1451
- state.lineIndent = 0;
1452
- ch = state.input.charCodeAt(state.position);
1453
- while ((!detectedIndent || state.lineIndent < textIndent) && ch === 32) {
1454
- state.lineIndent++;
1455
- ch = state.input.charCodeAt(++state.position);
1456
- }
1457
- if (!detectedIndent && state.lineIndent > textIndent) {
1458
- textIndent = state.lineIndent;
1459
- }
1460
- if (is_EOL(ch)) {
1461
- emptyLines++;
1462
- continue;
1463
- }
1464
- if (state.lineIndent < textIndent) {
1465
- if (chomping === CHOMPING_KEEP) {
1466
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
1467
- } else if (chomping === CHOMPING_CLIP) {
1468
- if (didReadContent) {
1469
- state.result += "\n";
1470
- }
1471
- }
1472
- break;
1473
- }
1474
- if (folding) {
1475
- if (is_WHITE_SPACE(ch)) {
1476
- atMoreIndented = true;
1477
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
1478
- } else if (atMoreIndented) {
1479
- atMoreIndented = false;
1480
- state.result += common.repeat("\n", emptyLines + 1);
1481
- } else if (emptyLines === 0) {
1482
- if (didReadContent) {
1483
- state.result += " ";
1484
- }
1485
- } else {
1486
- state.result += common.repeat("\n", emptyLines);
1487
- }
1488
- } else {
1489
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
1490
- }
1491
- didReadContent = true;
1492
- detectedIndent = true;
1493
- emptyLines = 0;
1494
- captureStart = state.position;
1495
- while (!is_EOL(ch) && ch !== 0) {
1496
- ch = state.input.charCodeAt(++state.position);
1497
- }
1498
- captureSegment(state, captureStart, state.position, false);
1499
- }
1500
- return true;
1501
- }
1502
- __name(readBlockScalar, "readBlockScalar");
1503
- function readBlockSequence(state, nodeIndent) {
1504
- var _line, _tag = state.tag, _anchor = state.anchor, _result = [], following, detected = false, ch;
1505
- if (state.firstTabInLine !== -1) return false;
1506
- if (state.anchor !== null) {
1507
- state.anchorMap[state.anchor] = _result;
1508
- }
1509
- ch = state.input.charCodeAt(state.position);
1510
- while (ch !== 0) {
1511
- if (state.firstTabInLine !== -1) {
1512
- state.position = state.firstTabInLine;
1513
- throwError(state, "tab characters must not be used in indentation");
1514
- }
1515
- if (ch !== 45) {
1516
- break;
1517
- }
1518
- following = state.input.charCodeAt(state.position + 1);
1519
- if (!is_WS_OR_EOL(following)) {
1520
- break;
1521
- }
1522
- detected = true;
1523
- state.position++;
1524
- if (skipSeparationSpace(state, true, -1)) {
1525
- if (state.lineIndent <= nodeIndent) {
1526
- _result.push(null);
1527
- ch = state.input.charCodeAt(state.position);
1528
- continue;
1529
- }
1530
- }
1531
- _line = state.line;
1532
- composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
1533
- _result.push(state.result);
1534
- skipSeparationSpace(state, true, -1);
1535
- ch = state.input.charCodeAt(state.position);
1536
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
1537
- throwError(state, "bad indentation of a sequence entry");
1538
- } else if (state.lineIndent < nodeIndent) {
1539
- break;
1540
- }
1541
- }
1542
- if (detected) {
1543
- state.tag = _tag;
1544
- state.anchor = _anchor;
1545
- state.kind = "sequence";
1546
- state.result = _result;
1547
- return true;
1548
- }
1549
- return false;
1550
- }
1551
- __name(readBlockSequence, "readBlockSequence");
1552
- function readBlockMapping(state, nodeIndent, flowIndent) {
1553
- var following, allowCompact, _line, _keyLine, _keyLineStart, _keyPos, _tag = state.tag, _anchor = state.anchor, _result = {}, overridableKeys = /* @__PURE__ */ Object.create(null), keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
1554
- if (state.firstTabInLine !== -1) return false;
1555
- if (state.anchor !== null) {
1556
- state.anchorMap[state.anchor] = _result;
1557
- }
1558
- ch = state.input.charCodeAt(state.position);
1559
- while (ch !== 0) {
1560
- if (!atExplicitKey && state.firstTabInLine !== -1) {
1561
- state.position = state.firstTabInLine;
1562
- throwError(state, "tab characters must not be used in indentation");
1563
- }
1564
- following = state.input.charCodeAt(state.position + 1);
1565
- _line = state.line;
1566
- if ((ch === 63 || ch === 58) && is_WS_OR_EOL(following)) {
1567
- if (ch === 63) {
1568
- if (atExplicitKey) {
1569
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
1570
- keyTag = keyNode = valueNode = null;
1571
- }
1572
- detected = true;
1573
- atExplicitKey = true;
1574
- allowCompact = true;
1575
- } else if (atExplicitKey) {
1576
- atExplicitKey = false;
1577
- allowCompact = true;
1578
- } else {
1579
- throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
1580
- }
1581
- state.position += 1;
1582
- ch = following;
1583
- } else {
1584
- _keyLine = state.line;
1585
- _keyLineStart = state.lineStart;
1586
- _keyPos = state.position;
1587
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
1588
- break;
1589
- }
1590
- if (state.line === _line) {
1591
- ch = state.input.charCodeAt(state.position);
1592
- while (is_WHITE_SPACE(ch)) {
1593
- ch = state.input.charCodeAt(++state.position);
1594
- }
1595
- if (ch === 58) {
1596
- ch = state.input.charCodeAt(++state.position);
1597
- if (!is_WS_OR_EOL(ch)) {
1598
- throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
1599
- }
1600
- if (atExplicitKey) {
1601
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
1602
- keyTag = keyNode = valueNode = null;
1603
- }
1604
- detected = true;
1605
- atExplicitKey = false;
1606
- allowCompact = false;
1607
- keyTag = state.tag;
1608
- keyNode = state.result;
1609
- } else if (detected) {
1610
- throwError(state, "can not read an implicit mapping pair; a colon is missed");
1611
- } else {
1612
- state.tag = _tag;
1613
- state.anchor = _anchor;
1614
- return true;
1615
- }
1616
- } else if (detected) {
1617
- throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
1618
- } else {
1619
- state.tag = _tag;
1620
- state.anchor = _anchor;
1621
- return true;
1622
- }
1623
- }
1624
- if (state.line === _line || state.lineIndent > nodeIndent) {
1625
- if (atExplicitKey) {
1626
- _keyLine = state.line;
1627
- _keyLineStart = state.lineStart;
1628
- _keyPos = state.position;
1629
- }
1630
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
1631
- if (atExplicitKey) {
1632
- keyNode = state.result;
1633
- } else {
1634
- valueNode = state.result;
1635
- }
1636
- }
1637
- if (!atExplicitKey) {
1638
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
1639
- keyTag = keyNode = valueNode = null;
1640
- }
1641
- skipSeparationSpace(state, true, -1);
1642
- ch = state.input.charCodeAt(state.position);
1643
- }
1644
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
1645
- throwError(state, "bad indentation of a mapping entry");
1646
- } else if (state.lineIndent < nodeIndent) {
1647
- break;
1648
- }
1649
- }
1650
- if (atExplicitKey) {
1651
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
1652
- }
1653
- if (detected) {
1654
- state.tag = _tag;
1655
- state.anchor = _anchor;
1656
- state.kind = "mapping";
1657
- state.result = _result;
1658
- }
1659
- return detected;
1660
- }
1661
- __name(readBlockMapping, "readBlockMapping");
1662
- function readTagProperty(state) {
1663
- var _position, isVerbatim = false, isNamed = false, tagHandle, tagName, ch;
1664
- ch = state.input.charCodeAt(state.position);
1665
- if (ch !== 33) return false;
1666
- if (state.tag !== null) {
1667
- throwError(state, "duplication of a tag property");
1668
- }
1669
- ch = state.input.charCodeAt(++state.position);
1670
- if (ch === 60) {
1671
- isVerbatim = true;
1672
- ch = state.input.charCodeAt(++state.position);
1673
- } else if (ch === 33) {
1674
- isNamed = true;
1675
- tagHandle = "!!";
1676
- ch = state.input.charCodeAt(++state.position);
1677
- } else {
1678
- tagHandle = "!";
1679
- }
1680
- _position = state.position;
1681
- if (isVerbatim) {
1682
- do {
1683
- ch = state.input.charCodeAt(++state.position);
1684
- } while (ch !== 0 && ch !== 62);
1685
- if (state.position < state.length) {
1686
- tagName = state.input.slice(_position, state.position);
1687
- ch = state.input.charCodeAt(++state.position);
1688
- } else {
1689
- throwError(state, "unexpected end of the stream within a verbatim tag");
1690
- }
1691
- } else {
1692
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
1693
- if (ch === 33) {
1694
- if (!isNamed) {
1695
- tagHandle = state.input.slice(_position - 1, state.position + 1);
1696
- if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
1697
- throwError(state, "named tag handle cannot contain such characters");
1698
- }
1699
- isNamed = true;
1700
- _position = state.position + 1;
1701
- } else {
1702
- throwError(state, "tag suffix cannot contain exclamation marks");
1703
- }
1704
- }
1705
- ch = state.input.charCodeAt(++state.position);
1706
- }
1707
- tagName = state.input.slice(_position, state.position);
1708
- if (PATTERN_FLOW_INDICATORS.test(tagName)) {
1709
- throwError(state, "tag suffix cannot contain flow indicator characters");
1710
- }
1711
- }
1712
- if (tagName && !PATTERN_TAG_URI.test(tagName)) {
1713
- throwError(state, "tag name cannot contain such characters: " + tagName);
1714
- }
1715
- try {
1716
- tagName = decodeURIComponent(tagName);
1717
- } catch (err) {
1718
- throwError(state, "tag name is malformed: " + tagName);
1719
- }
1720
- if (isVerbatim) {
1721
- state.tag = tagName;
1722
- } else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) {
1723
- state.tag = state.tagMap[tagHandle] + tagName;
1724
- } else if (tagHandle === "!") {
1725
- state.tag = "!" + tagName;
1726
- } else if (tagHandle === "!!") {
1727
- state.tag = "tag:yaml.org,2002:" + tagName;
1728
- } else {
1729
- throwError(state, 'undeclared tag handle "' + tagHandle + '"');
1730
- }
1731
- return true;
1732
- }
1733
- __name(readTagProperty, "readTagProperty");
1734
- function readAnchorProperty(state) {
1735
- var _position, ch;
1736
- ch = state.input.charCodeAt(state.position);
1737
- if (ch !== 38) return false;
1738
- if (state.anchor !== null) {
1739
- throwError(state, "duplication of an anchor property");
1740
- }
1741
- ch = state.input.charCodeAt(++state.position);
1742
- _position = state.position;
1743
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
1744
- ch = state.input.charCodeAt(++state.position);
1745
- }
1746
- if (state.position === _position) {
1747
- throwError(state, "name of an anchor node must contain at least one character");
1748
- }
1749
- state.anchor = state.input.slice(_position, state.position);
1750
- return true;
1751
- }
1752
- __name(readAnchorProperty, "readAnchorProperty");
1753
- function readAlias(state) {
1754
- var _position, alias, ch;
1755
- ch = state.input.charCodeAt(state.position);
1756
- if (ch !== 42) return false;
1757
- ch = state.input.charCodeAt(++state.position);
1758
- _position = state.position;
1759
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
1760
- ch = state.input.charCodeAt(++state.position);
1761
- }
1762
- if (state.position === _position) {
1763
- throwError(state, "name of an alias node must contain at least one character");
1764
- }
1765
- alias = state.input.slice(_position, state.position);
1766
- if (!_hasOwnProperty$1.call(state.anchorMap, alias)) {
1767
- throwError(state, 'unidentified alias "' + alias + '"');
1768
- }
1769
- state.result = state.anchorMap[alias];
1770
- skipSeparationSpace(state, true, -1);
1771
- return true;
1772
- }
1773
- __name(readAlias, "readAlias");
1774
- function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
1775
- var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, typeList, type2, flowIndent, blockIndent;
1776
- if (state.listener !== null) {
1777
- state.listener("open", state);
1778
- }
1779
- state.tag = null;
1780
- state.anchor = null;
1781
- state.kind = null;
1782
- state.result = null;
1783
- allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
1784
- if (allowToSeek) {
1785
- if (skipSeparationSpace(state, true, -1)) {
1786
- atNewLine = true;
1787
- if (state.lineIndent > parentIndent) {
1788
- indentStatus = 1;
1789
- } else if (state.lineIndent === parentIndent) {
1790
- indentStatus = 0;
1791
- } else if (state.lineIndent < parentIndent) {
1792
- indentStatus = -1;
1793
- }
1794
- }
1795
- }
1796
- if (indentStatus === 1) {
1797
- while (readTagProperty(state) || readAnchorProperty(state)) {
1798
- if (skipSeparationSpace(state, true, -1)) {
1799
- atNewLine = true;
1800
- allowBlockCollections = allowBlockStyles;
1801
- if (state.lineIndent > parentIndent) {
1802
- indentStatus = 1;
1803
- } else if (state.lineIndent === parentIndent) {
1804
- indentStatus = 0;
1805
- } else if (state.lineIndent < parentIndent) {
1806
- indentStatus = -1;
1807
- }
1808
- } else {
1809
- allowBlockCollections = false;
1810
- }
1811
- }
1812
- }
1813
- if (allowBlockCollections) {
1814
- allowBlockCollections = atNewLine || allowCompact;
1815
- }
1816
- if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
1817
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
1818
- flowIndent = parentIndent;
1819
- } else {
1820
- flowIndent = parentIndent + 1;
1821
- }
1822
- blockIndent = state.position - state.lineStart;
1823
- if (indentStatus === 1) {
1824
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
1825
- hasContent = true;
1826
- } else {
1827
- if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
1828
- hasContent = true;
1829
- } else if (readAlias(state)) {
1830
- hasContent = true;
1831
- if (state.tag !== null || state.anchor !== null) {
1832
- throwError(state, "alias node should not have any properties");
1833
- }
1834
- } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
1835
- hasContent = true;
1836
- if (state.tag === null) {
1837
- state.tag = "?";
1838
- }
1839
- }
1840
- if (state.anchor !== null) {
1841
- state.anchorMap[state.anchor] = state.result;
1842
- }
1843
- }
1844
- } else if (indentStatus === 0) {
1845
- hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
1846
- }
1847
- }
1848
- if (state.tag === null) {
1849
- if (state.anchor !== null) {
1850
- state.anchorMap[state.anchor] = state.result;
1851
- }
1852
- } else if (state.tag === "?") {
1853
- if (state.result !== null && state.kind !== "scalar") {
1854
- throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
1855
- }
1856
- for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
1857
- type2 = state.implicitTypes[typeIndex];
1858
- if (type2.resolve(state.result)) {
1859
- state.result = type2.construct(state.result);
1860
- state.tag = type2.tag;
1861
- if (state.anchor !== null) {
1862
- state.anchorMap[state.anchor] = state.result;
1863
- }
1864
- break;
1865
- }
1866
- }
1867
- } else if (state.tag !== "!") {
1868
- if (_hasOwnProperty$1.call(state.typeMap[state.kind || "fallback"], state.tag)) {
1869
- type2 = state.typeMap[state.kind || "fallback"][state.tag];
1870
- } else {
1871
- type2 = null;
1872
- typeList = state.typeMap.multi[state.kind || "fallback"];
1873
- for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
1874
- if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
1875
- type2 = typeList[typeIndex];
1876
- break;
1877
- }
1878
- }
1879
- }
1880
- if (!type2) {
1881
- throwError(state, "unknown tag !<" + state.tag + ">");
1882
- }
1883
- if (state.result !== null && type2.kind !== state.kind) {
1884
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
1885
- }
1886
- if (!type2.resolve(state.result, state.tag)) {
1887
- throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
1888
- } else {
1889
- state.result = type2.construct(state.result, state.tag);
1890
- if (state.anchor !== null) {
1891
- state.anchorMap[state.anchor] = state.result;
1892
- }
1893
- }
1894
- }
1895
- if (state.listener !== null) {
1896
- state.listener("close", state);
1897
- }
1898
- return state.tag !== null || state.anchor !== null || hasContent;
1899
- }
1900
- __name(composeNode, "composeNode");
1901
- function readDocument(state) {
1902
- var documentStart = state.position, _position, directiveName, directiveArgs, hasDirectives = false, ch;
1903
- state.version = null;
1904
- state.checkLineBreaks = state.legacy;
1905
- state.tagMap = /* @__PURE__ */ Object.create(null);
1906
- state.anchorMap = /* @__PURE__ */ Object.create(null);
1907
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1908
- skipSeparationSpace(state, true, -1);
1909
- ch = state.input.charCodeAt(state.position);
1910
- if (state.lineIndent > 0 || ch !== 37) {
1911
- break;
1912
- }
1913
- hasDirectives = true;
1914
- ch = state.input.charCodeAt(++state.position);
1915
- _position = state.position;
1916
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
1917
- ch = state.input.charCodeAt(++state.position);
1918
- }
1919
- directiveName = state.input.slice(_position, state.position);
1920
- directiveArgs = [];
1921
- if (directiveName.length < 1) {
1922
- throwError(state, "directive name must not be less than one character in length");
1923
- }
1924
- while (ch !== 0) {
1925
- while (is_WHITE_SPACE(ch)) {
1926
- ch = state.input.charCodeAt(++state.position);
1927
- }
1928
- if (ch === 35) {
1929
- do {
1930
- ch = state.input.charCodeAt(++state.position);
1931
- } while (ch !== 0 && !is_EOL(ch));
1932
- break;
1933
- }
1934
- if (is_EOL(ch)) break;
1935
- _position = state.position;
1936
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
1937
- ch = state.input.charCodeAt(++state.position);
1938
- }
1939
- directiveArgs.push(state.input.slice(_position, state.position));
1940
- }
1941
- if (ch !== 0) readLineBreak(state);
1942
- if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) {
1943
- directiveHandlers[directiveName](state, directiveName, directiveArgs);
1944
- } else {
1945
- throwWarning(state, 'unknown document directive "' + directiveName + '"');
1946
- }
1947
- }
1948
- skipSeparationSpace(state, true, -1);
1949
- if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
1950
- state.position += 3;
1951
- skipSeparationSpace(state, true, -1);
1952
- } else if (hasDirectives) {
1953
- throwError(state, "directives end mark is expected");
1954
- }
1955
- composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
1956
- skipSeparationSpace(state, true, -1);
1957
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
1958
- throwWarning(state, "non-ASCII line breaks are interpreted as content");
1959
- }
1960
- state.documents.push(state.result);
1961
- if (state.position === state.lineStart && testDocumentSeparator(state)) {
1962
- if (state.input.charCodeAt(state.position) === 46) {
1963
- state.position += 3;
1964
- skipSeparationSpace(state, true, -1);
1965
- }
1966
- return;
1967
- }
1968
- if (state.position < state.length - 1) {
1969
- throwError(state, "end of the stream or a document separator is expected");
1970
- } else {
1971
- return;
1972
- }
1973
- }
1974
- __name(readDocument, "readDocument");
1975
- function loadDocuments(input, options) {
1976
- input = String(input);
1977
- options = options || {};
1978
- if (input.length !== 0) {
1979
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
1980
- input += "\n";
1981
- }
1982
- if (input.charCodeAt(0) === 65279) {
1983
- input = input.slice(1);
1984
- }
1985
- }
1986
- var state = new State$1(input, options);
1987
- var nullpos = input.indexOf("\0");
1988
- if (nullpos !== -1) {
1989
- state.position = nullpos;
1990
- throwError(state, "null byte is not allowed in input");
1991
- }
1992
- state.input += "\0";
1993
- while (state.input.charCodeAt(state.position) === 32) {
1994
- state.lineIndent += 1;
1995
- state.position += 1;
1996
- }
1997
- while (state.position < state.length - 1) {
1998
- readDocument(state);
1999
- }
2000
- return state.documents;
2001
- }
2002
- __name(loadDocuments, "loadDocuments");
2003
- function loadAll$1(input, iterator, options) {
2004
- if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
2005
- options = iterator;
2006
- iterator = null;
2007
- }
2008
- var documents = loadDocuments(input, options);
2009
- if (typeof iterator !== "function") {
2010
- return documents;
2011
- }
2012
- for (var index = 0, length = documents.length; index < length; index += 1) {
2013
- iterator(documents[index]);
2014
- }
2015
- }
2016
- __name(loadAll$1, "loadAll$1");
2017
- function load$1(input, options) {
2018
- var documents = loadDocuments(input, options);
2019
- if (documents.length === 0) {
2020
- return void 0;
2021
- } else if (documents.length === 1) {
2022
- return documents[0];
2023
- }
2024
- throw new exception("expected a single document in the stream, but found more");
2025
- }
2026
- __name(load$1, "load$1");
2027
- var load_1 = load$1;
2028
- var loader = {
2029
- load: load_1
2030
- };
2031
- var _toString = Object.prototype.toString;
2032
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
2033
- var CHAR_BOM = 65279;
2034
- var CHAR_TAB = 9;
2035
- var CHAR_LINE_FEED = 10;
2036
- var CHAR_CARRIAGE_RETURN = 13;
2037
- var CHAR_SPACE = 32;
2038
- var CHAR_EXCLAMATION = 33;
2039
- var CHAR_DOUBLE_QUOTE = 34;
2040
- var CHAR_SHARP = 35;
2041
- var CHAR_PERCENT = 37;
2042
- var CHAR_AMPERSAND = 38;
2043
- var CHAR_SINGLE_QUOTE = 39;
2044
- var CHAR_ASTERISK = 42;
2045
- var CHAR_COMMA = 44;
2046
- var CHAR_MINUS = 45;
2047
- var CHAR_COLON = 58;
2048
- var CHAR_EQUALS = 61;
2049
- var CHAR_GREATER_THAN = 62;
2050
- var CHAR_QUESTION = 63;
2051
- var CHAR_COMMERCIAL_AT = 64;
2052
- var CHAR_LEFT_SQUARE_BRACKET = 91;
2053
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
2054
- var CHAR_GRAVE_ACCENT = 96;
2055
- var CHAR_LEFT_CURLY_BRACKET = 123;
2056
- var CHAR_VERTICAL_LINE = 124;
2057
- var CHAR_RIGHT_CURLY_BRACKET = 125;
2058
- var ESCAPE_SEQUENCES = {};
2059
- ESCAPE_SEQUENCES[0] = "\\0";
2060
- ESCAPE_SEQUENCES[7] = "\\a";
2061
- ESCAPE_SEQUENCES[8] = "\\b";
2062
- ESCAPE_SEQUENCES[9] = "\\t";
2063
- ESCAPE_SEQUENCES[10] = "\\n";
2064
- ESCAPE_SEQUENCES[11] = "\\v";
2065
- ESCAPE_SEQUENCES[12] = "\\f";
2066
- ESCAPE_SEQUENCES[13] = "\\r";
2067
- ESCAPE_SEQUENCES[27] = "\\e";
2068
- ESCAPE_SEQUENCES[34] = '\\"';
2069
- ESCAPE_SEQUENCES[92] = "\\\\";
2070
- ESCAPE_SEQUENCES[133] = "\\N";
2071
- ESCAPE_SEQUENCES[160] = "\\_";
2072
- ESCAPE_SEQUENCES[8232] = "\\L";
2073
- ESCAPE_SEQUENCES[8233] = "\\P";
2074
- var DEPRECATED_BOOLEANS_SYNTAX = [
2075
- "y",
2076
- "Y",
2077
- "yes",
2078
- "Yes",
2079
- "YES",
2080
- "on",
2081
- "On",
2082
- "ON",
2083
- "n",
2084
- "N",
2085
- "no",
2086
- "No",
2087
- "NO",
2088
- "off",
2089
- "Off",
2090
- "OFF"
2091
- ];
2092
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2093
- function compileStyleMap(schema2, map2) {
2094
- var result, keys, index, length, tag, style, type2;
2095
- if (map2 === null) return {};
2096
- result = {};
2097
- keys = Object.keys(map2);
2098
- for (index = 0, length = keys.length; index < length; index += 1) {
2099
- tag = keys[index];
2100
- style = String(map2[tag]);
2101
- if (tag.slice(0, 2) === "!!") {
2102
- tag = "tag:yaml.org,2002:" + tag.slice(2);
2103
- }
2104
- type2 = schema2.compiledTypeMap["fallback"][tag];
2105
- if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
2106
- style = type2.styleAliases[style];
2107
- }
2108
- result[tag] = style;
2109
- }
2110
- return result;
2111
- }
2112
- __name(compileStyleMap, "compileStyleMap");
2113
- function encodeHex(character) {
2114
- var string, handle, length;
2115
- string = character.toString(16).toUpperCase();
2116
- if (character <= 255) {
2117
- handle = "x";
2118
- length = 2;
2119
- } else if (character <= 65535) {
2120
- handle = "u";
2121
- length = 4;
2122
- } else if (character <= 4294967295) {
2123
- handle = "U";
2124
- length = 8;
2125
- } else {
2126
- throw new exception("code point within a string may not be greater than 0xFFFFFFFF");
2127
- }
2128
- return "\\" + handle + common.repeat("0", length - string.length) + string;
2129
- }
2130
- __name(encodeHex, "encodeHex");
2131
- var QUOTING_TYPE_SINGLE = 1;
2132
- var QUOTING_TYPE_DOUBLE = 2;
2133
- function State(options) {
2134
- this.schema = options["schema"] || _default;
2135
- this.indent = Math.max(1, options["indent"] || 2);
2136
- this.noArrayIndent = options["noArrayIndent"] || false;
2137
- this.skipInvalid = options["skipInvalid"] || false;
2138
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
2139
- this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
2140
- this.sortKeys = options["sortKeys"] || false;
2141
- this.lineWidth = options["lineWidth"] || 80;
2142
- this.noRefs = options["noRefs"] || false;
2143
- this.noCompatMode = options["noCompatMode"] || false;
2144
- this.condenseFlow = options["condenseFlow"] || false;
2145
- this.quotingType = options["quotingType"] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
2146
- this.forceQuotes = options["forceQuotes"] || false;
2147
- this.replacer = typeof options["replacer"] === "function" ? options["replacer"] : null;
2148
- this.implicitTypes = this.schema.compiledImplicit;
2149
- this.explicitTypes = this.schema.compiledExplicit;
2150
- this.tag = null;
2151
- this.result = "";
2152
- this.duplicates = [];
2153
- this.usedDuplicates = null;
2154
- }
2155
- __name(State, "State");
2156
- function indentString(string, spaces) {
2157
- var ind = common.repeat(" ", spaces), position = 0, next = -1, result = "", line, length = string.length;
2158
- while (position < length) {
2159
- next = string.indexOf("\n", position);
2160
- if (next === -1) {
2161
- line = string.slice(position);
2162
- position = length;
2163
- } else {
2164
- line = string.slice(position, next + 1);
2165
- position = next + 1;
2166
- }
2167
- if (line.length && line !== "\n") result += ind;
2168
- result += line;
2169
- }
2170
- return result;
2171
- }
2172
- __name(indentString, "indentString");
2173
- function generateNextLine(state, level) {
2174
- return "\n" + common.repeat(" ", state.indent * level);
2175
- }
2176
- __name(generateNextLine, "generateNextLine");
2177
- function testImplicitResolving(state, str2) {
2178
- var index, length, type2;
2179
- for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
2180
- type2 = state.implicitTypes[index];
2181
- if (type2.resolve(str2)) {
2182
- return true;
2183
- }
2184
- }
2185
- return false;
2186
- }
2187
- __name(testImplicitResolving, "testImplicitResolving");
2188
- function isWhitespace(c) {
2189
- return c === CHAR_SPACE || c === CHAR_TAB;
2190
- }
2191
- __name(isWhitespace, "isWhitespace");
2192
- function isPrintable(c) {
2193
- return 32 <= c && c <= 126 || 161 <= c && c <= 55295 && c !== 8232 && c !== 8233 || 57344 <= c && c <= 65533 && c !== CHAR_BOM || 65536 <= c && c <= 1114111;
2194
- }
2195
- __name(isPrintable, "isPrintable");
2196
- function isNsCharOrWhitespace(c) {
2197
- return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
2198
- }
2199
- __name(isNsCharOrWhitespace, "isNsCharOrWhitespace");
2200
- function isPlainSafe(c, prev, inblock) {
2201
- var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
2202
- var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
2203
- return (
2204
- // ns-plain-safe
2205
- (inblock ? (
2206
- // c = flow-in
2207
- cIsNsCharOrWhitespace
2208
- ) : cIsNsCharOrWhitespace && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && c !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar
2209
- );
2210
- }
2211
- __name(isPlainSafe, "isPlainSafe");
2212
- function isPlainSafeFirst(c) {
2213
- return isPrintable(c) && c !== CHAR_BOM && !isWhitespace(c) && c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
2214
- }
2215
- __name(isPlainSafeFirst, "isPlainSafeFirst");
2216
- function isPlainSafeLast(c) {
2217
- return !isWhitespace(c) && c !== CHAR_COLON;
2218
- }
2219
- __name(isPlainSafeLast, "isPlainSafeLast");
2220
- function codePointAt(string, pos) {
2221
- var first = string.charCodeAt(pos), second;
2222
- if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
2223
- second = string.charCodeAt(pos + 1);
2224
- if (second >= 56320 && second <= 57343) {
2225
- return (first - 55296) * 1024 + second - 56320 + 65536;
2226
- }
2227
- }
2228
- return first;
2229
- }
2230
- __name(codePointAt, "codePointAt");
2231
- function needIndentIndicator(string) {
2232
- var leadingSpaceRe = /^\n* /;
2233
- return leadingSpaceRe.test(string);
2234
- }
2235
- __name(needIndentIndicator, "needIndentIndicator");
2236
- var STYLE_PLAIN = 1;
2237
- var STYLE_SINGLE = 2;
2238
- var STYLE_LITERAL = 3;
2239
- var STYLE_FOLDED = 4;
2240
- var STYLE_DOUBLE = 5;
2241
- function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
2242
- var i2;
2243
- var char = 0;
2244
- var prevChar = null;
2245
- var hasLineBreak = false;
2246
- var hasFoldableLine = false;
2247
- var shouldTrackWidth = lineWidth !== -1;
2248
- var previousLineBreak = -1;
2249
- var plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
2250
- if (singleLineOnly || forceQuotes) {
2251
- for (i2 = 0; i2 < string.length; char >= 65536 ? i2 += 2 : i2++) {
2252
- char = codePointAt(string, i2);
2253
- if (!isPrintable(char)) {
2254
- return STYLE_DOUBLE;
2255
- }
2256
- plain = plain && isPlainSafe(char, prevChar, inblock);
2257
- prevChar = char;
2258
- }
2259
- } else {
2260
- for (i2 = 0; i2 < string.length; char >= 65536 ? i2 += 2 : i2++) {
2261
- char = codePointAt(string, i2);
2262
- if (char === CHAR_LINE_FEED) {
2263
- hasLineBreak = true;
2264
- if (shouldTrackWidth) {
2265
- hasFoldableLine = hasFoldableLine || // Foldable line = too long, and not more-indented.
2266
- i2 - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
2267
- previousLineBreak = i2;
2268
- }
2269
- } else if (!isPrintable(char)) {
2270
- return STYLE_DOUBLE;
2271
- }
2272
- plain = plain && isPlainSafe(char, prevChar, inblock);
2273
- prevChar = char;
2274
- }
2275
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i2 - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
2276
- }
2277
- if (!hasLineBreak && !hasFoldableLine) {
2278
- if (plain && !forceQuotes && !testAmbiguousType(string)) {
2279
- return STYLE_PLAIN;
2280
- }
2281
- return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
2282
- }
2283
- if (indentPerLevel > 9 && needIndentIndicator(string)) {
2284
- return STYLE_DOUBLE;
2285
- }
2286
- if (!forceQuotes) {
2287
- return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
2288
- }
2289
- return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
2290
- }
2291
- __name(chooseScalarStyle, "chooseScalarStyle");
2292
- function writeScalar(state, string, level, iskey, inblock) {
2293
- state.dump = function() {
2294
- if (string.length === 0) {
2295
- return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
2296
- }
2297
- if (!state.noCompatMode) {
2298
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
2299
- return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
2300
- }
2301
- }
2302
- var indent = state.indent * Math.max(1, level);
2303
- var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
2304
- var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
2305
- function testAmbiguity(string2) {
2306
- return testImplicitResolving(state, string2);
2307
- }
2308
- __name(testAmbiguity, "testAmbiguity");
2309
- switch (chooseScalarStyle(
2310
- string,
2311
- singleLineOnly,
2312
- state.indent,
2313
- lineWidth,
2314
- testAmbiguity,
2315
- state.quotingType,
2316
- state.forceQuotes && !iskey,
2317
- inblock
2318
- )) {
2319
- case STYLE_PLAIN:
2320
- return string;
2321
- case STYLE_SINGLE:
2322
- return "'" + string.replace(/'/g, "''") + "'";
2323
- case STYLE_LITERAL:
2324
- return "|" + blockHeader(string, state.indent) + dropEndingNewline(indentString(string, indent));
2325
- case STYLE_FOLDED:
2326
- return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
2327
- case STYLE_DOUBLE:
2328
- return '"' + escapeString(string) + '"';
2329
- default:
2330
- throw new exception("impossible error: invalid scalar style");
2331
- }
2332
- }();
2333
- }
2334
- __name(writeScalar, "writeScalar");
2335
- function blockHeader(string, indentPerLevel) {
2336
- var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
2337
- var clip = string[string.length - 1] === "\n";
2338
- var keep = clip && (string[string.length - 2] === "\n" || string === "\n");
2339
- var chomp = keep ? "+" : clip ? "" : "-";
2340
- return indentIndicator + chomp + "\n";
2341
- }
2342
- __name(blockHeader, "blockHeader");
2343
- function dropEndingNewline(string) {
2344
- return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
2345
- }
2346
- __name(dropEndingNewline, "dropEndingNewline");
2347
- function foldString(string, width) {
2348
- var lineRe = /(\n+)([^\n]*)/g;
2349
- var result = function() {
2350
- var nextLF = string.indexOf("\n");
2351
- nextLF = nextLF !== -1 ? nextLF : string.length;
2352
- lineRe.lastIndex = nextLF;
2353
- return foldLine(string.slice(0, nextLF), width);
2354
- }();
2355
- var prevMoreIndented = string[0] === "\n" || string[0] === " ";
2356
- var moreIndented;
2357
- var match;
2358
- while (match = lineRe.exec(string)) {
2359
- var prefix = match[1], line = match[2];
2360
- moreIndented = line[0] === " ";
2361
- result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
2362
- prevMoreIndented = moreIndented;
2363
- }
2364
- return result;
2365
- }
2366
- __name(foldString, "foldString");
2367
- function foldLine(line, width) {
2368
- if (line === "" || line[0] === " ") return line;
2369
- var breakRe = / [^ ]/g;
2370
- var match;
2371
- var start = 0, end, curr = 0, next = 0;
2372
- var result = "";
2373
- while (match = breakRe.exec(line)) {
2374
- next = match.index;
2375
- if (next - start > width) {
2376
- end = curr > start ? curr : next;
2377
- result += "\n" + line.slice(start, end);
2378
- start = end + 1;
2379
- }
2380
- curr = next;
2381
- }
2382
- result += "\n";
2383
- if (line.length - start > width && curr > start) {
2384
- result += line.slice(start, curr) + "\n" + line.slice(curr + 1);
2385
- } else {
2386
- result += line.slice(start);
2387
- }
2388
- return result.slice(1);
2389
- }
2390
- __name(foldLine, "foldLine");
2391
- function escapeString(string) {
2392
- var result = "";
2393
- var char = 0;
2394
- var escapeSeq;
2395
- for (var i2 = 0; i2 < string.length; char >= 65536 ? i2 += 2 : i2++) {
2396
- char = codePointAt(string, i2);
2397
- escapeSeq = ESCAPE_SEQUENCES[char];
2398
- if (!escapeSeq && isPrintable(char)) {
2399
- result += string[i2];
2400
- if (char >= 65536) result += string[i2 + 1];
2401
- } else {
2402
- result += escapeSeq || encodeHex(char);
2403
- }
2404
- }
2405
- return result;
2406
- }
2407
- __name(escapeString, "escapeString");
2408
- function writeFlowSequence(state, level, object) {
2409
- var _result = "", _tag = state.tag, index, length, value;
2410
- for (index = 0, length = object.length; index < length; index += 1) {
2411
- value = object[index];
2412
- if (state.replacer) {
2413
- value = state.replacer.call(object, String(index), value);
2414
- }
2415
- if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
2416
- if (_result !== "") _result += "," + (!state.condenseFlow ? " " : "");
2417
- _result += state.dump;
2418
- }
2419
- }
2420
- state.tag = _tag;
2421
- state.dump = "[" + _result + "]";
2422
- }
2423
- __name(writeFlowSequence, "writeFlowSequence");
2424
- function writeBlockSequence(state, level, object, compact) {
2425
- var _result = "", _tag = state.tag, index, length, value;
2426
- for (index = 0, length = object.length; index < length; index += 1) {
2427
- value = object[index];
2428
- if (state.replacer) {
2429
- value = state.replacer.call(object, String(index), value);
2430
- }
2431
- if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
2432
- if (!compact || _result !== "") {
2433
- _result += generateNextLine(state, level);
2434
- }
2435
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
2436
- _result += "-";
2437
- } else {
2438
- _result += "- ";
2439
- }
2440
- _result += state.dump;
2441
- }
2442
- }
2443
- state.tag = _tag;
2444
- state.dump = _result || "[]";
2445
- }
2446
- __name(writeBlockSequence, "writeBlockSequence");
2447
- function writeFlowMapping(state, level, object) {
2448
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, pairBuffer;
2449
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
2450
- pairBuffer = "";
2451
- if (_result !== "") pairBuffer += ", ";
2452
- if (state.condenseFlow) pairBuffer += '"';
2453
- objectKey = objectKeyList[index];
2454
- objectValue = object[objectKey];
2455
- if (state.replacer) {
2456
- objectValue = state.replacer.call(object, objectKey, objectValue);
2457
- }
2458
- if (!writeNode(state, level, objectKey, false, false)) {
2459
- continue;
2460
- }
2461
- if (state.dump.length > 1024) pairBuffer += "? ";
2462
- pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
2463
- if (!writeNode(state, level, objectValue, false, false)) {
2464
- continue;
2465
- }
2466
- pairBuffer += state.dump;
2467
- _result += pairBuffer;
2468
- }
2469
- state.tag = _tag;
2470
- state.dump = "{" + _result + "}";
2471
- }
2472
- __name(writeFlowMapping, "writeFlowMapping");
2473
- function writeBlockMapping(state, level, object, compact) {
2474
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, explicitPair, pairBuffer;
2475
- if (state.sortKeys === true) {
2476
- objectKeyList.sort();
2477
- } else if (typeof state.sortKeys === "function") {
2478
- objectKeyList.sort(state.sortKeys);
2479
- } else if (state.sortKeys) {
2480
- throw new exception("sortKeys must be a boolean or a function");
2481
- }
2482
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
2483
- pairBuffer = "";
2484
- if (!compact || _result !== "") {
2485
- pairBuffer += generateNextLine(state, level);
2486
- }
2487
- objectKey = objectKeyList[index];
2488
- objectValue = object[objectKey];
2489
- if (state.replacer) {
2490
- objectValue = state.replacer.call(object, objectKey, objectValue);
2491
- }
2492
- if (!writeNode(state, level + 1, objectKey, true, true, true)) {
2493
- continue;
2494
- }
2495
- explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
2496
- if (explicitPair) {
2497
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
2498
- pairBuffer += "?";
2499
- } else {
2500
- pairBuffer += "? ";
2501
- }
2502
- }
2503
- pairBuffer += state.dump;
2504
- if (explicitPair) {
2505
- pairBuffer += generateNextLine(state, level);
2506
- }
2507
- if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
2508
- continue;
2509
- }
2510
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
2511
- pairBuffer += ":";
2512
- } else {
2513
- pairBuffer += ": ";
2514
- }
2515
- pairBuffer += state.dump;
2516
- _result += pairBuffer;
2517
- }
2518
- state.tag = _tag;
2519
- state.dump = _result || "{}";
2520
- }
2521
- __name(writeBlockMapping, "writeBlockMapping");
2522
- function detectType(state, object, explicit) {
2523
- var _result, typeList, index, length, type2, style;
2524
- typeList = explicit ? state.explicitTypes : state.implicitTypes;
2525
- for (index = 0, length = typeList.length; index < length; index += 1) {
2526
- type2 = typeList[index];
2527
- if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
2528
- if (explicit) {
2529
- if (type2.multi && type2.representName) {
2530
- state.tag = type2.representName(object);
2531
- } else {
2532
- state.tag = type2.tag;
2533
- }
2534
- } else {
2535
- state.tag = "?";
2536
- }
2537
- if (type2.represent) {
2538
- style = state.styleMap[type2.tag] || type2.defaultStyle;
2539
- if (_toString.call(type2.represent) === "[object Function]") {
2540
- _result = type2.represent(object, style);
2541
- } else if (_hasOwnProperty.call(type2.represent, style)) {
2542
- _result = type2.represent[style](object, style);
2543
- } else {
2544
- throw new exception("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
2545
- }
2546
- state.dump = _result;
2547
- }
2548
- return true;
2549
- }
2550
- }
2551
- return false;
2552
- }
2553
- __name(detectType, "detectType");
2554
- function writeNode(state, level, object, block, compact, iskey, isblockseq) {
2555
- state.tag = null;
2556
- state.dump = object;
2557
- if (!detectType(state, object, false)) {
2558
- detectType(state, object, true);
2559
- }
2560
- var type2 = _toString.call(state.dump);
2561
- var inblock = block;
2562
- var tagStr;
2563
- if (block) {
2564
- block = state.flowLevel < 0 || state.flowLevel > level;
2565
- }
2566
- var objectOrArray = type2 === "[object Object]" || type2 === "[object Array]", duplicateIndex, duplicate;
2567
- if (objectOrArray) {
2568
- duplicateIndex = state.duplicates.indexOf(object);
2569
- duplicate = duplicateIndex !== -1;
2570
- }
2571
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
2572
- compact = false;
2573
- }
2574
- if (duplicate && state.usedDuplicates[duplicateIndex]) {
2575
- state.dump = "*ref_" + duplicateIndex;
2576
- } else {
2577
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
2578
- state.usedDuplicates[duplicateIndex] = true;
2579
- }
2580
- if (type2 === "[object Object]") {
2581
- if (block && Object.keys(state.dump).length !== 0) {
2582
- writeBlockMapping(state, level, state.dump, compact);
2583
- if (duplicate) {
2584
- state.dump = "&ref_" + duplicateIndex + state.dump;
2585
- }
2586
- } else {
2587
- writeFlowMapping(state, level, state.dump);
2588
- if (duplicate) {
2589
- state.dump = "&ref_" + duplicateIndex + " " + state.dump;
2590
- }
2591
- }
2592
- } else if (type2 === "[object Array]") {
2593
- if (block && state.dump.length !== 0) {
2594
- if (state.noArrayIndent && !isblockseq && level > 0) {
2595
- writeBlockSequence(state, level - 1, state.dump, compact);
2596
- } else {
2597
- writeBlockSequence(state, level, state.dump, compact);
2598
- }
2599
- if (duplicate) {
2600
- state.dump = "&ref_" + duplicateIndex + state.dump;
2601
- }
2602
- } else {
2603
- writeFlowSequence(state, level, state.dump);
2604
- if (duplicate) {
2605
- state.dump = "&ref_" + duplicateIndex + " " + state.dump;
2606
- }
2607
- }
2608
- } else if (type2 === "[object String]") {
2609
- if (state.tag !== "?") {
2610
- writeScalar(state, state.dump, level, iskey, inblock);
2611
- }
2612
- } else if (type2 === "[object Undefined]") {
2613
- return false;
2614
- } else {
2615
- if (state.skipInvalid) return false;
2616
- throw new exception("unacceptable kind of an object to dump " + type2);
2617
- }
2618
- if (state.tag !== null && state.tag !== "?") {
2619
- tagStr = encodeURI(
2620
- state.tag[0] === "!" ? state.tag.slice(1) : state.tag
2621
- ).replace(/!/g, "%21");
2622
- if (state.tag[0] === "!") {
2623
- tagStr = "!" + tagStr;
2624
- } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
2625
- tagStr = "!!" + tagStr.slice(18);
2626
- } else {
2627
- tagStr = "!<" + tagStr + ">";
2628
- }
2629
- state.dump = tagStr + " " + state.dump;
2630
- }
2631
- }
2632
- return true;
2633
- }
2634
- __name(writeNode, "writeNode");
2635
- function getDuplicateReferences(object, state) {
2636
- var objects = [], duplicatesIndexes = [], index, length;
2637
- inspectNode(object, objects, duplicatesIndexes);
2638
- for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
2639
- state.duplicates.push(objects[duplicatesIndexes[index]]);
2640
- }
2641
- state.usedDuplicates = new Array(length);
2642
- }
2643
- __name(getDuplicateReferences, "getDuplicateReferences");
2644
- function inspectNode(object, objects, duplicatesIndexes) {
2645
- var objectKeyList, index, length;
2646
- if (object !== null && typeof object === "object") {
2647
- index = objects.indexOf(object);
2648
- if (index !== -1) {
2649
- if (duplicatesIndexes.indexOf(index) === -1) {
2650
- duplicatesIndexes.push(index);
2651
- }
2652
- } else {
2653
- objects.push(object);
2654
- if (Array.isArray(object)) {
2655
- for (index = 0, length = object.length; index < length; index += 1) {
2656
- inspectNode(object[index], objects, duplicatesIndexes);
2657
- }
2658
- } else {
2659
- objectKeyList = Object.keys(object);
2660
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
2661
- inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
2662
- }
2663
- }
2664
- }
2665
- }
2666
- }
2667
- __name(inspectNode, "inspectNode");
2668
- function dump$1(input, options) {
2669
- options = options || {};
2670
- var state = new State(options);
2671
- if (!state.noRefs) getDuplicateReferences(input, state);
2672
- var value = input;
2673
- if (state.replacer) {
2674
- value = state.replacer.call({ "": value }, "", value);
2675
- }
2676
- if (writeNode(state, 0, value, true, true)) return state.dump + "\n";
2677
- return "";
2678
- }
2679
- __name(dump$1, "dump$1");
2680
- function renamed(from, to) {
2681
- return function() {
2682
- throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
2683
- };
2684
- }
2685
- __name(renamed, "renamed");
2686
- var JSON_SCHEMA = json;
2687
- var load = loader.load;
2688
- /*! Bundled license information:
2689
-
2690
- js-yaml/dist/js-yaml.mjs:
2691
- (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
2692
- */
2693
- export {
2694
- JSON_SCHEMA,
2695
- load
2696
- };