@modern-js/utils 1.3.7 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/.eslintrc.js +9 -0
  2. package/CHANGELOG.md +31 -0
  3. package/compiled/browserslist/index.d.ts +178 -0
  4. package/compiled/browserslist/index.js +1 -0
  5. package/compiled/browserslist/license +20 -0
  6. package/compiled/browserslist/package.json +1 -0
  7. package/compiled/chalk/index.d.ts +415 -0
  8. package/compiled/chalk/index.js +1 -0
  9. package/compiled/chalk/license +9 -0
  10. package/compiled/chalk/package.json +1 -0
  11. package/compiled/chokidar/anymatch/index.d.ts +19 -0
  12. package/compiled/chokidar/fsevents.node +0 -0
  13. package/compiled/chokidar/index.js +40 -0
  14. package/compiled/chokidar/license +21 -0
  15. package/compiled/chokidar/package.json +1 -0
  16. package/compiled/chokidar/types/index.d.ts +188 -0
  17. package/compiled/commander/index.js +1 -0
  18. package/compiled/commander/license +22 -0
  19. package/compiled/commander/package.json +1 -0
  20. package/compiled/commander/typings/index.d.ts +774 -0
  21. package/compiled/debug/index.d.ts +54 -0
  22. package/compiled/debug/index.js +1 -0
  23. package/compiled/debug/license +20 -0
  24. package/compiled/debug/ms/index.d.ts +25 -0
  25. package/compiled/debug/package.json +1 -0
  26. package/compiled/execa/index.d.ts +564 -0
  27. package/compiled/execa/index.js +1 -0
  28. package/compiled/execa/license +9 -0
  29. package/compiled/execa/package.json +1 -0
  30. package/compiled/filesize/filesize.d.ts +131 -0
  31. package/compiled/filesize/index.js +9 -0
  32. package/compiled/filesize/license +28 -0
  33. package/compiled/filesize/package.json +1 -0
  34. package/compiled/fs-extra/index.d.ts +563 -0
  35. package/compiled/fs-extra/index.js +1 -0
  36. package/compiled/fs-extra/license +15 -0
  37. package/compiled/fs-extra/package.json +1 -0
  38. package/compiled/glob/index.d.ts +91 -0
  39. package/compiled/glob/index.js +1 -0
  40. package/compiled/glob/license +21 -0
  41. package/compiled/glob/minimatch/index.d.ts +204 -0
  42. package/compiled/glob/package.json +1 -0
  43. package/compiled/gzip-size/index.d.ts +96 -0
  44. package/compiled/gzip-size/index.js +1 -0
  45. package/compiled/gzip-size/license +9 -0
  46. package/compiled/gzip-size/package.json +1 -0
  47. package/compiled/import-lazy/index.d.ts +26 -0
  48. package/compiled/import-lazy/index.js +1 -0
  49. package/compiled/import-lazy/license +9 -0
  50. package/compiled/import-lazy/package.json +1 -0
  51. package/compiled/js-yaml/index.d.ts +154 -0
  52. package/compiled/js-yaml/index.js +1 -0
  53. package/compiled/js-yaml/license +21 -0
  54. package/compiled/js-yaml/package.json +1 -0
  55. package/compiled/lodash/common/array.d.ts +2126 -0
  56. package/compiled/lodash/common/collection.d.ts +1930 -0
  57. package/compiled/lodash/common/common.d.ts +280 -0
  58. package/compiled/lodash/common/date.d.ts +23 -0
  59. package/compiled/lodash/common/function.d.ts +1446 -0
  60. package/compiled/lodash/common/lang.d.ts +1693 -0
  61. package/compiled/lodash/common/math.d.ts +405 -0
  62. package/compiled/lodash/common/number.d.ts +131 -0
  63. package/compiled/lodash/common/object.d.ts +2519 -0
  64. package/compiled/lodash/common/seq.d.ts +210 -0
  65. package/compiled/lodash/common/string.d.ts +788 -0
  66. package/compiled/lodash/common/util.d.ts +1220 -0
  67. package/compiled/lodash/index.d.ts +46 -0
  68. package/compiled/lodash/index.js +9 -0
  69. package/compiled/lodash/license +47 -0
  70. package/compiled/lodash/package.json +1 -0
  71. package/compiled/pkg-up/index.d.ts +48 -0
  72. package/compiled/pkg-up/index.js +1 -0
  73. package/compiled/pkg-up/license +9 -0
  74. package/compiled/pkg-up/package.json +1 -0
  75. package/compiled/recursive-readdir/index.d.ts +21 -0
  76. package/compiled/recursive-readdir/index.js +1 -0
  77. package/compiled/recursive-readdir/license +21 -0
  78. package/compiled/recursive-readdir/package.json +1 -0
  79. package/compiled/signale/index.d.ts +162 -0
  80. package/compiled/signale/index.js +1 -0
  81. package/compiled/signale/package.json +1 -0
  82. package/compiled/strip-ansi/index.d.ts +17 -0
  83. package/compiled/strip-ansi/index.js +1 -0
  84. package/compiled/strip-ansi/license +9 -0
  85. package/compiled/strip-ansi/package.json +1 -0
  86. package/compiled/upath/index.js +1 -0
  87. package/compiled/upath/license +22 -0
  88. package/compiled/upath/package.json +1 -0
  89. package/compiled/upath/upath.d.ts +241 -0
  90. package/dist/{types/FileSizeReporter.d.ts → FileSizeReporter.d.ts} +5 -5
  91. package/dist/FileSizeReporter.js +151 -0
  92. package/dist/{types/alias.d.ts → alias.d.ts} +12 -14
  93. package/dist/alias.js +62 -0
  94. package/dist/analyzeProject.d.ts +1 -0
  95. package/dist/analyzeProject.js +44 -0
  96. package/dist/applyOptionsChain.d.ts +6 -0
  97. package/dist/applyOptionsChain.js +30 -0
  98. package/dist/clearConsole.d.ts +1 -0
  99. package/dist/clearConsole.js +9 -0
  100. package/dist/{types/compatRequire.d.ts → compatRequire.d.ts} +1 -1
  101. package/dist/compatRequire.js +28 -0
  102. package/dist/compiled.d.ts +21 -0
  103. package/dist/compiled.js +33 -0
  104. package/dist/constants.d.ts +222 -0
  105. package/dist/constants.js +277 -0
  106. package/dist/{js/modern/debug.js → debug.d.ts} +1 -3
  107. package/dist/debug.js +11 -0
  108. package/dist/emptyDir.d.ts +1 -0
  109. package/dist/emptyDir.js +19 -0
  110. package/dist/{types/ensureAbsolutePath.d.ts → ensureAbsolutePath.d.ts} +1 -1
  111. package/dist/ensureAbsolutePath.js +15 -0
  112. package/dist/{types/findExists.d.ts → findExists.d.ts} +1 -1
  113. package/dist/findExists.js +21 -0
  114. package/dist/{types/format.d.ts → format.d.ts} +3 -3
  115. package/dist/format.js +113 -0
  116. package/dist/{types/generateMetaTags.d.ts → generateMetaTags.d.ts} +3 -3
  117. package/dist/generateMetaTags.js +48 -0
  118. package/dist/{types/getBrowserslist.d.ts → getBrowserslist.d.ts} +1 -1
  119. package/dist/getBrowserslist.js +7 -0
  120. package/dist/{types/getCacheIdentifier.d.ts → getCacheIdentifier.d.ts} +3 -3
  121. package/dist/getCacheIdentifier.js +24 -0
  122. package/dist/{types/getEntryOptions.d.ts → getEntryOptions.d.ts} +1 -1
  123. package/dist/getEntryOptions.js +26 -0
  124. package/dist/{types/getPackageManager.d.ts → getPackageManager.d.ts} +1 -1
  125. package/dist/getPackageManager.js +47 -0
  126. package/dist/{types/getPort.d.ts → getPort.d.ts} +1 -1
  127. package/dist/getPort.js +62 -0
  128. package/dist/getServerConfig.d.ts +1 -0
  129. package/dist/getServerConfig.js +39 -0
  130. package/dist/{types/import.d.ts → import.d.ts} +2 -2
  131. package/dist/import.js +10 -0
  132. package/dist/{types/index.d.ts → index.d.ts} +5 -4
  133. package/dist/index.js +46 -0
  134. package/dist/{types/is → is}/index.d.ts +1 -4
  135. package/dist/is/index.js +82 -0
  136. package/dist/{types/is → is}/node-env.d.ts +1 -1
  137. package/dist/is/node-env.js +12 -0
  138. package/dist/is/platform.d.ts +2 -0
  139. package/dist/is/platform.js +10 -0
  140. package/dist/{types/is → is}/type.d.ts +1 -1
  141. package/dist/is/type.js +38 -0
  142. package/dist/logger.d.ts +63 -0
  143. package/dist/logger.js +128 -0
  144. package/dist/{types/monorepo.d.ts → monorepo.d.ts} +3 -3
  145. package/dist/monorepo.js +80 -0
  146. package/dist/{types/nodeEnv.d.ts → nodeEnv.d.ts} +1 -1
  147. package/dist/nodeEnv.js +49 -0
  148. package/dist/{types/path.d.ts → path.d.ts} +1 -1
  149. package/dist/path.js +14 -0
  150. package/dist/{types/prettyInstructions.d.ts → prettyInstructions.d.ts} +2 -2
  151. package/dist/prettyInstructions.js +64 -0
  152. package/dist/{types/printBuildError.d.ts → printBuildError.d.ts} +1 -1
  153. package/dist/printBuildError.js +43 -0
  154. package/dist/{types/readTsConfig.d.ts → readTsConfig.d.ts} +1 -1
  155. package/dist/readTsConfig.js +19 -0
  156. package/dist/{types/removeSlash.d.ts → removeSlash.d.ts} +1 -1
  157. package/dist/removeSlash.js +9 -0
  158. package/dist/{types/runtimeExports.d.ts → runtimeExports.d.ts} +3 -3
  159. package/dist/runtimeExports.js +53 -0
  160. package/dist/ssrHelpers.d.ts +4 -0
  161. package/dist/ssrHelpers.js +7 -0
  162. package/dist/storage.d.ts +5 -0
  163. package/dist/storage.js +61 -0
  164. package/dist/{types/wait.d.ts → wait.d.ts} +1 -1
  165. package/dist/wait.js +7 -0
  166. package/dist/{types/watch.d.ts → watch.d.ts} +4 -4
  167. package/dist/watch.js +64 -0
  168. package/package.json +55 -37
  169. package/tsconfig.json +3 -5
  170. package/dist/js/modern/FileSizeReporter.js +0 -156
  171. package/dist/js/modern/alias.js +0 -74
  172. package/dist/js/modern/applyOptionsChain.js +0 -27
  173. package/dist/js/modern/chalk.js +0 -2
  174. package/dist/js/modern/clearConsole.js +0 -5
  175. package/dist/js/modern/compatRequire.js +0 -26
  176. package/dist/js/modern/constants.js +0 -333
  177. package/dist/js/modern/emptyDir.js +0 -6
  178. package/dist/js/modern/ensureAbsolutePath.js +0 -9
  179. package/dist/js/modern/findExists.js +0 -16
  180. package/dist/js/modern/format.js +0 -137
  181. package/dist/js/modern/generateMetaTags.js +0 -49
  182. package/dist/js/modern/getBrowserslist.js +0 -5
  183. package/dist/js/modern/getCacheIdentifier.js +0 -20
  184. package/dist/js/modern/getEntryOptions.js +0 -24
  185. package/dist/js/modern/getPackageManager.js +0 -37
  186. package/dist/js/modern/getPort.js +0 -52
  187. package/dist/js/modern/import.js +0 -11
  188. package/dist/js/modern/index.js +0 -34
  189. package/dist/js/modern/is/index.js +0 -77
  190. package/dist/js/modern/is/node-env.js +0 -5
  191. package/dist/js/modern/is/platform.js +0 -2
  192. package/dist/js/modern/is/type.js +0 -25
  193. package/dist/js/modern/logger.js +0 -152
  194. package/dist/js/modern/monorepo.js +0 -84
  195. package/dist/js/modern/nodeEnv.js +0 -31
  196. package/dist/js/modern/path.js +0 -5
  197. package/dist/js/modern/pkgUp.js +0 -2
  198. package/dist/js/modern/prettyInstructions.js +0 -79
  199. package/dist/js/modern/printBuildError.js +0 -40
  200. package/dist/js/modern/readTsConfig.js +0 -13
  201. package/dist/js/modern/removeSlash.js +0 -3
  202. package/dist/js/modern/runtimeExports.js +0 -52
  203. package/dist/js/modern/wait.js +0 -5
  204. package/dist/js/modern/watch.js +0 -43
  205. package/dist/js/node/FileSizeReporter.js +0 -175
  206. package/dist/js/node/alias.js +0 -97
  207. package/dist/js/node/applyOptionsChain.js +0 -37
  208. package/dist/js/node/chalk.js +0 -15
  209. package/dist/js/node/clearConsole.js +0 -14
  210. package/dist/js/node/compatRequire.js +0 -41
  211. package/dist/js/node/constants.js +0 -353
  212. package/dist/js/node/debug.js +0 -19
  213. package/dist/js/node/emptyDir.js +0 -18
  214. package/dist/js/node/ensureAbsolutePath.js +0 -20
  215. package/dist/js/node/findExists.js +0 -27
  216. package/dist/js/node/format.js +0 -141
  217. package/dist/js/node/generateMetaTags.js +0 -58
  218. package/dist/js/node/getBrowserslist.js +0 -17
  219. package/dist/js/node/getCacheIdentifier.js +0 -27
  220. package/dist/js/node/getEntryOptions.js +0 -35
  221. package/dist/js/node/getPackageManager.js +0 -51
  222. package/dist/js/node/getPort.js +0 -67
  223. package/dist/js/node/import.js +0 -19
  224. package/dist/js/node/index.js +0 -465
  225. package/dist/js/node/is/index.js +0 -150
  226. package/dist/js/node/is/node-env.js +0 -23
  227. package/dist/js/node/is/platform.js +0 -14
  228. package/dist/js/node/is/type.js +0 -46
  229. package/dist/js/node/logger.js +0 -162
  230. package/dist/js/node/monorepo.js +0 -118
  231. package/dist/js/node/nodeEnv.js +0 -45
  232. package/dist/js/node/path.js +0 -24
  233. package/dist/js/node/pkgUp.js +0 -15
  234. package/dist/js/node/prettyInstructions.js +0 -95
  235. package/dist/js/node/printBuildError.js +0 -52
  236. package/dist/js/node/readTsConfig.js +0 -28
  237. package/dist/js/node/removeSlash.js +0 -18
  238. package/dist/js/node/runtimeExports.js +0 -68
  239. package/dist/js/node/wait.js +0 -12
  240. package/dist/js/node/watch.js +0 -61
  241. package/dist/js/treeshaking/FileSizeReporter.js +0 -185
  242. package/dist/js/treeshaking/alias.js +0 -72
  243. package/dist/js/treeshaking/applyOptionsChain.js +0 -31
  244. package/dist/js/treeshaking/chalk.js +0 -2
  245. package/dist/js/treeshaking/clearConsole.js +0 -5
  246. package/dist/js/treeshaking/compatRequire.js +0 -29
  247. package/dist/js/treeshaking/constants.js +0 -333
  248. package/dist/js/treeshaking/debug.js +0 -10
  249. package/dist/js/treeshaking/emptyDir.js +0 -37
  250. package/dist/js/treeshaking/ensureAbsolutePath.js +0 -11
  251. package/dist/js/treeshaking/findExists.js +0 -33
  252. package/dist/js/treeshaking/format.js +0 -167
  253. package/dist/js/treeshaking/generateMetaTags.js +0 -55
  254. package/dist/js/treeshaking/getBrowserslist.js +0 -7
  255. package/dist/js/treeshaking/getCacheIdentifier.js +0 -35
  256. package/dist/js/treeshaking/getEntryOptions.js +0 -26
  257. package/dist/js/treeshaking/getPackageManager.js +0 -101
  258. package/dist/js/treeshaking/getPort.js +0 -103
  259. package/dist/js/treeshaking/import.js +0 -11
  260. package/dist/js/treeshaking/index.js +0 -34
  261. package/dist/js/treeshaking/is/index.js +0 -81
  262. package/dist/js/treeshaking/is/node-env.js +0 -13
  263. package/dist/js/treeshaking/is/platform.js +0 -6
  264. package/dist/js/treeshaking/is/type.js +0 -27
  265. package/dist/js/treeshaking/logger.js +0 -188
  266. package/dist/js/treeshaking/monorepo.js +0 -95
  267. package/dist/js/treeshaking/nodeEnv.js +0 -108
  268. package/dist/js/treeshaking/path.js +0 -11
  269. package/dist/js/treeshaking/pkgUp.js +0 -2
  270. package/dist/js/treeshaking/prettyInstructions.js +0 -100
  271. package/dist/js/treeshaking/printBuildError.js +0 -40
  272. package/dist/js/treeshaking/readTsConfig.js +0 -13
  273. package/dist/js/treeshaking/removeSlash.js +0 -9
  274. package/dist/js/treeshaking/runtimeExports.js +0 -61
  275. package/dist/js/treeshaking/wait.js +0 -8
  276. package/dist/js/treeshaking/watch.js +0 -112
  277. package/dist/types/applyOptionsChain.d.ts +0 -6
  278. package/dist/types/chalk.d.ts +0 -2
  279. package/dist/types/clearConsole.d.ts +0 -1
  280. package/dist/types/constants.d.ts +0 -219
  281. package/dist/types/debug.d.ts +0 -8
  282. package/dist/types/emptyDir.d.ts +0 -1
  283. package/dist/types/is/platform.d.ts +0 -2
  284. package/dist/types/logger.d.ts +0 -63
  285. package/dist/types/pkgUp.d.ts +0 -2
  286. package/tests/.eslintrc.js +0 -6
  287. package/tests/__snapshots__/prettyInstructions.test.ts.snap +0 -19
  288. package/tests/applyOptionsChain.test.ts +0 -100
  289. package/tests/compatRequire.test.ts +0 -32
  290. package/tests/debug.test.ts +0 -25
  291. package/tests/ensureAbsolutePath.test.ts +0 -16
  292. package/tests/findExists.test.ts +0 -22
  293. package/tests/fixtures/browserlist/develop/package.json +0 -11
  294. package/tests/fixtures/browserlist/dotfile/.browserslistrc +0 -3
  295. package/tests/fixtures/browserlist/pkg/package.json +0 -7
  296. package/tests/fixtures/compat-require/cjs.js +0 -1
  297. package/tests/fixtures/compat-require/empty.js +0 -1
  298. package/tests/fixtures/compat-require/esm.js +0 -5
  299. package/tests/fixtures/compat-require/foo.js +0 -3
  300. package/tests/fixtures/file-exists/a.ejs +0 -0
  301. package/tests/fixtures/file-exists/a.js/.gitkeep +0 -0
  302. package/tests/fixtures/file-exists/a.mjs +0 -0
  303. package/tests/fixtures/file-exists/a.ts +0 -0
  304. package/tests/format.test.ts +0 -60
  305. package/tests/generateMetaTags.test.ts +0 -19
  306. package/tests/getBrowserslist.test.ts +0 -32
  307. package/tests/getCacheIdentifier.test.ts +0 -37
  308. package/tests/getEntryOptions.test.ts +0 -53
  309. package/tests/index.test.ts +0 -18
  310. package/tests/is.test.ts +0 -27
  311. package/tests/isPlatform.test.ts +0 -19
  312. package/tests/isType.test.ts +0 -85
  313. package/tests/logger.test.ts +0 -53
  314. package/tests/prettyInstructions.test.ts +0 -139
  315. package/tests/removeSlash.test.ts +0 -19
  316. package/tests/tsconfig.json +0 -11
  317. package/tests/wait.ts +0 -38
@@ -0,0 +1,154 @@
1
+ // Type definitions for js-yaml 4.0
2
+ // Project: https://github.com/nodeca/js-yaml
3
+ // Definitions by: Bart van der Schoor <https://github.com/Bartvds>
4
+ // Sebastian Clausen <https://github.com/sclausen>
5
+ // ExE Boss <https://github.com/ExE-Boss>
6
+ // Armaan Tobaccowalla <https://github.com/ArmaanT>
7
+ // Linus Unnebäck <https://github.com/LinusU>
8
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
9
+ // TypeScript Version: 2.2
10
+
11
+ export as namespace jsyaml;
12
+
13
+ export function load(str: string, opts?: LoadOptions): unknown;
14
+
15
+ export class Type {
16
+ constructor(tag: string, opts?: TypeConstructorOptions);
17
+ kind: 'sequence' | 'scalar' | 'mapping' | null;
18
+ resolve(data: any): boolean;
19
+ construct(data: any, type?: string): any;
20
+ instanceOf: object | null;
21
+ predicate: ((data: object) => boolean) | null;
22
+ represent: ((data: object) => any) | { [x: string]: (data: object) => any } | null;
23
+ representName: ((data: object) => any) | null;
24
+ defaultStyle: string | null;
25
+ multi: boolean;
26
+ styleAliases: { [x: string]: any };
27
+ }
28
+
29
+ export class Schema {
30
+ constructor(definition: SchemaDefinition | Type[] | Type);
31
+ extend(types: SchemaDefinition | Type[] | Type): Schema;
32
+ }
33
+
34
+ export function loadAll(str: string, iterator?: null, opts?: LoadOptions): unknown[];
35
+ export function loadAll(str: string, iterator: (doc: unknown) => void, opts?: LoadOptions): void;
36
+
37
+ export function dump(obj: any, opts?: DumpOptions): string;
38
+
39
+ export interface LoadOptions {
40
+ /** string to be used as a file path in error/warning messages. */
41
+ filename?: string | undefined;
42
+ /** function to call on warning messages. */
43
+ onWarning?(this: null, e: YAMLException): void;
44
+ /** specifies a schema to use. */
45
+ schema?: Schema | undefined;
46
+ /** compatibility with JSON.parse behaviour. */
47
+ json?: boolean | undefined;
48
+ /** listener for parse events */
49
+ listener?(this: State, eventType: EventType, state: State): void;
50
+ }
51
+
52
+ export type EventType = 'open' | 'close';
53
+
54
+ export interface State {
55
+ input: string;
56
+ filename: string | null;
57
+ schema: Schema;
58
+ onWarning: (this: null, e: YAMLException) => void;
59
+ json: boolean;
60
+ length: number;
61
+ position: number;
62
+ line: number;
63
+ lineStart: number;
64
+ lineIndent: number;
65
+ version: null | number;
66
+ checkLineBreaks: boolean;
67
+ kind: string;
68
+ result: any;
69
+ implicitTypes: Type[];
70
+ }
71
+
72
+ export interface DumpOptions {
73
+ /** indentation width to use (in spaces). */
74
+ indent?: number | undefined;
75
+ /** when true, will not add an indentation level to array elements */
76
+ noArrayIndent?: boolean | undefined;
77
+ /** do not throw on invalid types (like function in the safe schema) and skip pairs and single values with such types. */
78
+ skipInvalid?: boolean | undefined;
79
+ /** specifies level of nesting, when to switch from block to flow style for collections. -1 means block style everwhere */
80
+ flowLevel?: number | undefined;
81
+ /** Each tag may have own set of styles. - "tag" => "style" map. */
82
+ styles?: { [x: string]: any } | undefined;
83
+ /** specifies a schema to use. */
84
+ schema?: Schema | undefined;
85
+ /** if true, sort keys when dumping YAML. If a function, use the function to sort the keys. (default: false) */
86
+ sortKeys?: boolean | ((a: any, b: any) => number) | undefined;
87
+ /** set max line width. (default: 80) */
88
+ lineWidth?: number | undefined;
89
+ /** if true, don't convert duplicate objects into references (default: false) */
90
+ noRefs?: boolean | undefined;
91
+ /** if true don't try to be compatible with older yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1 (default: false) */
92
+ noCompatMode?: boolean | undefined;
93
+ /**
94
+ * if true flow sequences will be condensed, omitting the space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`.
95
+ * Can be useful when using yaml for pretty URL query params as spaces are %-encoded. (default: false).
96
+ */
97
+ condenseFlow?: boolean | undefined;
98
+ /** strings will be quoted using this quoting style. If you specify single quotes, double quotes will still be used for non-printable characters. (default: `'`) */
99
+ quotingType?: "'" | '"' | undefined;
100
+ /** if true, all non-key strings will be quoted even if they normally don't need to. (default: false) */
101
+ forceQuotes?: boolean | undefined;
102
+ /** callback `function (key, value)` called recursively on each key/value in source object (see `replacer` docs for `JSON.stringify`). */
103
+ replacer?: ((key: string, value: any) => any) | undefined;
104
+ }
105
+
106
+ export interface TypeConstructorOptions {
107
+ kind?: 'sequence' | 'scalar' | 'mapping' | undefined;
108
+ resolve?: ((data: any) => boolean) | undefined;
109
+ construct?: ((data: any, type?: string) => any) | undefined;
110
+ instanceOf?: object | undefined;
111
+ predicate?: ((data: object) => boolean) | undefined;
112
+ represent?: ((data: object) => any) | { [x: string]: (data: object) => any } | undefined;
113
+ representName?: ((data: object) => any) | undefined;
114
+ defaultStyle?: string | undefined;
115
+ multi?: boolean | undefined;
116
+ styleAliases?: { [x: string]: any } | undefined;
117
+ }
118
+
119
+ export interface SchemaDefinition {
120
+ implicit?: Type[] | undefined;
121
+ explicit?: Type[] | undefined;
122
+ }
123
+
124
+ /** only strings, arrays and plain objects: http://www.yaml.org/spec/1.2/spec.html#id2802346 */
125
+ export let FAILSAFE_SCHEMA: Schema;
126
+ /** only strings, arrays and plain objects: http://www.yaml.org/spec/1.2/spec.html#id2802346 */
127
+ export let JSON_SCHEMA: Schema;
128
+ /** same as JSON_SCHEMA: http://www.yaml.org/spec/1.2/spec.html#id2804923 */
129
+ export let CORE_SCHEMA: Schema;
130
+ /** all supported YAML types */
131
+ export let DEFAULT_SCHEMA: Schema;
132
+
133
+ export interface Mark {
134
+ buffer: string;
135
+ column: number;
136
+ line: number;
137
+ name: string;
138
+ position: number;
139
+ snippet: string;
140
+ }
141
+
142
+ export class YAMLException extends Error {
143
+ constructor(reason?: string, mark?: Mark);
144
+
145
+ toString(compact?: boolean): string;
146
+
147
+ name: string;
148
+
149
+ reason: string;
150
+
151
+ message: string;
152
+
153
+ mark: Mark;
154
+ }
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={509:(e,t,r)=>{var i=r(756);var n=r(818);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(498);e.exports.Schema=r(915);e.exports.FAILSAFE_SCHEMA=r(9);e.exports.JSON_SCHEMA=r(854);e.exports.CORE_SCHEMA=r(645);e.exports.DEFAULT_SCHEMA=r(518);e.exports.load=i.load;e.exports.loadAll=i.loadAll;e.exports.dump=n.dump;e.exports.YAMLException=r(574);e.exports.types={binary:r(385),float:r(650),map:r(671),null:r(336),pairs:r(886),set:r(938),timestamp:r(413),bool:r(568),int:r(222),merge:r(690),omap:r(590),seq:r(369),str:r(299)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},234:e=>{function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,i,n,a;if(t){a=Object.keys(t);for(r=0,i=a.length;r<i;r+=1){n=a[r];e[n]=t[n]}}return e}function repeat(e,t){var r="",i;for(i=0;i<t;i+=1){r+=e}return r}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=isNothing;e.exports.isObject=isObject;e.exports.toArray=toArray;e.exports.repeat=repeat;e.exports.isNegativeZero=isNegativeZero;e.exports.extend=extend},818:(e,t,r)=>{var i=r(234);var n=r(574);var a=r(518);var o=Object.prototype.toString;var l=Object.prototype.hasOwnProperty;var s=65279;var c=9;var u=10;var p=13;var f=32;var d=33;var h=34;var m=35;var g=37;var v=38;var w=39;var y=42;var S=44;var A=45;var b=58;var x=61;var k=62;var E=63;var _=64;var O=91;var C=93;var I=96;var L=123;var N=124;var T=125;var F={};F[0]="\\0";F[7]="\\a";F[8]="\\b";F[9]="\\t";F[10]="\\n";F[11]="\\v";F[12]="\\f";F[13]="\\r";F[27]="\\e";F[34]='\\"';F[92]="\\\\";F[133]="\\N";F[160]="\\_";F[8232]="\\L";F[8233]="\\P";var M=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var j=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var r,i,n,a,o,s,c;if(t===null)return{};r={};i=Object.keys(t);for(n=0,a=i.length;n<a;n+=1){o=i[n];s=String(t[o]);if(o.slice(0,2)==="!!"){o="tag:yaml.org,2002:"+o.slice(2)}c=e.compiledTypeMap["fallback"][o];if(c&&l.call(c.styleAliases,s)){s=c.styleAliases[s]}r[o]=s}return r}function encodeHex(e){var t,r,a;t=e.toString(16).toUpperCase();if(e<=255){r="x";a=2}else if(e<=65535){r="u";a=4}else if(e<=4294967295){r="U";a=8}else{throw new n("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+r+i.repeat("0",a-t.length)+t}var Y=1,P=2;function State(e){this.schema=e["schema"]||a;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=i.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?P:Y;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){var r=i.repeat(" ",t),n=0,a=-1,o="",l,s=e.length;while(n<s){a=e.indexOf("\n",n);if(a===-1){l=e.slice(n);n=s}else{l=e.slice(n,a+1);n=a+1}if(l.length&&l!=="\n")o+=r;o+=l}return o}function generateNextLine(e,t){return"\n"+i.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1){n=e.implicitTypes[r];if(n.resolve(t)){return true}}return false}function isWhitespace(e){return e===f||e===c}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==s||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==s&&e!==p&&e!==u}function isPlainSafe(e,t,r){var i=isNsCharOrWhitespace(e);var n=i&&!isWhitespace(e);return(r?i:i&&e!==S&&e!==O&&e!==C&&e!==L&&e!==T)&&e!==m&&!(t===b&&!n)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===m||t===b&&n}function isPlainSafeFirst(e){return isPrintable(e)&&e!==s&&!isWhitespace(e)&&e!==A&&e!==E&&e!==b&&e!==S&&e!==O&&e!==C&&e!==L&&e!==T&&e!==m&&e!==v&&e!==y&&e!==d&&e!==N&&e!==x&&e!==k&&e!==w&&e!==h&&e!==g&&e!==_&&e!==I}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==b}function codePointAt(e,t){var r=e.charCodeAt(t),i;if(r>=55296&&r<=56319&&t+1<e.length){i=e.charCodeAt(t+1);if(i>=56320&&i<=57343){return(r-55296)*1024+i-56320+65536}}return r}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var W=1,D=2,B=3,R=4,q=5;function chooseScalarStyle(e,t,r,i,n,a,o,l){var s;var c=0;var p=null;var f=false;var d=false;var h=i!==-1;var m=-1;var g=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||o){for(s=0;s<e.length;c>=65536?s+=2:s++){c=codePointAt(e,s);if(!isPrintable(c)){return q}g=g&&isPlainSafe(c,p,l);p=c}}else{for(s=0;s<e.length;c>=65536?s+=2:s++){c=codePointAt(e,s);if(c===u){f=true;if(h){d=d||s-m-1>i&&e[m+1]!==" ";m=s}}else if(!isPrintable(c)){return q}g=g&&isPlainSafe(c,p,l);p=c}d=d||h&&(s-m-1>i&&e[m+1]!==" ")}if(!f&&!d){if(g&&!o&&!n(e)){return W}return a===P?q:D}if(r>9&&needIndentIndicator(e)){return q}if(!o){return d?R:B}return a===P?q:D}function writeScalar(e,t,r,i,a){e.dump=function(){if(t.length===0){return e.quotingType===P?'""':"''"}if(!e.noCompatMode){if(M.indexOf(t)!==-1||j.test(t)){return e.quotingType===P?'"'+t+'"':"'"+t+"'"}}var o=e.indent*Math.max(1,r);var l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o);var s=i||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,s,e.indent,l,testAmbiguity,e.quotingType,e.forceQuotes&&!i,a)){case W:return t;case D:return"'"+t.replace(/'/g,"''")+"'";case B:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,o));case R:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,l),o));case q:return'"'+escapeString(t,l)+'"';default:throw new n("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var i=e[e.length-1]==="\n";var n=i&&(e[e.length-2]==="\n"||e==="\n");var a=n?"+":i?"":"-";return r+a+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var i=function(){var i=e.indexOf("\n");i=i!==-1?i:e.length;r.lastIndex=i;return foldLine(e.slice(0,i),t)}();var n=e[0]==="\n"||e[0]===" ";var a;var o;while(o=r.exec(e)){var l=o[1],s=o[2];a=s[0]===" ";i+=l+(!n&&!a&&s!==""?"\n":"")+foldLine(s,t);n=a}return i}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var i;var n=0,a,o=0,l=0;var s="";while(i=r.exec(e)){l=i.index;if(l-n>t){a=o>n?o:l;s+="\n"+e.slice(n,a);n=a+1}o=l}s+="\n";if(e.length-n>t&&o>n){s+=e.slice(n,o)+"\n"+e.slice(o+1)}else{s+=e.slice(n)}return s.slice(1)}function escapeString(e){var t="";var r=0;var i;for(var n=0;n<e.length;r>=65536?n+=2:n++){r=codePointAt(e,n);i=F[r];if(!i&&isPrintable(r)){t+=e[n];if(r>=65536)t+=e[n+1]}else{t+=i||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){var i="",n=e.tag,a,o,l;for(a=0,o=r.length;a<o;a+=1){l=r[a];if(e.replacer){l=e.replacer.call(r,String(a),l)}if(writeNode(e,t,l,false,false)||typeof l==="undefined"&&writeNode(e,t,null,false,false)){if(i!=="")i+=","+(!e.condenseFlow?" ":"");i+=e.dump}}e.tag=n;e.dump="["+i+"]"}function writeBlockSequence(e,t,r,i){var n="",a=e.tag,o,l,s;for(o=0,l=r.length;o<l;o+=1){s=r[o];if(e.replacer){s=e.replacer.call(r,String(o),s)}if(writeNode(e,t+1,s,true,true,false,true)||typeof s==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!i||n!==""){n+=generateNextLine(e,t)}if(e.dump&&u===e.dump.charCodeAt(0)){n+="-"}else{n+="- "}n+=e.dump}}e.tag=a;e.dump=n||"[]"}function writeFlowMapping(e,t,r){var i="",n=e.tag,a=Object.keys(r),o,l,s,c,u;for(o=0,l=a.length;o<l;o+=1){u="";if(i!=="")u+=", ";if(e.condenseFlow)u+='"';s=a[o];c=r[s];if(e.replacer){c=e.replacer.call(r,s,c)}if(!writeNode(e,t,s,false,false)){continue}if(e.dump.length>1024)u+="? ";u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,c,false,false)){continue}u+=e.dump;i+=u}e.tag=n;e.dump="{"+i+"}"}function writeBlockMapping(e,t,r,i){var a="",o=e.tag,l=Object.keys(r),s,c,p,f,d,h;if(e.sortKeys===true){l.sort()}else if(typeof e.sortKeys==="function"){l.sort(e.sortKeys)}else if(e.sortKeys){throw new n("sortKeys must be a boolean or a function")}for(s=0,c=l.length;s<c;s+=1){h="";if(!i||a!==""){h+=generateNextLine(e,t)}p=l[s];f=r[p];if(e.replacer){f=e.replacer.call(r,p,f)}if(!writeNode(e,t+1,p,true,true,true)){continue}d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(d){if(e.dump&&u===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(d){h+=generateNextLine(e,t)}if(!writeNode(e,t+1,f,true,d)){continue}if(e.dump&&u===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;a+=h}e.tag=o;e.dump=a||"{}"}function detectType(e,t,r){var i,a,s,c,u,p;a=r?e.explicitTypes:e.implicitTypes;for(s=0,c=a.length;s<c;s+=1){u=a[s];if((u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t==="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(r){if(u.multi&&u.representName){e.tag=u.representName(t)}else{e.tag=u.tag}}else{e.tag="?"}if(u.represent){p=e.styleMap[u.tag]||u.defaultStyle;if(o.call(u.represent)==="[object Function]"){i=u.represent(t,p)}else if(l.call(u.represent,p)){i=u.represent[p](t,p)}else{throw new n("!<"+u.tag+'> tag resolver accepts not "'+p+'" style')}e.dump=i}return true}}return false}function writeNode(e,t,r,i,a,l,s){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var c=o.call(e.dump);var u=i;var p;if(i){i=e.flowLevel<0||e.flowLevel>t}var f=c==="[object Object]"||c==="[object Array]",d,h;if(f){d=e.duplicates.indexOf(r);h=d!==-1}if(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0){a=false}if(h&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(f&&h&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(c==="[object Object]"){if(i&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,a);if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,t,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object Array]"){if(i&&e.dump.length!==0){if(e.noArrayIndent&&!s&&t>0){writeBlockSequence(e,t-1,e.dump,a)}else{writeBlockSequence(e,t,e.dump,a)}if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,t,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,l,u)}}else if(c==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new n("unacceptable kind of an object to dump "+c)}if(e.tag!==null&&e.tag!=="?"){p=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){p="!"+p}else if(p.slice(0,18)==="tag:yaml.org,2002:"){p="!!"+p.slice(18)}else{p="!<"+p+">"}e.dump=p+" "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],i=[],n,a;inspectNode(e,r,i);for(n=0,a=i.length;n<a;n+=1){t.duplicates.push(r[i[n]])}t.usedDuplicates=new Array(a)}function inspectNode(e,t,r){var i,n,a;if(e!==null&&typeof e==="object"){n=t.indexOf(e);if(n!==-1){if(r.indexOf(n)===-1){r.push(n)}}else{t.push(e);if(Array.isArray(e)){for(n=0,a=e.length;n<a;n+=1){inspectNode(e[n],t,r)}}else{i=Object.keys(e);for(n=0,a=i.length;n<a;n+=1){inspectNode(e[i[n]],t,r)}}}}}function dump(e,t){t=t||{};var r=new State(t);if(!r.noRefs)getDuplicateReferences(e,r);var i=e;if(r.replacer){i=r.replacer.call({"":i},"",i)}if(writeNode(r,0,i,true,true))return r.dump+"\n";return""}e.exports.dump=dump},574:e=>{function formatError(e,t){var r="",i=e.reason||"(unknown reason)";if(!e.mark)return i;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return i+" "+r}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},756:(e,t,r)=>{var i=r(234);var n=r(574);var a=r(80);var o=r(518);var l=Object.prototype.hasOwnProperty;var s=1;var c=2;var u=3;var p=4;var f=1;var d=2;var h=3;var m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var g=/[\x85\u2028\u2029]/;var v=/[,\[\]\{\}]/;var w=/^(?:!|!!|![a-z\-]+!)$/i;var y=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var S=new Array(256);var A=new Array(256);for(var b=0;b<256;b++){S[b]=simpleEscapeSequence(b)?1:0;A[b]=simpleEscapeSequence(b)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||o;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=a(r);return new n(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var x={YAML:function handleYamlDirective(e,t,r){var i,n,a;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(i===null){throwError(e,"ill-formed argument of the YAML directive")}n=parseInt(i[1],10);a=parseInt(i[2],10);if(n!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=a<2;if(a!==1&&a!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var i,n;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}i=r[0];n=r[1];if(!w.test(i)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(l.call(e.tagMap,i)){throwError(e,'there is a previously declared suffix for "'+i+'" tag handle')}if(!y.test(n)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{n=decodeURIComponent(n)}catch(t){throwError(e,"tag prefix is malformed: "+n)}e.tagMap[i]=n}};function captureSegment(e,t,r,i){var n,a,o,l;if(t<r){l=e.input.slice(t,r);if(i){for(n=0,a=l.length;n<a;n+=1){o=l.charCodeAt(n);if(!(o===9||32<=o&&o<=1114111)){throwError(e,"expected valid JSON character")}}}else if(m.test(l)){throwError(e,"the stream contains non-printable characters")}e.result+=l}}function mergeMappings(e,t,r,n){var a,o,s,c;if(!i.isObject(r)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}a=Object.keys(r);for(s=0,c=a.length;s<c;s+=1){o=a[s];if(!l.call(t,o)){t[o]=r[o];n[o]=true}}}function storeMappingPair(e,t,r,i,n,a,o,s,c){var u,p;if(Array.isArray(n)){n=Array.prototype.slice.call(n);for(u=0,p=n.length;u<p;u+=1){if(Array.isArray(n[u])){throwError(e,"nested arrays are not supported inside keys")}if(typeof n==="object"&&_class(n[u])==="[object Object]"){n[u]="[object Object]"}}}if(typeof n==="object"&&_class(n)==="[object Object]"){n="[object Object]"}n=String(n);if(t===null){t={}}if(i==="tag:yaml.org,2002:merge"){if(Array.isArray(a)){for(u=0,p=a.length;u<p;u+=1){mergeMappings(e,t,a[u],r)}}else{mergeMappings(e,t,a,r)}}else{if(!e.json&&!l.call(r,n)&&l.call(t,n)){e.line=o||e.line;e.lineStart=s||e.lineStart;e.position=c||e.position;throwError(e,"duplicated mapping key")}if(n==="__proto__"){Object.defineProperty(t,n,{configurable:true,enumerable:true,writable:true,value:a})}else{t[n]=a}delete r[n]}return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,r){var i=0,n=e.input.charCodeAt(e.position);while(n!==0){while(is_WHITE_SPACE(n)){if(n===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}n=e.input.charCodeAt(++e.position)}if(t&&n===35){do{n=e.input.charCodeAt(++e.position)}while(n!==10&&n!==13&&n!==0)}if(is_EOL(n)){readLineBreak(e);n=e.input.charCodeAt(e.position);i++;e.lineIndent=0;while(n===32){e.lineIndent++;n=e.input.charCodeAt(++e.position)}}else{break}}if(r!==-1&&i!==0&&e.lineIndent<r){throwWarning(e,"deficient indentation")}return i}function testDocumentSeparator(e){var t=e.position,r;r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){t+=3;r=e.input.charCodeAt(t);if(r===0||is_WS_OR_EOL(r)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=i.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var i,n,a,o,l,s,c,u,p=e.kind,f=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){n=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(n)||r&&is_FLOW_INDICATOR(n)){return false}}e.kind="scalar";e.result="";a=o=e.position;l=false;while(d!==0){if(d===58){n=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(n)||r&&is_FLOW_INDICATOR(n)){break}}else if(d===35){i=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(i)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){s=e.line;c=e.lineStart;u=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){l=true;d=e.input.charCodeAt(e.position);continue}else{e.position=o;e.line=s;e.lineStart=c;e.lineIndent=u;break}}if(l){captureSegment(e,a,o,false);writeFoldedLines(e,e.line-s);a=o=e.position;l=false}if(!is_WHITE_SPACE(d)){o=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,a,o,false);if(e.result){return true}e.kind=p;e.result=f;return false}function readSingleQuotedScalar(e,t){var r,i,n;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;i=n=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,i,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){i=e.position;e.position++;n=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,i,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));i=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,i,n,a,o,l;l=e.input.charCodeAt(e.position);if(l!==34){return false}e.kind="scalar";e.result="";e.position++;r=i=e.position;while((l=e.input.charCodeAt(e.position))!==0){if(l===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(l===92){captureSegment(e,r,e.position,true);l=e.input.charCodeAt(++e.position);if(is_EOL(l)){skipSeparationSpace(e,false,t)}else if(l<256&&S[l]){e.result+=A[l];e.position++}else if((o=escapedHexLen(l))>0){n=o;a=0;for(;n>0;n--){l=e.input.charCodeAt(++e.position);if((o=fromHexCode(l))>=0){a=(a<<4)+o}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(a);e.position++}else{throwError(e,"unknown escape sequence")}r=i=e.position}else if(is_EOL(l)){captureSegment(e,r,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,i,n,a,o=e.tag,l,c=e.anchor,u,p,f,d,h,m=Object.create(null),g,v,w,y;y=e.input.charCodeAt(e.position);if(y===91){p=93;h=false;l=[]}else if(y===123){p=125;h=true;l={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=l}y=e.input.charCodeAt(++e.position);while(y!==0){skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if(y===p){e.position++;e.tag=o;e.anchor=c;e.kind=h?"mapping":"sequence";e.result=l;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(y===44){throwError(e,"expected the node content, but found ','")}v=g=w=null;f=d=false;if(y===63){u=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(u)){f=d=true;e.position++;skipSeparationSpace(e,true,t)}}i=e.line;n=e.lineStart;a=e.position;composeNode(e,t,s,false,true);v=e.tag;g=e.result;skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if((d||e.line===i)&&y===58){f=true;y=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,s,false,true);w=e.result}if(h){storeMappingPair(e,l,m,v,g,w,i,n,a)}else if(f){l.push(storeMappingPair(e,null,m,v,g,w,i,n,a))}else{l.push(g)}skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if(y===44){r=true;y=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,n,a=f,o=false,l=false,s=t,c=0,u=false,p,m;m=e.input.charCodeAt(e.position);if(m===124){n=false}else if(m===62){n=true}else{return false}e.kind="scalar";e.result="";while(m!==0){m=e.input.charCodeAt(++e.position);if(m===43||m===45){if(f===a){a=m===43?h:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((p=fromDecimalCode(m))>=0){if(p===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!l){s=t+p-1;l=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(m)){do{m=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(m));if(m===35){do{m=e.input.charCodeAt(++e.position)}while(!is_EOL(m)&&m!==0)}}while(m!==0){readLineBreak(e);e.lineIndent=0;m=e.input.charCodeAt(e.position);while((!l||e.lineIndent<s)&&m===32){e.lineIndent++;m=e.input.charCodeAt(++e.position)}if(!l&&e.lineIndent>s){s=e.lineIndent}if(is_EOL(m)){c++;continue}if(e.lineIndent<s){if(a===h){e.result+=i.repeat("\n",o?1+c:c)}else if(a===f){if(o){e.result+="\n"}}break}if(n){if(is_WHITE_SPACE(m)){u=true;e.result+=i.repeat("\n",o?1+c:c)}else if(u){u=false;e.result+=i.repeat("\n",c+1)}else if(c===0){if(o){e.result+=" "}}else{e.result+=i.repeat("\n",c)}}else{e.result+=i.repeat("\n",o?1+c:c)}o=true;l=true;c=0;r=e.position;while(!is_EOL(m)&&m!==0){m=e.input.charCodeAt(++e.position)}captureSegment(e,r,e.position,false)}return true}function readBlockSequence(e,t){var r,i=e.tag,n=e.anchor,a=[],o,l=false,s;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=a}s=e.input.charCodeAt(e.position);while(s!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(s!==45){break}o=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(o)){break}l=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){a.push(null);s=e.input.charCodeAt(e.position);continue}}r=e.line;composeNode(e,t,u,false,true);a.push(e.result);skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if((e.line===r||e.lineIndent>t)&&s!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(l){e.tag=i;e.anchor=n;e.kind="sequence";e.result=a;return true}return false}function readBlockMapping(e,t,r){var i,n,a,o,l,s,u=e.tag,f=e.anchor,d={},h=Object.create(null),m=null,g=null,v=null,w=false,y=false,S;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=d}S=e.input.charCodeAt(e.position);while(S!==0){if(!w&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}i=e.input.charCodeAt(e.position+1);a=e.line;if((S===63||S===58)&&is_WS_OR_EOL(i)){if(S===63){if(w){storeMappingPair(e,d,h,m,g,null,o,l,s);m=g=v=null}y=true;w=true;n=true}else if(w){w=false;n=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;S=i}else{o=e.line;l=e.lineStart;s=e.position;if(!composeNode(e,r,c,false,true)){break}if(e.line===a){S=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(S)){S=e.input.charCodeAt(++e.position)}if(S===58){S=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(S)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(w){storeMappingPair(e,d,h,m,g,null,o,l,s);m=g=v=null}y=true;w=false;n=false;m=e.tag;g=e.result}else if(y){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=u;e.anchor=f;return true}}else if(y){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=u;e.anchor=f;return true}}if(e.line===a||e.lineIndent>t){if(w){o=e.line;l=e.lineStart;s=e.position}if(composeNode(e,t,p,true,n)){if(w){g=e.result}else{v=e.result}}if(!w){storeMappingPair(e,d,h,m,g,v,o,l,s);m=g=v=null}skipSeparationSpace(e,true,-1);S=e.input.charCodeAt(e.position)}if((e.line===a||e.lineIndent>t)&&S!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(w){storeMappingPair(e,d,h,m,g,null,o,l,s)}if(y){e.tag=u;e.anchor=f;e.kind="mapping";e.result=d}return y}function readTagProperty(e){var t,r=false,i=false,n,a,o;o=e.input.charCodeAt(e.position);if(o!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}o=e.input.charCodeAt(++e.position);if(o===60){r=true;o=e.input.charCodeAt(++e.position)}else if(o===33){i=true;n="!!";o=e.input.charCodeAt(++e.position)}else{n="!"}t=e.position;if(r){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&o!==62);if(e.position<e.length){a=e.input.slice(t,e.position);o=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(o!==0&&!is_WS_OR_EOL(o)){if(o===33){if(!i){n=e.input.slice(t-1,e.position+1);if(!w.test(n)){throwError(e,"named tag handle cannot contain such characters")}i=true;t=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}o=e.input.charCodeAt(++e.position)}a=e.input.slice(t,e.position);if(v.test(a)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(a&&!y.test(a)){throwError(e,"tag name cannot contain such characters: "+a)}try{a=decodeURIComponent(a)}catch(t){throwError(e,"tag name is malformed: "+a)}if(r){e.tag=a}else if(l.call(e.tagMap,n)){e.tag=e.tagMap[n]+a}else if(n==="!"){e.tag="!"+a}else if(n==="!!"){e.tag="tag:yaml.org,2002:"+a}else{throwError(e,'undeclared tag handle "'+n+'"')}return true}function readAnchorProperty(e){var t,r;r=e.input.charCodeAt(e.position);if(r!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}r=e.input.charCodeAt(++e.position);t=e.position;while(r!==0&&!is_WS_OR_EOL(r)&&!is_FLOW_INDICATOR(r)){r=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function readAlias(e){var t,r,i;i=e.input.charCodeAt(e.position);if(i!==42)return false;i=e.input.charCodeAt(++e.position);t=e.position;while(i!==0&&!is_WS_OR_EOL(i)&&!is_FLOW_INDICATOR(i)){i=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an alias node must contain at least one character")}r=e.input.slice(t,e.position);if(!l.call(e.anchorMap,r)){throwError(e,'unidentified alias "'+r+'"')}e.result=e.anchorMap[r];skipSeparationSpace(e,true,-1);return true}function composeNode(e,t,r,i,n){var a,o,f,d=1,h=false,m=false,g,v,w,y,S,A;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;a=o=f=p===r||u===r;if(i){if(skipSeparationSpace(e,true,-1)){h=true;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}}if(d===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){h=true;f=a;if(e.lineIndent>t){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent<t){d=-1}}else{f=false}}}if(f){f=h||n}if(d===1||p===r){if(s===r||c===r){S=t}else{S=t+1}A=e.position-e.lineStart;if(d===1){if(f&&(readBlockSequence(e,A)||readBlockMapping(e,A,S))||readFlowCollection(e,S)){m=true}else{if(o&&readBlockScalar(e,S)||readSingleQuotedScalar(e,S)||readDoubleQuotedScalar(e,S)){m=true}else if(readAlias(e)){m=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,S,s===r)){m=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(d===0){m=f&&readBlockSequence(e,A)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(g=0,v=e.implicitTypes.length;g<v;g+=1){y=e.implicitTypes[g];if(y.resolve(e.result)){e.result=y.construct(e.result);e.tag=y.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(l.call(e.typeMap[e.kind||"fallback"],e.tag)){y=e.typeMap[e.kind||"fallback"][e.tag]}else{y=null;w=e.typeMap.multi[e.kind||"fallback"];for(g=0,v=w.length;g<v;g+=1){if(e.tag.slice(0,w[g].tag.length)===w[g].tag){y=w[g];break}}}if(!y){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&y.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+y.kind+'", not "'+e.kind+'"')}if(!y.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=y.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||m}function readDocument(e){var t=e.position,r,i,n,a=false,o;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((o=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);o=e.input.charCodeAt(e.position);if(e.lineIndent>0||o!==37){break}a=true;o=e.input.charCodeAt(++e.position);r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}i=e.input.slice(r,e.position);n=[];if(i.length<1){throwError(e,"directive name must not be less than one character in length")}while(o!==0){while(is_WHITE_SPACE(o)){o=e.input.charCodeAt(++e.position)}if(o===35){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&!is_EOL(o));break}if(is_EOL(o))break;r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}n.push(e.input.slice(r,e.position))}if(o!==0)readLineBreak(e);if(l.call(x,i)){x[i](e,i,n)}else{throwWarning(e,'unknown document directive "'+i+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(a){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&g.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var r=new State(e,t);var i=e.indexOf("\0");if(i!==-1){r.position=i;throwError(r,"null byte is not allowed in input")}r.input+="\0";while(r.input.charCodeAt(r.position)===32){r.lineIndent+=1;r.position+=1}while(r.position<r.length-1){readDocument(r)}return r.documents}function loadAll(e,t,r){if(t!==null&&typeof t==="object"&&typeof r==="undefined"){r=t;t=null}var i=loadDocuments(e,r);if(typeof t!=="function"){return i}for(var n=0,a=i.length;n<a;n+=1){t(i[n])}}function load(e,t){var r=loadDocuments(e,t);if(r.length===0){return undefined}else if(r.length===1){return r[0]}throw new n("expected a single document in the stream, but found more")}e.exports.loadAll=loadAll;e.exports.load=load},915:(e,t,r)=>{var i=r(574);var n=r(498);function compileList(e,t){var r=[];e[t].forEach((function(e){var t=r.length;r.forEach((function(r,i){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=i}}));r[t]=e}));return r}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,r=arguments.length;t<r;t+=1){arguments[t].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){var t=[];var r=[];if(e instanceof n){r.push(e)}else if(Array.isArray(e)){r=r.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)r=r.concat(e.explicit)}else{throw new i("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof n)){throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new i("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));r.forEach((function(e){if(!(e instanceof n)){throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var a=Object.create(Schema.prototype);a.implicit=(this.implicit||[]).concat(t);a.explicit=(this.explicit||[]).concat(r);a.compiledImplicit=compileList(a,"implicit");a.compiledExplicit=compileList(a,"explicit");a.compiledTypeMap=compileMap(a.compiledImplicit,a.compiledExplicit);return a};e.exports=Schema},645:(e,t,r)=>{e.exports=r(854)},518:(e,t,r)=>{e.exports=r(645).extend({implicit:[r(413),r(690)],explicit:[r(385),r(590),r(886),r(938)]})},9:(e,t,r)=>{var i=r(915);e.exports=new i({explicit:[r(299),r(369),r(671)]})},854:(e,t,r)=>{e.exports=r(9).extend({implicit:[r(336),r(568),r(222),r(650)]})},80:(e,t,r)=>{var i=r(234);function getLine(e,t,r,i,n){var a="";var o="";var l=Math.floor(n/2)-1;if(i-t>l){a=" ... ";t=i-l+a.length}if(r-i>l){o=" ...";r=i+l-o.length}return{str:a+e.slice(t,r).replace(/\t/g,"→")+o,pos:i-t+a.length}}function padStart(e,t){return i.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var n=[0];var a=[];var o;var l=-1;while(o=r.exec(e.buffer)){a.push(o.index);n.push(o.index+o[0].length);if(e.position<=o.index&&l<0){l=n.length-2}}if(l<0)l=n.length-1;var s="",c,u;var p=Math.min(e.line+t.linesAfter,a.length).toString().length;var f=t.maxLength-(t.indent+p+3);for(c=1;c<=t.linesBefore;c++){if(l-c<0)break;u=getLine(e.buffer,n[l-c],a[l-c],e.position-(n[l]-n[l-c]),f);s=i.repeat(" ",t.indent)+padStart((e.line-c+1).toString(),p)+" | "+u.str+"\n"+s}u=getLine(e.buffer,n[l],a[l],e.position,f);s+=i.repeat(" ",t.indent)+padStart((e.line+1).toString(),p)+" | "+u.str+"\n";s+=i.repeat("-",t.indent+p+3+u.pos)+"^"+"\n";for(c=1;c<=t.linesAfter;c++){if(l+c>=a.length)break;u=getLine(e.buffer,n[l+c],a[l+c],e.position-(n[l]-n[l+c]),f);s+=i.repeat(" ",t.indent)+padStart((e.line+c+1).toString(),p)+" | "+u.str+"\n"}return s.replace(/\n$/,"")}e.exports=makeSnippet},498:(e,t,r)=>{var i=r(574);var n=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var a=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(n.indexOf(t)===-1){throw new i('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(a.indexOf(this.kind)===-1){throw new i('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},385:(e,t,r)=>{var i=r(498);var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,i=0,a=e.length,o=n;for(r=0;r<a;r++){t=o.indexOf(e.charAt(r));if(t>64)continue;if(t<0)return false;i+=6}return i%8===0}function constructYamlBinary(e){var t,r,i=e.replace(/[\r\n=]/g,""),a=i.length,o=n,l=0,s=[];for(t=0;t<a;t++){if(t%4===0&&t){s.push(l>>16&255);s.push(l>>8&255);s.push(l&255)}l=l<<6|o.indexOf(i.charAt(t))}r=a%4*6;if(r===0){s.push(l>>16&255);s.push(l>>8&255);s.push(l&255)}else if(r===18){s.push(l>>10&255);s.push(l>>2&255)}else if(r===12){s.push(l>>4&255)}return new Uint8Array(s)}function representYamlBinary(e){var t="",r=0,i,a,o=e.length,l=n;for(i=0;i<o;i++){if(i%3===0&&i){t+=l[r>>18&63];t+=l[r>>12&63];t+=l[r>>6&63];t+=l[r&63]}r=(r<<8)+e[i]}a=o%3;if(a===0){t+=l[r>>18&63];t+=l[r>>12&63];t+=l[r>>6&63];t+=l[r&63]}else if(a===2){t+=l[r>>10&63];t+=l[r>>4&63];t+=l[r<<2&63];t+=l[64]}else if(a===1){t+=l[r>>2&63];t+=l[r<<4&63];t+=l[64];t+=l[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},568:(e,t,r)=>{var i=r(498);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new i("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},650:(e,t,r)=>{var i=r(234);var n=r(498);var a=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!a.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,r;t=e.replace(/_/g,"").toLowerCase();r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}var o=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(i.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return o.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||i.isNegativeZero(e))}e.exports=new n("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},222:(e,t,r)=>{var i=r(234);var n=r(498);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,r=0,i=false,n;if(!t)return false;n=e[r];if(n==="-"||n==="+"){n=e[++r]}if(n==="0"){if(r+1===t)return true;n=e[++r];if(n==="b"){r++;for(;r<t;r++){n=e[r];if(n==="_")continue;if(n!=="0"&&n!=="1")return false;i=true}return i&&n!=="_"}if(n==="x"){r++;for(;r<t;r++){n=e[r];if(n==="_")continue;if(!isHexCode(e.charCodeAt(r)))return false;i=true}return i&&n!=="_"}if(n==="o"){r++;for(;r<t;r++){n=e[r];if(n==="_")continue;if(!isOctCode(e.charCodeAt(r)))return false;i=true}return i&&n!=="_"}}if(n==="_")return false;for(;r<t;r++){n=e[r];if(n==="_")continue;if(!isDecCode(e.charCodeAt(r))){return false}i=true}if(!i||n==="_")return false;return true}function constructYamlInteger(e){var t=e,r=1,i;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}i=t[0];if(i==="-"||i==="+"){if(i==="-")r=-1;t=t.slice(1);i=t[0]}if(t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!i.isNegativeZero(e))}e.exports=new n("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},671:(e,t,r)=>{var i=r(498);e.exports=new i("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},690:(e,t,r)=>{var i=r(498);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new i("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},336:(e,t,r)=>{var i=r(498);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new i("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},590:(e,t,r)=>{var i=r(498);var n=Object.prototype.hasOwnProperty;var a=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,i,o,l,s,c=e;for(r=0,i=c.length;r<i;r+=1){o=c[r];s=false;if(a.call(o)!=="[object Object]")return false;for(l in o){if(n.call(o,l)){if(!s)s=true;else return false}}if(!s)return false;if(t.indexOf(l)===-1)t.push(l);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}e.exports=new i("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},886:(e,t,r)=>{var i=r(498);var n=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,r,i,a,o,l=e;o=new Array(l.length);for(t=0,r=l.length;t<r;t+=1){i=l[t];if(n.call(i)!=="[object Object]")return false;a=Object.keys(i);if(a.length!==1)return false;o[t]=[a[0],i[a[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var t,r,i,n,a,o=e;a=new Array(o.length);for(t=0,r=o.length;t<r;t+=1){i=o[t];n=Object.keys(i);a[t]=[n[0],i[n[0]]]}return a}e.exports=new i("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},369:(e,t,r)=>{var i=r(498);e.exports=new i("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},938:(e,t,r)=>{var i=r(498);var n=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,r=e;for(t in r){if(n.call(r,t)){if(r[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new i("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},299:(e,t,r)=>{var i=r(498);e.exports=new i("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},413:(e,t,r)=>{var i=r(498);var n=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var a=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(n.exec(e)!==null)return true;if(a.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,i,o,l,s,c,u=0,p=null,f,d,h;t=n.exec(e);if(t===null)t=a.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];i=+t[2]-1;o=+t[3];if(!t[4]){return new Date(Date.UTC(r,i,o))}l=+t[4];s=+t[5];c=+t[6];if(t[7]){u=t[7].slice(0,3);while(u.length<3){u+="0"}u=+u}if(t[9]){f=+t[10];d=+(t[11]||0);p=(f*60+d)*6e4;if(t[9]==="-")p=-p}h=new Date(Date.UTC(r,i,o,l,s,c,u));if(p)h.setTime(h.getTime()-p);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new i("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})}};var t={};function __nccwpck_require__(r){var i=t[r];if(i!==undefined){return i.exports}var n=t[r]={exports:{}};var a=true;try{e[r](n,n.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(509);module.exports=r})();
@@ -0,0 +1,21 @@
1
+ (The MIT License)
2
+
3
+ Copyright (C) 2011-2015 by Vitaly Puzrin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"js-yaml","author":"Vladimir Zapparov <dervus.grim@gmail.com>","version":"4.1.0","license":"MIT"}