@rse/ase 0.0.30 → 0.0.32

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 (1590) hide show
  1. package/dst/ase-hello.js +22 -0
  2. package/dst/ase-hook.js +3 -1
  3. package/dst/ase-setup.js +10 -7
  4. package/package.json +2 -1
  5. package/plugin/.claude/settings.local.json +7 -0
  6. package/plugin/.claude-plugin/plugin.json +20 -0
  7. package/plugin/.github/plugin/plugin.json +21 -0
  8. package/plugin/agents/ase-meta-chat.md +10 -0
  9. package/plugin/agents/ase-meta-search.md +16 -0
  10. package/plugin/commands/ase-code-lint/complete.md +9 -0
  11. package/plugin/commands/ase-code-lint/explain.md +9 -0
  12. package/plugin/commands/ase-code-lint/nope.md +11 -0
  13. package/plugin/commands/ase-code-lint/reassess.md +15 -0
  14. package/plugin/commands/ase-code-lint/recheck.md +9 -0
  15. package/plugin/commands/ase-code-lint/refine.md +9 -0
  16. package/plugin/etc/markdownlint.yaml +18 -0
  17. package/plugin/etc/stx.conf +23 -0
  18. package/plugin/hooks/hooks-copilot.json +23 -0
  19. package/plugin/hooks/hooks.json +40 -0
  20. package/plugin/meta/ase-constitution.md +114 -0
  21. package/plugin/meta/ase-dialog.md +122 -0
  22. package/plugin/meta/ase-persona.md +63 -0
  23. package/plugin/meta/ase-plan.md +69 -0
  24. package/plugin/meta/ase-skill.md +238 -0
  25. package/plugin/node_modules/.package-lock.json +1342 -0
  26. package/plugin/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
  27. package/plugin/node_modules/@nodelib/fs.scandir/README.md +171 -0
  28. package/plugin/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  29. package/plugin/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
  30. package/plugin/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
  31. package/plugin/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
  32. package/plugin/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
  33. package/plugin/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
  34. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  35. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
  36. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
  37. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
  38. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
  39. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
  40. package/plugin/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  41. package/plugin/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
  42. package/plugin/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  43. package/plugin/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
  44. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
  45. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
  46. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
  47. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
  48. package/plugin/node_modules/@nodelib/fs.scandir/package.json +44 -0
  49. package/plugin/node_modules/@nodelib/fs.stat/LICENSE +21 -0
  50. package/plugin/node_modules/@nodelib/fs.stat/README.md +126 -0
  51. package/plugin/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  52. package/plugin/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
  53. package/plugin/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
  54. package/plugin/node_modules/@nodelib/fs.stat/out/index.js +26 -0
  55. package/plugin/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  56. package/plugin/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
  57. package/plugin/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
  58. package/plugin/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
  59. package/plugin/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
  60. package/plugin/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
  61. package/plugin/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  62. package/plugin/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
  63. package/plugin/node_modules/@nodelib/fs.stat/package.json +37 -0
  64. package/plugin/node_modules/@nodelib/fs.walk/LICENSE +21 -0
  65. package/plugin/node_modules/@nodelib/fs.walk/README.md +215 -0
  66. package/plugin/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
  67. package/plugin/node_modules/@nodelib/fs.walk/out/index.js +34 -0
  68. package/plugin/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  69. package/plugin/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
  70. package/plugin/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
  71. package/plugin/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
  72. package/plugin/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
  73. package/plugin/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
  74. package/plugin/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
  75. package/plugin/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
  76. package/plugin/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  77. package/plugin/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
  78. package/plugin/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
  79. package/plugin/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
  80. package/plugin/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  81. package/plugin/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
  82. package/plugin/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
  83. package/plugin/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
  84. package/plugin/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
  85. package/plugin/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
  86. package/plugin/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  87. package/plugin/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
  88. package/plugin/node_modules/@nodelib/fs.walk/package.json +44 -0
  89. package/plugin/node_modules/@rse/stx/README.md +176 -0
  90. package/plugin/node_modules/@rse/stx/dst-stage2/stx.1 +206 -0
  91. package/plugin/node_modules/@rse/stx/dst-stage2/stx.js +205 -0
  92. package/plugin/node_modules/@rse/stx/etc/.markdownlint.yaml +11 -0
  93. package/plugin/node_modules/@rse/stx/etc/eslint.mjs +82 -0
  94. package/plugin/node_modules/@rse/stx/etc/stx-bootstrap.js +18 -0
  95. package/plugin/node_modules/@rse/stx/etc/stx.conf +59 -0
  96. package/plugin/node_modules/@rse/stx/etc/tsc.json +24 -0
  97. package/plugin/node_modules/@rse/stx/etc/vite.mts +69 -0
  98. package/plugin/node_modules/@rse/stx/package.json +71 -0
  99. package/plugin/node_modules/@rse/stx/src/stx-logo.ai +1466 -4
  100. package/plugin/node_modules/@rse/stx/src/stx-logo.svg +31 -0
  101. package/plugin/node_modules/@rse/stx/src/stx.md +293 -0
  102. package/plugin/node_modules/@rse/stx/src/stx.ts +708 -0
  103. package/plugin/node_modules/@rse/stx/src/tsconfig.json +3 -0
  104. package/plugin/node_modules/@sindresorhus/merge-streams/index.d.ts +44 -0
  105. package/plugin/node_modules/@sindresorhus/merge-streams/index.js +265 -0
  106. package/plugin/node_modules/@sindresorhus/merge-streams/license +9 -0
  107. package/plugin/node_modules/@sindresorhus/merge-streams/package.json +49 -0
  108. package/plugin/node_modules/@sindresorhus/merge-streams/readme.md +53 -0
  109. package/plugin/node_modules/@types/debug/LICENSE +21 -0
  110. package/plugin/node_modules/@types/debug/README.md +69 -0
  111. package/plugin/node_modules/@types/debug/index.d.ts +50 -0
  112. package/plugin/node_modules/@types/debug/package.json +58 -0
  113. package/plugin/node_modules/@types/katex/LICENSE +21 -0
  114. package/plugin/node_modules/@types/katex/README.md +15 -0
  115. package/plugin/node_modules/@types/katex/contrib/auto-render.d.ts +67 -0
  116. package/plugin/node_modules/@types/katex/index.d.ts +151 -0
  117. package/plugin/node_modules/@types/katex/package.json +46 -0
  118. package/plugin/node_modules/@types/ms/LICENSE +21 -0
  119. package/plugin/node_modules/@types/ms/README.md +82 -0
  120. package/plugin/node_modules/@types/ms/index.d.ts +63 -0
  121. package/plugin/node_modules/@types/ms/package.json +26 -0
  122. package/plugin/node_modules/@types/unist/LICENSE +21 -0
  123. package/plugin/node_modules/@types/unist/README.md +122 -0
  124. package/plugin/node_modules/@types/unist/index.d.ts +103 -0
  125. package/plugin/node_modules/@types/unist/package.json +55 -0
  126. package/plugin/node_modules/ansi-regex/index.d.ts +33 -0
  127. package/plugin/node_modules/ansi-regex/index.js +14 -0
  128. package/plugin/node_modules/ansi-regex/license +9 -0
  129. package/plugin/node_modules/ansi-regex/package.json +61 -0
  130. package/plugin/node_modules/ansi-regex/readme.md +66 -0
  131. package/plugin/node_modules/argparse/CHANGELOG.md +216 -0
  132. package/plugin/node_modules/argparse/LICENSE +254 -0
  133. package/plugin/node_modules/argparse/README.md +84 -0
  134. package/plugin/node_modules/argparse/argparse.js +3707 -0
  135. package/plugin/node_modules/argparse/lib/sub.js +67 -0
  136. package/plugin/node_modules/argparse/lib/textwrap.js +440 -0
  137. package/plugin/node_modules/argparse/package.json +31 -0
  138. package/plugin/node_modules/braces/LICENSE +21 -0
  139. package/plugin/node_modules/braces/README.md +586 -0
  140. package/plugin/node_modules/braces/index.js +170 -0
  141. package/plugin/node_modules/braces/lib/compile.js +60 -0
  142. package/plugin/node_modules/braces/lib/constants.js +57 -0
  143. package/plugin/node_modules/braces/lib/expand.js +113 -0
  144. package/plugin/node_modules/braces/lib/parse.js +331 -0
  145. package/plugin/node_modules/braces/lib/stringify.js +32 -0
  146. package/plugin/node_modules/braces/lib/utils.js +122 -0
  147. package/plugin/node_modules/braces/package.json +77 -0
  148. package/plugin/node_modules/character-entities/index.d.ts +6 -0
  149. package/plugin/node_modules/character-entities/index.js +2132 -0
  150. package/plugin/node_modules/character-entities/license +22 -0
  151. package/plugin/node_modules/character-entities/package.json +78 -0
  152. package/plugin/node_modules/character-entities/readme.md +152 -0
  153. package/plugin/node_modules/character-entities-legacy/index.d.ts +6 -0
  154. package/plugin/node_modules/character-entities-legacy/index.js +113 -0
  155. package/plugin/node_modules/character-entities-legacy/license +22 -0
  156. package/plugin/node_modules/character-entities-legacy/package.json +77 -0
  157. package/plugin/node_modules/character-entities-legacy/readme.md +157 -0
  158. package/plugin/node_modules/character-reference-invalid/index.d.ts +6 -0
  159. package/plugin/node_modules/character-reference-invalid/index.js +35 -0
  160. package/plugin/node_modules/character-reference-invalid/license +22 -0
  161. package/plugin/node_modules/character-reference-invalid/package.json +83 -0
  162. package/plugin/node_modules/character-reference-invalid/readme.md +156 -0
  163. package/plugin/node_modules/commander/LICENSE +22 -0
  164. package/plugin/node_modules/commander/Readme.md +1015 -0
  165. package/plugin/node_modules/commander/esm.mjs +15 -0
  166. package/plugin/node_modules/commander/index.js +27 -0
  167. package/plugin/node_modules/commander/lib/argument.js +147 -0
  168. package/plugin/node_modules/commander/lib/command.js +1944 -0
  169. package/plugin/node_modules/commander/lib/error.js +45 -0
  170. package/plugin/node_modules/commander/lib/help.js +396 -0
  171. package/plugin/node_modules/commander/lib/option.js +208 -0
  172. package/plugin/node_modules/commander/lib/suggestSimilar.js +100 -0
  173. package/plugin/node_modules/commander/package-support.json +16 -0
  174. package/plugin/node_modules/commander/package.json +69 -0
  175. package/plugin/node_modules/commander/typings/index.d.ts +774 -0
  176. package/plugin/node_modules/debug/LICENSE +20 -0
  177. package/plugin/node_modules/debug/README.md +481 -0
  178. package/plugin/node_modules/debug/package.json +64 -0
  179. package/plugin/node_modules/debug/src/browser.js +272 -0
  180. package/plugin/node_modules/debug/src/common.js +292 -0
  181. package/plugin/node_modules/debug/src/index.js +10 -0
  182. package/plugin/node_modules/debug/src/node.js +263 -0
  183. package/plugin/node_modules/decode-named-character-reference/index.d.ts +13 -0
  184. package/plugin/node_modules/decode-named-character-reference/index.d.ts.map +1 -0
  185. package/plugin/node_modules/decode-named-character-reference/index.dom.d.ts +6 -0
  186. package/plugin/node_modules/decode-named-character-reference/index.dom.d.ts.map +1 -0
  187. package/plugin/node_modules/decode-named-character-reference/index.dom.js +32 -0
  188. package/plugin/node_modules/decode-named-character-reference/index.js +19 -0
  189. package/plugin/node_modules/decode-named-character-reference/license +22 -0
  190. package/plugin/node_modules/decode-named-character-reference/package.json +90 -0
  191. package/plugin/node_modules/decode-named-character-reference/readme.md +136 -0
  192. package/plugin/node_modules/dequal/dist/index.js +86 -0
  193. package/plugin/node_modules/dequal/dist/index.min.js +1 -0
  194. package/plugin/node_modules/dequal/dist/index.mjs +84 -0
  195. package/plugin/node_modules/dequal/index.d.ts +1 -0
  196. package/plugin/node_modules/dequal/license +21 -0
  197. package/plugin/node_modules/dequal/lite/index.d.ts +1 -0
  198. package/plugin/node_modules/dequal/lite/index.js +31 -0
  199. package/plugin/node_modules/dequal/lite/index.min.js +1 -0
  200. package/plugin/node_modules/dequal/lite/index.mjs +29 -0
  201. package/plugin/node_modules/dequal/package.json +57 -0
  202. package/plugin/node_modules/dequal/readme.md +112 -0
  203. package/plugin/node_modules/devlop/lib/default.js +9 -0
  204. package/plugin/node_modules/devlop/lib/development.d.ts +84 -0
  205. package/plugin/node_modules/devlop/lib/development.js +238 -0
  206. package/plugin/node_modules/devlop/license +22 -0
  207. package/plugin/node_modules/devlop/package.json +80 -0
  208. package/plugin/node_modules/devlop/readme.md +360 -0
  209. package/plugin/node_modules/entities/LICENSE +11 -0
  210. package/plugin/node_modules/entities/lib/decode.d.ts +211 -0
  211. package/plugin/node_modules/entities/lib/decode.d.ts.map +1 -0
  212. package/plugin/node_modules/entities/lib/decode.js +536 -0
  213. package/plugin/node_modules/entities/lib/decode.js.map +1 -0
  214. package/plugin/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
  215. package/plugin/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
  216. package/plugin/node_modules/entities/lib/decode_codepoint.js +76 -0
  217. package/plugin/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  218. package/plugin/node_modules/entities/lib/encode.d.ts +22 -0
  219. package/plugin/node_modules/entities/lib/encode.d.ts.map +1 -0
  220. package/plugin/node_modules/entities/lib/encode.js +77 -0
  221. package/plugin/node_modules/entities/lib/encode.js.map +1 -0
  222. package/plugin/node_modules/entities/lib/escape.d.ts +43 -0
  223. package/plugin/node_modules/entities/lib/escape.d.ts.map +1 -0
  224. package/plugin/node_modules/entities/lib/escape.js +122 -0
  225. package/plugin/node_modules/entities/lib/escape.js.map +1 -0
  226. package/plugin/node_modules/entities/lib/esm/decode.d.ts +211 -0
  227. package/plugin/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
  228. package/plugin/node_modules/entities/lib/esm/decode.js +496 -0
  229. package/plugin/node_modules/entities/lib/esm/decode.js.map +1 -0
  230. package/plugin/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
  231. package/plugin/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
  232. package/plugin/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
  233. package/plugin/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
  234. package/plugin/node_modules/entities/lib/esm/encode.d.ts +22 -0
  235. package/plugin/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
  236. package/plugin/node_modules/entities/lib/esm/encode.js +69 -0
  237. package/plugin/node_modules/entities/lib/esm/encode.js.map +1 -0
  238. package/plugin/node_modules/entities/lib/esm/escape.d.ts +43 -0
  239. package/plugin/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
  240. package/plugin/node_modules/entities/lib/esm/escape.js +116 -0
  241. package/plugin/node_modules/entities/lib/esm/escape.js.map +1 -0
  242. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
  243. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
  244. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
  245. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
  246. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
  247. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
  248. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
  249. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
  250. package/plugin/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
  251. package/plugin/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
  252. package/plugin/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
  253. package/plugin/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
  254. package/plugin/node_modules/entities/lib/esm/index.d.ts +96 -0
  255. package/plugin/node_modules/entities/lib/esm/index.d.ts.map +1 -0
  256. package/plugin/node_modules/entities/lib/esm/index.js +99 -0
  257. package/plugin/node_modules/entities/lib/esm/index.js.map +1 -0
  258. package/plugin/node_modules/entities/lib/esm/package.json +1 -0
  259. package/plugin/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
  260. package/plugin/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
  261. package/plugin/node_modules/entities/lib/generated/decode-data-html.js +9 -0
  262. package/plugin/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  263. package/plugin/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
  264. package/plugin/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
  265. package/plugin/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
  266. package/plugin/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  267. package/plugin/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
  268. package/plugin/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
  269. package/plugin/node_modules/entities/lib/generated/encode-html.js +12 -0
  270. package/plugin/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  271. package/plugin/node_modules/entities/lib/index.d.ts +96 -0
  272. package/plugin/node_modules/entities/lib/index.d.ts.map +1 -0
  273. package/plugin/node_modules/entities/lib/index.js +126 -0
  274. package/plugin/node_modules/entities/lib/index.js.map +1 -0
  275. package/plugin/node_modules/entities/package.json +90 -0
  276. package/plugin/node_modules/entities/readme.md +122 -0
  277. package/plugin/node_modules/fast-glob/LICENSE +21 -0
  278. package/plugin/node_modules/fast-glob/README.md +830 -0
  279. package/plugin/node_modules/fast-glob/out/index.d.ts +40 -0
  280. package/plugin/node_modules/fast-glob/out/index.js +102 -0
  281. package/plugin/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
  282. package/plugin/node_modules/fast-glob/out/managers/tasks.js +110 -0
  283. package/plugin/node_modules/fast-glob/out/providers/async.d.ts +9 -0
  284. package/plugin/node_modules/fast-glob/out/providers/async.js +23 -0
  285. package/plugin/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
  286. package/plugin/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
  287. package/plugin/node_modules/fast-glob/out/providers/filters/entry.d.ts +17 -0
  288. package/plugin/node_modules/fast-glob/out/providers/filters/entry.js +85 -0
  289. package/plugin/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
  290. package/plugin/node_modules/fast-glob/out/providers/filters/error.js +15 -0
  291. package/plugin/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
  292. package/plugin/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
  293. package/plugin/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
  294. package/plugin/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
  295. package/plugin/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
  296. package/plugin/node_modules/fast-glob/out/providers/provider.js +48 -0
  297. package/plugin/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
  298. package/plugin/node_modules/fast-glob/out/providers/stream.js +31 -0
  299. package/plugin/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
  300. package/plugin/node_modules/fast-glob/out/providers/sync.js +23 -0
  301. package/plugin/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
  302. package/plugin/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
  303. package/plugin/node_modules/fast-glob/out/readers/async.d.ts +10 -0
  304. package/plugin/node_modules/fast-glob/out/readers/async.js +35 -0
  305. package/plugin/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
  306. package/plugin/node_modules/fast-glob/out/readers/reader.js +33 -0
  307. package/plugin/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
  308. package/plugin/node_modules/fast-glob/out/readers/stream.js +55 -0
  309. package/plugin/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
  310. package/plugin/node_modules/fast-glob/out/readers/sync.js +43 -0
  311. package/plugin/node_modules/fast-glob/out/settings.d.ts +164 -0
  312. package/plugin/node_modules/fast-glob/out/settings.js +59 -0
  313. package/plugin/node_modules/fast-glob/out/types/index.d.ts +31 -0
  314. package/plugin/node_modules/fast-glob/out/types/index.js +2 -0
  315. package/plugin/node_modules/fast-glob/out/utils/array.d.ts +2 -0
  316. package/plugin/node_modules/fast-glob/out/utils/array.js +22 -0
  317. package/plugin/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
  318. package/plugin/node_modules/fast-glob/out/utils/errno.js +7 -0
  319. package/plugin/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
  320. package/plugin/node_modules/fast-glob/out/utils/fs.js +19 -0
  321. package/plugin/node_modules/fast-glob/out/utils/index.d.ts +8 -0
  322. package/plugin/node_modules/fast-glob/out/utils/index.js +17 -0
  323. package/plugin/node_modules/fast-glob/out/utils/path.d.ts +13 -0
  324. package/plugin/node_modules/fast-glob/out/utils/path.js +68 -0
  325. package/plugin/node_modules/fast-glob/out/utils/pattern.d.ts +49 -0
  326. package/plugin/node_modules/fast-glob/out/utils/pattern.js +206 -0
  327. package/plugin/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
  328. package/plugin/node_modules/fast-glob/out/utils/stream.js +17 -0
  329. package/plugin/node_modules/fast-glob/out/utils/string.d.ts +2 -0
  330. package/plugin/node_modules/fast-glob/out/utils/string.js +11 -0
  331. package/plugin/node_modules/fast-glob/package.json +81 -0
  332. package/plugin/node_modules/fastq/LICENSE +13 -0
  333. package/plugin/node_modules/fastq/README.md +310 -0
  334. package/plugin/node_modules/fastq/SECURITY.md +15 -0
  335. package/plugin/node_modules/fastq/bench.js +66 -0
  336. package/plugin/node_modules/fastq/eslint.config.js +11 -0
  337. package/plugin/node_modules/fastq/example.js +14 -0
  338. package/plugin/node_modules/fastq/example.mjs +9 -0
  339. package/plugin/node_modules/fastq/index.d.ts +59 -0
  340. package/plugin/node_modules/fastq/package.json +49 -0
  341. package/plugin/node_modules/fastq/queue.js +346 -0
  342. package/plugin/node_modules/fastq/test/example.ts +83 -0
  343. package/plugin/node_modules/fastq/test/promise.js +325 -0
  344. package/plugin/node_modules/fastq/test/test.js +733 -0
  345. package/plugin/node_modules/fastq/test/tsconfig.json +11 -0
  346. package/plugin/node_modules/fill-range/LICENSE +21 -0
  347. package/plugin/node_modules/fill-range/README.md +237 -0
  348. package/plugin/node_modules/fill-range/index.js +248 -0
  349. package/plugin/node_modules/fill-range/package.json +74 -0
  350. package/plugin/node_modules/get-east-asian-width/index.d.ts +60 -0
  351. package/plugin/node_modules/get-east-asian-width/index.js +30 -0
  352. package/plugin/node_modules/get-east-asian-width/license +9 -0
  353. package/plugin/node_modules/get-east-asian-width/lookup-data.js +21 -0
  354. package/plugin/node_modules/get-east-asian-width/lookup.js +138 -0
  355. package/plugin/node_modules/get-east-asian-width/package.json +71 -0
  356. package/plugin/node_modules/get-east-asian-width/readme.md +65 -0
  357. package/plugin/node_modules/get-east-asian-width/utilities.js +24 -0
  358. package/plugin/node_modules/glob-parent/CHANGELOG.md +110 -0
  359. package/plugin/node_modules/glob-parent/LICENSE +15 -0
  360. package/plugin/node_modules/glob-parent/README.md +137 -0
  361. package/plugin/node_modules/glob-parent/index.js +42 -0
  362. package/plugin/node_modules/glob-parent/package.json +48 -0
  363. package/plugin/node_modules/globby/ignore.js +868 -0
  364. package/plugin/node_modules/globby/index.d.ts +413 -0
  365. package/plugin/node_modules/globby/index.js +680 -0
  366. package/plugin/node_modules/globby/license +9 -0
  367. package/plugin/node_modules/globby/package.json +94 -0
  368. package/plugin/node_modules/globby/readme.md +401 -0
  369. package/plugin/node_modules/globby/utilities.js +382 -0
  370. package/plugin/node_modules/ignore/LICENSE-MIT +21 -0
  371. package/plugin/node_modules/ignore/README.md +452 -0
  372. package/plugin/node_modules/ignore/index.d.ts +81 -0
  373. package/plugin/node_modules/ignore/index.js +784 -0
  374. package/plugin/node_modules/ignore/legacy.js +681 -0
  375. package/plugin/node_modules/ignore/package.json +87 -0
  376. package/plugin/node_modules/is-alphabetical/index.d.ts +8 -0
  377. package/plugin/node_modules/is-alphabetical/index.js +16 -0
  378. package/plugin/node_modules/is-alphabetical/license +22 -0
  379. package/plugin/node_modules/is-alphabetical/package.json +73 -0
  380. package/plugin/node_modules/is-alphabetical/readme.md +141 -0
  381. package/plugin/node_modules/is-alphanumerical/index.d.ts +8 -0
  382. package/plugin/node_modules/is-alphanumerical/index.js +13 -0
  383. package/plugin/node_modules/is-alphanumerical/license +22 -0
  384. package/plugin/node_modules/is-alphanumerical/package.json +79 -0
  385. package/plugin/node_modules/is-alphanumerical/readme.md +142 -0
  386. package/plugin/node_modules/is-decimal/index.d.ts +8 -0
  387. package/plugin/node_modules/is-decimal/index.js +13 -0
  388. package/plugin/node_modules/is-decimal/license +22 -0
  389. package/plugin/node_modules/is-decimal/package.json +73 -0
  390. package/plugin/node_modules/is-decimal/readme.md +139 -0
  391. package/plugin/node_modules/is-extglob/LICENSE +21 -0
  392. package/plugin/node_modules/is-extglob/README.md +107 -0
  393. package/plugin/node_modules/is-extglob/index.js +20 -0
  394. package/plugin/node_modules/is-extglob/package.json +69 -0
  395. package/plugin/node_modules/is-glob/LICENSE +21 -0
  396. package/plugin/node_modules/is-glob/README.md +206 -0
  397. package/plugin/node_modules/is-glob/index.js +150 -0
  398. package/plugin/node_modules/is-glob/package.json +81 -0
  399. package/plugin/node_modules/is-hexadecimal/index.d.ts +8 -0
  400. package/plugin/node_modules/is-hexadecimal/index.js +17 -0
  401. package/plugin/node_modules/is-hexadecimal/license +22 -0
  402. package/plugin/node_modules/is-hexadecimal/package.json +73 -0
  403. package/plugin/node_modules/is-hexadecimal/readme.md +141 -0
  404. package/plugin/node_modules/is-number/LICENSE +21 -0
  405. package/plugin/node_modules/is-number/README.md +187 -0
  406. package/plugin/node_modules/is-number/index.js +18 -0
  407. package/plugin/node_modules/is-number/package.json +82 -0
  408. package/plugin/node_modules/is-path-inside/index.d.ts +25 -0
  409. package/plugin/node_modules/is-path-inside/index.js +12 -0
  410. package/plugin/node_modules/is-path-inside/license +9 -0
  411. package/plugin/node_modules/is-path-inside/package.json +38 -0
  412. package/plugin/node_modules/is-path-inside/readme.md +59 -0
  413. package/plugin/node_modules/js-yaml/LICENSE +21 -0
  414. package/plugin/node_modules/js-yaml/README.md +247 -0
  415. package/plugin/node_modules/js-yaml/bin/js-yaml.js +126 -0
  416. package/plugin/node_modules/js-yaml/dist/js-yaml.js +3880 -0
  417. package/plugin/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
  418. package/plugin/node_modules/js-yaml/dist/js-yaml.mjs +3856 -0
  419. package/plugin/node_modules/js-yaml/index.js +47 -0
  420. package/plugin/node_modules/js-yaml/lib/common.js +59 -0
  421. package/plugin/node_modules/js-yaml/lib/dumper.js +965 -0
  422. package/plugin/node_modules/js-yaml/lib/exception.js +55 -0
  423. package/plugin/node_modules/js-yaml/lib/loader.js +1733 -0
  424. package/plugin/node_modules/js-yaml/lib/schema/core.js +11 -0
  425. package/plugin/node_modules/js-yaml/lib/schema/default.js +22 -0
  426. package/plugin/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
  427. package/plugin/node_modules/js-yaml/lib/schema/json.js +19 -0
  428. package/plugin/node_modules/js-yaml/lib/schema.js +121 -0
  429. package/plugin/node_modules/js-yaml/lib/snippet.js +101 -0
  430. package/plugin/node_modules/js-yaml/lib/type/binary.js +125 -0
  431. package/plugin/node_modules/js-yaml/lib/type/bool.js +35 -0
  432. package/plugin/node_modules/js-yaml/lib/type/float.js +97 -0
  433. package/plugin/node_modules/js-yaml/lib/type/int.js +156 -0
  434. package/plugin/node_modules/js-yaml/lib/type/map.js +8 -0
  435. package/plugin/node_modules/js-yaml/lib/type/merge.js +12 -0
  436. package/plugin/node_modules/js-yaml/lib/type/null.js +35 -0
  437. package/plugin/node_modules/js-yaml/lib/type/omap.js +44 -0
  438. package/plugin/node_modules/js-yaml/lib/type/pairs.js +53 -0
  439. package/plugin/node_modules/js-yaml/lib/type/seq.js +8 -0
  440. package/plugin/node_modules/js-yaml/lib/type/set.js +29 -0
  441. package/plugin/node_modules/js-yaml/lib/type/str.js +8 -0
  442. package/plugin/node_modules/js-yaml/lib/type/timestamp.js +88 -0
  443. package/plugin/node_modules/js-yaml/lib/type.js +66 -0
  444. package/plugin/node_modules/js-yaml/package.json +66 -0
  445. package/plugin/node_modules/jsonc-parser/CHANGELOG.md +76 -0
  446. package/plugin/node_modules/jsonc-parser/LICENSE.md +21 -0
  447. package/plugin/node_modules/jsonc-parser/README.md +364 -0
  448. package/plugin/node_modules/jsonc-parser/SECURITY.md +41 -0
  449. package/plugin/node_modules/jsonc-parser/lib/esm/impl/edit.js +185 -0
  450. package/plugin/node_modules/jsonc-parser/lib/esm/impl/format.js +261 -0
  451. package/plugin/node_modules/jsonc-parser/lib/esm/impl/parser.js +659 -0
  452. package/plugin/node_modules/jsonc-parser/lib/esm/impl/scanner.js +443 -0
  453. package/plugin/node_modules/jsonc-parser/lib/esm/impl/string-intern.js +29 -0
  454. package/plugin/node_modules/jsonc-parser/lib/esm/main.d.ts +351 -0
  455. package/plugin/node_modules/jsonc-parser/lib/esm/main.js +178 -0
  456. package/plugin/node_modules/jsonc-parser/lib/umd/impl/edit.js +201 -0
  457. package/plugin/node_modules/jsonc-parser/lib/umd/impl/format.js +275 -0
  458. package/plugin/node_modules/jsonc-parser/lib/umd/impl/parser.js +682 -0
  459. package/plugin/node_modules/jsonc-parser/lib/umd/impl/scanner.js +456 -0
  460. package/plugin/node_modules/jsonc-parser/lib/umd/impl/string-intern.js +42 -0
  461. package/plugin/node_modules/jsonc-parser/lib/umd/main.d.ts +351 -0
  462. package/plugin/node_modules/jsonc-parser/lib/umd/main.js +194 -0
  463. package/plugin/node_modules/jsonc-parser/package.json +37 -0
  464. package/plugin/node_modules/jsonpointer/LICENSE.md +21 -0
  465. package/plugin/node_modules/jsonpointer/README.md +45 -0
  466. package/plugin/node_modules/jsonpointer/jsonpointer.d.ts +35 -0
  467. package/plugin/node_modules/jsonpointer/jsonpointer.js +100 -0
  468. package/plugin/node_modules/jsonpointer/package.json +48 -0
  469. package/plugin/node_modules/katex/LICENSE +21 -0
  470. package/plugin/node_modules/katex/README.md +125 -0
  471. package/plugin/node_modules/katex/cli.js +114 -0
  472. package/plugin/node_modules/katex/contrib/auto-render/README.md +8 -0
  473. package/plugin/node_modules/katex/contrib/auto-render/auto-render.ts +164 -0
  474. package/plugin/node_modules/katex/contrib/auto-render/index.html +57 -0
  475. package/plugin/node_modules/katex/contrib/auto-render/splitAtDelimiters.ts +99 -0
  476. package/plugin/node_modules/katex/contrib/auto-render/test/auto-render-spec.ts +371 -0
  477. package/plugin/node_modules/katex/contrib/copy-tex/README.md +39 -0
  478. package/plugin/node_modules/katex/contrib/copy-tex/copy-tex.ts +49 -0
  479. package/plugin/node_modules/katex/contrib/copy-tex/index.html +38 -0
  480. package/plugin/node_modules/katex/contrib/copy-tex/katex2tex.ts +60 -0
  481. package/plugin/node_modules/katex/contrib/mathtex-script-type/README.md +38 -0
  482. package/plugin/node_modules/katex/contrib/mathtex-script-type/mathtex-script-type.js +23 -0
  483. package/plugin/node_modules/katex/contrib/mhchem/README.md +23 -0
  484. package/plugin/node_modules/katex/contrib/mhchem/mhchem.js +1695 -0
  485. package/plugin/node_modules/katex/contrib/render-a11y-string/render-a11y-string.ts +729 -0
  486. package/plugin/node_modules/katex/contrib/render-a11y-string/test/render-a11y-string-spec.ts +561 -0
  487. package/plugin/node_modules/katex/dist/README.md +125 -0
  488. package/plugin/node_modules/katex/dist/contrib/auto-render.js +305 -0
  489. package/plugin/node_modules/katex/dist/contrib/auto-render.min.js +1 -0
  490. package/plugin/node_modules/katex/dist/contrib/auto-render.mjs +210 -0
  491. package/plugin/node_modules/katex/dist/contrib/copy-tex.js +113 -0
  492. package/plugin/node_modules/katex/dist/contrib/copy-tex.min.js +1 -0
  493. package/plugin/node_modules/katex/dist/contrib/copy-tex.mjs +85 -0
  494. package/plugin/node_modules/katex/dist/contrib/mathtex-script-type.js +107 -0
  495. package/plugin/node_modules/katex/dist/contrib/mathtex-script-type.min.js +1 -0
  496. package/plugin/node_modules/katex/dist/contrib/mathtex-script-type.mjs +22 -0
  497. package/plugin/node_modules/katex/dist/contrib/mhchem.js +2965 -0
  498. package/plugin/node_modules/katex/dist/contrib/mhchem.min.js +1 -0
  499. package/plugin/node_modules/katex/dist/contrib/mhchem.mjs +2864 -0
  500. package/plugin/node_modules/katex/dist/contrib/render-a11y-string.js +827 -0
  501. package/plugin/node_modules/katex/dist/contrib/render-a11y-string.min.js +1 -0
  502. package/plugin/node_modules/katex/dist/contrib/render-a11y-string.mjs +723 -0
  503. package/plugin/node_modules/katex/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  504. package/plugin/node_modules/katex/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  505. package/plugin/node_modules/katex/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  506. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  507. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  508. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  509. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  510. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  511. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  512. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  513. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  514. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  515. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  516. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  517. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  518. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  519. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  520. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  521. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  522. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  523. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  524. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  525. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  526. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  527. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  528. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  529. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  530. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  531. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  532. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  533. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  534. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  535. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  536. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  537. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  538. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  539. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  540. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  541. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  542. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  543. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  544. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  545. package/plugin/node_modules/katex/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  546. package/plugin/node_modules/katex/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  547. package/plugin/node_modules/katex/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  548. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  549. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  550. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  551. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  552. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  553. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  554. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  555. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  556. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  557. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  558. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  559. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  560. package/plugin/node_modules/katex/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  561. package/plugin/node_modules/katex/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  562. package/plugin/node_modules/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  563. package/plugin/node_modules/katex/dist/katex-swap.css +1241 -0
  564. package/plugin/node_modules/katex/dist/katex-swap.min.css +1 -0
  565. package/plugin/node_modules/katex/dist/katex.css +1241 -0
  566. package/plugin/node_modules/katex/dist/katex.js +18010 -0
  567. package/plugin/node_modules/katex/dist/katex.min.css +1 -0
  568. package/plugin/node_modules/katex/dist/katex.min.js +1 -0
  569. package/plugin/node_modules/katex/dist/katex.mjs +16670 -0
  570. package/plugin/node_modules/katex/katex.ts +250 -0
  571. package/plugin/node_modules/katex/package.json +198 -0
  572. package/plugin/node_modules/katex/src/Lexer.ts +121 -0
  573. package/plugin/node_modules/katex/src/MacroExpander.ts +467 -0
  574. package/plugin/node_modules/katex/src/Namespace.ts +127 -0
  575. package/plugin/node_modules/katex/src/Options.ts +315 -0
  576. package/plugin/node_modules/katex/src/ParseError.ts +76 -0
  577. package/plugin/node_modules/katex/src/Parser.ts +1053 -0
  578. package/plugin/node_modules/katex/src/Settings.ts +477 -0
  579. package/plugin/node_modules/katex/src/SourceLocation.ts +41 -0
  580. package/plugin/node_modules/katex/src/Style.ts +129 -0
  581. package/plugin/node_modules/katex/src/Token.ts +49 -0
  582. package/plugin/node_modules/katex/src/atoms.ts +33 -0
  583. package/plugin/node_modules/katex/src/buildCommon.ts +783 -0
  584. package/plugin/node_modules/katex/src/buildHTML.ts +412 -0
  585. package/plugin/node_modules/katex/src/buildMathML.ts +332 -0
  586. package/plugin/node_modules/katex/src/buildTree.ts +66 -0
  587. package/plugin/node_modules/katex/src/defineEnvironment.ts +116 -0
  588. package/plugin/node_modules/katex/src/defineFunction.ts +228 -0
  589. package/plugin/node_modules/katex/src/defineMacro.ts +124 -0
  590. package/plugin/node_modules/katex/src/delimiter.ts +832 -0
  591. package/plugin/node_modules/katex/src/domTree.ts +641 -0
  592. package/plugin/node_modules/katex/src/environments/array.ts +1136 -0
  593. package/plugin/node_modules/katex/src/environments/cd.ts +318 -0
  594. package/plugin/node_modules/katex/src/environments.ts +8 -0
  595. package/plugin/node_modules/katex/src/fontMetrics.ts +267 -0
  596. package/plugin/node_modules/katex/src/fontMetricsData.d.ts +8 -0
  597. package/plugin/node_modules/katex/src/fontMetricsData.js +2077 -0
  598. package/plugin/node_modules/katex/src/fonts/Makefile +139 -0
  599. package/plugin/node_modules/katex/src/fonts/default.cfg +20 -0
  600. package/plugin/node_modules/katex/src/fonts/generate_fonts.py +58 -0
  601. package/plugin/node_modules/katex/src/fonts/lib/Extra.otf +0 -0
  602. package/plugin/node_modules/katex/src/fonts/lib/Space.ttx +234 -0
  603. package/plugin/node_modules/katex/src/fonts/makeBlacker +49 -0
  604. package/plugin/node_modules/katex/src/fonts/makeFF +2005 -0
  605. package/plugin/node_modules/katex/src/fonts/xbbold.mf +182 -0
  606. package/plugin/node_modules/katex/src/functions/accent.ts +285 -0
  607. package/plugin/node_modules/katex/src/functions/accentunder.ts +59 -0
  608. package/plugin/node_modules/katex/src/functions/arrow.ts +141 -0
  609. package/plugin/node_modules/katex/src/functions/char.ts +44 -0
  610. package/plugin/node_modules/katex/src/functions/color.ts +87 -0
  611. package/plugin/node_modules/katex/src/functions/cr.ts +60 -0
  612. package/plugin/node_modules/katex/src/functions/def.ts +212 -0
  613. package/plugin/node_modules/katex/src/functions/delimsizing.ts +366 -0
  614. package/plugin/node_modules/katex/src/functions/enclose.ts +345 -0
  615. package/plugin/node_modules/katex/src/functions/environment.ts +66 -0
  616. package/plugin/node_modules/katex/src/functions/font.ts +124 -0
  617. package/plugin/node_modules/katex/src/functions/genfrac.ts +470 -0
  618. package/plugin/node_modules/katex/src/functions/hbox.ts +38 -0
  619. package/plugin/node_modules/katex/src/functions/horizBrace.ts +134 -0
  620. package/plugin/node_modules/katex/src/functions/href.ts +93 -0
  621. package/plugin/node_modules/katex/src/functions/html.ts +105 -0
  622. package/plugin/node_modules/katex/src/functions/htmlmathml.ts +34 -0
  623. package/plugin/node_modules/katex/src/functions/includegraphics.ts +150 -0
  624. package/plugin/node_modules/katex/src/functions/kern.ts +55 -0
  625. package/plugin/node_modules/katex/src/functions/lap.ts +73 -0
  626. package/plugin/node_modules/katex/src/functions/math.ts +42 -0
  627. package/plugin/node_modules/katex/src/functions/mathchoice.ts +51 -0
  628. package/plugin/node_modules/katex/src/functions/mclass.ts +165 -0
  629. package/plugin/node_modules/katex/src/functions/op.ts +337 -0
  630. package/plugin/node_modules/katex/src/functions/operatorname.ts +161 -0
  631. package/plugin/node_modules/katex/src/functions/ordgroup.ts +20 -0
  632. package/plugin/node_modules/katex/src/functions/overline.ts +58 -0
  633. package/plugin/node_modules/katex/src/functions/phantom.ts +73 -0
  634. package/plugin/node_modules/katex/src/functions/pmb.ts +43 -0
  635. package/plugin/node_modules/katex/src/functions/raisebox.ts +45 -0
  636. package/plugin/node_modules/katex/src/functions/relax.ts +17 -0
  637. package/plugin/node_modules/katex/src/functions/rule.ts +76 -0
  638. package/plugin/node_modules/katex/src/functions/sizing.ts +90 -0
  639. package/plugin/node_modules/katex/src/functions/smash.ts +115 -0
  640. package/plugin/node_modules/katex/src/functions/sqrt.ts +124 -0
  641. package/plugin/node_modules/katex/src/functions/styling.ts +85 -0
  642. package/plugin/node_modules/katex/src/functions/supsub.ts +268 -0
  643. package/plugin/node_modules/katex/src/functions/symbolsOp.ts +32 -0
  644. package/plugin/node_modules/katex/src/functions/symbolsOrd.ts +61 -0
  645. package/plugin/node_modules/katex/src/functions/symbolsSpacing.ts +72 -0
  646. package/plugin/node_modules/katex/src/functions/tag.ts +38 -0
  647. package/plugin/node_modules/katex/src/functions/text.ts +81 -0
  648. package/plugin/node_modules/katex/src/functions/underline.ts +57 -0
  649. package/plugin/node_modules/katex/src/functions/utils/assembleSupSub.ts +119 -0
  650. package/plugin/node_modules/katex/src/functions/vcenter.ts +44 -0
  651. package/plugin/node_modules/katex/src/functions/verb.ts +57 -0
  652. package/plugin/node_modules/katex/src/functions.ts +54 -0
  653. package/plugin/node_modules/katex/src/macros.ts +1032 -0
  654. package/plugin/node_modules/katex/src/mathMLTree.ts +259 -0
  655. package/plugin/node_modules/katex/src/metrics/README.md +23 -0
  656. package/plugin/node_modules/katex/src/metrics/extract_tfms.py +114 -0
  657. package/plugin/node_modules/katex/src/metrics/extract_ttfs.py +122 -0
  658. package/plugin/node_modules/katex/src/metrics/format_json.py +28 -0
  659. package/plugin/node_modules/katex/src/metrics/mapping.pl +1224 -0
  660. package/plugin/node_modules/katex/src/metrics/parse_tfm.py +211 -0
  661. package/plugin/node_modules/katex/src/parseNode.ts +518 -0
  662. package/plugin/node_modules/katex/src/parseTree.ts +51 -0
  663. package/plugin/node_modules/katex/src/spacingData.ts +107 -0
  664. package/plugin/node_modules/katex/src/stretchy.ts +358 -0
  665. package/plugin/node_modules/katex/src/styles/fonts.scss +75 -0
  666. package/plugin/node_modules/katex/src/styles/katex-swap.scss +4 -0
  667. package/plugin/node_modules/katex/src/styles/katex.scss +683 -0
  668. package/plugin/node_modules/katex/src/svgGeometry.ts +561 -0
  669. package/plugin/node_modules/katex/src/symbols.ts +879 -0
  670. package/plugin/node_modules/katex/src/tree.ts +79 -0
  671. package/plugin/node_modules/katex/src/types/fonts.ts +73 -0
  672. package/plugin/node_modules/katex/src/types/index.ts +29 -0
  673. package/plugin/node_modules/katex/src/unicodeAccents.js +21 -0
  674. package/plugin/node_modules/katex/src/unicodeScripts.ts +124 -0
  675. package/plugin/node_modules/katex/src/unicodeSupOrSub.ts +108 -0
  676. package/plugin/node_modules/katex/src/unicodeSymbols.js +33 -0
  677. package/plugin/node_modules/katex/src/units.ts +104 -0
  678. package/plugin/node_modules/katex/src/utils.ts +89 -0
  679. package/plugin/node_modules/katex/src/wide-character.ts +155 -0
  680. package/plugin/node_modules/katex/types/katex.d.ts +259 -0
  681. package/plugin/node_modules/linkify-it/LICENSE +22 -0
  682. package/plugin/node_modules/linkify-it/README.md +196 -0
  683. package/plugin/node_modules/linkify-it/build/index.cjs.js +832 -0
  684. package/plugin/node_modules/linkify-it/index.mjs +642 -0
  685. package/plugin/node_modules/linkify-it/lib/re.mjs +189 -0
  686. package/plugin/node_modules/linkify-it/package.json +58 -0
  687. package/plugin/node_modules/markdown-it/LICENSE +22 -0
  688. package/plugin/node_modules/markdown-it/README.md +324 -0
  689. package/plugin/node_modules/markdown-it/bin/markdown-it.mjs +107 -0
  690. package/plugin/node_modules/markdown-it/dist/index.cjs.js +5547 -0
  691. package/plugin/node_modules/markdown-it/dist/markdown-it.js +6969 -0
  692. package/plugin/node_modules/markdown-it/dist/markdown-it.min.js +2 -0
  693. package/plugin/node_modules/markdown-it/index.mjs +1 -0
  694. package/plugin/node_modules/markdown-it/lib/common/html_blocks.mjs +67 -0
  695. package/plugin/node_modules/markdown-it/lib/common/html_re.mjs +25 -0
  696. package/plugin/node_modules/markdown-it/lib/common/utils.mjs +304 -0
  697. package/plugin/node_modules/markdown-it/lib/helpers/index.mjs +11 -0
  698. package/plugin/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +77 -0
  699. package/plugin/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +49 -0
  700. package/plugin/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +66 -0
  701. package/plugin/node_modules/markdown-it/lib/index.mjs +565 -0
  702. package/plugin/node_modules/markdown-it/lib/parser_block.mjs +134 -0
  703. package/plugin/node_modules/markdown-it/lib/parser_core.mjs +62 -0
  704. package/plugin/node_modules/markdown-it/lib/parser_inline.mjs +197 -0
  705. package/plugin/node_modules/markdown-it/lib/presets/commonmark.mjs +88 -0
  706. package/plugin/node_modules/markdown-it/lib/presets/default.mjs +47 -0
  707. package/plugin/node_modules/markdown-it/lib/presets/zero.mjs +70 -0
  708. package/plugin/node_modules/markdown-it/lib/renderer.mjs +322 -0
  709. package/plugin/node_modules/markdown-it/lib/ruler.mjs +340 -0
  710. package/plugin/node_modules/markdown-it/lib/rules_block/blockquote.mjs +209 -0
  711. package/plugin/node_modules/markdown-it/lib/rules_block/code.mjs +30 -0
  712. package/plugin/node_modules/markdown-it/lib/rules_block/fence.mjs +94 -0
  713. package/plugin/node_modules/markdown-it/lib/rules_block/heading.mjs +51 -0
  714. package/plugin/node_modules/markdown-it/lib/rules_block/hr.mjs +40 -0
  715. package/plugin/node_modules/markdown-it/lib/rules_block/html_block.mjs +69 -0
  716. package/plugin/node_modules/markdown-it/lib/rules_block/lheading.mjs +82 -0
  717. package/plugin/node_modules/markdown-it/lib/rules_block/list.mjs +331 -0
  718. package/plugin/node_modules/markdown-it/lib/rules_block/paragraph.mjs +46 -0
  719. package/plugin/node_modules/markdown-it/lib/rules_block/reference.mjs +212 -0
  720. package/plugin/node_modules/markdown-it/lib/rules_block/state_block.mjs +220 -0
  721. package/plugin/node_modules/markdown-it/lib/rules_block/table.mjs +228 -0
  722. package/plugin/node_modules/markdown-it/lib/rules_core/block.mjs +13 -0
  723. package/plugin/node_modules/markdown-it/lib/rules_core/inline.mjs +11 -0
  724. package/plugin/node_modules/markdown-it/lib/rules_core/linkify.mjs +134 -0
  725. package/plugin/node_modules/markdown-it/lib/rules_core/normalize.mjs +17 -0
  726. package/plugin/node_modules/markdown-it/lib/rules_core/replacements.mjs +101 -0
  727. package/plugin/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +193 -0
  728. package/plugin/node_modules/markdown-it/lib/rules_core/state_core.mjs +17 -0
  729. package/plugin/node_modules/markdown-it/lib/rules_core/text_join.mjs +43 -0
  730. package/plugin/node_modules/markdown-it/lib/rules_inline/autolink.mjs +72 -0
  731. package/plugin/node_modules/markdown-it/lib/rules_inline/backticks.mjs +60 -0
  732. package/plugin/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +124 -0
  733. package/plugin/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +123 -0
  734. package/plugin/node_modules/markdown-it/lib/rules_inline/entity.mjs +51 -0
  735. package/plugin/node_modules/markdown-it/lib/rules_inline/escape.mjs +69 -0
  736. package/plugin/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +38 -0
  737. package/plugin/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +50 -0
  738. package/plugin/node_modules/markdown-it/lib/rules_inline/image.mjs +138 -0
  739. package/plugin/node_modules/markdown-it/lib/rules_inline/link.mjs +139 -0
  740. package/plugin/node_modules/markdown-it/lib/rules_inline/linkify.mjs +63 -0
  741. package/plugin/node_modules/markdown-it/lib/rules_inline/newline.mjs +42 -0
  742. package/plugin/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +123 -0
  743. package/plugin/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +127 -0
  744. package/plugin/node_modules/markdown-it/lib/rules_inline/text.mjs +86 -0
  745. package/plugin/node_modules/markdown-it/lib/token.mjs +191 -0
  746. package/plugin/node_modules/markdown-it/package.json +92 -0
  747. package/plugin/node_modules/markdownlint/CHANGELOG.md +520 -0
  748. package/plugin/node_modules/markdownlint/CONTRIBUTING.md +92 -0
  749. package/plugin/node_modules/markdownlint/LICENSE +21 -0
  750. package/plugin/node_modules/markdownlint/README.md +1124 -0
  751. package/plugin/node_modules/markdownlint/doc/CustomRules.md +194 -0
  752. package/plugin/node_modules/markdownlint/doc/Prettier.md +27 -0
  753. package/plugin/node_modules/markdownlint/doc/ReleaseProcess.md +20 -0
  754. package/plugin/node_modules/markdownlint/doc/Rules.md +2814 -0
  755. package/plugin/node_modules/markdownlint/doc/md001.md +51 -0
  756. package/plugin/node_modules/markdownlint/doc/md003.md +59 -0
  757. package/plugin/node_modules/markdownlint/doc/md004.md +50 -0
  758. package/plugin/node_modules/markdownlint/doc/md005.md +53 -0
  759. package/plugin/node_modules/markdownlint/doc/md007.md +52 -0
  760. package/plugin/node_modules/markdownlint/doc/md009.md +50 -0
  761. package/plugin/node_modules/markdownlint/doc/md010.md +62 -0
  762. package/plugin/node_modules/markdownlint/doc/md011.md +30 -0
  763. package/plugin/node_modules/markdownlint/doc/md012.md +38 -0
  764. package/plugin/node_modules/markdownlint/doc/md013.md +58 -0
  765. package/plugin/node_modules/markdownlint/doc/md014.md +54 -0
  766. package/plugin/node_modules/markdownlint/doc/md018.md +27 -0
  767. package/plugin/node_modules/markdownlint/doc/md019.md +28 -0
  768. package/plugin/node_modules/markdownlint/doc/md020.md +29 -0
  769. package/plugin/node_modules/markdownlint/doc/md021.md +31 -0
  770. package/plugin/node_modules/markdownlint/doc/md022.md +52 -0
  771. package/plugin/node_modules/markdownlint/doc/md023.md +33 -0
  772. package/plugin/node_modules/markdownlint/doc/md024.md +44 -0
  773. package/plugin/node_modules/markdownlint/doc/md025.md +49 -0
  774. package/plugin/node_modules/markdownlint/doc/md026.md +40 -0
  775. package/plugin/node_modules/markdownlint/doc/md027.md +32 -0
  776. package/plugin/node_modules/markdownlint/doc/md028.md +40 -0
  777. package/plugin/node_modules/markdownlint/doc/md029.md +100 -0
  778. package/plugin/node_modules/markdownlint/doc/md030.md +82 -0
  779. package/plugin/node_modules/markdownlint/doc/md031.md +50 -0
  780. package/plugin/node_modules/markdownlint/doc/md032.md +55 -0
  781. package/plugin/node_modules/markdownlint/doc/md033.md +33 -0
  782. package/plugin/node_modules/markdownlint/doc/md034.md +55 -0
  783. package/plugin/node_modules/markdownlint/doc/md035.md +37 -0
  784. package/plugin/node_modules/markdownlint/doc/md036.md +45 -0
  785. package/plugin/node_modules/markdownlint/doc/md037.md +37 -0
  786. package/plugin/node_modules/markdownlint/doc/md038.md +52 -0
  787. package/plugin/node_modules/markdownlint/doc/md039.md +21 -0
  788. package/plugin/node_modules/markdownlint/doc/md040.md +52 -0
  789. package/plugin/node_modules/markdownlint/doc/md041.md +64 -0
  790. package/plugin/node_modules/markdownlint/doc/md042.md +32 -0
  791. package/plugin/node_modules/markdownlint/doc/md043.md +87 -0
  792. package/plugin/node_modules/markdownlint/doc/md044.md +45 -0
  793. package/plugin/node_modules/markdownlint/doc/md045.md +48 -0
  794. package/plugin/node_modules/markdownlint/doc/md046.md +40 -0
  795. package/plugin/node_modules/markdownlint/doc/md047.md +34 -0
  796. package/plugin/node_modules/markdownlint/doc/md048.md +42 -0
  797. package/plugin/node_modules/markdownlint/doc/md049.md +36 -0
  798. package/plugin/node_modules/markdownlint/doc/md050.md +35 -0
  799. package/plugin/node_modules/markdownlint/doc/md051.md +117 -0
  800. package/plugin/node_modules/markdownlint/doc/md052.md +52 -0
  801. package/plugin/node_modules/markdownlint/doc/md053.md +38 -0
  802. package/plugin/node_modules/markdownlint/doc/md054.md +100 -0
  803. package/plugin/node_modules/markdownlint/doc/md055.md +55 -0
  804. package/plugin/node_modules/markdownlint/doc/md056.md +37 -0
  805. package/plugin/node_modules/markdownlint/doc/md058.md +48 -0
  806. package/plugin/node_modules/markdownlint/doc/md059.md +33 -0
  807. package/plugin/node_modules/markdownlint/doc/md060.md +118 -0
  808. package/plugin/node_modules/markdownlint/helpers/LICENSE +21 -0
  809. package/plugin/node_modules/markdownlint/helpers/README.md +29 -0
  810. package/plugin/node_modules/markdownlint/helpers/helpers.cjs +696 -0
  811. package/plugin/node_modules/markdownlint/helpers/micromark-helpers.cjs +331 -0
  812. package/plugin/node_modules/markdownlint/helpers/package.json +26 -0
  813. package/plugin/node_modules/markdownlint/helpers/shared.cjs +16 -0
  814. package/plugin/node_modules/markdownlint/lib/cache.mjs +80 -0
  815. package/plugin/node_modules/markdownlint/lib/configuration-strict.d.ts +2409 -0
  816. package/plugin/node_modules/markdownlint/lib/configuration.d.ts +8 -0
  817. package/plugin/node_modules/markdownlint/lib/constants.mjs +14 -0
  818. package/plugin/node_modules/markdownlint/lib/defer-require.cjs +18 -0
  819. package/plugin/node_modules/markdownlint/lib/exports-async.d.mts +1 -0
  820. package/plugin/node_modules/markdownlint/lib/exports-async.mjs +3 -0
  821. package/plugin/node_modules/markdownlint/lib/exports-promise.d.mts +1 -0
  822. package/plugin/node_modules/markdownlint/lib/exports-promise.mjs +3 -0
  823. package/plugin/node_modules/markdownlint/lib/exports-sync.d.mts +1 -0
  824. package/plugin/node_modules/markdownlint/lib/exports-sync.mjs +3 -0
  825. package/plugin/node_modules/markdownlint/lib/exports.d.mts +29 -0
  826. package/plugin/node_modules/markdownlint/lib/exports.mjs +32 -0
  827. package/plugin/node_modules/markdownlint/lib/markdownit.cjs +170 -0
  828. package/plugin/node_modules/markdownlint/lib/markdownlint.d.mts +600 -0
  829. package/plugin/node_modules/markdownlint/lib/markdownlint.mjs +1660 -0
  830. package/plugin/node_modules/markdownlint/lib/md001.mjs +32 -0
  831. package/plugin/node_modules/markdownlint/lib/md003.mjs +47 -0
  832. package/plugin/node_modules/markdownlint/lib/md004.mjs +72 -0
  833. package/plugin/node_modules/markdownlint/lib/md005.mjs +69 -0
  834. package/plugin/node_modules/markdownlint/lib/md007.mjs +84 -0
  835. package/plugin/node_modules/markdownlint/lib/md009.mjs +96 -0
  836. package/plugin/node_modules/markdownlint/lib/md010.mjs +78 -0
  837. package/plugin/node_modules/markdownlint/lib/md011.mjs +56 -0
  838. package/plugin/node_modules/markdownlint/lib/md012.mjs +40 -0
  839. package/plugin/node_modules/markdownlint/lib/md013.mjs +91 -0
  840. package/plugin/node_modules/markdownlint/lib/md014.mjs +47 -0
  841. package/plugin/node_modules/markdownlint/lib/md018.mjs +43 -0
  842. package/plugin/node_modules/markdownlint/lib/md019-md021.mjs +77 -0
  843. package/plugin/node_modules/markdownlint/lib/md020.mjs +68 -0
  844. package/plugin/node_modules/markdownlint/lib/md022.mjs +100 -0
  845. package/plugin/node_modules/markdownlint/lib/md023.mjs +37 -0
  846. package/plugin/node_modules/markdownlint/lib/md024.mjs +45 -0
  847. package/plugin/node_modules/markdownlint/lib/md025.mjs +45 -0
  848. package/plugin/node_modules/markdownlint/lib/md026.mjs +46 -0
  849. package/plugin/node_modules/markdownlint/lib/md027.mjs +50 -0
  850. package/plugin/node_modules/markdownlint/lib/md028.mjs +39 -0
  851. package/plugin/node_modules/markdownlint/lib/md029.mjs +84 -0
  852. package/plugin/node_modules/markdownlint/lib/md030.mjs +57 -0
  853. package/plugin/node_modules/markdownlint/lib/md031.mjs +61 -0
  854. package/plugin/node_modules/markdownlint/lib/md032.mjs +78 -0
  855. package/plugin/node_modules/markdownlint/lib/md033.mjs +46 -0
  856. package/plugin/node_modules/markdownlint/lib/md034.mjs +92 -0
  857. package/plugin/node_modules/markdownlint/lib/md035.mjs +23 -0
  858. package/plugin/node_modules/markdownlint/lib/md036.mjs +54 -0
  859. package/plugin/node_modules/markdownlint/lib/md037.mjs +94 -0
  860. package/plugin/node_modules/markdownlint/lib/md038.mjs +73 -0
  861. package/plugin/node_modules/markdownlint/lib/md039.mjs +59 -0
  862. package/plugin/node_modules/markdownlint/lib/md040.mjs +32 -0
  863. package/plugin/node_modules/markdownlint/lib/md041.mjs +71 -0
  864. package/plugin/node_modules/markdownlint/lib/md042.mjs +58 -0
  865. package/plugin/node_modules/markdownlint/lib/md043.mjs +72 -0
  866. package/plugin/node_modules/markdownlint/lib/md044.mjs +110 -0
  867. package/plugin/node_modules/markdownlint/lib/md045.mjs +61 -0
  868. package/plugin/node_modules/markdownlint/lib/md046.mjs +31 -0
  869. package/plugin/node_modules/markdownlint/lib/md047.mjs +28 -0
  870. package/plugin/node_modules/markdownlint/lib/md048.mjs +47 -0
  871. package/plugin/node_modules/markdownlint/lib/md049-md050.mjs +115 -0
  872. package/plugin/node_modules/markdownlint/lib/md051.mjs +172 -0
  873. package/plugin/node_modules/markdownlint/lib/md052.mjs +40 -0
  874. package/plugin/node_modules/markdownlint/lib/md053.mjs +60 -0
  875. package/plugin/node_modules/markdownlint/lib/md054.mjs +122 -0
  876. package/plugin/node_modules/markdownlint/lib/md055.mjs +72 -0
  877. package/plugin/node_modules/markdownlint/lib/md056.mjs +50 -0
  878. package/plugin/node_modules/markdownlint/lib/md058.mjs +57 -0
  879. package/plugin/node_modules/markdownlint/lib/md059.mjs +71 -0
  880. package/plugin/node_modules/markdownlint/lib/md060.mjs +170 -0
  881. package/plugin/node_modules/markdownlint/lib/micromark-parse.mjs +322 -0
  882. package/plugin/node_modules/markdownlint/lib/micromark-types.d.mts +11 -0
  883. package/plugin/node_modules/markdownlint/lib/node-imports-browser.mjs +22 -0
  884. package/plugin/node_modules/markdownlint/lib/node-imports-node.mjs +11 -0
  885. package/plugin/node_modules/markdownlint/lib/parse-configuration.mjs +47 -0
  886. package/plugin/node_modules/markdownlint/lib/resolve-module.cjs +52 -0
  887. package/plugin/node_modules/markdownlint/lib/resolve-module.d.cts +34 -0
  888. package/plugin/node_modules/markdownlint/lib/rules.mjs +122 -0
  889. package/plugin/node_modules/markdownlint/lib/types.d.mts +13 -0
  890. package/plugin/node_modules/markdownlint/package.json +123 -0
  891. package/plugin/node_modules/markdownlint/schema/.markdownlint.jsonc +347 -0
  892. package/plugin/node_modules/markdownlint/schema/.markdownlint.yaml +308 -0
  893. package/plugin/node_modules/markdownlint/schema/ValidatingConfiguration.md +26 -0
  894. package/plugin/node_modules/markdownlint/schema/markdownlint-config-schema-strict.json +5128 -0
  895. package/plugin/node_modules/markdownlint/schema/markdownlint-config-schema.json +5133 -0
  896. package/plugin/node_modules/markdownlint/style/all.json +5 -0
  897. package/plugin/node_modules/markdownlint/style/cirosantilli.json +22 -0
  898. package/plugin/node_modules/markdownlint/style/prettier.json +27 -0
  899. package/plugin/node_modules/markdownlint/style/relaxed.json +12 -0
  900. package/plugin/node_modules/markdownlint-cli2/CHANGELOG.md +258 -0
  901. package/plugin/node_modules/markdownlint-cli2/LICENSE +21 -0
  902. package/plugin/node_modules/markdownlint-cli2/README.md +578 -0
  903. package/plugin/node_modules/markdownlint-cli2/append-to-array.mjs +24 -0
  904. package/plugin/node_modules/markdownlint-cli2/constants.mjs +30 -0
  905. package/plugin/node_modules/markdownlint-cli2/export-markdownlint-helpers.mjs +3 -0
  906. package/plugin/node_modules/markdownlint-cli2/export-markdownlint-promise.mjs +3 -0
  907. package/plugin/node_modules/markdownlint-cli2/export-markdownlint.mjs +3 -0
  908. package/plugin/node_modules/markdownlint-cli2/markdownlint-cli2-bin.mjs +18 -0
  909. package/plugin/node_modules/markdownlint-cli2/markdownlint-cli2.mjs +1165 -0
  910. package/plugin/node_modules/markdownlint-cli2/merge-options.mjs +27 -0
  911. package/plugin/node_modules/markdownlint-cli2/package.json +124 -0
  912. package/plugin/node_modules/markdownlint-cli2/parsers/jsonc-parse.mjs +22 -0
  913. package/plugin/node_modules/markdownlint-cli2/parsers/parsers.mjs +17 -0
  914. package/plugin/node_modules/markdownlint-cli2/parsers/toml-parse.mjs +11 -0
  915. package/plugin/node_modules/markdownlint-cli2/parsers/yaml-parse.mjs +16 -0
  916. package/plugin/node_modules/markdownlint-cli2/schema/ValidatingConfiguration.md +24 -0
  917. package/plugin/node_modules/markdownlint-cli2/schema/markdownlint-cli2-config-schema.json +138 -0
  918. package/plugin/node_modules/markdownlint-cli2/schema/markdownlint-config-schema.json +5133 -0
  919. package/plugin/node_modules/markdownlint-cli2-formatter-default/LICENSE +21 -0
  920. package/plugin/node_modules/markdownlint-cli2-formatter-default/README.md +54 -0
  921. package/plugin/node_modules/markdownlint-cli2-formatter-default/markdownlint-cli2-formatter-default.js +25 -0
  922. package/plugin/node_modules/markdownlint-cli2-formatter-default/package.json +27 -0
  923. package/plugin/node_modules/mdurl/LICENSE +45 -0
  924. package/plugin/node_modules/mdurl/README.md +102 -0
  925. package/plugin/node_modules/mdurl/build/index.cjs.js +534 -0
  926. package/plugin/node_modules/mdurl/index.mjs +11 -0
  927. package/plugin/node_modules/mdurl/lib/decode.mjs +112 -0
  928. package/plugin/node_modules/mdurl/lib/encode.mjs +89 -0
  929. package/plugin/node_modules/mdurl/lib/format.mjs +21 -0
  930. package/plugin/node_modules/mdurl/lib/parse.mjs +308 -0
  931. package/plugin/node_modules/mdurl/package.json +37 -0
  932. package/plugin/node_modules/merge2/LICENSE +21 -0
  933. package/plugin/node_modules/merge2/README.md +144 -0
  934. package/plugin/node_modules/merge2/index.js +144 -0
  935. package/plugin/node_modules/merge2/package.json +43 -0
  936. package/plugin/node_modules/micromark/dev/index.d.ts +82 -0
  937. package/plugin/node_modules/micromark/dev/index.d.ts.map +1 -0
  938. package/plugin/node_modules/micromark/dev/index.js +68 -0
  939. package/plugin/node_modules/micromark/dev/lib/compile.d.ts +16 -0
  940. package/plugin/node_modules/micromark/dev/lib/compile.d.ts.map +1 -0
  941. package/plugin/node_modules/micromark/dev/lib/compile.js +1152 -0
  942. package/plugin/node_modules/micromark/dev/lib/constructs.d.ts +73 -0
  943. package/plugin/node_modules/micromark/dev/lib/constructs.d.ts.map +1 -0
  944. package/plugin/node_modules/micromark/dev/lib/constructs.js +101 -0
  945. package/plugin/node_modules/micromark/dev/lib/create-tokenizer.d.ts +46 -0
  946. package/plugin/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -0
  947. package/plugin/node_modules/micromark/dev/lib/create-tokenizer.js +717 -0
  948. package/plugin/node_modules/micromark/dev/lib/initialize/content.d.ts +4 -0
  949. package/plugin/node_modules/micromark/dev/lib/initialize/content.d.ts.map +1 -0
  950. package/plugin/node_modules/micromark/dev/lib/initialize/content.js +99 -0
  951. package/plugin/node_modules/micromark/dev/lib/initialize/document.d.ts +10 -0
  952. package/plugin/node_modules/micromark/dev/lib/initialize/document.d.ts.map +1 -0
  953. package/plugin/node_modules/micromark/dev/lib/initialize/document.js +445 -0
  954. package/plugin/node_modules/micromark/dev/lib/initialize/flow.d.ts +4 -0
  955. package/plugin/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +1 -0
  956. package/plugin/node_modules/micromark/dev/lib/initialize/flow.js +86 -0
  957. package/plugin/node_modules/micromark/dev/lib/initialize/text.d.ts +8 -0
  958. package/plugin/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -0
  959. package/plugin/node_modules/micromark/dev/lib/initialize/text.js +244 -0
  960. package/plugin/node_modules/micromark/dev/lib/parse.d.ts +10 -0
  961. package/plugin/node_modules/micromark/dev/lib/parse.d.ts.map +1 -0
  962. package/plugin/node_modules/micromark/dev/lib/parse.js +58 -0
  963. package/plugin/node_modules/micromark/dev/lib/postprocess.d.ts +9 -0
  964. package/plugin/node_modules/micromark/dev/lib/postprocess.d.ts.map +1 -0
  965. package/plugin/node_modules/micromark/dev/lib/postprocess.js +19 -0
  966. package/plugin/node_modules/micromark/dev/lib/preprocess.d.ts +13 -0
  967. package/plugin/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -0
  968. package/plugin/node_modules/micromark/dev/lib/preprocess.js +141 -0
  969. package/plugin/node_modules/micromark/dev/stream.d.ts +35 -0
  970. package/plugin/node_modules/micromark/dev/stream.d.ts.map +1 -0
  971. package/plugin/node_modules/micromark/dev/stream.js +270 -0
  972. package/plugin/node_modules/micromark/index.d.ts +82 -0
  973. package/plugin/node_modules/micromark/index.d.ts.map +1 -0
  974. package/plugin/node_modules/micromark/index.js +60 -0
  975. package/plugin/node_modules/micromark/lib/compile.d.ts +16 -0
  976. package/plugin/node_modules/micromark/lib/compile.d.ts.map +1 -0
  977. package/plugin/node_modules/micromark/lib/compile.js +1060 -0
  978. package/plugin/node_modules/micromark/lib/constructs.d.ts +73 -0
  979. package/plugin/node_modules/micromark/lib/constructs.d.ts.map +1 -0
  980. package/plugin/node_modules/micromark/lib/constructs.js +85 -0
  981. package/plugin/node_modules/micromark/lib/create-tokenizer.d.ts +46 -0
  982. package/plugin/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -0
  983. package/plugin/node_modules/micromark/lib/create-tokenizer.js +611 -0
  984. package/plugin/node_modules/micromark/lib/initialize/content.d.ts +4 -0
  985. package/plugin/node_modules/micromark/lib/initialize/content.d.ts.map +1 -0
  986. package/plugin/node_modules/micromark/lib/initialize/content.js +79 -0
  987. package/plugin/node_modules/micromark/lib/initialize/document.d.ts +10 -0
  988. package/plugin/node_modules/micromark/lib/initialize/document.d.ts.map +1 -0
  989. package/plugin/node_modules/micromark/lib/initialize/document.js +362 -0
  990. package/plugin/node_modules/micromark/lib/initialize/flow.d.ts +4 -0
  991. package/plugin/node_modules/micromark/lib/initialize/flow.d.ts.map +1 -0
  992. package/plugin/node_modules/micromark/lib/initialize/flow.js +58 -0
  993. package/plugin/node_modules/micromark/lib/initialize/text.d.ts +8 -0
  994. package/plugin/node_modules/micromark/lib/initialize/text.d.ts.map +1 -0
  995. package/plugin/node_modules/micromark/lib/initialize/text.js +212 -0
  996. package/plugin/node_modules/micromark/lib/parse.d.ts +10 -0
  997. package/plugin/node_modules/micromark/lib/parse.d.ts.map +1 -0
  998. package/plugin/node_modules/micromark/lib/parse.js +56 -0
  999. package/plugin/node_modules/micromark/lib/postprocess.d.ts +9 -0
  1000. package/plugin/node_modules/micromark/lib/postprocess.d.ts.map +1 -0
  1001. package/plugin/node_modules/micromark/lib/postprocess.js +18 -0
  1002. package/plugin/node_modules/micromark/lib/preprocess.d.ts +13 -0
  1003. package/plugin/node_modules/micromark/lib/preprocess.d.ts.map +1 -0
  1004. package/plugin/node_modules/micromark/lib/preprocess.js +115 -0
  1005. package/plugin/node_modules/micromark/license +22 -0
  1006. package/plugin/node_modules/micromark/package.json +100 -0
  1007. package/plugin/node_modules/micromark/readme.md +488 -0
  1008. package/plugin/node_modules/micromark/stream.d.ts +35 -0
  1009. package/plugin/node_modules/micromark/stream.d.ts.map +1 -0
  1010. package/plugin/node_modules/micromark/stream.js +256 -0
  1011. package/plugin/node_modules/micromark-core-commonmark/dev/index.d.ts +23 -0
  1012. package/plugin/node_modules/micromark-core-commonmark/dev/index.d.ts.map +1 -0
  1013. package/plugin/node_modules/micromark-core-commonmark/dev/index.js +22 -0
  1014. package/plugin/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +4 -0
  1015. package/plugin/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +1 -0
  1016. package/plugin/node_modules/micromark-core-commonmark/dev/lib/attention.js +300 -0
  1017. package/plugin/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +4 -0
  1018. package/plugin/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +1 -0
  1019. package/plugin/node_modules/micromark-core-commonmark/dev/lib/autolink.js +269 -0
  1020. package/plugin/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +4 -0
  1021. package/plugin/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +1 -0
  1022. package/plugin/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +62 -0
  1023. package/plugin/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +4 -0
  1024. package/plugin/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +1 -0
  1025. package/plugin/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +162 -0
  1026. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +4 -0
  1027. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +1 -0
  1028. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +69 -0
  1029. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +4 -0
  1030. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +1 -0
  1031. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +166 -0
  1032. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +4 -0
  1033. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -0
  1034. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +514 -0
  1035. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +4 -0
  1036. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +1 -0
  1037. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +202 -0
  1038. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +4 -0
  1039. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +1 -0
  1040. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-text.js +257 -0
  1041. package/plugin/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +7 -0
  1042. package/plugin/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +1 -0
  1043. package/plugin/node_modules/micromark-core-commonmark/dev/lib/content.js +185 -0
  1044. package/plugin/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +4 -0
  1045. package/plugin/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +1 -0
  1046. package/plugin/node_modules/micromark-core-commonmark/dev/lib/definition.js +295 -0
  1047. package/plugin/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +4 -0
  1048. package/plugin/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +1 -0
  1049. package/plugin/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +65 -0
  1050. package/plugin/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +4 -0
  1051. package/plugin/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +1 -0
  1052. package/plugin/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +233 -0
  1053. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +4 -0
  1054. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -0
  1055. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +989 -0
  1056. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +4 -0
  1057. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +1 -0
  1058. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-text.js +783 -0
  1059. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +4 -0
  1060. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +1 -0
  1061. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-end.js +656 -0
  1062. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +4 -0
  1063. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -0
  1064. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +110 -0
  1065. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +4 -0
  1066. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -0
  1067. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +62 -0
  1068. package/plugin/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +4 -0
  1069. package/plugin/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +1 -0
  1070. package/plugin/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +34 -0
  1071. package/plugin/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +4 -0
  1072. package/plugin/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +1 -0
  1073. package/plugin/node_modules/micromark-core-commonmark/dev/lib/list.js +306 -0
  1074. package/plugin/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +4 -0
  1075. package/plugin/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -0
  1076. package/plugin/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +210 -0
  1077. package/plugin/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +4 -0
  1078. package/plugin/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +1 -0
  1079. package/plugin/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +120 -0
  1080. package/plugin/node_modules/micromark-core-commonmark/index.d.ts +23 -0
  1081. package/plugin/node_modules/micromark-core-commonmark/index.d.ts.map +1 -0
  1082. package/plugin/node_modules/micromark-core-commonmark/index.js +22 -0
  1083. package/plugin/node_modules/micromark-core-commonmark/lib/attention.d.ts +4 -0
  1084. package/plugin/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +1 -0
  1085. package/plugin/node_modules/micromark-core-commonmark/lib/attention.js +241 -0
  1086. package/plugin/node_modules/micromark-core-commonmark/lib/autolink.d.ts +4 -0
  1087. package/plugin/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +1 -0
  1088. package/plugin/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
  1089. package/plugin/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +4 -0
  1090. package/plugin/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +1 -0
  1091. package/plugin/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
  1092. package/plugin/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +4 -0
  1093. package/plugin/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +1 -0
  1094. package/plugin/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
  1095. package/plugin/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +4 -0
  1096. package/plugin/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +1 -0
  1097. package/plugin/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
  1098. package/plugin/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +4 -0
  1099. package/plugin/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +1 -0
  1100. package/plugin/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
  1101. package/plugin/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +4 -0
  1102. package/plugin/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -0
  1103. package/plugin/node_modules/micromark-core-commonmark/lib/code-fenced.js +460 -0
  1104. package/plugin/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +4 -0
  1105. package/plugin/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +1 -0
  1106. package/plugin/node_modules/micromark-core-commonmark/lib/code-indented.js +177 -0
  1107. package/plugin/node_modules/micromark-core-commonmark/lib/code-text.d.ts +4 -0
  1108. package/plugin/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +1 -0
  1109. package/plugin/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
  1110. package/plugin/node_modules/micromark-core-commonmark/lib/content.d.ts +7 -0
  1111. package/plugin/node_modules/micromark-core-commonmark/lib/content.d.ts.map +1 -0
  1112. package/plugin/node_modules/micromark-core-commonmark/lib/content.js +163 -0
  1113. package/plugin/node_modules/micromark-core-commonmark/lib/definition.d.ts +4 -0
  1114. package/plugin/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +1 -0
  1115. package/plugin/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
  1116. package/plugin/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +4 -0
  1117. package/plugin/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +1 -0
  1118. package/plugin/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
  1119. package/plugin/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +4 -0
  1120. package/plugin/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +1 -0
  1121. package/plugin/node_modules/micromark-core-commonmark/lib/heading-atx.js +195 -0
  1122. package/plugin/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +4 -0
  1123. package/plugin/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -0
  1124. package/plugin/node_modules/micromark-core-commonmark/lib/html-flow.js +876 -0
  1125. package/plugin/node_modules/micromark-core-commonmark/lib/html-text.d.ts +4 -0
  1126. package/plugin/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +1 -0
  1127. package/plugin/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
  1128. package/plugin/node_modules/micromark-core-commonmark/lib/label-end.d.ts +4 -0
  1129. package/plugin/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +1 -0
  1130. package/plugin/node_modules/micromark-core-commonmark/lib/label-end.js +560 -0
  1131. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +4 -0
  1132. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -0
  1133. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-image.js +102 -0
  1134. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +4 -0
  1135. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -0
  1136. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-link.js +55 -0
  1137. package/plugin/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +4 -0
  1138. package/plugin/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +1 -0
  1139. package/plugin/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
  1140. package/plugin/node_modules/micromark-core-commonmark/lib/list.d.ts +4 -0
  1141. package/plugin/node_modules/micromark-core-commonmark/lib/list.d.ts.map +1 -0
  1142. package/plugin/node_modules/micromark-core-commonmark/lib/list.js +213 -0
  1143. package/plugin/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +4 -0
  1144. package/plugin/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -0
  1145. package/plugin/node_modules/micromark-core-commonmark/lib/setext-underline.js +185 -0
  1146. package/plugin/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +4 -0
  1147. package/plugin/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +1 -0
  1148. package/plugin/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
  1149. package/plugin/node_modules/micromark-core-commonmark/license +22 -0
  1150. package/plugin/node_modules/micromark-core-commonmark/package.json +74 -0
  1151. package/plugin/node_modules/micromark-core-commonmark/readme.md +171 -0
  1152. package/plugin/node_modules/micromark-extension-directive/dev/index.d.ts +156 -0
  1153. package/plugin/node_modules/micromark-extension-directive/dev/index.js +3 -0
  1154. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-container.d.ts +4 -0
  1155. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-container.d.ts.map +1 -0
  1156. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-container.js +323 -0
  1157. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-leaf.d.ts +4 -0
  1158. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-leaf.d.ts.map +1 -0
  1159. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-leaf.js +124 -0
  1160. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-text.d.ts +4 -0
  1161. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-text.d.ts.map +1 -0
  1162. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-text.js +113 -0
  1163. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-attributes.d.ts +23 -0
  1164. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-attributes.d.ts.map +1 -0
  1165. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-attributes.js +348 -0
  1166. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-label.d.ts +15 -0
  1167. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-label.d.ts.map +1 -0
  1168. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-label.js +135 -0
  1169. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-name.d.ts +14 -0
  1170. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-name.d.ts.map +1 -0
  1171. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-name.js +59 -0
  1172. package/plugin/node_modules/micromark-extension-directive/dev/lib/html.d.ts +14 -0
  1173. package/plugin/node_modules/micromark-extension-directive/dev/lib/html.d.ts.map +1 -0
  1174. package/plugin/node_modules/micromark-extension-directive/dev/lib/html.js +265 -0
  1175. package/plugin/node_modules/micromark-extension-directive/dev/lib/syntax.d.ts +10 -0
  1176. package/plugin/node_modules/micromark-extension-directive/dev/lib/syntax.d.ts.map +1 -0
  1177. package/plugin/node_modules/micromark-extension-directive/dev/lib/syntax.js +22 -0
  1178. package/plugin/node_modules/micromark-extension-directive/index.d.ts +156 -0
  1179. package/plugin/node_modules/micromark-extension-directive/index.js +3 -0
  1180. package/plugin/node_modules/micromark-extension-directive/lib/directive-container.d.ts +4 -0
  1181. package/plugin/node_modules/micromark-extension-directive/lib/directive-container.d.ts.map +1 -0
  1182. package/plugin/node_modules/micromark-extension-directive/lib/directive-container.js +259 -0
  1183. package/plugin/node_modules/micromark-extension-directive/lib/directive-leaf.d.ts +4 -0
  1184. package/plugin/node_modules/micromark-extension-directive/lib/directive-leaf.d.ts.map +1 -0
  1185. package/plugin/node_modules/micromark-extension-directive/lib/directive-leaf.js +91 -0
  1186. package/plugin/node_modules/micromark-extension-directive/lib/directive-text.d.ts +4 -0
  1187. package/plugin/node_modules/micromark-extension-directive/lib/directive-text.d.ts.map +1 -0
  1188. package/plugin/node_modules/micromark-extension-directive/lib/directive-text.js +82 -0
  1189. package/plugin/node_modules/micromark-extension-directive/lib/factory-attributes.d.ts +23 -0
  1190. package/plugin/node_modules/micromark-extension-directive/lib/factory-attributes.d.ts.map +1 -0
  1191. package/plugin/node_modules/micromark-extension-directive/lib/factory-attributes.js +238 -0
  1192. package/plugin/node_modules/micromark-extension-directive/lib/factory-label.d.ts +15 -0
  1193. package/plugin/node_modules/micromark-extension-directive/lib/factory-label.d.ts.map +1 -0
  1194. package/plugin/node_modules/micromark-extension-directive/lib/factory-label.js +107 -0
  1195. package/plugin/node_modules/micromark-extension-directive/lib/factory-name.d.ts +14 -0
  1196. package/plugin/node_modules/micromark-extension-directive/lib/factory-name.d.ts.map +1 -0
  1197. package/plugin/node_modules/micromark-extension-directive/lib/factory-name.js +36 -0
  1198. package/plugin/node_modules/micromark-extension-directive/lib/html.d.ts +14 -0
  1199. package/plugin/node_modules/micromark-extension-directive/lib/html.d.ts.map +1 -0
  1200. package/plugin/node_modules/micromark-extension-directive/lib/html.js +233 -0
  1201. package/plugin/node_modules/micromark-extension-directive/lib/syntax.d.ts +10 -0
  1202. package/plugin/node_modules/micromark-extension-directive/lib/syntax.d.ts.map +1 -0
  1203. package/plugin/node_modules/micromark-extension-directive/lib/syntax.js +25 -0
  1204. package/plugin/node_modules/micromark-extension-directive/license +22 -0
  1205. package/plugin/node_modules/micromark-extension-directive/package.json +124 -0
  1206. package/plugin/node_modules/micromark-extension-directive/readme.md +451 -0
  1207. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/index.d.ts +24 -0
  1208. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/index.js +2 -0
  1209. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.d.ts +10 -0
  1210. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.js +56 -0
  1211. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.d.ts +10 -0
  1212. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.js +983 -0
  1213. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/index.d.ts +24 -0
  1214. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/index.js +2 -0
  1215. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/html.d.ts +10 -0
  1216. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +60 -0
  1217. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.d.ts +10 -0
  1218. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +854 -0
  1219. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/license +22 -0
  1220. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/package.json +116 -0
  1221. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/readme.md +422 -0
  1222. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/index.d.ts +164 -0
  1223. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/index.js +3 -0
  1224. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/html.d.ts +25 -0
  1225. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/html.js +226 -0
  1226. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.d.ts +9 -0
  1227. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.js +558 -0
  1228. package/plugin/node_modules/micromark-extension-gfm-footnote/index.d.ts +164 -0
  1229. package/plugin/node_modules/micromark-extension-gfm-footnote/index.js +3 -0
  1230. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/html.d.ts +25 -0
  1231. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/html.js +154 -0
  1232. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/syntax.d.ts +9 -0
  1233. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +485 -0
  1234. package/plugin/node_modules/micromark-extension-gfm-footnote/license +22 -0
  1235. package/plugin/node_modules/micromark-extension-gfm-footnote/package.json +132 -0
  1236. package/plugin/node_modules/micromark-extension-gfm-footnote/readme.md +656 -0
  1237. package/plugin/node_modules/micromark-extension-gfm-table/dev/index.d.ts +55 -0
  1238. package/plugin/node_modules/micromark-extension-gfm-table/dev/index.js +2 -0
  1239. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts +38 -0
  1240. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts.map +1 -0
  1241. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.js +212 -0
  1242. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts +11 -0
  1243. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts.map +1 -0
  1244. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/html.js +148 -0
  1245. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts +14 -0
  1246. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts.map +1 -0
  1247. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/infer.js +64 -0
  1248. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts +18 -0
  1249. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts.map +1 -0
  1250. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/syntax.js +941 -0
  1251. package/plugin/node_modules/micromark-extension-gfm-table/index.d.ts +55 -0
  1252. package/plugin/node_modules/micromark-extension-gfm-table/index.js +2 -0
  1253. package/plugin/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts +38 -0
  1254. package/plugin/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts.map +1 -0
  1255. package/plugin/node_modules/micromark-extension-gfm-table/lib/edit-map.js +202 -0
  1256. package/plugin/node_modules/micromark-extension-gfm-table/lib/html.d.ts +11 -0
  1257. package/plugin/node_modules/micromark-extension-gfm-table/lib/html.d.ts.map +1 -0
  1258. package/plugin/node_modules/micromark-extension-gfm-table/lib/html.js +130 -0
  1259. package/plugin/node_modules/micromark-extension-gfm-table/lib/infer.d.ts +14 -0
  1260. package/plugin/node_modules/micromark-extension-gfm-table/lib/infer.d.ts.map +1 -0
  1261. package/plugin/node_modules/micromark-extension-gfm-table/lib/infer.js +52 -0
  1262. package/plugin/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts +18 -0
  1263. package/plugin/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts.map +1 -0
  1264. package/plugin/node_modules/micromark-extension-gfm-table/lib/syntax.js +819 -0
  1265. package/plugin/node_modules/micromark-extension-gfm-table/license +22 -0
  1266. package/plugin/node_modules/micromark-extension-gfm-table/package.json +128 -0
  1267. package/plugin/node_modules/micromark-extension-gfm-table/readme.md +515 -0
  1268. package/plugin/node_modules/micromark-extension-math/dev/index.d.ts +61 -0
  1269. package/plugin/node_modules/micromark-extension-math/dev/index.js +3 -0
  1270. package/plugin/node_modules/micromark-extension-math/dev/lib/html.d.ts +15 -0
  1271. package/plugin/node_modules/micromark-extension-math/dev/lib/html.js +82 -0
  1272. package/plugin/node_modules/micromark-extension-math/dev/lib/math-flow.d.ts +3 -0
  1273. package/plugin/node_modules/micromark-extension-math/dev/lib/math-flow.js +394 -0
  1274. package/plugin/node_modules/micromark-extension-math/dev/lib/math-text.d.ts +9 -0
  1275. package/plugin/node_modules/micromark-extension-math/dev/lib/math-text.js +267 -0
  1276. package/plugin/node_modules/micromark-extension-math/dev/lib/syntax.d.ts +12 -0
  1277. package/plugin/node_modules/micromark-extension-math/dev/lib/syntax.js +24 -0
  1278. package/plugin/node_modules/micromark-extension-math/index.d.ts +61 -0
  1279. package/plugin/node_modules/micromark-extension-math/index.js +3 -0
  1280. package/plugin/node_modules/micromark-extension-math/lib/html.d.ts +15 -0
  1281. package/plugin/node_modules/micromark-extension-math/lib/html.js +84 -0
  1282. package/plugin/node_modules/micromark-extension-math/lib/math-flow.d.ts +3 -0
  1283. package/plugin/node_modules/micromark-extension-math/lib/math-flow.js +345 -0
  1284. package/plugin/node_modules/micromark-extension-math/lib/math-text.d.ts +9 -0
  1285. package/plugin/node_modules/micromark-extension-math/lib/math-text.js +232 -0
  1286. package/plugin/node_modules/micromark-extension-math/lib/syntax.d.ts +12 -0
  1287. package/plugin/node_modules/micromark-extension-math/lib/syntax.js +27 -0
  1288. package/plugin/node_modules/micromark-extension-math/license +22 -0
  1289. package/plugin/node_modules/micromark-extension-math/package.json +121 -0
  1290. package/plugin/node_modules/micromark-extension-math/readme.md +429 -0
  1291. package/plugin/node_modules/micromark-factory-destination/dev/index.d.ts +42 -0
  1292. package/plugin/node_modules/micromark-factory-destination/dev/index.d.ts.map +1 -0
  1293. package/plugin/node_modules/micromark-factory-destination/dev/index.js +255 -0
  1294. package/plugin/node_modules/micromark-factory-destination/index.d.ts +42 -0
  1295. package/plugin/node_modules/micromark-factory-destination/index.d.ts.map +1 -0
  1296. package/plugin/node_modules/micromark-factory-destination/index.js +206 -0
  1297. package/plugin/node_modules/micromark-factory-destination/license +22 -0
  1298. package/plugin/node_modules/micromark-factory-destination/package.json +57 -0
  1299. package/plugin/node_modules/micromark-factory-destination/readme.md +234 -0
  1300. package/plugin/node_modules/micromark-factory-label/dev/index.d.ts +37 -0
  1301. package/plugin/node_modules/micromark-factory-label/dev/index.d.ts.map +1 -0
  1302. package/plugin/node_modules/micromark-factory-label/dev/index.js +172 -0
  1303. package/plugin/node_modules/micromark-factory-label/index.d.ts +37 -0
  1304. package/plugin/node_modules/micromark-factory-label/index.d.ts.map +1 -0
  1305. package/plugin/node_modules/micromark-factory-label/index.js +148 -0
  1306. package/plugin/node_modules/micromark-factory-label/license +22 -0
  1307. package/plugin/node_modules/micromark-factory-label/package.json +60 -0
  1308. package/plugin/node_modules/micromark-factory-label/readme.md +224 -0
  1309. package/plugin/node_modules/micromark-factory-space/dev/index.d.ts +37 -0
  1310. package/plugin/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -0
  1311. package/plugin/node_modules/micromark-factory-space/dev/index.js +67 -0
  1312. package/plugin/node_modules/micromark-factory-space/index.d.ts +37 -0
  1313. package/plugin/node_modules/micromark-factory-space/index.d.ts.map +1 -0
  1314. package/plugin/node_modules/micromark-factory-space/index.js +64 -0
  1315. package/plugin/node_modules/micromark-factory-space/license +22 -0
  1316. package/plugin/node_modules/micromark-factory-space/package.json +55 -0
  1317. package/plugin/node_modules/micromark-factory-space/readme.md +225 -0
  1318. package/plugin/node_modules/micromark-factory-title/dev/index.d.ts +36 -0
  1319. package/plugin/node_modules/micromark-factory-title/dev/index.d.ts.map +1 -0
  1320. package/plugin/node_modules/micromark-factory-title/dev/index.js +169 -0
  1321. package/plugin/node_modules/micromark-factory-title/index.d.ts +36 -0
  1322. package/plugin/node_modules/micromark-factory-title/index.d.ts.map +1 -0
  1323. package/plugin/node_modules/micromark-factory-title/index.js +158 -0
  1324. package/plugin/node_modules/micromark-factory-title/license +22 -0
  1325. package/plugin/node_modules/micromark-factory-title/package.json +58 -0
  1326. package/plugin/node_modules/micromark-factory-title/readme.md +229 -0
  1327. package/plugin/node_modules/micromark-factory-whitespace/dev/index.d.ts +22 -0
  1328. package/plugin/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +1 -0
  1329. package/plugin/node_modules/micromark-factory-whitespace/dev/index.js +53 -0
  1330. package/plugin/node_modules/micromark-factory-whitespace/index.d.ts +22 -0
  1331. package/plugin/node_modules/micromark-factory-whitespace/index.d.ts.map +1 -0
  1332. package/plugin/node_modules/micromark-factory-whitespace/index.js +44 -0
  1333. package/plugin/node_modules/micromark-factory-whitespace/license +22 -0
  1334. package/plugin/node_modules/micromark-factory-whitespace/package.json +57 -0
  1335. package/plugin/node_modules/micromark-factory-whitespace/readme.md +205 -0
  1336. package/plugin/node_modules/micromark-util-character/dev/index.d.ts +195 -0
  1337. package/plugin/node_modules/micromark-util-character/dev/index.d.ts.map +1 -0
  1338. package/plugin/node_modules/micromark-util-character/dev/index.js +252 -0
  1339. package/plugin/node_modules/micromark-util-character/index.d.ts +195 -0
  1340. package/plugin/node_modules/micromark-util-character/index.d.ts.map +1 -0
  1341. package/plugin/node_modules/micromark-util-character/index.js +246 -0
  1342. package/plugin/node_modules/micromark-util-character/license +22 -0
  1343. package/plugin/node_modules/micromark-util-character/package.json +57 -0
  1344. package/plugin/node_modules/micromark-util-character/readme.md +446 -0
  1345. package/plugin/node_modules/micromark-util-chunked/dev/index.d.ts +41 -0
  1346. package/plugin/node_modules/micromark-util-chunked/dev/index.d.ts.map +1 -0
  1347. package/plugin/node_modules/micromark-util-chunked/dev/index.js +89 -0
  1348. package/plugin/node_modules/micromark-util-chunked/index.d.ts +41 -0
  1349. package/plugin/node_modules/micromark-util-chunked/index.d.ts.map +1 -0
  1350. package/plugin/node_modules/micromark-util-chunked/index.js +81 -0
  1351. package/plugin/node_modules/micromark-util-chunked/license +22 -0
  1352. package/plugin/node_modules/micromark-util-chunked/package.json +57 -0
  1353. package/plugin/node_modules/micromark-util-chunked/readme.md +219 -0
  1354. package/plugin/node_modules/micromark-util-classify-character/dev/index.d.ts +18 -0
  1355. package/plugin/node_modules/micromark-util-classify-character/dev/index.d.ts.map +1 -0
  1356. package/plugin/node_modules/micromark-util-classify-character/dev/index.js +38 -0
  1357. package/plugin/node_modules/micromark-util-classify-character/index.d.ts +18 -0
  1358. package/plugin/node_modules/micromark-util-classify-character/index.d.ts.map +1 -0
  1359. package/plugin/node_modules/micromark-util-classify-character/index.js +27 -0
  1360. package/plugin/node_modules/micromark-util-classify-character/license +22 -0
  1361. package/plugin/node_modules/micromark-util-classify-character/package.json +59 -0
  1362. package/plugin/node_modules/micromark-util-classify-character/readme.md +205 -0
  1363. package/plugin/node_modules/micromark-util-combine-extensions/index.d.ts +22 -0
  1364. package/plugin/node_modules/micromark-util-combine-extensions/index.d.ts.map +1 -0
  1365. package/plugin/node_modules/micromark-util-combine-extensions/index.js +143 -0
  1366. package/plugin/node_modules/micromark-util-combine-extensions/license +22 -0
  1367. package/plugin/node_modules/micromark-util-combine-extensions/package.json +52 -0
  1368. package/plugin/node_modules/micromark-util-combine-extensions/readme.md +201 -0
  1369. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +16 -0
  1370. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +1 -0
  1371. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +42 -0
  1372. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +16 -0
  1373. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +1 -0
  1374. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
  1375. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/license +22 -0
  1376. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
  1377. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/readme.md +184 -0
  1378. package/plugin/node_modules/micromark-util-encode/index.d.ts +14 -0
  1379. package/plugin/node_modules/micromark-util-encode/index.d.ts.map +1 -0
  1380. package/plugin/node_modules/micromark-util-encode/index.js +33 -0
  1381. package/plugin/node_modules/micromark-util-encode/license +22 -0
  1382. package/plugin/node_modules/micromark-util-encode/package.json +47 -0
  1383. package/plugin/node_modules/micromark-util-encode/readme.md +176 -0
  1384. package/plugin/node_modules/micromark-util-html-tag-name/index.d.ts +30 -0
  1385. package/plugin/node_modules/micromark-util-html-tag-name/index.d.ts.map +1 -0
  1386. package/plugin/node_modules/micromark-util-html-tag-name/index.js +93 -0
  1387. package/plugin/node_modules/micromark-util-html-tag-name/license +22 -0
  1388. package/plugin/node_modules/micromark-util-html-tag-name/package.json +47 -0
  1389. package/plugin/node_modules/micromark-util-html-tag-name/readme.md +193 -0
  1390. package/plugin/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +21 -0
  1391. package/plugin/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +1 -0
  1392. package/plugin/node_modules/micromark-util-normalize-identifier/dev/index.js +38 -0
  1393. package/plugin/node_modules/micromark-util-normalize-identifier/index.d.ts +21 -0
  1394. package/plugin/node_modules/micromark-util-normalize-identifier/index.d.ts.map +1 -0
  1395. package/plugin/node_modules/micromark-util-normalize-identifier/index.js +33 -0
  1396. package/plugin/node_modules/micromark-util-normalize-identifier/license +22 -0
  1397. package/plugin/node_modules/micromark-util-normalize-identifier/package.json +58 -0
  1398. package/plugin/node_modules/micromark-util-normalize-identifier/readme.md +187 -0
  1399. package/plugin/node_modules/micromark-util-resolve-all/index.d.ts +22 -0
  1400. package/plugin/node_modules/micromark-util-resolve-all/index.d.ts.map +1 -0
  1401. package/plugin/node_modules/micromark-util-resolve-all/index.js +32 -0
  1402. package/plugin/node_modules/micromark-util-resolve-all/license +22 -0
  1403. package/plugin/node_modules/micromark-util-resolve-all/package.json +48 -0
  1404. package/plugin/node_modules/micromark-util-resolve-all/readme.md +238 -0
  1405. package/plugin/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +36 -0
  1406. package/plugin/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +1 -0
  1407. package/plugin/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
  1408. package/plugin/node_modules/micromark-util-sanitize-uri/index.d.ts +36 -0
  1409. package/plugin/node_modules/micromark-util-sanitize-uri/index.d.ts.map +1 -0
  1410. package/plugin/node_modules/micromark-util-sanitize-uri/index.js +107 -0
  1411. package/plugin/node_modules/micromark-util-sanitize-uri/license +22 -0
  1412. package/plugin/node_modules/micromark-util-sanitize-uri/package.json +59 -0
  1413. package/plugin/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
  1414. package/plugin/node_modules/micromark-util-subtokenize/dev/index.d.ts +12 -0
  1415. package/plugin/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +1 -0
  1416. package/plugin/node_modules/micromark-util-subtokenize/dev/index.js +284 -0
  1417. package/plugin/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +161 -0
  1418. package/plugin/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +1 -0
  1419. package/plugin/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +288 -0
  1420. package/plugin/node_modules/micromark-util-subtokenize/index.d.ts +12 -0
  1421. package/plugin/node_modules/micromark-util-subtokenize/index.d.ts.map +1 -0
  1422. package/plugin/node_modules/micromark-util-subtokenize/index.js +228 -0
  1423. package/plugin/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +161 -0
  1424. package/plugin/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +1 -0
  1425. package/plugin/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
  1426. package/plugin/node_modules/micromark-util-subtokenize/license +22 -0
  1427. package/plugin/node_modules/micromark-util-subtokenize/package.json +60 -0
  1428. package/plugin/node_modules/micromark-util-subtokenize/readme.md +181 -0
  1429. package/plugin/node_modules/micromark-util-symbol/lib/codes.d.ts +139 -0
  1430. package/plugin/node_modules/micromark-util-symbol/lib/codes.d.ts.map +1 -0
  1431. package/plugin/node_modules/micromark-util-symbol/lib/codes.js +158 -0
  1432. package/plugin/node_modules/micromark-util-symbol/lib/constants.d.ts +37 -0
  1433. package/plugin/node_modules/micromark-util-symbol/lib/constants.d.ts.map +1 -0
  1434. package/plugin/node_modules/micromark-util-symbol/lib/constants.js +44 -0
  1435. package/plugin/node_modules/micromark-util-symbol/lib/default.d.ts +5 -0
  1436. package/plugin/node_modules/micromark-util-symbol/lib/default.d.ts.map +1 -0
  1437. package/plugin/node_modules/micromark-util-symbol/lib/default.js +4 -0
  1438. package/plugin/node_modules/micromark-util-symbol/lib/types.d.ts +106 -0
  1439. package/plugin/node_modules/micromark-util-symbol/lib/types.d.ts.map +1 -0
  1440. package/plugin/node_modules/micromark-util-symbol/lib/types.js +453 -0
  1441. package/plugin/node_modules/micromark-util-symbol/lib/values.d.ts +102 -0
  1442. package/plugin/node_modules/micromark-util-symbol/lib/values.d.ts.map +1 -0
  1443. package/plugin/node_modules/micromark-util-symbol/lib/values.js +109 -0
  1444. package/plugin/node_modules/micromark-util-symbol/license +22 -0
  1445. package/plugin/node_modules/micromark-util-symbol/package.json +43 -0
  1446. package/plugin/node_modules/micromark-util-symbol/readme.md +168 -0
  1447. package/plugin/node_modules/micromark-util-types/index.d.ts +1312 -0
  1448. package/plugin/node_modules/micromark-util-types/index.js +2 -0
  1449. package/plugin/node_modules/micromark-util-types/license +22 -0
  1450. package/plugin/node_modules/micromark-util-types/package.json +71 -0
  1451. package/plugin/node_modules/micromark-util-types/readme.md +151 -0
  1452. package/plugin/node_modules/micromatch/LICENSE +21 -0
  1453. package/plugin/node_modules/micromatch/README.md +1024 -0
  1454. package/plugin/node_modules/micromatch/index.js +474 -0
  1455. package/plugin/node_modules/micromatch/package.json +119 -0
  1456. package/plugin/node_modules/ms/index.js +162 -0
  1457. package/plugin/node_modules/ms/license.md +21 -0
  1458. package/plugin/node_modules/ms/package.json +38 -0
  1459. package/plugin/node_modules/ms/readme.md +59 -0
  1460. package/plugin/node_modules/parse-entities/index.d.ts +126 -0
  1461. package/plugin/node_modules/parse-entities/index.js +3 -0
  1462. package/plugin/node_modules/parse-entities/lib/index.d.ts +9 -0
  1463. package/plugin/node_modules/parse-entities/lib/index.d.ts.map +1 -0
  1464. package/plugin/node_modules/parse-entities/lib/index.js +407 -0
  1465. package/plugin/node_modules/parse-entities/license +22 -0
  1466. package/plugin/node_modules/parse-entities/package.json +91 -0
  1467. package/plugin/node_modules/parse-entities/readme.md +266 -0
  1468. package/plugin/node_modules/picomatch/LICENSE +21 -0
  1469. package/plugin/node_modules/picomatch/README.md +716 -0
  1470. package/plugin/node_modules/picomatch/index.js +3 -0
  1471. package/plugin/node_modules/picomatch/lib/constants.js +184 -0
  1472. package/plugin/node_modules/picomatch/lib/parse.js +1392 -0
  1473. package/plugin/node_modules/picomatch/lib/picomatch.js +342 -0
  1474. package/plugin/node_modules/picomatch/lib/scan.js +391 -0
  1475. package/plugin/node_modules/picomatch/lib/utils.js +64 -0
  1476. package/plugin/node_modules/picomatch/package.json +81 -0
  1477. package/plugin/node_modules/punycode.js/LICENSE-MIT.txt +20 -0
  1478. package/plugin/node_modules/punycode.js/README.md +148 -0
  1479. package/plugin/node_modules/punycode.js/package.json +58 -0
  1480. package/plugin/node_modules/punycode.js/punycode.es6.js +444 -0
  1481. package/plugin/node_modules/punycode.js/punycode.js +443 -0
  1482. package/plugin/node_modules/queue-microtask/LICENSE +20 -0
  1483. package/plugin/node_modules/queue-microtask/README.md +90 -0
  1484. package/plugin/node_modules/queue-microtask/index.d.ts +2 -0
  1485. package/plugin/node_modules/queue-microtask/index.js +9 -0
  1486. package/plugin/node_modules/queue-microtask/package.json +55 -0
  1487. package/plugin/node_modules/reusify/.github/dependabot.yml +7 -0
  1488. package/plugin/node_modules/reusify/.github/workflows/ci.yml +96 -0
  1489. package/plugin/node_modules/reusify/LICENSE +22 -0
  1490. package/plugin/node_modules/reusify/README.md +139 -0
  1491. package/plugin/node_modules/reusify/SECURITY.md +15 -0
  1492. package/plugin/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
  1493. package/plugin/node_modules/reusify/benchmarks/fib.js +13 -0
  1494. package/plugin/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
  1495. package/plugin/node_modules/reusify/eslint.config.js +14 -0
  1496. package/plugin/node_modules/reusify/package.json +50 -0
  1497. package/plugin/node_modules/reusify/reusify.d.ts +14 -0
  1498. package/plugin/node_modules/reusify/reusify.js +33 -0
  1499. package/plugin/node_modules/reusify/test.js +66 -0
  1500. package/plugin/node_modules/reusify/tsconfig.json +11 -0
  1501. package/plugin/node_modules/run-parallel/LICENSE +20 -0
  1502. package/plugin/node_modules/run-parallel/README.md +85 -0
  1503. package/plugin/node_modules/run-parallel/index.js +51 -0
  1504. package/plugin/node_modules/run-parallel/package.json +58 -0
  1505. package/plugin/node_modules/slash/index.d.ts +23 -0
  1506. package/plugin/node_modules/slash/index.js +9 -0
  1507. package/plugin/node_modules/slash/license +9 -0
  1508. package/plugin/node_modules/slash/package.json +39 -0
  1509. package/plugin/node_modules/slash/readme.md +36 -0
  1510. package/plugin/node_modules/smol-toml/LICENSE +24 -0
  1511. package/plugin/node_modules/smol-toml/README.md +239 -0
  1512. package/plugin/node_modules/smol-toml/dist/date.d.ts +41 -0
  1513. package/plugin/node_modules/smol-toml/dist/date.js +127 -0
  1514. package/plugin/node_modules/smol-toml/dist/error.d.ts +38 -0
  1515. package/plugin/node_modules/smol-toml/dist/error.js +63 -0
  1516. package/plugin/node_modules/smol-toml/dist/extract.d.ts +30 -0
  1517. package/plugin/node_modules/smol-toml/dist/extract.js +100 -0
  1518. package/plugin/node_modules/smol-toml/dist/index.cjs +897 -0
  1519. package/plugin/node_modules/smol-toml/dist/index.d.ts +43 -0
  1520. package/plugin/node_modules/smol-toml/dist/index.js +33 -0
  1521. package/plugin/node_modules/smol-toml/dist/parse.d.ts +37 -0
  1522. package/plugin/node_modules/smol-toml/dist/parse.js +148 -0
  1523. package/plugin/node_modules/smol-toml/dist/primitive.d.ts +31 -0
  1524. package/plugin/node_modules/smol-toml/dist/primitive.js +179 -0
  1525. package/plugin/node_modules/smol-toml/dist/stringify.d.ts +31 -0
  1526. package/plugin/node_modules/smol-toml/dist/stringify.js +167 -0
  1527. package/plugin/node_modules/smol-toml/dist/struct.d.ts +32 -0
  1528. package/plugin/node_modules/smol-toml/dist/struct.js +184 -0
  1529. package/plugin/node_modules/smol-toml/dist/util.d.ts +42 -0
  1530. package/plugin/node_modules/smol-toml/dist/util.js +111 -0
  1531. package/plugin/node_modules/smol-toml/package.json +54 -0
  1532. package/plugin/node_modules/string-width/index.d.ts +39 -0
  1533. package/plugin/node_modules/string-width/index.js +89 -0
  1534. package/plugin/node_modules/string-width/license +9 -0
  1535. package/plugin/node_modules/string-width/package.json +65 -0
  1536. package/plugin/node_modules/string-width/readme.md +66 -0
  1537. package/plugin/node_modules/strip-ansi/index.d.ts +15 -0
  1538. package/plugin/node_modules/strip-ansi/index.js +19 -0
  1539. package/plugin/node_modules/strip-ansi/license +9 -0
  1540. package/plugin/node_modules/strip-ansi/package.json +59 -0
  1541. package/plugin/node_modules/strip-ansi/readme.md +37 -0
  1542. package/plugin/node_modules/to-regex-range/LICENSE +21 -0
  1543. package/plugin/node_modules/to-regex-range/README.md +305 -0
  1544. package/plugin/node_modules/to-regex-range/index.js +288 -0
  1545. package/plugin/node_modules/to-regex-range/package.json +88 -0
  1546. package/plugin/node_modules/uc.micro/LICENSE.txt +20 -0
  1547. package/plugin/node_modules/uc.micro/README.md +14 -0
  1548. package/plugin/node_modules/uc.micro/build/index.cjs.js +20 -0
  1549. package/plugin/node_modules/uc.micro/categories/Cc/regex.mjs +1 -0
  1550. package/plugin/node_modules/uc.micro/categories/Cf/regex.mjs +1 -0
  1551. package/plugin/node_modules/uc.micro/categories/P/regex.mjs +1 -0
  1552. package/plugin/node_modules/uc.micro/categories/S/regex.mjs +1 -0
  1553. package/plugin/node_modules/uc.micro/categories/Z/regex.mjs +1 -0
  1554. package/plugin/node_modules/uc.micro/index.mjs +8 -0
  1555. package/plugin/node_modules/uc.micro/package.json +37 -0
  1556. package/plugin/node_modules/uc.micro/properties/Any/regex.mjs +1 -0
  1557. package/plugin/node_modules/unicorn-magic/default.d.ts +13 -0
  1558. package/plugin/node_modules/unicorn-magic/default.js +14 -0
  1559. package/plugin/node_modules/unicorn-magic/license +9 -0
  1560. package/plugin/node_modules/unicorn-magic/node.d.ts +125 -0
  1561. package/plugin/node_modules/unicorn-magic/node.js +49 -0
  1562. package/plugin/node_modules/unicorn-magic/package.json +68 -0
  1563. package/plugin/node_modules/unicorn-magic/readme.md +31 -0
  1564. package/plugin/package.json +28 -0
  1565. package/plugin/skills/ase-arch-analyze/SKILL.md +449 -0
  1566. package/plugin/skills/ase-arch-discover/SKILL.md +160 -0
  1567. package/plugin/skills/ase-code-analyze/SKILL.md +110 -0
  1568. package/plugin/skills/ase-code-craft/SKILL.md +237 -0
  1569. package/plugin/skills/ase-code-explain/SKILL.md +117 -0
  1570. package/plugin/skills/ase-code-insight/SKILL.md +96 -0
  1571. package/plugin/skills/ase-code-lint/SKILL.md +382 -0
  1572. package/plugin/skills/ase-code-refactor/SKILL.md +241 -0
  1573. package/plugin/skills/ase-code-resolve/SKILL.md +299 -0
  1574. package/plugin/skills/ase-meta-changes/SKILL.md +97 -0
  1575. package/plugin/skills/ase-meta-chat/SKILL.md +60 -0
  1576. package/plugin/skills/ase-meta-commit/SKILL.md +64 -0
  1577. package/plugin/skills/ase-meta-diagram/SKILL.md +101 -0
  1578. package/plugin/skills/ase-meta-evaluate/SKILL.md +247 -0
  1579. package/plugin/skills/ase-meta-persona/SKILL.md +52 -0
  1580. package/plugin/skills/ase-meta-quorum/SKILL.md +122 -0
  1581. package/plugin/skills/ase-meta-search/SKILL.md +48 -0
  1582. package/plugin/skills/ase-meta-why/SKILL.md +69 -0
  1583. package/plugin/skills/ase-task-delete/SKILL.md +76 -0
  1584. package/plugin/skills/ase-task-edit/SKILL.md +390 -0
  1585. package/plugin/skills/ase-task-id/SKILL.md +46 -0
  1586. package/plugin/skills/ase-task-implement/SKILL.md +146 -0
  1587. package/plugin/skills/ase-task-list/SKILL.md +45 -0
  1588. package/plugin/skills/ase-task-preflight/SKILL.md +180 -0
  1589. package/plugin/skills/ase-task-reboot/SKILL.md +161 -0
  1590. package/plugin/skills/ase-task-view/SKILL.md +81 -0
@@ -0,0 +1,3880 @@
1
+
2
+ /*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
3
+ (function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
5
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
6
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jsyaml = {}));
7
+ })(this, (function (exports) { 'use strict';
8
+
9
+ function isNothing(subject) {
10
+ return (typeof subject === 'undefined') || (subject === null);
11
+ }
12
+
13
+
14
+ function isObject(subject) {
15
+ return (typeof subject === 'object') && (subject !== null);
16
+ }
17
+
18
+
19
+ function toArray(sequence) {
20
+ if (Array.isArray(sequence)) return sequence;
21
+ else if (isNothing(sequence)) return [];
22
+
23
+ return [ sequence ];
24
+ }
25
+
26
+
27
+ function extend(target, source) {
28
+ var index, length, key, sourceKeys;
29
+
30
+ if (source) {
31
+ sourceKeys = Object.keys(source);
32
+
33
+ for (index = 0, length = sourceKeys.length; index < length; index += 1) {
34
+ key = sourceKeys[index];
35
+ target[key] = source[key];
36
+ }
37
+ }
38
+
39
+ return target;
40
+ }
41
+
42
+
43
+ function repeat(string, count) {
44
+ var result = '', cycle;
45
+
46
+ for (cycle = 0; cycle < count; cycle += 1) {
47
+ result += string;
48
+ }
49
+
50
+ return result;
51
+ }
52
+
53
+
54
+ function isNegativeZero(number) {
55
+ return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);
56
+ }
57
+
58
+
59
+ var isNothing_1 = isNothing;
60
+ var isObject_1 = isObject;
61
+ var toArray_1 = toArray;
62
+ var repeat_1 = repeat;
63
+ var isNegativeZero_1 = isNegativeZero;
64
+ var extend_1 = extend;
65
+
66
+ var common = {
67
+ isNothing: isNothing_1,
68
+ isObject: isObject_1,
69
+ toArray: toArray_1,
70
+ repeat: repeat_1,
71
+ isNegativeZero: isNegativeZero_1,
72
+ extend: extend_1
73
+ };
74
+
75
+ // YAML error class. http://stackoverflow.com/questions/8458984
76
+
77
+
78
+ function formatError(exception, compact) {
79
+ var where = '', message = exception.reason || '(unknown reason)';
80
+
81
+ if (!exception.mark) return message;
82
+
83
+ if (exception.mark.name) {
84
+ where += 'in "' + exception.mark.name + '" ';
85
+ }
86
+
87
+ where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')';
88
+
89
+ if (!compact && exception.mark.snippet) {
90
+ where += '\n\n' + exception.mark.snippet;
91
+ }
92
+
93
+ return message + ' ' + where;
94
+ }
95
+
96
+
97
+ function YAMLException$1(reason, mark) {
98
+ // Super constructor
99
+ Error.call(this);
100
+
101
+ this.name = 'YAMLException';
102
+ this.reason = reason;
103
+ this.mark = mark;
104
+ this.message = formatError(this, false);
105
+
106
+ // Include stack trace in error object
107
+ if (Error.captureStackTrace) {
108
+ // Chrome and NodeJS
109
+ Error.captureStackTrace(this, this.constructor);
110
+ } else {
111
+ // FF, IE 10+ and Safari 6+. Fallback for others
112
+ this.stack = (new Error()).stack || '';
113
+ }
114
+ }
115
+
116
+
117
+ // Inherit from Error
118
+ YAMLException$1.prototype = Object.create(Error.prototype);
119
+ YAMLException$1.prototype.constructor = YAMLException$1;
120
+
121
+
122
+ YAMLException$1.prototype.toString = function toString(compact) {
123
+ return this.name + ': ' + formatError(this, compact);
124
+ };
125
+
126
+
127
+ var exception = YAMLException$1;
128
+
129
+ // get snippet for a single line, respecting maxLength
130
+ function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
131
+ var head = '';
132
+ var tail = '';
133
+ var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
134
+
135
+ if (position - lineStart > maxHalfLength) {
136
+ head = ' ... ';
137
+ lineStart = position - maxHalfLength + head.length;
138
+ }
139
+
140
+ if (lineEnd - position > maxHalfLength) {
141
+ tail = ' ...';
142
+ lineEnd = position + maxHalfLength - tail.length;
143
+ }
144
+
145
+ return {
146
+ str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail,
147
+ pos: position - lineStart + head.length // relative position
148
+ };
149
+ }
150
+
151
+
152
+ function padStart(string, max) {
153
+ return common.repeat(' ', max - string.length) + string;
154
+ }
155
+
156
+
157
+ function makeSnippet(mark, options) {
158
+ options = Object.create(options || null);
159
+
160
+ if (!mark.buffer) return null;
161
+
162
+ if (!options.maxLength) options.maxLength = 79;
163
+ if (typeof options.indent !== 'number') options.indent = 1;
164
+ if (typeof options.linesBefore !== 'number') options.linesBefore = 3;
165
+ if (typeof options.linesAfter !== 'number') options.linesAfter = 2;
166
+
167
+ var re = /\r?\n|\r|\0/g;
168
+ var lineStarts = [ 0 ];
169
+ var lineEnds = [];
170
+ var match;
171
+ var foundLineNo = -1;
172
+
173
+ while ((match = re.exec(mark.buffer))) {
174
+ lineEnds.push(match.index);
175
+ lineStarts.push(match.index + match[0].length);
176
+
177
+ if (mark.position <= match.index && foundLineNo < 0) {
178
+ foundLineNo = lineStarts.length - 2;
179
+ }
180
+ }
181
+
182
+ if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
183
+
184
+ var result = '', i, line;
185
+ var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
186
+ var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
187
+
188
+ for (i = 1; i <= options.linesBefore; i++) {
189
+ if (foundLineNo - i < 0) break;
190
+ line = getLine(
191
+ mark.buffer,
192
+ lineStarts[foundLineNo - i],
193
+ lineEnds[foundLineNo - i],
194
+ mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
195
+ maxLineLength
196
+ );
197
+ result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) +
198
+ ' | ' + line.str + '\n' + result;
199
+ }
200
+
201
+ line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
202
+ result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) +
203
+ ' | ' + line.str + '\n';
204
+ result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n';
205
+
206
+ for (i = 1; i <= options.linesAfter; i++) {
207
+ if (foundLineNo + i >= lineEnds.length) break;
208
+ line = getLine(
209
+ mark.buffer,
210
+ lineStarts[foundLineNo + i],
211
+ lineEnds[foundLineNo + i],
212
+ mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
213
+ maxLineLength
214
+ );
215
+ result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) +
216
+ ' | ' + line.str + '\n';
217
+ }
218
+
219
+ return result.replace(/\n$/, '');
220
+ }
221
+
222
+
223
+ var snippet = makeSnippet;
224
+
225
+ var TYPE_CONSTRUCTOR_OPTIONS = [
226
+ 'kind',
227
+ 'multi',
228
+ 'resolve',
229
+ 'construct',
230
+ 'instanceOf',
231
+ 'predicate',
232
+ 'represent',
233
+ 'representName',
234
+ 'defaultStyle',
235
+ 'styleAliases'
236
+ ];
237
+
238
+ var YAML_NODE_KINDS = [
239
+ 'scalar',
240
+ 'sequence',
241
+ 'mapping'
242
+ ];
243
+
244
+ function compileStyleAliases(map) {
245
+ var result = {};
246
+
247
+ if (map !== null) {
248
+ Object.keys(map).forEach(function (style) {
249
+ map[style].forEach(function (alias) {
250
+ result[String(alias)] = style;
251
+ });
252
+ });
253
+ }
254
+
255
+ return result;
256
+ }
257
+
258
+ function Type$1(tag, options) {
259
+ options = options || {};
260
+
261
+ Object.keys(options).forEach(function (name) {
262
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
263
+ throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
264
+ }
265
+ });
266
+
267
+ // TODO: Add tag format check.
268
+ this.options = options; // keep original options in case user wants to extend this type later
269
+ this.tag = tag;
270
+ this.kind = options['kind'] || null;
271
+ this.resolve = options['resolve'] || function () { return true; };
272
+ this.construct = options['construct'] || function (data) { return data; };
273
+ this.instanceOf = options['instanceOf'] || null;
274
+ this.predicate = options['predicate'] || null;
275
+ this.represent = options['represent'] || null;
276
+ this.representName = options['representName'] || null;
277
+ this.defaultStyle = options['defaultStyle'] || null;
278
+ this.multi = options['multi'] || false;
279
+ this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
280
+
281
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
282
+ throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
283
+ }
284
+ }
285
+
286
+ var type = Type$1;
287
+
288
+ /*eslint-disable max-len*/
289
+
290
+
291
+
292
+
293
+
294
+ function compileList(schema, name) {
295
+ var result = [];
296
+
297
+ schema[name].forEach(function (currentType) {
298
+ var newIndex = result.length;
299
+
300
+ result.forEach(function (previousType, previousIndex) {
301
+ if (previousType.tag === currentType.tag &&
302
+ previousType.kind === currentType.kind &&
303
+ previousType.multi === currentType.multi) {
304
+
305
+ newIndex = previousIndex;
306
+ }
307
+ });
308
+
309
+ result[newIndex] = currentType;
310
+ });
311
+
312
+ return result;
313
+ }
314
+
315
+
316
+ function compileMap(/* lists... */) {
317
+ var result = {
318
+ scalar: {},
319
+ sequence: {},
320
+ mapping: {},
321
+ fallback: {},
322
+ multi: {
323
+ scalar: [],
324
+ sequence: [],
325
+ mapping: [],
326
+ fallback: []
327
+ }
328
+ }, index, length;
329
+
330
+ function collectType(type) {
331
+ if (type.multi) {
332
+ result.multi[type.kind].push(type);
333
+ result.multi['fallback'].push(type);
334
+ } else {
335
+ result[type.kind][type.tag] = result['fallback'][type.tag] = type;
336
+ }
337
+ }
338
+
339
+ for (index = 0, length = arguments.length; index < length; index += 1) {
340
+ arguments[index].forEach(collectType);
341
+ }
342
+ return result;
343
+ }
344
+
345
+
346
+ function Schema$1(definition) {
347
+ return this.extend(definition);
348
+ }
349
+
350
+
351
+ Schema$1.prototype.extend = function extend(definition) {
352
+ var implicit = [];
353
+ var explicit = [];
354
+
355
+ if (definition instanceof type) {
356
+ // Schema.extend(type)
357
+ explicit.push(definition);
358
+
359
+ } else if (Array.isArray(definition)) {
360
+ // Schema.extend([ type1, type2, ... ])
361
+ explicit = explicit.concat(definition);
362
+
363
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
364
+ // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] })
365
+ if (definition.implicit) implicit = implicit.concat(definition.implicit);
366
+ if (definition.explicit) explicit = explicit.concat(definition.explicit);
367
+
368
+ } else {
369
+ throw new exception('Schema.extend argument should be a Type, [ Type ], ' +
370
+ 'or a schema definition ({ implicit: [...], explicit: [...] })');
371
+ }
372
+
373
+ implicit.forEach(function (type$1) {
374
+ if (!(type$1 instanceof type)) {
375
+ throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.');
376
+ }
377
+
378
+ if (type$1.loadKind && type$1.loadKind !== 'scalar') {
379
+ throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
380
+ }
381
+
382
+ if (type$1.multi) {
383
+ throw new exception('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.');
384
+ }
385
+ });
386
+
387
+ explicit.forEach(function (type$1) {
388
+ if (!(type$1 instanceof type)) {
389
+ throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.');
390
+ }
391
+ });
392
+
393
+ var result = Object.create(Schema$1.prototype);
394
+
395
+ result.implicit = (this.implicit || []).concat(implicit);
396
+ result.explicit = (this.explicit || []).concat(explicit);
397
+
398
+ result.compiledImplicit = compileList(result, 'implicit');
399
+ result.compiledExplicit = compileList(result, 'explicit');
400
+ result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
401
+
402
+ return result;
403
+ };
404
+
405
+
406
+ var schema = Schema$1;
407
+
408
+ var str = new type('tag:yaml.org,2002:str', {
409
+ kind: 'scalar',
410
+ construct: function (data) { return data !== null ? data : ''; }
411
+ });
412
+
413
+ var seq = new type('tag:yaml.org,2002:seq', {
414
+ kind: 'sequence',
415
+ construct: function (data) { return data !== null ? data : []; }
416
+ });
417
+
418
+ var map = new type('tag:yaml.org,2002:map', {
419
+ kind: 'mapping',
420
+ construct: function (data) { return data !== null ? data : {}; }
421
+ });
422
+
423
+ var failsafe = new schema({
424
+ explicit: [
425
+ str,
426
+ seq,
427
+ map
428
+ ]
429
+ });
430
+
431
+ function resolveYamlNull(data) {
432
+ if (data === null) return true;
433
+
434
+ var max = data.length;
435
+
436
+ return (max === 1 && data === '~') ||
437
+ (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
438
+ }
439
+
440
+ function constructYamlNull() {
441
+ return null;
442
+ }
443
+
444
+ function isNull(object) {
445
+ return object === null;
446
+ }
447
+
448
+ var _null = new type('tag:yaml.org,2002:null', {
449
+ kind: 'scalar',
450
+ resolve: resolveYamlNull,
451
+ construct: constructYamlNull,
452
+ predicate: isNull,
453
+ represent: {
454
+ canonical: function () { return '~'; },
455
+ lowercase: function () { return 'null'; },
456
+ uppercase: function () { return 'NULL'; },
457
+ camelcase: function () { return 'Null'; },
458
+ empty: function () { return ''; }
459
+ },
460
+ defaultStyle: 'lowercase'
461
+ });
462
+
463
+ function resolveYamlBoolean(data) {
464
+ if (data === null) return false;
465
+
466
+ var max = data.length;
467
+
468
+ return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
469
+ (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
470
+ }
471
+
472
+ function constructYamlBoolean(data) {
473
+ return data === 'true' ||
474
+ data === 'True' ||
475
+ data === 'TRUE';
476
+ }
477
+
478
+ function isBoolean(object) {
479
+ return Object.prototype.toString.call(object) === '[object Boolean]';
480
+ }
481
+
482
+ var bool = new type('tag:yaml.org,2002:bool', {
483
+ kind: 'scalar',
484
+ resolve: resolveYamlBoolean,
485
+ construct: constructYamlBoolean,
486
+ predicate: isBoolean,
487
+ represent: {
488
+ lowercase: function (object) { return object ? 'true' : 'false'; },
489
+ uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
490
+ camelcase: function (object) { return object ? 'True' : 'False'; }
491
+ },
492
+ defaultStyle: 'lowercase'
493
+ });
494
+
495
+ function isHexCode(c) {
496
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
497
+ ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||
498
+ ((0x61/* a */ <= c) && (c <= 0x66/* f */));
499
+ }
500
+
501
+ function isOctCode(c) {
502
+ return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));
503
+ }
504
+
505
+ function isDecCode(c) {
506
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));
507
+ }
508
+
509
+ function resolveYamlInteger(data) {
510
+ if (data === null) return false;
511
+
512
+ var max = data.length,
513
+ index = 0,
514
+ hasDigits = false,
515
+ ch;
516
+
517
+ if (!max) return false;
518
+
519
+ ch = data[index];
520
+
521
+ // sign
522
+ if (ch === '-' || ch === '+') {
523
+ ch = data[++index];
524
+ }
525
+
526
+ if (ch === '0') {
527
+ // 0
528
+ if (index + 1 === max) return true;
529
+ ch = data[++index];
530
+
531
+ // base 2, base 8, base 16
532
+
533
+ if (ch === 'b') {
534
+ // base 2
535
+ index++;
536
+
537
+ for (; index < max; index++) {
538
+ ch = data[index];
539
+ if (ch === '_') continue;
540
+ if (ch !== '0' && ch !== '1') return false;
541
+ hasDigits = true;
542
+ }
543
+ return hasDigits && ch !== '_';
544
+ }
545
+
546
+
547
+ if (ch === 'x') {
548
+ // base 16
549
+ index++;
550
+
551
+ for (; index < max; index++) {
552
+ ch = data[index];
553
+ if (ch === '_') continue;
554
+ if (!isHexCode(data.charCodeAt(index))) return false;
555
+ hasDigits = true;
556
+ }
557
+ return hasDigits && ch !== '_';
558
+ }
559
+
560
+
561
+ if (ch === 'o') {
562
+ // base 8
563
+ index++;
564
+
565
+ for (; index < max; index++) {
566
+ ch = data[index];
567
+ if (ch === '_') continue;
568
+ if (!isOctCode(data.charCodeAt(index))) return false;
569
+ hasDigits = true;
570
+ }
571
+ return hasDigits && ch !== '_';
572
+ }
573
+ }
574
+
575
+ // base 10 (except 0)
576
+
577
+ // value should not start with `_`;
578
+ if (ch === '_') return false;
579
+
580
+ for (; index < max; index++) {
581
+ ch = data[index];
582
+ if (ch === '_') continue;
583
+ if (!isDecCode(data.charCodeAt(index))) {
584
+ return false;
585
+ }
586
+ hasDigits = true;
587
+ }
588
+
589
+ // Should have digits and should not end with `_`
590
+ if (!hasDigits || ch === '_') return false;
591
+
592
+ return true;
593
+ }
594
+
595
+ function constructYamlInteger(data) {
596
+ var value = data, sign = 1, ch;
597
+
598
+ if (value.indexOf('_') !== -1) {
599
+ value = value.replace(/_/g, '');
600
+ }
601
+
602
+ ch = value[0];
603
+
604
+ if (ch === '-' || ch === '+') {
605
+ if (ch === '-') sign = -1;
606
+ value = value.slice(1);
607
+ ch = value[0];
608
+ }
609
+
610
+ if (value === '0') return 0;
611
+
612
+ if (ch === '0') {
613
+ if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);
614
+ if (value[1] === 'x') return sign * parseInt(value.slice(2), 16);
615
+ if (value[1] === 'o') return sign * parseInt(value.slice(2), 8);
616
+ }
617
+
618
+ return sign * parseInt(value, 10);
619
+ }
620
+
621
+ function isInteger(object) {
622
+ return (Object.prototype.toString.call(object)) === '[object Number]' &&
623
+ (object % 1 === 0 && !common.isNegativeZero(object));
624
+ }
625
+
626
+ var int = new type('tag:yaml.org,2002:int', {
627
+ kind: 'scalar',
628
+ resolve: resolveYamlInteger,
629
+ construct: constructYamlInteger,
630
+ predicate: isInteger,
631
+ represent: {
632
+ binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },
633
+ octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); },
634
+ decimal: function (obj) { return obj.toString(10); },
635
+ /* eslint-disable max-len */
636
+ hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }
637
+ },
638
+ defaultStyle: 'decimal',
639
+ styleAliases: {
640
+ binary: [ 2, 'bin' ],
641
+ octal: [ 8, 'oct' ],
642
+ decimal: [ 10, 'dec' ],
643
+ hexadecimal: [ 16, 'hex' ]
644
+ }
645
+ });
646
+
647
+ var YAML_FLOAT_PATTERN = new RegExp(
648
+ // 2.5e4, 2.5 and integers
649
+ '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +
650
+ // .2e4, .2
651
+ // special case, seems not from spec
652
+ '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +
653
+ // .inf
654
+ '|[-+]?\\.(?:inf|Inf|INF)' +
655
+ // .nan
656
+ '|\\.(?:nan|NaN|NAN))$');
657
+
658
+ function resolveYamlFloat(data) {
659
+ if (data === null) return false;
660
+
661
+ if (!YAML_FLOAT_PATTERN.test(data) ||
662
+ // Quick hack to not allow integers end with `_`
663
+ // Probably should update regexp & check speed
664
+ data[data.length - 1] === '_') {
665
+ return false;
666
+ }
667
+
668
+ return true;
669
+ }
670
+
671
+ function constructYamlFloat(data) {
672
+ var value, sign;
673
+
674
+ value = data.replace(/_/g, '').toLowerCase();
675
+ sign = value[0] === '-' ? -1 : 1;
676
+
677
+ if ('+-'.indexOf(value[0]) >= 0) {
678
+ value = value.slice(1);
679
+ }
680
+
681
+ if (value === '.inf') {
682
+ return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
683
+
684
+ } else if (value === '.nan') {
685
+ return NaN;
686
+ }
687
+ return sign * parseFloat(value, 10);
688
+ }
689
+
690
+
691
+ var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
692
+
693
+ function representYamlFloat(object, style) {
694
+ var res;
695
+
696
+ if (isNaN(object)) {
697
+ switch (style) {
698
+ case 'lowercase': return '.nan';
699
+ case 'uppercase': return '.NAN';
700
+ case 'camelcase': return '.NaN';
701
+ }
702
+ } else if (Number.POSITIVE_INFINITY === object) {
703
+ switch (style) {
704
+ case 'lowercase': return '.inf';
705
+ case 'uppercase': return '.INF';
706
+ case 'camelcase': return '.Inf';
707
+ }
708
+ } else if (Number.NEGATIVE_INFINITY === object) {
709
+ switch (style) {
710
+ case 'lowercase': return '-.inf';
711
+ case 'uppercase': return '-.INF';
712
+ case 'camelcase': return '-.Inf';
713
+ }
714
+ } else if (common.isNegativeZero(object)) {
715
+ return '-0.0';
716
+ }
717
+
718
+ res = object.toString(10);
719
+
720
+ // JS stringifier can build scientific format without dots: 5e-100,
721
+ // while YAML requres dot: 5.e-100. Fix it with simple hack
722
+
723
+ return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;
724
+ }
725
+
726
+ function isFloat(object) {
727
+ return (Object.prototype.toString.call(object) === '[object Number]') &&
728
+ (object % 1 !== 0 || common.isNegativeZero(object));
729
+ }
730
+
731
+ var float = new type('tag:yaml.org,2002:float', {
732
+ kind: 'scalar',
733
+ resolve: resolveYamlFloat,
734
+ construct: constructYamlFloat,
735
+ predicate: isFloat,
736
+ represent: representYamlFloat,
737
+ defaultStyle: 'lowercase'
738
+ });
739
+
740
+ var json = failsafe.extend({
741
+ implicit: [
742
+ _null,
743
+ bool,
744
+ int,
745
+ float
746
+ ]
747
+ });
748
+
749
+ var core = json;
750
+
751
+ var YAML_DATE_REGEXP = new RegExp(
752
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
753
+ '-([0-9][0-9])' + // [2] month
754
+ '-([0-9][0-9])$'); // [3] day
755
+
756
+ var YAML_TIMESTAMP_REGEXP = new RegExp(
757
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
758
+ '-([0-9][0-9]?)' + // [2] month
759
+ '-([0-9][0-9]?)' + // [3] day
760
+ '(?:[Tt]|[ \\t]+)' + // ...
761
+ '([0-9][0-9]?)' + // [4] hour
762
+ ':([0-9][0-9])' + // [5] minute
763
+ ':([0-9][0-9])' + // [6] second
764
+ '(?:\\.([0-9]*))?' + // [7] fraction
765
+ '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
766
+ '(?::([0-9][0-9]))?))?$'); // [11] tz_minute
767
+
768
+ function resolveYamlTimestamp(data) {
769
+ if (data === null) return false;
770
+ if (YAML_DATE_REGEXP.exec(data) !== null) return true;
771
+ if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
772
+ return false;
773
+ }
774
+
775
+ function constructYamlTimestamp(data) {
776
+ var match, year, month, day, hour, minute, second, fraction = 0,
777
+ delta = null, tz_hour, tz_minute, date;
778
+
779
+ match = YAML_DATE_REGEXP.exec(data);
780
+ if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
781
+
782
+ if (match === null) throw new Error('Date resolve error');
783
+
784
+ // match: [1] year [2] month [3] day
785
+
786
+ year = +(match[1]);
787
+ month = +(match[2]) - 1; // JS month starts with 0
788
+ day = +(match[3]);
789
+
790
+ if (!match[4]) { // no hour
791
+ return new Date(Date.UTC(year, month, day));
792
+ }
793
+
794
+ // match: [4] hour [5] minute [6] second [7] fraction
795
+
796
+ hour = +(match[4]);
797
+ minute = +(match[5]);
798
+ second = +(match[6]);
799
+
800
+ if (match[7]) {
801
+ fraction = match[7].slice(0, 3);
802
+ while (fraction.length < 3) { // milli-seconds
803
+ fraction += '0';
804
+ }
805
+ fraction = +fraction;
806
+ }
807
+
808
+ // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
809
+
810
+ if (match[9]) {
811
+ tz_hour = +(match[10]);
812
+ tz_minute = +(match[11] || 0);
813
+ delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
814
+ if (match[9] === '-') delta = -delta;
815
+ }
816
+
817
+ date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
818
+
819
+ if (delta) date.setTime(date.getTime() - delta);
820
+
821
+ return date;
822
+ }
823
+
824
+ function representYamlTimestamp(object /*, style*/) {
825
+ return object.toISOString();
826
+ }
827
+
828
+ var timestamp = new type('tag:yaml.org,2002:timestamp', {
829
+ kind: 'scalar',
830
+ resolve: resolveYamlTimestamp,
831
+ construct: constructYamlTimestamp,
832
+ instanceOf: Date,
833
+ represent: representYamlTimestamp
834
+ });
835
+
836
+ function resolveYamlMerge(data) {
837
+ return data === '<<' || data === null;
838
+ }
839
+
840
+ var merge = new type('tag:yaml.org,2002:merge', {
841
+ kind: 'scalar',
842
+ resolve: resolveYamlMerge
843
+ });
844
+
845
+ /*eslint-disable no-bitwise*/
846
+
847
+
848
+
849
+
850
+
851
+ // [ 64, 65, 66 ] -> [ padding, CR, LF ]
852
+ var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
853
+
854
+
855
+ function resolveYamlBinary(data) {
856
+ if (data === null) return false;
857
+
858
+ var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
859
+
860
+ // Convert one by one.
861
+ for (idx = 0; idx < max; idx++) {
862
+ code = map.indexOf(data.charAt(idx));
863
+
864
+ // Skip CR/LF
865
+ if (code > 64) continue;
866
+
867
+ // Fail on illegal characters
868
+ if (code < 0) return false;
869
+
870
+ bitlen += 6;
871
+ }
872
+
873
+ // If there are any bits left, source was corrupted
874
+ return (bitlen % 8) === 0;
875
+ }
876
+
877
+ function constructYamlBinary(data) {
878
+ var idx, tailbits,
879
+ input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan
880
+ max = input.length,
881
+ map = BASE64_MAP,
882
+ bits = 0,
883
+ result = [];
884
+
885
+ // Collect by 6*4 bits (3 bytes)
886
+
887
+ for (idx = 0; idx < max; idx++) {
888
+ if ((idx % 4 === 0) && idx) {
889
+ result.push((bits >> 16) & 0xFF);
890
+ result.push((bits >> 8) & 0xFF);
891
+ result.push(bits & 0xFF);
892
+ }
893
+
894
+ bits = (bits << 6) | map.indexOf(input.charAt(idx));
895
+ }
896
+
897
+ // Dump tail
898
+
899
+ tailbits = (max % 4) * 6;
900
+
901
+ if (tailbits === 0) {
902
+ result.push((bits >> 16) & 0xFF);
903
+ result.push((bits >> 8) & 0xFF);
904
+ result.push(bits & 0xFF);
905
+ } else if (tailbits === 18) {
906
+ result.push((bits >> 10) & 0xFF);
907
+ result.push((bits >> 2) & 0xFF);
908
+ } else if (tailbits === 12) {
909
+ result.push((bits >> 4) & 0xFF);
910
+ }
911
+
912
+ return new Uint8Array(result);
913
+ }
914
+
915
+ function representYamlBinary(object /*, style*/) {
916
+ var result = '', bits = 0, idx, tail,
917
+ max = object.length,
918
+ map = BASE64_MAP;
919
+
920
+ // Convert every three bytes to 4 ASCII characters.
921
+
922
+ for (idx = 0; idx < max; idx++) {
923
+ if ((idx % 3 === 0) && idx) {
924
+ result += map[(bits >> 18) & 0x3F];
925
+ result += map[(bits >> 12) & 0x3F];
926
+ result += map[(bits >> 6) & 0x3F];
927
+ result += map[bits & 0x3F];
928
+ }
929
+
930
+ bits = (bits << 8) + object[idx];
931
+ }
932
+
933
+ // Dump tail
934
+
935
+ tail = max % 3;
936
+
937
+ if (tail === 0) {
938
+ result += map[(bits >> 18) & 0x3F];
939
+ result += map[(bits >> 12) & 0x3F];
940
+ result += map[(bits >> 6) & 0x3F];
941
+ result += map[bits & 0x3F];
942
+ } else if (tail === 2) {
943
+ result += map[(bits >> 10) & 0x3F];
944
+ result += map[(bits >> 4) & 0x3F];
945
+ result += map[(bits << 2) & 0x3F];
946
+ result += map[64];
947
+ } else if (tail === 1) {
948
+ result += map[(bits >> 2) & 0x3F];
949
+ result += map[(bits << 4) & 0x3F];
950
+ result += map[64];
951
+ result += map[64];
952
+ }
953
+
954
+ return result;
955
+ }
956
+
957
+ function isBinary(obj) {
958
+ return Object.prototype.toString.call(obj) === '[object Uint8Array]';
959
+ }
960
+
961
+ var binary = new type('tag:yaml.org,2002:binary', {
962
+ kind: 'scalar',
963
+ resolve: resolveYamlBinary,
964
+ construct: constructYamlBinary,
965
+ predicate: isBinary,
966
+ represent: representYamlBinary
967
+ });
968
+
969
+ var _hasOwnProperty$3 = Object.prototype.hasOwnProperty;
970
+ var _toString$2 = Object.prototype.toString;
971
+
972
+ function resolveYamlOmap(data) {
973
+ if (data === null) return true;
974
+
975
+ var objectKeys = [], index, length, pair, pairKey, pairHasKey,
976
+ object = data;
977
+
978
+ for (index = 0, length = object.length; index < length; index += 1) {
979
+ pair = object[index];
980
+ pairHasKey = false;
981
+
982
+ if (_toString$2.call(pair) !== '[object Object]') return false;
983
+
984
+ for (pairKey in pair) {
985
+ if (_hasOwnProperty$3.call(pair, pairKey)) {
986
+ if (!pairHasKey) pairHasKey = true;
987
+ else return false;
988
+ }
989
+ }
990
+
991
+ if (!pairHasKey) return false;
992
+
993
+ if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
994
+ else return false;
995
+ }
996
+
997
+ return true;
998
+ }
999
+
1000
+ function constructYamlOmap(data) {
1001
+ return data !== null ? data : [];
1002
+ }
1003
+
1004
+ var omap = new type('tag:yaml.org,2002:omap', {
1005
+ kind: 'sequence',
1006
+ resolve: resolveYamlOmap,
1007
+ construct: constructYamlOmap
1008
+ });
1009
+
1010
+ var _toString$1 = Object.prototype.toString;
1011
+
1012
+ function resolveYamlPairs(data) {
1013
+ if (data === null) return true;
1014
+
1015
+ var index, length, pair, keys, result,
1016
+ object = data;
1017
+
1018
+ result = new Array(object.length);
1019
+
1020
+ for (index = 0, length = object.length; index < length; index += 1) {
1021
+ pair = object[index];
1022
+
1023
+ if (_toString$1.call(pair) !== '[object Object]') return false;
1024
+
1025
+ keys = Object.keys(pair);
1026
+
1027
+ if (keys.length !== 1) return false;
1028
+
1029
+ result[index] = [ keys[0], pair[keys[0]] ];
1030
+ }
1031
+
1032
+ return true;
1033
+ }
1034
+
1035
+ function constructYamlPairs(data) {
1036
+ if (data === null) return [];
1037
+
1038
+ var index, length, pair, keys, result,
1039
+ object = data;
1040
+
1041
+ result = new Array(object.length);
1042
+
1043
+ for (index = 0, length = object.length; index < length; index += 1) {
1044
+ pair = object[index];
1045
+
1046
+ keys = Object.keys(pair);
1047
+
1048
+ result[index] = [ keys[0], pair[keys[0]] ];
1049
+ }
1050
+
1051
+ return result;
1052
+ }
1053
+
1054
+ var pairs = new type('tag:yaml.org,2002:pairs', {
1055
+ kind: 'sequence',
1056
+ resolve: resolveYamlPairs,
1057
+ construct: constructYamlPairs
1058
+ });
1059
+
1060
+ var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
1061
+
1062
+ function resolveYamlSet(data) {
1063
+ if (data === null) return true;
1064
+
1065
+ var key, object = data;
1066
+
1067
+ for (key in object) {
1068
+ if (_hasOwnProperty$2.call(object, key)) {
1069
+ if (object[key] !== null) return false;
1070
+ }
1071
+ }
1072
+
1073
+ return true;
1074
+ }
1075
+
1076
+ function constructYamlSet(data) {
1077
+ return data !== null ? data : {};
1078
+ }
1079
+
1080
+ var set = new type('tag:yaml.org,2002:set', {
1081
+ kind: 'mapping',
1082
+ resolve: resolveYamlSet,
1083
+ construct: constructYamlSet
1084
+ });
1085
+
1086
+ var _default = core.extend({
1087
+ implicit: [
1088
+ timestamp,
1089
+ merge
1090
+ ],
1091
+ explicit: [
1092
+ binary,
1093
+ omap,
1094
+ pairs,
1095
+ set
1096
+ ]
1097
+ });
1098
+
1099
+ /*eslint-disable max-len,no-use-before-define*/
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+ var _hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1108
+
1109
+
1110
+ var CONTEXT_FLOW_IN = 1;
1111
+ var CONTEXT_FLOW_OUT = 2;
1112
+ var CONTEXT_BLOCK_IN = 3;
1113
+ var CONTEXT_BLOCK_OUT = 4;
1114
+
1115
+
1116
+ var CHOMPING_CLIP = 1;
1117
+ var CHOMPING_STRIP = 2;
1118
+ var CHOMPING_KEEP = 3;
1119
+
1120
+
1121
+ var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
1122
+ var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
1123
+ var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
1124
+ var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
1125
+ var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1126
+
1127
+
1128
+ function _class(obj) { return Object.prototype.toString.call(obj); }
1129
+
1130
+ function is_EOL(c) {
1131
+ return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);
1132
+ }
1133
+
1134
+ function is_WHITE_SPACE(c) {
1135
+ return (c === 0x09/* Tab */) || (c === 0x20/* Space */);
1136
+ }
1137
+
1138
+ function is_WS_OR_EOL(c) {
1139
+ return (c === 0x09/* Tab */) ||
1140
+ (c === 0x20/* Space */) ||
1141
+ (c === 0x0A/* LF */) ||
1142
+ (c === 0x0D/* CR */);
1143
+ }
1144
+
1145
+ function is_FLOW_INDICATOR(c) {
1146
+ return c === 0x2C/* , */ ||
1147
+ c === 0x5B/* [ */ ||
1148
+ c === 0x5D/* ] */ ||
1149
+ c === 0x7B/* { */ ||
1150
+ c === 0x7D/* } */;
1151
+ }
1152
+
1153
+ function fromHexCode(c) {
1154
+ var lc;
1155
+
1156
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
1157
+ return c - 0x30;
1158
+ }
1159
+
1160
+ /*eslint-disable no-bitwise*/
1161
+ lc = c | 0x20;
1162
+
1163
+ if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {
1164
+ return lc - 0x61 + 10;
1165
+ }
1166
+
1167
+ return -1;
1168
+ }
1169
+
1170
+ function escapedHexLen(c) {
1171
+ if (c === 0x78/* x */) { return 2; }
1172
+ if (c === 0x75/* u */) { return 4; }
1173
+ if (c === 0x55/* U */) { return 8; }
1174
+ return 0;
1175
+ }
1176
+
1177
+ function fromDecimalCode(c) {
1178
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
1179
+ return c - 0x30;
1180
+ }
1181
+
1182
+ return -1;
1183
+ }
1184
+
1185
+ function simpleEscapeSequence(c) {
1186
+ /* eslint-disable indent */
1187
+ return (c === 0x30/* 0 */) ? '\x00' :
1188
+ (c === 0x61/* a */) ? '\x07' :
1189
+ (c === 0x62/* b */) ? '\x08' :
1190
+ (c === 0x74/* t */) ? '\x09' :
1191
+ (c === 0x09/* Tab */) ? '\x09' :
1192
+ (c === 0x6E/* n */) ? '\x0A' :
1193
+ (c === 0x76/* v */) ? '\x0B' :
1194
+ (c === 0x66/* f */) ? '\x0C' :
1195
+ (c === 0x72/* r */) ? '\x0D' :
1196
+ (c === 0x65/* e */) ? '\x1B' :
1197
+ (c === 0x20/* Space */) ? ' ' :
1198
+ (c === 0x22/* " */) ? '\x22' :
1199
+ (c === 0x2F/* / */) ? '/' :
1200
+ (c === 0x5C/* \ */) ? '\x5C' :
1201
+ (c === 0x4E/* N */) ? '\x85' :
1202
+ (c === 0x5F/* _ */) ? '\xA0' :
1203
+ (c === 0x4C/* L */) ? '\u2028' :
1204
+ (c === 0x50/* P */) ? '\u2029' : '';
1205
+ }
1206
+
1207
+ function charFromCodepoint(c) {
1208
+ if (c <= 0xFFFF) {
1209
+ return String.fromCharCode(c);
1210
+ }
1211
+ // Encode UTF-16 surrogate pair
1212
+ // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
1213
+ return String.fromCharCode(
1214
+ ((c - 0x010000) >> 10) + 0xD800,
1215
+ ((c - 0x010000) & 0x03FF) + 0xDC00
1216
+ );
1217
+ }
1218
+
1219
+ // set a property of a literal object, while protecting against prototype pollution,
1220
+ // see https://github.com/nodeca/js-yaml/issues/164 for more details
1221
+ function setProperty(object, key, value) {
1222
+ // used for this specific key only because Object.defineProperty is slow
1223
+ if (key === '__proto__') {
1224
+ Object.defineProperty(object, key, {
1225
+ configurable: true,
1226
+ enumerable: true,
1227
+ writable: true,
1228
+ value: value
1229
+ });
1230
+ } else {
1231
+ object[key] = value;
1232
+ }
1233
+ }
1234
+
1235
+ var simpleEscapeCheck = new Array(256); // integer, for fast access
1236
+ var simpleEscapeMap = new Array(256);
1237
+ for (var i = 0; i < 256; i++) {
1238
+ simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
1239
+ simpleEscapeMap[i] = simpleEscapeSequence(i);
1240
+ }
1241
+
1242
+
1243
+ function State$1(input, options) {
1244
+ this.input = input;
1245
+
1246
+ this.filename = options['filename'] || null;
1247
+ this.schema = options['schema'] || _default;
1248
+ this.onWarning = options['onWarning'] || null;
1249
+ // (Hidden) Remove? makes the loader to expect YAML 1.1 documents
1250
+ // if such documents have no explicit %YAML directive
1251
+ this.legacy = options['legacy'] || false;
1252
+
1253
+ this.json = options['json'] || false;
1254
+ this.listener = options['listener'] || null;
1255
+
1256
+ this.implicitTypes = this.schema.compiledImplicit;
1257
+ this.typeMap = this.schema.compiledTypeMap;
1258
+
1259
+ this.length = input.length;
1260
+ this.position = 0;
1261
+ this.line = 0;
1262
+ this.lineStart = 0;
1263
+ this.lineIndent = 0;
1264
+
1265
+ // position of first leading tab in the current line,
1266
+ // used to make sure there are no tabs in the indentation
1267
+ this.firstTabInLine = -1;
1268
+
1269
+ this.documents = [];
1270
+
1271
+ /*
1272
+ this.version;
1273
+ this.checkLineBreaks;
1274
+ this.tagMap;
1275
+ this.anchorMap;
1276
+ this.tag;
1277
+ this.anchor;
1278
+ this.kind;
1279
+ this.result;*/
1280
+
1281
+ }
1282
+
1283
+
1284
+ function generateError(state, message) {
1285
+ var mark = {
1286
+ name: state.filename,
1287
+ buffer: state.input.slice(0, -1), // omit trailing \0
1288
+ position: state.position,
1289
+ line: state.line,
1290
+ column: state.position - state.lineStart
1291
+ };
1292
+
1293
+ mark.snippet = snippet(mark);
1294
+
1295
+ return new exception(message, mark);
1296
+ }
1297
+
1298
+ function throwError(state, message) {
1299
+ throw generateError(state, message);
1300
+ }
1301
+
1302
+ function throwWarning(state, message) {
1303
+ if (state.onWarning) {
1304
+ state.onWarning.call(null, generateError(state, message));
1305
+ }
1306
+ }
1307
+
1308
+
1309
+ var directiveHandlers = {
1310
+
1311
+ YAML: function handleYamlDirective(state, name, args) {
1312
+
1313
+ var match, major, minor;
1314
+
1315
+ if (state.version !== null) {
1316
+ throwError(state, 'duplication of %YAML directive');
1317
+ }
1318
+
1319
+ if (args.length !== 1) {
1320
+ throwError(state, 'YAML directive accepts exactly one argument');
1321
+ }
1322
+
1323
+ match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
1324
+
1325
+ if (match === null) {
1326
+ throwError(state, 'ill-formed argument of the YAML directive');
1327
+ }
1328
+
1329
+ major = parseInt(match[1], 10);
1330
+ minor = parseInt(match[2], 10);
1331
+
1332
+ if (major !== 1) {
1333
+ throwError(state, 'unacceptable YAML version of the document');
1334
+ }
1335
+
1336
+ state.version = args[0];
1337
+ state.checkLineBreaks = (minor < 2);
1338
+
1339
+ if (minor !== 1 && minor !== 2) {
1340
+ throwWarning(state, 'unsupported YAML version of the document');
1341
+ }
1342
+ },
1343
+
1344
+ TAG: function handleTagDirective(state, name, args) {
1345
+
1346
+ var handle, prefix;
1347
+
1348
+ if (args.length !== 2) {
1349
+ throwError(state, 'TAG directive accepts exactly two arguments');
1350
+ }
1351
+
1352
+ handle = args[0];
1353
+ prefix = args[1];
1354
+
1355
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
1356
+ throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');
1357
+ }
1358
+
1359
+ if (_hasOwnProperty$1.call(state.tagMap, handle)) {
1360
+ throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
1361
+ }
1362
+
1363
+ if (!PATTERN_TAG_URI.test(prefix)) {
1364
+ throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');
1365
+ }
1366
+
1367
+ try {
1368
+ prefix = decodeURIComponent(prefix);
1369
+ } catch (err) {
1370
+ throwError(state, 'tag prefix is malformed: ' + prefix);
1371
+ }
1372
+
1373
+ state.tagMap[handle] = prefix;
1374
+ }
1375
+ };
1376
+
1377
+
1378
+ function captureSegment(state, start, end, checkJson) {
1379
+ var _position, _length, _character, _result;
1380
+
1381
+ if (start < end) {
1382
+ _result = state.input.slice(start, end);
1383
+
1384
+ if (checkJson) {
1385
+ for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
1386
+ _character = _result.charCodeAt(_position);
1387
+ if (!(_character === 0x09 ||
1388
+ (0x20 <= _character && _character <= 0x10FFFF))) {
1389
+ throwError(state, 'expected valid JSON character');
1390
+ }
1391
+ }
1392
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
1393
+ throwError(state, 'the stream contains non-printable characters');
1394
+ }
1395
+
1396
+ state.result += _result;
1397
+ }
1398
+ }
1399
+
1400
+ function mergeMappings(state, destination, source, overridableKeys) {
1401
+ var sourceKeys, key, index, quantity;
1402
+
1403
+ if (!common.isObject(source)) {
1404
+ throwError(state, 'cannot merge mappings; the provided source object is unacceptable');
1405
+ }
1406
+
1407
+ sourceKeys = Object.keys(source);
1408
+
1409
+ for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
1410
+ key = sourceKeys[index];
1411
+
1412
+ if (!_hasOwnProperty$1.call(destination, key)) {
1413
+ setProperty(destination, key, source[key]);
1414
+ overridableKeys[key] = true;
1415
+ }
1416
+ }
1417
+ }
1418
+
1419
+ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode,
1420
+ startLine, startLineStart, startPos) {
1421
+
1422
+ var index, quantity;
1423
+
1424
+ // The output is a plain object here, so keys can only be strings.
1425
+ // We need to convert keyNode to a string, but doing so can hang the process
1426
+ // (deeply nested arrays that explode exponentially using aliases).
1427
+ if (Array.isArray(keyNode)) {
1428
+ keyNode = Array.prototype.slice.call(keyNode);
1429
+
1430
+ for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
1431
+ if (Array.isArray(keyNode[index])) {
1432
+ throwError(state, 'nested arrays are not supported inside keys');
1433
+ }
1434
+
1435
+ if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {
1436
+ keyNode[index] = '[object Object]';
1437
+ }
1438
+ }
1439
+ }
1440
+
1441
+ // Avoid code execution in load() via toString property
1442
+ // (still use its own toString for arrays, timestamps,
1443
+ // and whatever user schema extensions happen to have @@toStringTag)
1444
+ if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {
1445
+ keyNode = '[object Object]';
1446
+ }
1447
+
1448
+
1449
+ keyNode = String(keyNode);
1450
+
1451
+ if (_result === null) {
1452
+ _result = {};
1453
+ }
1454
+
1455
+ if (keyTag === 'tag:yaml.org,2002:merge') {
1456
+ if (Array.isArray(valueNode)) {
1457
+ for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
1458
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
1459
+ }
1460
+ } else {
1461
+ mergeMappings(state, _result, valueNode, overridableKeys);
1462
+ }
1463
+ } else {
1464
+ if (!state.json &&
1465
+ !_hasOwnProperty$1.call(overridableKeys, keyNode) &&
1466
+ _hasOwnProperty$1.call(_result, keyNode)) {
1467
+ state.line = startLine || state.line;
1468
+ state.lineStart = startLineStart || state.lineStart;
1469
+ state.position = startPos || state.position;
1470
+ throwError(state, 'duplicated mapping key');
1471
+ }
1472
+
1473
+ setProperty(_result, keyNode, valueNode);
1474
+ delete overridableKeys[keyNode];
1475
+ }
1476
+
1477
+ return _result;
1478
+ }
1479
+
1480
+ function readLineBreak(state) {
1481
+ var ch;
1482
+
1483
+ ch = state.input.charCodeAt(state.position);
1484
+
1485
+ if (ch === 0x0A/* LF */) {
1486
+ state.position++;
1487
+ } else if (ch === 0x0D/* CR */) {
1488
+ state.position++;
1489
+ if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {
1490
+ state.position++;
1491
+ }
1492
+ } else {
1493
+ throwError(state, 'a line break is expected');
1494
+ }
1495
+
1496
+ state.line += 1;
1497
+ state.lineStart = state.position;
1498
+ state.firstTabInLine = -1;
1499
+ }
1500
+
1501
+ function skipSeparationSpace(state, allowComments, checkIndent) {
1502
+ var lineBreaks = 0,
1503
+ ch = state.input.charCodeAt(state.position);
1504
+
1505
+ while (ch !== 0) {
1506
+ while (is_WHITE_SPACE(ch)) {
1507
+ if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) {
1508
+ state.firstTabInLine = state.position;
1509
+ }
1510
+ ch = state.input.charCodeAt(++state.position);
1511
+ }
1512
+
1513
+ if (allowComments && ch === 0x23/* # */) {
1514
+ do {
1515
+ ch = state.input.charCodeAt(++state.position);
1516
+ } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);
1517
+ }
1518
+
1519
+ if (is_EOL(ch)) {
1520
+ readLineBreak(state);
1521
+
1522
+ ch = state.input.charCodeAt(state.position);
1523
+ lineBreaks++;
1524
+ state.lineIndent = 0;
1525
+
1526
+ while (ch === 0x20/* Space */) {
1527
+ state.lineIndent++;
1528
+ ch = state.input.charCodeAt(++state.position);
1529
+ }
1530
+ } else {
1531
+ break;
1532
+ }
1533
+ }
1534
+
1535
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
1536
+ throwWarning(state, 'deficient indentation');
1537
+ }
1538
+
1539
+ return lineBreaks;
1540
+ }
1541
+
1542
+ function testDocumentSeparator(state) {
1543
+ var _position = state.position,
1544
+ ch;
1545
+
1546
+ ch = state.input.charCodeAt(_position);
1547
+
1548
+ // Condition state.position === state.lineStart is tested
1549
+ // in parent on each call, for efficiency. No needs to test here again.
1550
+ if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&
1551
+ ch === state.input.charCodeAt(_position + 1) &&
1552
+ ch === state.input.charCodeAt(_position + 2)) {
1553
+
1554
+ _position += 3;
1555
+
1556
+ ch = state.input.charCodeAt(_position);
1557
+
1558
+ if (ch === 0 || is_WS_OR_EOL(ch)) {
1559
+ return true;
1560
+ }
1561
+ }
1562
+
1563
+ return false;
1564
+ }
1565
+
1566
+ function writeFoldedLines(state, count) {
1567
+ if (count === 1) {
1568
+ state.result += ' ';
1569
+ } else if (count > 1) {
1570
+ state.result += common.repeat('\n', count - 1);
1571
+ }
1572
+ }
1573
+
1574
+
1575
+ function readPlainScalar(state, nodeIndent, withinFlowCollection) {
1576
+ var preceding,
1577
+ following,
1578
+ captureStart,
1579
+ captureEnd,
1580
+ hasPendingContent,
1581
+ _line,
1582
+ _lineStart,
1583
+ _lineIndent,
1584
+ _kind = state.kind,
1585
+ _result = state.result,
1586
+ ch;
1587
+
1588
+ ch = state.input.charCodeAt(state.position);
1589
+
1590
+ if (is_WS_OR_EOL(ch) ||
1591
+ is_FLOW_INDICATOR(ch) ||
1592
+ ch === 0x23/* # */ ||
1593
+ ch === 0x26/* & */ ||
1594
+ ch === 0x2A/* * */ ||
1595
+ ch === 0x21/* ! */ ||
1596
+ ch === 0x7C/* | */ ||
1597
+ ch === 0x3E/* > */ ||
1598
+ ch === 0x27/* ' */ ||
1599
+ ch === 0x22/* " */ ||
1600
+ ch === 0x25/* % */ ||
1601
+ ch === 0x40/* @ */ ||
1602
+ ch === 0x60/* ` */) {
1603
+ return false;
1604
+ }
1605
+
1606
+ if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {
1607
+ following = state.input.charCodeAt(state.position + 1);
1608
+
1609
+ if (is_WS_OR_EOL(following) ||
1610
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
1611
+ return false;
1612
+ }
1613
+ }
1614
+
1615
+ state.kind = 'scalar';
1616
+ state.result = '';
1617
+ captureStart = captureEnd = state.position;
1618
+ hasPendingContent = false;
1619
+
1620
+ while (ch !== 0) {
1621
+ if (ch === 0x3A/* : */) {
1622
+ following = state.input.charCodeAt(state.position + 1);
1623
+
1624
+ if (is_WS_OR_EOL(following) ||
1625
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
1626
+ break;
1627
+ }
1628
+
1629
+ } else if (ch === 0x23/* # */) {
1630
+ preceding = state.input.charCodeAt(state.position - 1);
1631
+
1632
+ if (is_WS_OR_EOL(preceding)) {
1633
+ break;
1634
+ }
1635
+
1636
+ } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
1637
+ withinFlowCollection && is_FLOW_INDICATOR(ch)) {
1638
+ break;
1639
+
1640
+ } else if (is_EOL(ch)) {
1641
+ _line = state.line;
1642
+ _lineStart = state.lineStart;
1643
+ _lineIndent = state.lineIndent;
1644
+ skipSeparationSpace(state, false, -1);
1645
+
1646
+ if (state.lineIndent >= nodeIndent) {
1647
+ hasPendingContent = true;
1648
+ ch = state.input.charCodeAt(state.position);
1649
+ continue;
1650
+ } else {
1651
+ state.position = captureEnd;
1652
+ state.line = _line;
1653
+ state.lineStart = _lineStart;
1654
+ state.lineIndent = _lineIndent;
1655
+ break;
1656
+ }
1657
+ }
1658
+
1659
+ if (hasPendingContent) {
1660
+ captureSegment(state, captureStart, captureEnd, false);
1661
+ writeFoldedLines(state, state.line - _line);
1662
+ captureStart = captureEnd = state.position;
1663
+ hasPendingContent = false;
1664
+ }
1665
+
1666
+ if (!is_WHITE_SPACE(ch)) {
1667
+ captureEnd = state.position + 1;
1668
+ }
1669
+
1670
+ ch = state.input.charCodeAt(++state.position);
1671
+ }
1672
+
1673
+ captureSegment(state, captureStart, captureEnd, false);
1674
+
1675
+ if (state.result) {
1676
+ return true;
1677
+ }
1678
+
1679
+ state.kind = _kind;
1680
+ state.result = _result;
1681
+ return false;
1682
+ }
1683
+
1684
+ function readSingleQuotedScalar(state, nodeIndent) {
1685
+ var ch,
1686
+ captureStart, captureEnd;
1687
+
1688
+ ch = state.input.charCodeAt(state.position);
1689
+
1690
+ if (ch !== 0x27/* ' */) {
1691
+ return false;
1692
+ }
1693
+
1694
+ state.kind = 'scalar';
1695
+ state.result = '';
1696
+ state.position++;
1697
+ captureStart = captureEnd = state.position;
1698
+
1699
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1700
+ if (ch === 0x27/* ' */) {
1701
+ captureSegment(state, captureStart, state.position, true);
1702
+ ch = state.input.charCodeAt(++state.position);
1703
+
1704
+ if (ch === 0x27/* ' */) {
1705
+ captureStart = state.position;
1706
+ state.position++;
1707
+ captureEnd = state.position;
1708
+ } else {
1709
+ return true;
1710
+ }
1711
+
1712
+ } else if (is_EOL(ch)) {
1713
+ captureSegment(state, captureStart, captureEnd, true);
1714
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1715
+ captureStart = captureEnd = state.position;
1716
+
1717
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1718
+ throwError(state, 'unexpected end of the document within a single quoted scalar');
1719
+
1720
+ } else {
1721
+ state.position++;
1722
+ captureEnd = state.position;
1723
+ }
1724
+ }
1725
+
1726
+ throwError(state, 'unexpected end of the stream within a single quoted scalar');
1727
+ }
1728
+
1729
+ function readDoubleQuotedScalar(state, nodeIndent) {
1730
+ var captureStart,
1731
+ captureEnd,
1732
+ hexLength,
1733
+ hexResult,
1734
+ tmp,
1735
+ ch;
1736
+
1737
+ ch = state.input.charCodeAt(state.position);
1738
+
1739
+ if (ch !== 0x22/* " */) {
1740
+ return false;
1741
+ }
1742
+
1743
+ state.kind = 'scalar';
1744
+ state.result = '';
1745
+ state.position++;
1746
+ captureStart = captureEnd = state.position;
1747
+
1748
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1749
+ if (ch === 0x22/* " */) {
1750
+ captureSegment(state, captureStart, state.position, true);
1751
+ state.position++;
1752
+ return true;
1753
+
1754
+ } else if (ch === 0x5C/* \ */) {
1755
+ captureSegment(state, captureStart, state.position, true);
1756
+ ch = state.input.charCodeAt(++state.position);
1757
+
1758
+ if (is_EOL(ch)) {
1759
+ skipSeparationSpace(state, false, nodeIndent);
1760
+
1761
+ // TODO: rework to inline fn with no type cast?
1762
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
1763
+ state.result += simpleEscapeMap[ch];
1764
+ state.position++;
1765
+
1766
+ } else if ((tmp = escapedHexLen(ch)) > 0) {
1767
+ hexLength = tmp;
1768
+ hexResult = 0;
1769
+
1770
+ for (; hexLength > 0; hexLength--) {
1771
+ ch = state.input.charCodeAt(++state.position);
1772
+
1773
+ if ((tmp = fromHexCode(ch)) >= 0) {
1774
+ hexResult = (hexResult << 4) + tmp;
1775
+
1776
+ } else {
1777
+ throwError(state, 'expected hexadecimal character');
1778
+ }
1779
+ }
1780
+
1781
+ state.result += charFromCodepoint(hexResult);
1782
+
1783
+ state.position++;
1784
+
1785
+ } else {
1786
+ throwError(state, 'unknown escape sequence');
1787
+ }
1788
+
1789
+ captureStart = captureEnd = state.position;
1790
+
1791
+ } else if (is_EOL(ch)) {
1792
+ captureSegment(state, captureStart, captureEnd, true);
1793
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1794
+ captureStart = captureEnd = state.position;
1795
+
1796
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
1797
+ throwError(state, 'unexpected end of the document within a double quoted scalar');
1798
+
1799
+ } else {
1800
+ state.position++;
1801
+ captureEnd = state.position;
1802
+ }
1803
+ }
1804
+
1805
+ throwError(state, 'unexpected end of the stream within a double quoted scalar');
1806
+ }
1807
+
1808
+ function readFlowCollection(state, nodeIndent) {
1809
+ var readNext = true,
1810
+ _line,
1811
+ _lineStart,
1812
+ _pos,
1813
+ _tag = state.tag,
1814
+ _result,
1815
+ _anchor = state.anchor,
1816
+ following,
1817
+ terminator,
1818
+ isPair,
1819
+ isExplicitPair,
1820
+ isMapping,
1821
+ overridableKeys = Object.create(null),
1822
+ keyNode,
1823
+ keyTag,
1824
+ valueNode,
1825
+ ch;
1826
+
1827
+ ch = state.input.charCodeAt(state.position);
1828
+
1829
+ if (ch === 0x5B/* [ */) {
1830
+ terminator = 0x5D;/* ] */
1831
+ isMapping = false;
1832
+ _result = [];
1833
+ } else if (ch === 0x7B/* { */) {
1834
+ terminator = 0x7D;/* } */
1835
+ isMapping = true;
1836
+ _result = {};
1837
+ } else {
1838
+ return false;
1839
+ }
1840
+
1841
+ if (state.anchor !== null) {
1842
+ state.anchorMap[state.anchor] = _result;
1843
+ }
1844
+
1845
+ ch = state.input.charCodeAt(++state.position);
1846
+
1847
+ while (ch !== 0) {
1848
+ skipSeparationSpace(state, true, nodeIndent);
1849
+
1850
+ ch = state.input.charCodeAt(state.position);
1851
+
1852
+ if (ch === terminator) {
1853
+ state.position++;
1854
+ state.tag = _tag;
1855
+ state.anchor = _anchor;
1856
+ state.kind = isMapping ? 'mapping' : 'sequence';
1857
+ state.result = _result;
1858
+ return true;
1859
+ } else if (!readNext) {
1860
+ throwError(state, 'missed comma between flow collection entries');
1861
+ } else if (ch === 0x2C/* , */) {
1862
+ // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4
1863
+ throwError(state, "expected the node content, but found ','");
1864
+ }
1865
+
1866
+ keyTag = keyNode = valueNode = null;
1867
+ isPair = isExplicitPair = false;
1868
+
1869
+ if (ch === 0x3F/* ? */) {
1870
+ following = state.input.charCodeAt(state.position + 1);
1871
+
1872
+ if (is_WS_OR_EOL(following)) {
1873
+ isPair = isExplicitPair = true;
1874
+ state.position++;
1875
+ skipSeparationSpace(state, true, nodeIndent);
1876
+ }
1877
+ }
1878
+
1879
+ _line = state.line; // Save the current line.
1880
+ _lineStart = state.lineStart;
1881
+ _pos = state.position;
1882
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1883
+ keyTag = state.tag;
1884
+ keyNode = state.result;
1885
+ skipSeparationSpace(state, true, nodeIndent);
1886
+
1887
+ ch = state.input.charCodeAt(state.position);
1888
+
1889
+ if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {
1890
+ isPair = true;
1891
+ ch = state.input.charCodeAt(++state.position);
1892
+ skipSeparationSpace(state, true, nodeIndent);
1893
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1894
+ valueNode = state.result;
1895
+ }
1896
+
1897
+ if (isMapping) {
1898
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
1899
+ } else if (isPair) {
1900
+ _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
1901
+ } else {
1902
+ _result.push(keyNode);
1903
+ }
1904
+
1905
+ skipSeparationSpace(state, true, nodeIndent);
1906
+
1907
+ ch = state.input.charCodeAt(state.position);
1908
+
1909
+ if (ch === 0x2C/* , */) {
1910
+ readNext = true;
1911
+ ch = state.input.charCodeAt(++state.position);
1912
+ } else {
1913
+ readNext = false;
1914
+ }
1915
+ }
1916
+
1917
+ throwError(state, 'unexpected end of the stream within a flow collection');
1918
+ }
1919
+
1920
+ function readBlockScalar(state, nodeIndent) {
1921
+ var captureStart,
1922
+ folding,
1923
+ chomping = CHOMPING_CLIP,
1924
+ didReadContent = false,
1925
+ detectedIndent = false,
1926
+ textIndent = nodeIndent,
1927
+ emptyLines = 0,
1928
+ atMoreIndented = false,
1929
+ tmp,
1930
+ ch;
1931
+
1932
+ ch = state.input.charCodeAt(state.position);
1933
+
1934
+ if (ch === 0x7C/* | */) {
1935
+ folding = false;
1936
+ } else if (ch === 0x3E/* > */) {
1937
+ folding = true;
1938
+ } else {
1939
+ return false;
1940
+ }
1941
+
1942
+ state.kind = 'scalar';
1943
+ state.result = '';
1944
+
1945
+ while (ch !== 0) {
1946
+ ch = state.input.charCodeAt(++state.position);
1947
+
1948
+ if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {
1949
+ if (CHOMPING_CLIP === chomping) {
1950
+ chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;
1951
+ } else {
1952
+ throwError(state, 'repeat of a chomping mode identifier');
1953
+ }
1954
+
1955
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
1956
+ if (tmp === 0) {
1957
+ throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
1958
+ } else if (!detectedIndent) {
1959
+ textIndent = nodeIndent + tmp - 1;
1960
+ detectedIndent = true;
1961
+ } else {
1962
+ throwError(state, 'repeat of an indentation width identifier');
1963
+ }
1964
+
1965
+ } else {
1966
+ break;
1967
+ }
1968
+ }
1969
+
1970
+ if (is_WHITE_SPACE(ch)) {
1971
+ do { ch = state.input.charCodeAt(++state.position); }
1972
+ while (is_WHITE_SPACE(ch));
1973
+
1974
+ if (ch === 0x23/* # */) {
1975
+ do { ch = state.input.charCodeAt(++state.position); }
1976
+ while (!is_EOL(ch) && (ch !== 0));
1977
+ }
1978
+ }
1979
+
1980
+ while (ch !== 0) {
1981
+ readLineBreak(state);
1982
+ state.lineIndent = 0;
1983
+
1984
+ ch = state.input.charCodeAt(state.position);
1985
+
1986
+ while ((!detectedIndent || state.lineIndent < textIndent) &&
1987
+ (ch === 0x20/* Space */)) {
1988
+ state.lineIndent++;
1989
+ ch = state.input.charCodeAt(++state.position);
1990
+ }
1991
+
1992
+ if (!detectedIndent && state.lineIndent > textIndent) {
1993
+ textIndent = state.lineIndent;
1994
+ }
1995
+
1996
+ if (is_EOL(ch)) {
1997
+ emptyLines++;
1998
+ continue;
1999
+ }
2000
+
2001
+ // End of the scalar.
2002
+ if (state.lineIndent < textIndent) {
2003
+
2004
+ // Perform the chomping.
2005
+ if (chomping === CHOMPING_KEEP) {
2006
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2007
+ } else if (chomping === CHOMPING_CLIP) {
2008
+ if (didReadContent) { // i.e. only if the scalar is not empty.
2009
+ state.result += '\n';
2010
+ }
2011
+ }
2012
+
2013
+ // Break this `while` cycle and go to the funciton's epilogue.
2014
+ break;
2015
+ }
2016
+
2017
+ // Folded style: use fancy rules to handle line breaks.
2018
+ if (folding) {
2019
+
2020
+ // Lines starting with white space characters (more-indented lines) are not folded.
2021
+ if (is_WHITE_SPACE(ch)) {
2022
+ atMoreIndented = true;
2023
+ // except for the first content line (cf. Example 8.1)
2024
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2025
+
2026
+ // End of more-indented block.
2027
+ } else if (atMoreIndented) {
2028
+ atMoreIndented = false;
2029
+ state.result += common.repeat('\n', emptyLines + 1);
2030
+
2031
+ // Just one line break - perceive as the same line.
2032
+ } else if (emptyLines === 0) {
2033
+ if (didReadContent) { // i.e. only if we have already read some scalar content.
2034
+ state.result += ' ';
2035
+ }
2036
+
2037
+ // Several line breaks - perceive as different lines.
2038
+ } else {
2039
+ state.result += common.repeat('\n', emptyLines);
2040
+ }
2041
+
2042
+ // Literal style: just add exact number of line breaks between content lines.
2043
+ } else {
2044
+ // Keep all line breaks except the header line break.
2045
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
2046
+ }
2047
+
2048
+ didReadContent = true;
2049
+ detectedIndent = true;
2050
+ emptyLines = 0;
2051
+ captureStart = state.position;
2052
+
2053
+ while (!is_EOL(ch) && (ch !== 0)) {
2054
+ ch = state.input.charCodeAt(++state.position);
2055
+ }
2056
+
2057
+ captureSegment(state, captureStart, state.position, false);
2058
+ }
2059
+
2060
+ return true;
2061
+ }
2062
+
2063
+ function readBlockSequence(state, nodeIndent) {
2064
+ var _line,
2065
+ _tag = state.tag,
2066
+ _anchor = state.anchor,
2067
+ _result = [],
2068
+ following,
2069
+ detected = false,
2070
+ ch;
2071
+
2072
+ // there is a leading tab before this token, so it can't be a block sequence/mapping;
2073
+ // it can still be flow sequence/mapping or a scalar
2074
+ if (state.firstTabInLine !== -1) return false;
2075
+
2076
+ if (state.anchor !== null) {
2077
+ state.anchorMap[state.anchor] = _result;
2078
+ }
2079
+
2080
+ ch = state.input.charCodeAt(state.position);
2081
+
2082
+ while (ch !== 0) {
2083
+ if (state.firstTabInLine !== -1) {
2084
+ state.position = state.firstTabInLine;
2085
+ throwError(state, 'tab characters must not be used in indentation');
2086
+ }
2087
+
2088
+ if (ch !== 0x2D/* - */) {
2089
+ break;
2090
+ }
2091
+
2092
+ following = state.input.charCodeAt(state.position + 1);
2093
+
2094
+ if (!is_WS_OR_EOL(following)) {
2095
+ break;
2096
+ }
2097
+
2098
+ detected = true;
2099
+ state.position++;
2100
+
2101
+ if (skipSeparationSpace(state, true, -1)) {
2102
+ if (state.lineIndent <= nodeIndent) {
2103
+ _result.push(null);
2104
+ ch = state.input.charCodeAt(state.position);
2105
+ continue;
2106
+ }
2107
+ }
2108
+
2109
+ _line = state.line;
2110
+ composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
2111
+ _result.push(state.result);
2112
+ skipSeparationSpace(state, true, -1);
2113
+
2114
+ ch = state.input.charCodeAt(state.position);
2115
+
2116
+ if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
2117
+ throwError(state, 'bad indentation of a sequence entry');
2118
+ } else if (state.lineIndent < nodeIndent) {
2119
+ break;
2120
+ }
2121
+ }
2122
+
2123
+ if (detected) {
2124
+ state.tag = _tag;
2125
+ state.anchor = _anchor;
2126
+ state.kind = 'sequence';
2127
+ state.result = _result;
2128
+ return true;
2129
+ }
2130
+ return false;
2131
+ }
2132
+
2133
+ function readBlockMapping(state, nodeIndent, flowIndent) {
2134
+ var following,
2135
+ allowCompact,
2136
+ _line,
2137
+ _keyLine,
2138
+ _keyLineStart,
2139
+ _keyPos,
2140
+ _tag = state.tag,
2141
+ _anchor = state.anchor,
2142
+ _result = {},
2143
+ overridableKeys = Object.create(null),
2144
+ keyTag = null,
2145
+ keyNode = null,
2146
+ valueNode = null,
2147
+ atExplicitKey = false,
2148
+ detected = false,
2149
+ ch;
2150
+
2151
+ // there is a leading tab before this token, so it can't be a block sequence/mapping;
2152
+ // it can still be flow sequence/mapping or a scalar
2153
+ if (state.firstTabInLine !== -1) return false;
2154
+
2155
+ if (state.anchor !== null) {
2156
+ state.anchorMap[state.anchor] = _result;
2157
+ }
2158
+
2159
+ ch = state.input.charCodeAt(state.position);
2160
+
2161
+ while (ch !== 0) {
2162
+ if (!atExplicitKey && state.firstTabInLine !== -1) {
2163
+ state.position = state.firstTabInLine;
2164
+ throwError(state, 'tab characters must not be used in indentation');
2165
+ }
2166
+
2167
+ following = state.input.charCodeAt(state.position + 1);
2168
+ _line = state.line; // Save the current line.
2169
+
2170
+ //
2171
+ // Explicit notation case. There are two separate blocks:
2172
+ // first for the key (denoted by "?") and second for the value (denoted by ":")
2173
+ //
2174
+ if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {
2175
+
2176
+ if (ch === 0x3F/* ? */) {
2177
+ if (atExplicitKey) {
2178
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2179
+ keyTag = keyNode = valueNode = null;
2180
+ }
2181
+
2182
+ detected = true;
2183
+ atExplicitKey = true;
2184
+ allowCompact = true;
2185
+
2186
+ } else if (atExplicitKey) {
2187
+ // i.e. 0x3A/* : */ === character after the explicit key.
2188
+ atExplicitKey = false;
2189
+ allowCompact = true;
2190
+
2191
+ } else {
2192
+ throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');
2193
+ }
2194
+
2195
+ state.position += 1;
2196
+ ch = following;
2197
+
2198
+ //
2199
+ // Implicit notation case. Flow-style node as the key first, then ":", and the value.
2200
+ //
2201
+ } else {
2202
+ _keyLine = state.line;
2203
+ _keyLineStart = state.lineStart;
2204
+ _keyPos = state.position;
2205
+
2206
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
2207
+ // Neither implicit nor explicit notation.
2208
+ // Reading is done. Go to the epilogue.
2209
+ break;
2210
+ }
2211
+
2212
+ if (state.line === _line) {
2213
+ ch = state.input.charCodeAt(state.position);
2214
+
2215
+ while (is_WHITE_SPACE(ch)) {
2216
+ ch = state.input.charCodeAt(++state.position);
2217
+ }
2218
+
2219
+ if (ch === 0x3A/* : */) {
2220
+ ch = state.input.charCodeAt(++state.position);
2221
+
2222
+ if (!is_WS_OR_EOL(ch)) {
2223
+ throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');
2224
+ }
2225
+
2226
+ if (atExplicitKey) {
2227
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2228
+ keyTag = keyNode = valueNode = null;
2229
+ }
2230
+
2231
+ detected = true;
2232
+ atExplicitKey = false;
2233
+ allowCompact = false;
2234
+ keyTag = state.tag;
2235
+ keyNode = state.result;
2236
+
2237
+ } else if (detected) {
2238
+ throwError(state, 'can not read an implicit mapping pair; a colon is missed');
2239
+
2240
+ } else {
2241
+ state.tag = _tag;
2242
+ state.anchor = _anchor;
2243
+ return true; // Keep the result of `composeNode`.
2244
+ }
2245
+
2246
+ } else if (detected) {
2247
+ throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');
2248
+
2249
+ } else {
2250
+ state.tag = _tag;
2251
+ state.anchor = _anchor;
2252
+ return true; // Keep the result of `composeNode`.
2253
+ }
2254
+ }
2255
+
2256
+ //
2257
+ // Common reading code for both explicit and implicit notations.
2258
+ //
2259
+ if (state.line === _line || state.lineIndent > nodeIndent) {
2260
+ if (atExplicitKey) {
2261
+ _keyLine = state.line;
2262
+ _keyLineStart = state.lineStart;
2263
+ _keyPos = state.position;
2264
+ }
2265
+
2266
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
2267
+ if (atExplicitKey) {
2268
+ keyNode = state.result;
2269
+ } else {
2270
+ valueNode = state.result;
2271
+ }
2272
+ }
2273
+
2274
+ if (!atExplicitKey) {
2275
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
2276
+ keyTag = keyNode = valueNode = null;
2277
+ }
2278
+
2279
+ skipSeparationSpace(state, true, -1);
2280
+ ch = state.input.charCodeAt(state.position);
2281
+ }
2282
+
2283
+ if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
2284
+ throwError(state, 'bad indentation of a mapping entry');
2285
+ } else if (state.lineIndent < nodeIndent) {
2286
+ break;
2287
+ }
2288
+ }
2289
+
2290
+ //
2291
+ // Epilogue.
2292
+ //
2293
+
2294
+ // Special case: last mapping's node contains only the key in explicit notation.
2295
+ if (atExplicitKey) {
2296
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
2297
+ }
2298
+
2299
+ // Expose the resulting mapping.
2300
+ if (detected) {
2301
+ state.tag = _tag;
2302
+ state.anchor = _anchor;
2303
+ state.kind = 'mapping';
2304
+ state.result = _result;
2305
+ }
2306
+
2307
+ return detected;
2308
+ }
2309
+
2310
+ function readTagProperty(state) {
2311
+ var _position,
2312
+ isVerbatim = false,
2313
+ isNamed = false,
2314
+ tagHandle,
2315
+ tagName,
2316
+ ch;
2317
+
2318
+ ch = state.input.charCodeAt(state.position);
2319
+
2320
+ if (ch !== 0x21/* ! */) return false;
2321
+
2322
+ if (state.tag !== null) {
2323
+ throwError(state, 'duplication of a tag property');
2324
+ }
2325
+
2326
+ ch = state.input.charCodeAt(++state.position);
2327
+
2328
+ if (ch === 0x3C/* < */) {
2329
+ isVerbatim = true;
2330
+ ch = state.input.charCodeAt(++state.position);
2331
+
2332
+ } else if (ch === 0x21/* ! */) {
2333
+ isNamed = true;
2334
+ tagHandle = '!!';
2335
+ ch = state.input.charCodeAt(++state.position);
2336
+
2337
+ } else {
2338
+ tagHandle = '!';
2339
+ }
2340
+
2341
+ _position = state.position;
2342
+
2343
+ if (isVerbatim) {
2344
+ do { ch = state.input.charCodeAt(++state.position); }
2345
+ while (ch !== 0 && ch !== 0x3E/* > */);
2346
+
2347
+ if (state.position < state.length) {
2348
+ tagName = state.input.slice(_position, state.position);
2349
+ ch = state.input.charCodeAt(++state.position);
2350
+ } else {
2351
+ throwError(state, 'unexpected end of the stream within a verbatim tag');
2352
+ }
2353
+ } else {
2354
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2355
+
2356
+ if (ch === 0x21/* ! */) {
2357
+ if (!isNamed) {
2358
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
2359
+
2360
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
2361
+ throwError(state, 'named tag handle cannot contain such characters');
2362
+ }
2363
+
2364
+ isNamed = true;
2365
+ _position = state.position + 1;
2366
+ } else {
2367
+ throwError(state, 'tag suffix cannot contain exclamation marks');
2368
+ }
2369
+ }
2370
+
2371
+ ch = state.input.charCodeAt(++state.position);
2372
+ }
2373
+
2374
+ tagName = state.input.slice(_position, state.position);
2375
+
2376
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
2377
+ throwError(state, 'tag suffix cannot contain flow indicator characters');
2378
+ }
2379
+ }
2380
+
2381
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
2382
+ throwError(state, 'tag name cannot contain such characters: ' + tagName);
2383
+ }
2384
+
2385
+ try {
2386
+ tagName = decodeURIComponent(tagName);
2387
+ } catch (err) {
2388
+ throwError(state, 'tag name is malformed: ' + tagName);
2389
+ }
2390
+
2391
+ if (isVerbatim) {
2392
+ state.tag = tagName;
2393
+
2394
+ } else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) {
2395
+ state.tag = state.tagMap[tagHandle] + tagName;
2396
+
2397
+ } else if (tagHandle === '!') {
2398
+ state.tag = '!' + tagName;
2399
+
2400
+ } else if (tagHandle === '!!') {
2401
+ state.tag = 'tag:yaml.org,2002:' + tagName;
2402
+
2403
+ } else {
2404
+ throwError(state, 'undeclared tag handle "' + tagHandle + '"');
2405
+ }
2406
+
2407
+ return true;
2408
+ }
2409
+
2410
+ function readAnchorProperty(state) {
2411
+ var _position,
2412
+ ch;
2413
+
2414
+ ch = state.input.charCodeAt(state.position);
2415
+
2416
+ if (ch !== 0x26/* & */) return false;
2417
+
2418
+ if (state.anchor !== null) {
2419
+ throwError(state, 'duplication of an anchor property');
2420
+ }
2421
+
2422
+ ch = state.input.charCodeAt(++state.position);
2423
+ _position = state.position;
2424
+
2425
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
2426
+ ch = state.input.charCodeAt(++state.position);
2427
+ }
2428
+
2429
+ if (state.position === _position) {
2430
+ throwError(state, 'name of an anchor node must contain at least one character');
2431
+ }
2432
+
2433
+ state.anchor = state.input.slice(_position, state.position);
2434
+ return true;
2435
+ }
2436
+
2437
+ function readAlias(state) {
2438
+ var _position, alias,
2439
+ ch;
2440
+
2441
+ ch = state.input.charCodeAt(state.position);
2442
+
2443
+ if (ch !== 0x2A/* * */) return false;
2444
+
2445
+ ch = state.input.charCodeAt(++state.position);
2446
+ _position = state.position;
2447
+
2448
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
2449
+ ch = state.input.charCodeAt(++state.position);
2450
+ }
2451
+
2452
+ if (state.position === _position) {
2453
+ throwError(state, 'name of an alias node must contain at least one character');
2454
+ }
2455
+
2456
+ alias = state.input.slice(_position, state.position);
2457
+
2458
+ if (!_hasOwnProperty$1.call(state.anchorMap, alias)) {
2459
+ throwError(state, 'unidentified alias "' + alias + '"');
2460
+ }
2461
+
2462
+ state.result = state.anchorMap[alias];
2463
+ skipSeparationSpace(state, true, -1);
2464
+ return true;
2465
+ }
2466
+
2467
+ function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
2468
+ var allowBlockStyles,
2469
+ allowBlockScalars,
2470
+ allowBlockCollections,
2471
+ indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this<parent
2472
+ atNewLine = false,
2473
+ hasContent = false,
2474
+ typeIndex,
2475
+ typeQuantity,
2476
+ typeList,
2477
+ type,
2478
+ flowIndent,
2479
+ blockIndent;
2480
+
2481
+ if (state.listener !== null) {
2482
+ state.listener('open', state);
2483
+ }
2484
+
2485
+ state.tag = null;
2486
+ state.anchor = null;
2487
+ state.kind = null;
2488
+ state.result = null;
2489
+
2490
+ allowBlockStyles = allowBlockScalars = allowBlockCollections =
2491
+ CONTEXT_BLOCK_OUT === nodeContext ||
2492
+ CONTEXT_BLOCK_IN === nodeContext;
2493
+
2494
+ if (allowToSeek) {
2495
+ if (skipSeparationSpace(state, true, -1)) {
2496
+ atNewLine = true;
2497
+
2498
+ if (state.lineIndent > parentIndent) {
2499
+ indentStatus = 1;
2500
+ } else if (state.lineIndent === parentIndent) {
2501
+ indentStatus = 0;
2502
+ } else if (state.lineIndent < parentIndent) {
2503
+ indentStatus = -1;
2504
+ }
2505
+ }
2506
+ }
2507
+
2508
+ if (indentStatus === 1) {
2509
+ while (readTagProperty(state) || readAnchorProperty(state)) {
2510
+ if (skipSeparationSpace(state, true, -1)) {
2511
+ atNewLine = true;
2512
+ allowBlockCollections = allowBlockStyles;
2513
+
2514
+ if (state.lineIndent > parentIndent) {
2515
+ indentStatus = 1;
2516
+ } else if (state.lineIndent === parentIndent) {
2517
+ indentStatus = 0;
2518
+ } else if (state.lineIndent < parentIndent) {
2519
+ indentStatus = -1;
2520
+ }
2521
+ } else {
2522
+ allowBlockCollections = false;
2523
+ }
2524
+ }
2525
+ }
2526
+
2527
+ if (allowBlockCollections) {
2528
+ allowBlockCollections = atNewLine || allowCompact;
2529
+ }
2530
+
2531
+ if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
2532
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
2533
+ flowIndent = parentIndent;
2534
+ } else {
2535
+ flowIndent = parentIndent + 1;
2536
+ }
2537
+
2538
+ blockIndent = state.position - state.lineStart;
2539
+
2540
+ if (indentStatus === 1) {
2541
+ if (allowBlockCollections &&
2542
+ (readBlockSequence(state, blockIndent) ||
2543
+ readBlockMapping(state, blockIndent, flowIndent)) ||
2544
+ readFlowCollection(state, flowIndent)) {
2545
+ hasContent = true;
2546
+ } else {
2547
+ if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
2548
+ readSingleQuotedScalar(state, flowIndent) ||
2549
+ readDoubleQuotedScalar(state, flowIndent)) {
2550
+ hasContent = true;
2551
+
2552
+ } else if (readAlias(state)) {
2553
+ hasContent = true;
2554
+
2555
+ if (state.tag !== null || state.anchor !== null) {
2556
+ throwError(state, 'alias node should not have any properties');
2557
+ }
2558
+
2559
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
2560
+ hasContent = true;
2561
+
2562
+ if (state.tag === null) {
2563
+ state.tag = '?';
2564
+ }
2565
+ }
2566
+
2567
+ if (state.anchor !== null) {
2568
+ state.anchorMap[state.anchor] = state.result;
2569
+ }
2570
+ }
2571
+ } else if (indentStatus === 0) {
2572
+ // Special case: block sequences are allowed to have same indentation level as the parent.
2573
+ // http://www.yaml.org/spec/1.2/spec.html#id2799784
2574
+ hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
2575
+ }
2576
+ }
2577
+
2578
+ if (state.tag === null) {
2579
+ if (state.anchor !== null) {
2580
+ state.anchorMap[state.anchor] = state.result;
2581
+ }
2582
+
2583
+ } else if (state.tag === '?') {
2584
+ // Implicit resolving is not allowed for non-scalar types, and '?'
2585
+ // non-specific tag is only automatically assigned to plain scalars.
2586
+ //
2587
+ // We only need to check kind conformity in case user explicitly assigns '?'
2588
+ // tag, for example like this: "!<?> [0]"
2589
+ //
2590
+ if (state.result !== null && state.kind !== 'scalar') {
2591
+ throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
2592
+ }
2593
+
2594
+ for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
2595
+ type = state.implicitTypes[typeIndex];
2596
+
2597
+ if (type.resolve(state.result)) { // `state.result` updated in resolver if matched
2598
+ state.result = type.construct(state.result);
2599
+ state.tag = type.tag;
2600
+ if (state.anchor !== null) {
2601
+ state.anchorMap[state.anchor] = state.result;
2602
+ }
2603
+ break;
2604
+ }
2605
+ }
2606
+ } else if (state.tag !== '!') {
2607
+ if (_hasOwnProperty$1.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
2608
+ type = state.typeMap[state.kind || 'fallback'][state.tag];
2609
+ } else {
2610
+ // looking for multi type
2611
+ type = null;
2612
+ typeList = state.typeMap.multi[state.kind || 'fallback'];
2613
+
2614
+ for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
2615
+ if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
2616
+ type = typeList[typeIndex];
2617
+ break;
2618
+ }
2619
+ }
2620
+ }
2621
+
2622
+ if (!type) {
2623
+ throwError(state, 'unknown tag !<' + state.tag + '>');
2624
+ }
2625
+
2626
+ if (state.result !== null && type.kind !== state.kind) {
2627
+ throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
2628
+ }
2629
+
2630
+ if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched
2631
+ throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');
2632
+ } else {
2633
+ state.result = type.construct(state.result, state.tag);
2634
+ if (state.anchor !== null) {
2635
+ state.anchorMap[state.anchor] = state.result;
2636
+ }
2637
+ }
2638
+ }
2639
+
2640
+ if (state.listener !== null) {
2641
+ state.listener('close', state);
2642
+ }
2643
+ return state.tag !== null || state.anchor !== null || hasContent;
2644
+ }
2645
+
2646
+ function readDocument(state) {
2647
+ var documentStart = state.position,
2648
+ _position,
2649
+ directiveName,
2650
+ directiveArgs,
2651
+ hasDirectives = false,
2652
+ ch;
2653
+
2654
+ state.version = null;
2655
+ state.checkLineBreaks = state.legacy;
2656
+ state.tagMap = Object.create(null);
2657
+ state.anchorMap = Object.create(null);
2658
+
2659
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
2660
+ skipSeparationSpace(state, true, -1);
2661
+
2662
+ ch = state.input.charCodeAt(state.position);
2663
+
2664
+ if (state.lineIndent > 0 || ch !== 0x25/* % */) {
2665
+ break;
2666
+ }
2667
+
2668
+ hasDirectives = true;
2669
+ ch = state.input.charCodeAt(++state.position);
2670
+ _position = state.position;
2671
+
2672
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2673
+ ch = state.input.charCodeAt(++state.position);
2674
+ }
2675
+
2676
+ directiveName = state.input.slice(_position, state.position);
2677
+ directiveArgs = [];
2678
+
2679
+ if (directiveName.length < 1) {
2680
+ throwError(state, 'directive name must not be less than one character in length');
2681
+ }
2682
+
2683
+ while (ch !== 0) {
2684
+ while (is_WHITE_SPACE(ch)) {
2685
+ ch = state.input.charCodeAt(++state.position);
2686
+ }
2687
+
2688
+ if (ch === 0x23/* # */) {
2689
+ do { ch = state.input.charCodeAt(++state.position); }
2690
+ while (ch !== 0 && !is_EOL(ch));
2691
+ break;
2692
+ }
2693
+
2694
+ if (is_EOL(ch)) break;
2695
+
2696
+ _position = state.position;
2697
+
2698
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
2699
+ ch = state.input.charCodeAt(++state.position);
2700
+ }
2701
+
2702
+ directiveArgs.push(state.input.slice(_position, state.position));
2703
+ }
2704
+
2705
+ if (ch !== 0) readLineBreak(state);
2706
+
2707
+ if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) {
2708
+ directiveHandlers[directiveName](state, directiveName, directiveArgs);
2709
+ } else {
2710
+ throwWarning(state, 'unknown document directive "' + directiveName + '"');
2711
+ }
2712
+ }
2713
+
2714
+ skipSeparationSpace(state, true, -1);
2715
+
2716
+ if (state.lineIndent === 0 &&
2717
+ state.input.charCodeAt(state.position) === 0x2D/* - */ &&
2718
+ state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&
2719
+ state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {
2720
+ state.position += 3;
2721
+ skipSeparationSpace(state, true, -1);
2722
+
2723
+ } else if (hasDirectives) {
2724
+ throwError(state, 'directives end mark is expected');
2725
+ }
2726
+
2727
+ composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
2728
+ skipSeparationSpace(state, true, -1);
2729
+
2730
+ if (state.checkLineBreaks &&
2731
+ PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
2732
+ throwWarning(state, 'non-ASCII line breaks are interpreted as content');
2733
+ }
2734
+
2735
+ state.documents.push(state.result);
2736
+
2737
+ if (state.position === state.lineStart && testDocumentSeparator(state)) {
2738
+
2739
+ if (state.input.charCodeAt(state.position) === 0x2E/* . */) {
2740
+ state.position += 3;
2741
+ skipSeparationSpace(state, true, -1);
2742
+ }
2743
+ return;
2744
+ }
2745
+
2746
+ if (state.position < (state.length - 1)) {
2747
+ throwError(state, 'end of the stream or a document separator is expected');
2748
+ } else {
2749
+ return;
2750
+ }
2751
+ }
2752
+
2753
+
2754
+ function loadDocuments(input, options) {
2755
+ input = String(input);
2756
+ options = options || {};
2757
+
2758
+ if (input.length !== 0) {
2759
+
2760
+ // Add tailing `\n` if not exists
2761
+ if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&
2762
+ input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {
2763
+ input += '\n';
2764
+ }
2765
+
2766
+ // Strip BOM
2767
+ if (input.charCodeAt(0) === 0xFEFF) {
2768
+ input = input.slice(1);
2769
+ }
2770
+ }
2771
+
2772
+ var state = new State$1(input, options);
2773
+
2774
+ var nullpos = input.indexOf('\0');
2775
+
2776
+ if (nullpos !== -1) {
2777
+ state.position = nullpos;
2778
+ throwError(state, 'null byte is not allowed in input');
2779
+ }
2780
+
2781
+ // Use 0 as string terminator. That significantly simplifies bounds check.
2782
+ state.input += '\0';
2783
+
2784
+ while (state.input.charCodeAt(state.position) === 0x20/* Space */) {
2785
+ state.lineIndent += 1;
2786
+ state.position += 1;
2787
+ }
2788
+
2789
+ while (state.position < (state.length - 1)) {
2790
+ readDocument(state);
2791
+ }
2792
+
2793
+ return state.documents;
2794
+ }
2795
+
2796
+
2797
+ function loadAll$1(input, iterator, options) {
2798
+ if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {
2799
+ options = iterator;
2800
+ iterator = null;
2801
+ }
2802
+
2803
+ var documents = loadDocuments(input, options);
2804
+
2805
+ if (typeof iterator !== 'function') {
2806
+ return documents;
2807
+ }
2808
+
2809
+ for (var index = 0, length = documents.length; index < length; index += 1) {
2810
+ iterator(documents[index]);
2811
+ }
2812
+ }
2813
+
2814
+
2815
+ function load$1(input, options) {
2816
+ var documents = loadDocuments(input, options);
2817
+
2818
+ if (documents.length === 0) {
2819
+ /*eslint-disable no-undefined*/
2820
+ return undefined;
2821
+ } else if (documents.length === 1) {
2822
+ return documents[0];
2823
+ }
2824
+ throw new exception('expected a single document in the stream, but found more');
2825
+ }
2826
+
2827
+
2828
+ var loadAll_1 = loadAll$1;
2829
+ var load_1 = load$1;
2830
+
2831
+ var loader = {
2832
+ loadAll: loadAll_1,
2833
+ load: load_1
2834
+ };
2835
+
2836
+ /*eslint-disable no-use-before-define*/
2837
+
2838
+
2839
+
2840
+
2841
+
2842
+ var _toString = Object.prototype.toString;
2843
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
2844
+
2845
+ var CHAR_BOM = 0xFEFF;
2846
+ var CHAR_TAB = 0x09; /* Tab */
2847
+ var CHAR_LINE_FEED = 0x0A; /* LF */
2848
+ var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */
2849
+ var CHAR_SPACE = 0x20; /* Space */
2850
+ var CHAR_EXCLAMATION = 0x21; /* ! */
2851
+ var CHAR_DOUBLE_QUOTE = 0x22; /* " */
2852
+ var CHAR_SHARP = 0x23; /* # */
2853
+ var CHAR_PERCENT = 0x25; /* % */
2854
+ var CHAR_AMPERSAND = 0x26; /* & */
2855
+ var CHAR_SINGLE_QUOTE = 0x27; /* ' */
2856
+ var CHAR_ASTERISK = 0x2A; /* * */
2857
+ var CHAR_COMMA = 0x2C; /* , */
2858
+ var CHAR_MINUS = 0x2D; /* - */
2859
+ var CHAR_COLON = 0x3A; /* : */
2860
+ var CHAR_EQUALS = 0x3D; /* = */
2861
+ var CHAR_GREATER_THAN = 0x3E; /* > */
2862
+ var CHAR_QUESTION = 0x3F; /* ? */
2863
+ var CHAR_COMMERCIAL_AT = 0x40; /* @ */
2864
+ var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */
2865
+ var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */
2866
+ var CHAR_GRAVE_ACCENT = 0x60; /* ` */
2867
+ var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */
2868
+ var CHAR_VERTICAL_LINE = 0x7C; /* | */
2869
+ var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */
2870
+
2871
+ var ESCAPE_SEQUENCES = {};
2872
+
2873
+ ESCAPE_SEQUENCES[0x00] = '\\0';
2874
+ ESCAPE_SEQUENCES[0x07] = '\\a';
2875
+ ESCAPE_SEQUENCES[0x08] = '\\b';
2876
+ ESCAPE_SEQUENCES[0x09] = '\\t';
2877
+ ESCAPE_SEQUENCES[0x0A] = '\\n';
2878
+ ESCAPE_SEQUENCES[0x0B] = '\\v';
2879
+ ESCAPE_SEQUENCES[0x0C] = '\\f';
2880
+ ESCAPE_SEQUENCES[0x0D] = '\\r';
2881
+ ESCAPE_SEQUENCES[0x1B] = '\\e';
2882
+ ESCAPE_SEQUENCES[0x22] = '\\"';
2883
+ ESCAPE_SEQUENCES[0x5C] = '\\\\';
2884
+ ESCAPE_SEQUENCES[0x85] = '\\N';
2885
+ ESCAPE_SEQUENCES[0xA0] = '\\_';
2886
+ ESCAPE_SEQUENCES[0x2028] = '\\L';
2887
+ ESCAPE_SEQUENCES[0x2029] = '\\P';
2888
+
2889
+ var DEPRECATED_BOOLEANS_SYNTAX = [
2890
+ 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
2891
+ 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
2892
+ ];
2893
+
2894
+ var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2895
+
2896
+ function compileStyleMap(schema, map) {
2897
+ var result, keys, index, length, tag, style, type;
2898
+
2899
+ if (map === null) return {};
2900
+
2901
+ result = {};
2902
+ keys = Object.keys(map);
2903
+
2904
+ for (index = 0, length = keys.length; index < length; index += 1) {
2905
+ tag = keys[index];
2906
+ style = String(map[tag]);
2907
+
2908
+ if (tag.slice(0, 2) === '!!') {
2909
+ tag = 'tag:yaml.org,2002:' + tag.slice(2);
2910
+ }
2911
+ type = schema.compiledTypeMap['fallback'][tag];
2912
+
2913
+ if (type && _hasOwnProperty.call(type.styleAliases, style)) {
2914
+ style = type.styleAliases[style];
2915
+ }
2916
+
2917
+ result[tag] = style;
2918
+ }
2919
+
2920
+ return result;
2921
+ }
2922
+
2923
+ function encodeHex(character) {
2924
+ var string, handle, length;
2925
+
2926
+ string = character.toString(16).toUpperCase();
2927
+
2928
+ if (character <= 0xFF) {
2929
+ handle = 'x';
2930
+ length = 2;
2931
+ } else if (character <= 0xFFFF) {
2932
+ handle = 'u';
2933
+ length = 4;
2934
+ } else if (character <= 0xFFFFFFFF) {
2935
+ handle = 'U';
2936
+ length = 8;
2937
+ } else {
2938
+ throw new exception('code point within a string may not be greater than 0xFFFFFFFF');
2939
+ }
2940
+
2941
+ return '\\' + handle + common.repeat('0', length - string.length) + string;
2942
+ }
2943
+
2944
+
2945
+ var QUOTING_TYPE_SINGLE = 1,
2946
+ QUOTING_TYPE_DOUBLE = 2;
2947
+
2948
+ function State(options) {
2949
+ this.schema = options['schema'] || _default;
2950
+ this.indent = Math.max(1, (options['indent'] || 2));
2951
+ this.noArrayIndent = options['noArrayIndent'] || false;
2952
+ this.skipInvalid = options['skipInvalid'] || false;
2953
+ this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
2954
+ this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
2955
+ this.sortKeys = options['sortKeys'] || false;
2956
+ this.lineWidth = options['lineWidth'] || 80;
2957
+ this.noRefs = options['noRefs'] || false;
2958
+ this.noCompatMode = options['noCompatMode'] || false;
2959
+ this.condenseFlow = options['condenseFlow'] || false;
2960
+ this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
2961
+ this.forceQuotes = options['forceQuotes'] || false;
2962
+ this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null;
2963
+
2964
+ this.implicitTypes = this.schema.compiledImplicit;
2965
+ this.explicitTypes = this.schema.compiledExplicit;
2966
+
2967
+ this.tag = null;
2968
+ this.result = '';
2969
+
2970
+ this.duplicates = [];
2971
+ this.usedDuplicates = null;
2972
+ }
2973
+
2974
+ // Indents every line in a string. Empty lines (\n only) are not indented.
2975
+ function indentString(string, spaces) {
2976
+ var ind = common.repeat(' ', spaces),
2977
+ position = 0,
2978
+ next = -1,
2979
+ result = '',
2980
+ line,
2981
+ length = string.length;
2982
+
2983
+ while (position < length) {
2984
+ next = string.indexOf('\n', position);
2985
+ if (next === -1) {
2986
+ line = string.slice(position);
2987
+ position = length;
2988
+ } else {
2989
+ line = string.slice(position, next + 1);
2990
+ position = next + 1;
2991
+ }
2992
+
2993
+ if (line.length && line !== '\n') result += ind;
2994
+
2995
+ result += line;
2996
+ }
2997
+
2998
+ return result;
2999
+ }
3000
+
3001
+ function generateNextLine(state, level) {
3002
+ return '\n' + common.repeat(' ', state.indent * level);
3003
+ }
3004
+
3005
+ function testImplicitResolving(state, str) {
3006
+ var index, length, type;
3007
+
3008
+ for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
3009
+ type = state.implicitTypes[index];
3010
+
3011
+ if (type.resolve(str)) {
3012
+ return true;
3013
+ }
3014
+ }
3015
+
3016
+ return false;
3017
+ }
3018
+
3019
+ // [33] s-white ::= s-space | s-tab
3020
+ function isWhitespace(c) {
3021
+ return c === CHAR_SPACE || c === CHAR_TAB;
3022
+ }
3023
+
3024
+ // Returns true if the character can be printed without escaping.
3025
+ // From YAML 1.2: "any allowed characters known to be non-printable
3026
+ // should also be escaped. [However,] This isn’t mandatory"
3027
+ // Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
3028
+ function isPrintable(c) {
3029
+ return (0x00020 <= c && c <= 0x00007E)
3030
+ || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)
3031
+ || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM)
3032
+ || (0x10000 <= c && c <= 0x10FFFF);
3033
+ }
3034
+
3035
+ // [34] ns-char ::= nb-char - s-white
3036
+ // [27] nb-char ::= c-printable - b-char - c-byte-order-mark
3037
+ // [26] b-char ::= b-line-feed | b-carriage-return
3038
+ // Including s-white (for some reason, examples doesn't match specs in this aspect)
3039
+ // ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark
3040
+ function isNsCharOrWhitespace(c) {
3041
+ return isPrintable(c)
3042
+ && c !== CHAR_BOM
3043
+ // - b-char
3044
+ && c !== CHAR_CARRIAGE_RETURN
3045
+ && c !== CHAR_LINE_FEED;
3046
+ }
3047
+
3048
+ // [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out
3049
+ // c = flow-in ⇒ ns-plain-safe-in
3050
+ // c = block-key ⇒ ns-plain-safe-out
3051
+ // c = flow-key ⇒ ns-plain-safe-in
3052
+ // [128] ns-plain-safe-out ::= ns-char
3053
+ // [129] ns-plain-safe-in ::= ns-char - c-flow-indicator
3054
+ // [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” )
3055
+ // | ( /* An ns-char preceding */ “#” )
3056
+ // | ( “:” /* Followed by an ns-plain-safe(c) */ )
3057
+ function isPlainSafe(c, prev, inblock) {
3058
+ var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
3059
+ var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
3060
+ return (
3061
+ // ns-plain-safe
3062
+ inblock ? // c = flow-in
3063
+ cIsNsCharOrWhitespace
3064
+ : cIsNsCharOrWhitespace
3065
+ // - c-flow-indicator
3066
+ && c !== CHAR_COMMA
3067
+ && c !== CHAR_LEFT_SQUARE_BRACKET
3068
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
3069
+ && c !== CHAR_LEFT_CURLY_BRACKET
3070
+ && c !== CHAR_RIGHT_CURLY_BRACKET
3071
+ )
3072
+ // ns-plain-char
3073
+ && c !== CHAR_SHARP // false on '#'
3074
+ && !(prev === CHAR_COLON && !cIsNsChar) // false on ': '
3075
+ || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#'
3076
+ || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]'
3077
+ }
3078
+
3079
+ // Simplified test for values allowed as the first character in plain style.
3080
+ function isPlainSafeFirst(c) {
3081
+ // Uses a subset of ns-char - c-indicator
3082
+ // where ns-char = nb-char - s-white.
3083
+ // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part
3084
+ return isPrintable(c) && c !== CHAR_BOM
3085
+ && !isWhitespace(c) // - s-white
3086
+ // - (c-indicator ::=
3087
+ // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
3088
+ && c !== CHAR_MINUS
3089
+ && c !== CHAR_QUESTION
3090
+ && c !== CHAR_COLON
3091
+ && c !== CHAR_COMMA
3092
+ && c !== CHAR_LEFT_SQUARE_BRACKET
3093
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
3094
+ && c !== CHAR_LEFT_CURLY_BRACKET
3095
+ && c !== CHAR_RIGHT_CURLY_BRACKET
3096
+ // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
3097
+ && c !== CHAR_SHARP
3098
+ && c !== CHAR_AMPERSAND
3099
+ && c !== CHAR_ASTERISK
3100
+ && c !== CHAR_EXCLAMATION
3101
+ && c !== CHAR_VERTICAL_LINE
3102
+ && c !== CHAR_EQUALS
3103
+ && c !== CHAR_GREATER_THAN
3104
+ && c !== CHAR_SINGLE_QUOTE
3105
+ && c !== CHAR_DOUBLE_QUOTE
3106
+ // | “%” | “@” | “`”)
3107
+ && c !== CHAR_PERCENT
3108
+ && c !== CHAR_COMMERCIAL_AT
3109
+ && c !== CHAR_GRAVE_ACCENT;
3110
+ }
3111
+
3112
+ // Simplified test for values allowed as the last character in plain style.
3113
+ function isPlainSafeLast(c) {
3114
+ // just not whitespace or colon, it will be checked to be plain character later
3115
+ return !isWhitespace(c) && c !== CHAR_COLON;
3116
+ }
3117
+
3118
+ // Same as 'string'.codePointAt(pos), but works in older browsers.
3119
+ function codePointAt(string, pos) {
3120
+ var first = string.charCodeAt(pos), second;
3121
+ if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) {
3122
+ second = string.charCodeAt(pos + 1);
3123
+ if (second >= 0xDC00 && second <= 0xDFFF) {
3124
+ // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
3125
+ return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
3126
+ }
3127
+ }
3128
+ return first;
3129
+ }
3130
+
3131
+ // Determines whether block indentation indicator is required.
3132
+ function needIndentIndicator(string) {
3133
+ var leadingSpaceRe = /^\n* /;
3134
+ return leadingSpaceRe.test(string);
3135
+ }
3136
+
3137
+ var STYLE_PLAIN = 1,
3138
+ STYLE_SINGLE = 2,
3139
+ STYLE_LITERAL = 3,
3140
+ STYLE_FOLDED = 4,
3141
+ STYLE_DOUBLE = 5;
3142
+
3143
+ // Determines which scalar styles are possible and returns the preferred style.
3144
+ // lineWidth = -1 => no limit.
3145
+ // Pre-conditions: str.length > 0.
3146
+ // Post-conditions:
3147
+ // STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
3148
+ // STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
3149
+ // STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).
3150
+ function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth,
3151
+ testAmbiguousType, quotingType, forceQuotes, inblock) {
3152
+
3153
+ var i;
3154
+ var char = 0;
3155
+ var prevChar = null;
3156
+ var hasLineBreak = false;
3157
+ var hasFoldableLine = false; // only checked if shouldTrackWidth
3158
+ var shouldTrackWidth = lineWidth !== -1;
3159
+ var previousLineBreak = -1; // count the first line correctly
3160
+ var plain = isPlainSafeFirst(codePointAt(string, 0))
3161
+ && isPlainSafeLast(codePointAt(string, string.length - 1));
3162
+
3163
+ if (singleLineOnly || forceQuotes) {
3164
+ // Case: no block styles.
3165
+ // Check for disallowed characters to rule out plain and single.
3166
+ for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3167
+ char = codePointAt(string, i);
3168
+ if (!isPrintable(char)) {
3169
+ return STYLE_DOUBLE;
3170
+ }
3171
+ plain = plain && isPlainSafe(char, prevChar, inblock);
3172
+ prevChar = char;
3173
+ }
3174
+ } else {
3175
+ // Case: block styles permitted.
3176
+ for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3177
+ char = codePointAt(string, i);
3178
+ if (char === CHAR_LINE_FEED) {
3179
+ hasLineBreak = true;
3180
+ // Check if any line can be folded.
3181
+ if (shouldTrackWidth) {
3182
+ hasFoldableLine = hasFoldableLine ||
3183
+ // Foldable line = too long, and not more-indented.
3184
+ (i - previousLineBreak - 1 > lineWidth &&
3185
+ string[previousLineBreak + 1] !== ' ');
3186
+ previousLineBreak = i;
3187
+ }
3188
+ } else if (!isPrintable(char)) {
3189
+ return STYLE_DOUBLE;
3190
+ }
3191
+ plain = plain && isPlainSafe(char, prevChar, inblock);
3192
+ prevChar = char;
3193
+ }
3194
+ // in case the end is missing a \n
3195
+ hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
3196
+ (i - previousLineBreak - 1 > lineWidth &&
3197
+ string[previousLineBreak + 1] !== ' '));
3198
+ }
3199
+ // Although every style can represent \n without escaping, prefer block styles
3200
+ // for multiline, since they're more readable and they don't add empty lines.
3201
+ // Also prefer folding a super-long line.
3202
+ if (!hasLineBreak && !hasFoldableLine) {
3203
+ // Strings interpretable as another type have to be quoted;
3204
+ // e.g. the string 'true' vs. the boolean true.
3205
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
3206
+ return STYLE_PLAIN;
3207
+ }
3208
+ return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
3209
+ }
3210
+ // Edge case: block indentation indicator can only have one digit.
3211
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
3212
+ return STYLE_DOUBLE;
3213
+ }
3214
+ // At this point we know block styles are valid.
3215
+ // Prefer literal style unless we want to fold.
3216
+ if (!forceQuotes) {
3217
+ return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
3218
+ }
3219
+ return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
3220
+ }
3221
+
3222
+ // Note: line breaking/folding is implemented for only the folded style.
3223
+ // NB. We drop the last trailing newline (if any) of a returned block scalar
3224
+ // since the dumper adds its own newline. This always works:
3225
+ // • No ending newline => unaffected; already using strip "-" chomping.
3226
+ // • Ending newline => removed then restored.
3227
+ // Importantly, this keeps the "+" chomp indicator from gaining an extra line.
3228
+ function writeScalar(state, string, level, iskey, inblock) {
3229
+ state.dump = (function () {
3230
+ if (string.length === 0) {
3231
+ return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
3232
+ }
3233
+ if (!state.noCompatMode) {
3234
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
3235
+ return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'");
3236
+ }
3237
+ }
3238
+
3239
+ var indent = state.indent * Math.max(1, level); // no 0-indent scalars
3240
+ // As indentation gets deeper, let the width decrease monotonically
3241
+ // to the lower bound min(state.lineWidth, 40).
3242
+ // Note that this implies
3243
+ // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
3244
+ // state.lineWidth > 40 + state.indent: width decreases until the lower bound.
3245
+ // This behaves better than a constant minimum width which disallows narrower options,
3246
+ // or an indent threshold which causes the width to suddenly increase.
3247
+ var lineWidth = state.lineWidth === -1
3248
+ ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
3249
+
3250
+ // Without knowing if keys are implicit/explicit, assume implicit for safety.
3251
+ var singleLineOnly = iskey
3252
+ // No block styles in flow mode.
3253
+ || (state.flowLevel > -1 && level >= state.flowLevel);
3254
+ function testAmbiguity(string) {
3255
+ return testImplicitResolving(state, string);
3256
+ }
3257
+
3258
+ switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth,
3259
+ testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {
3260
+
3261
+ case STYLE_PLAIN:
3262
+ return string;
3263
+ case STYLE_SINGLE:
3264
+ return "'" + string.replace(/'/g, "''") + "'";
3265
+ case STYLE_LITERAL:
3266
+ return '|' + blockHeader(string, state.indent)
3267
+ + dropEndingNewline(indentString(string, indent));
3268
+ case STYLE_FOLDED:
3269
+ return '>' + blockHeader(string, state.indent)
3270
+ + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
3271
+ case STYLE_DOUBLE:
3272
+ return '"' + escapeString(string) + '"';
3273
+ default:
3274
+ throw new exception('impossible error: invalid scalar style');
3275
+ }
3276
+ }());
3277
+ }
3278
+
3279
+ // Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
3280
+ function blockHeader(string, indentPerLevel) {
3281
+ var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';
3282
+
3283
+ // note the special case: the string '\n' counts as a "trailing" empty line.
3284
+ var clip = string[string.length - 1] === '\n';
3285
+ var keep = clip && (string[string.length - 2] === '\n' || string === '\n');
3286
+ var chomp = keep ? '+' : (clip ? '' : '-');
3287
+
3288
+ return indentIndicator + chomp + '\n';
3289
+ }
3290
+
3291
+ // (See the note for writeScalar.)
3292
+ function dropEndingNewline(string) {
3293
+ return string[string.length - 1] === '\n' ? string.slice(0, -1) : string;
3294
+ }
3295
+
3296
+ // Note: a long line without a suitable break point will exceed the width limit.
3297
+ // Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
3298
+ function foldString(string, width) {
3299
+ // In folded style, $k$ consecutive newlines output as $k+1$ newlines—
3300
+ // unless they're before or after a more-indented line, or at the very
3301
+ // beginning or end, in which case $k$ maps to $k$.
3302
+ // Therefore, parse each chunk as newline(s) followed by a content line.
3303
+ var lineRe = /(\n+)([^\n]*)/g;
3304
+
3305
+ // first line (possibly an empty line)
3306
+ var result = (function () {
3307
+ var nextLF = string.indexOf('\n');
3308
+ nextLF = nextLF !== -1 ? nextLF : string.length;
3309
+ lineRe.lastIndex = nextLF;
3310
+ return foldLine(string.slice(0, nextLF), width);
3311
+ }());
3312
+ // If we haven't reached the first content line yet, don't add an extra \n.
3313
+ var prevMoreIndented = string[0] === '\n' || string[0] === ' ';
3314
+ var moreIndented;
3315
+
3316
+ // rest of the lines
3317
+ var match;
3318
+ while ((match = lineRe.exec(string))) {
3319
+ var prefix = match[1], line = match[2];
3320
+ moreIndented = (line[0] === ' ');
3321
+ result += prefix
3322
+ + (!prevMoreIndented && !moreIndented && line !== ''
3323
+ ? '\n' : '')
3324
+ + foldLine(line, width);
3325
+ prevMoreIndented = moreIndented;
3326
+ }
3327
+
3328
+ return result;
3329
+ }
3330
+
3331
+ // Greedy line breaking.
3332
+ // Picks the longest line under the limit each time,
3333
+ // otherwise settles for the shortest line over the limit.
3334
+ // NB. More-indented lines *cannot* be folded, as that would add an extra \n.
3335
+ function foldLine(line, width) {
3336
+ if (line === '' || line[0] === ' ') return line;
3337
+
3338
+ // Since a more-indented line adds a \n, breaks can't be followed by a space.
3339
+ var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.
3340
+ var match;
3341
+ // start is an inclusive index. end, curr, and next are exclusive.
3342
+ var start = 0, end, curr = 0, next = 0;
3343
+ var result = '';
3344
+
3345
+ // Invariants: 0 <= start <= length-1.
3346
+ // 0 <= curr <= next <= max(0, length-2). curr - start <= width.
3347
+ // Inside the loop:
3348
+ // A match implies length >= 2, so curr and next are <= length-2.
3349
+ while ((match = breakRe.exec(line))) {
3350
+ next = match.index;
3351
+ // maintain invariant: curr - start <= width
3352
+ if (next - start > width) {
3353
+ end = (curr > start) ? curr : next; // derive end <= length-2
3354
+ result += '\n' + line.slice(start, end);
3355
+ // skip the space that was output as \n
3356
+ start = end + 1; // derive start <= length-1
3357
+ }
3358
+ curr = next;
3359
+ }
3360
+
3361
+ // By the invariants, start <= length-1, so there is something left over.
3362
+ // It is either the whole string or a part starting from non-whitespace.
3363
+ result += '\n';
3364
+ // Insert a break if the remainder is too long and there is a break available.
3365
+ if (line.length - start > width && curr > start) {
3366
+ result += line.slice(start, curr) + '\n' + line.slice(curr + 1);
3367
+ } else {
3368
+ result += line.slice(start);
3369
+ }
3370
+
3371
+ return result.slice(1); // drop extra \n joiner
3372
+ }
3373
+
3374
+ // Escapes a double-quoted string.
3375
+ function escapeString(string) {
3376
+ var result = '';
3377
+ var char = 0;
3378
+ var escapeSeq;
3379
+
3380
+ for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
3381
+ char = codePointAt(string, i);
3382
+ escapeSeq = ESCAPE_SEQUENCES[char];
3383
+
3384
+ if (!escapeSeq && isPrintable(char)) {
3385
+ result += string[i];
3386
+ if (char >= 0x10000) result += string[i + 1];
3387
+ } else {
3388
+ result += escapeSeq || encodeHex(char);
3389
+ }
3390
+ }
3391
+
3392
+ return result;
3393
+ }
3394
+
3395
+ function writeFlowSequence(state, level, object) {
3396
+ var _result = '',
3397
+ _tag = state.tag,
3398
+ index,
3399
+ length,
3400
+ value;
3401
+
3402
+ for (index = 0, length = object.length; index < length; index += 1) {
3403
+ value = object[index];
3404
+
3405
+ if (state.replacer) {
3406
+ value = state.replacer.call(object, String(index), value);
3407
+ }
3408
+
3409
+ // Write only valid elements, put null instead of invalid elements.
3410
+ if (writeNode(state, level, value, false, false) ||
3411
+ (typeof value === 'undefined' &&
3412
+ writeNode(state, level, null, false, false))) {
3413
+
3414
+ if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : '');
3415
+ _result += state.dump;
3416
+ }
3417
+ }
3418
+
3419
+ state.tag = _tag;
3420
+ state.dump = '[' + _result + ']';
3421
+ }
3422
+
3423
+ function writeBlockSequence(state, level, object, compact) {
3424
+ var _result = '',
3425
+ _tag = state.tag,
3426
+ index,
3427
+ length,
3428
+ value;
3429
+
3430
+ for (index = 0, length = object.length; index < length; index += 1) {
3431
+ value = object[index];
3432
+
3433
+ if (state.replacer) {
3434
+ value = state.replacer.call(object, String(index), value);
3435
+ }
3436
+
3437
+ // Write only valid elements, put null instead of invalid elements.
3438
+ if (writeNode(state, level + 1, value, true, true, false, true) ||
3439
+ (typeof value === 'undefined' &&
3440
+ writeNode(state, level + 1, null, true, true, false, true))) {
3441
+
3442
+ if (!compact || _result !== '') {
3443
+ _result += generateNextLine(state, level);
3444
+ }
3445
+
3446
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3447
+ _result += '-';
3448
+ } else {
3449
+ _result += '- ';
3450
+ }
3451
+
3452
+ _result += state.dump;
3453
+ }
3454
+ }
3455
+
3456
+ state.tag = _tag;
3457
+ state.dump = _result || '[]'; // Empty sequence if no valid values.
3458
+ }
3459
+
3460
+ function writeFlowMapping(state, level, object) {
3461
+ var _result = '',
3462
+ _tag = state.tag,
3463
+ objectKeyList = Object.keys(object),
3464
+ index,
3465
+ length,
3466
+ objectKey,
3467
+ objectValue,
3468
+ pairBuffer;
3469
+
3470
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3471
+
3472
+ pairBuffer = '';
3473
+ if (_result !== '') pairBuffer += ', ';
3474
+
3475
+ if (state.condenseFlow) pairBuffer += '"';
3476
+
3477
+ objectKey = objectKeyList[index];
3478
+ objectValue = object[objectKey];
3479
+
3480
+ if (state.replacer) {
3481
+ objectValue = state.replacer.call(object, objectKey, objectValue);
3482
+ }
3483
+
3484
+ if (!writeNode(state, level, objectKey, false, false)) {
3485
+ continue; // Skip this pair because of invalid key;
3486
+ }
3487
+
3488
+ if (state.dump.length > 1024) pairBuffer += '? ';
3489
+
3490
+ pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
3491
+
3492
+ if (!writeNode(state, level, objectValue, false, false)) {
3493
+ continue; // Skip this pair because of invalid value.
3494
+ }
3495
+
3496
+ pairBuffer += state.dump;
3497
+
3498
+ // Both key and value are valid.
3499
+ _result += pairBuffer;
3500
+ }
3501
+
3502
+ state.tag = _tag;
3503
+ state.dump = '{' + _result + '}';
3504
+ }
3505
+
3506
+ function writeBlockMapping(state, level, object, compact) {
3507
+ var _result = '',
3508
+ _tag = state.tag,
3509
+ objectKeyList = Object.keys(object),
3510
+ index,
3511
+ length,
3512
+ objectKey,
3513
+ objectValue,
3514
+ explicitPair,
3515
+ pairBuffer;
3516
+
3517
+ // Allow sorting keys so that the output file is deterministic
3518
+ if (state.sortKeys === true) {
3519
+ // Default sorting
3520
+ objectKeyList.sort();
3521
+ } else if (typeof state.sortKeys === 'function') {
3522
+ // Custom sort function
3523
+ objectKeyList.sort(state.sortKeys);
3524
+ } else if (state.sortKeys) {
3525
+ // Something is wrong
3526
+ throw new exception('sortKeys must be a boolean or a function');
3527
+ }
3528
+
3529
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3530
+ pairBuffer = '';
3531
+
3532
+ if (!compact || _result !== '') {
3533
+ pairBuffer += generateNextLine(state, level);
3534
+ }
3535
+
3536
+ objectKey = objectKeyList[index];
3537
+ objectValue = object[objectKey];
3538
+
3539
+ if (state.replacer) {
3540
+ objectValue = state.replacer.call(object, objectKey, objectValue);
3541
+ }
3542
+
3543
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
3544
+ continue; // Skip this pair because of invalid key.
3545
+ }
3546
+
3547
+ explicitPair = (state.tag !== null && state.tag !== '?') ||
3548
+ (state.dump && state.dump.length > 1024);
3549
+
3550
+ if (explicitPair) {
3551
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3552
+ pairBuffer += '?';
3553
+ } else {
3554
+ pairBuffer += '? ';
3555
+ }
3556
+ }
3557
+
3558
+ pairBuffer += state.dump;
3559
+
3560
+ if (explicitPair) {
3561
+ pairBuffer += generateNextLine(state, level);
3562
+ }
3563
+
3564
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
3565
+ continue; // Skip this pair because of invalid value.
3566
+ }
3567
+
3568
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3569
+ pairBuffer += ':';
3570
+ } else {
3571
+ pairBuffer += ': ';
3572
+ }
3573
+
3574
+ pairBuffer += state.dump;
3575
+
3576
+ // Both key and value are valid.
3577
+ _result += pairBuffer;
3578
+ }
3579
+
3580
+ state.tag = _tag;
3581
+ state.dump = _result || '{}'; // Empty mapping if no valid pairs.
3582
+ }
3583
+
3584
+ function detectType(state, object, explicit) {
3585
+ var _result, typeList, index, length, type, style;
3586
+
3587
+ typeList = explicit ? state.explicitTypes : state.implicitTypes;
3588
+
3589
+ for (index = 0, length = typeList.length; index < length; index += 1) {
3590
+ type = typeList[index];
3591
+
3592
+ if ((type.instanceOf || type.predicate) &&
3593
+ (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
3594
+ (!type.predicate || type.predicate(object))) {
3595
+
3596
+ if (explicit) {
3597
+ if (type.multi && type.representName) {
3598
+ state.tag = type.representName(object);
3599
+ } else {
3600
+ state.tag = type.tag;
3601
+ }
3602
+ } else {
3603
+ state.tag = '?';
3604
+ }
3605
+
3606
+ if (type.represent) {
3607
+ style = state.styleMap[type.tag] || type.defaultStyle;
3608
+
3609
+ if (_toString.call(type.represent) === '[object Function]') {
3610
+ _result = type.represent(object, style);
3611
+ } else if (_hasOwnProperty.call(type.represent, style)) {
3612
+ _result = type.represent[style](object, style);
3613
+ } else {
3614
+ throw new exception('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
3615
+ }
3616
+
3617
+ state.dump = _result;
3618
+ }
3619
+
3620
+ return true;
3621
+ }
3622
+ }
3623
+
3624
+ return false;
3625
+ }
3626
+
3627
+ // Serializes `object` and writes it to global `result`.
3628
+ // Returns true on success, or false on invalid object.
3629
+ //
3630
+ function writeNode(state, level, object, block, compact, iskey, isblockseq) {
3631
+ state.tag = null;
3632
+ state.dump = object;
3633
+
3634
+ if (!detectType(state, object, false)) {
3635
+ detectType(state, object, true);
3636
+ }
3637
+
3638
+ var type = _toString.call(state.dump);
3639
+ var inblock = block;
3640
+ var tagStr;
3641
+
3642
+ if (block) {
3643
+ block = (state.flowLevel < 0 || state.flowLevel > level);
3644
+ }
3645
+
3646
+ var objectOrArray = type === '[object Object]' || type === '[object Array]',
3647
+ duplicateIndex,
3648
+ duplicate;
3649
+
3650
+ if (objectOrArray) {
3651
+ duplicateIndex = state.duplicates.indexOf(object);
3652
+ duplicate = duplicateIndex !== -1;
3653
+ }
3654
+
3655
+ if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
3656
+ compact = false;
3657
+ }
3658
+
3659
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
3660
+ state.dump = '*ref_' + duplicateIndex;
3661
+ } else {
3662
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
3663
+ state.usedDuplicates[duplicateIndex] = true;
3664
+ }
3665
+ if (type === '[object Object]') {
3666
+ if (block && (Object.keys(state.dump).length !== 0)) {
3667
+ writeBlockMapping(state, level, state.dump, compact);
3668
+ if (duplicate) {
3669
+ state.dump = '&ref_' + duplicateIndex + state.dump;
3670
+ }
3671
+ } else {
3672
+ writeFlowMapping(state, level, state.dump);
3673
+ if (duplicate) {
3674
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
3675
+ }
3676
+ }
3677
+ } else if (type === '[object Array]') {
3678
+ if (block && (state.dump.length !== 0)) {
3679
+ if (state.noArrayIndent && !isblockseq && level > 0) {
3680
+ writeBlockSequence(state, level - 1, state.dump, compact);
3681
+ } else {
3682
+ writeBlockSequence(state, level, state.dump, compact);
3683
+ }
3684
+ if (duplicate) {
3685
+ state.dump = '&ref_' + duplicateIndex + state.dump;
3686
+ }
3687
+ } else {
3688
+ writeFlowSequence(state, level, state.dump);
3689
+ if (duplicate) {
3690
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
3691
+ }
3692
+ }
3693
+ } else if (type === '[object String]') {
3694
+ if (state.tag !== '?') {
3695
+ writeScalar(state, state.dump, level, iskey, inblock);
3696
+ }
3697
+ } else if (type === '[object Undefined]') {
3698
+ return false;
3699
+ } else {
3700
+ if (state.skipInvalid) return false;
3701
+ throw new exception('unacceptable kind of an object to dump ' + type);
3702
+ }
3703
+
3704
+ if (state.tag !== null && state.tag !== '?') {
3705
+ // Need to encode all characters except those allowed by the spec:
3706
+ //
3707
+ // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */
3708
+ // [36] ns-hex-digit ::= ns-dec-digit
3709
+ // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */
3710
+ // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */
3711
+ // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-”
3712
+ // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#”
3713
+ // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,”
3714
+ // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]”
3715
+ //
3716
+ // Also need to encode '!' because it has special meaning (end of tag prefix).
3717
+ //
3718
+ tagStr = encodeURI(
3719
+ state.tag[0] === '!' ? state.tag.slice(1) : state.tag
3720
+ ).replace(/!/g, '%21');
3721
+
3722
+ if (state.tag[0] === '!') {
3723
+ tagStr = '!' + tagStr;
3724
+ } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') {
3725
+ tagStr = '!!' + tagStr.slice(18);
3726
+ } else {
3727
+ tagStr = '!<' + tagStr + '>';
3728
+ }
3729
+
3730
+ state.dump = tagStr + ' ' + state.dump;
3731
+ }
3732
+ }
3733
+
3734
+ return true;
3735
+ }
3736
+
3737
+ function getDuplicateReferences(object, state) {
3738
+ var objects = [],
3739
+ duplicatesIndexes = [],
3740
+ index,
3741
+ length;
3742
+
3743
+ inspectNode(object, objects, duplicatesIndexes);
3744
+
3745
+ for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
3746
+ state.duplicates.push(objects[duplicatesIndexes[index]]);
3747
+ }
3748
+ state.usedDuplicates = new Array(length);
3749
+ }
3750
+
3751
+ function inspectNode(object, objects, duplicatesIndexes) {
3752
+ var objectKeyList,
3753
+ index,
3754
+ length;
3755
+
3756
+ if (object !== null && typeof object === 'object') {
3757
+ index = objects.indexOf(object);
3758
+ if (index !== -1) {
3759
+ if (duplicatesIndexes.indexOf(index) === -1) {
3760
+ duplicatesIndexes.push(index);
3761
+ }
3762
+ } else {
3763
+ objects.push(object);
3764
+
3765
+ if (Array.isArray(object)) {
3766
+ for (index = 0, length = object.length; index < length; index += 1) {
3767
+ inspectNode(object[index], objects, duplicatesIndexes);
3768
+ }
3769
+ } else {
3770
+ objectKeyList = Object.keys(object);
3771
+
3772
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3773
+ inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
3774
+ }
3775
+ }
3776
+ }
3777
+ }
3778
+ }
3779
+
3780
+ function dump$1(input, options) {
3781
+ options = options || {};
3782
+
3783
+ var state = new State(options);
3784
+
3785
+ if (!state.noRefs) getDuplicateReferences(input, state);
3786
+
3787
+ var value = input;
3788
+
3789
+ if (state.replacer) {
3790
+ value = state.replacer.call({ '': value }, '', value);
3791
+ }
3792
+
3793
+ if (writeNode(state, 0, value, true, true)) return state.dump + '\n';
3794
+
3795
+ return '';
3796
+ }
3797
+
3798
+ var dump_1 = dump$1;
3799
+
3800
+ var dumper = {
3801
+ dump: dump_1
3802
+ };
3803
+
3804
+ function renamed(from, to) {
3805
+ return function () {
3806
+ throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +
3807
+ 'Use yaml.' + to + ' instead, which is now safe by default.');
3808
+ };
3809
+ }
3810
+
3811
+
3812
+ var Type = type;
3813
+ var Schema = schema;
3814
+ var FAILSAFE_SCHEMA = failsafe;
3815
+ var JSON_SCHEMA = json;
3816
+ var CORE_SCHEMA = core;
3817
+ var DEFAULT_SCHEMA = _default;
3818
+ var load = loader.load;
3819
+ var loadAll = loader.loadAll;
3820
+ var dump = dumper.dump;
3821
+ var YAMLException = exception;
3822
+
3823
+ // Re-export all types in case user wants to create custom schema
3824
+ var types = {
3825
+ binary: binary,
3826
+ float: float,
3827
+ map: map,
3828
+ null: _null,
3829
+ pairs: pairs,
3830
+ set: set,
3831
+ timestamp: timestamp,
3832
+ bool: bool,
3833
+ int: int,
3834
+ merge: merge,
3835
+ omap: omap,
3836
+ seq: seq,
3837
+ str: str
3838
+ };
3839
+
3840
+ // Removed functions from JS-YAML 3.0.x
3841
+ var safeLoad = renamed('safeLoad', 'load');
3842
+ var safeLoadAll = renamed('safeLoadAll', 'loadAll');
3843
+ var safeDump = renamed('safeDump', 'dump');
3844
+
3845
+ var jsYaml = {
3846
+ Type: Type,
3847
+ Schema: Schema,
3848
+ FAILSAFE_SCHEMA: FAILSAFE_SCHEMA,
3849
+ JSON_SCHEMA: JSON_SCHEMA,
3850
+ CORE_SCHEMA: CORE_SCHEMA,
3851
+ DEFAULT_SCHEMA: DEFAULT_SCHEMA,
3852
+ load: load,
3853
+ loadAll: loadAll,
3854
+ dump: dump,
3855
+ YAMLException: YAMLException,
3856
+ types: types,
3857
+ safeLoad: safeLoad,
3858
+ safeLoadAll: safeLoadAll,
3859
+ safeDump: safeDump
3860
+ };
3861
+
3862
+ exports.CORE_SCHEMA = CORE_SCHEMA;
3863
+ exports.DEFAULT_SCHEMA = DEFAULT_SCHEMA;
3864
+ exports.FAILSAFE_SCHEMA = FAILSAFE_SCHEMA;
3865
+ exports.JSON_SCHEMA = JSON_SCHEMA;
3866
+ exports.Schema = Schema;
3867
+ exports.Type = Type;
3868
+ exports.YAMLException = YAMLException;
3869
+ exports["default"] = jsYaml;
3870
+ exports.dump = dump;
3871
+ exports.load = load;
3872
+ exports.loadAll = loadAll;
3873
+ exports.safeDump = safeDump;
3874
+ exports.safeLoad = safeLoad;
3875
+ exports.safeLoadAll = safeLoadAll;
3876
+ exports.types = types;
3877
+
3878
+ Object.defineProperty(exports, '__esModule', { value: true });
3879
+
3880
+ }));