@quilted/create 0.2.44 → 0.2.45
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.
- package/CHANGELOG.md +8 -0
- package/build/esm/_virtual/index3.mjs +1 -1
- package/build/esm/_virtual/index7.mjs +2 -2
- package/build/esm/_virtual/index8.mjs +2 -2
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.mjs +2 -2
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.mjs +12 -10
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.mjs +1 -2
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.mjs +9 -9
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.mjs +14 -14
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.mjs +4 -4
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.mjs +9 -3
- package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +1 -3
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/index.mjs +39 -8
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/managers/tasks.mjs +40 -10
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/deep.mjs +2 -2
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.mjs +101 -0
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/matcher.mjs +1 -6
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/partial.mjs +6 -6
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/settings.mjs +7 -5
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/index.mjs +1 -1
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.mjs +79 -0
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/pattern.mjs +69 -29
- package/build/esm/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.mjs +4 -4
- package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +2 -2
- package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.mjs +9 -3
- package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.mjs +3 -5
- package/build/esm/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.mjs +9 -3
- package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/babel.mjs +2448 -3000
- package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.mjs +6611 -0
- package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.mjs +22 -0
- package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/yaml.mjs +1008 -1007
- package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.mjs +3878 -0
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.mjs +0 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.mjs +0 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/compose/compose-collection.mjs +67 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.mjs +3 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.mjs +13 -3
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.mjs +8 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.mjs +12 -5
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.mjs +6 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.mjs +10 -7
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.mjs +11 -3
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.mjs +14 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.mjs +20 -7
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.mjs +2 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.mjs +13 -10
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.mjs +1 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.mjs +4 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.mjs +10 -3
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.mjs +7 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.mjs +9 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.mjs +44 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.mjs +2 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +28 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.mjs +22 -4
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +53 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.mjs → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.mjs} +1 -14
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.mjs +1 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.mjs +34 -21
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.mjs +16 -9
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.mjs +2 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.mjs +2 -3
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.mjs +16 -0
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.mjs +16 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.mjs +20 -9
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.mjs +3 -6
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.mjs +48 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +10 -9
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +4 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.mjs +2 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +15 -14
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.mjs +2 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.mjs +19 -10
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.mjs +8 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.mjs +9 -17
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.mjs +40 -17
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +40 -20
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.mjs +2 -1
- package/build/esm/package.mjs +1 -1
- package/build/esm/shared/package-manager.mjs +1 -2
- package/build/esm/shared.mjs +1 -3
- package/build/esnext/_virtual/index3.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.esnext +10 -9
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.esnext +9 -9
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.esnext +14 -14
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.esnext +4 -4
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.esnext +9 -3
- package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/index.esnext +35 -4
- package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/managers/tasks.esnext +14 -2
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.esnext +92 -0
- package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/matcher.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/settings.esnext +3 -2
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.esnext +58 -0
- package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/pattern.esnext +27 -6
- package/build/esnext/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.esnext +4 -4
- package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.esnext +6 -4
- package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.esnext +8 -3
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/babel.esnext +6956 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.esnext +4320 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.esnext +12888 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/yaml.esnext +4156 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.esnext +2369 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/compose/compose-collection.esnext +60 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.esnext +11 -3
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.esnext +13 -5
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.esnext +13 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +6 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.esnext +11 -6
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.esnext +12 -3
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +14 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.esnext +20 -9
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.esnext +8 -13
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.esnext +5 -3
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.esnext +10 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.esnext +7 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.esnext +8 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.esnext +36 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.esnext +2 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +31 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.esnext +20 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +8 -38
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.esnext → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.esnext} +1 -13
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.esnext +1 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.esnext +45 -33
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.esnext +12 -9
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.esnext +3 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.esnext +2 -3
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.esnext +17 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.esnext +17 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.esnext +22 -11
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.esnext +3 -6
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.esnext +50 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +10 -9
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +4 -3
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +15 -14
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.esnext +20 -10
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.esnext +9 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.esnext +20 -28
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.esnext +44 -23
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +38 -20
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.esnext +2 -1
- package/build/esnext/package.esnext +1 -1
- package/build/esnext/shared/package-manager.esnext +1 -1
- package/build/esnext/shared.esnext +5 -6
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/typescript/shared/package-manager.d.ts.map +1 -1
- package/build/typescript/shared.d.ts.map +1 -1
- package/package.json +7 -7
- package/source/shared/package-manager.ts +0 -1
- package/source/shared.ts +1 -2
- package/templates/workspace/_nvmrc +1 -1
- package/build/esm/_virtual/patterns.mjs +0 -3
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +0 -32
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +0 -76
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +0 -45
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +0 -6172
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +0 -29
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +0 -4076
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.mjs +0 -58
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.mjs +0 -7
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +0 -83
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.mjs +0 -37
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.mjs +0 -34
- package/build/esnext/_virtual/patterns.esnext +0 -3
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +0 -21
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +0 -71
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +0 -38
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +0 -18
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +0 -37
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +0 -29
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +0 -163
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +0 -36
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.esnext +0 -55
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.esnext +0 -10
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.esnext +0 -41
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.esnext +0 -33
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/async.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/error.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/provider.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/stream.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/sync.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/transformers/entry.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/async.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/reader.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/stream.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/sync.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/array.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/errno.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/fs.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/stream.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/string.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.mjs +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/async.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/deep.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/error.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/partial.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/provider.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/stream.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/sync.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/transformers/entry.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/async.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/reader.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/stream.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/sync.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/array.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/errno.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/fs.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/index.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/stream.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/string.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.esnext +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var
|
|
1
|
+
var Ti = Object.create;
|
|
2
|
+
var tn = Object.defineProperty;
|
|
3
|
+
var Ci = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var Mi = Object.getOwnPropertyNames;
|
|
5
|
+
var ki = Object.getPrototypeOf,
|
|
6
|
+
vi = Object.prototype.hasOwnProperty;
|
|
7
|
+
var te = (t, e) => () => (e || t((e = {
|
|
8
8
|
exports: {}
|
|
9
9
|
}).exports, e), e.exports),
|
|
10
|
-
|
|
11
|
-
for (var n in e)
|
|
10
|
+
rr = (t, e) => {
|
|
11
|
+
for (var n in e) tn(t, n, {
|
|
12
12
|
get: e[n],
|
|
13
13
|
enumerable: true
|
|
14
14
|
});
|
|
15
15
|
},
|
|
16
|
-
|
|
17
|
-
if (e && typeof e == "object" || typeof e == "function") for (let s of
|
|
16
|
+
Ii = (t, e, n, r) => {
|
|
17
|
+
if (e && typeof e == "object" || typeof e == "function") for (let s of Mi(e)) !vi.call(t, s) && s !== n && tn(t, s, {
|
|
18
18
|
get: () => e[s],
|
|
19
|
-
enumerable: !(r =
|
|
19
|
+
enumerable: !(r = Ci(e, s)) || r.enumerable
|
|
20
20
|
});
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
var
|
|
23
|
+
var sr = (t, e, n) => (n = t != null ? Ti(ki(t)) : {}, Ii(tn(n, "default", {
|
|
24
24
|
value: t,
|
|
25
25
|
enumerable: true
|
|
26
26
|
}) , t));
|
|
27
|
-
var le =
|
|
27
|
+
var le = te(U => {
|
|
28
28
|
|
|
29
29
|
var re = {
|
|
30
30
|
ANCHOR: "&",
|
|
@@ -52,13 +52,13 @@ var le = ee(U => {
|
|
|
52
52
|
SEQ: "SEQ",
|
|
53
53
|
SEQ_ITEM: "SEQ_ITEM"
|
|
54
54
|
},
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
Ao = "tag:yaml.org,2002:",
|
|
56
|
+
To = {
|
|
57
57
|
MAP: "tag:yaml.org,2002:map",
|
|
58
58
|
SEQ: "tag:yaml.org,2002:seq",
|
|
59
59
|
STR: "tag:yaml.org,2002:str"
|
|
60
60
|
};
|
|
61
|
-
function
|
|
61
|
+
function Ps(t) {
|
|
62
62
|
let e = [0],
|
|
63
63
|
n = t.indexOf(`
|
|
64
64
|
`);
|
|
@@ -66,9 +66,9 @@ var le = ee(U => {
|
|
|
66
66
|
`, n);
|
|
67
67
|
return e;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function _s(t) {
|
|
70
70
|
let e, n;
|
|
71
|
-
return typeof t == "string" ? (e =
|
|
71
|
+
return typeof t == "string" ? (e = Ps(t), n = t) : (Array.isArray(t) && (t = t[0]), t && t.context && (t.lineStarts || (t.lineStarts = Ps(t.context.src)), e = t.lineStarts, n = t.context.src)), {
|
|
72
72
|
lineStarts: e,
|
|
73
73
|
src: n
|
|
74
74
|
};
|
|
@@ -78,7 +78,7 @@ var le = ee(U => {
|
|
|
78
78
|
let {
|
|
79
79
|
lineStarts: n,
|
|
80
80
|
src: r
|
|
81
|
-
} =
|
|
81
|
+
} = _s(e);
|
|
82
82
|
if (!n || !r || t > r.length) return null;
|
|
83
83
|
for (let i = 0; i < n.length; ++i) {
|
|
84
84
|
let o = n[i];
|
|
@@ -97,11 +97,11 @@ var le = ee(U => {
|
|
|
97
97
|
col: t - n[s - 1] + 1
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Co(t, e) {
|
|
101
101
|
let {
|
|
102
102
|
lineStarts: n,
|
|
103
103
|
src: r
|
|
104
|
-
} =
|
|
104
|
+
} = _s(e);
|
|
105
105
|
if (!n || !(t >= 1) || t > n.length) return null;
|
|
106
106
|
let s = n[t - 1],
|
|
107
107
|
i = n[t];
|
|
@@ -109,11 +109,11 @@ var le = ee(U => {
|
|
|
109
109
|
`;) --i;
|
|
110
110
|
return r.slice(s, i);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Mo({
|
|
113
113
|
start: t,
|
|
114
114
|
end: e
|
|
115
115
|
}, n, r = 80) {
|
|
116
|
-
let s =
|
|
116
|
+
let s = Co(t.line, n);
|
|
117
117
|
if (!s) return null;
|
|
118
118
|
let {
|
|
119
119
|
col: i
|
|
@@ -130,7 +130,7 @@ var le = ee(U => {
|
|
|
130
130
|
return `${s}
|
|
131
131
|
${c}${l}${a}`;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var Be = class t {
|
|
134
134
|
static copy(e) {
|
|
135
135
|
return new t(e.start, e.end);
|
|
136
136
|
}
|
|
@@ -384,7 +384,7 @@ ${c}${l}${a}`;
|
|
|
384
384
|
} = this.context;
|
|
385
385
|
if (n[e] === re.COMMENT) {
|
|
386
386
|
let r = t.endOfLine(n, e + 1),
|
|
387
|
-
s = new
|
|
387
|
+
s = new Be(e, r);
|
|
388
388
|
return this.props.push(s), r;
|
|
389
389
|
}
|
|
390
390
|
return e;
|
|
@@ -405,7 +405,7 @@ ${c}${l}${a}`;
|
|
|
405
405
|
return t.addStringTerminator(e, n.end, s);
|
|
406
406
|
}
|
|
407
407
|
},
|
|
408
|
-
|
|
408
|
+
ye = class extends Error {
|
|
409
409
|
constructor(e, n, r) {
|
|
410
410
|
if (!r || !(n instanceof se)) throw new Error(`Invalid arguments for new ${e}`);
|
|
411
411
|
super(), this.name = e, this.message = r, this.source = n;
|
|
@@ -415,7 +415,7 @@ ${c}${l}${a}`;
|
|
|
415
415
|
this.nodeType = this.source.type;
|
|
416
416
|
let e = this.source.context && this.source.context.root;
|
|
417
417
|
if (typeof this.offset == "number") {
|
|
418
|
-
this.range = new
|
|
418
|
+
this.range = new Be(this.offset, this.offset + 1);
|
|
419
419
|
let n = e && Tn(this.offset, e);
|
|
420
420
|
if (n) {
|
|
421
421
|
let r = {
|
|
@@ -435,7 +435,7 @@ ${c}${l}${a}`;
|
|
|
435
435
|
col: r
|
|
436
436
|
} = this.linePos.start;
|
|
437
437
|
this.message += ` at line ${n}, column ${r}`;
|
|
438
|
-
let s = e &&
|
|
438
|
+
let s = e && Mo(this.linePos, e);
|
|
439
439
|
s && (this.message += `:
|
|
440
440
|
|
|
441
441
|
${s}
|
|
@@ -444,27 +444,27 @@ ${s}
|
|
|
444
444
|
delete this.source;
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
|
-
Cn = class extends
|
|
447
|
+
Cn = class extends ye {
|
|
448
448
|
constructor(e, n) {
|
|
449
449
|
super("YAMLReferenceError", e, n);
|
|
450
450
|
}
|
|
451
451
|
},
|
|
452
|
-
ft = class extends
|
|
452
|
+
ft = class extends ye {
|
|
453
453
|
constructor(e, n) {
|
|
454
454
|
super("YAMLSemanticError", e, n);
|
|
455
455
|
}
|
|
456
456
|
},
|
|
457
|
-
Mn = class extends
|
|
457
|
+
Mn = class extends ye {
|
|
458
458
|
constructor(e, n) {
|
|
459
459
|
super("YAMLSyntaxError", e, n);
|
|
460
460
|
}
|
|
461
461
|
},
|
|
462
|
-
kn = class extends
|
|
462
|
+
kn = class extends ye {
|
|
463
463
|
constructor(e, n) {
|
|
464
464
|
super("YAMLWarning", e, n);
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
|
-
function
|
|
467
|
+
function ko(t, e, n) {
|
|
468
468
|
return e in t ? Object.defineProperty(t, e, {
|
|
469
469
|
value: n,
|
|
470
470
|
enumerable: true,
|
|
@@ -564,27 +564,27 @@ ${s}
|
|
|
564
564
|
i = n,
|
|
565
565
|
o = s[i];
|
|
566
566
|
return o && o !== "#" && o !== `
|
|
567
|
-
` && (i = t.endOfLine(s, n, r)), this.valueRange = new
|
|
567
|
+
` && (i = t.endOfLine(s, n, r)), this.valueRange = new Be(n, i), i = se.endOfWhiteSpace(s, i), i = this.parseComment(i), (!this.hasComment || this.valueRange.isEmpty()) && (i = this.parseBlockValue(i)), i;
|
|
568
568
|
}
|
|
569
569
|
};
|
|
570
570
|
U.Char = re;
|
|
571
571
|
U.Node = se;
|
|
572
572
|
U.PlainValue = vn;
|
|
573
|
-
U.Range =
|
|
573
|
+
U.Range = Be;
|
|
574
574
|
U.Type = lt;
|
|
575
|
-
U.YAMLError =
|
|
575
|
+
U.YAMLError = ye;
|
|
576
576
|
U.YAMLReferenceError = Cn;
|
|
577
577
|
U.YAMLSemanticError = ft;
|
|
578
578
|
U.YAMLSyntaxError = Mn;
|
|
579
579
|
U.YAMLWarning = kn;
|
|
580
|
-
U._defineProperty =
|
|
581
|
-
U.defaultTagPrefix =
|
|
582
|
-
U.defaultTags =
|
|
580
|
+
U._defineProperty = ko;
|
|
581
|
+
U.defaultTagPrefix = Ao;
|
|
582
|
+
U.defaultTags = To;
|
|
583
583
|
});
|
|
584
|
-
var
|
|
584
|
+
var Rs = te(xs => {
|
|
585
585
|
|
|
586
586
|
var u = le(),
|
|
587
|
-
|
|
587
|
+
Se = class extends u.Node {
|
|
588
588
|
constructor() {
|
|
589
589
|
super(u.Type.BLANK_LINE);
|
|
590
590
|
}
|
|
@@ -628,7 +628,7 @@ var Is = ee(vs => {
|
|
|
628
628
|
i = true, o = c + 1;
|
|
629
629
|
let h = u.Node.endOfWhiteSpace(s, o);
|
|
630
630
|
s[h] === `
|
|
631
|
-
` && m.length === 0 && (d = new
|
|
631
|
+
` && m.length === 0 && (d = new Se(), o = d.parse({
|
|
632
632
|
src: s
|
|
633
633
|
}, o)), c = u.Node.endOfIndent(s, o);
|
|
634
634
|
}
|
|
@@ -670,7 +670,7 @@ var Is = ee(vs => {
|
|
|
670
670
|
return u.Node.addStringTerminator(e, r.end, i);
|
|
671
671
|
}
|
|
672
672
|
},
|
|
673
|
-
|
|
673
|
+
Ee = class extends u.Node {
|
|
674
674
|
constructor() {
|
|
675
675
|
super(u.Type.COMMENT);
|
|
676
676
|
}
|
|
@@ -683,7 +683,7 @@ var Is = ee(vs => {
|
|
|
683
683
|
function In(t) {
|
|
684
684
|
let e = t;
|
|
685
685
|
for (; e instanceof ut;) e = e.node;
|
|
686
|
-
if (!(e instanceof
|
|
686
|
+
if (!(e instanceof $t)) return null;
|
|
687
687
|
let n = e.items.length,
|
|
688
688
|
r = -1;
|
|
689
689
|
for (let o = n - 1; o >= 0; --o) {
|
|
@@ -703,7 +703,7 @@ var Is = ee(vs => {
|
|
|
703
703
|
for (; e.range.end = i, e.valueRange && e.valueRange.end > i && (e.valueRange.end = i), e !== t;) e = e.context.parent;
|
|
704
704
|
return s;
|
|
705
705
|
}
|
|
706
|
-
var
|
|
706
|
+
var $t = class t extends u.Node {
|
|
707
707
|
static nextContentHasIndent(e, n, r) {
|
|
708
708
|
let s = u.Node.endOfLine(e, n) + 1;
|
|
709
709
|
n = u.Node.endOfWhiteSpace(e, s);
|
|
@@ -746,7 +746,7 @@ var Is = ee(vs => {
|
|
|
746
746
|
` || l === "#";) {
|
|
747
747
|
if (f && l === `
|
|
748
748
|
` && !m) {
|
|
749
|
-
let h = new
|
|
749
|
+
let h = new Se();
|
|
750
750
|
if (c = h.parse({
|
|
751
751
|
src: s
|
|
752
752
|
}, c), this.valueRange.end = c, c >= s.length) {
|
|
@@ -756,7 +756,7 @@ var Is = ee(vs => {
|
|
|
756
756
|
this.items.push(h), c -= 1;
|
|
757
757
|
} else if (l === "#") {
|
|
758
758
|
if (c < i + a && !t.nextContentHasIndent(s, c, a)) return c;
|
|
759
|
-
let h = new
|
|
759
|
+
let h = new Ee();
|
|
760
760
|
if (c = h.parse({
|
|
761
761
|
indent: a,
|
|
762
762
|
lineStart: i,
|
|
@@ -901,7 +901,7 @@ var Is = ee(vs => {
|
|
|
901
901
|
case `
|
|
902
902
|
`:
|
|
903
903
|
if (r) {
|
|
904
|
-
let o = new
|
|
904
|
+
let o = new Se();
|
|
905
905
|
i = o.parse({
|
|
906
906
|
src: n
|
|
907
907
|
}, i), i < n.length && this.directives.push(o);
|
|
@@ -909,7 +909,7 @@ var Is = ee(vs => {
|
|
|
909
909
|
break;
|
|
910
910
|
case "#":
|
|
911
911
|
{
|
|
912
|
-
let o = new
|
|
912
|
+
let o = new Ee();
|
|
913
913
|
i = o.parse({
|
|
914
914
|
src: n
|
|
915
915
|
}, i), this.directives.push(o), r = false;
|
|
@@ -944,7 +944,7 @@ var Is = ee(vs => {
|
|
|
944
944
|
case `
|
|
945
945
|
`:
|
|
946
946
|
if (o) {
|
|
947
|
-
let a = new
|
|
947
|
+
let a = new Se();
|
|
948
948
|
i = a.parse({
|
|
949
949
|
src: r
|
|
950
950
|
}, i), i < r.length && this.contents.push(a);
|
|
@@ -953,7 +953,7 @@ var Is = ee(vs => {
|
|
|
953
953
|
break;
|
|
954
954
|
case "#":
|
|
955
955
|
{
|
|
956
|
-
let a = new
|
|
956
|
+
let a = new Ee();
|
|
957
957
|
i = a.parse({
|
|
958
958
|
src: r
|
|
959
959
|
}, i), this.contents.push(a), o = false;
|
|
@@ -980,7 +980,7 @@ var Is = ee(vs => {
|
|
|
980
980
|
}
|
|
981
981
|
if (this.valueRange.end = i, r[i] && (this.documentEndMarker = new u.Range(i, i + 3), i += 3, r[i])) {
|
|
982
982
|
if (i = u.Node.endOfWhiteSpace(r, i), r[i] === "#") {
|
|
983
|
-
let a = new
|
|
983
|
+
let a = new Ee();
|
|
984
984
|
i = a.parse({
|
|
985
985
|
src: r
|
|
986
986
|
}, i), this.contents.push(a);
|
|
@@ -1215,7 +1215,7 @@ var Is = ee(vs => {
|
|
|
1215
1215
|
let l = u.Node.endOfWhiteSpace(s, o);
|
|
1216
1216
|
if (s[l] === `
|
|
1217
1217
|
`) {
|
|
1218
|
-
let f = new
|
|
1218
|
+
let f = new Se();
|
|
1219
1219
|
o = f.parse({
|
|
1220
1220
|
src: s
|
|
1221
1221
|
}, o), this.items.push(f);
|
|
@@ -1234,7 +1234,7 @@ var Is = ee(vs => {
|
|
|
1234
1234
|
break;
|
|
1235
1235
|
case "#":
|
|
1236
1236
|
{
|
|
1237
|
-
let l = new
|
|
1237
|
+
let l = new Ee();
|
|
1238
1238
|
c = l.parse({
|
|
1239
1239
|
src: s
|
|
1240
1240
|
}, c), this.items.push(l);
|
|
@@ -1436,7 +1436,7 @@ var Is = ee(vs => {
|
|
|
1436
1436
|
return this.valueRange = new u.Range(n, s), s = u.Node.endOfWhiteSpace(r, s), s = this.parseComment(s), s;
|
|
1437
1437
|
}
|
|
1438
1438
|
},
|
|
1439
|
-
|
|
1439
|
+
$n = class t extends u.Node {
|
|
1440
1440
|
static endOfQuote(e, n) {
|
|
1441
1441
|
let r = e[n];
|
|
1442
1442
|
for (; r;) if (r === "'") {
|
|
@@ -1491,7 +1491,7 @@ var Is = ee(vs => {
|
|
|
1491
1491
|
return this.valueRange = new u.Range(n, s), s = u.Node.endOfWhiteSpace(r, s), s = this.parseComment(s), s;
|
|
1492
1492
|
}
|
|
1493
1493
|
};
|
|
1494
|
-
function
|
|
1494
|
+
function vo(t, e) {
|
|
1495
1495
|
switch (t) {
|
|
1496
1496
|
case u.Type.ALIAS:
|
|
1497
1497
|
return new xn(t, e);
|
|
@@ -1511,12 +1511,12 @@ var Is = ee(vs => {
|
|
|
1511
1511
|
case u.Type.QUOTE_DOUBLE:
|
|
1512
1512
|
return new Yn(t, e);
|
|
1513
1513
|
case u.Type.QUOTE_SINGLE:
|
|
1514
|
-
return new
|
|
1514
|
+
return new $n(t, e);
|
|
1515
1515
|
default:
|
|
1516
1516
|
return null;
|
|
1517
1517
|
}
|
|
1518
1518
|
}
|
|
1519
|
-
var
|
|
1519
|
+
var Bn = class t {
|
|
1520
1520
|
static parseType(e, n, r) {
|
|
1521
1521
|
switch (e[n]) {
|
|
1522
1522
|
case "*":
|
|
@@ -1559,11 +1559,11 @@ var Is = ee(vs => {
|
|
|
1559
1559
|
type: d,
|
|
1560
1560
|
valueStart: y
|
|
1561
1561
|
} = f.parseProps(l),
|
|
1562
|
-
h =
|
|
1562
|
+
h = vo(d, m),
|
|
1563
1563
|
g = h.parse(f, y);
|
|
1564
1564
|
if (h.range = new u.Range(l, g), g <= l && (h.error = new Error("Node#parse consumed no characters"), h.error.parseEnd = g, h.error.source = h, h.range.end = l + 1), f.nodeStartsCollection(h)) {
|
|
1565
1565
|
!h.error && !f.atLineStart && f.parent.type === u.Type.DOCUMENT && (h.error = new u.YAMLSyntaxError(h, "Block collection must not have preceding content here (e.g. directives-end indicator)"));
|
|
1566
|
-
let w = new
|
|
1566
|
+
let w = new $t(h);
|
|
1567
1567
|
return g = w.parse(new t(f), g), w.range = new u.Range(l, g), w;
|
|
1568
1568
|
}
|
|
1569
1569
|
return h;
|
|
@@ -1622,7 +1622,7 @@ var Is = ee(vs => {
|
|
|
1622
1622
|
};
|
|
1623
1623
|
}
|
|
1624
1624
|
};
|
|
1625
|
-
function
|
|
1625
|
+
function Io(t) {
|
|
1626
1626
|
let e = [];
|
|
1627
1627
|
t.indexOf("\r") !== -1 && (t = t.replace(/\r\n?/g, (s, i) => (s.length > 1 && e.push(i), `
|
|
1628
1628
|
`)));
|
|
@@ -1630,7 +1630,7 @@ var Is = ee(vs => {
|
|
|
1630
1630
|
r = 0;
|
|
1631
1631
|
do {
|
|
1632
1632
|
let s = new _n(),
|
|
1633
|
-
i = new
|
|
1633
|
+
i = new Bn({
|
|
1634
1634
|
src: t
|
|
1635
1635
|
});
|
|
1636
1636
|
r = s.parse(i, r), n.push(s);
|
|
@@ -1644,21 +1644,21 @@ var Is = ee(vs => {
|
|
|
1644
1644
|
}, n.toString = () => n.join(`...
|
|
1645
1645
|
`), n;
|
|
1646
1646
|
}
|
|
1647
|
-
|
|
1647
|
+
xs.parse = Io;
|
|
1648
1648
|
});
|
|
1649
|
-
var
|
|
1649
|
+
var qe = te(k => {
|
|
1650
1650
|
|
|
1651
1651
|
var p = le();
|
|
1652
|
-
function
|
|
1652
|
+
function Po(t, e, n) {
|
|
1653
1653
|
return n ? `#${n.replace(/[\s\S]^/gm, `$&${e}#`)}
|
|
1654
1654
|
${e}${t}` : t;
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function Fe(t, e, n) {
|
|
1657
1657
|
return n ? n.indexOf(`
|
|
1658
1658
|
`) === -1 ? `${t} #${n}` : `${t}
|
|
1659
1659
|
` + n.replace(/^/gm, `${e || ""}#`) : t;
|
|
1660
1660
|
}
|
|
1661
|
-
var
|
|
1661
|
+
var W = class {};
|
|
1662
1662
|
function ue(t, e, n) {
|
|
1663
1663
|
if (Array.isArray(t)) return t.map((r, s) => ue(r, String(s), n));
|
|
1664
1664
|
if (t && typeof t.toJSON == "function") {
|
|
@@ -1671,7 +1671,7 @@ ${e}${t}` : t;
|
|
|
1671
1671
|
}
|
|
1672
1672
|
return (!n || !n.keep) && typeof t == "bigint" ? Number(t) : t;
|
|
1673
1673
|
}
|
|
1674
|
-
var P = class extends
|
|
1674
|
+
var P = class extends W {
|
|
1675
1675
|
constructor(e) {
|
|
1676
1676
|
super(), this.value = e;
|
|
1677
1677
|
}
|
|
@@ -1682,7 +1682,7 @@ ${e}${t}` : t;
|
|
|
1682
1682
|
return String(this.value);
|
|
1683
1683
|
}
|
|
1684
1684
|
};
|
|
1685
|
-
function
|
|
1685
|
+
function Ds(t, e, n) {
|
|
1686
1686
|
let r = n;
|
|
1687
1687
|
for (let s = e.length - 1; s >= 0; --s) {
|
|
1688
1688
|
let i = e[s];
|
|
@@ -1701,16 +1701,16 @@ ${e}${t}` : t;
|
|
|
1701
1701
|
}
|
|
1702
1702
|
return t.createNode(r, false);
|
|
1703
1703
|
}
|
|
1704
|
-
var
|
|
1705
|
-
|
|
1704
|
+
var Bs = t => t == null || typeof t == "object" && t[Symbol.iterator]().next().done,
|
|
1705
|
+
j = class t extends W {
|
|
1706
1706
|
constructor(e) {
|
|
1707
1707
|
super(), p._defineProperty(this, "items", []), this.schema = e;
|
|
1708
1708
|
}
|
|
1709
1709
|
addIn(e, n) {
|
|
1710
|
-
if (
|
|
1710
|
+
if (Bs(e)) this.add(n);else {
|
|
1711
1711
|
let [r, ...s] = e,
|
|
1712
1712
|
i = this.get(r, true);
|
|
1713
|
-
if (i instanceof t) i.addIn(s, n);else if (i === void 0 && this.schema) this.set(r,
|
|
1713
|
+
if (i instanceof t) i.addIn(s, n);else if (i === void 0 && this.schema) this.set(r, Ds(this.schema, s, n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);
|
|
1714
1714
|
}
|
|
1715
1715
|
}
|
|
1716
1716
|
deleteIn([e, ...n]) {
|
|
@@ -1738,7 +1738,7 @@ ${e}${t}` : t;
|
|
|
1738
1738
|
setIn([e, ...n], r) {
|
|
1739
1739
|
if (n.length === 0) this.set(e, r);else {
|
|
1740
1740
|
let s = this.get(e, true);
|
|
1741
|
-
if (s instanceof t) s.setIn(n, r);else if (s === void 0 && this.schema) this.set(e,
|
|
1741
|
+
if (s instanceof t) s.setIn(n, r);else if (s === void 0 && this.schema) this.set(e, Ds(this.schema, n, r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`);
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
1744
|
toJSON() {
|
|
@@ -1771,15 +1771,15 @@ ${e}${t}` : t;
|
|
|
1771
1771
|
L && (!y && L.spaceBefore && C.push({
|
|
1772
1772
|
type: "comment",
|
|
1773
1773
|
str: ""
|
|
1774
|
-
}), L.commentBefore && L.commentBefore.match(/^.*$/gm).forEach(
|
|
1774
|
+
}), L.commentBefore && L.commentBefore.match(/^.*$/gm).forEach(Ai => {
|
|
1775
1775
|
C.push({
|
|
1776
1776
|
type: "comment",
|
|
1777
|
-
str: `#${
|
|
1777
|
+
str: `#${Ai}`
|
|
1778
1778
|
});
|
|
1779
1779
|
}), L.comment && (A = L.comment), m && (!y && L.spaceBefore || L.commentBefore || L.comment || L.key && (L.key.commentBefore || L.key.comment) || L.value && (L.value.commentBefore || L.value.comment)) && (h = true)), y = false;
|
|
1780
1780
|
let _ = f(L, e, () => A = null, () => y = true);
|
|
1781
1781
|
return m && !h && _.includes(`
|
|
1782
|
-
`) && (h = true), m && M < this.items.length - 1 && (_ += ","), _ =
|
|
1782
|
+
`) && (h = true), m && M < this.items.length - 1 && (_ += ","), _ = Fe(_, i, A), y && (A || m) && (y = false), C.push({
|
|
1783
1783
|
type: "item",
|
|
1784
1784
|
str: _
|
|
1785
1785
|
}), C;
|
|
@@ -1810,31 +1810,31 @@ ${c}${L}` : `
|
|
|
1810
1810
|
` + this.comment.replace(/^/gm, `${c}#`), o && o()) : y && a && a(), w;
|
|
1811
1811
|
}
|
|
1812
1812
|
};
|
|
1813
|
-
p._defineProperty(
|
|
1814
|
-
function
|
|
1813
|
+
p._defineProperty(j, "maxFlowStringSingleLineLength", 60);
|
|
1814
|
+
function Bt(t) {
|
|
1815
1815
|
let e = t instanceof P ? t.value : t;
|
|
1816
1816
|
return e && typeof e == "string" && (e = Number(e)), Number.isInteger(e) && e >= 0 ? e : null;
|
|
1817
1817
|
}
|
|
1818
|
-
var pe = class extends
|
|
1818
|
+
var pe = class extends j {
|
|
1819
1819
|
add(e) {
|
|
1820
1820
|
this.items.push(e);
|
|
1821
1821
|
}
|
|
1822
1822
|
delete(e) {
|
|
1823
|
-
let n =
|
|
1823
|
+
let n = Bt(e);
|
|
1824
1824
|
return typeof n != "number" ? false : this.items.splice(n, 1).length > 0;
|
|
1825
1825
|
}
|
|
1826
1826
|
get(e, n) {
|
|
1827
|
-
let r =
|
|
1827
|
+
let r = Bt(e);
|
|
1828
1828
|
if (typeof r != "number") return;
|
|
1829
1829
|
let s = this.items[r];
|
|
1830
1830
|
return !n && s instanceof P ? s.value : s;
|
|
1831
1831
|
}
|
|
1832
1832
|
has(e) {
|
|
1833
|
-
let n =
|
|
1833
|
+
let n = Bt(e);
|
|
1834
1834
|
return typeof n == "number" && n < this.items.length;
|
|
1835
1835
|
}
|
|
1836
1836
|
set(e, n) {
|
|
1837
|
-
let r =
|
|
1837
|
+
let r = Bt(e);
|
|
1838
1838
|
if (typeof r != "number") throw new Error(`Expected a valid index, not ${e}.`);
|
|
1839
1839
|
this.items[r] = n;
|
|
1840
1840
|
}
|
|
@@ -1857,7 +1857,7 @@ ${c}${L}` : `
|
|
|
1857
1857
|
}, n, r) : JSON.stringify(this);
|
|
1858
1858
|
}
|
|
1859
1859
|
},
|
|
1860
|
-
|
|
1860
|
+
_o = (t, e, n) => e === null ? "" : typeof e != "object" ? String(e) : t instanceof W && n && n.doc ? t.toString({
|
|
1861
1861
|
anchors: Object.create(null),
|
|
1862
1862
|
doc: n.doc,
|
|
1863
1863
|
indent: "",
|
|
@@ -1866,15 +1866,15 @@ ${c}${L}` : `
|
|
|
1866
1866
|
inStringifyKey: true,
|
|
1867
1867
|
stringify: n.stringify
|
|
1868
1868
|
}) : JSON.stringify(e),
|
|
1869
|
-
T = class t extends
|
|
1869
|
+
T = class t extends W {
|
|
1870
1870
|
constructor(e, n = null) {
|
|
1871
1871
|
super(), this.key = e, this.value = n, this.type = t.Type.PAIR;
|
|
1872
1872
|
}
|
|
1873
1873
|
get commentBefore() {
|
|
1874
|
-
return this.key instanceof
|
|
1874
|
+
return this.key instanceof W ? this.key.commentBefore : void 0;
|
|
1875
1875
|
}
|
|
1876
1876
|
set commentBefore(e) {
|
|
1877
|
-
if (this.key == null && (this.key = new P(null)), this.key instanceof
|
|
1877
|
+
if (this.key == null && (this.key = new P(null)), this.key instanceof W) this.key.commentBefore = e;else {
|
|
1878
1878
|
let n = "Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";
|
|
1879
1879
|
throw new Error(n);
|
|
1880
1880
|
}
|
|
@@ -1885,7 +1885,7 @@ ${c}${L}` : `
|
|
|
1885
1885
|
let s = ue(this.value, r, e);
|
|
1886
1886
|
n.set(r, s);
|
|
1887
1887
|
} else if (n instanceof Set) n.add(r);else {
|
|
1888
|
-
let s =
|
|
1888
|
+
let s = _o(this.key, r, e),
|
|
1889
1889
|
i = ue(this.value, s, e);
|
|
1890
1890
|
s in n ? Object.defineProperty(n, s, {
|
|
1891
1891
|
value: i,
|
|
@@ -1911,15 +1911,15 @@ ${c}${L}` : `
|
|
|
1911
1911
|
key: a,
|
|
1912
1912
|
value: c
|
|
1913
1913
|
} = this,
|
|
1914
|
-
l = a instanceof
|
|
1914
|
+
l = a instanceof W && a.comment;
|
|
1915
1915
|
if (o) {
|
|
1916
1916
|
if (l) throw new Error("With simple keys, key nodes cannot have comments");
|
|
1917
|
-
if (a instanceof
|
|
1917
|
+
if (a instanceof j) {
|
|
1918
1918
|
let _ = "With simple keys, collection cannot be used as a key value";
|
|
1919
1919
|
throw new Error(_);
|
|
1920
1920
|
}
|
|
1921
1921
|
}
|
|
1922
|
-
let f = !o && (!a || l || (a instanceof
|
|
1922
|
+
let f = !o && (!a || l || (a instanceof W ? a instanceof j || a.type === p.Type.BLOCK_FOLDED || a.type === p.Type.BLOCK_LITERAL : typeof a == "object")),
|
|
1923
1923
|
{
|
|
1924
1924
|
doc: m,
|
|
1925
1925
|
indent: d,
|
|
@@ -1932,16 +1932,16 @@ ${c}${L}` : `
|
|
|
1932
1932
|
});
|
|
1933
1933
|
let g = false,
|
|
1934
1934
|
w = h(a, e, () => l = null, () => g = true);
|
|
1935
|
-
if (w =
|
|
1935
|
+
if (w = Fe(w, e.indent, l), !f && w.length > 1024) {
|
|
1936
1936
|
if (o) throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
1937
1937
|
f = true;
|
|
1938
1938
|
}
|
|
1939
|
-
if (e.allNullValues && !o) return this.comment ? (w =
|
|
1939
|
+
if (e.allNullValues && !o) return this.comment ? (w = Fe(w, e.indent, this.comment), n && n()) : g && !l && r && r(), e.inFlow && !f ? w : `? ${w}`;
|
|
1940
1940
|
w = f ? `? ${w}
|
|
1941
|
-
${d}:` : `${w}:`, this.comment && (w =
|
|
1941
|
+
${d}:` : `${w}:`, this.comment && (w = Fe(w, e.indent, this.comment), n && n());
|
|
1942
1942
|
let C = "",
|
|
1943
1943
|
L = null;
|
|
1944
|
-
if (c instanceof
|
|
1944
|
+
if (c instanceof W) {
|
|
1945
1945
|
if (c.spaceBefore && (C = `
|
|
1946
1946
|
`), c.commentBefore) {
|
|
1947
1947
|
let _ = c.commentBefore.replace(/^/gm, `${e.indent}#`);
|
|
@@ -1954,10 +1954,10 @@ ${_}`;
|
|
|
1954
1954
|
let M = h(c, e, () => L = null, () => g = true),
|
|
1955
1955
|
A = " ";
|
|
1956
1956
|
return C || this.comment ? A = `${C}
|
|
1957
|
-
${e.indent}` : !f && c instanceof
|
|
1957
|
+
${e.indent}` : !f && c instanceof j ? (!(M[0] === "[" || M[0] === "{") || M.includes(`
|
|
1958
1958
|
`)) && (A = `
|
|
1959
1959
|
${e.indent}`) : M[0] === `
|
|
1960
|
-
` && (A = ""), g && !L && r && r(),
|
|
1960
|
+
` && (A = ""), g && !L && r && r(), Fe(w + A + M, e.indent, L);
|
|
1961
1961
|
}
|
|
1962
1962
|
};
|
|
1963
1963
|
p._defineProperty(T, "Type", {
|
|
@@ -1965,10 +1965,10 @@ ${e.indent}`) : M[0] === `
|
|
|
1965
1965
|
MERGE_PAIR: "MERGE_PAIR"
|
|
1966
1966
|
});
|
|
1967
1967
|
var Ft = (t, e) => {
|
|
1968
|
-
if (t instanceof
|
|
1968
|
+
if (t instanceof be) {
|
|
1969
1969
|
let n = e.get(t.source);
|
|
1970
1970
|
return n.count * n.aliasCount;
|
|
1971
|
-
} else if (t instanceof
|
|
1971
|
+
} else if (t instanceof j) {
|
|
1972
1972
|
let n = 0;
|
|
1973
1973
|
for (let r of t.items) {
|
|
1974
1974
|
let s = Ft(r, e);
|
|
@@ -1982,7 +1982,7 @@ ${e.indent}`) : M[0] === `
|
|
|
1982
1982
|
}
|
|
1983
1983
|
return 1;
|
|
1984
1984
|
},
|
|
1985
|
-
|
|
1985
|
+
be = class t extends W {
|
|
1986
1986
|
static stringify({
|
|
1987
1987
|
range: e,
|
|
1988
1988
|
source: n
|
|
@@ -2024,12 +2024,12 @@ ${e.indent}`) : M[0] === `
|
|
|
2024
2024
|
return t.stringify(this, e);
|
|
2025
2025
|
}
|
|
2026
2026
|
};
|
|
2027
|
-
p._defineProperty(
|
|
2027
|
+
p._defineProperty(be, "default", true);
|
|
2028
2028
|
function pt(t, e) {
|
|
2029
2029
|
let n = e instanceof P ? e.value : e;
|
|
2030
2030
|
for (let r of t) if (r instanceof T && (r.key === e || r.key === n || r.key && r.key.value === n)) return r;
|
|
2031
2031
|
}
|
|
2032
|
-
var mt = class extends
|
|
2032
|
+
var mt = class extends j {
|
|
2033
2033
|
add(e, n) {
|
|
2034
2034
|
e ? e instanceof T || (e = new T(e.key || e, e.value)) : e = new T(e);
|
|
2035
2035
|
let r = pt(this.items, e.key),
|
|
@@ -2076,13 +2076,13 @@ ${e.indent}`) : M[0] === `
|
|
|
2076
2076
|
}, n, r);
|
|
2077
2077
|
}
|
|
2078
2078
|
},
|
|
2079
|
-
|
|
2079
|
+
Fs = "<<",
|
|
2080
2080
|
Kt = class extends T {
|
|
2081
2081
|
constructor(e) {
|
|
2082
2082
|
if (e instanceof T) {
|
|
2083
2083
|
let n = e.value;
|
|
2084
2084
|
n instanceof pe || (n = new pe(), n.items.push(e.value), n.range = e.value.range), super(e.key, n), this.range = e.range;
|
|
2085
|
-
} else super(new P(
|
|
2085
|
+
} else super(new P(Fs), new pe());
|
|
2086
2086
|
this.type = T.Type.MERGE_PAIR;
|
|
2087
2087
|
}
|
|
2088
2088
|
addToJSMap(e, n) {
|
|
@@ -2108,21 +2108,21 @@ ${e.indent}`) : M[0] === `
|
|
|
2108
2108
|
return this.value = r, s;
|
|
2109
2109
|
}
|
|
2110
2110
|
},
|
|
2111
|
-
|
|
2111
|
+
xo = {
|
|
2112
2112
|
defaultType: p.Type.BLOCK_LITERAL,
|
|
2113
2113
|
lineWidth: 76
|
|
2114
2114
|
},
|
|
2115
|
-
|
|
2115
|
+
Ro = {
|
|
2116
2116
|
trueStr: "true",
|
|
2117
2117
|
falseStr: "false"
|
|
2118
2118
|
},
|
|
2119
|
-
|
|
2119
|
+
Do = {
|
|
2120
2120
|
asBigInt: false
|
|
2121
2121
|
},
|
|
2122
|
-
|
|
2122
|
+
Yo = {
|
|
2123
2123
|
nullStr: "null"
|
|
2124
2124
|
},
|
|
2125
|
-
|
|
2125
|
+
Ne = {
|
|
2126
2126
|
defaultType: p.Type.PLAIN,
|
|
2127
2127
|
doubleQuoted: {
|
|
2128
2128
|
jsonEncoding: false,
|
|
@@ -2147,10 +2147,10 @@ ${e.indent}`) : M[0] === `
|
|
|
2147
2147
|
}
|
|
2148
2148
|
return n && (t = n(t)), new P(t);
|
|
2149
2149
|
}
|
|
2150
|
-
var
|
|
2150
|
+
var qs = "flow",
|
|
2151
2151
|
Fn = "block",
|
|
2152
2152
|
qt = "quoted",
|
|
2153
|
-
|
|
2153
|
+
Ys = (t, e) => {
|
|
2154
2154
|
let n = t[e + 1];
|
|
2155
2155
|
for (; n === " " || n === " ";) {
|
|
2156
2156
|
do n = t[e += 1]; while (n && n !== `
|
|
@@ -2179,7 +2179,7 @@ ${e.indent}`) : M[0] === `
|
|
|
2179
2179
|
g = -1,
|
|
2180
2180
|
w = -1,
|
|
2181
2181
|
C = -1;
|
|
2182
|
-
n === Fn && (g =
|
|
2182
|
+
n === Fn && (g = Ys(t, g), g !== -1 && (m = g + c));
|
|
2183
2183
|
for (let M; M = t[g += 1];) {
|
|
2184
2184
|
if (n === qt && M === "\\") {
|
|
2185
2185
|
switch (w = g, t[g + 1]) {
|
|
@@ -2198,7 +2198,7 @@ ${e.indent}`) : M[0] === `
|
|
|
2198
2198
|
C = g;
|
|
2199
2199
|
}
|
|
2200
2200
|
if (M === `
|
|
2201
|
-
`) n === Fn && (g =
|
|
2201
|
+
`) n === Fn && (g = Ys(t, g)), m = g + c, d = void 0;else {
|
|
2202
2202
|
if (M === " " && y && y !== " " && y !== `
|
|
2203
2203
|
` && y !== " ") {
|
|
2204
2204
|
let A = t[g + 1];
|
|
@@ -2230,9 +2230,9 @@ ${e}${t.slice(A + 1, _)}`);
|
|
|
2230
2230
|
indentAtStart: t
|
|
2231
2231
|
}) => t ? Object.assign({
|
|
2232
2232
|
indentAtStart: t
|
|
2233
|
-
},
|
|
2233
|
+
}, Ne.fold) : Ne.fold,
|
|
2234
2234
|
Wt = t => /^(%|---|\.\.\.)/m.test(t);
|
|
2235
|
-
function
|
|
2235
|
+
function $o(t, e, n) {
|
|
2236
2236
|
if (!e || e < 0) return false;
|
|
2237
2237
|
let r = e - n,
|
|
2238
2238
|
s = t.length;
|
|
@@ -2244,14 +2244,14 @@ ${e}${t.slice(A + 1, _)}`);
|
|
|
2244
2244
|
}
|
|
2245
2245
|
return true;
|
|
2246
2246
|
}
|
|
2247
|
-
function
|
|
2247
|
+
function we(t, e) {
|
|
2248
2248
|
let {
|
|
2249
2249
|
implicitKey: n
|
|
2250
2250
|
} = e,
|
|
2251
2251
|
{
|
|
2252
2252
|
jsonEncoding: r,
|
|
2253
2253
|
minMultiLineLength: s
|
|
2254
|
-
} =
|
|
2254
|
+
} = Ne.doubleQuoted,
|
|
2255
2255
|
i = JSON.stringify(t);
|
|
2256
2256
|
if (r) return i;
|
|
2257
2257
|
let o = e.indent || (Wt(t) ? " " : ""),
|
|
@@ -2307,24 +2307,24 @@ ${e}${t.slice(A + 1, _)}`);
|
|
|
2307
2307
|
}
|
|
2308
2308
|
return a = c ? a + i.slice(c) : i, n ? a : Vt(a, o, qt, Un(e));
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function Us(t, e) {
|
|
2311
2311
|
if (e.implicitKey) {
|
|
2312
|
-
if (/\n/.test(t)) return
|
|
2313
|
-
} else if (/[ \t]\n|\n[ \t]/.test(t)) return
|
|
2312
|
+
if (/\n/.test(t)) return we(t, e);
|
|
2313
|
+
} else if (/[ \t]\n|\n[ \t]/.test(t)) return we(t, e);
|
|
2314
2314
|
let n = e.indent || (Wt(t) ? " " : ""),
|
|
2315
2315
|
r = "'" + t.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
2316
2316
|
${n}`) + "'";
|
|
2317
|
-
return e.implicitKey ? r : Vt(r, n,
|
|
2317
|
+
return e.implicitKey ? r : Vt(r, n, qs, Un(e));
|
|
2318
2318
|
}
|
|
2319
2319
|
function Ut({
|
|
2320
2320
|
comment: t,
|
|
2321
2321
|
type: e,
|
|
2322
2322
|
value: n
|
|
2323
2323
|
}, r, s, i) {
|
|
2324
|
-
if (/\n[\t ]+$/.test(n) || /^\s*$/.test(n)) return
|
|
2324
|
+
if (/\n[\t ]+$/.test(n) || /^\s*$/.test(n)) return we(n, r);
|
|
2325
2325
|
let o = r.indent || (r.forceBlockIndent || Wt(n) ? " " : ""),
|
|
2326
2326
|
a = o ? "2" : "1",
|
|
2327
|
-
c = e === p.Type.BLOCK_FOLDED ? false : e === p.Type.BLOCK_LITERAL ? true :
|
|
2327
|
+
c = e === p.Type.BLOCK_FOLDED ? false : e === p.Type.BLOCK_LITERAL ? true : !$o(n, Ne.fold.lineWidth, o.length),
|
|
2328
2328
|
l = c ? "|" : ">";
|
|
2329
2329
|
if (!n) return l + `
|
|
2330
2330
|
`;
|
|
@@ -2344,11 +2344,11 @@ ${o}${m}`;
|
|
|
2344
2344
|
${o}${f}${n}${m}`;
|
|
2345
2345
|
n = n.replace(/\n+/g, `
|
|
2346
2346
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${o}`);
|
|
2347
|
-
let d = Vt(`${f}${n}${m}`, o, Fn,
|
|
2347
|
+
let d = Vt(`${f}${n}${m}`, o, Fn, Ne.fold);
|
|
2348
2348
|
return `${l}
|
|
2349
2349
|
${o}${d}`;
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function Bo(t, e, n, r) {
|
|
2352
2352
|
let {
|
|
2353
2353
|
comment: s,
|
|
2354
2354
|
type: i,
|
|
@@ -2360,9 +2360,9 @@ ${o}${d}`;
|
|
|
2360
2360
|
indent: l,
|
|
2361
2361
|
inFlow: f
|
|
2362
2362
|
} = e;
|
|
2363
|
-
if (c && /[\n[\]{},]/.test(o) || f && /[[\]{},]/.test(o)) return
|
|
2363
|
+
if (c && /[\n[\]{},]/.test(o) || f && /[[\]{},]/.test(o)) return we(o, e);
|
|
2364
2364
|
if (!o || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)) return c || f || o.indexOf(`
|
|
2365
|
-
`) === -1 ? o.indexOf('"') !== -1 && o.indexOf("'") === -1 ?
|
|
2365
|
+
`) === -1 ? o.indexOf('"') !== -1 && o.indexOf("'") === -1 ? Us(o, e) : we(o, e) : Ut(t, e, n, r);
|
|
2366
2366
|
if (!c && !f && i !== p.Type.PLAIN && o.indexOf(`
|
|
2367
2367
|
`) !== -1) return Ut(t, e, n, r);
|
|
2368
2368
|
if (l === "" && Wt(o)) return e.forceBlockIndent = true, Ut(t, e, n, r);
|
|
@@ -2372,17 +2372,17 @@ ${l}`);
|
|
|
2372
2372
|
let {
|
|
2373
2373
|
tags: y
|
|
2374
2374
|
} = e.doc.schema;
|
|
2375
|
-
if (typeof qn(m, y, y.scalarFallback).value != "string") return
|
|
2375
|
+
if (typeof qn(m, y, y.scalarFallback).value != "string") return we(o, e);
|
|
2376
2376
|
}
|
|
2377
|
-
let d = c ? m : Vt(m, l,
|
|
2377
|
+
let d = c ? m : Vt(m, l, qs, Un(e));
|
|
2378
2378
|
return s && !f && (d.indexOf(`
|
|
2379
2379
|
`) !== -1 || s.indexOf(`
|
|
2380
|
-
`) !== -1) ? (n && n(),
|
|
2380
|
+
`) !== -1) ? (n && n(), Po(d, l, s)) : d;
|
|
2381
2381
|
}
|
|
2382
|
-
function
|
|
2382
|
+
function Fo(t, e, n, r) {
|
|
2383
2383
|
let {
|
|
2384
2384
|
defaultType: s
|
|
2385
|
-
} =
|
|
2385
|
+
} = Ne,
|
|
2386
2386
|
{
|
|
2387
2387
|
implicitKey: i,
|
|
2388
2388
|
inFlow: o
|
|
@@ -2400,11 +2400,11 @@ ${l}`);
|
|
|
2400
2400
|
case p.Type.BLOCK_LITERAL:
|
|
2401
2401
|
return Ut(t, e, n, r);
|
|
2402
2402
|
case p.Type.QUOTE_DOUBLE:
|
|
2403
|
-
return
|
|
2403
|
+
return we(c, e);
|
|
2404
2404
|
case p.Type.QUOTE_SINGLE:
|
|
2405
|
-
return
|
|
2405
|
+
return Us(c, e);
|
|
2406
2406
|
case p.Type.PLAIN:
|
|
2407
|
-
return
|
|
2407
|
+
return Bo(t, e, n, r);
|
|
2408
2408
|
default:
|
|
2409
2409
|
return null;
|
|
2410
2410
|
}
|
|
@@ -2414,7 +2414,7 @@ ${l}`);
|
|
|
2414
2414
|
if (f === null && (f = l(s), f === null)) throw new Error(`Unsupported default string type ${s}`);
|
|
2415
2415
|
return f;
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2417
|
+
function qo({
|
|
2418
2418
|
format: t,
|
|
2419
2419
|
minFractionDigits: e,
|
|
2420
2420
|
tag: n,
|
|
@@ -2431,7 +2431,7 @@ ${l}`);
|
|
|
2431
2431
|
}
|
|
2432
2432
|
return s;
|
|
2433
2433
|
}
|
|
2434
|
-
function
|
|
2434
|
+
function Ks(t, e) {
|
|
2435
2435
|
let n, r;
|
|
2436
2436
|
switch (e.type) {
|
|
2437
2437
|
case p.Type.FLOW_MAP:
|
|
@@ -2458,7 +2458,7 @@ ${l}`);
|
|
|
2458
2458
|
typeof s.offset == "number" ? (o = new p.YAMLSemanticError(e, i), o.offset = s.offset + 1) : (o = new p.YAMLSemanticError(s, i), s.range && s.range.end && (o.offset = s.range.end - s.range.start)), t.push(o);
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
|
-
function
|
|
2461
|
+
function Vs(t, e) {
|
|
2462
2462
|
let n = e.context.src[e.range.start - 1];
|
|
2463
2463
|
if (n !== `
|
|
2464
2464
|
` && n !== " " && n !== " ") {
|
|
@@ -2466,12 +2466,12 @@ ${l}`);
|
|
|
2466
2466
|
t.push(new p.YAMLSemanticError(e, r));
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2469
|
+
function Ws(t, e) {
|
|
2470
2470
|
let n = String(e),
|
|
2471
2471
|
r = n.substr(0, 8) + "..." + n.substr(-8);
|
|
2472
2472
|
return new p.YAMLSemanticError(t, `The "${r}" key is too long`);
|
|
2473
2473
|
}
|
|
2474
|
-
function
|
|
2474
|
+
function js(t, e) {
|
|
2475
2475
|
for (let {
|
|
2476
2476
|
afterKey: n,
|
|
2477
2477
|
before: r,
|
|
@@ -2489,7 +2489,7 @@ ${l}`);
|
|
|
2489
2489
|
r.source || (r.source = e), t.errors.push(r);
|
|
2490
2490
|
}), n.str) : "";
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2492
|
+
function Uo(t, e) {
|
|
2493
2493
|
let {
|
|
2494
2494
|
handle: n,
|
|
2495
2495
|
suffix: r
|
|
@@ -2509,7 +2509,7 @@ ${l}`);
|
|
|
2509
2509
|
}
|
|
2510
2510
|
return s.prefix + decodeURIComponent(r);
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function Ko(t, e) {
|
|
2513
2513
|
let {
|
|
2514
2514
|
tag: n,
|
|
2515
2515
|
type: r
|
|
@@ -2526,7 +2526,7 @@ ${l}`);
|
|
|
2526
2526
|
let c = `Verbatim tags aren't resolved, so ${a} is invalid.`;
|
|
2527
2527
|
t.errors.push(new p.YAMLSemanticError(e, c));
|
|
2528
2528
|
} else if (i === "!" && !o) s = true;else try {
|
|
2529
|
-
return
|
|
2529
|
+
return Uo(t, e);
|
|
2530
2530
|
} catch (c) {
|
|
2531
2531
|
t.errors.push(c);
|
|
2532
2532
|
}
|
|
@@ -2549,19 +2549,19 @@ ${l}`);
|
|
|
2549
2549
|
return null;
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
|
-
function
|
|
2552
|
+
function $s(t, e, n) {
|
|
2553
2553
|
let {
|
|
2554
2554
|
tags: r
|
|
2555
2555
|
} = t.schema,
|
|
2556
2556
|
s = [];
|
|
2557
2557
|
for (let o of r) if (o.tag === n) if (o.test) s.push(o);else {
|
|
2558
2558
|
let a = o.resolve(t, e);
|
|
2559
|
-
return a instanceof
|
|
2559
|
+
return a instanceof j ? a : new P(a);
|
|
2560
2560
|
}
|
|
2561
2561
|
let i = Kn(t, e);
|
|
2562
2562
|
return typeof i == "string" && s.length > 0 ? qn(i, s, r.scalarFallback) : null;
|
|
2563
2563
|
}
|
|
2564
|
-
function
|
|
2564
|
+
function Vo({
|
|
2565
2565
|
type: t
|
|
2566
2566
|
}) {
|
|
2567
2567
|
switch (t) {
|
|
@@ -2575,40 +2575,40 @@ ${l}`);
|
|
|
2575
2575
|
return p.defaultTags.STR;
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
2578
|
-
function
|
|
2578
|
+
function Wo(t, e, n) {
|
|
2579
2579
|
try {
|
|
2580
|
-
let r =
|
|
2580
|
+
let r = $s(t, e, n);
|
|
2581
2581
|
if (r) return n && e.tag && (r.tag = n), r;
|
|
2582
2582
|
} catch (r) {
|
|
2583
2583
|
return r.source || (r.source = e), t.errors.push(r), null;
|
|
2584
2584
|
}
|
|
2585
2585
|
try {
|
|
2586
|
-
let r =
|
|
2586
|
+
let r = Vo(e);
|
|
2587
2587
|
if (!r) throw new Error(`The tag ${n} is unavailable`);
|
|
2588
2588
|
let s = `The tag ${n} is unavailable, falling back to ${r}`;
|
|
2589
2589
|
t.warnings.push(new p.YAMLWarning(e, s));
|
|
2590
|
-
let i =
|
|
2590
|
+
let i = $s(t, e, r);
|
|
2591
2591
|
return i.tag = n, i;
|
|
2592
2592
|
} catch (r) {
|
|
2593
2593
|
let s = new p.YAMLReferenceError(e, r.message);
|
|
2594
2594
|
return s.stack = r.stack, t.errors.push(s), null;
|
|
2595
2595
|
}
|
|
2596
2596
|
}
|
|
2597
|
-
var
|
|
2597
|
+
var jo = t => {
|
|
2598
2598
|
if (!t) return false;
|
|
2599
2599
|
let {
|
|
2600
2600
|
type: e
|
|
2601
2601
|
} = t;
|
|
2602
2602
|
return e === p.Type.MAP_KEY || e === p.Type.MAP_VALUE || e === p.Type.SEQ_ITEM;
|
|
2603
2603
|
};
|
|
2604
|
-
function
|
|
2604
|
+
function Qo(t, e) {
|
|
2605
2605
|
let n = {
|
|
2606
2606
|
before: [],
|
|
2607
2607
|
after: []
|
|
2608
2608
|
},
|
|
2609
2609
|
r = false,
|
|
2610
2610
|
s = false,
|
|
2611
|
-
i =
|
|
2611
|
+
i = jo(e.context.parent) ? e.context.parent.props.concat(e.props) : e.props;
|
|
2612
2612
|
for (let {
|
|
2613
2613
|
start: o,
|
|
2614
2614
|
end: a
|
|
@@ -2647,7 +2647,7 @@ ${l}`);
|
|
|
2647
2647
|
hasTag: s
|
|
2648
2648
|
};
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2650
|
+
function Jo(t, e) {
|
|
2651
2651
|
let {
|
|
2652
2652
|
anchors: n,
|
|
2653
2653
|
errors: r,
|
|
@@ -2660,11 +2660,11 @@ ${l}`);
|
|
|
2660
2660
|
let l = `Aliased anchor not found: ${o}`;
|
|
2661
2661
|
return r.push(new p.YAMLReferenceError(e, l)), null;
|
|
2662
2662
|
}
|
|
2663
|
-
let c = new
|
|
2663
|
+
let c = new be(a);
|
|
2664
2664
|
return n._cstAliases.push(c), c;
|
|
2665
2665
|
}
|
|
2666
|
-
let i =
|
|
2667
|
-
if (i) return
|
|
2666
|
+
let i = Ko(t, e);
|
|
2667
|
+
if (i) return Wo(t, e, i);
|
|
2668
2668
|
if (e.type !== p.Type.PLAIN) {
|
|
2669
2669
|
let o = `Failed to resolve ${e.type} node here`;
|
|
2670
2670
|
return r.push(new p.YAMLSyntaxError(e, o)), null;
|
|
@@ -2683,7 +2683,7 @@ ${l}`);
|
|
|
2683
2683
|
comments: n,
|
|
2684
2684
|
hasAnchor: r,
|
|
2685
2685
|
hasTag: s
|
|
2686
|
-
} =
|
|
2686
|
+
} = Qo(t.errors, e);
|
|
2687
2687
|
if (r) {
|
|
2688
2688
|
let {
|
|
2689
2689
|
anchors: o
|
|
@@ -2696,7 +2696,7 @@ ${l}`);
|
|
|
2696
2696
|
let o = "An alias node must not specify any properties";
|
|
2697
2697
|
t.errors.push(new p.YAMLSemanticError(e, o));
|
|
2698
2698
|
}
|
|
2699
|
-
let i =
|
|
2699
|
+
let i = Jo(t, e);
|
|
2700
2700
|
if (i) {
|
|
2701
2701
|
i.range = [e.range.start, e.range.end], t.options.keepCstNodes && (i.cstNode = e), t.options.keepNodeTypes && (i.type = e.type);
|
|
2702
2702
|
let o = n.before.join(`
|
|
@@ -2710,7 +2710,7 @@ ${a}` : a);
|
|
|
2710
2710
|
}
|
|
2711
2711
|
return e.resolved = i;
|
|
2712
2712
|
}
|
|
2713
|
-
function
|
|
2713
|
+
function Go(t, e) {
|
|
2714
2714
|
if (e.type !== p.Type.MAP && e.type !== p.Type.FLOW_MAP) {
|
|
2715
2715
|
let o = `A ${e.type} node cannot be resolved as a mapping`;
|
|
2716
2716
|
return t.errors.push(new p.YAMLSyntaxError(e, o)), null;
|
|
@@ -2718,20 +2718,20 @@ ${a}` : a);
|
|
|
2718
2718
|
let {
|
|
2719
2719
|
comments: n,
|
|
2720
2720
|
items: r
|
|
2721
|
-
} = e.type === p.Type.FLOW_MAP ?
|
|
2721
|
+
} = e.type === p.Type.FLOW_MAP ? Zo(t, e) : zo(t, e),
|
|
2722
2722
|
s = new mt();
|
|
2723
|
-
s.items = r,
|
|
2723
|
+
s.items = r, js(s, n);
|
|
2724
2724
|
let i = false;
|
|
2725
2725
|
for (let o = 0; o < r.length; ++o) {
|
|
2726
2726
|
let {
|
|
2727
2727
|
key: a
|
|
2728
2728
|
} = r[o];
|
|
2729
|
-
if (a instanceof
|
|
2729
|
+
if (a instanceof j && (i = true), t.schema.merge && a && a.value === Fs) {
|
|
2730
2730
|
r[o] = new Kt(r[o]);
|
|
2731
2731
|
let c = r[o].value.items,
|
|
2732
2732
|
l = null;
|
|
2733
2733
|
c.some(f => {
|
|
2734
|
-
if (f instanceof
|
|
2734
|
+
if (f instanceof be) {
|
|
2735
2735
|
let {
|
|
2736
2736
|
type: m
|
|
2737
2737
|
} = f.source;
|
|
@@ -2756,7 +2756,7 @@ ${a}` : a);
|
|
|
2756
2756
|
}
|
|
2757
2757
|
return e.resolved = s, s;
|
|
2758
2758
|
}
|
|
2759
|
-
var
|
|
2759
|
+
var Ho = ({
|
|
2760
2760
|
context: {
|
|
2761
2761
|
lineStart: t,
|
|
2762
2762
|
node: e,
|
|
@@ -2773,8 +2773,8 @@ ${a}` : a);
|
|
|
2773
2773
|
`) return false;
|
|
2774
2774
|
return true;
|
|
2775
2775
|
};
|
|
2776
|
-
function
|
|
2777
|
-
if (!
|
|
2776
|
+
function Xo(t, e) {
|
|
2777
|
+
if (!Ho(t)) return;
|
|
2778
2778
|
let n = t.getPropValue(0, p.Char.COMMENT, true),
|
|
2779
2779
|
r = false,
|
|
2780
2780
|
s = e.value.commentBefore;
|
|
@@ -2784,7 +2784,7 @@ ${a}` : a);
|
|
|
2784
2784
|
}
|
|
2785
2785
|
r && (e.comment = n);
|
|
2786
2786
|
}
|
|
2787
|
-
function
|
|
2787
|
+
function zo(t, e) {
|
|
2788
2788
|
let n = [],
|
|
2789
2789
|
r = [],
|
|
2790
2790
|
s,
|
|
@@ -2833,7 +2833,7 @@ ${a}` : a);
|
|
|
2833
2833
|
}
|
|
2834
2834
|
}
|
|
2835
2835
|
let l = new T(s, me(t, c));
|
|
2836
|
-
|
|
2836
|
+
Xo(a, l), r.push(l), s && typeof i == "number" && a.range.start > i + 1024 && t.errors.push(Ws(e, s)), s = void 0, i = null;
|
|
2837
2837
|
}
|
|
2838
2838
|
break;
|
|
2839
2839
|
default:
|
|
@@ -2865,7 +2865,7 @@ ${a}` : a);
|
|
|
2865
2865
|
items: r
|
|
2866
2866
|
};
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2868
|
+
function Zo(t, e) {
|
|
2869
2869
|
let n = [],
|
|
2870
2870
|
r = [],
|
|
2871
2871
|
s,
|
|
@@ -2903,18 +2903,18 @@ ${a}` : a);
|
|
|
2903
2903
|
} else c.type === p.Type.BLANK_LINE ? n.push({
|
|
2904
2904
|
afterKey: !!s,
|
|
2905
2905
|
before: r.length
|
|
2906
|
-
}) : c.type === p.Type.COMMENT ? (
|
|
2906
|
+
}) : c.type === p.Type.COMMENT ? (Vs(t.errors, c), n.push({
|
|
2907
2907
|
afterKey: !!s,
|
|
2908
2908
|
before: r.length,
|
|
2909
2909
|
comment: c.comment
|
|
2910
2910
|
})) : s === void 0 ? (o === "," && t.errors.push(new p.YAMLSemanticError(c, "Separator , missing in flow map")), s = me(t, c)) : (o !== "," && t.errors.push(new p.YAMLSemanticError(c, "Indicator : missing in flow map entry")), r.push(new T(s, me(t, c))), s = void 0, i = false);
|
|
2911
2911
|
}
|
|
2912
|
-
return
|
|
2912
|
+
return Ks(t.errors, e), s !== void 0 && r.push(new T(s)), {
|
|
2913
2913
|
comments: n,
|
|
2914
2914
|
items: r
|
|
2915
2915
|
};
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2917
|
+
function ea(t, e) {
|
|
2918
2918
|
if (e.type !== p.Type.SEQ && e.type !== p.Type.FLOW_SEQ) {
|
|
2919
2919
|
let i = `A ${e.type} node cannot be resolved as a sequence`;
|
|
2920
2920
|
return t.errors.push(new p.YAMLSyntaxError(e, i)), null;
|
|
@@ -2922,15 +2922,15 @@ ${a}` : a);
|
|
|
2922
2922
|
let {
|
|
2923
2923
|
comments: n,
|
|
2924
2924
|
items: r
|
|
2925
|
-
} = e.type === p.Type.FLOW_SEQ ?
|
|
2925
|
+
} = e.type === p.Type.FLOW_SEQ ? na(t, e) : ta(t, e),
|
|
2926
2926
|
s = new pe();
|
|
2927
|
-
if (s.items = r,
|
|
2927
|
+
if (s.items = r, js(s, n), !t.options.mapAsMap && r.some(i => i instanceof T && i.key instanceof j)) {
|
|
2928
2928
|
let i = "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";
|
|
2929
2929
|
t.warnings.push(new p.YAMLWarning(e, i));
|
|
2930
2930
|
}
|
|
2931
2931
|
return e.resolved = s, s;
|
|
2932
2932
|
}
|
|
2933
|
-
function
|
|
2933
|
+
function ta(t, e) {
|
|
2934
2934
|
let n = [],
|
|
2935
2935
|
r = [];
|
|
2936
2936
|
for (let s = 0; s < e.items.length; ++s) {
|
|
@@ -2962,7 +2962,7 @@ ${a}` : a);
|
|
|
2962
2962
|
items: r
|
|
2963
2963
|
};
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2965
|
+
function na(t, e) {
|
|
2966
2966
|
let n = [],
|
|
2967
2967
|
r = [],
|
|
2968
2968
|
s = false,
|
|
@@ -2986,7 +2986,7 @@ ${a}` : a);
|
|
|
2986
2986
|
}
|
|
2987
2987
|
if (!s && typeof o == "number") {
|
|
2988
2988
|
let y = f.range ? f.range.start : f.offset;
|
|
2989
|
-
y > o + 1024 && t.errors.push(
|
|
2989
|
+
y > o + 1024 && t.errors.push(Ws(e, i));
|
|
2990
2990
|
let {
|
|
2991
2991
|
src: h
|
|
2992
2992
|
} = c.context;
|
|
@@ -3006,7 +3006,7 @@ ${a}` : a);
|
|
|
3006
3006
|
}
|
|
3007
3007
|
} else if (f.type === p.Type.BLANK_LINE) n.push({
|
|
3008
3008
|
before: r.length
|
|
3009
|
-
});else if (f.type === p.Type.COMMENT)
|
|
3009
|
+
});else if (f.type === p.Type.COMMENT) Vs(t.errors, f), n.push({
|
|
3010
3010
|
comment: f.comment,
|
|
3011
3011
|
before: r.length
|
|
3012
3012
|
});else {
|
|
@@ -3018,40 +3018,40 @@ ${a}` : a);
|
|
|
3018
3018
|
i === void 0 ? (r.push(m), c = f) : (r.push(new T(i, m)), i = void 0), o = f.range.start, a = ",";
|
|
3019
3019
|
}
|
|
3020
3020
|
}
|
|
3021
|
-
return
|
|
3021
|
+
return Ks(t.errors, e), i !== void 0 && r.push(new T(i)), {
|
|
3022
3022
|
comments: n,
|
|
3023
3023
|
items: r
|
|
3024
3024
|
};
|
|
3025
3025
|
}
|
|
3026
|
-
k.Alias =
|
|
3027
|
-
k.Collection =
|
|
3026
|
+
k.Alias = be;
|
|
3027
|
+
k.Collection = j;
|
|
3028
3028
|
k.Merge = Kt;
|
|
3029
|
-
k.Node =
|
|
3029
|
+
k.Node = W;
|
|
3030
3030
|
k.Pair = T;
|
|
3031
3031
|
k.Scalar = P;
|
|
3032
3032
|
k.YAMLMap = mt;
|
|
3033
3033
|
k.YAMLSeq = pe;
|
|
3034
|
-
k.addComment =
|
|
3035
|
-
k.binaryOptions =
|
|
3036
|
-
k.boolOptions =
|
|
3034
|
+
k.addComment = Fe;
|
|
3035
|
+
k.binaryOptions = xo;
|
|
3036
|
+
k.boolOptions = Ro;
|
|
3037
3037
|
k.findPair = pt;
|
|
3038
|
-
k.intOptions =
|
|
3039
|
-
k.isEmptyPath =
|
|
3040
|
-
k.nullOptions =
|
|
3041
|
-
k.resolveMap =
|
|
3038
|
+
k.intOptions = Do;
|
|
3039
|
+
k.isEmptyPath = Bs;
|
|
3040
|
+
k.nullOptions = Yo;
|
|
3041
|
+
k.resolveMap = Go;
|
|
3042
3042
|
k.resolveNode = me;
|
|
3043
|
-
k.resolveSeq =
|
|
3043
|
+
k.resolveSeq = ea;
|
|
3044
3044
|
k.resolveString = Kn;
|
|
3045
|
-
k.strOptions =
|
|
3046
|
-
k.stringifyNumber =
|
|
3047
|
-
k.stringifyString =
|
|
3045
|
+
k.strOptions = Ne;
|
|
3046
|
+
k.stringifyNumber = qo;
|
|
3047
|
+
k.stringifyString = Fo;
|
|
3048
3048
|
k.toJSON = ue;
|
|
3049
3049
|
});
|
|
3050
|
-
var Qn =
|
|
3050
|
+
var Qn = te(z => {
|
|
3051
3051
|
|
|
3052
|
-
var
|
|
3053
|
-
O =
|
|
3054
|
-
|
|
3052
|
+
var Q = le(),
|
|
3053
|
+
O = qe(),
|
|
3054
|
+
ra = {
|
|
3055
3055
|
identify: t => t instanceof Uint8Array,
|
|
3056
3056
|
default: false,
|
|
3057
3057
|
tag: "tag:yaml.org,2002:binary",
|
|
@@ -3065,7 +3065,7 @@ var Qn = ee(z => {
|
|
|
3065
3065
|
return s;
|
|
3066
3066
|
} else {
|
|
3067
3067
|
let r = "This environment does not support reading binary tags; either Buffer or atob is required";
|
|
3068
|
-
return t.errors.push(new
|
|
3068
|
+
return t.errors.push(new Q.YAMLReferenceError(e, r)), null;
|
|
3069
3069
|
}
|
|
3070
3070
|
},
|
|
3071
3071
|
options: O.binaryOptions,
|
|
@@ -3080,14 +3080,14 @@ var Qn = ee(z => {
|
|
|
3080
3080
|
for (let c = 0; c < n.length; ++c) a += String.fromCharCode(n[c]);
|
|
3081
3081
|
o = btoa(a);
|
|
3082
3082
|
} else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
|
|
3083
|
-
if (e || (e = O.binaryOptions.defaultType), e ===
|
|
3083
|
+
if (e || (e = O.binaryOptions.defaultType), e === Q.Type.QUOTE_DOUBLE) n = o;else {
|
|
3084
3084
|
let {
|
|
3085
3085
|
lineWidth: a
|
|
3086
3086
|
} = O.binaryOptions,
|
|
3087
3087
|
c = Math.ceil(o.length / a),
|
|
3088
3088
|
l = new Array(c);
|
|
3089
3089
|
for (let f = 0, m = 0; f < c; ++f, m += a) l[f] = o.substr(m, a);
|
|
3090
|
-
n = l.join(e ===
|
|
3090
|
+
n = l.join(e === Q.Type.BLOCK_LITERAL ? `
|
|
3091
3091
|
` : " ");
|
|
3092
3092
|
}
|
|
3093
3093
|
return O.stringifyString({
|
|
@@ -3097,7 +3097,7 @@ var Qn = ee(z => {
|
|
|
3097
3097
|
}, r, s, i);
|
|
3098
3098
|
}
|
|
3099
3099
|
};
|
|
3100
|
-
function
|
|
3100
|
+
function Js(t, e) {
|
|
3101
3101
|
let n = O.resolveSeq(t, e);
|
|
3102
3102
|
for (let r = 0; r < n.items.length; ++r) {
|
|
3103
3103
|
let s = n.items[r];
|
|
@@ -3105,7 +3105,7 @@ var Qn = ee(z => {
|
|
|
3105
3105
|
if (s instanceof O.YAMLMap) {
|
|
3106
3106
|
if (s.items.length > 1) {
|
|
3107
3107
|
let o = "Each pair must have its own sequence indicator";
|
|
3108
|
-
throw new
|
|
3108
|
+
throw new Q.YAMLSemanticError(e, o);
|
|
3109
3109
|
}
|
|
3110
3110
|
let i = s.items[0] || new O.Pair();
|
|
3111
3111
|
s.commentBefore && (i.commentBefore = i.commentBefore ? `${s.commentBefore}
|
|
@@ -3117,7 +3117,7 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3117
3117
|
}
|
|
3118
3118
|
return n;
|
|
3119
3119
|
}
|
|
3120
|
-
function
|
|
3120
|
+
function Gs(t, e, n) {
|
|
3121
3121
|
let r = new O.YAMLSeq(t);
|
|
3122
3122
|
r.tag = "tag:yaml.org,2002:pairs";
|
|
3123
3123
|
for (let s of e) {
|
|
@@ -3133,15 +3133,15 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3133
3133
|
}
|
|
3134
3134
|
return r;
|
|
3135
3135
|
}
|
|
3136
|
-
var
|
|
3136
|
+
var sa = {
|
|
3137
3137
|
default: false,
|
|
3138
3138
|
tag: "tag:yaml.org,2002:pairs",
|
|
3139
|
-
resolve:
|
|
3140
|
-
createNode:
|
|
3139
|
+
resolve: Js,
|
|
3140
|
+
createNode: Gs
|
|
3141
3141
|
},
|
|
3142
|
-
|
|
3142
|
+
Ue = class t extends O.YAMLSeq {
|
|
3143
3143
|
constructor() {
|
|
3144
|
-
super(),
|
|
3144
|
+
super(), Q._defineProperty(this, "add", O.YAMLMap.prototype.add.bind(this)), Q._defineProperty(this, "delete", O.YAMLMap.prototype.delete.bind(this)), Q._defineProperty(this, "get", O.YAMLMap.prototype.get.bind(this)), Q._defineProperty(this, "has", O.YAMLMap.prototype.has.bind(this)), Q._defineProperty(this, "set", O.YAMLMap.prototype.set.bind(this)), this.tag = t.tag;
|
|
3145
3145
|
}
|
|
3146
3146
|
toJSON(e, n) {
|
|
3147
3147
|
let r = new Map();
|
|
@@ -3154,32 +3154,32 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3154
3154
|
return r;
|
|
3155
3155
|
}
|
|
3156
3156
|
};
|
|
3157
|
-
|
|
3158
|
-
function
|
|
3159
|
-
let n =
|
|
3157
|
+
Q._defineProperty(Ue, "tag", "tag:yaml.org,2002:omap");
|
|
3158
|
+
function ia(t, e) {
|
|
3159
|
+
let n = Js(t, e),
|
|
3160
3160
|
r = [];
|
|
3161
3161
|
for (let {
|
|
3162
3162
|
key: s
|
|
3163
3163
|
} of n.items) if (s instanceof O.Scalar) if (r.includes(s.value)) {
|
|
3164
3164
|
let i = "Ordered maps must not include duplicate keys";
|
|
3165
|
-
throw new
|
|
3165
|
+
throw new Q.YAMLSemanticError(e, i);
|
|
3166
3166
|
} else r.push(s.value);
|
|
3167
|
-
return Object.assign(new
|
|
3167
|
+
return Object.assign(new Ue(), n);
|
|
3168
3168
|
}
|
|
3169
|
-
function
|
|
3170
|
-
let r =
|
|
3171
|
-
s = new
|
|
3169
|
+
function oa(t, e, n) {
|
|
3170
|
+
let r = Gs(t, e, n),
|
|
3171
|
+
s = new Ue();
|
|
3172
3172
|
return s.items = r.items, s;
|
|
3173
3173
|
}
|
|
3174
|
-
var
|
|
3174
|
+
var aa = {
|
|
3175
3175
|
identify: t => t instanceof Map,
|
|
3176
|
-
nodeClass:
|
|
3176
|
+
nodeClass: Ue,
|
|
3177
3177
|
default: false,
|
|
3178
3178
|
tag: "tag:yaml.org,2002:omap",
|
|
3179
|
-
resolve:
|
|
3180
|
-
createNode:
|
|
3179
|
+
resolve: ia,
|
|
3180
|
+
createNode: oa
|
|
3181
3181
|
},
|
|
3182
|
-
|
|
3182
|
+
Ke = class t extends O.YAMLMap {
|
|
3183
3183
|
constructor() {
|
|
3184
3184
|
super(), this.tag = t.tag;
|
|
3185
3185
|
}
|
|
@@ -3205,30 +3205,30 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3205
3205
|
throw new Error("Set items must all have null values");
|
|
3206
3206
|
}
|
|
3207
3207
|
};
|
|
3208
|
-
|
|
3209
|
-
function
|
|
3208
|
+
Q._defineProperty(Ke, "tag", "tag:yaml.org,2002:set");
|
|
3209
|
+
function ca(t, e) {
|
|
3210
3210
|
let n = O.resolveMap(t, e);
|
|
3211
|
-
if (!n.hasAllNullValues()) throw new
|
|
3212
|
-
return Object.assign(new
|
|
3211
|
+
if (!n.hasAllNullValues()) throw new Q.YAMLSemanticError(e, "Set items must all have null values");
|
|
3212
|
+
return Object.assign(new Ke(), n);
|
|
3213
3213
|
}
|
|
3214
|
-
function
|
|
3215
|
-
let r = new
|
|
3214
|
+
function la(t, e, n) {
|
|
3215
|
+
let r = new Ke();
|
|
3216
3216
|
for (let s of e) r.items.push(t.createPair(s, null, n));
|
|
3217
3217
|
return r;
|
|
3218
3218
|
}
|
|
3219
|
-
var
|
|
3219
|
+
var fa = {
|
|
3220
3220
|
identify: t => t instanceof Set,
|
|
3221
|
-
nodeClass:
|
|
3221
|
+
nodeClass: Ke,
|
|
3222
3222
|
default: false,
|
|
3223
3223
|
tag: "tag:yaml.org,2002:set",
|
|
3224
|
-
resolve:
|
|
3225
|
-
createNode:
|
|
3224
|
+
resolve: ca,
|
|
3225
|
+
createNode: la
|
|
3226
3226
|
},
|
|
3227
3227
|
Vn = (t, e) => {
|
|
3228
3228
|
let n = e.split(":").reduce((r, s) => r * 60 + Number(s), 0);
|
|
3229
3229
|
return t === "-" ? -n : n;
|
|
3230
3230
|
},
|
|
3231
|
-
|
|
3231
|
+
Hs = ({
|
|
3232
3232
|
value: t
|
|
3233
3233
|
}) => {
|
|
3234
3234
|
if (isNaN(t) || !isFinite(t)) return O.stringifyNumber(t);
|
|
@@ -3237,25 +3237,25 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3237
3237
|
let n = [t % 60];
|
|
3238
3238
|
return t < 60 ? n.unshift(0) : (t = Math.round((t - n[0]) / 60), n.unshift(t % 60), t >= 60 && (t = Math.round((t - n[0]) / 60), n.unshift(t))), e + n.map(r => r < 10 ? "0" + String(r) : String(r)).join(":").replace(/000000\d*$/, "");
|
|
3239
3239
|
},
|
|
3240
|
-
|
|
3240
|
+
ua = {
|
|
3241
3241
|
identify: t => typeof t == "number",
|
|
3242
3242
|
default: true,
|
|
3243
3243
|
tag: "tag:yaml.org,2002:int",
|
|
3244
3244
|
format: "TIME",
|
|
3245
3245
|
test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,
|
|
3246
3246
|
resolve: (t, e, n) => Vn(e, n.replace(/_/g, "")),
|
|
3247
|
-
stringify:
|
|
3247
|
+
stringify: Hs
|
|
3248
3248
|
},
|
|
3249
|
-
|
|
3249
|
+
pa = {
|
|
3250
3250
|
identify: t => typeof t == "number",
|
|
3251
3251
|
default: true,
|
|
3252
3252
|
tag: "tag:yaml.org,2002:float",
|
|
3253
3253
|
format: "TIME",
|
|
3254
3254
|
test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,
|
|
3255
3255
|
resolve: (t, e, n) => Vn(e, n.replace(/_/g, "")),
|
|
3256
|
-
stringify:
|
|
3256
|
+
stringify: Hs
|
|
3257
3257
|
},
|
|
3258
|
-
|
|
3258
|
+
ma = {
|
|
3259
3259
|
identify: t => t instanceof Date,
|
|
3260
3260
|
default: true,
|
|
3261
3261
|
tag: "tag:yaml.org,2002:timestamp",
|
|
@@ -3280,49 +3280,49 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3280
3280
|
function jn(t, e) {
|
|
3281
3281
|
Wn(false) && console.warn(e ? `${e}: ${t}` : t);
|
|
3282
3282
|
}
|
|
3283
|
-
function
|
|
3283
|
+
function ha(t) {
|
|
3284
3284
|
if (Wn(true)) {
|
|
3285
3285
|
let e = t.replace(/.*yaml[/\\]/i, "").replace(/\.js$/, "").replace(/\\/g, "/");
|
|
3286
3286
|
jn(`The endpoint 'yaml/${e}' will be removed in a future release.`, "DeprecationWarning");
|
|
3287
3287
|
}
|
|
3288
3288
|
}
|
|
3289
|
-
var
|
|
3290
|
-
function
|
|
3291
|
-
if (!
|
|
3292
|
-
|
|
3289
|
+
var Qs = {};
|
|
3290
|
+
function ga(t, e) {
|
|
3291
|
+
if (!Qs[t] && Wn(true)) {
|
|
3292
|
+
Qs[t] = true;
|
|
3293
3293
|
let n = `The option '${t}' will be removed in a future release`;
|
|
3294
3294
|
n += e ? `, use '${e}' instead.` : ".", jn(n, "DeprecationWarning");
|
|
3295
3295
|
}
|
|
3296
3296
|
}
|
|
3297
|
-
z.binary =
|
|
3298
|
-
z.floatTime =
|
|
3299
|
-
z.intTime =
|
|
3300
|
-
z.omap =
|
|
3301
|
-
z.pairs =
|
|
3302
|
-
z.set =
|
|
3303
|
-
z.timestamp =
|
|
3297
|
+
z.binary = ra;
|
|
3298
|
+
z.floatTime = pa;
|
|
3299
|
+
z.intTime = ua;
|
|
3300
|
+
z.omap = aa;
|
|
3301
|
+
z.pairs = sa;
|
|
3302
|
+
z.set = fa;
|
|
3303
|
+
z.timestamp = ma;
|
|
3304
3304
|
z.warn = jn;
|
|
3305
|
-
z.warnFileDeprecation =
|
|
3306
|
-
z.warnOptionDeprecation =
|
|
3305
|
+
z.warnFileDeprecation = ha;
|
|
3306
|
+
z.warnOptionDeprecation = ga;
|
|
3307
3307
|
});
|
|
3308
|
-
var Xn =
|
|
3308
|
+
var Xn = te(li => {
|
|
3309
3309
|
|
|
3310
3310
|
var Jt = le(),
|
|
3311
|
-
E =
|
|
3311
|
+
E = qe(),
|
|
3312
3312
|
D = Qn();
|
|
3313
|
-
function
|
|
3313
|
+
function da(t, e, n) {
|
|
3314
3314
|
let r = new E.YAMLMap(t);
|
|
3315
3315
|
if (e instanceof Map) for (let [s, i] of e) r.items.push(t.createPair(s, i, n));else if (e && typeof e == "object") for (let s of Object.keys(e)) r.items.push(t.createPair(s, e[s], n));
|
|
3316
3316
|
return typeof t.sortMapEntries == "function" && r.items.sort(t.sortMapEntries), r;
|
|
3317
3317
|
}
|
|
3318
3318
|
var gt = {
|
|
3319
|
-
createNode:
|
|
3319
|
+
createNode: da,
|
|
3320
3320
|
default: true,
|
|
3321
3321
|
nodeClass: E.YAMLMap,
|
|
3322
3322
|
tag: "tag:yaml.org,2002:map",
|
|
3323
3323
|
resolve: E.resolveMap
|
|
3324
3324
|
};
|
|
3325
|
-
function
|
|
3325
|
+
function ya(t, e, n) {
|
|
3326
3326
|
let r = new E.YAMLSeq(t);
|
|
3327
3327
|
if (e && e[Symbol.iterator]) for (let s of e) {
|
|
3328
3328
|
let i = t.createNode(s, n.wrapScalars, null, n);
|
|
@@ -3331,13 +3331,13 @@ var Xn = ee(ii => {
|
|
|
3331
3331
|
return r;
|
|
3332
3332
|
}
|
|
3333
3333
|
var Gt = {
|
|
3334
|
-
createNode:
|
|
3334
|
+
createNode: ya,
|
|
3335
3335
|
default: true,
|
|
3336
3336
|
nodeClass: E.YAMLSeq,
|
|
3337
3337
|
tag: "tag:yaml.org,2002:seq",
|
|
3338
3338
|
resolve: E.resolveSeq
|
|
3339
3339
|
},
|
|
3340
|
-
|
|
3340
|
+
Ea = {
|
|
3341
3341
|
identify: t => typeof t == "string",
|
|
3342
3342
|
default: true,
|
|
3343
3343
|
tag: "tag:yaml.org,2002:str",
|
|
@@ -3349,16 +3349,16 @@ var Xn = ee(ii => {
|
|
|
3349
3349
|
},
|
|
3350
3350
|
options: E.strOptions
|
|
3351
3351
|
},
|
|
3352
|
-
Gn = [gt, Gt,
|
|
3352
|
+
Gn = [gt, Gt, Ea],
|
|
3353
3353
|
Ht = t => typeof t == "bigint" || Number.isInteger(t),
|
|
3354
3354
|
Hn = (t, e, n) => E.intOptions.asBigInt ? BigInt(t) : parseInt(e, n);
|
|
3355
|
-
function
|
|
3355
|
+
function Zs(t, e, n) {
|
|
3356
3356
|
let {
|
|
3357
3357
|
value: r
|
|
3358
3358
|
} = t;
|
|
3359
3359
|
return Ht(r) && r >= 0 ? n + r.toString(e) : E.stringifyNumber(t);
|
|
3360
3360
|
}
|
|
3361
|
-
var
|
|
3361
|
+
var ei = {
|
|
3362
3362
|
identify: t => t == null,
|
|
3363
3363
|
createNode: (t, e, n) => n.wrapScalars ? new E.Scalar(null) : null,
|
|
3364
3364
|
default: true,
|
|
@@ -3368,7 +3368,7 @@ var Xn = ee(ii => {
|
|
|
3368
3368
|
options: E.nullOptions,
|
|
3369
3369
|
stringify: () => E.nullOptions.nullStr
|
|
3370
3370
|
},
|
|
3371
|
-
|
|
3371
|
+
ti = {
|
|
3372
3372
|
identify: t => typeof t == "boolean",
|
|
3373
3373
|
default: true,
|
|
3374
3374
|
tag: "tag:yaml.org,2002:bool",
|
|
@@ -3379,7 +3379,7 @@ var Xn = ee(ii => {
|
|
|
3379
3379
|
value: t
|
|
3380
3380
|
}) => t ? E.boolOptions.trueStr : E.boolOptions.falseStr
|
|
3381
3381
|
},
|
|
3382
|
-
|
|
3382
|
+
ni = {
|
|
3383
3383
|
identify: t => Ht(t) && t >= 0,
|
|
3384
3384
|
default: true,
|
|
3385
3385
|
tag: "tag:yaml.org,2002:int",
|
|
@@ -3387,9 +3387,9 @@ var Xn = ee(ii => {
|
|
|
3387
3387
|
test: /^0o([0-7]+)$/,
|
|
3388
3388
|
resolve: (t, e) => Hn(t, e, 8),
|
|
3389
3389
|
options: E.intOptions,
|
|
3390
|
-
stringify: t =>
|
|
3390
|
+
stringify: t => Zs(t, 8, "0o")
|
|
3391
3391
|
},
|
|
3392
|
-
|
|
3392
|
+
ri = {
|
|
3393
3393
|
identify: Ht,
|
|
3394
3394
|
default: true,
|
|
3395
3395
|
tag: "tag:yaml.org,2002:int",
|
|
@@ -3398,7 +3398,7 @@ var Xn = ee(ii => {
|
|
|
3398
3398
|
options: E.intOptions,
|
|
3399
3399
|
stringify: E.stringifyNumber
|
|
3400
3400
|
},
|
|
3401
|
-
|
|
3401
|
+
si = {
|
|
3402
3402
|
identify: t => Ht(t) && t >= 0,
|
|
3403
3403
|
default: true,
|
|
3404
3404
|
tag: "tag:yaml.org,2002:int",
|
|
@@ -3406,9 +3406,9 @@ var Xn = ee(ii => {
|
|
|
3406
3406
|
test: /^0x([0-9a-fA-F]+)$/,
|
|
3407
3407
|
resolve: (t, e) => Hn(t, e, 16),
|
|
3408
3408
|
options: E.intOptions,
|
|
3409
|
-
stringify: t =>
|
|
3409
|
+
stringify: t => Zs(t, 16, "0x")
|
|
3410
3410
|
},
|
|
3411
|
-
|
|
3411
|
+
ii = {
|
|
3412
3412
|
identify: t => typeof t == "number",
|
|
3413
3413
|
default: true,
|
|
3414
3414
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -3416,7 +3416,7 @@ var Xn = ee(ii => {
|
|
|
3416
3416
|
resolve: (t, e) => e ? NaN : t[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
3417
3417
|
stringify: E.stringifyNumber
|
|
3418
3418
|
},
|
|
3419
|
-
|
|
3419
|
+
oi = {
|
|
3420
3420
|
identify: t => typeof t == "number",
|
|
3421
3421
|
default: true,
|
|
3422
3422
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -3427,7 +3427,7 @@ var Xn = ee(ii => {
|
|
|
3427
3427
|
value: t
|
|
3428
3428
|
}) => Number(t).toExponential()
|
|
3429
3429
|
},
|
|
3430
|
-
|
|
3430
|
+
ai = {
|
|
3431
3431
|
identify: t => typeof t == "number",
|
|
3432
3432
|
default: true,
|
|
3433
3433
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -3439,12 +3439,12 @@ var Xn = ee(ii => {
|
|
|
3439
3439
|
},
|
|
3440
3440
|
stringify: E.stringifyNumber
|
|
3441
3441
|
},
|
|
3442
|
-
|
|
3443
|
-
|
|
3442
|
+
Sa = Gn.concat([ei, ti, ni, ri, si, ii, oi, ai]),
|
|
3443
|
+
Xs = t => typeof t == "bigint" || Number.isInteger(t),
|
|
3444
3444
|
jt = ({
|
|
3445
3445
|
value: t
|
|
3446
3446
|
}) => JSON.stringify(t),
|
|
3447
|
-
|
|
3447
|
+
ci = [gt, Gt, {
|
|
3448
3448
|
identify: t => typeof t == "string",
|
|
3449
3449
|
default: true,
|
|
3450
3450
|
tag: "tag:yaml.org,2002:str",
|
|
@@ -3466,14 +3466,14 @@ var Xn = ee(ii => {
|
|
|
3466
3466
|
resolve: t => t === "true",
|
|
3467
3467
|
stringify: jt
|
|
3468
3468
|
}, {
|
|
3469
|
-
identify:
|
|
3469
|
+
identify: Xs,
|
|
3470
3470
|
default: true,
|
|
3471
3471
|
tag: "tag:yaml.org,2002:int",
|
|
3472
3472
|
test: /^-?(?:0|[1-9][0-9]*)$/,
|
|
3473
3473
|
resolve: t => E.intOptions.asBigInt ? BigInt(t) : parseInt(t, 10),
|
|
3474
3474
|
stringify: ({
|
|
3475
3475
|
value: t
|
|
3476
|
-
}) =>
|
|
3476
|
+
}) => Xs(t) ? t.toString() : JSON.stringify(t)
|
|
3477
3477
|
}, {
|
|
3478
3478
|
identify: t => typeof t == "number",
|
|
3479
3479
|
default: true,
|
|
@@ -3482,10 +3482,10 @@ var Xn = ee(ii => {
|
|
|
3482
3482
|
resolve: t => parseFloat(t),
|
|
3483
3483
|
stringify: jt
|
|
3484
3484
|
}];
|
|
3485
|
-
|
|
3485
|
+
ci.scalarFallback = t => {
|
|
3486
3486
|
throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`);
|
|
3487
3487
|
};
|
|
3488
|
-
var
|
|
3488
|
+
var zs = ({
|
|
3489
3489
|
value: t
|
|
3490
3490
|
}) => t ? E.boolOptions.trueStr : E.boolOptions.falseStr,
|
|
3491
3491
|
ht = t => typeof t == "bigint" || Number.isInteger(t);
|
|
@@ -3519,7 +3519,7 @@ var Xn = ee(ii => {
|
|
|
3519
3519
|
}
|
|
3520
3520
|
return E.stringifyNumber(t);
|
|
3521
3521
|
}
|
|
3522
|
-
var
|
|
3522
|
+
var wa = Gn.concat([{
|
|
3523
3523
|
identify: t => t == null,
|
|
3524
3524
|
createNode: (t, e, n) => n.wrapScalars ? new E.Scalar(null) : null,
|
|
3525
3525
|
default: true,
|
|
@@ -3535,7 +3535,7 @@ var Xn = ee(ii => {
|
|
|
3535
3535
|
test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
|
|
3536
3536
|
resolve: () => true,
|
|
3537
3537
|
options: E.boolOptions,
|
|
3538
|
-
stringify:
|
|
3538
|
+
stringify: zs
|
|
3539
3539
|
}, {
|
|
3540
3540
|
identify: t => typeof t == "boolean",
|
|
3541
3541
|
default: true,
|
|
@@ -3543,7 +3543,7 @@ var Xn = ee(ii => {
|
|
|
3543
3543
|
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,
|
|
3544
3544
|
resolve: () => false,
|
|
3545
3545
|
options: E.boolOptions,
|
|
3546
|
-
stringify:
|
|
3546
|
+
stringify: zs
|
|
3547
3547
|
}, {
|
|
3548
3548
|
identify: ht,
|
|
3549
3549
|
default: true,
|
|
@@ -3607,32 +3607,32 @@ var Xn = ee(ii => {
|
|
|
3607
3607
|
},
|
|
3608
3608
|
stringify: E.stringifyNumber
|
|
3609
3609
|
}], D.binary, D.omap, D.pairs, D.set, D.intTime, D.floatTime, D.timestamp),
|
|
3610
|
-
|
|
3611
|
-
core:
|
|
3610
|
+
ba = {
|
|
3611
|
+
core: Sa,
|
|
3612
3612
|
failsafe: Gn,
|
|
3613
|
-
json:
|
|
3614
|
-
yaml11:
|
|
3613
|
+
json: ci,
|
|
3614
|
+
yaml11: wa
|
|
3615
3615
|
},
|
|
3616
|
-
|
|
3616
|
+
Na = {
|
|
3617
3617
|
binary: D.binary,
|
|
3618
|
-
bool:
|
|
3619
|
-
float:
|
|
3620
|
-
floatExp:
|
|
3621
|
-
floatNaN:
|
|
3618
|
+
bool: ti,
|
|
3619
|
+
float: ai,
|
|
3620
|
+
floatExp: oi,
|
|
3621
|
+
floatNaN: ii,
|
|
3622
3622
|
floatTime: D.floatTime,
|
|
3623
|
-
int:
|
|
3624
|
-
intHex:
|
|
3625
|
-
intOct:
|
|
3623
|
+
int: ri,
|
|
3624
|
+
intHex: si,
|
|
3625
|
+
intOct: ni,
|
|
3626
3626
|
intTime: D.intTime,
|
|
3627
3627
|
map: gt,
|
|
3628
|
-
null:
|
|
3628
|
+
null: ei,
|
|
3629
3629
|
omap: D.omap,
|
|
3630
3630
|
pairs: D.pairs,
|
|
3631
3631
|
seq: Gt,
|
|
3632
3632
|
set: D.set,
|
|
3633
3633
|
timestamp: D.timestamp
|
|
3634
3634
|
};
|
|
3635
|
-
function
|
|
3635
|
+
function Oa(t, e, n) {
|
|
3636
3636
|
if (e) {
|
|
3637
3637
|
let r = n.filter(i => i.tag === e),
|
|
3638
3638
|
s = r.find(i => !i.format) || r[0];
|
|
@@ -3641,7 +3641,7 @@ var Xn = ee(ii => {
|
|
|
3641
3641
|
}
|
|
3642
3642
|
return n.find(r => (r.identify && r.identify(t) || r.class && t instanceof r.class) && !r.format);
|
|
3643
3643
|
}
|
|
3644
|
-
function
|
|
3644
|
+
function La(t, e, n) {
|
|
3645
3645
|
if (t instanceof E.Node) return t;
|
|
3646
3646
|
let {
|
|
3647
3647
|
defaultPrefix: r,
|
|
@@ -3651,7 +3651,7 @@ var Xn = ee(ii => {
|
|
|
3651
3651
|
wrapScalars: a
|
|
3652
3652
|
} = n;
|
|
3653
3653
|
e && e.startsWith("!!") && (e = r + e.slice(2));
|
|
3654
|
-
let c =
|
|
3654
|
+
let c = Oa(t, e, o.tags);
|
|
3655
3655
|
if (!c) {
|
|
3656
3656
|
if (typeof t.toJSON == "function" && (t = t.toJSON()), !t || typeof t != "object") return a ? new E.Scalar(t) : t;
|
|
3657
3657
|
c = t instanceof Map ? gt : t[Symbol.iterator] ? Gt : gt;
|
|
@@ -3671,7 +3671,7 @@ var Xn = ee(ii => {
|
|
|
3671
3671
|
}
|
|
3672
3672
|
return l.node = c.createNode ? c.createNode(n.schema, t, n) : a ? new E.Scalar(t) : t, e && l.node instanceof E.Node && (l.node.tag = e), l.node;
|
|
3673
3673
|
}
|
|
3674
|
-
function
|
|
3674
|
+
function Aa(t, e, n, r) {
|
|
3675
3675
|
let s = t[r.replace(/\W/g, "")];
|
|
3676
3676
|
if (!s) {
|
|
3677
3677
|
let i = Object.keys(t).map(o => JSON.stringify(o)).join(", ");
|
|
@@ -3691,7 +3691,7 @@ var Xn = ee(ii => {
|
|
|
3691
3691
|
}
|
|
3692
3692
|
return s;
|
|
3693
3693
|
}
|
|
3694
|
-
var
|
|
3694
|
+
var Ta = (t, e) => t.key < e.key ? -1 : t.key > e.key ? 1 : 0,
|
|
3695
3695
|
dt = class t {
|
|
3696
3696
|
constructor({
|
|
3697
3697
|
customTags: e,
|
|
@@ -3700,7 +3700,7 @@ var Xn = ee(ii => {
|
|
|
3700
3700
|
sortMapEntries: s,
|
|
3701
3701
|
tags: i
|
|
3702
3702
|
}) {
|
|
3703
|
-
this.merge = !!n, this.name = r, this.sortMapEntries = s === true ?
|
|
3703
|
+
this.merge = !!n, this.name = r, this.sortMapEntries = s === true ? Ta : s || null, !e && i && D.warnOptionDeprecation("tags", "customTags"), this.tags = Aa(ba, Na, e || i, r);
|
|
3704
3704
|
}
|
|
3705
3705
|
createNode(e, n, r, s) {
|
|
3706
3706
|
let i = {
|
|
@@ -3709,7 +3709,7 @@ var Xn = ee(ii => {
|
|
|
3709
3709
|
wrapScalars: n
|
|
3710
3710
|
},
|
|
3711
3711
|
o = s ? Object.assign(s, i) : i;
|
|
3712
|
-
return
|
|
3712
|
+
return La(e, r, o);
|
|
3713
3713
|
}
|
|
3714
3714
|
createPair(e, n, r) {
|
|
3715
3715
|
r || (r = {
|
|
@@ -3722,14 +3722,14 @@ var Xn = ee(ii => {
|
|
|
3722
3722
|
};
|
|
3723
3723
|
Jt._defineProperty(dt, "defaultPrefix", Jt.defaultTagPrefix);
|
|
3724
3724
|
Jt._defineProperty(dt, "defaultTags", Jt.defaultTags);
|
|
3725
|
-
|
|
3725
|
+
li.Schema = dt;
|
|
3726
3726
|
});
|
|
3727
|
-
var
|
|
3727
|
+
var mi = te(en => {
|
|
3728
3728
|
|
|
3729
3729
|
var Y = le(),
|
|
3730
|
-
S =
|
|
3731
|
-
|
|
3732
|
-
|
|
3730
|
+
S = qe(),
|
|
3731
|
+
fi = Xn(),
|
|
3732
|
+
Ca = {
|
|
3733
3733
|
anchorPrefix: "a",
|
|
3734
3734
|
customTags: null,
|
|
3735
3735
|
indent: 2,
|
|
@@ -3743,7 +3743,7 @@ var li = ee(en => {
|
|
|
3743
3743
|
simpleKeys: false,
|
|
3744
3744
|
version: "1.2"
|
|
3745
3745
|
},
|
|
3746
|
-
|
|
3746
|
+
Ma = {
|
|
3747
3747
|
get binary() {
|
|
3748
3748
|
return S.binaryOptions;
|
|
3749
3749
|
},
|
|
@@ -3775,7 +3775,7 @@ var li = ee(en => {
|
|
|
3775
3775
|
Object.assign(S.strOptions, t);
|
|
3776
3776
|
}
|
|
3777
3777
|
},
|
|
3778
|
-
|
|
3778
|
+
pi = {
|
|
3779
3779
|
"1.0": {
|
|
3780
3780
|
schema: "yaml-1.1",
|
|
3781
3781
|
merge: true,
|
|
@@ -3810,7 +3810,7 @@ var li = ee(en => {
|
|
|
3810
3810
|
}]
|
|
3811
3811
|
}
|
|
3812
3812
|
};
|
|
3813
|
-
function
|
|
3813
|
+
function ui(t, e) {
|
|
3814
3814
|
if ((t.version || t.options.version) === "1.0") {
|
|
3815
3815
|
let s = e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);
|
|
3816
3816
|
if (s) return "!" + s[1];
|
|
@@ -3833,7 +3833,7 @@ var li = ee(en => {
|
|
|
3833
3833
|
})[s]);
|
|
3834
3834
|
return n.handle + r;
|
|
3835
3835
|
}
|
|
3836
|
-
function
|
|
3836
|
+
function ka(t, e) {
|
|
3837
3837
|
if (e instanceof S.Alias) return S.Alias;
|
|
3838
3838
|
if (e.tag) {
|
|
3839
3839
|
let s = t.filter(i => i.tag === e.tag);
|
|
@@ -3851,13 +3851,13 @@ var li = ee(en => {
|
|
|
3851
3851
|
}
|
|
3852
3852
|
return n;
|
|
3853
3853
|
}
|
|
3854
|
-
function
|
|
3854
|
+
function va(t, e, {
|
|
3855
3855
|
anchors: n,
|
|
3856
3856
|
doc: r
|
|
3857
3857
|
}) {
|
|
3858
3858
|
let s = [],
|
|
3859
3859
|
i = r.anchors.getName(t);
|
|
3860
|
-
return i && (n[i] = t, s.push(`&${i}`)), t.tag ? s.push(
|
|
3860
|
+
return i && (n[i] = t, s.push(`&${i}`)), t.tag ? s.push(ui(r, t.tag)) : e.default || s.push(ui(r, e.tag)), s.join(" ");
|
|
3861
3861
|
}
|
|
3862
3862
|
function Xt(t, e, n, r) {
|
|
3863
3863
|
let {
|
|
@@ -3879,8 +3879,8 @@ var li = ee(en => {
|
|
|
3879
3879
|
}
|
|
3880
3880
|
}
|
|
3881
3881
|
if (t instanceof S.Pair) return t.toString(e, n, r);
|
|
3882
|
-
o || (o =
|
|
3883
|
-
let a =
|
|
3882
|
+
o || (o = ka(i.tags, t));
|
|
3883
|
+
let a = va(t, o, e);
|
|
3884
3884
|
a.length > 0 && (e.indentAtStart = (e.indentAtStart || 0) + a.length + 1);
|
|
3885
3885
|
let c = typeof o.stringify == "function" ? o.stringify(t, e, n, r) : t instanceof S.Scalar ? S.stringifyString(t, e, n, r) : t.toString(e, n, r);
|
|
3886
3886
|
return a ? t instanceof S.Scalar || c[0] === "{" || c[0] === "[" ? `${a} ${c}` : `${a}
|
|
@@ -3964,8 +3964,8 @@ ${e.indent}${c}` : c;
|
|
|
3964
3964
|
}
|
|
3965
3965
|
return e;
|
|
3966
3966
|
},
|
|
3967
|
-
|
|
3968
|
-
function
|
|
3967
|
+
Ia = t => Object.keys(zt(t, {}));
|
|
3968
|
+
function Pa(t, e) {
|
|
3969
3969
|
let n = {
|
|
3970
3970
|
before: [],
|
|
3971
3971
|
after: []
|
|
@@ -3995,7 +3995,7 @@ ${o.commentBefore}` : i;
|
|
|
3995
3995
|
`) || null;
|
|
3996
3996
|
}
|
|
3997
3997
|
}
|
|
3998
|
-
function
|
|
3998
|
+
function _a({
|
|
3999
3999
|
tagPrefixes: t
|
|
4000
4000
|
}, e) {
|
|
4001
4001
|
let [n, r] = e.parameters;
|
|
@@ -4012,19 +4012,19 @@ ${o.commentBefore}` : i;
|
|
|
4012
4012
|
prefix: r
|
|
4013
4013
|
};
|
|
4014
4014
|
}
|
|
4015
|
-
function
|
|
4015
|
+
function xa(t, e) {
|
|
4016
4016
|
let [n] = e.parameters;
|
|
4017
4017
|
if (e.name === "YAML:1.0" && (n = "1.0"), !n) {
|
|
4018
4018
|
let r = "Insufficient parameters given for %YAML directive";
|
|
4019
4019
|
throw new Y.YAMLSemanticError(e, r);
|
|
4020
4020
|
}
|
|
4021
|
-
if (!
|
|
4021
|
+
if (!pi[n]) {
|
|
4022
4022
|
let s = `Document will be parsed as YAML ${t.version || t.options.version} rather than YAML ${n}`;
|
|
4023
4023
|
t.warnings.push(new Y.YAMLWarning(e, s));
|
|
4024
4024
|
}
|
|
4025
4025
|
return n;
|
|
4026
4026
|
}
|
|
4027
|
-
function
|
|
4027
|
+
function Ra(t, e, n) {
|
|
4028
4028
|
let r = [],
|
|
4029
4029
|
s = false;
|
|
4030
4030
|
for (let i of e) {
|
|
@@ -4035,7 +4035,7 @@ ${o.commentBefore}` : i;
|
|
|
4035
4035
|
switch (a) {
|
|
4036
4036
|
case "TAG":
|
|
4037
4037
|
try {
|
|
4038
|
-
t.tagPrefixes.push(
|
|
4038
|
+
t.tagPrefixes.push(_a(t, i));
|
|
4039
4039
|
} catch (c) {
|
|
4040
4040
|
t.errors.push(c);
|
|
4041
4041
|
}
|
|
@@ -4048,7 +4048,7 @@ ${o.commentBefore}` : i;
|
|
|
4048
4048
|
t.errors.push(new Y.YAMLSemanticError(i, c));
|
|
4049
4049
|
}
|
|
4050
4050
|
try {
|
|
4051
|
-
t.version =
|
|
4051
|
+
t.version = xa(t, i);
|
|
4052
4052
|
} catch (c) {
|
|
4053
4053
|
t.errors.push(c);
|
|
4054
4054
|
}
|
|
@@ -4075,7 +4075,7 @@ ${o.commentBefore}` : i;
|
|
|
4075
4075
|
t.commentBefore = r.join(`
|
|
4076
4076
|
`) || null;
|
|
4077
4077
|
}
|
|
4078
|
-
function
|
|
4078
|
+
function Ve(t) {
|
|
4079
4079
|
if (t instanceof S.Collection) return true;
|
|
4080
4080
|
throw new Error("Expected a YAML collection as document contents");
|
|
4081
4081
|
}
|
|
@@ -4084,16 +4084,16 @@ ${o.commentBefore}` : i;
|
|
|
4084
4084
|
this.anchors = new zn(e.anchorPrefix), this.commentBefore = null, this.comment = null, this.contents = null, this.directivesEndMarker = null, this.errors = [], this.options = e, this.schema = null, this.tagPrefixes = [], this.version = null, this.warnings = [];
|
|
4085
4085
|
}
|
|
4086
4086
|
add(e) {
|
|
4087
|
-
return
|
|
4087
|
+
return Ve(this.contents), this.contents.add(e);
|
|
4088
4088
|
}
|
|
4089
4089
|
addIn(e, n) {
|
|
4090
|
-
|
|
4090
|
+
Ve(this.contents), this.contents.addIn(e, n);
|
|
4091
4091
|
}
|
|
4092
4092
|
delete(e) {
|
|
4093
|
-
return
|
|
4093
|
+
return Ve(this.contents), this.contents.delete(e);
|
|
4094
4094
|
}
|
|
4095
4095
|
deleteIn(e) {
|
|
4096
|
-
return S.isEmptyPath(e) ? this.contents == null ? false : (this.contents = null, true) : (
|
|
4096
|
+
return S.isEmptyPath(e) ? this.contents == null ? false : (this.contents = null, true) : (Ve(this.contents), this.contents.deleteIn(e));
|
|
4097
4097
|
}
|
|
4098
4098
|
getDefaults() {
|
|
4099
4099
|
return t.defaults[this.version] || t.defaults[this.options.version] || {};
|
|
@@ -4111,16 +4111,16 @@ ${o.commentBefore}` : i;
|
|
|
4111
4111
|
return S.isEmptyPath(e) ? this.contents !== void 0 : this.contents instanceof S.Collection ? this.contents.hasIn(e) : false;
|
|
4112
4112
|
}
|
|
4113
4113
|
set(e, n) {
|
|
4114
|
-
|
|
4114
|
+
Ve(this.contents), this.contents.set(e, n);
|
|
4115
4115
|
}
|
|
4116
4116
|
setIn(e, n) {
|
|
4117
|
-
S.isEmptyPath(e) ? this.contents = n : (
|
|
4117
|
+
S.isEmptyPath(e) ? this.contents = n : (Ve(this.contents), this.contents.setIn(e, n));
|
|
4118
4118
|
}
|
|
4119
4119
|
setSchema(e, n) {
|
|
4120
4120
|
if (!e && !n && this.schema) return;
|
|
4121
4121
|
typeof e == "number" && (e = e.toFixed(1)), e === "1.0" || e === "1.1" || e === "1.2" ? (this.version ? this.version = e : this.options.version = e, delete this.options.schema) : e && typeof e == "string" && (this.options.schema = e), Array.isArray(n) && (this.options.customTags = n);
|
|
4122
4122
|
let r = Object.assign({}, this.getDefaults(), this.options);
|
|
4123
|
-
this.schema = new
|
|
4123
|
+
this.schema = new fi.Schema(r);
|
|
4124
4124
|
}
|
|
4125
4125
|
parse(e, n) {
|
|
4126
4126
|
this.options.keepCstNodes && (this.cstNode = e), this.options.keepNodeTypes && (this.type = "DOCUMENT");
|
|
@@ -4131,14 +4131,14 @@ ${o.commentBefore}` : i;
|
|
|
4131
4131
|
error: o,
|
|
4132
4132
|
valueRange: a
|
|
4133
4133
|
} = e;
|
|
4134
|
-
if (o && (o.source || (o.source = this), this.errors.push(o)),
|
|
4134
|
+
if (o && (o.source || (o.source = this), this.errors.push(o)), Ra(this, r, n), i && (this.directivesEndMarker = true), this.range = a ? [a.start, a.end] : null, this.setSchema(), this.anchors._cstAliases = [], Pa(this, s), this.anchors.resolveNodes(), this.options.prettyErrors) {
|
|
4135
4135
|
for (let c of this.errors) c instanceof Y.YAMLError && c.makePretty();
|
|
4136
4136
|
for (let c of this.warnings) c instanceof Y.YAMLError && c.makePretty();
|
|
4137
4137
|
}
|
|
4138
4138
|
return this;
|
|
4139
4139
|
}
|
|
4140
4140
|
listNonDefaultTags() {
|
|
4141
|
-
return
|
|
4141
|
+
return Ia(this.contents).filter(e => e.indexOf(fi.Schema.defaultPrefix) !== 0);
|
|
4142
4142
|
}
|
|
4143
4143
|
setTagPrefix(e, n) {
|
|
4144
4144
|
if (e[0] !== "!" || e[e.length - 1] !== "!") throw new Error("Handle must start and end with !");
|
|
@@ -4219,159 +4219,224 @@ ${o.commentBefore}` : i;
|
|
|
4219
4219
|
`;
|
|
4220
4220
|
}
|
|
4221
4221
|
};
|
|
4222
|
-
Y._defineProperty(Zt, "defaults",
|
|
4222
|
+
Y._defineProperty(Zt, "defaults", pi);
|
|
4223
4223
|
en.Document = Zt;
|
|
4224
|
-
en.defaultOptions =
|
|
4225
|
-
en.scalarOptions =
|
|
4224
|
+
en.defaultOptions = Ca;
|
|
4225
|
+
en.scalarOptions = Ma;
|
|
4226
4226
|
});
|
|
4227
|
-
var
|
|
4227
|
+
var di = te(gi => {
|
|
4228
4228
|
|
|
4229
|
-
var Zn =
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
function
|
|
4229
|
+
var Zn = Rs(),
|
|
4230
|
+
Oe = mi(),
|
|
4231
|
+
Da = Xn(),
|
|
4232
|
+
Ya = le(),
|
|
4233
|
+
$a = Qn();
|
|
4234
|
+
qe();
|
|
4235
|
+
function Ba(t, e = true, n) {
|
|
4236
4236
|
n === void 0 && typeof e == "string" && (n = e, e = true);
|
|
4237
|
-
let r = Object.assign({},
|
|
4238
|
-
return new
|
|
4237
|
+
let r = Object.assign({}, Oe.Document.defaults[Oe.defaultOptions.version], Oe.defaultOptions);
|
|
4238
|
+
return new Da.Schema(r).createNode(t, e, n);
|
|
4239
4239
|
}
|
|
4240
|
-
var
|
|
4240
|
+
var We = class extends Oe.Document {
|
|
4241
4241
|
constructor(e) {
|
|
4242
|
-
super(Object.assign({},
|
|
4242
|
+
super(Object.assign({}, Oe.defaultOptions, e));
|
|
4243
4243
|
}
|
|
4244
4244
|
};
|
|
4245
|
-
function
|
|
4245
|
+
function Fa(t, e) {
|
|
4246
4246
|
let n = [],
|
|
4247
4247
|
r;
|
|
4248
4248
|
for (let s of Zn.parse(t)) {
|
|
4249
|
-
let i = new
|
|
4249
|
+
let i = new We(e);
|
|
4250
4250
|
i.parse(s, r), n.push(i), r = i;
|
|
4251
4251
|
}
|
|
4252
4252
|
return n;
|
|
4253
4253
|
}
|
|
4254
|
-
function
|
|
4254
|
+
function hi(t, e) {
|
|
4255
4255
|
let n = Zn.parse(t),
|
|
4256
|
-
r = new
|
|
4256
|
+
r = new We(e).parse(n[0]);
|
|
4257
4257
|
if (n.length > 1) {
|
|
4258
4258
|
let s = "Source contains multiple documents; please use YAML.parseAllDocuments()";
|
|
4259
|
-
r.errors.unshift(new
|
|
4259
|
+
r.errors.unshift(new Ya.YAMLSemanticError(n[1], s));
|
|
4260
4260
|
}
|
|
4261
4261
|
return r;
|
|
4262
4262
|
}
|
|
4263
|
-
function
|
|
4264
|
-
let n =
|
|
4265
|
-
if (n.warnings.forEach(r =>
|
|
4263
|
+
function qa(t, e) {
|
|
4264
|
+
let n = hi(t, e);
|
|
4265
|
+
if (n.warnings.forEach(r => $a.warn(r)), n.errors.length > 0) throw n.errors[0];
|
|
4266
4266
|
return n.toJSON();
|
|
4267
4267
|
}
|
|
4268
|
-
function
|
|
4269
|
-
let n = new
|
|
4268
|
+
function Ua(t, e) {
|
|
4269
|
+
let n = new We(e);
|
|
4270
4270
|
return n.contents = t, String(n);
|
|
4271
4271
|
}
|
|
4272
|
-
var
|
|
4273
|
-
createNode:
|
|
4274
|
-
defaultOptions:
|
|
4275
|
-
Document:
|
|
4276
|
-
parse:
|
|
4277
|
-
parseAllDocuments:
|
|
4272
|
+
var Ka = {
|
|
4273
|
+
createNode: Ba,
|
|
4274
|
+
defaultOptions: Oe.defaultOptions,
|
|
4275
|
+
Document: We,
|
|
4276
|
+
parse: qa,
|
|
4277
|
+
parseAllDocuments: Fa,
|
|
4278
4278
|
parseCST: Zn.parse,
|
|
4279
|
-
parseDocument:
|
|
4280
|
-
scalarOptions:
|
|
4281
|
-
stringify:
|
|
4279
|
+
parseDocument: hi,
|
|
4280
|
+
scalarOptions: Oe.scalarOptions,
|
|
4281
|
+
stringify: Ua
|
|
4282
4282
|
};
|
|
4283
|
-
|
|
4283
|
+
gi.YAML = Ka;
|
|
4284
4284
|
});
|
|
4285
|
-
var
|
|
4286
|
-
|
|
4285
|
+
var Ei = te((qm, yi) => {
|
|
4286
|
+
yi.exports = di().YAML;
|
|
4287
4287
|
});
|
|
4288
|
-
var
|
|
4288
|
+
var Si = te(J => {
|
|
4289
4289
|
|
|
4290
|
-
var
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4290
|
+
var je = qe(),
|
|
4291
|
+
Qe = le();
|
|
4292
|
+
J.findPair = je.findPair;
|
|
4293
|
+
J.parseMap = je.resolveMap;
|
|
4294
|
+
J.parseSeq = je.resolveSeq;
|
|
4295
|
+
J.stringifyNumber = je.stringifyNumber;
|
|
4296
|
+
J.stringifyString = je.stringifyString;
|
|
4297
|
+
J.toJSON = je.toJSON;
|
|
4298
|
+
J.Type = Qe.Type;
|
|
4299
|
+
J.YAMLError = Qe.YAMLError;
|
|
4300
|
+
J.YAMLReferenceError = Qe.YAMLReferenceError;
|
|
4301
|
+
J.YAMLSemanticError = Qe.YAMLSemanticError;
|
|
4302
|
+
J.YAMLSyntaxError = Qe.YAMLSyntaxError;
|
|
4303
|
+
J.YAMLWarning = Qe.YAMLWarning;
|
|
4304
4304
|
});
|
|
4305
|
-
var
|
|
4306
|
-
nr
|
|
4307
|
-
languages: () =>
|
|
4308
|
-
options: () =>
|
|
4309
|
-
parsers: () =>
|
|
4310
|
-
printers: () =>
|
|
4305
|
+
var nr = {};
|
|
4306
|
+
rr(nr, {
|
|
4307
|
+
languages: () => _r,
|
|
4308
|
+
options: () => xr,
|
|
4309
|
+
parsers: () => tr,
|
|
4310
|
+
printers: () => Ha
|
|
4311
4311
|
});
|
|
4312
|
-
var
|
|
4312
|
+
var Pi = (t, e, n, r) => {
|
|
4313
4313
|
if (!(t && e == null)) return e.replaceAll ? e.replaceAll(n, r) : n.global ? e.replace(n, r) : e.split(n).join(r);
|
|
4314
4314
|
},
|
|
4315
|
-
yt =
|
|
4316
|
-
var
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
Et = new Set([
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4315
|
+
yt = Pi;
|
|
4316
|
+
var Le = "string",
|
|
4317
|
+
Je = "array",
|
|
4318
|
+
Ge = "cursor",
|
|
4319
|
+
He = "indent",
|
|
4320
|
+
Ae = "align",
|
|
4321
|
+
Xe = "trim",
|
|
4322
|
+
Te = "group",
|
|
4323
|
+
Ce = "fill",
|
|
4324
|
+
he = "if-break",
|
|
4325
|
+
ze = "indent-if-break",
|
|
4326
|
+
Me = "line-suffix",
|
|
4327
|
+
Ze = "line-suffix-boundary",
|
|
4328
|
+
Z = "line",
|
|
4329
|
+
et = "label",
|
|
4330
|
+
ke = "break-parent",
|
|
4331
|
+
Et = new Set([Ge, He, Ae, Xe, Te, Ce, he, ze, Me, Ze, Z, et, ke]);
|
|
4332
|
+
var _i = (t, e, n) => {
|
|
4333
|
+
if (!(t && e == null)) return Array.isArray(e) || typeof e == "string" ? e[n < 0 ? e.length + n : n] : e.at(n);
|
|
4334
|
+
},
|
|
4335
|
+
x = _i;
|
|
4336
|
+
function xi(t) {
|
|
4337
|
+
if (typeof t == "string") return Le;
|
|
4338
|
+
if (Array.isArray(t)) return Je;
|
|
4335
4339
|
if (!t) return;
|
|
4336
4340
|
let {
|
|
4337
4341
|
type: e
|
|
4338
4342
|
} = t;
|
|
4339
4343
|
if (Et.has(e)) return e;
|
|
4340
4344
|
}
|
|
4341
|
-
var
|
|
4342
|
-
var
|
|
4345
|
+
var ve = xi;
|
|
4346
|
+
var Ri = t => new Intl.ListFormat("en-US", {
|
|
4343
4347
|
type: "disjunction"
|
|
4344
4348
|
}).format(t);
|
|
4345
|
-
function
|
|
4349
|
+
function Di(t) {
|
|
4346
4350
|
let e = t === null ? "null" : typeof t;
|
|
4347
4351
|
if (e !== "string" && e !== "object") return `Unexpected doc '${e}',
|
|
4348
4352
|
Expected it to be 'string' or 'object'.`;
|
|
4349
|
-
if (
|
|
4353
|
+
if (ve(t)) throw new Error("doc is valid.");
|
|
4350
4354
|
let n = Object.prototype.toString.call(t);
|
|
4351
4355
|
if (n !== "[object Object]") return `Unexpected doc '${n}'.`;
|
|
4352
|
-
let r =
|
|
4356
|
+
let r = Ri([...Et].map(s => `'${s}'`));
|
|
4353
4357
|
return `Unexpected doc.type '${t.type}'.
|
|
4354
4358
|
Expected it to be ${r}.`;
|
|
4355
4359
|
}
|
|
4356
|
-
var
|
|
4360
|
+
var nn = class extends Error {
|
|
4357
4361
|
name = "InvalidDocError";
|
|
4358
4362
|
constructor(e) {
|
|
4359
|
-
super(
|
|
4363
|
+
super(Di(e)), this.doc = e;
|
|
4360
4364
|
}
|
|
4361
4365
|
},
|
|
4366
|
+
rn = nn;
|
|
4367
|
+
function $i(t, e) {
|
|
4368
|
+
if (typeof t == "string") return e(t);
|
|
4369
|
+
let n = new Map();
|
|
4370
|
+
return r(t);
|
|
4371
|
+
function r(i) {
|
|
4372
|
+
if (n.has(i)) return n.get(i);
|
|
4373
|
+
let o = s(i);
|
|
4374
|
+
return n.set(i, o), o;
|
|
4375
|
+
}
|
|
4376
|
+
function s(i) {
|
|
4377
|
+
switch (ve(i)) {
|
|
4378
|
+
case Je:
|
|
4379
|
+
return e(i.map(r));
|
|
4380
|
+
case Ce:
|
|
4381
|
+
return e({
|
|
4382
|
+
...i,
|
|
4383
|
+
parts: i.parts.map(r)
|
|
4384
|
+
});
|
|
4385
|
+
case he:
|
|
4386
|
+
return e({
|
|
4387
|
+
...i,
|
|
4388
|
+
breakContents: r(i.breakContents),
|
|
4389
|
+
flatContents: r(i.flatContents)
|
|
4390
|
+
});
|
|
4391
|
+
case Te:
|
|
4392
|
+
{
|
|
4393
|
+
let {
|
|
4394
|
+
expandedStates: o,
|
|
4395
|
+
contents: a
|
|
4396
|
+
} = i;
|
|
4397
|
+
return o ? (o = o.map(r), a = o[0]) : a = r(a), e({
|
|
4398
|
+
...i,
|
|
4399
|
+
contents: a,
|
|
4400
|
+
expandedStates: o
|
|
4401
|
+
});
|
|
4402
|
+
}
|
|
4403
|
+
case Ae:
|
|
4404
|
+
case He:
|
|
4405
|
+
case ze:
|
|
4406
|
+
case et:
|
|
4407
|
+
case Me:
|
|
4408
|
+
return e({
|
|
4409
|
+
...i,
|
|
4410
|
+
contents: r(i.contents)
|
|
4411
|
+
});
|
|
4412
|
+
case Le:
|
|
4413
|
+
case Ge:
|
|
4414
|
+
case Xe:
|
|
4415
|
+
case Ze:
|
|
4416
|
+
case Z:
|
|
4417
|
+
case ke:
|
|
4418
|
+
return e(i);
|
|
4419
|
+
default:
|
|
4420
|
+
throw new rn(i);
|
|
4421
|
+
}
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4424
|
+
function ir(t, e = tt) {
|
|
4425
|
+
return $i(t, n => typeof n == "string" ? v(e, n.split(`
|
|
4426
|
+
`)) : n);
|
|
4427
|
+
}
|
|
4428
|
+
var sn = () => {},
|
|
4362
4429
|
on = sn;
|
|
4363
|
-
|
|
4364
|
-
St = sr;
|
|
4365
|
-
function tt(t, e) {
|
|
4430
|
+
function nt(t, e) {
|
|
4366
4431
|
return {
|
|
4367
|
-
type:
|
|
4432
|
+
type: Ae,
|
|
4368
4433
|
contents: e,
|
|
4369
4434
|
n: t
|
|
4370
4435
|
};
|
|
4371
4436
|
}
|
|
4372
|
-
function
|
|
4373
|
-
return
|
|
4374
|
-
type:
|
|
4437
|
+
function Ie(t, e = {}) {
|
|
4438
|
+
return on(e.expandedStates), {
|
|
4439
|
+
type: Te,
|
|
4375
4440
|
id: e.id,
|
|
4376
4441
|
contents: t,
|
|
4377
4442
|
break: !!e.shouldBreak,
|
|
@@ -4379,134 +4444,88 @@ function ke(t, e = {}) {
|
|
|
4379
4444
|
};
|
|
4380
4445
|
}
|
|
4381
4446
|
function an(t) {
|
|
4382
|
-
return
|
|
4447
|
+
return nt(Number.NEGATIVE_INFINITY, t);
|
|
4383
4448
|
}
|
|
4384
|
-
function
|
|
4385
|
-
return
|
|
4449
|
+
function ar(t) {
|
|
4450
|
+
return nt({
|
|
4386
4451
|
type: "root"
|
|
4387
4452
|
}, t);
|
|
4388
4453
|
}
|
|
4389
|
-
function
|
|
4390
|
-
return
|
|
4454
|
+
function cr(t) {
|
|
4455
|
+
return nt(-1, t);
|
|
4391
4456
|
}
|
|
4392
4457
|
function cn(t, e) {
|
|
4393
|
-
return
|
|
4458
|
+
return Ie(t[0], {
|
|
4394
4459
|
...e,
|
|
4395
4460
|
expandedStates: t
|
|
4396
4461
|
});
|
|
4397
4462
|
}
|
|
4398
|
-
function
|
|
4463
|
+
function St(t) {
|
|
4399
4464
|
return {
|
|
4400
|
-
type:
|
|
4465
|
+
type: Ce,
|
|
4401
4466
|
parts: t
|
|
4402
4467
|
};
|
|
4403
4468
|
}
|
|
4404
|
-
function
|
|
4469
|
+
function rt(t, e = "", n = {}) {
|
|
4405
4470
|
return {
|
|
4406
|
-
type:
|
|
4471
|
+
type: he,
|
|
4407
4472
|
breakContents: t,
|
|
4408
4473
|
flatContents: e,
|
|
4409
4474
|
groupId: n.groupId
|
|
4410
4475
|
};
|
|
4411
4476
|
}
|
|
4412
|
-
function
|
|
4477
|
+
function lr(t) {
|
|
4413
4478
|
return {
|
|
4414
|
-
type:
|
|
4479
|
+
type: Me,
|
|
4415
4480
|
contents: t
|
|
4416
4481
|
};
|
|
4417
4482
|
}
|
|
4418
|
-
var
|
|
4419
|
-
type:
|
|
4483
|
+
var wt = {
|
|
4484
|
+
type: ke
|
|
4420
4485
|
};
|
|
4421
|
-
var
|
|
4422
|
-
type:
|
|
4486
|
+
var Bi = {
|
|
4487
|
+
type: Z,
|
|
4423
4488
|
hard: true
|
|
4424
4489
|
},
|
|
4425
|
-
|
|
4426
|
-
type:
|
|
4490
|
+
Fi = {
|
|
4491
|
+
type: Z,
|
|
4427
4492
|
hard: true,
|
|
4428
4493
|
literal: true
|
|
4429
4494
|
},
|
|
4430
4495
|
ne = {
|
|
4431
|
-
type:
|
|
4496
|
+
type: Z
|
|
4432
4497
|
},
|
|
4433
|
-
|
|
4434
|
-
type:
|
|
4498
|
+
bt = {
|
|
4499
|
+
type: Z,
|
|
4435
4500
|
soft: true
|
|
4436
4501
|
},
|
|
4437
|
-
N = [
|
|
4438
|
-
|
|
4502
|
+
N = [Bi, wt],
|
|
4503
|
+
tt = [Fi, wt];
|
|
4439
4504
|
function v(t, e) {
|
|
4440
4505
|
let n = [];
|
|
4441
4506
|
for (let r = 0; r < e.length; r++) r !== 0 && n.push(t), n.push(e[r]);
|
|
4442
4507
|
return n;
|
|
4443
4508
|
}
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
switch (et(i)) {
|
|
4459
|
-
case Qe:
|
|
4460
|
-
return e(i.map(r));
|
|
4461
|
-
case Ae:
|
|
4462
|
-
return e({
|
|
4463
|
-
...i,
|
|
4464
|
-
parts: i.parts.map(r)
|
|
4465
|
-
});
|
|
4466
|
-
case Te:
|
|
4467
|
-
return e({
|
|
4468
|
-
...i,
|
|
4469
|
-
breakContents: r(i.breakContents),
|
|
4470
|
-
flatContents: r(i.flatContents)
|
|
4471
|
-
});
|
|
4472
|
-
case Le:
|
|
4473
|
-
{
|
|
4474
|
-
let {
|
|
4475
|
-
expandedStates: o,
|
|
4476
|
-
contents: a
|
|
4477
|
-
} = i;
|
|
4478
|
-
return o ? (o = o.map(r), a = o[0]) : a = r(a), e({
|
|
4479
|
-
...i,
|
|
4480
|
-
contents: a,
|
|
4481
|
-
expandedStates: o
|
|
4482
|
-
});
|
|
4483
|
-
}
|
|
4484
|
-
case Oe:
|
|
4485
|
-
case Ge:
|
|
4486
|
-
case Xe:
|
|
4487
|
-
case Ze:
|
|
4488
|
-
case Ce:
|
|
4489
|
-
return e({
|
|
4490
|
-
...i,
|
|
4491
|
-
contents: r(i.contents)
|
|
4492
|
-
});
|
|
4493
|
-
case je:
|
|
4494
|
-
case Je:
|
|
4495
|
-
case He:
|
|
4496
|
-
case ze:
|
|
4497
|
-
case te:
|
|
4498
|
-
case Me:
|
|
4499
|
-
return e(i);
|
|
4500
|
-
default:
|
|
4501
|
-
throw new on(i);
|
|
4509
|
+
function Nt(t) {
|
|
4510
|
+
return (e, n, r) => {
|
|
4511
|
+
let s = !!(r != null && r.backwards);
|
|
4512
|
+
if (n === false) return false;
|
|
4513
|
+
let {
|
|
4514
|
+
length: i
|
|
4515
|
+
} = e,
|
|
4516
|
+
o = n;
|
|
4517
|
+
for (; o >= 0 && o < i;) {
|
|
4518
|
+
let a = e.charAt(o);
|
|
4519
|
+
if (t instanceof RegExp) {
|
|
4520
|
+
if (!t.test(a)) return o;
|
|
4521
|
+
} else if (!t.includes(a)) return o;
|
|
4522
|
+
s ? o-- : o++;
|
|
4502
4523
|
}
|
|
4503
|
-
|
|
4504
|
-
}
|
|
4505
|
-
function cr(t, e = rt) {
|
|
4506
|
-
return Yi(t, n => typeof n == "string" ? v(e, n.split(`
|
|
4507
|
-
`)) : n);
|
|
4524
|
+
return o === -1 || o === i ? o : false;
|
|
4525
|
+
};
|
|
4508
4526
|
}
|
|
4509
|
-
|
|
4527
|
+
var ln = Nt(" ");
|
|
4528
|
+
function qi(t, e, n) {
|
|
4510
4529
|
let r = !!(n != null && n.backwards);
|
|
4511
4530
|
if (e === false) return false;
|
|
4512
4531
|
let s = t.charAt(e);
|
|
@@ -4523,109 +4542,145 @@ function Bi(t, e, n) {
|
|
|
4523
4542
|
}
|
|
4524
4543
|
return e;
|
|
4525
4544
|
}
|
|
4526
|
-
var
|
|
4527
|
-
function
|
|
4528
|
-
return (e, n, r) => {
|
|
4529
|
-
let s = !!(r != null && r.backwards);
|
|
4530
|
-
if (n === false) return false;
|
|
4531
|
-
let {
|
|
4532
|
-
length: i
|
|
4533
|
-
} = e,
|
|
4534
|
-
o = n;
|
|
4535
|
-
for (; o >= 0 && o < i;) {
|
|
4536
|
-
let a = e.charAt(o);
|
|
4537
|
-
if (t instanceof RegExp) {
|
|
4538
|
-
if (!t.test(a)) return o;
|
|
4539
|
-
} else if (!t.includes(a)) return o;
|
|
4540
|
-
s ? o-- : o++;
|
|
4541
|
-
}
|
|
4542
|
-
return o === -1 || o === i ? o : false;
|
|
4543
|
-
};
|
|
4544
|
-
}
|
|
4545
|
-
var fn = Ot(" ");
|
|
4546
|
-
function $i(t, e) {
|
|
4545
|
+
var fn = qi;
|
|
4546
|
+
function Ui(t, e) {
|
|
4547
4547
|
let n = e - 1;
|
|
4548
|
-
n =
|
|
4549
|
-
backwards: true
|
|
4550
|
-
}), n = ln(t, n, {
|
|
4548
|
+
n = ln(t, n, {
|
|
4551
4549
|
backwards: true
|
|
4552
4550
|
}), n = fn(t, n, {
|
|
4553
4551
|
backwards: true
|
|
4552
|
+
}), n = ln(t, n, {
|
|
4553
|
+
backwards: true
|
|
4554
4554
|
});
|
|
4555
|
-
let r =
|
|
4555
|
+
let r = fn(t, n, {
|
|
4556
4556
|
backwards: true
|
|
4557
4557
|
});
|
|
4558
4558
|
return n !== r;
|
|
4559
4559
|
}
|
|
4560
|
-
var
|
|
4560
|
+
var fr = Ui;
|
|
4561
4561
|
var un = class extends Error {
|
|
4562
4562
|
name = "UnexpectedNodeError";
|
|
4563
4563
|
constructor(e, n, r = "type") {
|
|
4564
4564
|
super(`Unexpected ${n} node ${r}: ${JSON.stringify(e[r])}.`), this.node = e;
|
|
4565
4565
|
}
|
|
4566
4566
|
},
|
|
4567
|
-
|
|
4568
|
-
function
|
|
4569
|
-
return /^\s*@(?:prettier|format)\s*$/.test(t);
|
|
4570
|
-
}
|
|
4571
|
-
function pr(t) {
|
|
4572
|
-
return /^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(t);
|
|
4573
|
-
}
|
|
4574
|
-
function mr(t) {
|
|
4575
|
-
return `# @format
|
|
4576
|
-
|
|
4577
|
-
${t}`;
|
|
4578
|
-
}
|
|
4579
|
-
function ve(t) {
|
|
4580
|
-
return t.position.start.offset;
|
|
4581
|
-
}
|
|
4582
|
-
function hr(t) {
|
|
4583
|
-
return t.position.end.offset;
|
|
4584
|
-
}
|
|
4585
|
-
function gr(t, e) {
|
|
4567
|
+
ur = un;
|
|
4568
|
+
function pr(t, e) {
|
|
4586
4569
|
let {
|
|
4587
4570
|
node: n
|
|
4588
4571
|
} = t;
|
|
4589
|
-
if (n.type === "root" && e.filepath && /(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc
|
|
4572
|
+
if (n.type === "root" && e.filepath && /(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/u.test(e.filepath)) return async r => {
|
|
4590
4573
|
let s = await r(e.originalText, {
|
|
4591
4574
|
parser: "json"
|
|
4592
4575
|
});
|
|
4593
4576
|
return s ? [s, N] : void 0;
|
|
4594
4577
|
};
|
|
4595
4578
|
}
|
|
4596
|
-
|
|
4597
|
-
var
|
|
4598
|
-
|
|
4579
|
+
pr.getVisitorKeys = () => [];
|
|
4580
|
+
var mr = pr;
|
|
4581
|
+
var st = null;
|
|
4582
|
+
function it(t) {
|
|
4583
|
+
if (st !== null && typeof st.property) {
|
|
4584
|
+
let e = st;
|
|
4585
|
+
return st = it.prototype = null, e;
|
|
4586
|
+
}
|
|
4587
|
+
return st = it.prototype = t ?? Object.create(null), new it();
|
|
4588
|
+
}
|
|
4589
|
+
var Ki = 10;
|
|
4590
|
+
for (let t = 0; t <= Ki; t++) it();
|
|
4591
|
+
function pn(t) {
|
|
4592
|
+
return it(t);
|
|
4593
|
+
}
|
|
4594
|
+
function Vi(t, e = "type") {
|
|
4595
|
+
pn(t);
|
|
4596
|
+
function n(r) {
|
|
4597
|
+
let s = r[e],
|
|
4598
|
+
i = t[s];
|
|
4599
|
+
if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), {
|
|
4600
|
+
node: r
|
|
4601
|
+
});
|
|
4602
|
+
return i;
|
|
4603
|
+
}
|
|
4604
|
+
return n;
|
|
4605
|
+
}
|
|
4606
|
+
var hr = Vi;
|
|
4607
|
+
var Wi = Object.fromEntries(Object.entries({
|
|
4608
|
+
root: ["children"],
|
|
4609
|
+
document: ["head", "body", "children"],
|
|
4610
|
+
documentHead: ["children"],
|
|
4611
|
+
documentBody: ["children"],
|
|
4612
|
+
directive: [],
|
|
4613
|
+
alias: [],
|
|
4614
|
+
blockLiteral: [],
|
|
4615
|
+
blockFolded: ["children"],
|
|
4616
|
+
plain: ["children"],
|
|
4617
|
+
quoteSingle: [],
|
|
4618
|
+
quoteDouble: [],
|
|
4619
|
+
mapping: ["children"],
|
|
4620
|
+
mappingItem: ["key", "value", "children"],
|
|
4621
|
+
mappingKey: ["content", "children"],
|
|
4622
|
+
mappingValue: ["content", "children"],
|
|
4623
|
+
sequence: ["children"],
|
|
4624
|
+
sequenceItem: ["content", "children"],
|
|
4625
|
+
flowMapping: ["children"],
|
|
4626
|
+
flowMappingItem: ["key", "value", "children"],
|
|
4627
|
+
flowSequence: ["children"],
|
|
4628
|
+
flowSequenceItem: ["content", "children"],
|
|
4629
|
+
comment: [],
|
|
4630
|
+
tag: [],
|
|
4631
|
+
anchor: []
|
|
4632
|
+
}).map(([t, e]) => [t, [...e, "anchor", "tag", "indicatorComment", "leadingComments", "middleComments", "trailingComment", "endComments"]])),
|
|
4633
|
+
gr = Wi;
|
|
4634
|
+
var ji = hr(gr),
|
|
4635
|
+
dr = ji;
|
|
4636
|
+
function Pe(t) {
|
|
4637
|
+
return t.position.start.offset;
|
|
4638
|
+
}
|
|
4639
|
+
function yr(t) {
|
|
4640
|
+
return t.position.end.offset;
|
|
4641
|
+
}
|
|
4642
|
+
function Er(t) {
|
|
4643
|
+
return /^\s*@(?:prettier|format)\s*$/u.test(t);
|
|
4644
|
+
}
|
|
4645
|
+
function Sr(t) {
|
|
4646
|
+
return /^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/u.test(t);
|
|
4647
|
+
}
|
|
4648
|
+
function wr(t) {
|
|
4649
|
+
return `# @format
|
|
4650
|
+
|
|
4651
|
+
${t}`;
|
|
4652
|
+
}
|
|
4653
|
+
function Qi(t) {
|
|
4599
4654
|
return Array.isArray(t) && t.length > 0;
|
|
4600
4655
|
}
|
|
4601
|
-
var
|
|
4602
|
-
function
|
|
4656
|
+
var _e = Qi;
|
|
4657
|
+
function H(t, e) {
|
|
4603
4658
|
return typeof (t == null ? void 0 : t.type) == "string" && (!e || e.includes(t.type));
|
|
4604
4659
|
}
|
|
4605
|
-
function
|
|
4660
|
+
function mn(t, e, n) {
|
|
4606
4661
|
return e("children" in t ? {
|
|
4607
4662
|
...t,
|
|
4608
|
-
children: t.children.map(r =>
|
|
4663
|
+
children: t.children.map(r => mn(r, e, t))
|
|
4609
4664
|
} : t, n);
|
|
4610
4665
|
}
|
|
4611
|
-
function
|
|
4666
|
+
function xe(t, e, n) {
|
|
4612
4667
|
Object.defineProperty(t, e, {
|
|
4613
4668
|
get: n,
|
|
4614
4669
|
enumerable: false
|
|
4615
4670
|
});
|
|
4616
4671
|
}
|
|
4617
|
-
function
|
|
4672
|
+
function Nr(t, e) {
|
|
4618
4673
|
let n = 0,
|
|
4619
4674
|
r = e.length;
|
|
4620
4675
|
for (let s = t.position.end.offset - 1; s < r; s++) {
|
|
4621
4676
|
let i = e[s];
|
|
4622
4677
|
if (i === `
|
|
4623
|
-
` && n++, n === 1 && /\S
|
|
4678
|
+
` && n++, n === 1 && /\S/u.test(i)) return false;
|
|
4624
4679
|
if (n === 2) return true;
|
|
4625
4680
|
}
|
|
4626
4681
|
return false;
|
|
4627
4682
|
}
|
|
4628
|
-
function
|
|
4683
|
+
function Ot(t) {
|
|
4629
4684
|
let {
|
|
4630
4685
|
node: e
|
|
4631
4686
|
} = t;
|
|
@@ -4643,69 +4698,69 @@ function Lt(t) {
|
|
|
4643
4698
|
}
|
|
4644
4699
|
return true;
|
|
4645
4700
|
}
|
|
4646
|
-
function
|
|
4647
|
-
return
|
|
4701
|
+
function Lt(t) {
|
|
4702
|
+
return _e(t.children) ? Lt(x(false, t.children, -1)) : t;
|
|
4648
4703
|
}
|
|
4649
|
-
function
|
|
4704
|
+
function br(t) {
|
|
4650
4705
|
return t.value.trim() === "prettier-ignore";
|
|
4651
4706
|
}
|
|
4652
|
-
function
|
|
4707
|
+
function Or(t) {
|
|
4653
4708
|
let {
|
|
4654
4709
|
node: e
|
|
4655
4710
|
} = t;
|
|
4656
4711
|
if (e.type === "documentBody") {
|
|
4657
4712
|
let n = t.parent.head;
|
|
4658
|
-
return R(n) &&
|
|
4713
|
+
return R(n) && br(x(false, n.endComments, -1));
|
|
4659
4714
|
}
|
|
4660
|
-
return
|
|
4715
|
+
return ee(e) && br(x(false, e.leadingComments, -1));
|
|
4661
4716
|
}
|
|
4662
|
-
function
|
|
4663
|
-
return !
|
|
4717
|
+
function Re(t) {
|
|
4718
|
+
return !_e(t.children) && !Ji(t);
|
|
4664
4719
|
}
|
|
4665
|
-
function
|
|
4666
|
-
return
|
|
4720
|
+
function Ji(t) {
|
|
4721
|
+
return ee(t) || ie(t) || hn(t) || K(t) || R(t);
|
|
4667
4722
|
}
|
|
4668
|
-
function
|
|
4669
|
-
return
|
|
4723
|
+
function ee(t) {
|
|
4724
|
+
return _e(t == null ? void 0 : t.leadingComments);
|
|
4670
4725
|
}
|
|
4671
4726
|
function ie(t) {
|
|
4672
|
-
return
|
|
4727
|
+
return _e(t == null ? void 0 : t.middleComments);
|
|
4673
4728
|
}
|
|
4674
|
-
function
|
|
4729
|
+
function hn(t) {
|
|
4675
4730
|
return t == null ? void 0 : t.indicatorComment;
|
|
4676
4731
|
}
|
|
4677
|
-
function
|
|
4732
|
+
function K(t) {
|
|
4678
4733
|
return t == null ? void 0 : t.trailingComment;
|
|
4679
4734
|
}
|
|
4680
4735
|
function R(t) {
|
|
4681
|
-
return
|
|
4736
|
+
return _e(t == null ? void 0 : t.endComments);
|
|
4682
4737
|
}
|
|
4683
|
-
function
|
|
4738
|
+
function Lr(t) {
|
|
4684
4739
|
let e = [],
|
|
4685
4740
|
n;
|
|
4686
|
-
for (let r of t.split(/( +)/)) r !== " " ? n === " " ? e.push(r) : e.push((e.pop() || "") + r) : n === void 0 && e.unshift(""), n = r;
|
|
4741
|
+
for (let r of t.split(/( +)/u)) r !== " " ? n === " " ? e.push(r) : e.push((e.pop() || "") + r) : n === void 0 && e.unshift(""), n = r;
|
|
4687
4742
|
return n === " " && e.push((e.pop() || "") + " "), e[0] === "" && (e.shift(), e.unshift(" " + (e.shift() || ""))), e;
|
|
4688
4743
|
}
|
|
4689
|
-
function
|
|
4744
|
+
function Ar(t, e, n) {
|
|
4690
4745
|
let r = e.split(`
|
|
4691
4746
|
`).map((s, i, o) => i === 0 && i === o.length - 1 ? s : i !== 0 && i !== o.length - 1 ? s.trim() : i === 0 ? s.trimEnd() : s.trimStart());
|
|
4692
|
-
return n.proseWrap === "preserve" ? r.map(s => s.length === 0 ? [] : [s]) : r.map(s => s.length === 0 ? [] :
|
|
4747
|
+
return n.proseWrap === "preserve" ? r.map(s => s.length === 0 ? [] : [s]) : r.map(s => s.length === 0 ? [] : Lr(s)).reduce((s, i, o) => o !== 0 && r[o - 1].length > 0 && i.length > 0 && !(t === "quoteDouble" && x(false, x(false, s, -1), -1).endsWith("\\")) ? [...s.slice(0, -1), [...x(false, s, -1), ...i]] : [...s, i], []).map(s => n.proseWrap === "never" ? [s.join(" ")] : s);
|
|
4693
4748
|
}
|
|
4694
|
-
function
|
|
4749
|
+
function Tr(t, {
|
|
4695
4750
|
parentIndent: e,
|
|
4696
4751
|
isLastDescendant: n,
|
|
4697
4752
|
options: r
|
|
4698
4753
|
}) {
|
|
4699
|
-
let s = t.position.start.line === t.position.end.line ? "" : r.originalText.slice(t.position.start.offset, t.position.end.offset).match(/^[^\n]*\n(.*)$/
|
|
4754
|
+
let s = t.position.start.line === t.position.end.line ? "" : r.originalText.slice(t.position.start.offset, t.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],
|
|
4700
4755
|
i;
|
|
4701
4756
|
if (t.indent === null) {
|
|
4702
|
-
let c = s.match(/^(?<leadingSpace> *)[^\n\r ]/
|
|
4757
|
+
let c = s.match(/^(?<leadingSpace> *)[^\n\r ]/mu);
|
|
4703
4758
|
i = c ? c.groups.leadingSpace.length : Number.POSITIVE_INFINITY;
|
|
4704
4759
|
} else i = t.indent - 1 + e;
|
|
4705
4760
|
let o = s.split(`
|
|
4706
4761
|
`).map(c => c.slice(i));
|
|
4707
4762
|
if (r.proseWrap === "preserve" || t.type === "blockLiteral") return a(o.map(c => c.length === 0 ? [] : [c]));
|
|
4708
|
-
return a(o.map(c => c.length === 0 ? [] :
|
|
4763
|
+
return a(o.map(c => c.length === 0 ? [] : Lr(c)).reduce((c, l, f) => f !== 0 && o[f - 1].length > 0 && l.length > 0 && !/^\s/u.test(l[0]) && !/^\s|\s$/u.test(x(false, c, -1)) ? [...c.slice(0, -1), [...x(false, c, -1), ...l]] : [...c, l], []).map(c => c.reduce((l, f) => l.length > 0 && /\s$/u.test(x(false, l, -1)) ? [...l.slice(0, -1), x(false, l, -1) + " " + f] : [...l, f], [])).map(c => r.proseWrap === "never" ? [c.join(" ")] : c));
|
|
4709
4764
|
function a(c) {
|
|
4710
4765
|
if (t.chomping === "keep") return x(false, c, -1).length === 0 ? c.slice(0, -1) : c;
|
|
4711
4766
|
let l = 0;
|
|
@@ -4713,7 +4768,7 @@ function Nr(t, {
|
|
|
4713
4768
|
return l === 0 ? c : l >= 2 && !n ? c.slice(0, -(l - 1)) : c.slice(0, -l);
|
|
4714
4769
|
}
|
|
4715
4770
|
}
|
|
4716
|
-
function
|
|
4771
|
+
function ot(t) {
|
|
4717
4772
|
if (!t) return true;
|
|
4718
4773
|
switch (t.type) {
|
|
4719
4774
|
case "plain":
|
|
@@ -4727,120 +4782,60 @@ function st(t) {
|
|
|
4727
4782
|
return false;
|
|
4728
4783
|
}
|
|
4729
4784
|
}
|
|
4730
|
-
var it = null;
|
|
4731
|
-
function ot(t) {
|
|
4732
|
-
if (it !== null && typeof it.property) {
|
|
4733
|
-
let e = it;
|
|
4734
|
-
return it = ot.prototype = null, e;
|
|
4735
|
-
}
|
|
4736
|
-
return it = ot.prototype = t ?? Object.create(null), new ot();
|
|
4737
|
-
}
|
|
4738
|
-
var Ui = 10;
|
|
4739
|
-
for (let t = 0; t <= Ui; t++) ot();
|
|
4740
|
-
function hn(t) {
|
|
4741
|
-
return ot(t);
|
|
4742
|
-
}
|
|
4743
|
-
function Ki(t, e = "type") {
|
|
4744
|
-
hn(t);
|
|
4745
|
-
function n(r) {
|
|
4746
|
-
let s = r[e],
|
|
4747
|
-
i = t[s];
|
|
4748
|
-
if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), {
|
|
4749
|
-
node: r
|
|
4750
|
-
});
|
|
4751
|
-
return i;
|
|
4752
|
-
}
|
|
4753
|
-
return n;
|
|
4754
|
-
}
|
|
4755
|
-
var Or = Ki;
|
|
4756
|
-
var Vi = Object.fromEntries(Object.entries({
|
|
4757
|
-
root: ["children"],
|
|
4758
|
-
document: ["head", "body", "children"],
|
|
4759
|
-
documentHead: ["children"],
|
|
4760
|
-
documentBody: ["children"],
|
|
4761
|
-
directive: [],
|
|
4762
|
-
alias: [],
|
|
4763
|
-
blockLiteral: [],
|
|
4764
|
-
blockFolded: ["children"],
|
|
4765
|
-
plain: ["children"],
|
|
4766
|
-
quoteSingle: [],
|
|
4767
|
-
quoteDouble: [],
|
|
4768
|
-
mapping: ["children"],
|
|
4769
|
-
mappingItem: ["key", "value", "children"],
|
|
4770
|
-
mappingKey: ["content", "children"],
|
|
4771
|
-
mappingValue: ["content", "children"],
|
|
4772
|
-
sequence: ["children"],
|
|
4773
|
-
sequenceItem: ["content", "children"],
|
|
4774
|
-
flowMapping: ["children"],
|
|
4775
|
-
flowMappingItem: ["key", "value", "children"],
|
|
4776
|
-
flowSequence: ["children"],
|
|
4777
|
-
flowSequenceItem: ["content", "children"],
|
|
4778
|
-
comment: [],
|
|
4779
|
-
tag: [],
|
|
4780
|
-
anchor: []
|
|
4781
|
-
}).map(([t, e]) => [t, [...e, "anchor", "tag", "indicatorComment", "leadingComments", "middleComments", "trailingComment", "endComments"]])),
|
|
4782
|
-
Lr = Vi;
|
|
4783
|
-
var Wi = Or(Lr),
|
|
4784
|
-
Ar = Wi;
|
|
4785
|
-
function ji(t) {
|
|
4786
|
-
return pn(t, Qi);
|
|
4787
|
-
}
|
|
4788
|
-
function Qi(t) {
|
|
4789
|
-
switch (t.type) {
|
|
4790
|
-
case "document":
|
|
4791
|
-
Pe(t, "head", () => t.children[0]), Pe(t, "body", () => t.children[1]);
|
|
4792
|
-
break;
|
|
4793
|
-
case "documentBody":
|
|
4794
|
-
case "sequenceItem":
|
|
4795
|
-
case "flowSequenceItem":
|
|
4796
|
-
case "mappingKey":
|
|
4797
|
-
case "mappingValue":
|
|
4798
|
-
Pe(t, "content", () => t.children[0]);
|
|
4799
|
-
break;
|
|
4800
|
-
case "mappingItem":
|
|
4801
|
-
case "flowMappingItem":
|
|
4802
|
-
Pe(t, "key", () => t.children[0]), Pe(t, "value", () => t.children[1]);
|
|
4803
|
-
break;
|
|
4804
|
-
}
|
|
4805
|
-
return t;
|
|
4806
|
-
}
|
|
4807
|
-
var Tr = ji;
|
|
4808
4785
|
var gn = new WeakMap();
|
|
4809
|
-
function
|
|
4786
|
+
function At(t, e) {
|
|
4810
4787
|
let {
|
|
4811
4788
|
node: n,
|
|
4812
4789
|
root: r
|
|
4813
4790
|
} = t,
|
|
4814
4791
|
s;
|
|
4815
|
-
return gn.has(r) ? s = gn.get(r) : (s = new Set(), gn.set(r, s)), !s.has(n.position.end.line) && (s.add(n.position.end.line),
|
|
4792
|
+
return gn.has(r) ? s = gn.get(r) : (s = new Set(), gn.set(r, s)), !s.has(n.position.end.line) && (s.add(n.position.end.line), Nr(n, e) && !dn(t.parent)) ? bt : "";
|
|
4816
4793
|
}
|
|
4817
4794
|
function dn(t) {
|
|
4818
|
-
return R(t) && !
|
|
4795
|
+
return R(t) && !H(t, ["documentHead", "documentBody", "flowMapping", "flowSequence"]);
|
|
4819
4796
|
}
|
|
4820
4797
|
function I(t, e) {
|
|
4821
|
-
return
|
|
4798
|
+
return nt(" ".repeat(t), e);
|
|
4799
|
+
}
|
|
4800
|
+
function Gi(t, e, n) {
|
|
4801
|
+
let {
|
|
4802
|
+
node: r
|
|
4803
|
+
} = t,
|
|
4804
|
+
s = t.ancestors.filter(l => l.type === "sequence" || l.type === "mapping").length,
|
|
4805
|
+
i = Ot(t),
|
|
4806
|
+
o = [r.type === "blockFolded" ? ">" : "|"];
|
|
4807
|
+
r.indent !== null && o.push(r.indent.toString()), r.chomping !== "clip" && o.push(r.chomping === "keep" ? "+" : "-"), hn(r) && o.push(" ", e("indicatorComment"));
|
|
4808
|
+
let a = Tr(r, {
|
|
4809
|
+
parentIndent: s,
|
|
4810
|
+
isLastDescendant: i,
|
|
4811
|
+
options: n
|
|
4812
|
+
}),
|
|
4813
|
+
c = [];
|
|
4814
|
+
for (let [l, f] of a.entries()) l === 0 && c.push(N), c.push(St(v(ne, f))), l !== a.length - 1 ? c.push(f.length === 0 ? N : ar(tt)) : r.chomping === "keep" && i && c.push(an(f.length === 0 ? N : tt));
|
|
4815
|
+
return r.indent === null ? o.push(cr(I(n.tabWidth, c))) : o.push(an(I(r.indent - 1 + s, c))), o;
|
|
4822
4816
|
}
|
|
4823
|
-
|
|
4817
|
+
var Cr = Gi;
|
|
4818
|
+
function Tt(t, e, n) {
|
|
4824
4819
|
let {
|
|
4825
4820
|
node: r
|
|
4826
4821
|
} = t,
|
|
4827
4822
|
s = r.type === "flowMapping",
|
|
4828
4823
|
i = s ? "{" : "[",
|
|
4829
4824
|
o = s ? "}" : "]",
|
|
4830
|
-
a =
|
|
4825
|
+
a = bt;
|
|
4831
4826
|
s && r.children.length > 0 && n.bracketSpacing && (a = ne);
|
|
4832
4827
|
let c = x(false, r.children, -1),
|
|
4833
|
-
l = (c == null ? void 0 : c.type) === "flowMappingItem" &&
|
|
4834
|
-
return [i, I(n.tabWidth, [a,
|
|
4828
|
+
l = (c == null ? void 0 : c.type) === "flowMappingItem" && Re(c.key) && Re(c.value);
|
|
4829
|
+
return [i, I(n.tabWidth, [a, Hi(t, e, n), n.trailingComma === "none" ? "" : rt(","), R(r) ? [N, v(N, t.map(e, "endComments"))] : ""]), l ? "" : a, o];
|
|
4835
4830
|
}
|
|
4836
|
-
function
|
|
4831
|
+
function Hi(t, e, n) {
|
|
4837
4832
|
return t.map(({
|
|
4838
4833
|
isLast: r,
|
|
4839
4834
|
node: s,
|
|
4840
4835
|
next: i
|
|
4841
|
-
}) => [e(), r ? "" : [",", ne, s.position.start.line !== i.position.start.line ?
|
|
4836
|
+
}) => [e(), r ? "" : [",", ne, s.position.start.line !== i.position.start.line ? At(t, n.originalText) : ""]], "children");
|
|
4842
4837
|
}
|
|
4843
|
-
function
|
|
4838
|
+
function Xi(t, e, n) {
|
|
4844
4839
|
var C;
|
|
4845
4840
|
let {
|
|
4846
4841
|
node: r,
|
|
@@ -4850,25 +4845,25 @@ function Gi(t, e, n) {
|
|
|
4850
4845
|
key: i,
|
|
4851
4846
|
value: o
|
|
4852
4847
|
} = r,
|
|
4853
|
-
a =
|
|
4854
|
-
c =
|
|
4848
|
+
a = Re(i),
|
|
4849
|
+
c = Re(o);
|
|
4855
4850
|
if (a && c) return ": ";
|
|
4856
4851
|
let l = e("key"),
|
|
4857
|
-
f =
|
|
4858
|
-
if (c) return r.type === "flowMappingItem" && s.type === "flowMapping" ? l : r.type === "mappingItem" && yn(i.content, n) && !
|
|
4852
|
+
f = zi(r) ? " " : "";
|
|
4853
|
+
if (c) return r.type === "flowMappingItem" && s.type === "flowMapping" ? l : r.type === "mappingItem" && yn(i.content, n) && !K(i.content) && ((C = s.tag) == null ? void 0 : C.value) !== "tag:yaml.org,2002:set" ? [l, f, ":"] : ["? ", I(2, l)];
|
|
4859
4854
|
let m = e("value");
|
|
4860
4855
|
if (a) return [": ", I(2, m)];
|
|
4861
|
-
if (
|
|
4862
|
-
if (
|
|
4856
|
+
if (ee(o) || !ot(i.content)) return ["? ", I(2, l), N, ...t.map(() => [e(), N], "value", "leadingComments"), ": ", I(2, m)];
|
|
4857
|
+
if (Zi(i.content) && !ee(i.content) && !ie(i.content) && !K(i.content) && !R(i) && !ee(o.content) && !ie(o.content) && !R(o) && yn(o.content, n)) return [l, f, ": ", m];
|
|
4863
4858
|
let d = Symbol("mappingKey"),
|
|
4864
|
-
y =
|
|
4859
|
+
y = Ie([rt("? "), Ie(I(2, l), {
|
|
4865
4860
|
id: d
|
|
4866
4861
|
})]),
|
|
4867
4862
|
h = [N, ": ", I(2, m)],
|
|
4868
4863
|
g = [f, ":"];
|
|
4869
|
-
|
|
4864
|
+
ee(o.content) || R(o) && o.content && !H(o.content, ["mapping", "sequence"]) || s.type === "mapping" && K(i.content) && ot(o.content) || H(o.content, ["mapping", "sequence"]) && o.content.tag === null && o.content.anchor === null ? g.push(N) : o.content ? g.push(ne) : K(o) && g.push(" "), g.push(m);
|
|
4870
4865
|
let w = I(n.tabWidth, g);
|
|
4871
|
-
return yn(i.content, n) && !
|
|
4866
|
+
return yn(i.content, n) && !ee(i.content) && !ie(i.content) && !R(i) ? cn([[l, w]]) : cn([[y, rt(h, w, {
|
|
4872
4867
|
groupId: d
|
|
4873
4868
|
})]]);
|
|
4874
4869
|
}
|
|
@@ -4885,22 +4880,22 @@ function yn(t, e) {
|
|
|
4885
4880
|
return false;
|
|
4886
4881
|
}
|
|
4887
4882
|
if (e.proseWrap === "preserve") return t.position.start.line === t.position.end.line;
|
|
4888
|
-
if (/\\$/
|
|
4883
|
+
if (/\\$/mu.test(e.originalText.slice(t.position.start.offset, t.position.end.offset))) return false;
|
|
4889
4884
|
switch (e.proseWrap) {
|
|
4890
4885
|
case "never":
|
|
4891
4886
|
return !t.value.includes(`
|
|
4892
4887
|
`);
|
|
4893
4888
|
case "always":
|
|
4894
|
-
return !/[\n ]
|
|
4889
|
+
return !/[\n ]/u.test(t.value);
|
|
4895
4890
|
default:
|
|
4896
4891
|
return false;
|
|
4897
4892
|
}
|
|
4898
4893
|
}
|
|
4899
|
-
function
|
|
4894
|
+
function zi(t) {
|
|
4900
4895
|
var e;
|
|
4901
4896
|
return ((e = t.key.content) == null ? void 0 : e.type) === "alias";
|
|
4902
4897
|
}
|
|
4903
|
-
function
|
|
4898
|
+
function Zi(t) {
|
|
4904
4899
|
if (!t) return true;
|
|
4905
4900
|
switch (t.type) {
|
|
4906
4901
|
case "plain":
|
|
@@ -4913,42 +4908,47 @@ function Xi(t) {
|
|
|
4913
4908
|
return false;
|
|
4914
4909
|
}
|
|
4915
4910
|
}
|
|
4916
|
-
var
|
|
4917
|
-
function
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4911
|
+
var Mr = Xi;
|
|
4912
|
+
function eo(t) {
|
|
4913
|
+
return mn(t, to);
|
|
4914
|
+
}
|
|
4915
|
+
function to(t) {
|
|
4916
|
+
switch (t.type) {
|
|
4917
|
+
case "document":
|
|
4918
|
+
xe(t, "head", () => t.children[0]), xe(t, "body", () => t.children[1]);
|
|
4919
|
+
break;
|
|
4920
|
+
case "documentBody":
|
|
4921
|
+
case "sequenceItem":
|
|
4922
|
+
case "flowSequenceItem":
|
|
4923
|
+
case "mappingKey":
|
|
4924
|
+
case "mappingValue":
|
|
4925
|
+
xe(t, "content", () => t.children[0]);
|
|
4926
|
+
break;
|
|
4927
|
+
case "mappingItem":
|
|
4928
|
+
case "flowMappingItem":
|
|
4929
|
+
xe(t, "key", () => t.children[0]), xe(t, "value", () => t.children[1]);
|
|
4930
|
+
break;
|
|
4931
|
+
}
|
|
4932
|
+
return t;
|
|
4933
4933
|
}
|
|
4934
|
-
var
|
|
4935
|
-
function
|
|
4934
|
+
var kr = eo;
|
|
4935
|
+
function no(t, e, n) {
|
|
4936
4936
|
let {
|
|
4937
4937
|
node: r
|
|
4938
4938
|
} = t,
|
|
4939
4939
|
s = [];
|
|
4940
|
-
r.type !== "mappingValue" &&
|
|
4940
|
+
r.type !== "mappingValue" && ee(r) && s.push([v(N, t.map(n, "leadingComments")), N]);
|
|
4941
4941
|
let {
|
|
4942
4942
|
tag: i,
|
|
4943
4943
|
anchor: o
|
|
4944
4944
|
} = r;
|
|
4945
4945
|
i && s.push(n("tag")), i && o && s.push(" "), o && s.push(n("anchor"));
|
|
4946
4946
|
let a = "";
|
|
4947
|
-
return
|
|
4947
|
+
return H(r, ["mapping", "sequence", "comment", "directive", "mappingItem", "sequenceItem"]) && !Ot(t) && (a = At(t, e.originalText)), (i || o) && (H(r, ["sequence", "mapping"]) && !ie(r) ? s.push(N) : s.push(" ")), ie(r) && s.push([r.middleComments.length === 1 ? "" : N, v(N, t.map(n, "middleComments")), N]), Or(t) ? s.push(ir(e.originalText.slice(r.position.start.offset, r.position.end.offset).trimEnd())) : s.push(Ie(ro(t, e, n))), K(r) && !H(r, ["document", "documentHead"]) && s.push(lr([r.type === "mappingValue" && !r.content ? "" : " ", t.parent.type === "mappingKey" && t.getParentNode(2).type === "mapping" && ot(r) ? "" : wt, n("trailingComment")])), dn(r) && s.push(I(r.type === "sequenceItem" ? 2 : 0, [N, v(N, t.map(({
|
|
4948
4948
|
node: c
|
|
4949
|
-
}) => [
|
|
4949
|
+
}) => [fr(e.originalText, Pe(c)) ? N : "", n()], "endComments"))])), s.push(a), s;
|
|
4950
4950
|
}
|
|
4951
|
-
function
|
|
4951
|
+
function ro(t, e, n) {
|
|
4952
4952
|
let {
|
|
4953
4953
|
node: r
|
|
4954
4954
|
} = t;
|
|
@@ -4961,15 +4961,15 @@ function eo(t, e, n) {
|
|
|
4961
4961
|
next: a,
|
|
4962
4962
|
isFirst: c
|
|
4963
4963
|
}) => {
|
|
4964
|
-
c || s.push(N), s.push(n()),
|
|
4964
|
+
c || s.push(N), s.push(n()), vr(o, a) ? (s.push(N, "..."), K(o) && s.push(" ", n("trailingComment"))) : a && !K(a.head) && s.push(N, "---");
|
|
4965
4965
|
}, "children");
|
|
4966
|
-
let i =
|
|
4967
|
-
return (!
|
|
4966
|
+
let i = Lt(r);
|
|
4967
|
+
return (!H(i, ["blockLiteral", "blockFolded"]) || i.chomping !== "keep") && s.push(N), s;
|
|
4968
4968
|
}
|
|
4969
4969
|
case "document":
|
|
4970
4970
|
{
|
|
4971
4971
|
let s = [];
|
|
4972
|
-
return
|
|
4972
|
+
return io(t, e) === "head" && ((r.head.children.length > 0 || r.head.endComments.length > 0) && s.push(n("head")), K(r.head) ? s.push(["---", " ", n(["head", "trailingComment"])]) : s.push("---")), so(r) && s.push(n("body")), v(N, s);
|
|
4973
4973
|
}
|
|
4974
4974
|
case "documentHead":
|
|
4975
4975
|
return v(N, [...t.map(n, "children"), ...t.map(n, "endComments")]);
|
|
@@ -4981,8 +4981,8 @@ function eo(t, e, n) {
|
|
|
4981
4981
|
} = r,
|
|
4982
4982
|
o = "";
|
|
4983
4983
|
if (s.length > 0 && i.length > 0) {
|
|
4984
|
-
let a =
|
|
4985
|
-
|
|
4984
|
+
let a = Lt(r);
|
|
4985
|
+
H(a, ["blockFolded", "blockLiteral"]) ? a.chomping !== "keep" && (o = [N, N]) : o = N;
|
|
4986
4986
|
}
|
|
4987
4987
|
return [v(N, t.map(n, "children")), o, v(N, t.map(n, "endComments"))];
|
|
4988
4988
|
}
|
|
@@ -5004,18 +5004,18 @@ function eo(t, e, n) {
|
|
|
5004
5004
|
let s = "'",
|
|
5005
5005
|
i = '"',
|
|
5006
5006
|
o = e.originalText.slice(r.position.start.offset + 1, r.position.end.offset - 1);
|
|
5007
|
-
if (r.type === "quoteSingle" && o.includes("\\") || r.type === "quoteDouble" && /\\[^"]
|
|
5007
|
+
if (r.type === "quoteSingle" && o.includes("\\") || r.type === "quoteDouble" && /\\[^"]/u.test(o)) {
|
|
5008
5008
|
let c = r.type === "quoteDouble" ? i : s;
|
|
5009
5009
|
return [c, at(r.type, o, e), c];
|
|
5010
5010
|
}
|
|
5011
|
-
if (o.includes(i)) return [s, at(r.type, r.type === "quoteDouble" ? yt(false, yt(false, o,
|
|
5011
|
+
if (o.includes(i)) return [s, at(r.type, r.type === "quoteDouble" ? yt(false, yt(false, o, String.raw`\"`, i), "'", s.repeat(2)) : o, e), s];
|
|
5012
5012
|
if (o.includes(s)) return [i, at(r.type, r.type === "quoteSingle" ? yt(false, o, "''", s) : o, e), i];
|
|
5013
5013
|
let a = e.singleQuote ? s : i;
|
|
5014
5014
|
return [a, at(r.type, o, e), a];
|
|
5015
5015
|
}
|
|
5016
5016
|
case "blockFolded":
|
|
5017
5017
|
case "blockLiteral":
|
|
5018
|
-
return
|
|
5018
|
+
return Cr(t, n, e);
|
|
5019
5019
|
case "mapping":
|
|
5020
5020
|
case "sequence":
|
|
5021
5021
|
return v(N, t.map(n, "children"));
|
|
@@ -5026,37 +5026,37 @@ function eo(t, e, n) {
|
|
|
5026
5026
|
return r.content ? n("content") : "";
|
|
5027
5027
|
case "mappingItem":
|
|
5028
5028
|
case "flowMappingItem":
|
|
5029
|
-
return
|
|
5029
|
+
return Mr(t, n, e);
|
|
5030
5030
|
case "flowMapping":
|
|
5031
|
-
return
|
|
5031
|
+
return Tt(t, n, e);
|
|
5032
5032
|
case "flowSequence":
|
|
5033
|
-
return
|
|
5033
|
+
return Tt(t, n, e);
|
|
5034
5034
|
case "flowSequenceItem":
|
|
5035
5035
|
return n("content");
|
|
5036
5036
|
default:
|
|
5037
|
-
throw new
|
|
5037
|
+
throw new ur(r, "YAML");
|
|
5038
5038
|
}
|
|
5039
5039
|
}
|
|
5040
|
-
function
|
|
5040
|
+
function so(t) {
|
|
5041
5041
|
return t.body.children.length > 0 || R(t.body);
|
|
5042
5042
|
}
|
|
5043
|
-
function
|
|
5044
|
-
return
|
|
5043
|
+
function vr(t, e) {
|
|
5044
|
+
return K(t) || e && (e.head.children.length > 0 || R(e.head));
|
|
5045
5045
|
}
|
|
5046
|
-
function
|
|
5046
|
+
function io(t, e) {
|
|
5047
5047
|
let n = t.node;
|
|
5048
|
-
if (t.isFirst && /---(?:\s|$)
|
|
5048
|
+
if (t.isFirst && /---(?:\s|$)/u.test(e.originalText.slice(Pe(n), Pe(n) + 4)) || n.head.children.length > 0 || R(n.head) || K(n.head)) return "head";
|
|
5049
5049
|
let r = t.next;
|
|
5050
|
-
return
|
|
5050
|
+
return vr(n, r) ? false : r ? "root" : false;
|
|
5051
5051
|
}
|
|
5052
5052
|
function at(t, e, n) {
|
|
5053
|
-
let r =
|
|
5054
|
-
return v(N, r.map(s =>
|
|
5053
|
+
let r = Ar(t, e, n);
|
|
5054
|
+
return v(N, r.map(s => St(v(ne, s))));
|
|
5055
5055
|
}
|
|
5056
|
-
function
|
|
5057
|
-
if (
|
|
5056
|
+
function Ir(t, e) {
|
|
5057
|
+
if (H(t)) switch (t.type) {
|
|
5058
5058
|
case "comment":
|
|
5059
|
-
if (
|
|
5059
|
+
if (Er(t.value)) return null;
|
|
5060
5060
|
break;
|
|
5061
5061
|
case "quoteDouble":
|
|
5062
5062
|
case "quoteSingle":
|
|
@@ -5064,31 +5064,83 @@ function ro(t, e) {
|
|
|
5064
5064
|
break;
|
|
5065
5065
|
}
|
|
5066
5066
|
}
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5067
|
+
Ir.ignoredProperties = new Set(["position"]);
|
|
5068
|
+
var oo = {
|
|
5069
|
+
preprocess: kr,
|
|
5070
|
+
embed: mr,
|
|
5071
|
+
print: no,
|
|
5072
|
+
massageAstNode: Ir,
|
|
5073
|
+
insertPragma: wr,
|
|
5074
|
+
getVisitorKeys: dr
|
|
5074
5075
|
},
|
|
5075
|
-
|
|
5076
|
-
var
|
|
5077
|
-
|
|
5078
|
-
|
|
5076
|
+
Pr = oo;
|
|
5077
|
+
var _r = [{
|
|
5078
|
+
linguistLanguageId: 407,
|
|
5079
|
+
name: "YAML",
|
|
5080
|
+
type: "data",
|
|
5081
|
+
color: "#cb171e",
|
|
5082
|
+
tmScope: "source.yaml",
|
|
5083
|
+
aliases: ["yml"],
|
|
5084
|
+
extensions: [".yml", ".mir", ".reek", ".rviz", ".sublime-syntax", ".syntax", ".yaml", ".yaml-tmlanguage", ".yaml.sed", ".yml.mysql"],
|
|
5085
|
+
filenames: [".clang-format", ".clang-tidy", ".gemrc", "CITATION.cff", "glide.lock", ".prettierrc", ".stylelintrc", ".lintstagedrc"],
|
|
5086
|
+
aceMode: "yaml",
|
|
5087
|
+
codemirrorMode: "yaml",
|
|
5088
|
+
codemirrorMimeType: "text/x-yaml",
|
|
5089
|
+
parsers: ["yaml"],
|
|
5090
|
+
vscodeLanguageIds: ["yaml", "ansible", "dockercompose", "github-actions-workflow", "home-assistant"]
|
|
5091
|
+
}];
|
|
5092
|
+
var Ct = {
|
|
5093
|
+
bracketSpacing: {
|
|
5094
|
+
category: "Common",
|
|
5095
|
+
type: "boolean",
|
|
5096
|
+
default: true,
|
|
5097
|
+
description: "Print spaces between brackets.",
|
|
5098
|
+
oppositeDescription: "Do not print spaces between brackets."
|
|
5099
|
+
},
|
|
5100
|
+
singleQuote: {
|
|
5101
|
+
category: "Common",
|
|
5102
|
+
type: "boolean",
|
|
5103
|
+
default: false,
|
|
5104
|
+
description: "Use single quotes instead of double quotes."
|
|
5105
|
+
},
|
|
5106
|
+
proseWrap: {
|
|
5107
|
+
category: "Common",
|
|
5108
|
+
type: "choice",
|
|
5109
|
+
default: "preserve",
|
|
5110
|
+
description: "How to wrap prose.",
|
|
5111
|
+
choices: [{
|
|
5112
|
+
value: "always",
|
|
5113
|
+
description: "Wrap prose if it exceeds the print width."
|
|
5114
|
+
}, {
|
|
5115
|
+
value: "never",
|
|
5116
|
+
description: "Do not wrap prose."
|
|
5117
|
+
}, {
|
|
5118
|
+
value: "preserve",
|
|
5119
|
+
description: "Wrap prose as-is."
|
|
5120
|
+
}]
|
|
5121
|
+
}};
|
|
5122
|
+
var ao = {
|
|
5123
|
+
bracketSpacing: Ct.bracketSpacing,
|
|
5124
|
+
singleQuote: Ct.singleQuote,
|
|
5125
|
+
proseWrap: Ct.proseWrap
|
|
5126
|
+
},
|
|
5127
|
+
xr = ao;
|
|
5128
|
+
var tr = {};
|
|
5129
|
+
rr(tr, {
|
|
5130
|
+
yaml: () => Ga
|
|
5079
5131
|
});
|
|
5080
5132
|
var Mt = `
|
|
5081
5133
|
`,
|
|
5082
|
-
|
|
5083
|
-
|
|
5134
|
+
Rr = "\r",
|
|
5135
|
+
Dr = function () {
|
|
5084
5136
|
function t(e) {
|
|
5085
5137
|
this.length = e.length;
|
|
5086
5138
|
for (var n = [0], r = 0; r < e.length;) switch (e[r]) {
|
|
5087
5139
|
case Mt:
|
|
5088
5140
|
r += Mt.length, n.push(r);
|
|
5089
5141
|
break;
|
|
5090
|
-
case
|
|
5091
|
-
r +=
|
|
5142
|
+
case Rr:
|
|
5143
|
+
r += Rr.length, e[r] === Mt && (r += Mt.length), n.push(r);
|
|
5092
5144
|
break;
|
|
5093
5145
|
default:
|
|
5094
5146
|
r++;
|
|
@@ -5114,30 +5166,30 @@ var Mt = `
|
|
|
5114
5166
|
return r - n;
|
|
5115
5167
|
}, t;
|
|
5116
5168
|
}();
|
|
5117
|
-
function
|
|
5118
|
-
"children" in t && t.children.forEach(n =>
|
|
5169
|
+
function $(t, e = null) {
|
|
5170
|
+
"children" in t && t.children.forEach(n => $(n, t)), "anchor" in t && t.anchor && $(t.anchor, t), "tag" in t && t.tag && $(t.tag, t), "leadingComments" in t && t.leadingComments.forEach(n => $(n, t)), "middleComments" in t && t.middleComments.forEach(n => $(n, t)), "indicatorComment" in t && t.indicatorComment && $(t.indicatorComment, t), "trailingComment" in t && t.trailingComment && $(t.trailingComment, t), "endComments" in t && t.endComments.forEach(n => $(n, t)), Object.defineProperty(t, "_parent", {
|
|
5119
5171
|
value: e,
|
|
5120
5172
|
enumerable: false
|
|
5121
5173
|
});
|
|
5122
5174
|
}
|
|
5123
|
-
function
|
|
5175
|
+
function de(t) {
|
|
5124
5176
|
return `${t.line}:${t.column}`;
|
|
5125
5177
|
}
|
|
5126
|
-
function
|
|
5127
|
-
|
|
5128
|
-
let e =
|
|
5178
|
+
function Yr(t) {
|
|
5179
|
+
$(t);
|
|
5180
|
+
let e = co(t),
|
|
5129
5181
|
n = t.children.slice();
|
|
5130
5182
|
t.comments.sort((r, s) => r.position.start.offset - s.position.end.offset).filter(r => !r._parent).forEach(r => {
|
|
5131
5183
|
for (; n.length > 1 && r.position.start.line > n[0].position.end.line;) n.shift();
|
|
5132
|
-
|
|
5184
|
+
lo(r, e, n[0]);
|
|
5133
5185
|
});
|
|
5134
5186
|
}
|
|
5135
|
-
function
|
|
5187
|
+
function co(t) {
|
|
5136
5188
|
let e = Array.from(new Array(t.position.end.line), () => ({}));
|
|
5137
5189
|
for (let n of t.comments) e[n.position.start.line - 1].comment = n;
|
|
5138
|
-
return
|
|
5190
|
+
return $r(e, t), e;
|
|
5139
5191
|
}
|
|
5140
|
-
function
|
|
5192
|
+
function $r(t, e) {
|
|
5141
5193
|
if (e.position.start.offset !== e.position.end.offset) {
|
|
5142
5194
|
if ("leadingComments" in e) {
|
|
5143
5195
|
let {
|
|
@@ -5169,18 +5221,18 @@ function xr(t, e) {
|
|
|
5169
5221
|
}
|
|
5170
5222
|
}
|
|
5171
5223
|
"children" in e && e.children.forEach(n => {
|
|
5172
|
-
|
|
5224
|
+
$r(t, n);
|
|
5173
5225
|
});
|
|
5174
5226
|
}
|
|
5175
5227
|
}
|
|
5176
|
-
function
|
|
5228
|
+
function lo(t, e, n) {
|
|
5177
5229
|
let r = t.position.start.line,
|
|
5178
5230
|
{
|
|
5179
5231
|
trailingAttachableNode: s
|
|
5180
5232
|
} = e[r - 1];
|
|
5181
5233
|
if (s) {
|
|
5182
|
-
if (s.trailingComment) throw new Error(`Unexpected multiple trailing comment at ${
|
|
5183
|
-
|
|
5234
|
+
if (s.trailingComment) throw new Error(`Unexpected multiple trailing comment at ${de(t.position.start)}`);
|
|
5235
|
+
$(t, s), s.trailingComment = t;
|
|
5184
5236
|
return;
|
|
5185
5237
|
}
|
|
5186
5238
|
for (let o = r; o >= n.position.start.line; o--) {
|
|
@@ -5191,11 +5243,11 @@ function oo(t, e, n) {
|
|
|
5191
5243
|
if (a) c = a;else if (o !== r && e[o - 1].comment) c = e[o - 1].comment._parent;else continue;
|
|
5192
5244
|
if ((c.type === "sequence" || c.type === "mapping") && (c = c.children[0]), c.type === "mappingItem") {
|
|
5193
5245
|
let [l, f] = c.children;
|
|
5194
|
-
c =
|
|
5246
|
+
c = Br(l) ? l : f;
|
|
5195
5247
|
}
|
|
5196
5248
|
for (;;) {
|
|
5197
|
-
if (
|
|
5198
|
-
|
|
5249
|
+
if (fo(c, t)) {
|
|
5250
|
+
$(t, c), c.endComments.push(t);
|
|
5199
5251
|
return;
|
|
5200
5252
|
}
|
|
5201
5253
|
if (!c._parent) break;
|
|
@@ -5208,14 +5260,14 @@ function oo(t, e, n) {
|
|
|
5208
5260
|
leadingAttachableNode: a
|
|
5209
5261
|
} = e[o - 1];
|
|
5210
5262
|
if (a) {
|
|
5211
|
-
|
|
5263
|
+
$(t, a), a.leadingComments.push(t);
|
|
5212
5264
|
return;
|
|
5213
5265
|
}
|
|
5214
5266
|
}
|
|
5215
5267
|
let i = n.children[1];
|
|
5216
|
-
|
|
5268
|
+
$(t, i), i.endComments.push(t);
|
|
5217
5269
|
}
|
|
5218
|
-
function
|
|
5270
|
+
function fo(t, e) {
|
|
5219
5271
|
if (t.position.start.offset < e.position.start.offset && t.position.end.offset > e.position.end.offset) switch (t.type) {
|
|
5220
5272
|
case "flowMapping":
|
|
5221
5273
|
case "flowSequence":
|
|
@@ -5227,12 +5279,12 @@ function ao(t, e) {
|
|
|
5227
5279
|
return e.position.start.column > t.position.start.column;
|
|
5228
5280
|
case "mappingKey":
|
|
5229
5281
|
case "mappingValue":
|
|
5230
|
-
return e.position.start.column > t._parent.position.start.column && (t.children.length === 0 || t.children.length === 1 && t.children[0].type !== "blockFolded" && t.children[0].type !== "blockLiteral") && (t.type === "mappingValue" ||
|
|
5282
|
+
return e.position.start.column > t._parent.position.start.column && (t.children.length === 0 || t.children.length === 1 && t.children[0].type !== "blockFolded" && t.children[0].type !== "blockLiteral") && (t.type === "mappingValue" || Br(t));
|
|
5231
5283
|
default:
|
|
5232
5284
|
return false;
|
|
5233
5285
|
}
|
|
5234
5286
|
}
|
|
5235
|
-
function
|
|
5287
|
+
function Br(t) {
|
|
5236
5288
|
return t.position.start !== t.position.end && (t.children.length === 0 || t.position.start.offset !== t.children[0].position.start.offset);
|
|
5237
5289
|
}
|
|
5238
5290
|
function b(t, e) {
|
|
@@ -5241,7 +5293,7 @@ function b(t, e) {
|
|
|
5241
5293
|
position: e
|
|
5242
5294
|
};
|
|
5243
5295
|
}
|
|
5244
|
-
function
|
|
5296
|
+
function Fr(t, e, n) {
|
|
5245
5297
|
return {
|
|
5246
5298
|
...b("root", t),
|
|
5247
5299
|
children: e,
|
|
@@ -5292,34 +5344,34 @@ function oe(t = null) {
|
|
|
5292
5344
|
trailingComment: t
|
|
5293
5345
|
};
|
|
5294
5346
|
}
|
|
5295
|
-
function
|
|
5347
|
+
function B() {
|
|
5296
5348
|
return {
|
|
5297
5349
|
...X(),
|
|
5298
5350
|
...oe()
|
|
5299
5351
|
};
|
|
5300
5352
|
}
|
|
5301
|
-
function
|
|
5353
|
+
function qr(t, e, n) {
|
|
5302
5354
|
return {
|
|
5303
5355
|
...b("alias", t),
|
|
5304
|
-
|
|
5356
|
+
...B(),
|
|
5305
5357
|
...e,
|
|
5306
5358
|
value: n
|
|
5307
5359
|
};
|
|
5308
5360
|
}
|
|
5309
|
-
function
|
|
5361
|
+
function Ur(t, e) {
|
|
5310
5362
|
let n = t.cstNode;
|
|
5311
|
-
return
|
|
5363
|
+
return qr(e.transformRange({
|
|
5312
5364
|
origStart: n.valueRange.origStart - 1,
|
|
5313
5365
|
origEnd: n.valueRange.origEnd
|
|
5314
5366
|
}), e.transformContent(t), n.rawValue);
|
|
5315
5367
|
}
|
|
5316
|
-
function
|
|
5368
|
+
function Kr(t) {
|
|
5317
5369
|
return {
|
|
5318
5370
|
...t,
|
|
5319
5371
|
type: "blockFolded"
|
|
5320
5372
|
};
|
|
5321
5373
|
}
|
|
5322
|
-
function
|
|
5374
|
+
function Vr(t, e, n, r, s, i) {
|
|
5323
5375
|
return {
|
|
5324
5376
|
...b("blockValue", t),
|
|
5325
5377
|
...X(),
|
|
@@ -5334,26 +5386,26 @@ var ae;
|
|
|
5334
5386
|
(function (t) {
|
|
5335
5387
|
t.Tag = "!", t.Anchor = "&", t.Comment = "#";
|
|
5336
5388
|
})(ae || (ae = {}));
|
|
5337
|
-
function
|
|
5389
|
+
function Wr(t, e) {
|
|
5338
5390
|
return {
|
|
5339
5391
|
...b("anchor", t),
|
|
5340
5392
|
value: e
|
|
5341
5393
|
};
|
|
5342
5394
|
}
|
|
5343
|
-
function
|
|
5395
|
+
function De(t, e) {
|
|
5344
5396
|
return {
|
|
5345
5397
|
...b("comment", t),
|
|
5346
5398
|
value: e
|
|
5347
5399
|
};
|
|
5348
5400
|
}
|
|
5349
|
-
function
|
|
5401
|
+
function jr(t, e, n) {
|
|
5350
5402
|
return {
|
|
5351
5403
|
anchor: e,
|
|
5352
5404
|
tag: t,
|
|
5353
5405
|
middleComments: n
|
|
5354
5406
|
};
|
|
5355
5407
|
}
|
|
5356
|
-
function
|
|
5408
|
+
function Qr(t, e) {
|
|
5357
5409
|
return {
|
|
5358
5410
|
...b("tag", t),
|
|
5359
5411
|
value: e
|
|
@@ -5369,14 +5421,14 @@ function kt(t, e, n = () => false) {
|
|
|
5369
5421
|
let l = e.text[c.origStart];
|
|
5370
5422
|
switch (l) {
|
|
5371
5423
|
case ae.Tag:
|
|
5372
|
-
i = i || c, o =
|
|
5424
|
+
i = i || c, o = Qr(e.transformRange(c), t.tag);
|
|
5373
5425
|
break;
|
|
5374
5426
|
case ae.Anchor:
|
|
5375
|
-
i = i || c, a =
|
|
5427
|
+
i = i || c, a = Wr(e.transformRange(c), r.anchor);
|
|
5376
5428
|
break;
|
|
5377
5429
|
case ae.Comment:
|
|
5378
5430
|
{
|
|
5379
|
-
let f =
|
|
5431
|
+
let f = De(e.transformRange(c), e.text.slice(c.origStart + 1, c.origEnd));
|
|
5380
5432
|
e.comments.push(f), !n(f) && i && i.origEnd <= c.origStart && c.origEnd <= r.valueRange.origStart && s.push(f);
|
|
5381
5433
|
break;
|
|
5382
5434
|
}
|
|
@@ -5384,7 +5436,7 @@ function kt(t, e, n = () => false) {
|
|
|
5384
5436
|
throw new Error(`Unexpected leading character ${JSON.stringify(l)}`);
|
|
5385
5437
|
}
|
|
5386
5438
|
}
|
|
5387
|
-
return
|
|
5439
|
+
return jr(o, a, s);
|
|
5388
5440
|
}
|
|
5389
5441
|
var En;
|
|
5390
5442
|
(function (t) {
|
|
@@ -5402,57 +5454,57 @@ function vt(t, e) {
|
|
|
5402
5454
|
c = null,
|
|
5403
5455
|
l = kt(t, e, f => {
|
|
5404
5456
|
if (!(a.start.offset < f.position.start.offset && f.position.end.offset < a.end.offset)) return false;
|
|
5405
|
-
if (c) throw new Error(`Unexpected multiple indicator comments at ${
|
|
5457
|
+
if (c) throw new Error(`Unexpected multiple indicator comments at ${de(f.position.start)}`);
|
|
5406
5458
|
return c = f, true;
|
|
5407
5459
|
});
|
|
5408
|
-
return
|
|
5460
|
+
return Vr(a, l, En[n.chomping], o ? n.blockIndent : null, n.strValue, c);
|
|
5409
5461
|
}
|
|
5410
|
-
function
|
|
5411
|
-
return
|
|
5462
|
+
function Jr(t, e) {
|
|
5463
|
+
return Kr(vt(t, e));
|
|
5412
5464
|
}
|
|
5413
|
-
function
|
|
5465
|
+
function Gr(t) {
|
|
5414
5466
|
return {
|
|
5415
5467
|
...t,
|
|
5416
5468
|
type: "blockLiteral"
|
|
5417
5469
|
};
|
|
5418
5470
|
}
|
|
5419
|
-
function
|
|
5420
|
-
return
|
|
5471
|
+
function Hr(t, e) {
|
|
5472
|
+
return Gr(vt(t, e));
|
|
5421
5473
|
}
|
|
5422
|
-
function
|
|
5423
|
-
return
|
|
5474
|
+
function Xr(t, e) {
|
|
5475
|
+
return De(e.transformRange(t.range), t.comment);
|
|
5424
5476
|
}
|
|
5425
|
-
function
|
|
5477
|
+
function zr(t, e, n) {
|
|
5426
5478
|
return {
|
|
5427
5479
|
...b("directive", t),
|
|
5428
|
-
|
|
5480
|
+
...B(),
|
|
5429
5481
|
name: e,
|
|
5430
5482
|
parameters: n
|
|
5431
5483
|
};
|
|
5432
5484
|
}
|
|
5433
|
-
function
|
|
5485
|
+
function Ye(t, e) {
|
|
5434
5486
|
for (let n of t.props) {
|
|
5435
5487
|
let r = e.text[n.origStart];
|
|
5436
5488
|
switch (r) {
|
|
5437
5489
|
case ae.Comment:
|
|
5438
|
-
e.comments.push(
|
|
5490
|
+
e.comments.push(De(e.transformRange(n), e.text.slice(n.origStart + 1, n.origEnd)));
|
|
5439
5491
|
break;
|
|
5440
5492
|
default:
|
|
5441
5493
|
throw new Error(`Unexpected leading character ${JSON.stringify(r)}`);
|
|
5442
5494
|
}
|
|
5443
5495
|
}
|
|
5444
5496
|
}
|
|
5445
|
-
function
|
|
5446
|
-
return
|
|
5497
|
+
function Zr(t, e) {
|
|
5498
|
+
return Ye(t, e), zr(e.transformRange(t.range), t.name, t.parameters);
|
|
5447
5499
|
}
|
|
5448
|
-
function
|
|
5500
|
+
function es(t, e, n, r) {
|
|
5449
5501
|
return {
|
|
5450
5502
|
...b("document", t),
|
|
5451
5503
|
...oe(r),
|
|
5452
5504
|
children: [e, n]
|
|
5453
5505
|
};
|
|
5454
5506
|
}
|
|
5455
|
-
function
|
|
5507
|
+
function V(t, e) {
|
|
5456
5508
|
return {
|
|
5457
5509
|
start: t,
|
|
5458
5510
|
end: e
|
|
@@ -5469,7 +5521,7 @@ function F(t = []) {
|
|
|
5469
5521
|
endComments: t
|
|
5470
5522
|
};
|
|
5471
5523
|
}
|
|
5472
|
-
function
|
|
5524
|
+
function ts(t, e, n) {
|
|
5473
5525
|
return {
|
|
5474
5526
|
...b("documentBody", t),
|
|
5475
5527
|
...F(n),
|
|
@@ -5483,27 +5535,27 @@ function It(t, e) {
|
|
|
5483
5535
|
let n = t.match(e);
|
|
5484
5536
|
return n ? n.index : -1;
|
|
5485
5537
|
}
|
|
5486
|
-
function
|
|
5538
|
+
function ns(t, e, n) {
|
|
5487
5539
|
let r = t.cstNode,
|
|
5488
5540
|
{
|
|
5489
5541
|
comments: s,
|
|
5490
5542
|
endComments: i,
|
|
5491
5543
|
documentTrailingComment: o,
|
|
5492
5544
|
documentHeadTrailingComment: a
|
|
5493
|
-
} =
|
|
5545
|
+
} = uo(r, e, n),
|
|
5494
5546
|
c = e.transformNode(t.contents),
|
|
5495
5547
|
{
|
|
5496
5548
|
position: l,
|
|
5497
5549
|
documentEndPoint: f
|
|
5498
|
-
} =
|
|
5550
|
+
} = po(r, c, e);
|
|
5499
5551
|
return e.comments.push(...s, ...i), {
|
|
5500
|
-
documentBody:
|
|
5552
|
+
documentBody: ts(l, c, i),
|
|
5501
5553
|
documentEndPoint: f,
|
|
5502
5554
|
documentTrailingComment: o,
|
|
5503
5555
|
documentHeadTrailingComment: a
|
|
5504
5556
|
};
|
|
5505
5557
|
}
|
|
5506
|
-
function
|
|
5558
|
+
function uo(t, e, n) {
|
|
5507
5559
|
let r = [],
|
|
5508
5560
|
s = [],
|
|
5509
5561
|
i = [],
|
|
@@ -5516,8 +5568,8 @@ function co(t, e, n) {
|
|
|
5516
5568
|
n && n.line === f.position.start.line ? o.unshift(f) : a ? r.unshift(f) : f.position.start.offset >= t.valueRange.origEnd ? i.unshift(f) : r.unshift(f);
|
|
5517
5569
|
} else a = true;
|
|
5518
5570
|
}
|
|
5519
|
-
if (i.length > 1) throw new Error(`Unexpected multiple document trailing comments at ${
|
|
5520
|
-
if (o.length > 1) throw new Error(`Unexpected multiple documentHead trailing comments at ${
|
|
5571
|
+
if (i.length > 1) throw new Error(`Unexpected multiple document trailing comments at ${de(i[1].position.start)}`);
|
|
5572
|
+
if (o.length > 1) throw new Error(`Unexpected multiple documentHead trailing comments at ${de(o[1].position.start)}`);
|
|
5521
5573
|
return {
|
|
5522
5574
|
comments: r,
|
|
5523
5575
|
endComments: s,
|
|
@@ -5525,7 +5577,7 @@ function co(t, e, n) {
|
|
|
5525
5577
|
documentHeadTrailingComment: q(o) || null
|
|
5526
5578
|
};
|
|
5527
5579
|
}
|
|
5528
|
-
function
|
|
5580
|
+
function po(t, e, n) {
|
|
5529
5581
|
let r = It(n.text.slice(t.valueRange.origEnd), /^\.\.\./),
|
|
5530
5582
|
s = r === -1 ? t.valueRange.origEnd : Math.max(0, t.valueRange.origEnd - 1);
|
|
5531
5583
|
n.text[s - 1] === "\r" && s--;
|
|
@@ -5539,7 +5591,7 @@ function lo(t, e, n) {
|
|
|
5539
5591
|
documentEndPoint: o
|
|
5540
5592
|
};
|
|
5541
5593
|
}
|
|
5542
|
-
function
|
|
5594
|
+
function rs(t, e, n, r) {
|
|
5543
5595
|
return {
|
|
5544
5596
|
...b("documentHead", t),
|
|
5545
5597
|
...F(n),
|
|
@@ -5547,23 +5599,23 @@ function Zr(t, e, n, r) {
|
|
|
5547
5599
|
children: e
|
|
5548
5600
|
};
|
|
5549
5601
|
}
|
|
5550
|
-
function
|
|
5602
|
+
function ss(t, e) {
|
|
5551
5603
|
let n = t.cstNode,
|
|
5552
5604
|
{
|
|
5553
5605
|
directives: r,
|
|
5554
5606
|
comments: s,
|
|
5555
5607
|
endComments: i
|
|
5556
|
-
} =
|
|
5608
|
+
} = mo(n, e),
|
|
5557
5609
|
{
|
|
5558
5610
|
position: o,
|
|
5559
5611
|
endMarkerPoint: a
|
|
5560
|
-
} =
|
|
5612
|
+
} = ho(n, r, e);
|
|
5561
5613
|
return e.comments.push(...s, ...i), {
|
|
5562
|
-
createDocumentHeadWithTrailingComment: l => (l && e.comments.push(l),
|
|
5614
|
+
createDocumentHeadWithTrailingComment: l => (l && e.comments.push(l), rs(o, r, i, l)),
|
|
5563
5615
|
documentHeadEndMarkerPoint: a
|
|
5564
5616
|
};
|
|
5565
5617
|
}
|
|
5566
|
-
function
|
|
5618
|
+
function mo(t, e) {
|
|
5567
5619
|
let n = [],
|
|
5568
5620
|
r = [],
|
|
5569
5621
|
s = [],
|
|
@@ -5578,7 +5630,7 @@ function fo(t, e) {
|
|
|
5578
5630
|
endComments: s
|
|
5579
5631
|
};
|
|
5580
5632
|
}
|
|
5581
|
-
function
|
|
5633
|
+
function ho(t, e, n) {
|
|
5582
5634
|
let r = It(n.text.slice(0, t.valueRange.origStart), /---\s*$/);
|
|
5583
5635
|
r > 0 && !/[\r\n]/.test(n.text[r - 1]) && (r = -1);
|
|
5584
5636
|
let s = r === -1 ? {
|
|
@@ -5593,30 +5645,30 @@ function uo(t, e, n) {
|
|
|
5593
5645
|
endMarkerPoint: r === -1 ? null : n.transformOffset(r)
|
|
5594
5646
|
};
|
|
5595
5647
|
}
|
|
5596
|
-
function
|
|
5648
|
+
function is(t, e) {
|
|
5597
5649
|
let {
|
|
5598
5650
|
createDocumentHeadWithTrailingComment: n,
|
|
5599
5651
|
documentHeadEndMarkerPoint: r
|
|
5600
|
-
} =
|
|
5652
|
+
} = ss(t, e),
|
|
5601
5653
|
{
|
|
5602
5654
|
documentBody: s,
|
|
5603
5655
|
documentEndPoint: i,
|
|
5604
5656
|
documentTrailingComment: o,
|
|
5605
5657
|
documentHeadTrailingComment: a
|
|
5606
|
-
} =
|
|
5658
|
+
} = ns(t, e, r),
|
|
5607
5659
|
c = n(a);
|
|
5608
|
-
return o && e.comments.push(o),
|
|
5660
|
+
return o && e.comments.push(o), es(V(c.position.start, i), c, s, o);
|
|
5609
5661
|
}
|
|
5610
5662
|
function Pt(t, e, n) {
|
|
5611
5663
|
return {
|
|
5612
5664
|
...b("flowCollection", t),
|
|
5613
|
-
|
|
5665
|
+
...B(),
|
|
5614
5666
|
...F(),
|
|
5615
5667
|
...e,
|
|
5616
5668
|
children: n
|
|
5617
5669
|
};
|
|
5618
5670
|
}
|
|
5619
|
-
function
|
|
5671
|
+
function os(t, e, n) {
|
|
5620
5672
|
return {
|
|
5621
5673
|
...Pt(t, e, n),
|
|
5622
5674
|
type: "flowMapping"
|
|
@@ -5676,12 +5728,12 @@ function wn(t, e) {
|
|
|
5676
5728
|
function bn(t, e) {
|
|
5677
5729
|
return {
|
|
5678
5730
|
...b("mappingValue", t),
|
|
5679
|
-
|
|
5731
|
+
...B(),
|
|
5680
5732
|
...F(),
|
|
5681
5733
|
children: e ? [e] : []
|
|
5682
5734
|
};
|
|
5683
5735
|
}
|
|
5684
|
-
function
|
|
5736
|
+
function $e(t, e, n, r, s) {
|
|
5685
5737
|
let i = e.transformNode(t.key),
|
|
5686
5738
|
o = e.transformNode(t.value),
|
|
5687
5739
|
a = i || r ? wn(e.transformRange({
|
|
@@ -5692,9 +5744,9 @@ function De(t, e, n, r, s) {
|
|
|
5692
5744
|
origStart: s ? s.origStart : o.position.start.offset,
|
|
5693
5745
|
origEnd: o ? o.position.end.offset : s.origStart + 1
|
|
5694
5746
|
}), o) : null;
|
|
5695
|
-
return n(
|
|
5747
|
+
return n(V(a ? a.position.start : c.position.start, c ? c.position.end : a.position.end), a || wn(Sn(c.position.start), null), c || bn(Sn(a.position.end), null));
|
|
5696
5748
|
}
|
|
5697
|
-
function
|
|
5749
|
+
function as(t, e) {
|
|
5698
5750
|
let n = ce(t.cstNode.items, e),
|
|
5699
5751
|
r = Dt(n),
|
|
5700
5752
|
s = t.items.map((a, c) => {
|
|
@@ -5703,51 +5755,51 @@ function rs(t, e) {
|
|
|
5703
5755
|
additionalKeyRange: f,
|
|
5704
5756
|
additionalValueRange: m
|
|
5705
5757
|
} = xt(l);
|
|
5706
|
-
return
|
|
5758
|
+
return $e(a, e, _t, f, m);
|
|
5707
5759
|
}),
|
|
5708
5760
|
i = n[0],
|
|
5709
5761
|
o = q(n);
|
|
5710
|
-
return
|
|
5762
|
+
return os(e.transformRange({
|
|
5711
5763
|
origStart: i.origOffset,
|
|
5712
5764
|
origEnd: o.origOffset + 1
|
|
5713
5765
|
}), e.transformContent(t), s);
|
|
5714
5766
|
}
|
|
5715
|
-
function
|
|
5767
|
+
function cs(t, e, n) {
|
|
5716
5768
|
return {
|
|
5717
5769
|
...Pt(t, e, n),
|
|
5718
5770
|
type: "flowSequence"
|
|
5719
5771
|
};
|
|
5720
5772
|
}
|
|
5721
|
-
function
|
|
5773
|
+
function ls(t, e) {
|
|
5722
5774
|
return {
|
|
5723
5775
|
...b("flowSequenceItem", t),
|
|
5724
5776
|
children: [e]
|
|
5725
5777
|
};
|
|
5726
5778
|
}
|
|
5727
|
-
function
|
|
5779
|
+
function fs(t, e) {
|
|
5728
5780
|
let n = ce(t.cstNode.items, e),
|
|
5729
5781
|
r = Dt(n),
|
|
5730
5782
|
s = t.items.map((a, c) => {
|
|
5731
5783
|
if (a.type !== "PAIR") {
|
|
5732
5784
|
let l = e.transformNode(a);
|
|
5733
|
-
return
|
|
5785
|
+
return ls(V(l.position.start, l.position.end), l);
|
|
5734
5786
|
} else {
|
|
5735
5787
|
let l = r[c],
|
|
5736
5788
|
{
|
|
5737
5789
|
additionalKeyRange: f,
|
|
5738
5790
|
additionalValueRange: m
|
|
5739
5791
|
} = xt(l);
|
|
5740
|
-
return
|
|
5792
|
+
return $e(a, e, _t, f, m);
|
|
5741
5793
|
}
|
|
5742
5794
|
}),
|
|
5743
5795
|
i = n[0],
|
|
5744
5796
|
o = q(n);
|
|
5745
|
-
return
|
|
5797
|
+
return cs(e.transformRange({
|
|
5746
5798
|
origStart: i.origOffset,
|
|
5747
5799
|
origEnd: o.origOffset + 1
|
|
5748
5800
|
}), e.transformContent(t), s);
|
|
5749
5801
|
}
|
|
5750
|
-
function
|
|
5802
|
+
function us(t, e, n) {
|
|
5751
5803
|
return {
|
|
5752
5804
|
...b("mapping", t),
|
|
5753
5805
|
...X(),
|
|
@@ -5755,26 +5807,26 @@ function as(t, e, n) {
|
|
|
5755
5807
|
children: n
|
|
5756
5808
|
};
|
|
5757
5809
|
}
|
|
5758
|
-
function
|
|
5810
|
+
function ps(t, e, n) {
|
|
5759
5811
|
return {
|
|
5760
5812
|
...b("mappingItem", t),
|
|
5761
5813
|
...X(),
|
|
5762
5814
|
children: [e, n]
|
|
5763
5815
|
};
|
|
5764
5816
|
}
|
|
5765
|
-
function
|
|
5817
|
+
function ms(t, e) {
|
|
5766
5818
|
let n = t.cstNode;
|
|
5767
|
-
n.items.filter(o => o.type === "MAP_KEY" || o.type === "MAP_VALUE").forEach(o =>
|
|
5819
|
+
n.items.filter(o => o.type === "MAP_KEY" || o.type === "MAP_VALUE").forEach(o => Ye(o, e));
|
|
5768
5820
|
let r = ce(n.items, e),
|
|
5769
|
-
s =
|
|
5821
|
+
s = go(r),
|
|
5770
5822
|
i = t.items.map((o, a) => {
|
|
5771
5823
|
let c = s[a],
|
|
5772
5824
|
[l, f] = c[0].type === "MAP_VALUE" ? [null, c[0].range] : [c[0].range, c.length === 1 ? null : c[1].range];
|
|
5773
|
-
return
|
|
5825
|
+
return $e(o, e, ps, l, f);
|
|
5774
5826
|
});
|
|
5775
|
-
return
|
|
5827
|
+
return us(V(i[0].position.start, q(i).position.end), e.transformContent(t), i);
|
|
5776
5828
|
}
|
|
5777
|
-
function
|
|
5829
|
+
function go(t) {
|
|
5778
5830
|
let e = [],
|
|
5779
5831
|
n = Rt(t, 0),
|
|
5780
5832
|
r = false;
|
|
@@ -5787,56 +5839,56 @@ function po(t) {
|
|
|
5787
5839
|
}
|
|
5788
5840
|
return r && e.push(n(1 / 0)), e;
|
|
5789
5841
|
}
|
|
5790
|
-
function
|
|
5842
|
+
function hs(t, e, n) {
|
|
5791
5843
|
return {
|
|
5792
5844
|
...b("plain", t),
|
|
5793
|
-
|
|
5845
|
+
...B(),
|
|
5794
5846
|
...e,
|
|
5795
5847
|
value: n
|
|
5796
5848
|
};
|
|
5797
5849
|
}
|
|
5798
|
-
function
|
|
5850
|
+
function gs(t, e, n) {
|
|
5799
5851
|
for (let r = e; r >= 0; r--) if (n.test(t[r])) return r;
|
|
5800
5852
|
return -1;
|
|
5801
5853
|
}
|
|
5802
|
-
function
|
|
5854
|
+
function ds(t, e) {
|
|
5803
5855
|
let n = t.cstNode;
|
|
5804
|
-
return
|
|
5856
|
+
return hs(e.transformRange({
|
|
5805
5857
|
origStart: n.valueRange.origStart,
|
|
5806
|
-
origEnd:
|
|
5858
|
+
origEnd: gs(e.text, n.valueRange.origEnd - 1, /\S/) + 1
|
|
5807
5859
|
}), e.transformContent(t), n.strValue);
|
|
5808
5860
|
}
|
|
5809
|
-
function
|
|
5861
|
+
function ys(t) {
|
|
5810
5862
|
return {
|
|
5811
5863
|
...t,
|
|
5812
5864
|
type: "quoteDouble"
|
|
5813
5865
|
};
|
|
5814
5866
|
}
|
|
5815
|
-
function
|
|
5867
|
+
function Es(t, e, n) {
|
|
5816
5868
|
return {
|
|
5817
5869
|
...b("quoteValue", t),
|
|
5818
5870
|
...e,
|
|
5819
|
-
|
|
5871
|
+
...B(),
|
|
5820
5872
|
value: n
|
|
5821
5873
|
};
|
|
5822
5874
|
}
|
|
5823
5875
|
function Yt(t, e) {
|
|
5824
5876
|
let n = t.cstNode;
|
|
5825
|
-
return
|
|
5877
|
+
return Es(e.transformRange(n.valueRange), e.transformContent(t), n.strValue);
|
|
5826
5878
|
}
|
|
5827
|
-
function
|
|
5828
|
-
return
|
|
5879
|
+
function Ss(t, e) {
|
|
5880
|
+
return ys(Yt(t, e));
|
|
5829
5881
|
}
|
|
5830
|
-
function
|
|
5882
|
+
function ws(t) {
|
|
5831
5883
|
return {
|
|
5832
5884
|
...t,
|
|
5833
5885
|
type: "quoteSingle"
|
|
5834
5886
|
};
|
|
5835
5887
|
}
|
|
5836
|
-
function
|
|
5837
|
-
return
|
|
5888
|
+
function bs(t, e) {
|
|
5889
|
+
return ws(Yt(t, e));
|
|
5838
5890
|
}
|
|
5839
|
-
function
|
|
5891
|
+
function Ns(t, e, n) {
|
|
5840
5892
|
return {
|
|
5841
5893
|
...b("sequence", t),
|
|
5842
5894
|
...X(),
|
|
@@ -5845,83 +5897,83 @@ function Es(t, e, n) {
|
|
|
5845
5897
|
children: n
|
|
5846
5898
|
};
|
|
5847
5899
|
}
|
|
5848
|
-
function
|
|
5900
|
+
function Os(t, e) {
|
|
5849
5901
|
return {
|
|
5850
5902
|
...b("sequenceItem", t),
|
|
5851
|
-
|
|
5903
|
+
...B(),
|
|
5852
5904
|
...F(),
|
|
5853
5905
|
children: e ? [e] : []
|
|
5854
5906
|
};
|
|
5855
5907
|
}
|
|
5856
|
-
function
|
|
5908
|
+
function Ls(t, e) {
|
|
5857
5909
|
let r = ce(t.cstNode.items, e).map((s, i) => {
|
|
5858
|
-
|
|
5910
|
+
Ye(s, e);
|
|
5859
5911
|
let o = e.transformNode(t.items[i]);
|
|
5860
|
-
return
|
|
5912
|
+
return Os(V(e.transformOffset(s.valueRange.origStart), o === null ? e.transformOffset(s.valueRange.origStart + 1) : o.position.end), o);
|
|
5861
5913
|
});
|
|
5862
|
-
return
|
|
5914
|
+
return Ns(V(r[0].position.start, q(r).position.end), e.transformContent(t), r);
|
|
5863
5915
|
}
|
|
5864
|
-
function
|
|
5916
|
+
function As(t, e) {
|
|
5865
5917
|
if (t === null || t.type === void 0 && t.value === null) return null;
|
|
5866
5918
|
switch (t.type) {
|
|
5867
5919
|
case "ALIAS":
|
|
5868
|
-
return
|
|
5920
|
+
return Ur(t, e);
|
|
5869
5921
|
case "BLOCK_FOLDED":
|
|
5870
|
-
return
|
|
5922
|
+
return Jr(t, e);
|
|
5871
5923
|
case "BLOCK_LITERAL":
|
|
5872
|
-
return
|
|
5924
|
+
return Hr(t, e);
|
|
5873
5925
|
case "COMMENT":
|
|
5874
|
-
return
|
|
5926
|
+
return Xr(t, e);
|
|
5875
5927
|
case "DIRECTIVE":
|
|
5876
|
-
return
|
|
5928
|
+
return Zr(t, e);
|
|
5877
5929
|
case "DOCUMENT":
|
|
5878
|
-
return
|
|
5930
|
+
return is(t, e);
|
|
5879
5931
|
case "FLOW_MAP":
|
|
5880
|
-
return
|
|
5932
|
+
return as(t, e);
|
|
5881
5933
|
case "FLOW_SEQ":
|
|
5882
|
-
return
|
|
5934
|
+
return fs(t, e);
|
|
5883
5935
|
case "MAP":
|
|
5884
|
-
return
|
|
5936
|
+
return ms(t, e);
|
|
5885
5937
|
case "PLAIN":
|
|
5886
|
-
return
|
|
5938
|
+
return ds(t, e);
|
|
5887
5939
|
case "QUOTE_DOUBLE":
|
|
5888
|
-
return
|
|
5940
|
+
return Ss(t, e);
|
|
5889
5941
|
case "QUOTE_SINGLE":
|
|
5890
|
-
return
|
|
5942
|
+
return bs(t, e);
|
|
5891
5943
|
case "SEQ":
|
|
5892
|
-
return
|
|
5944
|
+
return Ls(t, e);
|
|
5893
5945
|
default:
|
|
5894
5946
|
throw new Error(`Unexpected node type ${t.type}`);
|
|
5895
5947
|
}
|
|
5896
5948
|
}
|
|
5897
|
-
function
|
|
5949
|
+
function Ts(t, e, n) {
|
|
5898
5950
|
let r = new SyntaxError(t);
|
|
5899
5951
|
return r.name = "YAMLSyntaxError", r.source = e, r.position = n, r;
|
|
5900
5952
|
}
|
|
5901
|
-
function
|
|
5953
|
+
function Cs(t, e) {
|
|
5902
5954
|
let n = t.source.range || t.source.valueRange;
|
|
5903
|
-
return
|
|
5955
|
+
return Ts(t.message, e.text, e.transformRange(n));
|
|
5904
5956
|
}
|
|
5905
|
-
function
|
|
5957
|
+
function Ms(t, e, n) {
|
|
5906
5958
|
return {
|
|
5907
5959
|
offset: t,
|
|
5908
5960
|
line: e,
|
|
5909
5961
|
column: n
|
|
5910
5962
|
};
|
|
5911
5963
|
}
|
|
5912
|
-
function
|
|
5964
|
+
function ks(t, e) {
|
|
5913
5965
|
t < 0 ? t = 0 : t > e.text.length && (t = e.text.length);
|
|
5914
5966
|
let n = e.locator.locationForIndex(t);
|
|
5915
|
-
return
|
|
5967
|
+
return Ms(t, n.line + 1, n.column + 1);
|
|
5916
5968
|
}
|
|
5917
|
-
function
|
|
5918
|
-
return
|
|
5969
|
+
function vs(t, e) {
|
|
5970
|
+
return V(e.transformOffset(t.origStart), e.transformOffset(t.origEnd));
|
|
5919
5971
|
}
|
|
5920
|
-
function
|
|
5972
|
+
function Is(t) {
|
|
5921
5973
|
if (!t.setOrigRanges()) {
|
|
5922
5974
|
let e = n => {
|
|
5923
|
-
if (
|
|
5924
|
-
if (
|
|
5975
|
+
if (yo(n)) return n.origStart = n.start, n.origEnd = n.end, true;
|
|
5976
|
+
if (Eo(n)) return n.origOffset = n.offset, true;
|
|
5925
5977
|
};
|
|
5926
5978
|
t.forEach(n => Nn(n, e));
|
|
5927
5979
|
}
|
|
@@ -5933,10 +5985,10 @@ function Nn(t, e) {
|
|
|
5933
5985
|
Array.isArray(r) ? r.forEach(s => Nn(s, e)) : Nn(r, e);
|
|
5934
5986
|
}
|
|
5935
5987
|
}
|
|
5936
|
-
function
|
|
5988
|
+
function yo(t) {
|
|
5937
5989
|
return typeof t.start == "number";
|
|
5938
5990
|
}
|
|
5939
|
-
function
|
|
5991
|
+
function Eo(t) {
|
|
5940
5992
|
return typeof t.offset == "number";
|
|
5941
5993
|
}
|
|
5942
5994
|
function On(t) {
|
|
@@ -5962,8 +6014,8 @@ function An(t) {
|
|
|
5962
6014
|
let [i, o] = t.children;
|
|
5963
6015
|
i.position.start.offset === i.position.end.offset ? i.position.start = i.position.end = o.position.start : o.position.start.offset === o.position.end.offset && (o.position.start = o.position.end = i.position.end);
|
|
5964
6016
|
}
|
|
5965
|
-
let n = Ln(t.position,
|
|
5966
|
-
r = Ln(t.position,
|
|
6017
|
+
let n = Ln(t.position, So, wo, Oo),
|
|
6018
|
+
r = Ln(t.position, bo, No, Lo);
|
|
5967
6019
|
"endComments" in t && t.endComments.length !== 0 && (n(t.endComments[0].position.start), r(q(t.endComments).position.end));
|
|
5968
6020
|
let s = e.filter(i => i !== null);
|
|
5969
6021
|
if (s.length !== 0) {
|
|
@@ -5972,145 +6024,94 @@ function An(t) {
|
|
|
5972
6024
|
n(i.position.start), r(o.position.end), "leadingComments" in i && i.leadingComments.length !== 0 && n(i.leadingComments[0].position.start), "tag" in i && i.tag && n(i.tag.position.start), "anchor" in i && i.anchor && n(i.anchor.position.start), "trailingComment" in o && o.trailingComment && r(o.trailingComment.position.end);
|
|
5973
6025
|
}
|
|
5974
6026
|
}
|
|
5975
|
-
function
|
|
6027
|
+
function So(t) {
|
|
5976
6028
|
return t.start;
|
|
5977
6029
|
}
|
|
5978
|
-
function
|
|
6030
|
+
function wo(t, e) {
|
|
5979
6031
|
t.start = e;
|
|
5980
6032
|
}
|
|
5981
|
-
function
|
|
6033
|
+
function bo(t) {
|
|
5982
6034
|
return t.end;
|
|
5983
6035
|
}
|
|
5984
|
-
function
|
|
6036
|
+
function No(t, e) {
|
|
5985
6037
|
t.end = e;
|
|
5986
6038
|
}
|
|
5987
|
-
function
|
|
6039
|
+
function Oo(t, e) {
|
|
5988
6040
|
return e.offset < t.offset;
|
|
5989
6041
|
}
|
|
5990
|
-
function
|
|
6042
|
+
function Lo(t, e) {
|
|
5991
6043
|
return e.offset > t.offset;
|
|
5992
6044
|
}
|
|
5993
|
-
var
|
|
5994
|
-
var
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
var er =
|
|
6005
|
-
|
|
6006
|
-
|
|
6045
|
+
var wi = sr(Ei());
|
|
6046
|
+
var G = sr(Si());
|
|
6047
|
+
G.default.findPair;
|
|
6048
|
+
G.default.toJSON;
|
|
6049
|
+
G.default.parseMap;
|
|
6050
|
+
G.default.parseSeq;
|
|
6051
|
+
G.default.stringifyNumber;
|
|
6052
|
+
G.default.stringifyString;
|
|
6053
|
+
G.default.Type;
|
|
6054
|
+
G.default.YAMLError;
|
|
6055
|
+
G.default.YAMLReferenceError;
|
|
6056
|
+
var er = G.default.YAMLSemanticError;
|
|
6057
|
+
G.default.YAMLSyntaxError;
|
|
6058
|
+
G.default.YAMLWarning;
|
|
6007
6059
|
var {
|
|
6008
|
-
Document:
|
|
6009
|
-
parseCST:
|
|
6010
|
-
} =
|
|
6011
|
-
function
|
|
6012
|
-
let e =
|
|
6013
|
-
|
|
6014
|
-
let n = e.map(a => new
|
|
6060
|
+
Document: bi,
|
|
6061
|
+
parseCST: Ni
|
|
6062
|
+
} = wi.default;
|
|
6063
|
+
function Oi(t) {
|
|
6064
|
+
let e = Ni(t);
|
|
6065
|
+
Is(e);
|
|
6066
|
+
let n = e.map(a => new bi({
|
|
6015
6067
|
merge: false,
|
|
6016
6068
|
keepCstNodes: true
|
|
6017
6069
|
}).parse(a)),
|
|
6018
|
-
r = new
|
|
6070
|
+
r = new Dr(t),
|
|
6019
6071
|
s = [],
|
|
6020
6072
|
i = {
|
|
6021
6073
|
text: t,
|
|
6022
6074
|
locator: r,
|
|
6023
6075
|
comments: s,
|
|
6024
|
-
transformOffset: a =>
|
|
6025
|
-
transformRange: a =>
|
|
6026
|
-
transformNode: a =>
|
|
6076
|
+
transformOffset: a => ks(a, i),
|
|
6077
|
+
transformRange: a => vs(a, i),
|
|
6078
|
+
transformNode: a => As(a, i),
|
|
6027
6079
|
transformContent: a => kt(a, i)
|
|
6028
6080
|
};
|
|
6029
|
-
for (let a of n) for (let c of a.errors) if (!(c instanceof er && c.message === 'Map keys must be unique; "<<" is repeated')) throw
|
|
6081
|
+
for (let a of n) for (let c of a.errors) if (!(c instanceof er && c.message === 'Map keys must be unique; "<<" is repeated')) throw Cs(c, i);
|
|
6030
6082
|
n.forEach(a => ct(a.cstNode));
|
|
6031
|
-
let o =
|
|
6083
|
+
let o = Fr(i.transformRange({
|
|
6032
6084
|
origStart: 0,
|
|
6033
6085
|
origEnd: i.text.length
|
|
6034
6086
|
}), n.map(i.transformNode), s);
|
|
6035
|
-
return
|
|
6087
|
+
return Yr(o), An(o), On(o), o;
|
|
6036
6088
|
}
|
|
6037
|
-
function
|
|
6089
|
+
function Qa(t, e) {
|
|
6038
6090
|
let n = new SyntaxError(t + " (" + e.loc.start.line + ":" + e.loc.start.column + ")");
|
|
6039
6091
|
return Object.assign(n, e);
|
|
6040
6092
|
}
|
|
6041
|
-
var
|
|
6042
|
-
function
|
|
6093
|
+
var Li = Qa;
|
|
6094
|
+
function Ja(t) {
|
|
6043
6095
|
try {
|
|
6044
|
-
let e =
|
|
6096
|
+
let e = Oi(t);
|
|
6045
6097
|
return delete e.comments, e;
|
|
6046
6098
|
} catch (e) {
|
|
6047
|
-
throw e != null && e.position ?
|
|
6099
|
+
throw e != null && e.position ? Li(e.message, {
|
|
6048
6100
|
loc: e.position,
|
|
6049
6101
|
cause: e
|
|
6050
6102
|
}) : e;
|
|
6051
6103
|
}
|
|
6052
6104
|
}
|
|
6053
|
-
var
|
|
6105
|
+
var Ga = {
|
|
6054
6106
|
astFormat: "yaml",
|
|
6055
|
-
parse:
|
|
6056
|
-
hasPragma:
|
|
6057
|
-
locStart:
|
|
6058
|
-
locEnd:
|
|
6107
|
+
parse: Ja,
|
|
6108
|
+
hasPragma: Sr,
|
|
6109
|
+
locStart: Pe,
|
|
6110
|
+
locEnd: yr
|
|
6059
6111
|
};
|
|
6060
|
-
var
|
|
6061
|
-
|
|
6062
|
-
name: "YAML",
|
|
6063
|
-
type: "data",
|
|
6064
|
-
color: "#cb171e",
|
|
6065
|
-
tmScope: "source.yaml",
|
|
6066
|
-
aliases: ["yml"],
|
|
6067
|
-
extensions: [".yml", ".mir", ".reek", ".rviz", ".sublime-syntax", ".syntax", ".yaml", ".yaml-tmlanguage", ".yaml.sed", ".yml.mysql"],
|
|
6068
|
-
filenames: [".clang-format", ".clang-tidy", ".gemrc", "CITATION.cff", "glide.lock", ".prettierrc", ".stylelintrc", ".lintstagedrc"],
|
|
6069
|
-
aceMode: "yaml",
|
|
6070
|
-
codemirrorMode: "yaml",
|
|
6071
|
-
codemirrorMimeType: "text/x-yaml",
|
|
6072
|
-
parsers: ["yaml"],
|
|
6073
|
-
vscodeLanguageIds: ["yaml", "ansible", "home-assistant"]
|
|
6074
|
-
}];
|
|
6075
|
-
var nn = {
|
|
6076
|
-
bracketSpacing: {
|
|
6077
|
-
category: "Common",
|
|
6078
|
-
type: "boolean",
|
|
6079
|
-
default: true,
|
|
6080
|
-
description: "Print spaces between brackets.",
|
|
6081
|
-
oppositeDescription: "Do not print spaces between brackets."
|
|
6082
|
-
},
|
|
6083
|
-
singleQuote: {
|
|
6084
|
-
category: "Common",
|
|
6085
|
-
type: "boolean",
|
|
6086
|
-
default: false,
|
|
6087
|
-
description: "Use single quotes instead of double quotes."
|
|
6088
|
-
},
|
|
6089
|
-
proseWrap: {
|
|
6090
|
-
category: "Common",
|
|
6091
|
-
type: "choice",
|
|
6092
|
-
default: "preserve",
|
|
6093
|
-
description: "How to wrap prose.",
|
|
6094
|
-
choices: [{
|
|
6095
|
-
value: "always",
|
|
6096
|
-
description: "Wrap prose if it exceeds the print width."
|
|
6097
|
-
}, {
|
|
6098
|
-
value: "never",
|
|
6099
|
-
description: "Do not wrap prose."
|
|
6100
|
-
}, {
|
|
6101
|
-
value: "preserve",
|
|
6102
|
-
description: "Wrap prose as-is."
|
|
6103
|
-
}]
|
|
6104
|
-
}};
|
|
6105
|
-
var Qa = {
|
|
6106
|
-
bracketSpacing: nn.bracketSpacing,
|
|
6107
|
-
singleQuote: nn.singleQuote,
|
|
6108
|
-
proseWrap: nn.proseWrap
|
|
6109
|
-
},
|
|
6110
|
-
Ni = Qa;
|
|
6111
|
-
var Ja = {
|
|
6112
|
-
yaml: vr
|
|
6112
|
+
var Ha = {
|
|
6113
|
+
yaml: Pr
|
|
6113
6114
|
};
|
|
6114
|
-
var
|
|
6115
|
+
var Oh = nr;
|
|
6115
6116
|
|
|
6116
|
-
export {
|
|
6117
|
+
export { Oh as default, _r as languages, xr as options, tr as parsers, Ha as printers };
|