@automattic/vip 4.1.5 → 4.1.6
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/assets/dev-env.lando.template.yml.ejs +6 -2
- package/config/config.local.json +6 -0
- package/dist/bin/vip-config-software-get.js +9 -0
- package/dist/bin/vip-wp.js +128 -39
- package/dist/lib/client-file-uploader.js +34 -5
- package/dist/lib/config/software.js +42 -2
- package/dist/lib/dev-environment/dev-environment-core.js +1 -1
- package/helpers/generate-docs.js +9 -3
- package/node_modules/@apollo/client/CHANGELOG.md +32 -0
- package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/core/cache.d.cts +4 -1
- package/node_modules/@apollo/client/__cjs/cache/core/types/Cache.d.cts +5 -0
- package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.cjs +4 -4
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs +15 -5
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.d.cts +3 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/key-extractor.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs +5 -5
- package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs +28 -10
- package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/types.d.cts +7 -2
- package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs +29 -14
- package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.d.cts +5 -2
- package/node_modules/@apollo/client/__cjs/core/ApolloClient.cjs +14 -14
- package/node_modules/@apollo/client/__cjs/core/ObservableQuery.cjs +8 -8
- package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs +13 -32
- package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs +12 -12
- package/node_modules/@apollo/client/__cjs/core/RefetchEventManager.cjs +3 -3
- package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs +15 -2
- package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.d.cts +5 -1
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs +58 -14
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.d.cts +23 -12
- package/node_modules/@apollo/client/__cjs/incremental/handlers/notImplemented.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/types.d.cts +19 -1
- package/node_modules/@apollo/client/__cjs/invariantErrorCodes.cjs +64 -58
- package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/index.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/index.d.cts +0 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs +24 -26
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.d.cts +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs +24 -20
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.d.cts +1 -1
- package/node_modules/@apollo/client/__cjs/version.cjs +1 -1
- package/node_modules/@apollo/client/cache/core/cache.d.ts +4 -1
- package/node_modules/@apollo/client/cache/core/cache.js +1 -1
- package/node_modules/@apollo/client/cache/core/cache.js.map +1 -1
- package/node_modules/@apollo/client/cache/core/types/Cache.d.ts +5 -0
- package/node_modules/@apollo/client/cache/core/types/Cache.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/entityStore.js +4 -4
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.d.ts +3 -1
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js +15 -5
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/key-extractor.js +1 -1
- package/node_modules/@apollo/client/cache/inmemory/policies.js +5 -5
- package/node_modules/@apollo/client/cache/inmemory/readFromStore.js +28 -10
- package/node_modules/@apollo/client/cache/inmemory/readFromStore.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/types.d.ts +7 -2
- package/node_modules/@apollo/client/cache/inmemory/types.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/writeToStore.d.ts +5 -2
- package/node_modules/@apollo/client/cache/inmemory/writeToStore.js +30 -15
- package/node_modules/@apollo/client/cache/inmemory/writeToStore.js.map +1 -1
- package/node_modules/@apollo/client/core/ApolloClient.js +14 -14
- package/node_modules/@apollo/client/core/ObservableQuery.js +8 -8
- package/node_modules/@apollo/client/core/QueryInfo.js +14 -33
- package/node_modules/@apollo/client/core/QueryInfo.js.map +1 -1
- package/node_modules/@apollo/client/core/QueryManager.js +12 -12
- package/node_modules/@apollo/client/core/RefetchEventManager.js +3 -3
- package/node_modules/@apollo/client/incremental/handlers/defer20220824.d.ts +5 -1
- package/node_modules/@apollo/client/incremental/handlers/defer20220824.js +15 -2
- package/node_modules/@apollo/client/incremental/handlers/defer20220824.js.map +1 -1
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.d.ts +23 -12
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js +58 -14
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js.map +1 -1
- package/node_modules/@apollo/client/incremental/handlers/notImplemented.js +1 -1
- package/node_modules/@apollo/client/incremental/types.d.ts +19 -1
- package/node_modules/@apollo/client/incremental/types.js.map +1 -1
- package/node_modules/@apollo/client/invariantErrorCodes.js +64 -58
- package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js +1 -1
- package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js.map +1 -1
- package/node_modules/@apollo/client/package.json +1 -1
- package/node_modules/@apollo/client/utilities/internal/index.d.ts +0 -1
- package/node_modules/@apollo/client/utilities/internal/index.js.map +1 -1
- package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.d.ts +1 -1
- package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js +23 -25
- package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js.map +1 -1
- package/node_modules/@apollo/client/utilities/internal/isStreamField.d.ts +1 -1
- package/node_modules/@apollo/client/utilities/internal/isStreamField.js +23 -19
- package/node_modules/@apollo/client/utilities/internal/isStreamField.js.map +1 -1
- package/node_modules/@apollo/client/version.js +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/crypto.d.ts +2 -2
- package/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/util.d.ts +6 -3
- package/node_modules/@types/node/zlib.d.ts +6 -0
- package/node_modules/axios/CHANGELOG.md +62 -0
- package/node_modules/axios/README.md +297 -5
- package/node_modules/axios/dist/axios.js +728 -170
- package/node_modules/axios/dist/axios.min.js +3 -3
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +871 -188
- package/node_modules/axios/dist/esm/axios.js +871 -188
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +1037 -225
- package/node_modules/axios/index.d.cts +102 -74
- package/node_modules/axios/index.d.ts +100 -68
- package/node_modules/axios/lib/adapters/fetch.js +64 -11
- package/node_modules/axios/lib/adapters/http.js +140 -67
- package/node_modules/axios/lib/adapters/xhr.js +52 -3
- package/node_modules/axios/lib/core/Axios.js +43 -20
- package/node_modules/axios/lib/core/AxiosError.js +33 -2
- package/node_modules/axios/lib/core/AxiosHeaders.js +124 -1
- package/node_modules/axios/lib/core/InterceptorManager.js +107 -8
- package/node_modules/axios/lib/core/buildFullPath.js +41 -15
- package/node_modules/axios/lib/core/dispatchRequest.js +8 -2
- package/node_modules/axios/lib/core/mergeConfig.js +19 -4
- package/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/axios/lib/defaults/index.js +2 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/Http2Sessions.js +2 -0
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +12 -1
- package/node_modules/axios/lib/helpers/combineURLs.js +11 -3
- package/node_modules/axios/lib/helpers/composeSignals.js +12 -1
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +115 -54
- package/node_modules/axios/lib/helpers/formDataToJSON.js +11 -5
- package/node_modules/axios/lib/helpers/fromDataURI.js +5 -4
- package/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +5 -3
- package/node_modules/axios/lib/helpers/progressEventReducer.js +4 -4
- package/node_modules/axios/lib/helpers/resolveConfig.js +5 -17
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +300 -5
- package/node_modules/axios/lib/helpers/throttle.js +3 -2
- package/node_modules/axios/lib/helpers/toFormData.js +17 -23
- package/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/axios/lib/utils.js +151 -18
- package/node_modules/axios/package.json +21 -19
- package/node_modules/chalk/package.json +1 -1
- package/node_modules/chalk/source/index.js +2 -1
- package/node_modules/cpu-features/build/config.gypi +2 -2
- package/node_modules/ejs/README.md +64 -28
- package/node_modules/ejs/bin/cli.js +220 -158
- package/node_modules/ejs/ejs.js +64 -94
- package/node_modules/ejs/ejs.min.js +1 -1
- package/node_modules/ejs/jakefile.js +44 -0
- package/node_modules/ejs/lib/cjs/ejs.js +64 -63
- package/node_modules/ejs/lib/cjs/parseargs.js +129 -77
- package/node_modules/ejs/lib/cjs/utils.js +0 -31
- package/node_modules/ejs/lib/esm/ejs.js +66 -65
- package/node_modules/ejs/lib/esm/parseargs.js +136 -82
- package/node_modules/ejs/lib/esm/utils.js +0 -32
- package/node_modules/ejs/package.json +3 -2
- package/node_modules/ejs/usage.txt +9 -9
- package/node_modules/follow-redirects/index.js +10 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/graphql-ws/dist/client.cjs +28 -13
- package/node_modules/graphql-ws/dist/client.js +28 -13
- package/node_modules/graphql-ws/dist/index.cjs +1 -1
- package/node_modules/graphql-ws/dist/index.d.cts +1 -1
- package/node_modules/graphql-ws/dist/index.d.ts +1 -1
- package/node_modules/graphql-ws/dist/index.js +1 -1
- package/node_modules/graphql-ws/dist/{server-B8ZBs9OC.d.ts → server-BzBeHlSW.d.ts} +26 -1
- package/node_modules/graphql-ws/dist/{server-DN5-9C2B.cjs → server-Ce-Z86Ys.cjs} +10 -4
- package/node_modules/graphql-ws/dist/{server-ChpuX357.d.cts → server-u6zrlwzL.d.cts} +26 -1
- package/node_modules/graphql-ws/dist/{server-DHPI7HHW.js → server-zBhvXJ_Z.js} +10 -4
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.cjs +2 -2
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.d.cts +8 -2
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.d.ts +8 -2
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.js +2 -2
- package/node_modules/graphql-ws/dist/use/bun.cjs +1 -1
- package/node_modules/graphql-ws/dist/use/bun.d.cts +2 -2
- package/node_modules/graphql-ws/dist/use/bun.d.ts +2 -2
- package/node_modules/graphql-ws/dist/use/bun.js +2 -2
- package/node_modules/graphql-ws/dist/use/crossws.cjs +16 -4
- package/node_modules/graphql-ws/dist/use/crossws.d.cts +6 -1
- package/node_modules/graphql-ws/dist/use/crossws.d.ts +6 -1
- package/node_modules/graphql-ws/dist/use/crossws.js +16 -4
- package/node_modules/graphql-ws/dist/use/deno.d.ts +1 -1
- package/node_modules/graphql-ws/dist/use/deno.js +1 -1
- package/node_modules/graphql-ws/dist/use/uWebSockets.cjs +2 -2
- package/node_modules/graphql-ws/dist/use/uWebSockets.d.cts +8 -2
- package/node_modules/graphql-ws/dist/use/uWebSockets.d.ts +8 -2
- package/node_modules/graphql-ws/dist/use/uWebSockets.js +2 -2
- package/node_modules/graphql-ws/dist/use/ws.cjs +2 -2
- package/node_modules/graphql-ws/dist/use/ws.d.cts +8 -2
- package/node_modules/graphql-ws/dist/use/ws.d.ts +8 -2
- package/node_modules/graphql-ws/dist/use/ws.js +2 -2
- package/node_modules/graphql-ws/package.json +3 -3
- package/node_modules/graphql-ws/umd/graphql-ws.js +28 -13
- package/node_modules/graphql-ws/umd/graphql-ws.min.js +1 -1
- package/node_modules/graphql-ws/umd/graphql-ws.min.js.gz +0 -0
- package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs +522 -495
- package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs.map +1 -1
- package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js +24 -24
- package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.cjs.js +135 -78
- package/node_modules/js-yaml/dist/js-yaml.cjs.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.mjs +129 -72
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
- package/node_modules/js-yaml/node_modules/argparse/LICENSE +47 -0
- package/node_modules/js-yaml/node_modules/argparse/README.md +89 -0
- package/node_modules/js-yaml/node_modules/argparse/lib/_colorize.js +72 -0
- package/node_modules/js-yaml/node_modules/argparse/lib/argparse.d.ts +292 -0
- package/node_modules/{argparse → js-yaml/node_modules/argparse/lib}/argparse.js +1142 -1029
- package/node_modules/js-yaml/node_modules/argparse/lib/difflib.js +190 -0
- package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/sub.js +4 -4
- package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/textwrap.js +28 -28
- package/node_modules/js-yaml/node_modules/argparse/package.json +38 -0
- package/node_modules/js-yaml/package.json +12 -12
- package/node_modules/lando/.github/dependabot.yml +4 -0
- package/node_modules/lando/.github/workflows/build-util-images.yml +1 -1
- package/node_modules/lando/.github/workflows/pr-core-tests.yml +4 -2
- package/node_modules/lando/.github/workflows/pr-db-tools-tests.yml +4 -2
- package/node_modules/lando/.github/workflows/pr-django-tests.yml +4 -2
- package/node_modules/lando/.github/workflows/pr-linter.yml +2 -2
- package/node_modules/lando/.github/workflows/pr-unit-tests.yml +2 -2
- package/node_modules/lando/.node-version +1 -1
- package/node_modules/lando/bin/lando.js +3 -83
- package/node_modules/lando/config.yml +0 -1
- package/node_modules/lando/eslint.config.mjs +4 -0
- package/node_modules/lando/examples/django/.lando.yml +1 -1
- package/node_modules/lando/examples/django/README.md +1 -1
- package/node_modules/lando/examples/django/requirements.txt +1 -1
- package/node_modules/lando/examples/sql-export/README.md +5 -0
- package/node_modules/lando/lib/app.js +78 -84
- package/node_modules/lando/lib/art.js +86 -30
- package/node_modules/lando/lib/bootstrap.js +148 -45
- package/node_modules/lando/lib/cache.js +14 -15
- package/node_modules/lando/lib/cli.js +67 -63
- package/node_modules/lando/lib/compose.js +76 -45
- package/node_modules/lando/lib/config.js +51 -33
- package/node_modules/lando/lib/daemon.js +27 -10
- package/node_modules/lando/lib/docker.js +46 -19
- package/node_modules/lando/lib/engine.js +131 -144
- package/node_modules/lando/lib/env.js +25 -46
- package/node_modules/lando/lib/error.js +15 -6
- package/node_modules/lando/lib/esm/package.json +3 -0
- package/node_modules/lando/lib/esm/string-argv.js +2 -0
- package/node_modules/lando/lib/esm/yargs.js +2 -0
- package/node_modules/lando/lib/events.js +15 -15
- package/node_modules/lando/lib/factory.js +43 -14
- package/node_modules/lando/lib/formatters.js +19 -31
- package/node_modules/lando/lib/lando.js +59 -48
- package/node_modules/lando/lib/logger.js +12 -24
- package/node_modules/lando/lib/plugins.js +27 -15
- package/node_modules/lando/lib/promise.js +17 -17
- package/node_modules/lando/lib/router.js +75 -21
- package/node_modules/lando/lib/scan.js +29 -12
- package/node_modules/lando/lib/shell.js +44 -20
- package/node_modules/lando/lib/user.js +14 -20
- package/node_modules/lando/lib/utils.js +87 -44
- package/node_modules/lando/lib/yaml.js +11 -9
- package/node_modules/lando/node_modules/ansi-regex/index.d.ts +33 -0
- package/node_modules/lando/node_modules/ansi-regex/index.js +15 -0
- package/node_modules/lando/node_modules/ansi-regex/package.json +61 -0
- package/node_modules/lando/node_modules/ansi-regex/readme.md +66 -0
- package/node_modules/lando/node_modules/cliui/README.md +26 -6
- package/node_modules/lando/node_modules/cliui/build/lib/index.js +2 -2
- package/node_modules/lando/node_modules/cliui/build/tsconfig.tsbuildinfo +1 -0
- package/node_modules/lando/node_modules/cliui/index.mjs +7 -5
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/index.d.ts +39 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/index.js +82 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/license +9 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/package.json +64 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/readme.md +66 -0
- package/node_modules/lando/node_modules/cliui/package.json +21 -32
- package/node_modules/lando/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/lando/node_modules/emoji-regex/README.md +107 -0
- package/node_modules/lando/node_modules/emoji-regex/index.d.ts +3 -0
- package/node_modules/lando/node_modules/emoji-regex/index.js +4 -0
- package/node_modules/lando/node_modules/emoji-regex/index.mjs +4 -0
- package/node_modules/lando/node_modules/emoji-regex/package.json +45 -0
- package/node_modules/lando/node_modules/string-width/index.d.ts +39 -0
- package/node_modules/lando/node_modules/string-width/index.js +203 -0
- package/node_modules/lando/node_modules/string-width/license +9 -0
- package/node_modules/lando/node_modules/string-width/package.json +65 -0
- package/node_modules/lando/node_modules/string-width/readme.md +66 -0
- package/node_modules/lando/node_modules/strip-ansi/index.d.ts +15 -0
- package/node_modules/lando/node_modules/strip-ansi/index.js +19 -0
- package/node_modules/lando/node_modules/strip-ansi/license +9 -0
- package/node_modules/lando/node_modules/strip-ansi/package.json +59 -0
- package/node_modules/lando/node_modules/strip-ansi/readme.md +37 -0
- package/node_modules/lando/node_modules/yargs/README.md +16 -36
- package/node_modules/lando/node_modules/yargs/browser.d.ts +5 -0
- package/node_modules/lando/node_modules/yargs/browser.mjs +2 -2
- package/node_modules/lando/node_modules/yargs/build/lib/command.js +308 -211
- package/node_modules/lando/node_modules/yargs/build/lib/completion-templates.js +28 -9
- package/node_modules/lando/node_modules/yargs/build/lib/completion.js +233 -91
- package/node_modules/lando/node_modules/yargs/build/lib/middleware.js +51 -16
- package/node_modules/lando/node_modules/yargs/build/lib/usage.js +88 -52
- package/node_modules/lando/node_modules/yargs/build/lib/utils/apply-extends.js +4 -2
- package/node_modules/lando/node_modules/yargs/build/lib/utils/levenshtein.js +9 -1
- package/node_modules/lando/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
- package/node_modules/lando/node_modules/yargs/build/lib/validation.js +51 -54
- package/node_modules/lando/node_modules/yargs/build/lib/yargs-factory.js +1261 -887
- package/node_modules/lando/node_modules/yargs/build/lib/yerror.js +3 -1
- package/node_modules/lando/node_modules/yargs/index.mjs +4 -2
- package/node_modules/lando/node_modules/yargs/lib/platform-shims/browser.mjs +9 -2
- package/node_modules/lando/node_modules/yargs/lib/platform-shims/esm.mjs +22 -22
- package/node_modules/lando/node_modules/yargs/locales/cs.json +51 -0
- package/node_modules/lando/node_modules/yargs/locales/de.json +1 -1
- package/node_modules/lando/node_modules/yargs/locales/en.json +4 -0
- package/node_modules/lando/node_modules/yargs/locales/fi.json +1 -1
- package/node_modules/lando/node_modules/yargs/locales/he.json +55 -0
- package/node_modules/lando/node_modules/yargs/locales/ka.json +55 -0
- package/node_modules/lando/node_modules/yargs/locales/ko.json +25 -25
- package/node_modules/lando/node_modules/yargs/locales/ru.json +6 -1
- package/node_modules/lando/node_modules/yargs/locales/uk_UA.json +51 -0
- package/node_modules/lando/node_modules/yargs/locales/uz.json +52 -0
- package/node_modules/lando/node_modules/yargs/locales/zh_TW.json +50 -46
- package/node_modules/lando/node_modules/yargs/package.json +41 -60
- package/node_modules/lando/node_modules/yargs-parser/build/lib/index.js +13 -8
- package/node_modules/lando/node_modules/yargs-parser/build/lib/yargs-parser.js +21 -12
- package/node_modules/lando/node_modules/yargs-parser/package.json +31 -40
- package/node_modules/lando/package.json +59 -22
- package/node_modules/lando/plugins/lando-compose/index.js +4 -0
- package/node_modules/lando/plugins/lando-compose/lib/utils.js +16 -7
- package/node_modules/lando/plugins/lando-core/index.js +1 -2
- package/node_modules/lando/plugins/lando-core/lib/utils.js +35 -15
- package/node_modules/lando/plugins/lando-core/lib/warnings.js +27 -0
- package/node_modules/lando/plugins/lando-core/tasks/destroy.js +1 -1
- package/node_modules/lando/plugins/lando-core/tasks/rebuild.js +1 -1
- package/node_modules/lando/plugins/lando-events/index.js +4 -0
- package/node_modules/lando/plugins/lando-events/lib/utils.js +27 -6
- package/node_modules/lando/plugins/lando-networking/app.js +2 -2
- package/node_modules/lando/plugins/lando-networking/index.js +9 -2
- package/node_modules/lando/plugins/lando-networking/test/app.spec.js +87 -0
- package/node_modules/lando/plugins/lando-proxy/index.js +6 -1
- package/node_modules/lando/plugins/lando-proxy/lib/utils.js +63 -28
- package/node_modules/lando/plugins/lando-proxy/lib/warnings.js +10 -0
- package/node_modules/lando/plugins/lando-recipes/index.js +4 -0
- package/node_modules/lando/plugins/lando-recipes/lib/build.js +22 -4
- package/node_modules/lando/plugins/lando-recipes/lib/options.js +42 -66
- package/node_modules/lando/plugins/lando-recipes/lib/utils.js +30 -13
- package/node_modules/lando/plugins/lando-recipes/lib/warnings.js +5 -0
- package/node_modules/lando/plugins/lando-recipes/sources/remote.js +0 -26
- package/node_modules/lando/plugins/lando-recipes/tasks/init.js +1 -1
- package/node_modules/lando/plugins/lando-services/index.js +4 -0
- package/node_modules/lando/plugins/lando-services/lib/utils.js +38 -15
- package/node_modules/lando/plugins/lando-sharing/index.js +4 -0
- package/node_modules/lando/plugins/lando-sharing/lib/utils.js +28 -5
- package/node_modules/lando/plugins/lando-tooling/index.js +5 -0
- package/node_modules/lando/plugins/lando-tooling/lib/build.js +5 -2
- package/node_modules/lando/plugins/lando-tooling/lib/utils.js +83 -47
- package/node_modules/lando/test/cli.spec.js +59 -21
- package/node_modules/lando/test/docker.spec.js +24 -28
- package/node_modules/lando/test/env.spec.js +8 -0
- package/node_modules/lando/test/error.spec.js +1 -1
- package/node_modules/lando/test/events.spec.js +6 -7
- package/node_modules/lando/test/lando.spec.js +1 -1
- package/node_modules/lando/test/plugins.spec.js +2 -3
- package/node_modules/lando/test/promise.spec.js +1 -1
- package/node_modules/lando/test/scan.spec.js +1 -1
- package/node_modules/lando/test/shell.spec.js +19 -2
- package/node_modules/lando/test/utils.spec.js +52 -0
- package/node_modules/open/index.js +3 -5
- package/node_modules/open/package.json +1 -1
- package/node_modules/string-argv/CHANGELOG.md +38 -0
- package/node_modules/string-argv/README.md +96 -50
- package/node_modules/string-argv/index.d.ts +2 -0
- package/node_modules/string-argv/index.js +55 -35
- package/node_modules/string-argv/package.json +50 -40
- package/node_modules/undici/README.md +25 -3
- package/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
- package/node_modules/undici/docs/docs/api/Client.md +11 -6
- package/node_modules/undici/docs/docs/api/Dispatcher.md +3 -0
- package/node_modules/undici/docs/docs/api/Errors.md +76 -1
- package/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
- package/node_modules/undici/docs/docs/api/Interceptors.md +13 -6
- package/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
- package/node_modules/undici/docs/docs/index.md +12 -12
- package/node_modules/undici/docs/docs/type-map.json +66 -66
- package/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
- package/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
- package/node_modules/undici/lib/core/connect.js +10 -4
- package/node_modules/undici/lib/core/constants.js +12 -1
- package/node_modules/undici/lib/core/errors.js +38 -1
- package/node_modules/undici/lib/core/request.js +16 -1
- package/node_modules/undici/lib/core/symbols.js +2 -0
- package/node_modules/undici/lib/core/util.js +26 -1
- package/node_modules/undici/lib/dispatcher/agent.js +6 -2
- package/node_modules/undici/lib/dispatcher/client-h1.js +116 -80
- package/node_modules/undici/lib/dispatcher/client-h2.js +46 -14
- package/node_modules/undici/lib/dispatcher/client.js +4 -1
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
- package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
- package/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
- package/node_modules/undici/lib/dispatcher/pool-base.js +65 -28
- package/node_modules/undici/lib/dispatcher/pool.js +11 -8
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -8
- package/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
- package/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
- package/node_modules/undici/lib/handler/cache-handler.js +153 -15
- package/node_modules/undici/lib/handler/deduplication-handler.js +112 -51
- package/node_modules/undici/lib/handler/redirect-handler.js +28 -8
- package/node_modules/undici/lib/handler/retry-handler.js +44 -11
- package/node_modules/undici/lib/interceptor/cache.js +11 -3
- package/node_modules/undici/lib/interceptor/decompress.js +22 -9
- package/node_modules/undici/lib/interceptor/dns.js +11 -0
- package/node_modules/undici/lib/interceptor/response-error.js +72 -28
- package/node_modules/undici/lib/milo/LICENSE.md +7 -0
- package/node_modules/undici/lib/milo/no-simd.js +1002 -0
- package/node_modules/undici/lib/milo/simd.js +1002 -0
- package/node_modules/undici/lib/mock/mock-agent.js +11 -0
- package/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
- package/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
- package/node_modules/undici/lib/util/cache.js +11 -5
- package/node_modules/undici/lib/web/cookies/util.js +19 -2
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
- package/node_modules/undici/lib/web/eventsource/eventsource.js +25 -2
- package/node_modules/undici/lib/web/fetch/body.js +47 -38
- package/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
- package/node_modules/undici/lib/web/fetch/headers.js +2 -2
- package/node_modules/undici/lib/web/fetch/index.js +8 -4
- package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
- package/node_modules/undici/lib/web/websocket/receiver.js +25 -4
- package/node_modules/undici/package.json +7 -5
- package/node_modules/undici/types/cache-interceptor.d.ts +10 -0
- package/node_modules/undici/types/client.d.ts +10 -4
- package/node_modules/undici/types/errors.d.ts +16 -1
- package/node_modules/undici/types/h2c-client.d.ts +1 -1
- package/node_modules/undici/types/interceptors.d.ts +6 -1
- package/node_modules/{lando/node_modules/js-yaml → unicode-segmenter}/LICENSE +6 -6
- package/node_modules/unicode-segmenter/README.md +324 -0
- package/node_modules/unicode-segmenter/_emoji_data.cjs +24 -0
- package/node_modules/unicode-segmenter/_emoji_data.d.cts +1 -0
- package/node_modules/unicode-segmenter/_emoji_data.d.ts +12 -0
- package/node_modules/unicode-segmenter/_emoji_data.js +26 -0
- package/node_modules/unicode-segmenter/_general_data.cjs +30 -0
- package/node_modules/unicode-segmenter/_general_data.d.cts +1 -0
- package/node_modules/unicode-segmenter/_general_data.d.ts +16 -0
- package/node_modules/unicode-segmenter/_general_data.js +34 -0
- package/node_modules/unicode-segmenter/_grapheme_data.cjs +125 -0
- package/node_modules/unicode-segmenter/_grapheme_data.d.cts +1 -0
- package/node_modules/unicode-segmenter/_grapheme_data.d.ts +112 -0
- package/node_modules/unicode-segmenter/_grapheme_data.js +123 -0
- package/node_modules/unicode-segmenter/core.cjs +135 -0
- package/node_modules/unicode-segmenter/core.d.cts +1 -0
- package/node_modules/unicode-segmenter/core.d.ts +118 -0
- package/node_modules/unicode-segmenter/core.js +129 -0
- package/node_modules/unicode-segmenter/emoji.cjs +43 -0
- package/node_modules/unicode-segmenter/emoji.d.cts +1 -0
- package/node_modules/unicode-segmenter/emoji.d.ts +23 -0
- package/node_modules/unicode-segmenter/emoji.js +42 -0
- package/node_modules/unicode-segmenter/general.cjs +51 -0
- package/node_modules/unicode-segmenter/general.d.cts +1 -0
- package/node_modules/unicode-segmenter/general.d.ts +26 -0
- package/node_modules/unicode-segmenter/general.js +50 -0
- package/node_modules/unicode-segmenter/grapheme.cjs +405 -0
- package/node_modules/unicode-segmenter/grapheme.d.cts +1 -0
- package/node_modules/unicode-segmenter/grapheme.d.ts +64 -0
- package/node_modules/unicode-segmenter/grapheme.js +438 -0
- package/node_modules/unicode-segmenter/index.cjs +26 -0
- package/node_modules/unicode-segmenter/index.d.cts +1 -0
- package/node_modules/unicode-segmenter/index.d.ts +4 -0
- package/node_modules/unicode-segmenter/index.js +6 -0
- package/node_modules/unicode-segmenter/intl-adapter.cjs +124 -0
- package/node_modules/unicode-segmenter/intl-adapter.d.cts +1 -0
- package/node_modules/unicode-segmenter/intl-adapter.d.ts +62 -0
- package/node_modules/unicode-segmenter/intl-adapter.js +113 -0
- package/node_modules/unicode-segmenter/intl-polyfill.cjs +17 -0
- package/node_modules/unicode-segmenter/intl-polyfill.d.cts +1 -0
- package/node_modules/unicode-segmenter/intl-polyfill.d.ts +1 -0
- package/node_modules/unicode-segmenter/intl-polyfill.js +16 -0
- package/node_modules/unicode-segmenter/package.json +165 -0
- package/node_modules/unicode-segmenter/utils.cjs +99 -0
- package/node_modules/unicode-segmenter/utils.d.cts +1 -0
- package/node_modules/unicode-segmenter/utils.d.ts +64 -0
- package/node_modules/unicode-segmenter/utils.js +89 -0
- package/package.json +6 -6
- package/.buildkite/build-linux.sh +0 -68
- package/.buildkite/build-macos-installer.sh +0 -34
- package/.buildkite/build-macos.sh +0 -67
- package/.buildkite/build-windows-installer.ps1 +0 -65
- package/.buildkite/build-windows.ps1 +0 -59
- package/.buildkite/fetch-search-replace.sh +0 -65
- package/.buildkite/pack-release.sh +0 -26
- package/.buildkite/pipeline.yml +0 -81
- package/.buildkite/shared-pipeline-vars +0 -16
- package/.buildkite/sign-windows.ps1 +0 -21
- package/.buildkite/test-windows-installer-download.ps1 +0 -54
- package/.buildkite/test_pipeline.py +0 -69
- package/.bundle/config +0 -4
- package/.editorconfig +0 -11
- package/.prettierignore +0 -13
- package/.ruby-version +0 -1
- package/.sonarcloud.properties +0 -2
- package/.xcode-version +0 -1
- package/AGENTS.md +0 -101
- package/CLAUDE.md +0 -4
- package/Gemfile +0 -8
- package/Gemfile.lock +0 -377
- package/Makefile +0 -293
- package/cmd/installer-payload/main.go +0 -19
- package/cmd/installer-version/main.go +0 -22
- package/cmd/stamp-version/main.go +0 -25
- package/cmd/vip-next/auth_bootstrap.go +0 -139
- package/cmd/vip-next/auth_bootstrap_test.go +0 -379
- package/cmd/vip-next/auth_bypass_wiring_test.go +0 -162
- package/cmd/vip-next/cli_error_hook_test.go +0 -91
- package/cmd/vip-next/commands/app.go +0 -23
- package/cmd/vip-next/commands/app_debug_test.go +0 -89
- package/cmd/vip-next/commands/app_deploy.go +0 -217
- package/cmd/vip-next/commands/app_deploy_test.go +0 -297
- package/cmd/vip-next/commands/app_deploy_validate.go +0 -58
- package/cmd/vip-next/commands/app_get.go +0 -293
- package/cmd/vip-next/commands/app_get_test.go +0 -226
- package/cmd/vip-next/commands/app_list.go +0 -93
- package/cmd/vip-next/commands/app_list_test.go +0 -95
- package/cmd/vip-next/commands/backup.go +0 -16
- package/cmd/vip-next/commands/backup_db.go +0 -137
- package/cmd/vip-next/commands/backup_db_test.go +0 -187
- package/cmd/vip-next/commands/cache.go +0 -16
- package/cmd/vip-next/commands/cache_purge_url.go +0 -90
- package/cmd/vip-next/commands/cache_purge_url_test.go +0 -154
- package/cmd/vip-next/commands/config.go +0 -17
- package/cmd/vip-next/commands/config_debug_test.go +0 -137
- package/cmd/vip-next/commands/config_envvar.go +0 -16
- package/cmd/vip-next/commands/config_envvar_delete.go +0 -135
- package/cmd/vip-next/commands/config_envvar_delete_test.go +0 -140
- package/cmd/vip-next/commands/config_envvar_get.go +0 -72
- package/cmd/vip-next/commands/config_envvar_get_all.go +0 -58
- package/cmd/vip-next/commands/config_envvar_get_all_test.go +0 -83
- package/cmd/vip-next/commands/config_envvar_get_test.go +0 -79
- package/cmd/vip-next/commands/config_envvar_list.go +0 -70
- package/cmd/vip-next/commands/config_envvar_list_test.go +0 -134
- package/cmd/vip-next/commands/config_envvar_set.go +0 -162
- package/cmd/vip-next/commands/config_envvar_set_test.go +0 -251
- package/cmd/vip-next/commands/config_software.go +0 -229
- package/cmd/vip-next/commands/config_software_test.go +0 -161
- package/cmd/vip-next/commands/config_software_update.go +0 -270
- package/cmd/vip-next/commands/config_software_update_test.go +0 -334
- package/cmd/vip-next/commands/db.go +0 -16
- package/cmd/vip-next/commands/db_phpmyadmin.go +0 -122
- package/cmd/vip-next/commands/db_phpmyadmin_test.go +0 -277
- package/cmd/vip-next/commands/defensive_mode.go +0 -106
- package/cmd/vip-next/commands/defensive_mode_configure.go +0 -150
- package/cmd/vip-next/commands/defensive_mode_disable.go +0 -62
- package/cmd/vip-next/commands/defensive_mode_enable.go +0 -62
- package/cmd/vip-next/commands/defensive_mode_test.go +0 -389
- package/cmd/vip-next/commands/devenv.go +0 -49
- package/cmd/vip-next/commands/devenv_create_appinfo.go +0 -158
- package/cmd/vip-next/commands/devenv_create_appinfo_test.go +0 -29
- package/cmd/vip-next/commands/devenv_create_test.go +0 -269
- package/cmd/vip-next/commands/devenv_data.go +0 -86
- package/cmd/vip-next/commands/devenv_data_confirm_test.go +0 -49
- package/cmd/vip-next/commands/devenv_debug_test.go +0 -34
- package/cmd/vip-next/commands/devenv_e2e_gate_test.go +0 -17
- package/cmd/vip-next/commands/devenv_e2e_test.go +0 -34
- package/cmd/vip-next/commands/devenv_envvar.go +0 -186
- package/cmd/vip-next/commands/devenv_envvar_test.go +0 -183
- package/cmd/vip-next/commands/devenv_exec.go +0 -75
- package/cmd/vip-next/commands/devenv_exec_test.go +0 -39
- package/cmd/vip-next/commands/devenv_flag_grammar_test.go +0 -241
- package/cmd/vip-next/commands/devenv_lifecycle.go +0 -785
- package/cmd/vip-next/commands/devenv_logs.go +0 -29
- package/cmd/vip-next/commands/devenv_resolve.go +0 -118
- package/cmd/vip-next/commands/devenv_resolve_test.go +0 -221
- package/cmd/vip-next/commands/devenv_sync.go +0 -256
- package/cmd/vip-next/commands/devenv_sync_sites.go +0 -116
- package/cmd/vip-next/commands/devenv_sync_sites_test.go +0 -151
- package/cmd/vip-next/commands/devenv_sync_test.go +0 -63
- package/cmd/vip-next/commands/devenv_telemetry.go +0 -265
- package/cmd/vip-next/commands/devenv_telemetry_test.go +0 -322
- package/cmd/vip-next/commands/devenv_test.go +0 -60
- package/cmd/vip-next/commands/devenv_update.go +0 -207
- package/cmd/vip-next/commands/devenv_update_test.go +0 -109
- package/cmd/vip-next/commands/devenv_versions_proxy_test.go +0 -133
- package/cmd/vip-next/commands/edge_workers.go +0 -197
- package/cmd/vip-next/commands/edge_workers_flags.go +0 -56
- package/cmd/vip-next/commands/edge_workers_local.go +0 -127
- package/cmd/vip-next/commands/edge_workers_mutation.go +0 -130
- package/cmd/vip-next/commands/edge_workers_read.go +0 -103
- package/cmd/vip-next/commands/edge_workers_test.go +0 -272
- package/cmd/vip-next/commands/export.go +0 -16
- package/cmd/vip-next/commands/export_sql.go +0 -333
- package/cmd/vip-next/commands/export_sql_test.go +0 -321
- package/cmd/vip-next/commands/format_env.go +0 -17
- package/cmd/vip-next/commands/import.go +0 -19
- package/cmd/vip-next/commands/import_debug_test.go +0 -110
- package/cmd/vip-next/commands/import_media.go +0 -433
- package/cmd/vip-next/commands/import_media_abort.go +0 -76
- package/cmd/vip-next/commands/import_media_confirm.go +0 -83
- package/cmd/vip-next/commands/import_media_confirm_test.go +0 -249
- package/cmd/vip-next/commands/import_media_fetch_test.go +0 -98
- package/cmd/vip-next/commands/import_media_status.go +0 -58
- package/cmd/vip-next/commands/import_media_test.go +0 -370
- package/cmd/vip-next/commands/import_sql.go +0 -1161
- package/cmd/vip-next/commands/import_sql_status.go +0 -67
- package/cmd/vip-next/commands/import_sql_test.go +0 -746
- package/cmd/vip-next/commands/import_validate_files.go +0 -157
- package/cmd/vip-next/commands/import_validate_files_test.go +0 -157
- package/cmd/vip-next/commands/import_validate_sql.go +0 -207
- package/cmd/vip-next/commands/import_validate_sql_test.go +0 -293
- package/cmd/vip-next/commands/login.go +0 -53
- package/cmd/vip-next/commands/login_test.go +0 -25
- package/cmd/vip-next/commands/logout.go +0 -43
- package/cmd/vip-next/commands/logout_test.go +0 -158
- package/cmd/vip-next/commands/logs.go +0 -169
- package/cmd/vip-next/commands/logs_test.go +0 -174
- package/cmd/vip-next/commands/nodeflag_aliases.go +0 -59
- package/cmd/vip-next/commands/progress_renderer.go +0 -118
- package/cmd/vip-next/commands/progress_renderer_test.go +0 -28
- package/cmd/vip-next/commands/searchreplace.go +0 -75
- package/cmd/vip-next/commands/searchreplace_debug_test.go +0 -82
- package/cmd/vip-next/commands/searchreplace_test.go +0 -155
- package/cmd/vip-next/commands/slowlogs.go +0 -167
- package/cmd/vip-next/commands/slowlogs_test.go +0 -159
- package/cmd/vip-next/commands/sqlreport.go +0 -183
- package/cmd/vip-next/commands/sqlreport_test.go +0 -66
- package/cmd/vip-next/commands/sync.go +0 -189
- package/cmd/vip-next/commands/sync_confirm.go +0 -121
- package/cmd/vip-next/commands/sync_confirm_test.go +0 -202
- package/cmd/vip-next/commands/sync_render.go +0 -207
- package/cmd/vip-next/commands/sync_render_test.go +0 -101
- package/cmd/vip-next/commands/sync_test.go +0 -148
- package/cmd/vip-next/commands/update.go +0 -85
- package/cmd/vip-next/commands/update_test.go +0 -49
- package/cmd/vip-next/commands/whoami.go +0 -161
- package/cmd/vip-next/commands/whoami_debug_test.go +0 -79
- package/cmd/vip-next/commands/whoami_test.go +0 -85
- package/cmd/vip-next/commands/wp.go +0 -376
- package/cmd/vip-next/commands/wp_debug_test.go +0 -32
- package/cmd/vip-next/commands/wp_test.go +0 -276
- package/cmd/vip-next/debug_args.go +0 -63
- package/cmd/vip-next/debug_test.go +0 -122
- package/cmd/vip-next/edge_workers_test.go +0 -108
- package/cmd/vip-next/flags_node_parity_test.go +0 -434
- package/cmd/vip-next/main.go +0 -391
- package/cmd/vip-next/main_test.go +0 -202
- package/cmd/vip-next/pendo_wiring_test.go +0 -148
- package/cmd/vip-next/root.go +0 -211
- package/cmd/vip-next/update_bootstrap.go +0 -94
- package/cmd/vip-next/update_bootstrap_test.go +0 -85
- package/cmd/vip-next/update_integration_test.go +0 -137
- package/cmd/vip-next-prerelease/main.go +0 -108
- package/cmd/vip-next-prerelease/main_test.go +0 -46
- package/docs/ARCHITECTURE.md +0 -95
- package/docs/BUILD-SIGNING.md +0 -501
- package/docs/CHANGELOG.md +0 -1844
- package/docs/COMMANDER-MIGRATION.md +0 -45
- package/docs/CONTRIBUTING.md +0 -29
- package/docs/CUTOVER-BREAKING-CHANGES.md +0 -261
- package/docs/DEBUGGING.md +0 -94
- package/docs/EDGE-WORKERS.md +0 -256
- package/docs/GO-UPDATES.md +0 -97
- package/docs/NPM-RELEASE-RECOVERY.md +0 -47
- package/docs/RELEASING.md +0 -211
- package/docs/SECURITY.md +0 -9
- package/docs/SETUP.md +0 -154
- package/docs/TESTING.md +0 -67
- package/docs/decisions/0001-operation-scoped-elevated-token-reuse.md +0 -87
- package/docs/dev-env-windows-wsl-testing.md +0 -191
- package/docs/vip-next-vip-command-reference.md +0 -257
- package/docs/vip-wp-line-parse-dfa.dot +0 -31
- package/eslint.config.js +0 -35
- package/fastlane/Fastfile +0 -204
- package/fastlane/example.env +0 -8
- package/fastlane/test_signing.rb +0 -83
- package/go.mod +0 -39
- package/go.sum +0 -127
- package/internal/appctx/app_resolver.go +0 -202
- package/internal/appctx/app_resolver_test.go +0 -187
- package/internal/appctx/confirm.go +0 -180
- package/internal/appctx/confirm_payload_test.go +0 -201
- package/internal/appctx/confirm_test.go +0 -120
- package/internal/appctx/context.go +0 -94
- package/internal/appctx/context_test.go +0 -56
- package/internal/appctx/env_resolver.go +0 -110
- package/internal/appctx/env_resolver_test.go +0 -215
- package/internal/appctx/format.go +0 -72
- package/internal/appctx/format_test.go +0 -75
- package/internal/appctx/interactive.go +0 -50
- package/internal/appctx/interactive_test.go +0 -134
- package/internal/appctx/middleware.go +0 -56
- package/internal/appctx/middleware_test.go +0 -88
- package/internal/appctx/prompts.go +0 -70
- package/internal/appctx/prompts_test.go +0 -97
- package/internal/appctx/required_args.go +0 -24
- package/internal/appctx/required_args_test.go +0 -38
- package/internal/appctx/telemetry.go +0 -22
- package/internal/appctx/telemetry_test.go +0 -42
- package/internal/appctx/wildcard.go +0 -29
- package/internal/appctx/wildcard_test.go +0 -53
- package/internal/auth/bypass.go +0 -84
- package/internal/auth/bypass_test.go +0 -97
- package/internal/auth/login.go +0 -156
- package/internal/auth/login_test.go +0 -184
- package/internal/auth/logout.go +0 -44
- package/internal/auth/logout_test.go +0 -78
- package/internal/auth/store.go +0 -130
- package/internal/auth/store_test.go +0 -339
- package/internal/auth/token.go +0 -117
- package/internal/auth/token_test.go +0 -90
- package/internal/backup/backup.go +0 -194
- package/internal/backup/backup_test.go +0 -228
- package/internal/cachepurge/cachepurge.go +0 -38
- package/internal/cachepurge/cachepurge_test.go +0 -92
- package/internal/customdeploy/archive.go +0 -205
- package/internal/customdeploy/archive_test.go +0 -174
- package/internal/customdeploy/customdeploy.go +0 -91
- package/internal/customdeploy/customdeploy_test.go +0 -82
- package/internal/debuglog/debuglog.go +0 -85
- package/internal/debuglog/debuglog_test.go +0 -44
- package/internal/defensivemode/api.go +0 -89
- package/internal/defensivemode/api_test.go +0 -122
- package/internal/devenv/adapters.go +0 -168
- package/internal/devenv/adapters_test.go +0 -44
- package/internal/devenv/adopt.go +0 -20
- package/internal/devenv/adopt_setup_test.go +0 -30
- package/internal/devenv/compose/labels.go +0 -90
- package/internal/devenv/compose/labels_test.go +0 -136
- package/internal/devenv/compose/project.go +0 -88
- package/internal/devenv/compose/project_test.go +0 -148
- package/internal/devenv/compose/render.go +0 -54
- package/internal/devenv/compose/render_test.go +0 -90
- package/internal/devenv/compose/services.go +0 -337
- package/internal/devenv/compose/services_test.go +0 -258
- package/internal/devenv/compose/testdata/full.golden.yml +0 -265
- package/internal/devenv/compose/types.go +0 -97
- package/internal/devenv/compose/types_test.go +0 -61
- package/internal/devenv/compose/view.go +0 -205
- package/internal/devenv/compose/view_test.go +0 -120
- package/internal/devenv/configfile.go +0 -300
- package/internal/devenv/configfile_test.go +0 -246
- package/internal/devenv/create.go +0 -130
- package/internal/devenv/create_test.go +0 -98
- package/internal/devenv/debug.go +0 -4
- package/internal/devenv/debug_test.go +0 -103
- package/internal/devenv/devenv.go +0 -434
- package/internal/devenv/devenv_test.go +0 -77
- package/internal/devenv/devexec.go +0 -140
- package/internal/devenv/devexec_test.go +0 -91
- package/internal/devenv/devlog/devlog.go +0 -219
- package/internal/devenv/devlog/devlog_test.go +0 -112
- package/internal/devenv/devterm/devterm.go +0 -65
- package/internal/devenv/devterm/devterm_pty.go +0 -58
- package/internal/devenv/devterm/devterm_stub.go +0 -20
- package/internal/devenv/devterm/devterm_test.go +0 -78
- package/internal/devenv/dockercli/capture.go +0 -84
- package/internal/devenv/dockercli/capture_test.go +0 -33
- package/internal/devenv/dockercli/compose.go +0 -30
- package/internal/devenv/dockercli/compose_test.go +0 -35
- package/internal/devenv/dockercli/runner.go +0 -214
- package/internal/devenv/dockercli/runner_test.go +0 -157
- package/internal/devenv/dockercli/socket.go +0 -56
- package/internal/devenv/dockercli/socket_test.go +0 -52
- package/internal/devenv/e2e_gate_test.go +0 -17
- package/internal/devenv/e2e_test.go +0 -499
- package/internal/devenv/e2esafety/gate_wiring_test.go +0 -90
- package/internal/devenv/e2esafety/safety.go +0 -52
- package/internal/devenv/e2esafety/safety_test.go +0 -71
- package/internal/devenv/eachenv_test.go +0 -132
- package/internal/devenv/editor.go +0 -82
- package/internal/devenv/editor_test.go +0 -60
- package/internal/devenv/envfile.go +0 -287
- package/internal/devenv/envvar.go +0 -165
- package/internal/devenv/envvar_test.go +0 -178
- package/internal/devenv/hostops/context.go +0 -38
- package/internal/devenv/hostops/context_test.go +0 -24
- package/internal/devenv/hostops/e2e_gate_test.go +0 -17
- package/internal/devenv/hostops/e2e_test.go +0 -429
- package/internal/devenv/hostops/elevate.go +0 -248
- package/internal/devenv/hostops/elevate_message_test.go +0 -35
- package/internal/devenv/hostops/elevate_test.go +0 -111
- package/internal/devenv/hostops/hosts.go +0 -255
- package/internal/devenv/hostops/hosts_test.go +0 -178
- package/internal/devenv/hostops/thumbprint_test.go +0 -57
- package/internal/devenv/hostops/trust.go +0 -115
- package/internal/devenv/hostops/trust_test.go +0 -90
- package/internal/devenv/hostrefresh.go +0 -127
- package/internal/devenv/hostrefresh_test.go +0 -123
- package/internal/devenv/importdata.go +0 -491
- package/internal/devenv/importdata_test.go +0 -142
- package/internal/devenv/importdecompress_test.go +0 -90
- package/internal/devenv/importgate_test.go +0 -166
- package/internal/devenv/importvalidate.go +0 -437
- package/internal/devenv/importvalidate_test.go +0 -293
- package/internal/devenv/info_table.go +0 -165
- package/internal/devenv/info_table_test.go +0 -111
- package/internal/devenv/instancedata/instancedata.go +0 -239
- package/internal/devenv/instancedata/instancedata_test.go +0 -281
- package/internal/devenv/instancedata/testdata/legacy_keys.json +0 -16
- package/internal/devenv/instancedata/testdata/unknown_keys.json +0 -19
- package/internal/devenv/lifecycle/adopt.go +0 -24
- package/internal/devenv/lifecycle/adopt_test.go +0 -43
- package/internal/devenv/lifecycle/health.go +0 -28
- package/internal/devenv/lifecycle/health_test.go +0 -34
- package/internal/devenv/lifecycle/hosts.go +0 -42
- package/internal/devenv/lifecycle/hosts_test.go +0 -41
- package/internal/devenv/lifecycle/migrate.go +0 -44
- package/internal/devenv/lifecycle/migrate_test.go +0 -78
- package/internal/devenv/lifecycle/pull.go +0 -19
- package/internal/devenv/lifecycle/pull_test.go +0 -29
- package/internal/devenv/lifecycle/setup.go +0 -35
- package/internal/devenv/lifecycle/setup_test.go +0 -46
- package/internal/devenv/lifecycle/start.go +0 -132
- package/internal/devenv/lifecycle/start_test.go +0 -350
- package/internal/devenv/lifecycle/teardown.go +0 -32
- package/internal/devenv/lifecycle/teardown_test.go +0 -83
- package/internal/devenv/lifecycle/types.go +0 -86
- package/internal/devenv/lifecycle/waiter.go +0 -49
- package/internal/devenv/lifecycle/waiter_test.go +0 -98
- package/internal/devenv/list.go +0 -49
- package/internal/devenv/list_test.go +0 -24
- package/internal/devenv/logs.go +0 -43
- package/internal/devenv/logs_test.go +0 -28
- package/internal/devenv/materialize.go +0 -44
- package/internal/devenv/materialize_test.go +0 -112
- package/internal/devenv/paths/paths.go +0 -42
- package/internal/devenv/paths/paths_test.go +0 -39
- package/internal/devenv/postimport.go +0 -134
- package/internal/devenv/postimport_test.go +0 -389
- package/internal/devenv/proxy/ca.go +0 -110
- package/internal/devenv/proxy/ca_test.go +0 -111
- package/internal/devenv/proxy/network.go +0 -28
- package/internal/devenv/proxy/network_test.go +0 -68
- package/internal/devenv/proxy/ports.go +0 -104
- package/internal/devenv/proxy/ports_test.go +0 -76
- package/internal/devenv/proxy/proxy.go +0 -143
- package/internal/devenv/proxy/proxy_test.go +0 -149
- package/internal/devenv/proxy/scripts/gen-certs.sh +0 -73
- package/internal/devenv/proxy/spec.go +0 -60
- package/internal/devenv/proxy/spec_test.go +0 -44
- package/internal/devenv/proxy/testhelpers_test.go +0 -7
- package/internal/devenv/proxy_policy_test.go +0 -155
- package/internal/devenv/syncplan.go +0 -573
- package/internal/devenv/syncplan_test.go +0 -256
- package/internal/devenv/syncsql.go +0 -247
- package/internal/devenv/syncsql_repair.go +0 -169
- package/internal/devenv/syncsql_repair_test.go +0 -150
- package/internal/devenv/syncsql_test.go +0 -220
- package/internal/devenv/update.go +0 -87
- package/internal/devenv/update_test.go +0 -47
- package/internal/edgeworkers/api.go +0 -173
- package/internal/edgeworkers/api_test.go +0 -256
- package/internal/edgeworkers/build.go +0 -188
- package/internal/edgeworkers/build_test.go +0 -175
- package/internal/edgeworkers/confirmation.go +0 -72
- package/internal/edgeworkers/deployment.go +0 -156
- package/internal/edgeworkers/deployment_test.go +0 -165
- package/internal/edgeworkers/output.go +0 -131
- package/internal/edgeworkers/output_test.go +0 -98
- package/internal/edgeworkers/project.go +0 -264
- package/internal/edgeworkers/project_test.go +0 -167
- package/internal/edgeworkers/scaffold.go +0 -88
- package/internal/edgeworkers/templates/README.md +0 -25
- package/internal/edgeworkers/templates/edge-workers.json +0 -4
- package/internal/edgeworkers/templates/gitignore +0 -2
- package/internal/edgeworkers/templates/package.json +0 -16
- package/internal/edgeworkers/templates/tsconfig.json +0 -6
- package/internal/edgeworkers/templates/worker.ts +0 -19
- package/internal/edgeworkers/types.go +0 -37
- package/internal/edgeworkers/validation.go +0 -177
- package/internal/envalias/envalias.go +0 -50
- package/internal/envalias/envalias_test.go +0 -147
- package/internal/envvar/envvar.go +0 -253
- package/internal/envvar/envvar_test.go +0 -274
- package/internal/envvar/reload_manifest.go +0 -99
- package/internal/envvar/reload_manifest_test.go +0 -44
- package/internal/envvar/value_confirm.go +0 -26
- package/internal/envvar/value_confirm_test.go +0 -22
- package/internal/exit/exit.go +0 -94
- package/internal/exit/exit_test.go +0 -119
- package/internal/gql/SCHEMA.md +0 -21
- package/internal/gql/client.go +0 -54
- package/internal/gql/client_test.go +0 -71
- package/internal/gql/debug_test.go +0 -79
- package/internal/gql/decoder_compat_helpers_test.go +0 -35
- package/internal/gql/decoder_compat_test.go +0 -78
- package/internal/gql/doc.go +0 -13
- package/internal/gql/edgeworkerinput/input.go +0 -58
- package/internal/gql/edgeworkerinput/input_test.go +0 -52
- package/internal/gql/error.go +0 -163
- package/internal/gql/error_test.go +0 -203
- package/internal/gql/generated.go +0 -10425
- package/internal/gql/genqlient.yaml +0 -26
- package/internal/gql/import_sql_marshal_test.go +0 -69
- package/internal/gql/operation.go +0 -67
- package/internal/gql/operation_test.go +0 -60
- package/internal/gql/operations/app_get.graphql +0 -43
- package/internal/gql/operations/app_list.graphql +0 -9
- package/internal/gql/operations/app_resolve.graphql +0 -37
- package/internal/gql/operations/backup_export_deploy.graphql +0 -123
- package/internal/gql/operations/cachepurge.graphql +0 -6
- package/internal/gql/operations/defensive_mode.graphql +0 -13
- package/internal/gql/operations/dev_env_create.graphql +0 -38
- package/internal/gql/operations/dev_env_sync.graphql +0 -15
- package/internal/gql/operations/edge_workers.graphql +0 -53
- package/internal/gql/operations/envvar.graphql +0 -52
- package/internal/gql/operations/fragments.graphql +0 -5
- package/internal/gql/operations/import_media.graphql +0 -61
- package/internal/gql/operations/import_sql.graphql +0 -135
- package/internal/gql/operations/logs.graphql +0 -22
- package/internal/gql/operations/me.graphql +0 -13
- package/internal/gql/operations/phpmyadmin.graphql +0 -21
- package/internal/gql/operations/slowlogs.graphql +0 -25
- package/internal/gql/operations/software.graphql +0 -53
- package/internal/gql/operations/sync.graphql +0 -51
- package/internal/gql/operations/wp.graphql +0 -37
- package/internal/gql/proxy_test.go +0 -62
- package/internal/gql/rechallenge.go +0 -218
- package/internal/gql/rechallenge_test.go +0 -471
- package/internal/gql/retry.go +0 -130
- package/internal/gql/retry_test.go +0 -230
- package/internal/gql/schema.gql +0 -9337
- package/internal/gql/transport.go +0 -65
- package/internal/gql/transport_helper.go +0 -24
- package/internal/httpproxy/callers_test.go +0 -211
- package/internal/httpproxy/debug_test.go +0 -32
- package/internal/httpproxy/httpproxy.go +0 -315
- package/internal/httpproxy/httpproxy_test.go +0 -435
- package/internal/installer/version.go +0 -41
- package/internal/installer/version_test.go +0 -33
- package/internal/keychain/fallback.go +0 -93
- package/internal/keychain/keychain.go +0 -197
- package/internal/keychain/keychain_select_test.go +0 -34
- package/internal/keychain/keychain_test.go +0 -112
- package/internal/logsapi/logsapi.go +0 -165
- package/internal/logsapi/logsapi_test.go +0 -82
- package/internal/mediaimport/mediaimport.go +0 -26
- package/internal/mediaimport/mediaimport_test.go +0 -46
- package/internal/mediaimport/status.go +0 -162
- package/internal/mediaimport/status_test.go +0 -159
- package/internal/mediaimport/tracker.go +0 -116
- package/internal/mediaimport/tracker_test.go +0 -62
- package/internal/nodeflags/nodeflags.go +0 -130
- package/internal/nodeflags/nodeflags_test.go +0 -138
- package/internal/nodeflags/optionalvalue.go +0 -123
- package/internal/nodeflags/optionalvalue_test.go +0 -158
- package/internal/output/csv.go +0 -178
- package/internal/output/fields.go +0 -22
- package/internal/output/fields_test.go +0 -21
- package/internal/output/ids.go +0 -26
- package/internal/output/ids_test.go +0 -32
- package/internal/output/json.go +0 -113
- package/internal/output/keyvalue.go +0 -35
- package/internal/output/keyvalue_block.go +0 -77
- package/internal/output/keyvalue_block_test.go +0 -95
- package/internal/output/keyvalue_test.go +0 -35
- package/internal/output/ordered.go +0 -44
- package/internal/output/ordered_test.go +0 -42
- package/internal/output/output.go +0 -62
- package/internal/output/output_test.go +0 -400
- package/internal/output/table.go +0 -231
- package/internal/output/table_layout.go +0 -472
- package/internal/output/table_layout_test.go +0 -107
- package/internal/output/table_layout_tty_test.go +0 -63
- package/internal/output/text.go +0 -24
- package/internal/output/text_test.go +0 -31
- package/internal/output/typename.go +0 -35
- package/internal/output/typename_test.go +0 -48
- package/internal/parity/backup_export_deploy_scenario_test.go +0 -285
- package/internal/parity/cache_scenario_test.go +0 -173
- package/internal/parity/command_surface_scenario_test.go +0 -530
- package/internal/parity/defensive_mode_scenario_test.go +0 -133
- package/internal/parity/diff.go +0 -128
- package/internal/parity/diff_test.go +0 -155
- package/internal/parity/differential_test.go +0 -166
- package/internal/parity/edge_workers_build_smoke_test.go +0 -69
- package/internal/parity/edge_workers_cases_test.go +0 -77
- package/internal/parity/edge_workers_debug_test.go +0 -87
- package/internal/parity/edge_workers_differential_test.go +0 -483
- package/internal/parity/edge_workers_prompt_test.go +0 -151
- package/internal/parity/env.go +0 -176
- package/internal/parity/env_test.go +0 -211
- package/internal/parity/envvar_mutation_scenario_test.go +0 -188
- package/internal/parity/harness.go +0 -28
- package/internal/parity/harness_test.go +0 -62
- package/internal/parity/import_media_scenario_test.go +0 -207
- package/internal/parity/import_sql_scenario_test.go +0 -198
- package/internal/parity/import_validate_sql_scenario_test.go +0 -68
- package/internal/parity/keychain.go +0 -538
- package/internal/parity/keychain_test.go +0 -201
- package/internal/parity/m5_differential_test.go +0 -185
- package/internal/parity/m5_scenarios_test.go +0 -225
- package/internal/parity/nodebin.go +0 -120
- package/internal/parity/nodebin_test.go +0 -148
- package/internal/parity/parker.go +0 -491
- package/internal/parity/parker_discovery.go +0 -373
- package/internal/parity/parker_discovery_test.go +0 -267
- package/internal/parity/parker_live_test.go +0 -164
- package/internal/parity/parker_test.go +0 -480
- package/internal/parity/pendo_test.go +0 -122
- package/internal/parity/phpmyadmin_scenario_test.go +0 -214
- package/internal/parity/runner.go +0 -56
- package/internal/parity/runner_test.go +0 -67
- package/internal/parity/scenario.go +0 -82
- package/internal/parity/scenario_test.go +0 -52
- package/internal/parity/surface_differential_test.go +0 -494
- package/internal/parity/sync_scenario_test.go +0 -172
- package/internal/parity/vendored_src_test.go +0 -84
- package/internal/parity/whoami_scenario_test.go +0 -69
- package/internal/parity/wp_scenario_test.go +0 -428
- package/internal/phpmyadmin/client.go +0 -221
- package/internal/phpmyadmin/client_test.go +0 -418
- package/internal/poll/poll.go +0 -85
- package/internal/poll/poll_test.go +0 -136
- package/internal/polling/polling.go +0 -97
- package/internal/polling/polling_test.go +0 -59
- package/internal/rechallenge/browser.go +0 -16
- package/internal/rechallenge/client.go +0 -198
- package/internal/rechallenge/client_test.go +0 -169
- package/internal/rechallenge/errors.go +0 -137
- package/internal/rechallenge/errors_test.go +0 -81
- package/internal/rechallenge/flow.go +0 -232
- package/internal/rechallenge/flow_noninteractive_test.go +0 -285
- package/internal/rechallenge/flow_test.go +0 -217
- package/internal/rechallenge/interactive.go +0 -90
- package/internal/rechallenge/interactive_test.go +0 -106
- package/internal/rechallenge/redact.go +0 -36
- package/internal/rechallenge/redact_test.go +0 -142
- package/internal/rechallenge/tokencache.go +0 -148
- package/internal/rechallenge/tokencache_test.go +0 -139
- package/internal/rechallenge/types.go +0 -100
- package/internal/rechallenge/types_test.go +0 -56
- package/internal/redact/redact.go +0 -99
- package/internal/redact/redact_test.go +0 -80
- package/internal/releasepromotion/buildkite.go +0 -233
- package/internal/releasepromotion/buildkite_test.go +0 -284
- package/internal/releasepromotion/contract.go +0 -165
- package/internal/releasepromotion/contract_test.go +0 -211
- package/internal/releasepromotion/github.go +0 -378
- package/internal/releasepromotion/github_test.go +0 -399
- package/internal/releasepromotion/optional_installers_test.go +0 -87
- package/internal/releasepromotion/promoter.go +0 -134
- package/internal/releasepromotion/promoter_test.go +0 -147
- package/internal/releasepromotion/verify.go +0 -239
- package/internal/releasepromotion/verify_test.go +0 -296
- package/internal/searchreplace/debug_test.go +0 -71
- package/internal/searchreplace/dumpdetails.go +0 -104
- package/internal/searchreplace/dumpdetails_test.go +0 -86
- package/internal/searchreplace/searchreplace.go +0 -261
- package/internal/searchreplace/searchreplace_test.go +0 -250
- package/internal/siteimport/debug_test.go +0 -34
- package/internal/siteimport/siteimport.go +0 -18
- package/internal/siteimport/siteimport_test.go +0 -19
- package/internal/siteimport/sitetype.go +0 -74
- package/internal/siteimport/sitetype_test.go +0 -62
- package/internal/siteimport/status.go +0 -282
- package/internal/siteimport/status_test.go +0 -234
- package/internal/slowlogsapi/slowlogsapi.go +0 -176
- package/internal/slowlogsapi/slowlogsapi_test.go +0 -93
- package/internal/softwaresettings/format.go +0 -192
- package/internal/softwaresettings/format_test.go +0 -123
- package/internal/sqlexport/diskspace.go +0 -36
- package/internal/sqlexport/diskspace_unix.go +0 -24
- package/internal/sqlexport/diskspace_windows.go +0 -26
- package/internal/sqlexport/download.go +0 -75
- package/internal/sqlexport/download_test.go +0 -103
- package/internal/sqlexport/export.go +0 -321
- package/internal/sqlexport/export_test.go +0 -313
- package/internal/sqlexport/format.go +0 -44
- package/internal/sqlexport/livecopy.go +0 -150
- package/internal/sqlexport/livecopy_test.go +0 -273
- package/internal/sqlvalidation/devenv_checks_test.go +0 -134
- package/internal/sqlvalidation/filename.go +0 -30
- package/internal/sqlvalidation/line_by_line.go +0 -91
- package/internal/sqlvalidation/line_by_line_test.go +0 -165
- package/internal/sqlvalidation/multisite.go +0 -31
- package/internal/sqlvalidation/multisite_test.go +0 -34
- package/internal/sqlvalidation/sql.go +0 -510
- package/internal/sqlvalidation/sql_test.go +0 -206
- package/internal/sync/sync.go +0 -246
- package/internal/sync/sync_test.go +0 -253
- package/internal/telemetry/config.go +0 -34
- package/internal/telemetry/default.go +0 -67
- package/internal/telemetry/default_endpoint_test.go +0 -111
- package/internal/telemetry/pendo.go +0 -185
- package/internal/telemetry/pendo_auth_test.go +0 -92
- package/internal/telemetry/pendo_test.go +0 -252
- package/internal/telemetry/scrub.go +0 -90
- package/internal/telemetry/scrub_test.go +0 -131
- package/internal/telemetry/tracker.go +0 -102
- package/internal/telemetry/tracker_test.go +0 -76
- package/internal/telemetry/tracks.go +0 -82
- package/internal/telemetry/tracks_test.go +0 -129
- package/internal/telemetry/uuid.go +0 -50
- package/internal/telemetry/uuid_test.go +0 -90
- package/internal/tui/progress.go +0 -153
- package/internal/tui/progress_test.go +0 -89
- package/internal/tui/progress_tracker.go +0 -299
- package/internal/tui/progress_tracker_test.go +0 -155
- package/internal/update/archive.go +0 -134
- package/internal/update/archive_test.go +0 -132
- package/internal/update/download.go +0 -138
- package/internal/update/download_test.go +0 -32
- package/internal/update/github.go +0 -121
- package/internal/update/install.go +0 -265
- package/internal/update/install_test.go +0 -151
- package/internal/update/lock_unix.go +0 -23
- package/internal/update/lock_windows.go +0 -22
- package/internal/update/native_test.go +0 -70
- package/internal/update/notify.go +0 -91
- package/internal/update/ownership.go +0 -117
- package/internal/update/ownership_test.go +0 -102
- package/internal/update/release.go +0 -120
- package/internal/update/release_test.go +0 -168
- package/internal/update/service.go +0 -197
- package/internal/update/service_test.go +0 -118
- package/internal/update/state.go +0 -116
- package/internal/update/state_test.go +0 -132
- package/internal/upload/debug_test.go +0 -76
- package/internal/upload/filemeta.go +0 -112
- package/internal/upload/filemeta_test.go +0 -94
- package/internal/upload/multipart.go +0 -215
- package/internal/upload/multipart_test.go +0 -210
- package/internal/upload/orchestrate.go +0 -81
- package/internal/upload/parts.go +0 -39
- package/internal/upload/parts_test.go +0 -39
- package/internal/upload/presign.go +0 -103
- package/internal/upload/presign_test.go +0 -128
- package/internal/upload/proxy_test.go +0 -55
- package/internal/upload/putobject.go +0 -92
- package/internal/upload/putobject_test.go +0 -79
- package/internal/upload/retry.go +0 -45
- package/internal/upload/upload.go +0 -22
- package/internal/upload/xmlerror.go +0 -28
- package/internal/validatefiles/files.go +0 -105
- package/internal/validatefiles/files_test.go +0 -143
- package/internal/validatefiles/report.go +0 -172
- package/internal/validatefiles/validatefiles.go +0 -271
- package/internal/validatefiles/validatefiles_test.go +0 -127
- package/internal/version/stamp.go +0 -15
- package/internal/version/stamp_test.go +0 -25
- package/internal/version/version.go +0 -14
- package/internal/version/version_test.go +0 -25
- package/internal/wpshell/parser.go +0 -68
- package/internal/wpshell/parser_test.go +0 -58
- package/internal/wpshell/repl.go +0 -81
- package/internal/wpshell/repl_test.go +0 -71
- package/internal/wpshell/requote.go +0 -13
- package/internal/wpshell/requote_test.go +0 -15
- package/internal/wpssh/debug_test.go +0 -67
- package/internal/wpssh/wpssh.go +0 -124
- package/internal/wpssh/wpssh_test.go +0 -203
- package/internal/wpstream/debug_test.go +0 -116
- package/internal/wpstream/e2e_test.go +0 -178
- package/internal/wpstream/engineio.go +0 -291
- package/internal/wpstream/engineio_test.go +0 -82
- package/internal/wpstream/iostream.go +0 -391
- package/internal/wpstream/iostream_test.go +0 -138
- package/internal/wpstream/run.go +0 -364
- package/internal/wpstream/run_test.go +0 -184
- package/internal/wpstream/socketio.go +0 -435
- package/internal/wpstream/socketio_test.go +0 -402
- package/internal/wpstream/testdata/fixture-server.js +0 -54
- package/make.ps1 +0 -155
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs +0 -3
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs.map +0 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.d.cts +0 -10
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.d.ts +0 -10
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js +0 -2
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js.map +0 -1
- package/node_modules/argparse/LICENSE +0 -254
- package/node_modules/argparse/README.md +0 -84
- package/node_modules/argparse/package.json +0 -31
- package/node_modules/lando/node_modules/cliui/build/index.cjs +0 -302
- package/node_modules/lando/node_modules/cliui/build/lib/string-utils.js +0 -27
- package/node_modules/lando/node_modules/js-yaml/README.md +0 -233
- package/node_modules/lando/node_modules/js-yaml/bin/js-yaml.js +0 -117
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js +0 -3022
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js.map +0 -1
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js.map +0 -1
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs +0 -3082
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs.map +0 -1
- package/node_modules/lando/node_modules/js-yaml/index.js +0 -44
- package/node_modules/lando/node_modules/js-yaml/lib/common.js +0 -50
- package/node_modules/lando/node_modules/js-yaml/lib/dumper.js +0 -937
- package/node_modules/lando/node_modules/js-yaml/lib/exception.js +0 -51
- package/node_modules/lando/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs +0 -37
- package/node_modules/lando/node_modules/js-yaml/lib/loader.js +0 -1803
- package/node_modules/lando/node_modules/js-yaml/lib/schema/core.js +0 -9
- package/node_modules/lando/node_modules/js-yaml/lib/schema/default.js +0 -20
- package/node_modules/lando/node_modules/js-yaml/lib/schema/failsafe.js +0 -14
- package/node_modules/lando/node_modules/js-yaml/lib/schema/json.js +0 -17
- package/node_modules/lando/node_modules/js-yaml/lib/schema.js +0 -109
- package/node_modules/lando/node_modules/js-yaml/lib/snippet.js +0 -96
- package/node_modules/lando/node_modules/js-yaml/lib/type/binary.js +0 -122
- package/node_modules/lando/node_modules/js-yaml/lib/type/bool.js +0 -35
- package/node_modules/lando/node_modules/js-yaml/lib/type/float.js +0 -99
- package/node_modules/lando/node_modules/js-yaml/lib/type/int.js +0 -142
- package/node_modules/lando/node_modules/js-yaml/lib/type/map.js +0 -8
- package/node_modules/lando/node_modules/js-yaml/lib/type/merge.js +0 -12
- package/node_modules/lando/node_modules/js-yaml/lib/type/null.js +0 -35
- package/node_modules/lando/node_modules/js-yaml/lib/type/omap.js +0 -45
- package/node_modules/lando/node_modules/js-yaml/lib/type/pairs.js +0 -50
- package/node_modules/lando/node_modules/js-yaml/lib/type/seq.js +0 -8
- package/node_modules/lando/node_modules/js-yaml/lib/type/set.js +0 -29
- package/node_modules/lando/node_modules/js-yaml/lib/type/str.js +0 -8
- package/node_modules/lando/node_modules/js-yaml/lib/type/timestamp.js +0 -88
- package/node_modules/lando/node_modules/js-yaml/lib/type.js +0 -66
- package/node_modules/lando/node_modules/js-yaml/package.json +0 -83
- package/node_modules/lando/node_modules/wrap-ansi/index.js +0 -216
- package/node_modules/lando/node_modules/wrap-ansi/package.json +0 -62
- package/node_modules/lando/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/lando/node_modules/yargs/build/index.cjs +0 -2920
- package/node_modules/lando/node_modules/yargs/helpers/index.js +0 -14
- package/node_modules/lando/node_modules/yargs/index.cjs +0 -39
- package/node_modules/lando/node_modules/yargs/yargs +0 -9
- package/node_modules/lando/node_modules/yargs-parser/build/index.cjs +0 -1042
- package/node_modules/lando/plugins/lando-test/index.js +0 -3
- package/node_modules/lando/plugins/lando-test/plugin.yml +0 -2
- package/packaging/macos/build-pkg.sh +0 -53
- package/packaging/macos/preinstall +0 -33
- package/packaging/macos/test-install.sh +0 -51
- package/packaging/macos/test_package.py +0 -74
- package/packaging/macos/uninstall.sh +0 -24
- package/packaging/macos/verify-pkg.py +0 -61
- package/packaging/windows/build-msi.ps1 +0 -153
- package/packaging/windows/test-msi.ps1 +0 -225
- package/packaging/windows/verify-msi.ps1 +0 -74
- package/packaging/windows/vip-next.wxs +0 -79
- package/scripts/catalog_script_test.go +0 -123
- package/scripts/vip-next-command-catalog.sh +0 -506
- package/test-utils/undici-mock.js +0 -25
- package/testdata/installer-fixture/main.go +0 -40
- package/testdata/parity/app-deploy-completed.yaml +0 -14
- package/testdata/parity/app-deploy-missing-token.yaml +0 -21
- package/testdata/parity/app-deploy-validate-clean.yaml +0 -11
- package/testdata/parity/app-deploy-validate-missing-themes.yaml +0 -21
- package/testdata/parity/app-get-baseline.yaml +0 -14
- package/testdata/parity/app-get-custom-deploy.yaml +0 -14
- package/testdata/parity/app-get-json.yaml +0 -14
- package/testdata/parity/app-get-not-found.yaml +0 -13
- package/testdata/parity/app-list-baseline.yaml +0 -14
- package/testdata/parity/app-list-csv.yaml +0 -13
- package/testdata/parity/app-list-empty.yaml +0 -13
- package/testdata/parity/app-list-ids.yaml +0 -26
- package/testdata/parity/app-list-json.yaml +0 -13
- package/testdata/parity/app-list-unknown-format.yaml +0 -29
- package/testdata/parity/backup-db-already-in-progress.yaml +0 -15
- package/testdata/parity/backup-db-completed.yaml +0 -14
- package/testdata/parity/backup-db-help.yaml +0 -10
- package/testdata/parity/cache-purge-url-empty.yaml +0 -26
- package/testdata/parity/cache-purge-url-from-file.yaml +0 -21
- package/testdata/parity/cache-purge-url-multi.yaml +0 -19
- package/testdata/parity/cache-purge-url-single.yaml +0 -18
- package/testdata/parity/defensive-mode-enable-with-rechallenge.yaml +0 -20
- package/testdata/parity/edge-workers-artifact-symlink.yaml +0 -8
- package/testdata/parity/edge-workers-bare-location.yaml +0 -8
- package/testdata/parity/edge-workers-bare-path.yaml +0 -8
- package/testdata/parity/edge-workers-bare-type.yaml +0 -8
- package/testdata/parity/edge-workers-build-all.yaml +0 -8
- package/testdata/parity/edge-workers-build-compiler-error.yaml +0 -8
- package/testdata/parity/edge-workers-build-empty.yaml +0 -8
- package/testdata/parity/edge-workers-build-missing-compiler.yaml +0 -8
- package/testdata/parity/edge-workers-build-name-all.yaml +0 -8
- package/testdata/parity/edge-workers-build-one.yaml +0 -8
- package/testdata/parity/edge-workers-delete-force.yaml +0 -8
- package/testdata/parity/edge-workers-delete-rejected.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-active-update-enable.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-active-update.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-all-preparation-failure.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-create-enable.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-create.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-enable-failure.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-inactive-update-enable.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-inactive-update.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-location-clear.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-location-preserve.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-location-replace.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-name-all.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-production-refused.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-production-skip.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-skip-source-create.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-skip-source.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-skip-validate.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-source-empty.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-upload-failure.yaml +0 -8
- package/testdata/parity/edge-workers-disable.yaml +0 -8
- package/testdata/parity/edge-workers-double-dash.yaml +0 -8
- package/testdata/parity/edge-workers-duplicate-names.yaml +0 -8
- package/testdata/parity/edge-workers-enable-production-refused.yaml +0 -8
- package/testdata/parity/edge-workers-enable.yaml +0 -8
- package/testdata/parity/edge-workers-entry-escape.yaml +0 -8
- package/testdata/parity/edge-workers-get-empty-source.yaml +0 -8
- package/testdata/parity/edge-workers-get-missing.yaml +0 -8
- package/testdata/parity/edge-workers-get-no-source.yaml +0 -8
- package/testdata/parity/edge-workers-get-source.yaml +0 -8
- package/testdata/parity/edge-workers-get.yaml +0 -8
- package/testdata/parity/edge-workers-init-invalid-type.yaml +0 -8
- package/testdata/parity/edge-workers-init-nonempty.yaml +0 -8
- package/testdata/parity/edge-workers-init.yaml +0 -8
- package/testdata/parity/edge-workers-json-control-name.yaml +0 -8
- package/testdata/parity/edge-workers-list-csv.yaml +0 -8
- package/testdata/parity/edge-workers-list-empty-json.yaml +0 -8
- package/testdata/parity/edge-workers-list-empty.yaml +0 -8
- package/testdata/parity/edge-workers-list-json.yaml +0 -8
- package/testdata/parity/edge-workers-list-table.yaml +0 -8
- package/testdata/parity/edge-workers-mutation-graphql-error.yaml +0 -8
- package/testdata/parity/edge-workers-mutation-null.yaml +0 -8
- package/testdata/parity/edge-workers-new-invalid-location.yaml +0 -8
- package/testdata/parity/edge-workers-new-invalid-name.yaml +0 -8
- package/testdata/parity/edge-workers-new-location.yaml +0 -8
- package/testdata/parity/edge-workers-new.yaml +0 -8
- package/testdata/parity/edge-workers-read-null.yaml +0 -8
- package/testdata/parity/edge-workers-repeated-path.yaml +0 -8
- package/testdata/parity/edge-workers-repeated-type.yaml +0 -8
- package/testdata/parity/edge-workers-short-equals.yaml +0 -8
- package/testdata/parity/edge-workers-table-control-name.yaml +0 -8
- package/testdata/parity/edge-workers-unicode-order.yaml +0 -8
- package/testdata/parity/edge-workers-validate-all.yaml +0 -8
- package/testdata/parity/edge-workers-validate-invalid.yaml +0 -8
- package/testdata/parity/edge-workers-validate-name-all.yaml +0 -8
- package/testdata/parity/edge-workers-validate-no-artifact.yaml +0 -8
- package/testdata/parity/edge-workers-validate-no-name.yaml +0 -8
- package/testdata/parity/edge-workers-validate-null.yaml +0 -8
- package/testdata/parity/edge-workers-validate.yaml +0 -8
- package/testdata/parity/envvar-delete-baseline.yaml +0 -19
- package/testdata/parity/envvar-delete-prod-cancel.yaml +0 -41
- package/testdata/parity/envvar-delete-typed-mismatch.yaml +0 -44
- package/testdata/parity/envvar-get-baseline.yaml +0 -14
- package/testdata/parity/envvar-get-lowercase-input.yaml +0 -14
- package/testdata/parity/envvar-get-named-help.yaml +0 -24
- package/testdata/parity/envvar-get-not-found.yaml +0 -17
- package/testdata/parity/envvar-getall-baseline.yaml +0 -14
- package/testdata/parity/envvar-getall-empty.yaml +0 -15
- package/testdata/parity/envvar-getall-keyvalue.yaml +0 -22
- package/testdata/parity/envvar-list-baseline.yaml +0 -15
- package/testdata/parity/envvar-list-empty.yaml +0 -15
- package/testdata/parity/envvar-list-ids.yaml +0 -14
- package/testdata/parity/envvar-list-json.yaml +0 -14
- package/testdata/parity/envvar-list-keyvalue.yaml +0 -22
- package/testdata/parity/envvar-set-baseline.yaml +0 -21
- package/testdata/parity/envvar-set-invalid-name.yaml +0 -20
- package/testdata/parity/envvar-set-newrelic-blocked.yaml +0 -21
- package/testdata/parity/envvar-set-prod-cancel.yaml +0 -42
- package/testdata/parity/envvar-set-prod-confirm-skipped.yaml +0 -20
- package/testdata/parity/export-sql-completed.yaml +0 -14
- package/testdata/parity/export-sql-config-conflict.yaml +0 -21
- package/testdata/parity/export-sql-help.yaml +0 -11
- package/testdata/parity/import-media-abort-noninteractive.yaml +0 -19
- package/testdata/parity/import-media-help.yaml +0 -12
- package/testdata/parity/import-media-invalid-archive.yaml +0 -18
- package/testdata/parity/import-media-status-completed.yaml +0 -19
- package/testdata/parity/import-media-status-failed.yaml +0 -18
- package/testdata/parity/import-media-url-completed.yaml +0 -18
- package/testdata/parity/import-sql-bad-extension.yaml +0 -26
- package/testdata/parity/import-sql-help.yaml +0 -12
- package/testdata/parity/import-sql-in-progress.yaml +0 -26
- package/testdata/parity/import-sql-invalid-md5.yaml +0 -27
- package/testdata/parity/import-sql-noninteractive-abort.yaml +0 -20
- package/testdata/parity/import-sql-status-completed.yaml +0 -17
- package/testdata/parity/import-sql-status-no-job.yaml +0 -17
- package/testdata/parity/import-sql-validation-failure.yaml +0 -18
- package/testdata/parity/import-validate-files-clean.yaml +0 -18
- package/testdata/parity/import-validate-files-not-dir.yaml +0 -16
- package/testdata/parity/import-validate-sql-clean.yaml +0 -23
- package/testdata/parity/import-validate-sql-dangerous-stmt.yaml +0 -27
- package/testdata/parity/import-validate-sql-multisite-warn.yaml +0 -23
- package/testdata/parity/logs-baseline.yaml +0 -24
- package/testdata/parity/logs-batch.yaml +0 -24
- package/testdata/parity/logs-empty.yaml +0 -15
- package/testdata/parity/logs-format-json.yaml +0 -15
- package/testdata/parity/logs-limit-100.yaml +0 -24
- package/testdata/parity/phpmyadmin-error.yaml +0 -24
- package/testdata/parity/phpmyadmin-print.yaml +0 -22
- package/testdata/parity/phpmyadmin-silent.yaml +0 -16
- package/testdata/parity/recordings/app-get-baseline/app.json +0 -11
- package/testdata/parity/recordings/app-get-custom-deploy/app.json +0 -8
- package/testdata/parity/recordings/app-get-json/app.json +0 -11
- package/testdata/parity/recordings/app-get-not-found/app.json +0 -1
- package/testdata/parity/recordings/app-list-baseline/apps.json +0 -1
- package/testdata/parity/recordings/app-list-csv/apps.json +0 -1
- package/testdata/parity/recordings/app-list-empty/apps.json +0 -1
- package/testdata/parity/recordings/app-list-json/apps.json +0 -1
- package/testdata/parity/recordings/backup-db-already-in-progress/backup-status-1.json +0 -1
- package/testdata/parity/recordings/backup-db-already-in-progress/backup-status-2.json +0 -1
- package/testdata/parity/recordings/backup-db-completed/backup-status-1.json +0 -1
- package/testdata/parity/recordings/backup-db-completed/backup-status-2.json +0 -1
- package/testdata/parity/recordings/backup-db-completed/backup-status-3.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-from-file/purge.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-from-file/resolve-app.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-from-file/urls.txt +0 -2
- package/testdata/parity/recordings/cache-purge-url-multi/purge.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-multi/resolve-app.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-single/purge.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-single/resolve-app.json +0 -1
- package/testdata/parity/recordings/config-software-get/resolve-app.json +0 -1
- package/testdata/parity/recordings/config-software-update/resolve-app.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/mutation-elevated.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/mutation-success.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-create-session.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-exchange.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-status-verified.json +0 -1
- package/testdata/parity/recordings/envvar-delete-baseline/delete.json +0 -1
- package/testdata/parity/recordings/envvar-delete-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-delete-prod-cancel/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-delete-typed-mismatch/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-baseline/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-lowercase-input/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-lowercase-input/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-named-help/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-named-help/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-not-found/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-not-found/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-getall-baseline/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-getall-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-getall-empty/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-getall-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-getall-keyvalue/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-getall-keyvalue/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-baseline/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-empty/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-ids/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-ids/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-json/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-json/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-keyvalue/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-keyvalue/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-baseline/add.json +0 -1
- package/testdata/parity/recordings/envvar-set-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-baseline/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-invalid-name/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-invalid-name/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-newrelic-blocked/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-newrelic-blocked/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-prod-cancel/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-prod-cancel/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/add.json +0 -1
- package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/value.txt +0 -1
- package/testdata/parity/recordings/export-sql-completed/export-status-1.json +0 -1
- package/testdata/parity/recordings/export-sql-completed/export-status-2.json +0 -1
- package/testdata/parity/recordings/import-media-invalid-archive/file.sql +0 -1
- package/testdata/parity/recordings/import-media-shared/abort-media-import.json +0 -1
- package/testdata/parity/recordings/import-media-shared/env-info.json +0 -1
- package/testdata/parity/recordings/import-media-shared/resolve-app.json +0 -1
- package/testdata/parity/recordings/import-media-shared/start-media-import.json +0 -1
- package/testdata/parity/recordings/import-media-status-completed/progress.json +0 -1
- package/testdata/parity/recordings/import-media-status-failed/progress.json +0 -1
- package/testdata/parity/recordings/import-media-url-completed/progress.json +0 -1
- package/testdata/parity/recordings/import-sql-bad-extension/file.txt +0 -1
- package/testdata/parity/recordings/import-sql-in-progress/env-info.json +0 -1
- package/testdata/parity/recordings/import-sql-in-progress/resolve-app.json +0 -1
- package/testdata/parity/recordings/import-sql-noninteractive-abort/clean.sql +0 -5
- package/testdata/parity/recordings/import-sql-shared/env-info.json +0 -1
- package/testdata/parity/recordings/import-sql-shared/multisite.json +0 -1
- package/testdata/parity/recordings/import-sql-shared/resolve-app.json +0 -1
- package/testdata/parity/recordings/import-sql-status-completed/progress.json +0 -1
- package/testdata/parity/recordings/import-sql-status-no-job/progress.json +0 -1
- package/testdata/parity/recordings/import-sql-validation-failure/dirty.sql +0 -6
- package/testdata/parity/recordings/import-validate-files-clean/config.json +0 -1
- package/testdata/parity/recordings/import-validate-files-clean/uploads/2020/06/a.jpg +0 -1
- package/testdata/parity/recordings/import-validate-files-clean/uploads/2020/06/b.png +0 -1
- package/testdata/parity/recordings/import-validate-sql-clean/clean.sql +0 -17
- package/testdata/parity/recordings/import-validate-sql-dangerous-stmt/dangerous.sql +0 -11
- package/testdata/parity/recordings/import-validate-sql-multisite-warn/multisite.sql +0 -12
- package/testdata/parity/recordings/logs-baseline/logs.json +0 -1
- package/testdata/parity/recordings/logs-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-batch/logs.json +0 -1
- package/testdata/parity/recordings/logs-batch/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-empty/logs.json +0 -1
- package/testdata/parity/recordings/logs-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-format-json/logs.json +0 -1
- package/testdata/parity/recordings/logs-format-json/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-limit-100/logs.json +0 -1
- package/testdata/parity/recordings/logs-limit-100/resolve-app.json +0 -1
- package/testdata/parity/recordings/m7c-shared/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-error/enable.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-error/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/enable.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/generate.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/status.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/enable.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/generate.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/status.json +0 -1
- package/testdata/parity/recordings/slowlogs-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-baseline/slowlogs.json +0 -1
- package/testdata/parity/recordings/slowlogs-csv/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-csv/slowlogs.json +0 -1
- package/testdata/parity/recordings/slowlogs-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-empty/slowlogs.json +0 -1
- package/testdata/parity/recordings/slowlogs-limit-50/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-limit-50/slowlogs.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/resolve-app.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/sync-start.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/sync-status-1.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/sync-status-2.json +0 -1
- package/testdata/parity/recordings/sync-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/sync-baseline/sync-start.json +0 -1
- package/testdata/parity/recordings/sync-baseline/sync-status-1.json +0 -1
- package/testdata/parity/recordings/sync-baseline/sync-status-2.json +0 -1
- package/testdata/parity/recordings/whoami-baseline/me-response.json +0 -1
- package/testdata/parity/recordings/wp-nodejs-rejected/resolve-app.json +0 -1
- package/testdata/parity/recordings/wp-production-confirm-decline/resolve-app.json +0 -1
- package/testdata/parity/recordings/wp-ssh-happy/resolve-app.json +0 -1
- package/testdata/parity/recordings/wp-websocket-redirect/resolve-app.json +0 -1
- package/testdata/parity/slowlogs-baseline.yaml +0 -18
- package/testdata/parity/slowlogs-csv.yaml +0 -16
- package/testdata/parity/slowlogs-empty.yaml +0 -17
- package/testdata/parity/slowlogs-limit-50.yaml +0 -16
- package/testdata/parity/sync-already-syncing.yaml +0 -20
- package/testdata/parity/sync-baseline.yaml +0 -19
- package/testdata/parity/version-smoke.yaml +0 -14
- package/testdata/parity/whoami-baseline.yaml +0 -14
- package/testdata/parity/wp-help.yaml +0 -12
- package/testdata/parity/wp-nodejs-rejected.yaml +0 -13
- package/testdata/parity/wp-production-confirm-decline.yaml +0 -14
- package/testdata/parity/wp-ssh-happy.yaml +0 -15
- package/testdata/parity/wp-websocket-redirect.yaml +0 -14
- package/testdata/parity-local/app-get-csv.yaml +0 -8
- package/testdata/parity-local/app-get-json.yaml +0 -8
- package/testdata/parity-local/app-get-table.yaml +0 -8
- package/testdata/parity-local/app-list-csv.yaml +0 -8
- package/testdata/parity-local/app-list-json.yaml +0 -8
- package/testdata/parity-local/app-list-table.yaml +0 -8
- package/testdata/parity-local/edge-workers/basic/edge-workers.json +0 -1
- package/testdata/parity-local/edge-workers/basic/workers/headers/assembly/index.ts +0 -1
- package/testdata/parity-local/edge-workers/basic/workers/headers/worker.json +0 -1
- package/testdata/parity-local/edge-workers/two-workers/edge-workers.json +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/a/assembly/index.ts +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/a/worker.json +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/b/assembly/index.ts +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/b/worker.json +0 -1
- package/testdata/parity-local/envvar-list-csv.yaml +0 -8
- package/testdata/parity-local/envvar-list-ids.yaml +0 -8
- package/testdata/parity-local/envvar-list-json.yaml +0 -8
- package/testdata/parity-local/envvar-list-keyvalue.yaml +0 -8
- package/testdata/parity-local/envvar-list-table.yaml +0 -8
- package/testdata/parity-local/software-get-csv.yaml +0 -8
- package/testdata/parity-local/software-get-json.yaml +0 -8
- package/testdata/parity-local/software-get-table.yaml +0 -8
- package/testdata/parity-local/whoami.yaml +0 -8
- package/testdata/update-fixture/main.go +0 -62
- package/third_party/go-search-replace/MANIFEST +0 -33
- package/tsconfig.json +0 -25
- /package/node_modules/lando/node_modules/{wrap-ansi → ansi-regex}/license +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! js-yaml 5.
|
|
1
|
+
/*! js-yaml 5.5.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
2
2
|
//#region src/tag.ts
|
|
3
3
|
var e = Symbol("NOT_RESOLVED");
|
|
4
4
|
function t(e, t) {
|
|
@@ -6,8 +6,8 @@ function t(e, t) {
|
|
|
6
6
|
return {
|
|
7
7
|
tagName: e,
|
|
8
8
|
nodeKind: "scalar",
|
|
9
|
-
implicit: (n = t.implicit)
|
|
10
|
-
matchByTagPrefix: (r = t.matchByTagPrefix)
|
|
9
|
+
implicit: (n = t.implicit) != null && n,
|
|
10
|
+
matchByTagPrefix: (r = t.matchByTagPrefix) != null && r,
|
|
11
11
|
implicitFirstChars: (i = t.implicitFirstChars) == null ? null : i,
|
|
12
12
|
resolve: t.resolve,
|
|
13
13
|
identify: t.identify,
|
|
@@ -22,7 +22,7 @@ function n(e, t) {
|
|
|
22
22
|
tagName: e,
|
|
23
23
|
nodeKind: "sequence",
|
|
24
24
|
implicit: !1,
|
|
25
|
-
matchByTagPrefix: (n = t.matchByTagPrefix)
|
|
25
|
+
matchByTagPrefix: (n = t.matchByTagPrefix) != null && n,
|
|
26
26
|
create: t.create,
|
|
27
27
|
addItem: t.addItem,
|
|
28
28
|
finalize: (r = t.finalize) == null ? ((e) => e) : r,
|
|
@@ -39,7 +39,7 @@ function r(e, t) {
|
|
|
39
39
|
tagName: e,
|
|
40
40
|
nodeKind: "mapping",
|
|
41
41
|
implicit: !1,
|
|
42
|
-
matchByTagPrefix: (n = t.matchByTagPrefix)
|
|
42
|
+
matchByTagPrefix: (n = t.matchByTagPrefix) != null && n,
|
|
43
43
|
create: t.create,
|
|
44
44
|
addPair: t.addPair,
|
|
45
45
|
has: t.has,
|
|
@@ -113,13 +113,13 @@ var i = t("tag:yaml.org,2002:str", {
|
|
|
113
113
|
"f",
|
|
114
114
|
"F"
|
|
115
115
|
],
|
|
116
|
-
resolve: (t) => u.indexOf(t)
|
|
116
|
+
resolve: (t) => u.indexOf(t) !== -1 || d.indexOf(t) === -1 && e,
|
|
117
117
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
118
118
|
represent: (e) => e ? "true" : "false"
|
|
119
119
|
}), p = ["true"], m = ["false"], h = t("tag:yaml.org,2002:bool", {
|
|
120
120
|
implicit: !0,
|
|
121
121
|
implicitFirstChars: ["t", "f"],
|
|
122
|
-
resolve: (t) => p.indexOf(t)
|
|
122
|
+
resolve: (t) => p.indexOf(t) !== -1 || m.indexOf(t) === -1 && e,
|
|
123
123
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
124
124
|
represent: (e) => e ? "true" : "false"
|
|
125
125
|
}), ee = [
|
|
@@ -160,7 +160,7 @@ var i = t("tag:yaml.org,2002:str", {
|
|
|
160
160
|
"o",
|
|
161
161
|
"O"
|
|
162
162
|
],
|
|
163
|
-
resolve: (t) => ee.indexOf(t)
|
|
163
|
+
resolve: (t) => ee.indexOf(t) !== -1 || te.indexOf(t) === -1 && e,
|
|
164
164
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
165
165
|
represent: (e) => e ? "true" : "false"
|
|
166
166
|
}), re = /* @__PURE__ */ RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), ie = /* @__PURE__ */ RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
|
|
@@ -307,7 +307,7 @@ function ke(e) {
|
|
|
307
307
|
let t = e.toString(10);
|
|
308
308
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
309
309
|
}
|
|
310
|
-
var
|
|
310
|
+
var Ae = t("tag:yaml.org,2002:float", {
|
|
311
311
|
implicit: !0,
|
|
312
312
|
implicitFirstChars: [
|
|
313
313
|
"-",
|
|
@@ -318,39 +318,39 @@ var _ = t("tag:yaml.org,2002:float", {
|
|
|
318
318
|
resolve: Oe,
|
|
319
319
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
320
320
|
represent: ke
|
|
321
|
-
}),
|
|
321
|
+
}), je = t("tag:yaml.org,2002:merge", {
|
|
322
322
|
implicit: !0,
|
|
323
323
|
implicitFirstChars: ["<"],
|
|
324
324
|
resolve: (t, n) => t === "<<" || n && t === "" ? "<<" : e,
|
|
325
325
|
identify: () => !1
|
|
326
|
-
}),
|
|
327
|
-
function
|
|
326
|
+
}), Me = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
327
|
+
function Ne(t) {
|
|
328
328
|
let n = t.replace(/\s/g, "");
|
|
329
|
-
if (n.length % 4 != 0 || !
|
|
329
|
+
if (n.length % 4 != 0 || !Me.test(n)) return e;
|
|
330
330
|
let r = atob(n), i = new Uint8Array(r.length);
|
|
331
331
|
for (let e = 0; e < r.length; e++) i[e] = r.charCodeAt(e);
|
|
332
332
|
return i;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Pe(e) {
|
|
335
335
|
let t = "";
|
|
336
336
|
for (let n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
|
|
337
337
|
return btoa(t);
|
|
338
338
|
}
|
|
339
|
-
var
|
|
340
|
-
resolve:
|
|
339
|
+
var Fe = t("tag:yaml.org,2002:binary", {
|
|
340
|
+
resolve: Ne,
|
|
341
341
|
identify: (e) => Object.prototype.toString.call(e) === "[object Uint8Array]",
|
|
342
|
-
represent:
|
|
343
|
-
}),
|
|
344
|
-
function
|
|
342
|
+
represent: Pe
|
|
343
|
+
}), Ie = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Le = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
344
|
+
function Re(e, t, n, r = 0, i = 0, a = 0, o = 0) {
|
|
345
345
|
let s = new Date(Date.UTC(e, t, n, r, i, a, o));
|
|
346
346
|
return s.setUTCFullYear(e, t, n), s;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
let n =
|
|
350
|
-
if (n === null && (n =
|
|
348
|
+
function ze(t) {
|
|
349
|
+
let n = Ie.exec(t);
|
|
350
|
+
if (n === null && (n = Le.exec(t)), n === null) return e;
|
|
351
351
|
let r = +n[1], i = n[2] - 1, a = +n[3];
|
|
352
352
|
if (!n[4]) {
|
|
353
|
-
let t =
|
|
353
|
+
let t = Re(r, i, a);
|
|
354
354
|
return t.getUTCFullYear() !== r || t.getUTCMonth() !== i || t.getUTCDate() !== a ? e : t;
|
|
355
355
|
}
|
|
356
356
|
let o = +n[4], s = +n[5], c = +n[6], l = 0;
|
|
@@ -360,7 +360,7 @@ function Re(t) {
|
|
|
360
360
|
for (; e.length < 3;) e += "0";
|
|
361
361
|
l = +e;
|
|
362
362
|
}
|
|
363
|
-
let u =
|
|
363
|
+
let u = Re(r, i, a, o, s, c, l);
|
|
364
364
|
if (u.getUTCFullYear() !== r || u.getUTCMonth() !== i || u.getUTCDate() !== a) return e;
|
|
365
365
|
if (n[9]) {
|
|
366
366
|
let t = +n[10], r = +(n[11] || 0);
|
|
@@ -370,13 +370,13 @@ function Re(t) {
|
|
|
370
370
|
}
|
|
371
371
|
return u;
|
|
372
372
|
}
|
|
373
|
-
var
|
|
373
|
+
var Be = t("tag:yaml.org,2002:timestamp", {
|
|
374
374
|
implicit: !0,
|
|
375
375
|
implicitFirstChars: [..."0123456789"],
|
|
376
|
-
resolve:
|
|
376
|
+
resolve: ze,
|
|
377
377
|
identify: (e) => e instanceof Date,
|
|
378
378
|
represent: (e) => e.toISOString()
|
|
379
|
-
}),
|
|
379
|
+
}), Ve = n("tag:yaml.org,2002:seq", {
|
|
380
380
|
create: () => [],
|
|
381
381
|
addItem: (e, t) => {
|
|
382
382
|
e.push(t);
|
|
@@ -385,19 +385,19 @@ var ze = t("tag:yaml.org,2002:timestamp", {
|
|
|
385
385
|
});
|
|
386
386
|
//#endregion
|
|
387
387
|
//#region src/common/object.ts
|
|
388
|
-
function
|
|
388
|
+
function _(e) {
|
|
389
389
|
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
390
390
|
let t = Object.getPrototypeOf(e);
|
|
391
391
|
return t === null || t === Object.prototype;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function He(e, t) {
|
|
394
394
|
let n = {};
|
|
395
395
|
for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
|
|
396
396
|
return n;
|
|
397
397
|
}
|
|
398
398
|
//#endregion
|
|
399
399
|
//#region src/tag/sequence/omap.ts
|
|
400
|
-
var
|
|
400
|
+
var Ue = n("tag:yaml.org,2002:omap", {
|
|
401
401
|
create: () => ({
|
|
402
402
|
list: [],
|
|
403
403
|
seen: /* @__PURE__ */ new Set()
|
|
@@ -407,7 +407,7 @@ var He = n("tag:yaml.org,2002:omap", {
|
|
|
407
407
|
if (t instanceof Map) {
|
|
408
408
|
if (t.size !== 1) return "cannot resolve an ordered map item";
|
|
409
409
|
n = t.keys().next().value;
|
|
410
|
-
} else if (
|
|
410
|
+
} else if (_(t)) {
|
|
411
411
|
let e = Object.keys(t);
|
|
412
412
|
if (e.length !== 1) return "cannot resolve an ordered map item";
|
|
413
413
|
n = e[0];
|
|
@@ -416,7 +416,7 @@ var He = n("tag:yaml.org,2002:omap", {
|
|
|
416
416
|
},
|
|
417
417
|
finalize: (e) => e.list,
|
|
418
418
|
identify: () => !1
|
|
419
|
-
}),
|
|
419
|
+
}), We = n("tag:yaml.org,2002:pairs", {
|
|
420
420
|
create: () => [],
|
|
421
421
|
addItem: (e, t) => {
|
|
422
422
|
if (t instanceof Map) return t.size === 1 ? (e.push(t.entries().next().value), "") : "cannot resolve a pairs item";
|
|
@@ -425,9 +425,9 @@ var He = n("tag:yaml.org,2002:omap", {
|
|
|
425
425
|
return r.length === 1 ? (e.push([r[0], n[r[0]]]), "") : "cannot resolve a pairs item";
|
|
426
426
|
},
|
|
427
427
|
identify: () => !1
|
|
428
|
-
}),
|
|
428
|
+
}), Ge = r("tag:yaml.org,2002:map", {
|
|
429
429
|
create: () => ({}),
|
|
430
|
-
identify:
|
|
430
|
+
identify: _,
|
|
431
431
|
represent: (e) => {
|
|
432
432
|
let t = /* @__PURE__ */ new Map();
|
|
433
433
|
for (let n of Object.keys(e)) t.set(n, e[n]);
|
|
@@ -449,7 +449,7 @@ var He = n("tag:yaml.org,2002:omap", {
|
|
|
449
449
|
let n = String(t);
|
|
450
450
|
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
451
451
|
}
|
|
452
|
-
}),
|
|
452
|
+
}), Ke = r("tag:yaml.org,2002:set", {
|
|
453
453
|
create: () => /* @__PURE__ */ new Set(),
|
|
454
454
|
identify: (e) => e instanceof Set,
|
|
455
455
|
represent: (e) => {
|
|
@@ -463,37 +463,37 @@ var He = n("tag:yaml.org,2002:omap", {
|
|
|
463
463
|
get: () => null
|
|
464
464
|
});
|
|
465
465
|
//#endregion
|
|
466
|
-
//#region \0@oxc-project+runtime@0.
|
|
467
|
-
function
|
|
466
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
|
|
467
|
+
function v(e) {
|
|
468
468
|
"@babel/helpers - typeof";
|
|
469
|
-
return
|
|
469
|
+
return v = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
470
470
|
return typeof e;
|
|
471
471
|
} : function(e) {
|
|
472
472
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
473
|
-
},
|
|
473
|
+
}, v(e);
|
|
474
474
|
}
|
|
475
475
|
//#endregion
|
|
476
|
-
//#region \0@oxc-project+runtime@0.
|
|
477
|
-
function
|
|
478
|
-
if (
|
|
476
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
|
|
477
|
+
function qe(e, t) {
|
|
478
|
+
if (v(e) != "object" || !e) return e;
|
|
479
479
|
var n = e[Symbol.toPrimitive];
|
|
480
480
|
if (n !== void 0) {
|
|
481
481
|
var r = n.call(e, t || "default");
|
|
482
|
-
if (
|
|
482
|
+
if (v(r) != "object") return r;
|
|
483
483
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
484
484
|
}
|
|
485
485
|
return (t === "string" ? String : Number)(e);
|
|
486
486
|
}
|
|
487
487
|
//#endregion
|
|
488
|
-
//#region \0@oxc-project+runtime@0.
|
|
489
|
-
function
|
|
490
|
-
var t =
|
|
491
|
-
return
|
|
488
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
|
|
489
|
+
function Je(e) {
|
|
490
|
+
var t = qe(e, "string");
|
|
491
|
+
return v(t) == "symbol" ? t : t + "";
|
|
492
492
|
}
|
|
493
493
|
//#endregion
|
|
494
|
-
//#region \0@oxc-project+runtime@0.
|
|
495
|
-
function
|
|
496
|
-
return (t =
|
|
494
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
|
|
495
|
+
function y(e, t, n) {
|
|
496
|
+
return (t = Je(t)) in e ? Object.defineProperty(e, t, {
|
|
497
497
|
value: n,
|
|
498
498
|
enumerable: !0,
|
|
499
499
|
configurable: !0,
|
|
@@ -501,8 +501,8 @@ function b(e, t, n) {
|
|
|
501
501
|
}) : e[t] = n, e;
|
|
502
502
|
}
|
|
503
503
|
//#endregion
|
|
504
|
-
//#region \0@oxc-project+runtime@0.
|
|
505
|
-
function
|
|
504
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectSpread2.js
|
|
505
|
+
function Ye(e, t) {
|
|
506
506
|
var n = Object.keys(e);
|
|
507
507
|
if (Object.getOwnPropertySymbols) {
|
|
508
508
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -512,12 +512,12 @@ function Je(e, t) {
|
|
|
512
512
|
}
|
|
513
513
|
return n;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function b(e) {
|
|
516
516
|
for (var t = 1; t < arguments.length; t++) {
|
|
517
517
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
518
|
-
t % 2 ?
|
|
519
|
-
|
|
520
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
518
|
+
t % 2 ? Ye(Object(n), !0).forEach(function(t) {
|
|
519
|
+
y(e, t, n[t]);
|
|
520
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ye(Object(n)).forEach(function(t) {
|
|
521
521
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
522
522
|
});
|
|
523
523
|
}
|
|
@@ -525,21 +525,21 @@ function x(e) {
|
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
527
|
//#region src/schema.ts
|
|
528
|
-
function
|
|
528
|
+
function Xe() {
|
|
529
529
|
return {
|
|
530
530
|
scalar: Object.create(null),
|
|
531
531
|
sequence: Object.create(null),
|
|
532
532
|
mapping: Object.create(null)
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Ze() {
|
|
536
536
|
return {
|
|
537
537
|
scalar: [],
|
|
538
538
|
sequence: [],
|
|
539
539
|
mapping: []
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Qe(e) {
|
|
543
543
|
let t = [];
|
|
544
544
|
for (let n of e) {
|
|
545
545
|
let e = t.length;
|
|
@@ -554,10 +554,10 @@ function Ze(e) {
|
|
|
554
554
|
}
|
|
555
555
|
return t;
|
|
556
556
|
}
|
|
557
|
-
var
|
|
557
|
+
var x = class t {
|
|
558
558
|
constructor(e) {
|
|
559
|
-
|
|
560
|
-
let t =
|
|
559
|
+
y(this, "tags", void 0), y(this, "implicitScalarTags", void 0), y(this, "implicitScalarByFirstChar", void 0), y(this, "implicitScalarAnyFirstChar", void 0), y(this, "defaultScalarTag", void 0), y(this, "defaultSequenceTag", void 0), y(this, "defaultMappingTag", void 0), y(this, "exact", void 0), y(this, "prefix", void 0);
|
|
560
|
+
let t = Qe(e), n = [], r = Xe(), i = Ze();
|
|
561
561
|
for (let e of t) {
|
|
562
562
|
if (e.nodeKind === "scalar" && e.implicit) {
|
|
563
563
|
if (e.matchByTagPrefix) throw Error("Implicit scalar tags cannot match by tag prefix");
|
|
@@ -570,9 +570,7 @@ var S = class t {
|
|
|
570
570
|
case "sequence":
|
|
571
571
|
e.matchByTagPrefix ? i.sequence.push(e) : r.sequence[e.tagName] = e;
|
|
572
572
|
break;
|
|
573
|
-
case "mapping":
|
|
574
|
-
e.matchByTagPrefix ? i.mapping.push(e) : r.mapping[e.tagName] = e;
|
|
575
|
-
break;
|
|
573
|
+
case "mapping": e.matchByTagPrefix ? i.mapping.push(e) : r.mapping[e.tagName] = e;
|
|
576
574
|
}
|
|
577
575
|
}
|
|
578
576
|
let a = n.filter((e) => e.implicitFirstChars === null), o = /* @__PURE__ */ new Set();
|
|
@@ -619,47 +617,47 @@ var S = class t {
|
|
|
619
617
|
for (let t of e) n = n.concat(t);
|
|
620
618
|
return new t([...this.tags, ...n]);
|
|
621
619
|
}
|
|
622
|
-
},
|
|
620
|
+
}, $e = new x([
|
|
623
621
|
i,
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
]),
|
|
627
|
-
|
|
622
|
+
Ve,
|
|
623
|
+
Ge
|
|
624
|
+
]), et = new x([
|
|
625
|
+
...$e.tags,
|
|
628
626
|
s,
|
|
629
627
|
h,
|
|
630
628
|
fe,
|
|
631
629
|
Te
|
|
632
|
-
]),
|
|
633
|
-
|
|
630
|
+
]), tt = new x([
|
|
631
|
+
...$e.tags,
|
|
634
632
|
o,
|
|
635
633
|
f,
|
|
636
634
|
se,
|
|
637
635
|
be
|
|
638
|
-
]),
|
|
639
|
-
|
|
636
|
+
]), nt = new x([
|
|
637
|
+
...$e.tags,
|
|
640
638
|
l,
|
|
641
639
|
ne,
|
|
642
640
|
g,
|
|
643
|
-
_,
|
|
644
|
-
ze,
|
|
645
641
|
Ae,
|
|
646
|
-
|
|
647
|
-
|
|
642
|
+
Be,
|
|
643
|
+
je,
|
|
644
|
+
Fe,
|
|
648
645
|
Ue,
|
|
649
|
-
|
|
650
|
-
|
|
646
|
+
We,
|
|
647
|
+
Ke
|
|
648
|
+
]), rt = nt.withTags(b(b({}, g), {}, { resolve: (t, n, r) => {
|
|
651
649
|
let i = g.resolve(t, n, r);
|
|
652
650
|
return i === e ? se.resolve(t, n, r) : i;
|
|
653
|
-
} }),
|
|
654
|
-
let i =
|
|
651
|
+
} }), b(b({}, Ae), {}, { resolve: (t, n, r) => {
|
|
652
|
+
let i = Ae.resolve(t, n, r);
|
|
655
653
|
return i === e ? be.resolve(t, n, r) : i;
|
|
656
|
-
} })),
|
|
654
|
+
} })), it = r("tag:yaml.org,2002:map", {
|
|
657
655
|
create: () => /* @__PURE__ */ new Map(),
|
|
658
656
|
addPair: (e, t, n) => (e.set(t, n), ""),
|
|
659
657
|
has: (e, t) => e.has(t),
|
|
660
658
|
keys: (e) => e.keys(),
|
|
661
659
|
get: (e, t) => e.get(t),
|
|
662
|
-
identify: (e) => e instanceof Map ||
|
|
660
|
+
identify: (e) => e instanceof Map || _(e),
|
|
663
661
|
represent: (e) => {
|
|
664
662
|
if (e instanceof Map) return e;
|
|
665
663
|
let t = /* @__PURE__ */ new Map(), n = e;
|
|
@@ -669,7 +667,7 @@ var S = class t {
|
|
|
669
667
|
});
|
|
670
668
|
//#endregion
|
|
671
669
|
//#region src/tag/mapping/legacy_map.ts
|
|
672
|
-
function
|
|
670
|
+
function at(e) {
|
|
673
671
|
if (Array.isArray(e)) {
|
|
674
672
|
let t = Array.prototype.slice.call(e);
|
|
675
673
|
for (let e = 0; e < t.length; e++) {
|
|
@@ -680,16 +678,16 @@ function rt(e) {
|
|
|
680
678
|
}
|
|
681
679
|
return typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" ? "[object Object]" : String(e);
|
|
682
680
|
}
|
|
683
|
-
var
|
|
681
|
+
var ot = r("tag:yaml.org,2002:map", {
|
|
684
682
|
create: () => ({}),
|
|
685
|
-
identify:
|
|
683
|
+
identify: _,
|
|
686
684
|
represent: (e) => {
|
|
687
685
|
let t = /* @__PURE__ */ new Map();
|
|
688
686
|
for (let n of Object.keys(e)) t.set(n, e[n]);
|
|
689
687
|
return t;
|
|
690
688
|
},
|
|
691
689
|
addPair: (e, t, n) => {
|
|
692
|
-
let r =
|
|
690
|
+
let r = at(t);
|
|
693
691
|
return r === null ? "nested arrays are not supported inside keys" : (r === "__proto__" ? Object.defineProperty(e, r, {
|
|
694
692
|
value: n,
|
|
695
693
|
enumerable: !0,
|
|
@@ -698,7 +696,7 @@ var it = r("tag:yaml.org,2002:map", {
|
|
|
698
696
|
}) : e[r] = n, "");
|
|
699
697
|
},
|
|
700
698
|
has: (e, t) => {
|
|
701
|
-
let n =
|
|
699
|
+
let n = at(t);
|
|
702
700
|
return n !== null && Object.prototype.hasOwnProperty.call(e, n);
|
|
703
701
|
},
|
|
704
702
|
keys: (e) => Object.keys(e),
|
|
@@ -706,52 +704,52 @@ var it = r("tag:yaml.org,2002:map", {
|
|
|
706
704
|
let n = String(t);
|
|
707
705
|
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
708
706
|
}
|
|
709
|
-
}),
|
|
707
|
+
}), st = {
|
|
710
708
|
maxLength: 79,
|
|
711
709
|
indent: 1,
|
|
712
710
|
linesBefore: 3,
|
|
713
711
|
linesAfter: 2
|
|
714
712
|
};
|
|
715
|
-
function
|
|
713
|
+
function ct(e, t, n, r, i) {
|
|
716
714
|
let a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
717
715
|
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
718
716
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
719
717
|
pos: r - t + a.length
|
|
720
718
|
};
|
|
721
719
|
}
|
|
722
|
-
function
|
|
720
|
+
function lt(e, t) {
|
|
723
721
|
return " ".repeat(Math.max(t - e.length, 0)) + e;
|
|
724
722
|
}
|
|
725
|
-
function
|
|
723
|
+
function ut(e, t) {
|
|
726
724
|
if (!e.buffer) return null;
|
|
727
|
-
let n =
|
|
725
|
+
let n = b(b({}, st), t), r = /\r?\n|\r|\0/g, i = [0], a = [], o, s = -1;
|
|
728
726
|
for (; o = r.exec(e.buffer);) a.push(o.index), i.push(o.index + o[0].length), e.position <= o.index && s < 0 && (s = i.length - 2);
|
|
729
727
|
s < 0 && (s = i.length - 1);
|
|
730
728
|
let c = "", l = Math.min(e.line + n.linesAfter, a.length).toString().length, u = n.maxLength - (n.indent + l + 3);
|
|
731
729
|
for (let t = 1; t <= n.linesBefore && !(s - t < 0); t++) {
|
|
732
|
-
let r =
|
|
733
|
-
c = `${" ".repeat(n.indent)}${
|
|
730
|
+
let r = ct(e.buffer, i[s - t], a[s - t], e.position - (i[s] - i[s - t]), u);
|
|
731
|
+
c = `${" ".repeat(n.indent)}${lt((e.line - t + 1).toString(), l)} | ${r.str}\n${c}`;
|
|
734
732
|
}
|
|
735
|
-
let d =
|
|
736
|
-
c += `${" ".repeat(n.indent)}${
|
|
733
|
+
let d = ct(e.buffer, i[s], a[s], e.position, u);
|
|
734
|
+
c += `${" ".repeat(n.indent)}${lt((e.line + 1).toString(), l)} | ${d.str}\n`, c += `${"-".repeat(n.indent + l + 3 + d.pos)}^\n`;
|
|
737
735
|
for (let t = 1; t <= n.linesAfter && !(s + t >= a.length); t++) {
|
|
738
|
-
let r =
|
|
739
|
-
c += `${" ".repeat(n.indent)}${
|
|
736
|
+
let r = ct(e.buffer, i[s + t], a[s + t], e.position - (i[s] - i[s + t]), u);
|
|
737
|
+
c += `${" ".repeat(n.indent)}${lt((e.line + t + 1).toString(), l)} | ${r.str}\n`;
|
|
740
738
|
}
|
|
741
739
|
return c.replace(/\n$/, "");
|
|
742
740
|
}
|
|
743
741
|
//#endregion
|
|
744
742
|
//#region src/common/exception.ts
|
|
745
|
-
function
|
|
743
|
+
function dt(e, t) {
|
|
746
744
|
let n = "";
|
|
747
745
|
return e.mark ? (e.mark.name && (n += `in "${e.mark.name}" `), n += `(${e.mark.line + 1}:${e.mark.column + 1})`, !t && e.mark.snippet && (n += `\n\n${e.mark.snippet}`), `${e.reason} ${n}`) : e.reason;
|
|
748
746
|
}
|
|
749
|
-
var
|
|
747
|
+
var S = class e extends Error {
|
|
750
748
|
constructor(e, t) {
|
|
751
|
-
super(),
|
|
749
|
+
super(), y(this, "reason", void 0), y(this, "mark", void 0), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = dt(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
752
750
|
}
|
|
753
751
|
toString(e) {
|
|
754
|
-
return `${this.name}: ${
|
|
752
|
+
return `${this.name}: ${dt(this, e)}`;
|
|
755
753
|
}
|
|
756
754
|
static throwAt(t, n, r, i = "") {
|
|
757
755
|
let a = 0, o = 0;
|
|
@@ -766,30 +764,30 @@ var w = class e extends Error {
|
|
|
766
764
|
line: a,
|
|
767
765
|
column: n - o
|
|
768
766
|
};
|
|
769
|
-
throw s.snippet =
|
|
767
|
+
throw s.snippet = ut(s), new e(r, s);
|
|
770
768
|
}
|
|
771
|
-
},
|
|
769
|
+
}, C = {
|
|
772
770
|
DOCUMENT: 1,
|
|
773
771
|
SEQUENCE: 2,
|
|
774
772
|
MAPPING: 3,
|
|
775
773
|
SCALAR: 4,
|
|
776
774
|
ALIAS: 5,
|
|
777
775
|
POP: 6
|
|
778
|
-
},
|
|
776
|
+
}, w = {
|
|
779
777
|
PLAIN: 1,
|
|
780
778
|
SINGLE_QUOTED: 2,
|
|
781
779
|
DOUBLE_QUOTED: 3,
|
|
782
780
|
LITERAL_BLOCK: 4,
|
|
783
781
|
FOLDED_BLOCK: 5
|
|
784
|
-
},
|
|
782
|
+
}, T = {
|
|
785
783
|
BLOCK: 1,
|
|
786
784
|
FLOW: 2
|
|
787
|
-
},
|
|
785
|
+
}, E = {
|
|
788
786
|
CLIP: 1,
|
|
789
787
|
STRIP: 2,
|
|
790
788
|
KEEP: 3
|
|
791
|
-
},
|
|
792
|
-
function
|
|
789
|
+
}, ft = -1;
|
|
790
|
+
function pt(e) {
|
|
793
791
|
switch (e) {
|
|
794
792
|
case 48: return "\0";
|
|
795
793
|
case 97: return "\x07";
|
|
@@ -812,18 +810,18 @@ function dt(e) {
|
|
|
812
810
|
default: return "";
|
|
813
811
|
}
|
|
814
812
|
}
|
|
815
|
-
var
|
|
816
|
-
for (let e = 0; e < 256; e++)
|
|
817
|
-
function
|
|
813
|
+
var mt = Array(256), ht = Array(256);
|
|
814
|
+
for (let e = 0; e < 256; e++) mt[e] = +!!pt(e), ht[e] = pt(e);
|
|
815
|
+
function gt(e) {
|
|
818
816
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
819
817
|
}
|
|
820
|
-
function
|
|
818
|
+
function _t(e) {
|
|
821
819
|
return e >= 48 && e <= 57 ? e - 48 : (e | 32) - 97 + 10;
|
|
822
820
|
}
|
|
823
|
-
function
|
|
821
|
+
function vt(e) {
|
|
824
822
|
return e === 120 ? 2 : e === 117 ? 4 : 8;
|
|
825
823
|
}
|
|
826
|
-
function
|
|
824
|
+
function D(e, t, n) {
|
|
827
825
|
let r = 0;
|
|
828
826
|
for (; t < n;) {
|
|
829
827
|
let n = e.charCodeAt(t);
|
|
@@ -837,62 +835,62 @@ function _t(e, t, n) {
|
|
|
837
835
|
breaks: r
|
|
838
836
|
};
|
|
839
837
|
}
|
|
840
|
-
function
|
|
838
|
+
function yt(e) {
|
|
841
839
|
return e === 1 ? " " : "\n".repeat(e - 1);
|
|
842
840
|
}
|
|
843
|
-
function
|
|
841
|
+
function bt(e, t, n) {
|
|
844
842
|
let r = "", i = t, a = t, o = t;
|
|
845
843
|
for (; i < n;) {
|
|
846
844
|
let t = e.charCodeAt(i);
|
|
847
845
|
if (t === 10 || t === 13) {
|
|
848
846
|
r += e.slice(a, o);
|
|
849
|
-
let t =
|
|
850
|
-
r +=
|
|
847
|
+
let t = D(e, i, n);
|
|
848
|
+
r += yt(t.breaks), i = a = o = t.position;
|
|
851
849
|
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
852
850
|
}
|
|
853
851
|
return r + e.slice(a, o);
|
|
854
852
|
}
|
|
855
|
-
function
|
|
853
|
+
function xt(e, t, n) {
|
|
856
854
|
let r = "", i = t, a = t, o = t;
|
|
857
855
|
for (; i < n;) {
|
|
858
856
|
let t = e.charCodeAt(i);
|
|
859
857
|
if (t === 39) r += e.slice(a, i) + "'", i += 2, a = o = i;
|
|
860
858
|
else if (t === 10 || t === 13) {
|
|
861
859
|
r += e.slice(a, o);
|
|
862
|
-
let t =
|
|
863
|
-
r +=
|
|
860
|
+
let t = D(e, i, n);
|
|
861
|
+
r += yt(t.breaks), i = a = o = t.position;
|
|
864
862
|
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
865
863
|
}
|
|
866
864
|
return r + e.slice(a, n);
|
|
867
865
|
}
|
|
868
|
-
function
|
|
866
|
+
function St(e, t, n) {
|
|
869
867
|
let r = "", i = t, a = t, o = t;
|
|
870
868
|
for (; i < n;) {
|
|
871
869
|
let t = e.charCodeAt(i);
|
|
872
870
|
if (t === 92) {
|
|
873
871
|
r += e.slice(a, i), i++;
|
|
874
872
|
let t = e.charCodeAt(i);
|
|
875
|
-
if (t === 10 || t === 13) i =
|
|
876
|
-
else if (t < 256 &&
|
|
873
|
+
if (t === 10 || t === 13) i = D(e, i, n).position;
|
|
874
|
+
else if (t < 256 && mt[t]) r += ht[t], i++;
|
|
877
875
|
else {
|
|
878
|
-
let n =
|
|
876
|
+
let n = vt(t), a = 0;
|
|
879
877
|
for (; n > 0; n--) {
|
|
880
878
|
i++;
|
|
881
|
-
let t =
|
|
879
|
+
let t = _t(e.charCodeAt(i));
|
|
882
880
|
a = (a << 4) + t;
|
|
883
881
|
}
|
|
884
|
-
r +=
|
|
882
|
+
r += gt(a), i++;
|
|
885
883
|
}
|
|
886
884
|
a = o = i;
|
|
887
885
|
} else if (t === 10 || t === 13) {
|
|
888
886
|
r += e.slice(a, o);
|
|
889
|
-
let t =
|
|
890
|
-
r +=
|
|
887
|
+
let t = D(e, i, n);
|
|
888
|
+
r += yt(t.breaks), i = a = o = t.position;
|
|
891
889
|
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
892
890
|
}
|
|
893
891
|
return r + e.slice(a, n);
|
|
894
892
|
}
|
|
895
|
-
function
|
|
893
|
+
function Ct(e, t, n, r, i, a) {
|
|
896
894
|
let o = r < 0 ? 0 : r, s = e.slice(t, n).replace(/\r\n?/g, "\n"), c = s === "" ? [] : (s.endsWith("\n") ? s.slice(0, -1) : s).split("\n"), l = "", u = !1, d = 0, f = !1;
|
|
897
895
|
for (let e of c) {
|
|
898
896
|
let t = 0;
|
|
@@ -904,71 +902,95 @@ function St(e, t, n, r, i, a) {
|
|
|
904
902
|
let n = e.slice(o), i = n.charCodeAt(0);
|
|
905
903
|
a ? i === 32 || i === 9 ? (f = !0, l += "\n".repeat(u ? 1 + d : d)) : f ? (f = !1, l += "\n".repeat(d + 1)) : d === 0 ? u && (l += " ") : l += "\n".repeat(d) : l += "\n".repeat(u ? 1 + d : d), l += n, u = !0, d = 0;
|
|
906
904
|
}
|
|
907
|
-
return i ===
|
|
905
|
+
return i === E.KEEP ? l += "\n".repeat(u ? 1 + d : d) : i !== E.STRIP && u && (l += "\n"), l;
|
|
908
906
|
}
|
|
909
|
-
function
|
|
910
|
-
if (t.valueStart ===
|
|
907
|
+
function wt(e, t) {
|
|
908
|
+
if (t.valueStart === ft) return "";
|
|
911
909
|
let { valueStart: n, valueEnd: r } = t;
|
|
912
910
|
if (t.fast) return e.slice(n, r);
|
|
913
911
|
switch (t.style) {
|
|
914
|
-
case
|
|
915
|
-
case
|
|
916
|
-
case
|
|
917
|
-
case
|
|
918
|
-
default: return
|
|
912
|
+
case w.SINGLE_QUOTED: return xt(e, n, r);
|
|
913
|
+
case w.DOUBLE_QUOTED: return St(e, n, r);
|
|
914
|
+
case w.LITERAL_BLOCK: return Ct(e, n, r, t.indent, t.chomping, !1);
|
|
915
|
+
case w.FOLDED_BLOCK: return Ct(e, n, r, t.indent, t.chomping, !0);
|
|
916
|
+
default: return bt(e, n, r);
|
|
919
917
|
}
|
|
920
918
|
}
|
|
921
919
|
//#endregion
|
|
922
920
|
//#region src/common/tagname.ts
|
|
923
|
-
var
|
|
921
|
+
var Tt = Object.assign(Object.create(null), {
|
|
924
922
|
"!": "!",
|
|
925
923
|
"!!": "tag:yaml.org,2002:"
|
|
926
|
-
});
|
|
927
|
-
function
|
|
928
|
-
return
|
|
924
|
+
}), Et = "-#;/?:@&=+$_.~*'()", Dt = Et + "!,[]", Ot = "0123456789ABCDEF";
|
|
925
|
+
function O(e) {
|
|
926
|
+
return "%" + Ot[e >> 4] + Ot[e & 15];
|
|
927
|
+
}
|
|
928
|
+
function kt(e, t) {
|
|
929
|
+
let n = t ? Et : Dt, r = "";
|
|
930
|
+
for (let t = 0; t < e.length; t++) {
|
|
931
|
+
let i = e.charCodeAt(t);
|
|
932
|
+
i >= 48 && i <= 57 || i >= 65 && i <= 90 || i >= 97 && i <= 122 || n.includes(e[t]) ? r += e[t] : (i >= 55296 && i <= 56319 && (i = 65536 + ((i & 1023) << 10) + (e.charCodeAt(++t) & 1023)), r += i < 128 ? O(i) : i < 2048 ? O(192 | i >> 6) + O(128 | i & 63) : i < 65536 ? O(224 | i >> 12) + O(128 | i >> 6 & 63) + O(128 | i & 63) : O(240 | i >> 18) + O(128 | i >> 12 & 63) + O(128 | i >> 6 & 63) + O(128 | i & 63));
|
|
933
|
+
}
|
|
934
|
+
return r;
|
|
929
935
|
}
|
|
930
|
-
function
|
|
936
|
+
function At(e) {
|
|
937
|
+
let t = "", n = 0;
|
|
938
|
+
for (; n < e.length;) {
|
|
939
|
+
if (e.charCodeAt(n) !== 37) {
|
|
940
|
+
t += e[n++];
|
|
941
|
+
continue;
|
|
942
|
+
}
|
|
943
|
+
let r = parseInt(e.slice(n + 1, n + 3), 16);
|
|
944
|
+
if (n += 3, r >= 192) {
|
|
945
|
+
let t = r < 224 ? 1 : r < 240 ? 2 : 3;
|
|
946
|
+
for (r &= (1 << 6 - t) - 1; t-- > 0;) r = r << 6 | parseInt(e.slice(n + 1, n + 3), 16) & 63, n += 3;
|
|
947
|
+
}
|
|
948
|
+
r < 65536 ? t += String.fromCharCode(r) : (r -= 65536, t += String.fromCharCode(55296 | r >> 10, 56320 | r & 1023));
|
|
949
|
+
}
|
|
950
|
+
return t;
|
|
951
|
+
}
|
|
952
|
+
function jt(e, t) {
|
|
931
953
|
var n, r;
|
|
932
|
-
if (e.startsWith("!<") && e.endsWith(">")) return
|
|
933
|
-
let i = e.indexOf("!", 1), a = i === -1 ? "!" : e.slice(0, i + 1)
|
|
934
|
-
return
|
|
954
|
+
if (e.startsWith("!<") && e.endsWith(">")) return At(e.slice(2, -1));
|
|
955
|
+
let i = e.indexOf("!", 1), a = i === -1 ? "!" : e.slice(0, i + 1);
|
|
956
|
+
return At((n = (r = t == null ? void 0 : t[a]) == null ? Tt[a] : r) == null ? a : n) + At(e.slice(a.length));
|
|
935
957
|
}
|
|
936
|
-
function
|
|
958
|
+
function Mt(e) {
|
|
937
959
|
let t = e;
|
|
938
|
-
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${
|
|
960
|
+
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${kt(t, !0)}`) : t.slice(0, 18) === "tag:yaml.org,2002:" ? `!!${kt(t.slice(18), !0)}` : `!<${kt(t, !1)}>`;
|
|
939
961
|
}
|
|
940
962
|
//#endregion
|
|
941
963
|
//#region src/parser/constructor.ts
|
|
942
|
-
var k = -1,
|
|
964
|
+
var k = -1, Nt = "tag:yaml.org,2002:merge", Pt = {
|
|
943
965
|
filename: "",
|
|
944
|
-
schema:
|
|
966
|
+
schema: tt,
|
|
945
967
|
json: !1,
|
|
946
968
|
maxTotalMergeKeys: 1e4,
|
|
947
969
|
maxAliases: -1
|
|
948
970
|
};
|
|
949
|
-
function
|
|
971
|
+
function Ft(e) {
|
|
950
972
|
return "tagStart" in e && e.tagStart !== k ? e.tagStart : "anchorStart" in e && e.anchorStart !== k ? e.anchorStart : "valueStart" in e && e.valueStart !== k ? e.valueStart : "start" in e ? e.start : 0;
|
|
951
973
|
}
|
|
952
974
|
function A(e, t) {
|
|
953
|
-
|
|
975
|
+
S.throwAt(e.source, e.position, t, e.filename);
|
|
954
976
|
}
|
|
955
|
-
function
|
|
977
|
+
function It(e, t, n, r) {
|
|
956
978
|
try {
|
|
957
979
|
return n.finalize(r);
|
|
958
980
|
} catch (n) {
|
|
959
|
-
if (n instanceof
|
|
960
|
-
|
|
981
|
+
if (n instanceof S) throw n;
|
|
982
|
+
S.throwAt(e.source, t, n instanceof Error ? n.message : String(n), e.filename);
|
|
961
983
|
}
|
|
962
984
|
}
|
|
963
|
-
function
|
|
964
|
-
let r =
|
|
985
|
+
function Lt(t, n) {
|
|
986
|
+
let r = wt(t.source, n), i = n.tagStart === k ? "" : t.source.slice(n.tagStart, n.tagEnd), a = t.schema.defaultScalarTag;
|
|
965
987
|
if (i !== "") {
|
|
966
988
|
var o;
|
|
967
989
|
if (i === "!") return {
|
|
968
990
|
value: r,
|
|
969
991
|
tag: a
|
|
970
992
|
};
|
|
971
|
-
let n =
|
|
993
|
+
let n = jt(i, t.tagHandlers), s = t.schema.lookupScalarTag(n);
|
|
972
994
|
if (s) {
|
|
973
995
|
let i = s.resolve(r, !0, n);
|
|
974
996
|
return i === e && A(t, `cannot resolve a node with !<${n}> explicit tag`), {
|
|
@@ -981,68 +1003,68 @@ function Mt(t, n) {
|
|
|
981
1003
|
r !== "" && A(t, `cannot resolve a node with !<${n}> explicit tag`);
|
|
982
1004
|
let e = c.create(n);
|
|
983
1005
|
return {
|
|
984
|
-
value: c.carrierIsResult ? e :
|
|
1006
|
+
value: c.carrierIsResult ? e : It(t, t.position, c, e),
|
|
985
1007
|
tag: c
|
|
986
1008
|
};
|
|
987
1009
|
}
|
|
988
1010
|
A(t, `unknown scalar tag !<${n}>`);
|
|
989
1011
|
}
|
|
990
|
-
return n.style ===
|
|
1012
|
+
return n.style === w.PLAIN ? t.schema.resolveImplicitScalarTag(r) : {
|
|
991
1013
|
value: a.resolve(r, !1, a.tagName),
|
|
992
1014
|
tag: a
|
|
993
1015
|
};
|
|
994
1016
|
}
|
|
995
|
-
function
|
|
1017
|
+
function Rt(e, t, n) {
|
|
996
1018
|
let r = t.tagStart === k ? "" : e.source.slice(t.tagStart, t.tagEnd);
|
|
997
|
-
return r === "" || r === "!" ? n :
|
|
1019
|
+
return r === "" || r === "!" ? n : jt(r, e.tagHandlers);
|
|
998
1020
|
}
|
|
999
|
-
function
|
|
1021
|
+
function zt(e) {
|
|
1000
1022
|
return e.nodeKind === "mapping";
|
|
1001
1023
|
}
|
|
1002
|
-
function
|
|
1024
|
+
function Bt(e) {
|
|
1003
1025
|
e.totalMergeKeys++, e.maxTotalMergeKeys !== -1 && e.totalMergeKeys > e.maxTotalMergeKeys && A(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`);
|
|
1004
1026
|
}
|
|
1005
|
-
function
|
|
1006
|
-
|
|
1027
|
+
function Vt(e, t, n, r) {
|
|
1028
|
+
Bt(e);
|
|
1007
1029
|
for (let i of r.keys(n)) {
|
|
1008
|
-
if (
|
|
1030
|
+
if (Bt(e), t.tag.has(t.value, i)) continue;
|
|
1009
1031
|
let a = t.tag.addPair(t.value, i, r.get(n, i));
|
|
1010
1032
|
a && A(e, a), t.overridable != null || (t.overridable = /* @__PURE__ */ new Set()), t.overridable.add(i);
|
|
1011
1033
|
}
|
|
1012
1034
|
}
|
|
1013
|
-
function
|
|
1014
|
-
if (e.position = t.keyPosition,
|
|
1035
|
+
function Ht(e, t, n, r) {
|
|
1036
|
+
if (e.position = t.keyPosition, zt(r)) Vt(e, t, n, r);
|
|
1015
1037
|
else if (r.nodeKind === "sequence" && Array.isArray(n)) {
|
|
1016
1038
|
n.length > 100 && A(e, "abnormal merge sequence size");
|
|
1017
1039
|
for (let r of n) {
|
|
1018
1040
|
let n = e.nodeTags.get(r);
|
|
1019
|
-
n || A(e, "cannot merge mappings; the provided source object is unacceptable"),
|
|
1041
|
+
n || A(e, "cannot merge mappings; the provided source object is unacceptable"), Vt(e, t, r, n);
|
|
1020
1042
|
}
|
|
1021
1043
|
} else A(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
1022
1044
|
}
|
|
1023
|
-
function
|
|
1045
|
+
function Ut(e, t, n, r, i) {
|
|
1024
1046
|
var a, o;
|
|
1025
1047
|
if (e.position = t.keyPosition, t.keyIsMerge) {
|
|
1026
|
-
|
|
1048
|
+
Ht(e, t, r, i);
|
|
1027
1049
|
return;
|
|
1028
1050
|
}
|
|
1029
1051
|
!e.json && t.tag.has(t.value, n) && !((a = t.overridable) != null && a.has(n)) && A(e, "duplicated mapping key");
|
|
1030
1052
|
let s = t.tag.addPair(t.value, n, r);
|
|
1031
1053
|
s && A(e, s), (o = t.overridable) == null || o.delete(n);
|
|
1032
1054
|
}
|
|
1033
|
-
function
|
|
1055
|
+
function Wt(e, t, n) {
|
|
1034
1056
|
let r = e.frames[e.frames.length - 1];
|
|
1035
1057
|
if (r.kind === "document") r.value = t, r.hasValue = !0;
|
|
1036
1058
|
else if (r.kind === "sequence") {
|
|
1037
|
-
|
|
1059
|
+
zt(n) && e.nodeTags.set(t, n);
|
|
1038
1060
|
let i = r.tag.addItem(r.value, t, r.index++);
|
|
1039
1061
|
i && A(e, i);
|
|
1040
1062
|
} else if (r.hasKey) {
|
|
1041
1063
|
let i = r.key;
|
|
1042
|
-
r.key = void 0, r.hasKey = !1,
|
|
1043
|
-
} else r.key = t, r.keyPosition = e.position, r.hasKey = !0, r.keyIsMerge = n.tagName ===
|
|
1064
|
+
r.key = void 0, r.hasKey = !1, Ut(e, r, i, t, n);
|
|
1065
|
+
} else r.key = t, r.keyPosition = e.position, r.hasKey = !0, r.keyIsMerge = n.tagName === Nt;
|
|
1044
1066
|
}
|
|
1045
|
-
function
|
|
1067
|
+
function Gt(e, t, n, r, i) {
|
|
1046
1068
|
if (t.anchorStart !== k) {
|
|
1047
1069
|
let a = {
|
|
1048
1070
|
value: n,
|
|
@@ -1053,8 +1075,8 @@ function Bt(e, t, n, r, i) {
|
|
|
1053
1075
|
}
|
|
1054
1076
|
return null;
|
|
1055
1077
|
}
|
|
1056
|
-
function
|
|
1057
|
-
let n =
|
|
1078
|
+
function Kt(e, t) {
|
|
1079
|
+
let n = b(b(b({}, Pt), t), {}, {
|
|
1058
1080
|
events: e,
|
|
1059
1081
|
documents: [],
|
|
1060
1082
|
eventIndex: 0,
|
|
@@ -1068,8 +1090,8 @@ function Vt(e, t) {
|
|
|
1068
1090
|
});
|
|
1069
1091
|
for (; n.eventIndex < n.events.length;) {
|
|
1070
1092
|
let e = n.events[n.eventIndex++];
|
|
1071
|
-
switch (n.position =
|
|
1072
|
-
case
|
|
1093
|
+
switch (n.position = Ft(e), e.type) {
|
|
1094
|
+
case C.DOCUMENT:
|
|
1073
1095
|
n.anchors = /* @__PURE__ */ new Map(), n.nodeTags = /* @__PURE__ */ new Map(), n.aliasCount = 0, n.tagHandlers = Object.create(null);
|
|
1074
1096
|
for (let t of e.directives) t.kind === "tag" && (n.tagHandlers[t.handle] = t.prefix);
|
|
1075
1097
|
n.frames.push({
|
|
@@ -1079,15 +1101,15 @@ function Vt(e, t) {
|
|
|
1079
1101
|
hasValue: !1
|
|
1080
1102
|
});
|
|
1081
1103
|
break;
|
|
1082
|
-
case
|
|
1083
|
-
let { value: t, tag: r } =
|
|
1084
|
-
|
|
1104
|
+
case C.SCALAR: {
|
|
1105
|
+
let { value: t, tag: r } = Lt(n, e);
|
|
1106
|
+
Gt(n, e, t, r, !0), Wt(n, t, r);
|
|
1085
1107
|
break;
|
|
1086
1108
|
}
|
|
1087
|
-
case
|
|
1088
|
-
let t =
|
|
1109
|
+
case C.SEQUENCE: {
|
|
1110
|
+
let t = Rt(n, e, "tag:yaml.org,2002:seq"), r = n.schema.lookupSequenceTag(t);
|
|
1089
1111
|
r || A(n, `unknown sequence tag !<${t}>`);
|
|
1090
|
-
let i = r.create(t), a =
|
|
1112
|
+
let i = r.create(t), a = Gt(n, e, i, r, r.carrierIsResult);
|
|
1091
1113
|
n.frames.push({
|
|
1092
1114
|
kind: "sequence",
|
|
1093
1115
|
position: n.position,
|
|
@@ -1098,10 +1120,10 @@ function Vt(e, t) {
|
|
|
1098
1120
|
});
|
|
1099
1121
|
break;
|
|
1100
1122
|
}
|
|
1101
|
-
case
|
|
1102
|
-
let t =
|
|
1123
|
+
case C.MAPPING: {
|
|
1124
|
+
let t = Rt(n, e, "tag:yaml.org,2002:map"), r = n.schema.lookupMappingTag(t);
|
|
1103
1125
|
r || A(n, `unknown mapping tag !<${t}>`);
|
|
1104
|
-
let i = r.create(t), a =
|
|
1126
|
+
let i = r.create(t), a = Gt(n, e, i, r, r.carrierIsResult);
|
|
1105
1127
|
n.frames.push({
|
|
1106
1128
|
kind: "mapping",
|
|
1107
1129
|
position: n.position,
|
|
@@ -1116,18 +1138,18 @@ function Vt(e, t) {
|
|
|
1116
1138
|
});
|
|
1117
1139
|
break;
|
|
1118
1140
|
}
|
|
1119
|
-
case
|
|
1141
|
+
case C.ALIAS: {
|
|
1120
1142
|
n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases && A(n, `aliases exceeded maxAliases (${n.maxAliases})`);
|
|
1121
1143
|
let t = n.source.slice(e.anchorStart, e.anchorEnd), r = n.anchors.get(t);
|
|
1122
|
-
r || A(n, `unidentified alias "${t}"`), r.isValueFinal || A(n, `recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),
|
|
1144
|
+
r || A(n, `unidentified alias "${t}"`), r.isValueFinal || A(n, `recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`), Wt(n, r.value, r.tag);
|
|
1123
1145
|
break;
|
|
1124
1146
|
}
|
|
1125
|
-
case
|
|
1147
|
+
case C.POP: {
|
|
1126
1148
|
let e = n.frames.pop();
|
|
1127
1149
|
if (e.kind === "mapping" && e.hasKey && (n.position = e.keyPosition, A(n, "incomplete mapping pair in event stream")), e.kind === "document") n.documents.push(e.value);
|
|
1128
1150
|
else {
|
|
1129
|
-
let t = e.tag.carrierIsResult ? e.value :
|
|
1130
|
-
e.anchor && (e.anchor.value = t, e.anchor.isValueFinal = !0),
|
|
1151
|
+
let t = e.tag.carrierIsResult ? e.value : It(n, e.position, e.tag, e.value);
|
|
1152
|
+
e.anchor && (e.anchor.value = t, e.anchor.isValueFinal = !0), Wt(n, t, e.tag);
|
|
1131
1153
|
}
|
|
1132
1154
|
break;
|
|
1133
1155
|
}
|
|
@@ -1137,21 +1159,21 @@ function Vt(e, t) {
|
|
|
1137
1159
|
}
|
|
1138
1160
|
//#endregion
|
|
1139
1161
|
//#region src/parser/parser.ts
|
|
1140
|
-
var j = -1,
|
|
1162
|
+
var j = -1, qt = Object.prototype.hasOwnProperty, M = 1, Jt = 2, Yt = 3, Xt = 4, Zt = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Qt = /[,\[\]{}]/, $t = /^(?:!|!!|![0-9A-Za-z-]+!)$/, en = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, tn = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, nn = RegExp(`^(?:${en})*$`), rn = RegExp(`^(?:${tn})+$`), an = RegExp(`^(?:!(?:${en})*|${tn}(?:${en})*)$`), on = {
|
|
1141
1163
|
filename: "",
|
|
1142
1164
|
maxDepth: 100
|
|
1143
1165
|
};
|
|
1144
|
-
function
|
|
1166
|
+
function sn(e, t, n) {
|
|
1145
1167
|
e.events.push({
|
|
1146
|
-
type:
|
|
1168
|
+
type: C.DOCUMENT,
|
|
1147
1169
|
explicitStart: t,
|
|
1148
1170
|
explicitEnd: n,
|
|
1149
1171
|
directives: e.directives
|
|
1150
1172
|
});
|
|
1151
1173
|
}
|
|
1152
|
-
function
|
|
1174
|
+
function cn(e, t, n, r, i, a, o) {
|
|
1153
1175
|
e.events.push({
|
|
1154
|
-
type:
|
|
1176
|
+
type: C.SEQUENCE,
|
|
1155
1177
|
start: t,
|
|
1156
1178
|
anchorStart: n,
|
|
1157
1179
|
anchorEnd: r,
|
|
@@ -1160,9 +1182,9 @@ function nn(e, t, n, r, i, a, o) {
|
|
|
1160
1182
|
style: o
|
|
1161
1183
|
});
|
|
1162
1184
|
}
|
|
1163
|
-
function
|
|
1185
|
+
function ln(e, t, n, r, i, a, o) {
|
|
1164
1186
|
e.events.push({
|
|
1165
|
-
type:
|
|
1187
|
+
type: C.MAPPING,
|
|
1166
1188
|
start: t,
|
|
1167
1189
|
anchorStart: n,
|
|
1168
1190
|
anchorEnd: r,
|
|
@@ -1171,20 +1193,20 @@ function rn(e, t, n, r, i, a, o) {
|
|
|
1171
1193
|
style: o
|
|
1172
1194
|
});
|
|
1173
1195
|
}
|
|
1174
|
-
function
|
|
1196
|
+
function un(e, t) {
|
|
1175
1197
|
e.events.splice(t.eventsLength, 0, {
|
|
1176
|
-
type:
|
|
1198
|
+
type: C.MAPPING,
|
|
1177
1199
|
start: t.position,
|
|
1178
1200
|
anchorStart: j,
|
|
1179
1201
|
anchorEnd: j,
|
|
1180
1202
|
tagStart: j,
|
|
1181
1203
|
tagEnd: j,
|
|
1182
|
-
style:
|
|
1204
|
+
style: T.FLOW
|
|
1183
1205
|
});
|
|
1184
1206
|
}
|
|
1185
|
-
function N(e, t, n, r, i, a, o, s, c =
|
|
1207
|
+
function N(e, t, n, r, i, a, o, s, c = E.CLIP, l = -1, u = !1) {
|
|
1186
1208
|
e.events.push({
|
|
1187
|
-
type:
|
|
1209
|
+
type: C.SCALAR,
|
|
1188
1210
|
valueStart: t,
|
|
1189
1211
|
valueEnd: n,
|
|
1190
1212
|
anchorStart: r,
|
|
@@ -1197,20 +1219,20 @@ function N(e, t, n, r, i, a, o, s, c = O.CLIP, l = -1, u = !1) {
|
|
|
1197
1219
|
fast: u
|
|
1198
1220
|
});
|
|
1199
1221
|
}
|
|
1200
|
-
function
|
|
1222
|
+
function dn(e, t, n) {
|
|
1201
1223
|
e.events.push({
|
|
1202
|
-
type:
|
|
1224
|
+
type: C.ALIAS,
|
|
1203
1225
|
anchorStart: t,
|
|
1204
1226
|
anchorEnd: n
|
|
1205
1227
|
});
|
|
1206
1228
|
}
|
|
1207
1229
|
function P(e) {
|
|
1208
|
-
e.events.push({ type:
|
|
1230
|
+
e.events.push({ type: C.POP });
|
|
1209
1231
|
}
|
|
1210
1232
|
function F(e) {
|
|
1211
|
-
N(e, j, j, j, j, j, j,
|
|
1233
|
+
N(e, j, j, j, j, j, j, w.PLAIN);
|
|
1212
1234
|
}
|
|
1213
|
-
function
|
|
1235
|
+
function fn() {
|
|
1214
1236
|
return {
|
|
1215
1237
|
anchorStart: j,
|
|
1216
1238
|
anchorEnd: j,
|
|
@@ -1232,7 +1254,7 @@ function L(e, t) {
|
|
|
1232
1254
|
e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.events.length = t.eventsLength;
|
|
1233
1255
|
}
|
|
1234
1256
|
function R(e, t) {
|
|
1235
|
-
|
|
1257
|
+
S.throwAt(e.input.slice(0, e.length), e.position, t, e.filename);
|
|
1236
1258
|
}
|
|
1237
1259
|
function z(e) {
|
|
1238
1260
|
return e === 10 || e === 13;
|
|
@@ -1249,21 +1271,21 @@ function H(e) {
|
|
|
1249
1271
|
function U(e) {
|
|
1250
1272
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1251
1273
|
}
|
|
1252
|
-
function
|
|
1274
|
+
function pn(e) {
|
|
1253
1275
|
return e >= 48 && e <= 57 ? e - 48 : -1;
|
|
1254
1276
|
}
|
|
1255
|
-
function
|
|
1277
|
+
function mn(e) {
|
|
1256
1278
|
if (e >= 48 && e <= 57) return e - 48;
|
|
1257
1279
|
let t = e | 32;
|
|
1258
1280
|
return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
|
|
1259
1281
|
}
|
|
1260
|
-
function
|
|
1282
|
+
function hn(e) {
|
|
1261
1283
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1262
1284
|
}
|
|
1263
|
-
function
|
|
1285
|
+
function gn(e) {
|
|
1264
1286
|
return e === 48 || e === 97 || e === 98 || e === 116 || e === 9 || e === 110 || e === 118 || e === 102 || e === 114 || e === 101 || e === 32 || e === 34 || e === 47 || e === 92 || e === 78 || e === 95 || e === 76 || e === 80;
|
|
1265
1287
|
}
|
|
1266
|
-
function
|
|
1288
|
+
function _n(e) {
|
|
1267
1289
|
e.input.charCodeAt(e.position) === 10 ? e.position++ : (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++), e.line++, e.lineStart = e.position, e.lineIndent = 0, e.firstTabInLine = -1;
|
|
1268
1290
|
}
|
|
1269
1291
|
function W(e, t) {
|
|
@@ -1274,7 +1296,7 @@ function W(e, t) {
|
|
|
1274
1296
|
r = e.input.charCodeAt(++e.position);
|
|
1275
1297
|
while (!z(r) && r !== 0);
|
|
1276
1298
|
if (!z(r)) break;
|
|
1277
|
-
for (
|
|
1299
|
+
for (_n(e), n++, i = !0, r = e.input.charCodeAt(e.position); r === 32;) e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1278
1300
|
}
|
|
1279
1301
|
return n;
|
|
1280
1302
|
}
|
|
@@ -1286,26 +1308,27 @@ function G(e, t = e.position) {
|
|
|
1286
1308
|
}
|
|
1287
1309
|
return !1;
|
|
1288
1310
|
}
|
|
1289
|
-
function
|
|
1311
|
+
function vn(e) {
|
|
1290
1312
|
e.position === e.lineStart && e.input.charCodeAt(e.position) === 65279 && (e.position++, e.lineStart = e.position);
|
|
1291
1313
|
}
|
|
1292
|
-
function
|
|
1314
|
+
function yn(e) {
|
|
1293
1315
|
if (e.position !== e.lineStart) return !1;
|
|
1294
1316
|
if (G(e)) return !0;
|
|
1295
1317
|
if (e.input.charCodeAt(e.position) !== 65279) return !1;
|
|
1296
1318
|
let t = I(e);
|
|
1297
|
-
|
|
1319
|
+
vn(e), W(e, !0);
|
|
1298
1320
|
let n = e.input.charCodeAt(e.position), r = e.position === e.lineStart && (n === 37 || n === 45 && G(e));
|
|
1299
1321
|
return L(e, t), r;
|
|
1300
1322
|
}
|
|
1301
|
-
function
|
|
1323
|
+
function bn(e) {
|
|
1302
1324
|
let t = e.input.charCodeAt(e.position);
|
|
1303
1325
|
for (; t !== 0 && !z(t);) t = e.input.charCodeAt(++e.position);
|
|
1304
1326
|
}
|
|
1305
|
-
function
|
|
1306
|
-
|
|
1327
|
+
function xn(e, t, n) {
|
|
1328
|
+
let r = Zt.exec(e.input.slice(t, n));
|
|
1329
|
+
r !== null && (e.position = t + r.index + r[0].length - 1, R(e, "the stream contains non-printable characters"));
|
|
1307
1330
|
}
|
|
1308
|
-
function
|
|
1331
|
+
function Sn(e, t, n) {
|
|
1309
1332
|
if (e.input.charCodeAt(e.position) !== 33) return !1;
|
|
1310
1333
|
t.tagStart !== j && R(e, "duplication of a tag property");
|
|
1311
1334
|
let r = e.position, i = !1, a = !1, o = "!", s = e.input.charCodeAt(++e.position);
|
|
@@ -1315,29 +1338,29 @@ function _n(e, t, n) {
|
|
|
1315
1338
|
for (; s !== 0 && s !== 62;) s = e.input.charCodeAt(++e.position);
|
|
1316
1339
|
s !== 62 && R(e, "unexpected end of the stream within a verbatim tag"), l = e.input.slice(c, e.position), e.position++;
|
|
1317
1340
|
} else {
|
|
1318
|
-
for (; s !== 0 && !V(s) && !(n && U(s));) s === 33 && (a ? R(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(c - 1, e.position + 1),
|
|
1319
|
-
l = e.input.slice(c, e.position),
|
|
1341
|
+
for (; s !== 0 && !V(s) && !(n && U(s));) s === 33 && (a ? R(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(c - 1, e.position + 1), $t.test(o) || R(e, "named tag handle cannot contain such characters"), a = !0, c = e.position + 1)), s = e.input.charCodeAt(++e.position);
|
|
1342
|
+
l = e.input.slice(c, e.position), Qt.test(l) && R(e, "tag suffix cannot contain flow indicator characters");
|
|
1320
1343
|
}
|
|
1321
|
-
return l && !(i ?
|
|
1344
|
+
return l && !(i ? nn.test(l) : rn.test(l)) && R(e, `tag name cannot contain such characters: ${l}`), !i && o !== "!" && o !== "!!" && !qt.call(e.tagHandlers, o) && R(e, `undeclared tag handle "${o}"`), t.tagStart = r, t.tagEnd = e.position, !0;
|
|
1322
1345
|
}
|
|
1323
|
-
function
|
|
1346
|
+
function Cn(e, t) {
|
|
1324
1347
|
if (e.input.charCodeAt(e.position) !== 38) return !1;
|
|
1325
1348
|
t.anchorStart !== j && R(e, "duplication of an anchor property"), e.position++;
|
|
1326
1349
|
let n = e.position;
|
|
1327
1350
|
for (; e.input.charCodeAt(e.position) !== 0 && !V(e.input.charCodeAt(e.position)) && !U(e.input.charCodeAt(e.position));) e.position++;
|
|
1328
1351
|
return e.position === n && R(e, "name of an anchor node must contain at least one character"), t.anchorStart = n, t.anchorEnd = e.position, !0;
|
|
1329
1352
|
}
|
|
1330
|
-
function
|
|
1353
|
+
function wn(e, t) {
|
|
1331
1354
|
if (e.input.charCodeAt(e.position) !== 42) return !1;
|
|
1332
1355
|
(t.anchorStart !== j || t.tagStart !== j) && R(e, "alias node should not have any properties"), e.position++;
|
|
1333
1356
|
let n = e.position;
|
|
1334
1357
|
for (; e.input.charCodeAt(e.position) !== 0 && !V(e.input.charCodeAt(e.position)) && !U(e.input.charCodeAt(e.position));) e.position++;
|
|
1335
|
-
return e.position === n && R(e, "name of an alias node must contain at least one character"),
|
|
1358
|
+
return e.position === n && R(e, "name of an alias node must contain at least one character"), dn(e, n, e.position), !0;
|
|
1336
1359
|
}
|
|
1337
|
-
function
|
|
1360
|
+
function Tn(e, t) {
|
|
1338
1361
|
W(e, !1), e.lineIndent < t && R(e, "deficient indentation");
|
|
1339
1362
|
}
|
|
1340
|
-
function
|
|
1363
|
+
function En(e, t, n) {
|
|
1341
1364
|
if (e.input.charCodeAt(e.position) !== 39) return !1;
|
|
1342
1365
|
e.position++;
|
|
1343
1366
|
let r = e.position, i = !0;
|
|
@@ -1349,13 +1372,13 @@ function xn(e, t, n) {
|
|
|
1349
1372
|
continue;
|
|
1350
1373
|
}
|
|
1351
1374
|
let t = e.position;
|
|
1352
|
-
return e.position++, N(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd,
|
|
1375
|
+
return e.position++, N(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, w.SINGLE_QUOTED, E.CLIP, -1, i), !0;
|
|
1353
1376
|
}
|
|
1354
|
-
z(a) ? (i = !1,
|
|
1377
|
+
z(a) ? (i = !1, Tn(e, t)) : e.position === e.lineStart && G(e) ? R(e, "unexpected end of the document within a single quoted scalar") : a !== 9 && a < 32 ? R(e, "expected valid JSON character") : e.position++;
|
|
1355
1378
|
}
|
|
1356
1379
|
R(e, "unexpected end of the stream within a single quoted scalar");
|
|
1357
1380
|
}
|
|
1358
|
-
function
|
|
1381
|
+
function Dn(e, t, n) {
|
|
1359
1382
|
if (e.input.charCodeAt(e.position) !== 34) return !1;
|
|
1360
1383
|
e.position++;
|
|
1361
1384
|
let r = e.position, i = !0;
|
|
@@ -1363,35 +1386,35 @@ function Sn(e, t, n) {
|
|
|
1363
1386
|
let a = e.input.charCodeAt(e.position);
|
|
1364
1387
|
if (a === 34) {
|
|
1365
1388
|
let t = e.position;
|
|
1366
|
-
return e.position++, N(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd,
|
|
1389
|
+
return e.position++, N(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, w.DOUBLE_QUOTED, E.CLIP, -1, i), !0;
|
|
1367
1390
|
}
|
|
1368
1391
|
if (a === 92) {
|
|
1369
1392
|
i = !1;
|
|
1370
1393
|
let n = e.input.charCodeAt(++e.position);
|
|
1371
|
-
if (z(n))
|
|
1372
|
-
else if (
|
|
1394
|
+
if (z(n)) Tn(e, t);
|
|
1395
|
+
else if (gn(n)) e.position++;
|
|
1373
1396
|
else {
|
|
1374
|
-
let t =
|
|
1375
|
-
for (t === 0 && R(e, "unknown escape sequence"); t-- > 0;) e.position++,
|
|
1397
|
+
let t = hn(n);
|
|
1398
|
+
for (t === 0 && R(e, "unknown escape sequence"); t-- > 0;) e.position++, mn(e.input.charCodeAt(e.position)) < 0 && R(e, "expected hexadecimal character");
|
|
1376
1399
|
e.position++;
|
|
1377
1400
|
}
|
|
1378
|
-
} else z(a) ? (i = !1,
|
|
1401
|
+
} else z(a) ? (i = !1, Tn(e, t)) : e.position === e.lineStart && G(e) ? R(e, "unexpected end of the document within a double quoted scalar") : a !== 9 && a < 32 ? R(e, "expected valid JSON character") : e.position++;
|
|
1379
1402
|
}
|
|
1380
1403
|
R(e, "unexpected end of the stream within a double quoted scalar");
|
|
1381
1404
|
}
|
|
1382
|
-
function
|
|
1383
|
-
let r = e.input.charCodeAt(e.position), i =
|
|
1405
|
+
function On(e, t, n) {
|
|
1406
|
+
let r = e.input.charCodeAt(e.position), i = E.CLIP, a = -1, o = !1;
|
|
1384
1407
|
if (r !== 124 && r !== 62) return !1;
|
|
1385
|
-
let s = r === 124 ?
|
|
1408
|
+
let s = r === 124 ? w.LITERAL_BLOCK : w.FOLDED_BLOCK;
|
|
1386
1409
|
for (e.position++; e.input.charCodeAt(e.position) !== 0;) {
|
|
1387
|
-
let n = e.input.charCodeAt(e.position), r =
|
|
1388
|
-
if (n === 43 || n === 45) i !==
|
|
1410
|
+
let n = e.input.charCodeAt(e.position), r = pn(n);
|
|
1411
|
+
if (n === 43 || n === 45) i !== E.CLIP && R(e, "repeat of a chomping mode identifier"), i = n === 43 ? E.KEEP : E.STRIP, e.position++;
|
|
1389
1412
|
else if (r >= 0) r === 0 && R(e, "bad explicit indentation width of a block scalar; it cannot be less than one"), o && R(e, "repeat of an indentation width identifier"), a = t + r - 1, o = !0, e.position++;
|
|
1390
1413
|
else break;
|
|
1391
1414
|
}
|
|
1392
1415
|
let c = !1;
|
|
1393
1416
|
for (; B(e.input.charCodeAt(e.position));) c = !0, e.position++;
|
|
1394
|
-
c && e.input.charCodeAt(e.position) === 35 &&
|
|
1417
|
+
c && e.input.charCodeAt(e.position) === 35 && bn(e), z(e.input.charCodeAt(e.position)) ? _n(e) : e.input.charCodeAt(e.position) !== 0 && R(e, "a line break is expected");
|
|
1395
1418
|
let l = o ? a : -1, u = 0, d = e.position, f = e.position;
|
|
1396
1419
|
for (; e.input.charCodeAt(e.position) !== 0;) {
|
|
1397
1420
|
let n = e.position, r = 0;
|
|
@@ -1401,8 +1424,8 @@ function Cn(e, t, n) {
|
|
|
1401
1424
|
l >= 0 ? r > l && (f = n + r) : r > 0 && (f = n + r);
|
|
1402
1425
|
break;
|
|
1403
1426
|
}
|
|
1404
|
-
if (
|
|
1405
|
-
if (!o && l === -1 && z(i) && (u = Math.max(u, r)), !o && l === -1 && !z(i) && (i === 9 && r < t && (e.position = n + r, R(e, "tab characters must not be used in indentation")), r < u && (e.position = n + r, R(e, "bad indentation of a mapping entry"))), l === -1 && i !== 0 && !z(i) && r < t) {
|
|
1427
|
+
if (yn(e)) break;
|
|
1428
|
+
if (!o && l === -1 && z(i) && (u = Math.max(u, r)), !o && l === -1 && !z(i) && (i === 9 && r < t && (e.position = n + r, R(e, "tab characters must not be used in indentation")), r >= t && r < u && (e.position = n + r, R(e, "bad indentation of a mapping entry"))), l === -1 && i !== 0 && !z(i) && r < t) {
|
|
1406
1429
|
e.lineIndent = r, e.position = n + r;
|
|
1407
1430
|
break;
|
|
1408
1431
|
}
|
|
@@ -1412,23 +1435,23 @@ function Cn(e, t, n) {
|
|
|
1412
1435
|
e.lineIndent = r, e.position = n + r;
|
|
1413
1436
|
break;
|
|
1414
1437
|
}
|
|
1415
|
-
|
|
1438
|
+
bn(e), f = e.position, z(e.input.charCodeAt(e.position)) && (_n(e), f = e.position);
|
|
1416
1439
|
}
|
|
1417
|
-
return
|
|
1440
|
+
return xn(e, d, f), N(e, d, f, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, s, i, l), !0;
|
|
1418
1441
|
}
|
|
1419
|
-
function
|
|
1442
|
+
function kn(e, t) {
|
|
1420
1443
|
let n = e.input.charCodeAt(e.position), r = t === M;
|
|
1421
|
-
if (n === 0 || V(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 ||
|
|
1444
|
+
if (n === 0 || V(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 || U(n)) return !1;
|
|
1422
1445
|
if (n === 63 || n === 45) {
|
|
1423
1446
|
let t = e.input.charCodeAt(e.position + 1);
|
|
1424
1447
|
if (H(t) || r && U(t)) return !1;
|
|
1425
1448
|
}
|
|
1426
1449
|
return !0;
|
|
1427
1450
|
}
|
|
1428
|
-
function
|
|
1429
|
-
if (!
|
|
1451
|
+
function An(e, t, n, r) {
|
|
1452
|
+
if (!kn(e, n)) return !1;
|
|
1430
1453
|
let i = e.position, a = e.position, o = e.input.charCodeAt(e.position), s = n === M, c = !1;
|
|
1431
|
-
for (; o !== 0 && !
|
|
1454
|
+
for (; o !== 0 && !yn(e);) {
|
|
1432
1455
|
if (o === 58) {
|
|
1433
1456
|
let t = e.input.charCodeAt(e.position + 1);
|
|
1434
1457
|
if (H(t) || s && U(t)) break;
|
|
@@ -1446,17 +1469,17 @@ function Tn(e, t, n, r) {
|
|
|
1446
1469
|
}
|
|
1447
1470
|
B(o) || (a = e.position + 1), o = e.input.charCodeAt(++e.position);
|
|
1448
1471
|
}
|
|
1449
|
-
return a
|
|
1472
|
+
return a !== i && (xn(e, i, a), N(e, i, a, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, w.PLAIN, E.CLIP, -1, !c), !0);
|
|
1450
1473
|
}
|
|
1451
1474
|
function K(e, t) {
|
|
1452
1475
|
let n = e.line;
|
|
1453
1476
|
W(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && R(e, "deficient indentation");
|
|
1454
1477
|
}
|
|
1455
|
-
function
|
|
1478
|
+
function jn(e, t, n) {
|
|
1456
1479
|
let r = e.input.charCodeAt(e.position), i = r === 123, a = e.position, o = !0;
|
|
1457
1480
|
if (r !== 91 && r !== 123) return !1;
|
|
1458
1481
|
let s = i ? 125 : 93;
|
|
1459
|
-
for (i ?
|
|
1482
|
+
for (i ? ln(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, T.FLOW) : cn(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, T.FLOW), e.position++; e.input.charCodeAt(e.position) !== 0;) {
|
|
1460
1483
|
K(e, t);
|
|
1461
1484
|
let n = e.input.charCodeAt(e.position);
|
|
1462
1485
|
if (n === s) return e.position++, P(e), !0;
|
|
@@ -1464,84 +1487,88 @@ function En(e, t, n) {
|
|
|
1464
1487
|
let r = !1, a = !1;
|
|
1465
1488
|
n === 63 && V(e.input.charCodeAt(e.position + 1)) && (r = a = !0, e.position += 1, K(e, t));
|
|
1466
1489
|
let c = e.line, l = I(e), u = q(e, t, M, !1, !0);
|
|
1467
|
-
K(e, t), n = e.input.charCodeAt(e.position), (i || a || e.line === c) && n === 58 ? (r = !0, e.position++, K(e, t), i ||
|
|
1490
|
+
K(e, t), n = e.input.charCodeAt(e.position), (i || a || e.line === c) && n === 58 ? (r = !0, e.position++, K(e, t), i || un(e, l), u || F(e), q(e, t, M, !1, !0) || F(e), K(e, t), i || P(e)) : i && r ? (u || F(e), F(e)) : i ? F(e) : r && (un(e, l), u || F(e), F(e), P(e)), n = e.input.charCodeAt(e.position), n === 44 ? (o = !0, e.position++) : o = !1;
|
|
1468
1491
|
}
|
|
1469
1492
|
R(e, "unexpected end of the stream within a flow collection");
|
|
1470
1493
|
}
|
|
1471
|
-
function
|
|
1494
|
+
function Mn(e, t, n) {
|
|
1472
1495
|
if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !H(e.input.charCodeAt(e.position + 1))) return !1;
|
|
1473
|
-
for (
|
|
1496
|
+
for (cn(e, e.position, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, T.BLOCK); e.input.charCodeAt(e.position) === 45 && H(e.input.charCodeAt(e.position + 1));) {
|
|
1474
1497
|
e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, R(e, "tab characters must not be used in indentation"));
|
|
1475
1498
|
let n = e.line;
|
|
1476
1499
|
e.position++;
|
|
1477
1500
|
let r = W(e, !0) > 0;
|
|
1478
|
-
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && H(e.input.charCodeAt(e.position + 1)) && R(e, "bad indentation of a sequence entry"), r && e.lineIndent <= t ? F(e) : q(e, t,
|
|
1501
|
+
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && H(e.input.charCodeAt(e.position + 1)) && R(e, "bad indentation of a sequence entry"), r && e.lineIndent <= t ? F(e) : q(e, t, Yt, !1, !0), W(e, !0), e.lineIndent < t || e.position >= e.length) break;
|
|
1479
1502
|
e.lineIndent > t && R(e, "bad indentation of a sequence entry"), e.line === n && e.input.charCodeAt(e.position) === 45 && H(e.input.charCodeAt(e.position + 1)) && R(e, "bad indentation of a sequence entry");
|
|
1480
1503
|
}
|
|
1481
1504
|
return P(e), !0;
|
|
1482
1505
|
}
|
|
1483
|
-
function
|
|
1506
|
+
function Nn(e, t, n, r) {
|
|
1484
1507
|
let i = !1, a = !1, o = !1, s = !1;
|
|
1485
1508
|
if (e.firstTabInLine !== -1) return !1;
|
|
1486
1509
|
let c = e.input.charCodeAt(e.position);
|
|
1487
1510
|
for (; c !== 0;) {
|
|
1488
1511
|
!i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, R(e, "tab characters must not be used in indentation"));
|
|
1489
1512
|
let l = e.input.charCodeAt(e.position + 1), u = e.line;
|
|
1490
|
-
if ((c === 63 || c === 58) && H(l)) o || (
|
|
1513
|
+
if ((c === 63 || c === 58) && H(l)) o || (ln(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, T.BLOCK), o = !0), c === 63 ? (i && F(e), a = !0, i = !0) : (i || (F(e), a = !0), i = !1), e.position += 1, s = !0;
|
|
1491
1514
|
else {
|
|
1492
1515
|
i && (F(e), i = !1);
|
|
1493
1516
|
let t = I(e);
|
|
1494
|
-
if (!q(e, n,
|
|
1517
|
+
if (!q(e, n, Jt, !1, !0)) break;
|
|
1495
1518
|
if (e.line === u) {
|
|
1496
1519
|
for (c = e.input.charCodeAt(e.position); B(c);) c = e.input.charCodeAt(++e.position);
|
|
1497
|
-
if (c === 58) {
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1520
|
+
if (c === 58) c = e.input.charCodeAt(++e.position), H(c) || R(e, "a whitespace character is expected after the key-value separator within a block mapping"), o || (e.events.splice(t.eventsLength, 0, {
|
|
1521
|
+
type: C.MAPPING,
|
|
1522
|
+
start: t.position,
|
|
1523
|
+
anchorStart: r.anchorStart,
|
|
1524
|
+
anchorEnd: r.anchorEnd,
|
|
1525
|
+
tagStart: r.tagStart,
|
|
1526
|
+
tagEnd: r.tagEnd,
|
|
1527
|
+
style: T.BLOCK
|
|
1528
|
+
}), o = !0), a = !0, i = !1, s = !1;
|
|
1529
|
+
else if (a) R(e, "expected ':' after a mapping key");
|
|
1504
1530
|
else return r.anchorStart !== j || r.tagStart !== j ? (L(e, t), !1) : !0;
|
|
1505
1531
|
} else if (a) R(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1506
1532
|
else return r.anchorStart !== j || r.tagStart !== j ? (L(e, t), !1) : !0;
|
|
1507
1533
|
}
|
|
1508
|
-
if (q(e, t,
|
|
1534
|
+
if (q(e, t, Xt, !0, s) && (s = !1), i || s && (F(e), s = !1), W(e, !0), c = e.input.charCodeAt(e.position), (e.line === u || e.lineIndent > t) && c !== 0) R(e, "bad indentation of a mapping entry");
|
|
1509
1535
|
else if (e.lineIndent < t) break;
|
|
1510
1536
|
}
|
|
1511
1537
|
return a ? (i && F(e), o && P(e), !0) : !1;
|
|
1512
1538
|
}
|
|
1513
1539
|
function q(e, t, n, r, i, a = !0) {
|
|
1514
1540
|
e.depth >= e.maxDepth && R(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
|
|
1515
|
-
let o = 1, s = !1, c = !1, l = null, u =
|
|
1541
|
+
let o = 1, s = !1, c = !1, l = null, u = fn(), d = n === Xt || n === Yt, f = d, p = d;
|
|
1516
1542
|
if (r && W(e, !0) && (s = !0, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1), o === 1) for (;;) {
|
|
1517
1543
|
let r = e.input.charCodeAt(e.position), i = I(e);
|
|
1518
1544
|
if (s && o !== 1 && (r === 33 || r === 38)) break;
|
|
1519
1545
|
if (s && p && (u.tagStart !== j || u.anchorStart !== j) && (r === 33 || r === 38)) {
|
|
1520
1546
|
var m;
|
|
1521
1547
|
let n = I(e), r = t + 1;
|
|
1522
|
-
if (
|
|
1548
|
+
if (Nn(e, e.position - e.lineStart, r, u) && ((m = e.events[n.eventsLength]) == null ? void 0 : m.type) === C.MAPPING) return e.depth--, !0;
|
|
1523
1549
|
L(e, n);
|
|
1524
1550
|
}
|
|
1525
|
-
if (s && (r === 33 && u.tagStart !== j || r === 38 && u.anchorStart !== j) || !
|
|
1551
|
+
if (s && (r === 33 && u.tagStart !== j || r === 38 && u.anchorStart !== j) || !Sn(e, u, n === M) && !Cn(e, u)) break;
|
|
1526
1552
|
l === null && (l = i), W(e, !0) ? (s = !0, f = p, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1) : f = !1;
|
|
1527
1553
|
}
|
|
1528
|
-
if (f && (f = s || i), o === 1 || n ===
|
|
1529
|
-
let r = n === M || n ===
|
|
1530
|
-
if (o === 1)
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1554
|
+
if (f && (f = s || i), o === 1 || n === Xt) {
|
|
1555
|
+
let r = n === M || n === Jt ? t : t + 1, i = e.position - e.lineStart;
|
|
1556
|
+
if (o === 1) {
|
|
1557
|
+
if (f && (Mn(e, i, u) || Nn(e, i, r, u)) || jn(e, r, u)) c = !0;
|
|
1558
|
+
else {
|
|
1559
|
+
let t = e.input.charCodeAt(e.position);
|
|
1560
|
+
if (l !== null && a && p && !f && t !== 124 && t !== 62) {
|
|
1561
|
+
var h;
|
|
1562
|
+
let t = I(e), n = l.position - l.lineStart;
|
|
1563
|
+
L(e, l), Nn(e, n, r, fn()) && ((h = e.events[t.eventsLength]) == null ? void 0 : h.type) === C.MAPPING ? c = !0 : L(e, t);
|
|
1564
|
+
}
|
|
1565
|
+
!c && (d && On(e, r, u) || En(e, r, u) || Dn(e, r, u) || wn(e, u) || An(e, r, n, u)) && (c = !0);
|
|
1537
1566
|
}
|
|
1538
|
-
|
|
1539
|
-
}
|
|
1540
|
-
else o === 0 && (c = f && Dn(e, i, u));
|
|
1567
|
+
} else o === 0 && (c = f && Mn(e, i, u));
|
|
1541
1568
|
}
|
|
1542
|
-
return d = d && !c, !c && (u.anchorStart !== j || u.tagStart !== j || d) && (N(e, j, j, u.anchorStart, u.anchorEnd, u.tagStart, u.tagEnd,
|
|
1569
|
+
return d = d && !c, !c && (u.anchorStart !== j || u.tagStart !== j || d) && (N(e, j, j, u.anchorStart, u.anchorEnd, u.tagStart, u.tagEnd, w.PLAIN), c = !0), e.depth--, c || u.anchorStart !== j || u.tagStart !== j;
|
|
1543
1570
|
}
|
|
1544
|
-
function
|
|
1571
|
+
function Pn(e) {
|
|
1545
1572
|
if (e.lineIndent > 0 || e.input.charCodeAt(e.position) !== 37) return !1;
|
|
1546
1573
|
e.position++;
|
|
1547
1574
|
let t = e.position;
|
|
@@ -1554,7 +1581,7 @@ function kn(e) {
|
|
|
1554
1581
|
for (; e.input.charCodeAt(e.position) !== 0 && !V(e.input.charCodeAt(e.position));) e.position++;
|
|
1555
1582
|
r.push(e.input.slice(t, e.position));
|
|
1556
1583
|
}
|
|
1557
|
-
if (z(e.input.charCodeAt(e.position)) &&
|
|
1584
|
+
if (z(e.input.charCodeAt(e.position)) && _n(e), n === "YAML") {
|
|
1558
1585
|
e.directives.some((e) => e.kind === "yaml") && R(e, "duplication of %YAML directive"), r.length !== 1 && R(e, "YAML directive accepts exactly one argument");
|
|
1559
1586
|
let t = /^([0-9]+)\.([0-9]+)$/.exec(r[0]);
|
|
1560
1587
|
t === null && R(e, "ill-formed argument of the YAML directive"), parseInt(t[1], 10) !== 1 && R(e, "unacceptable YAML version of the document"), e.directives.push({
|
|
@@ -1564,7 +1591,7 @@ function kn(e) {
|
|
|
1564
1591
|
} else if (n === "TAG") {
|
|
1565
1592
|
r.length !== 2 && R(e, "TAG directive accepts exactly two arguments");
|
|
1566
1593
|
let [t, n] = r;
|
|
1567
|
-
|
|
1594
|
+
$t.test(t) || R(e, "ill-formed tag handle (first argument) of the TAG directive"), qt.call(e.tagHandlers, t) && R(e, `there is a previously declared suffix for "${t}" tag handle`), an.test(n) || R(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[t] = n, e.directives.push({
|
|
1568
1595
|
kind: "tag",
|
|
1569
1596
|
handle: t,
|
|
1570
1597
|
prefix: n
|
|
@@ -1572,10 +1599,10 @@ function kn(e) {
|
|
|
1572
1599
|
}
|
|
1573
1600
|
return !0;
|
|
1574
1601
|
}
|
|
1575
|
-
function
|
|
1602
|
+
function Fn(e) {
|
|
1576
1603
|
e.directives = [], e.tagHandlers = Object.create(null);
|
|
1577
1604
|
let t = !1;
|
|
1578
|
-
for (W(e, !0);
|
|
1605
|
+
for (W(e, !0); Pn(e);) t = !0, W(e, !0);
|
|
1579
1606
|
let n = !1, r = !1, i = !0;
|
|
1580
1607
|
if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && H(e.input.charCodeAt(e.position + 3))) {
|
|
1581
1608
|
n = !0;
|
|
@@ -1587,15 +1614,15 @@ function An(e) {
|
|
|
1587
1614
|
e.position += 3, W(e, !0);
|
|
1588
1615
|
return;
|
|
1589
1616
|
}
|
|
1590
|
-
if (
|
|
1617
|
+
if (sn(e, n, !1), q(e, e.lineIndent - 1, Xt, !1, i, i) || F(e), W(e, !0), e.position === e.lineStart && G(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
|
|
1591
1618
|
let t = e.line;
|
|
1592
1619
|
e.position += 3, W(e, !0), e.line === t && e.position < e.length && R(e, "end of the stream or a document separator is expected");
|
|
1593
1620
|
}
|
|
1594
1621
|
let o = e.events[a];
|
|
1595
|
-
(o == null ? void 0 : o.type) ===
|
|
1622
|
+
(o == null ? void 0 : o.type) === C.DOCUMENT && (o.explicitEnd = r), P(e), !r && e.position < e.length && !yn(e) && R(e, "end of the stream or a document separator is expected");
|
|
1596
1623
|
}
|
|
1597
|
-
function
|
|
1598
|
-
let n = e.length, r =
|
|
1624
|
+
function In(e, t) {
|
|
1625
|
+
let n = e.length, r = b(b(b({}, on), t), {}, {
|
|
1599
1626
|
input: `${e}\0`,
|
|
1600
1627
|
length: n,
|
|
1601
1628
|
position: 0,
|
|
@@ -1608,36 +1635,38 @@ function jn(e, t) {
|
|
|
1608
1635
|
tagHandlers: Object.create(null),
|
|
1609
1636
|
events: []
|
|
1610
1637
|
}), i = e.indexOf("\0");
|
|
1611
|
-
for (i !== -1 &&
|
|
1638
|
+
for (i !== -1 && S.throwAt(e, i, "null byte is not allowed in input", r.filename); r.position < r.length && (vn(r), W(r, !0), !(r.position >= r.length));) {
|
|
1612
1639
|
let e = r.position;
|
|
1613
|
-
|
|
1640
|
+
Fn(r), r.position === e &&
|
|
1641
|
+
/* c8 ignore next */
|
|
1642
|
+
R(r, "can not read a document");
|
|
1614
1643
|
}
|
|
1615
1644
|
return r.events;
|
|
1616
1645
|
}
|
|
1617
1646
|
//#endregion
|
|
1618
1647
|
//#region src/load.ts
|
|
1619
|
-
var
|
|
1620
|
-
function
|
|
1621
|
-
let n =
|
|
1622
|
-
return
|
|
1648
|
+
var Ln = b(b({}, on), Pt);
|
|
1649
|
+
function Rn(e, t = {}) {
|
|
1650
|
+
let n = b(b({}, Ln), t), r = String(e), i = Object.keys(on), a = Object.keys(Pt);
|
|
1651
|
+
return Kt(In(r, He(n, i)), b(b({}, He(n, a)), {}, { source: r }));
|
|
1623
1652
|
}
|
|
1624
|
-
function
|
|
1653
|
+
function zn(e, t, n) {
|
|
1625
1654
|
let r = null;
|
|
1626
1655
|
typeof t == "function" ? r = t : typeof t == "object" && t && (n = t);
|
|
1627
|
-
let i =
|
|
1656
|
+
let i = Rn(e, n);
|
|
1628
1657
|
if (r === null) return i;
|
|
1629
1658
|
for (let e of i) r(e);
|
|
1630
1659
|
}
|
|
1631
|
-
function
|
|
1632
|
-
let n =
|
|
1633
|
-
if (n.length === 0) throw new
|
|
1660
|
+
function Bn(e, t) {
|
|
1661
|
+
let n = Rn(e, t);
|
|
1662
|
+
if (n.length === 0) throw new S("expected a document, but the input is empty");
|
|
1634
1663
|
if (n.length === 1) return n[0];
|
|
1635
|
-
throw new
|
|
1664
|
+
throw new S("expected a single document in the stream, but found more");
|
|
1636
1665
|
}
|
|
1637
1666
|
//#endregion
|
|
1638
1667
|
//#region src/ast/from_js.ts
|
|
1639
1668
|
var J = Symbol("INVALID");
|
|
1640
|
-
function
|
|
1669
|
+
function Vn(e) {
|
|
1641
1670
|
let t = new Set([
|
|
1642
1671
|
e.defaultScalarTag,
|
|
1643
1672
|
e.defaultSequenceTag,
|
|
@@ -1658,7 +1687,7 @@ function In(e) {
|
|
|
1658
1687
|
}))
|
|
1659
1688
|
];
|
|
1660
1689
|
}
|
|
1661
|
-
function
|
|
1690
|
+
function Hn(e, t) {
|
|
1662
1691
|
for (let n = 0, r = e.representTypes.length; n < r; n += 1) {
|
|
1663
1692
|
let { tag: r, implicitTag: i } = e.representTypes[n];
|
|
1664
1693
|
if (r.identify(t)) {
|
|
@@ -1680,17 +1709,17 @@ function Y(e, t) {
|
|
|
1680
1709
|
anchor: n.anchor
|
|
1681
1710
|
};
|
|
1682
1711
|
}
|
|
1683
|
-
let n =
|
|
1712
|
+
let n = Hn(e, t);
|
|
1684
1713
|
if (!n) {
|
|
1685
1714
|
if (t === void 0 || e.skipInvalid) return J;
|
|
1686
|
-
throw new
|
|
1715
|
+
throw new S(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`);
|
|
1687
1716
|
}
|
|
1688
|
-
let { tag: r, tagName: i, implicitTag: a } = n, o = a ? i :
|
|
1717
|
+
let { tag: r, tagName: i, implicitTag: a } = n, o = a ? i : Mt(i);
|
|
1689
1718
|
if (r.nodeKind === "scalar") return {
|
|
1690
1719
|
kind: "scalar",
|
|
1691
1720
|
tag: o,
|
|
1692
1721
|
tagged: !a,
|
|
1693
|
-
style:
|
|
1722
|
+
style: w.PLAIN,
|
|
1694
1723
|
value: r.represent(t)
|
|
1695
1724
|
};
|
|
1696
1725
|
if (r.nodeKind === "sequence") {
|
|
@@ -1698,7 +1727,7 @@ function Y(e, t) {
|
|
|
1698
1727
|
kind: "sequence",
|
|
1699
1728
|
tag: o,
|
|
1700
1729
|
tagged: !a,
|
|
1701
|
-
style:
|
|
1730
|
+
style: T.BLOCK,
|
|
1702
1731
|
items: []
|
|
1703
1732
|
};
|
|
1704
1733
|
e.noRefs || e.refs.set(t, i);
|
|
@@ -1712,7 +1741,7 @@ function Y(e, t) {
|
|
|
1712
1741
|
kind: "mapping",
|
|
1713
1742
|
tag: o,
|
|
1714
1743
|
tagged: !a,
|
|
1715
|
-
style:
|
|
1744
|
+
style: T.BLOCK,
|
|
1716
1745
|
items: []
|
|
1717
1746
|
};
|
|
1718
1747
|
e.noRefs || e.refs.set(t, c);
|
|
@@ -1727,12 +1756,12 @@ function Y(e, t) {
|
|
|
1727
1756
|
}
|
|
1728
1757
|
return c;
|
|
1729
1758
|
}
|
|
1730
|
-
function
|
|
1759
|
+
function Un(e, t, n = {}) {
|
|
1731
1760
|
var r, i;
|
|
1732
1761
|
let a = Y({
|
|
1733
|
-
representTypes:
|
|
1734
|
-
noRefs: (r = n.noRefs)
|
|
1735
|
-
skipInvalid: (i = n.skipInvalid)
|
|
1762
|
+
representTypes: Vn(t),
|
|
1763
|
+
noRefs: (r = n.noRefs) != null && r,
|
|
1764
|
+
skipInvalid: (i = n.skipInvalid) != null && i,
|
|
1736
1765
|
refs: /* @__PURE__ */ new Map(),
|
|
1737
1766
|
refCounter: 0
|
|
1738
1767
|
}, e);
|
|
@@ -1743,36 +1772,34 @@ function Rn(e, t, n = {}) {
|
|
|
1743
1772
|
}
|
|
1744
1773
|
//#endregion
|
|
1745
1774
|
//#region src/ast/visit.ts
|
|
1746
|
-
var
|
|
1747
|
-
function
|
|
1775
|
+
var Wn = Symbol("visit:break"), Gn = Symbol("visit:skip");
|
|
1776
|
+
function Kn(e, t, n) {
|
|
1748
1777
|
let r = t(e, n);
|
|
1749
|
-
if (r ===
|
|
1750
|
-
if (r ===
|
|
1778
|
+
if (r === Wn) return !0;
|
|
1779
|
+
if (r === Gn) return !1;
|
|
1751
1780
|
let i = n.depth + 1;
|
|
1752
1781
|
switch (e.kind) {
|
|
1753
1782
|
case "sequence":
|
|
1754
|
-
for (let n of e.items) if (
|
|
1755
|
-
depth: i,
|
|
1756
|
-
parent: e,
|
|
1757
|
-
isKey: !1
|
|
1758
|
-
})) return !0;
|
|
1759
|
-
break;
|
|
1760
|
-
case "mapping":
|
|
1761
|
-
for (let { key: n, value: r } of e.items) if (Vn(n, t, {
|
|
1762
|
-
depth: i,
|
|
1763
|
-
parent: e,
|
|
1764
|
-
isKey: !0
|
|
1765
|
-
}) || Vn(r, t, {
|
|
1783
|
+
for (let n of e.items) if (Kn(n, t, {
|
|
1766
1784
|
depth: i,
|
|
1767
1785
|
parent: e,
|
|
1768
1786
|
isKey: !1
|
|
1769
1787
|
})) return !0;
|
|
1770
1788
|
break;
|
|
1789
|
+
case "mapping": for (let { key: n, value: r } of e.items) if (Kn(n, t, {
|
|
1790
|
+
depth: i,
|
|
1791
|
+
parent: e,
|
|
1792
|
+
isKey: !0
|
|
1793
|
+
}) || Kn(r, t, {
|
|
1794
|
+
depth: i,
|
|
1795
|
+
parent: e,
|
|
1796
|
+
isKey: !1
|
|
1797
|
+
})) return !0;
|
|
1771
1798
|
}
|
|
1772
1799
|
return !1;
|
|
1773
1800
|
}
|
|
1774
|
-
function
|
|
1775
|
-
for (let n of e) if (n.contents &&
|
|
1801
|
+
function qn(e, t) {
|
|
1802
|
+
for (let n of e) if (n.contents && Kn(n.contents, t, {
|
|
1776
1803
|
depth: 0,
|
|
1777
1804
|
parent: null,
|
|
1778
1805
|
isKey: !1
|
|
@@ -1780,43 +1807,43 @@ function Hn(e, t) {
|
|
|
1780
1807
|
}
|
|
1781
1808
|
//#endregion
|
|
1782
1809
|
//#region src/ast/styler_defaults.ts
|
|
1783
|
-
function
|
|
1784
|
-
return (e & 1 << t)
|
|
1785
|
-
}
|
|
1786
|
-
var
|
|
1787
|
-
applyQuoteFlowKeysOption:
|
|
1788
|
-
doubleQuoteForInvisibles:
|
|
1789
|
-
doubleQuoteWhitespaceOnly:
|
|
1790
|
-
applyForceQuotesOption:
|
|
1791
|
-
tryLongOrMultilineAsBlock:
|
|
1792
|
-
quoteInvalidPlain:
|
|
1793
|
-
fallbackToDoubleQuoted:
|
|
1810
|
+
function Jn(e, t) {
|
|
1811
|
+
return !!(e & 1 << t);
|
|
1812
|
+
}
|
|
1813
|
+
var Yn = {
|
|
1814
|
+
applyQuoteFlowKeysOption: Zn,
|
|
1815
|
+
doubleQuoteForInvisibles: Qn,
|
|
1816
|
+
doubleQuoteWhitespaceOnly: $n,
|
|
1817
|
+
applyForceQuotesOption: er,
|
|
1818
|
+
tryLongOrMultilineAsBlock: tr,
|
|
1819
|
+
quoteInvalidPlain: nr,
|
|
1820
|
+
fallbackToDoubleQuoted: rr
|
|
1794
1821
|
};
|
|
1795
|
-
function
|
|
1796
|
-
return e.presenterOptions.quoteStyle === "single" &&
|
|
1822
|
+
function Xn(e) {
|
|
1823
|
+
return e.presenterOptions.quoteStyle === "single" && Jn(e.allowedStylesMask, w.SINGLE_QUOTED) ? w.SINGLE_QUOTED : w.DOUBLE_QUOTED;
|
|
1797
1824
|
}
|
|
1798
|
-
function
|
|
1799
|
-
e.presenterOptions.quoteFlowKeys &&
|
|
1825
|
+
function Zn(e) {
|
|
1826
|
+
e.presenterOptions.quoteFlowKeys && e.isKey && e.flowOnly && e.style === w.PLAIN && (e.style = w.DOUBLE_QUOTED);
|
|
1800
1827
|
}
|
|
1801
|
-
function
|
|
1802
|
-
e.style ===
|
|
1828
|
+
function Qn(e) {
|
|
1829
|
+
e.style === w.PLAIN && /[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value) && (e.style = w.DOUBLE_QUOTED);
|
|
1803
1830
|
}
|
|
1804
|
-
function
|
|
1805
|
-
e.style ===
|
|
1831
|
+
function $n(e) {
|
|
1832
|
+
e.style === w.PLAIN && /^\s+$/.test(e.node.value) && (e.style = w.DOUBLE_QUOTED);
|
|
1806
1833
|
}
|
|
1807
|
-
function
|
|
1808
|
-
e.presenterOptions.forceQuotes && (e.isKey || e.style !==
|
|
1834
|
+
function er(e) {
|
|
1835
|
+
e.presenterOptions.forceQuotes && (e.isKey || e.style !== w.PLAIN || e.node.tag === e.presenterOptions.schema.defaultScalarTag.tagName && (e.style = e.node.value.includes("\n") ? w.DOUBLE_QUOTED : Xn(e)));
|
|
1809
1836
|
}
|
|
1810
|
-
function
|
|
1811
|
-
if (e.style !==
|
|
1837
|
+
function tr(e) {
|
|
1838
|
+
if (e.style !== w.PLAIN || e.isKey) return;
|
|
1812
1839
|
let t = e.node.value, n = t.indexOf("\n") !== -1;
|
|
1813
|
-
if (!
|
|
1814
|
-
n && (e.style =
|
|
1840
|
+
if (!Jn(e.allowedStylesMask, w.LITERAL_BLOCK)) {
|
|
1841
|
+
n && (e.style = w.DOUBLE_QUOTED);
|
|
1815
1842
|
return;
|
|
1816
1843
|
}
|
|
1817
1844
|
let r = e.presenterOptions.lineWidth;
|
|
1818
1845
|
if (r === -1) {
|
|
1819
|
-
n && (e.style =
|
|
1846
|
+
n && (e.style = w.LITERAL_BLOCK);
|
|
1820
1847
|
return;
|
|
1821
1848
|
}
|
|
1822
1849
|
let i = Math.max(Math.min(r, 40), r - e.shiftOfContent), a = 0, o = !1;
|
|
@@ -1827,80 +1854,80 @@ function Xn(e) {
|
|
|
1827
1854
|
if (r.length > i && r[0] !== " " && / [^ \t]/.test(r) && (o = !0), n === -1) break;
|
|
1828
1855
|
a = n + 1;
|
|
1829
1856
|
}
|
|
1830
|
-
o ? e.style =
|
|
1857
|
+
o ? e.style = w.FOLDED_BLOCK : n && (e.style = w.LITERAL_BLOCK);
|
|
1831
1858
|
}
|
|
1832
|
-
function
|
|
1833
|
-
e.style ===
|
|
1859
|
+
function nr(e) {
|
|
1860
|
+
e.style === w.PLAIN && !Jn(e.allowedStylesMask, w.PLAIN) && (e.style = Xn(e));
|
|
1834
1861
|
}
|
|
1835
|
-
function
|
|
1836
|
-
|
|
1862
|
+
function rr(e) {
|
|
1863
|
+
Jn(e.allowedStylesMask, e.style) || (e.style = w.DOUBLE_QUOTED);
|
|
1837
1864
|
}
|
|
1838
1865
|
//#endregion
|
|
1839
1866
|
//#region src/ast/scalar_styler.ts
|
|
1840
1867
|
function X(e, t) {
|
|
1841
1868
|
return e | 1 << t;
|
|
1842
1869
|
}
|
|
1843
|
-
var
|
|
1844
|
-
function
|
|
1870
|
+
var ir = "[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]", ar = "[\\n\\r]", or = "\\uFEFF", sr = "[ \\t]", cr = `(?:(?!(?:${ar}|${or}))${ir})`, lr = `(?:(?!${sr})${cr})`, ur = "[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]", dr = "[-?:,\\[\\]{}#&*!|>'\"%@`]", fr = "[,\\[\\]{}]", pr = lr, mr = `(?:(?!${fr})${lr})`, hr = `(?:(?:(?!${dr})${lr})|[?:-](?=${pr}))`, gr = `(?:(?:(?!${dr})${lr})|[?:-](?=${mr}))`, _r = `(?:(?:(?![:#])${pr})|:(?=${pr}))#*`, vr = `(?:(?:(?![:#])${mr})|:(?=${mr}))#*`, yr = `(?:${sr}*${_r})*`, br = `(?:${sr}*${vr})*`, xr = `${hr}#*${yr}`, Sr = `${gr}#*${br}`, Cr = xr, wr = Sr, Tr = `\\n+${_r}${yr}`, Er = `\\n+${vr}${br}`, Dr = `${xr}(?:${Tr})*`, Or = `${Sr}(?:${Er})*`, kr = RegExp(`^(?:${Dr})$`, "u"), Ar = RegExp(`^(?:${Or})$`, "u"), jr = RegExp(`^(?:${Cr})$`, "u"), Mr = RegExp(`^(?:${wr})$`, "u"), Nr = RegExp(`^(?:${ur})*$`, "u"), Pr = RegExp(`^(?:${ur}|\\n)*$`, "u"), Fr = RegExp(`^(?:${cr}|\\n)*$`, "u"), Ir = /^(?:---|\.\.\.)(?=$|[ \t\n\r])/, Lr = /^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;
|
|
1871
|
+
function Rr(e) {
|
|
1845
1872
|
let t = e.node.value;
|
|
1846
1873
|
if (t !== "") {
|
|
1847
|
-
if (!(e.isKey ? e.flowOnly ?
|
|
1874
|
+
if (!(e.isKey ? e.flowOnly ? Mr : jr : e.flowOnly ? Ar : kr).test(t) || e.shiftOfFirstLine === 0 && Ir.test(t)) return !1;
|
|
1848
1875
|
if (e.shiftOfContent === 0) {
|
|
1849
1876
|
let e = t.indexOf("\n");
|
|
1850
1877
|
if (e !== -1) {
|
|
1851
1878
|
let n = t.slice(e + 1);
|
|
1852
|
-
if (
|
|
1879
|
+
if (Lr.test(n)) return !1;
|
|
1853
1880
|
}
|
|
1854
1881
|
}
|
|
1855
1882
|
}
|
|
1856
1883
|
let n = e.presenterOptions.schema.resolveImplicitScalarTag(t).tag.tagName;
|
|
1857
1884
|
return !(!e.node.tagged && n !== e.node.tag || !e.node.tagged && t === "=" && n === e.presenterOptions.schema.defaultScalarTag.tagName);
|
|
1858
1885
|
}
|
|
1859
|
-
function
|
|
1886
|
+
function zr(e) {
|
|
1860
1887
|
let t = e.node.value;
|
|
1861
|
-
if (!(e.isKey ?
|
|
1888
|
+
if (!(e.isKey ? Nr : Pr).test(t) || /[ \t]\n|\n[ \t]/.test(t)) return !1;
|
|
1862
1889
|
if (!e.isKey && e.shiftOfContent === 0) {
|
|
1863
1890
|
let e = t.indexOf("\n");
|
|
1864
|
-
if (e !== -1 &&
|
|
1891
|
+
if (e !== -1 && Lr.test(t.slice(e + 1))) return !1;
|
|
1865
1892
|
}
|
|
1866
1893
|
return !0;
|
|
1867
1894
|
}
|
|
1868
|
-
function
|
|
1869
|
-
if (e.flowOnly || !
|
|
1895
|
+
function Br(e) {
|
|
1896
|
+
if (e.flowOnly || !Fr.test(e.node.value)) return !1;
|
|
1870
1897
|
let t = e.shiftOfContent - e.shiftOfParent;
|
|
1871
|
-
return !(t < 1 || t > 9 && /^\n* /.test(e.node.value) || e.shiftOfContent === 0 &&
|
|
1898
|
+
return !(t < 1 || t > 9 && /^\n* /.test(e.node.value) || e.shiftOfContent === 0 && Lr.test(e.node.value));
|
|
1872
1899
|
}
|
|
1873
|
-
function
|
|
1874
|
-
let t = X(0,
|
|
1875
|
-
|
|
1900
|
+
function Vr(e) {
|
|
1901
|
+
let t = X(0, w.DOUBLE_QUOTED);
|
|
1902
|
+
Rr(e) && (t = X(t, w.PLAIN)), zr(e) && (t = X(t, w.SINGLE_QUOTED)), Br(e) && (t = X(X(t, w.LITERAL_BLOCK), w.FOLDED_BLOCK)), e.allowedStylesMask = t;
|
|
1876
1903
|
}
|
|
1877
|
-
function
|
|
1904
|
+
function Hr(e) {
|
|
1878
1905
|
switch (e.style) {
|
|
1879
|
-
case
|
|
1880
|
-
case
|
|
1881
|
-
case
|
|
1882
|
-
case
|
|
1883
|
-
case
|
|
1906
|
+
case w.PLAIN: return Ur(e);
|
|
1907
|
+
case w.SINGLE_QUOTED: return Wr(e);
|
|
1908
|
+
case w.LITERAL_BLOCK: return Gr(e);
|
|
1909
|
+
case w.FOLDED_BLOCK: return Kr(e);
|
|
1910
|
+
case w.DOUBLE_QUOTED: return qr(e);
|
|
1884
1911
|
}
|
|
1885
1912
|
}
|
|
1886
|
-
function
|
|
1887
|
-
return
|
|
1913
|
+
function Ur(e) {
|
|
1914
|
+
return Jr(e.node.value, e.shiftOfContent);
|
|
1888
1915
|
}
|
|
1889
|
-
function
|
|
1890
|
-
return `'${
|
|
1916
|
+
function Wr(e) {
|
|
1917
|
+
return `'${Jr(e.node.value, e.shiftOfContent).replace(/'/g, "''")}'`;
|
|
1891
1918
|
}
|
|
1892
|
-
function
|
|
1919
|
+
function Gr(e) {
|
|
1893
1920
|
let t = e.node.value;
|
|
1894
|
-
return "|" +
|
|
1921
|
+
return "|" + Zr(t, e.shiftOfParent, e.shiftOfContent) + Qr(Yr(t, e.shiftOfContent));
|
|
1895
1922
|
}
|
|
1896
|
-
function
|
|
1923
|
+
function Kr(e) {
|
|
1897
1924
|
let t = e.node.value, n = e.presenterOptions.lineWidth, r = Infinity;
|
|
1898
|
-
return n !== -1 && (r = Math.max(Math.min(n, 40), n - e.shiftOfContent)), ">" +
|
|
1925
|
+
return n !== -1 && (r = Math.max(Math.min(n, 40), n - e.shiftOfContent)), ">" + Zr(t, e.shiftOfParent, e.shiftOfContent) + Qr(Yr(ti(t, r), e.shiftOfContent));
|
|
1899
1926
|
}
|
|
1900
|
-
function
|
|
1901
|
-
return `"${
|
|
1927
|
+
function qr(e) {
|
|
1928
|
+
return `"${ii(e.node.value)}"`;
|
|
1902
1929
|
}
|
|
1903
|
-
function
|
|
1930
|
+
function Jr(e, t) {
|
|
1904
1931
|
let n = e.indexOf("\n");
|
|
1905
1932
|
if (n === -1) return e;
|
|
1906
1933
|
let r = " ".repeat(t), i = e.slice(0, n), a = /(\n+)([^\n]*)/g;
|
|
@@ -1912,7 +1939,7 @@ function Ur(e, t) {
|
|
|
1912
1939
|
}
|
|
1913
1940
|
return i;
|
|
1914
1941
|
}
|
|
1915
|
-
function
|
|
1942
|
+
function Yr(e, t) {
|
|
1916
1943
|
let n = " ".repeat(t), r = 0, i = "", a = e.length;
|
|
1917
1944
|
for (; r < a;) {
|
|
1918
1945
|
let t, o = e.indexOf("\n", r);
|
|
@@ -1920,37 +1947,37 @@ function Wr(e, t) {
|
|
|
1920
1947
|
}
|
|
1921
1948
|
return i;
|
|
1922
1949
|
}
|
|
1923
|
-
function
|
|
1950
|
+
function Xr(e) {
|
|
1924
1951
|
return /^\n* /.test(e);
|
|
1925
1952
|
}
|
|
1926
|
-
function
|
|
1927
|
-
let r =
|
|
1953
|
+
function Zr(e, t, n) {
|
|
1954
|
+
let r = Xr(e) ? String(n - t) : "", i = e[e.length - 1] === "\n";
|
|
1928
1955
|
return `${r}${i && (e[e.length - 2] === "\n" || e === "\n") ? "+" : i ? "" : "-"}\n`;
|
|
1929
1956
|
}
|
|
1930
|
-
function
|
|
1957
|
+
function Qr(e) {
|
|
1931
1958
|
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
1932
1959
|
}
|
|
1933
|
-
function
|
|
1960
|
+
function $r(e) {
|
|
1934
1961
|
return e === " " || e === " ";
|
|
1935
1962
|
}
|
|
1936
|
-
function
|
|
1937
|
-
if (e === "" ||
|
|
1963
|
+
function ei(e, t) {
|
|
1964
|
+
if (e === "" || $r(e[0])) return e;
|
|
1938
1965
|
let n = / [^ \t]/g, r, i = 0, a, o = 0, s = 0, c = "";
|
|
1939
1966
|
for (; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += `\n${e.slice(i, a)}`, i = a + 1), o = s;
|
|
1940
1967
|
return c += "\n", e.length - i > t && o > i ? c += `${e.slice(i, o)}\n${e.slice(o + 1)}` : c += e.slice(i), c.slice(1);
|
|
1941
1968
|
}
|
|
1942
|
-
function
|
|
1969
|
+
function ti(e, t) {
|
|
1943
1970
|
let n = /(\n+)([^\n]*)/g, r = e.indexOf("\n");
|
|
1944
1971
|
r === -1 && (r = e.length), n.lastIndex = r;
|
|
1945
|
-
let i =
|
|
1972
|
+
let i = ei(e.slice(0, r), t), a = e[0] === "\n" || $r(e[0]), o, s;
|
|
1946
1973
|
for (; s = n.exec(e);) {
|
|
1947
1974
|
let e = s[1], n = s[2];
|
|
1948
|
-
o = n !== "" &&
|
|
1975
|
+
o = n !== "" && $r(n[0]), i += e + (!a && !o && n !== "" ? "\n" : "") + ei(n, t), a = o;
|
|
1949
1976
|
}
|
|
1950
1977
|
return i;
|
|
1951
1978
|
}
|
|
1952
|
-
var
|
|
1953
|
-
function
|
|
1979
|
+
var ni = /["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;
|
|
1980
|
+
function ri(e) {
|
|
1954
1981
|
switch (e) {
|
|
1955
1982
|
case "\0": return "\\0";
|
|
1956
1983
|
case "\x07": return "\\a";
|
|
@@ -1971,12 +1998,12 @@ function Qr(e) {
|
|
|
1971
1998
|
let t = e.charCodeAt(0), n = t.toString(16).toUpperCase();
|
|
1972
1999
|
return t <= 255 ? `\\x${"0".repeat(2 - n.length)}${n}` : `\\u${"0".repeat(4 - n.length)}${n}`;
|
|
1973
2000
|
}
|
|
1974
|
-
function
|
|
1975
|
-
return e.replace(
|
|
2001
|
+
function ii(e) {
|
|
2002
|
+
return e.replace(ni, ri);
|
|
1976
2003
|
}
|
|
1977
2004
|
//#endregion
|
|
1978
2005
|
//#region src/ast/presenter.ts
|
|
1979
|
-
var Z = 10,
|
|
2006
|
+
var Z = 10, ai = {
|
|
1980
2007
|
indent: 2,
|
|
1981
2008
|
seqNoIndent: !1,
|
|
1982
2009
|
seqInlineFirst: !0,
|
|
@@ -1987,23 +2014,23 @@ var Z = 10, ei = {
|
|
|
1987
2014
|
quoteFlowKeys: !1,
|
|
1988
2015
|
quoteStyle: "single",
|
|
1989
2016
|
forceQuotes: !1,
|
|
1990
|
-
scalarStyleRules: Object.keys(
|
|
2017
|
+
scalarStyleRules: Object.keys(Yn).map((e) => Reflect.get(Yn, e)),
|
|
1991
2018
|
tagBeforeAnchor: !1
|
|
1992
2019
|
};
|
|
1993
|
-
function
|
|
1994
|
-
return e.tagged ? e.tag :
|
|
2020
|
+
function oi(e) {
|
|
2021
|
+
return e.tagged ? e.tag : Mt(e.tag);
|
|
1995
2022
|
}
|
|
1996
|
-
function
|
|
1997
|
-
let t =
|
|
1998
|
-
return t.flowSkipColonSpace && (t.quoteFlowKeys = !0),
|
|
2023
|
+
function si(e) {
|
|
2024
|
+
let t = b(b({}, ai), e);
|
|
2025
|
+
return t.flowSkipColonSpace && (t.quoteFlowKeys = !0), b(b({}, t), {}, {
|
|
1999
2026
|
defaultScalarTagName: t.schema.defaultScalarTag.tagName,
|
|
2000
2027
|
openEnded: !1
|
|
2001
2028
|
});
|
|
2002
2029
|
}
|
|
2003
|
-
function
|
|
2030
|
+
function ci(e, t) {
|
|
2004
2031
|
return `\n${" ".repeat(e.indent * t)}`;
|
|
2005
2032
|
}
|
|
2006
|
-
function
|
|
2033
|
+
function li(e, t, n, r, i, a) {
|
|
2007
2034
|
return {
|
|
2008
2035
|
node: t,
|
|
2009
2036
|
parent: n,
|
|
@@ -2018,7 +2045,7 @@ function ii(e, t, n, r, i, a) {
|
|
|
2018
2045
|
style: t.style
|
|
2019
2046
|
};
|
|
2020
2047
|
}
|
|
2021
|
-
function
|
|
2048
|
+
function ui(e, t, n) {
|
|
2022
2049
|
let r = "";
|
|
2023
2050
|
for (let i = 0, a = n.items.length; i < a; i += 1) {
|
|
2024
2051
|
let a = Q(e, t, n.items[i], n, {}).text;
|
|
@@ -2027,7 +2054,7 @@ function ai(e, t, n) {
|
|
|
2027
2054
|
let i = e.flowBracketPadding && n.items.length > 0 ? " " : "";
|
|
2028
2055
|
return `[${i}${r}${i}]`;
|
|
2029
2056
|
}
|
|
2030
|
-
function
|
|
2057
|
+
function di(e, t, n, r) {
|
|
2031
2058
|
let i = "";
|
|
2032
2059
|
for (let a = 0, o = n.items.length; a < o; a += 1) {
|
|
2033
2060
|
let o = Q(e, t + 1, n.items[a], n, {
|
|
@@ -2035,11 +2062,11 @@ function oi(e, t, n, r) {
|
|
|
2035
2062
|
compact: e.seqInlineFirst,
|
|
2036
2063
|
isblockseq: !0
|
|
2037
2064
|
}).text;
|
|
2038
|
-
(!r || i !== "") && (i +=
|
|
2065
|
+
(!r || i !== "") && (i += ci(e, t)), o === "" || Z === o.charCodeAt(0) ? i += "-" : i += "- ", i += o;
|
|
2039
2066
|
}
|
|
2040
2067
|
return i;
|
|
2041
2068
|
}
|
|
2042
|
-
function
|
|
2069
|
+
function fi(e, t, n) {
|
|
2043
2070
|
let r = "";
|
|
2044
2071
|
for (let { key: i, value: a } of n.items) {
|
|
2045
2072
|
let o = "";
|
|
@@ -2050,32 +2077,32 @@ function si(e, t, n) {
|
|
|
2050
2077
|
let i = e.flowBracketPadding && r !== "" ? " " : "";
|
|
2051
2078
|
return `{${i}${r}${i}}`;
|
|
2052
2079
|
}
|
|
2053
|
-
function
|
|
2080
|
+
function pi(e, t, n, r) {
|
|
2054
2081
|
let i = "";
|
|
2055
2082
|
for (let a = 0, o = n.items.length; a < o; a += 1) {
|
|
2056
2083
|
let o = "";
|
|
2057
|
-
(!r || i !== "") && (o +=
|
|
2058
|
-
let { key: s, value: c } = n.items[a], l = (s.kind === "mapping" || s.kind === "sequence") && s.style ===
|
|
2084
|
+
(!r || i !== "") && (o += ci(e, t));
|
|
2085
|
+
let { key: s, value: c } = n.items[a], l = (s.kind === "mapping" || s.kind === "sequence") && s.style === T.BLOCK && s.items.length !== 0 || s.kind === "scalar" && (s.style === w.LITERAL_BLOCK || s.style === w.FOLDED_BLOCK), u = l ? Q(e, t + 1, s, n, {
|
|
2059
2086
|
block: !0,
|
|
2060
2087
|
compact: !0,
|
|
2061
|
-
isblockseq: !
|
|
2088
|
+
isblockseq: !mi(e, s, t + 1)
|
|
2062
2089
|
}) : Q(e, t + 1, s, n, {
|
|
2063
2090
|
block: !0,
|
|
2064
2091
|
compact: !0,
|
|
2065
2092
|
iskey: !0
|
|
2066
2093
|
}), d = u.text, f = s.kind === "scalar" && s.value.indexOf("\n") !== -1, p = d.length > 1024 && /^[\s\S]{1025}/u.test(d), m = l || f || p;
|
|
2067
|
-
m && (d && Z === d.charCodeAt(0) ? o += "?" : o += "? "), o += d, m && (o +=
|
|
2094
|
+
m && (d && Z === d.charCodeAt(0) ? o += "?" : o += "? "), o += d, m && (o += ci(e, t));
|
|
2068
2095
|
let h = Q(e, t + 1, c, n, {
|
|
2069
2096
|
block: !0,
|
|
2070
2097
|
compact: m,
|
|
2071
|
-
isblockseq: m && !
|
|
2098
|
+
isblockseq: m && !mi(e, c, t + 1)
|
|
2072
2099
|
}).text, ee = s.kind === "scalar" && u.noBody && (s.tagged || s.anchor !== void 0), te = !m && (s.kind === "alias" || ee) ? " " : "";
|
|
2073
2100
|
h === "" || Z === h.charCodeAt(0) ? o += `${te}:` : o += `${te}: `, o += h, i += o;
|
|
2074
2101
|
}
|
|
2075
2102
|
return i;
|
|
2076
2103
|
}
|
|
2077
|
-
function
|
|
2078
|
-
return t.kind === "alias"
|
|
2104
|
+
function mi(e, t, n) {
|
|
2105
|
+
return t.kind === "alias" || t.tagged || t.anchor !== void 0 || e.indent < 2 && n > 0;
|
|
2079
2106
|
}
|
|
2080
2107
|
function Q(e, t, n, r, i) {
|
|
2081
2108
|
var a;
|
|
@@ -2083,21 +2110,21 @@ function Q(e, t, n, r, i) {
|
|
|
2083
2110
|
text: `*${n.anchor}`,
|
|
2084
2111
|
noBody: !1
|
|
2085
2112
|
};
|
|
2086
|
-
let { block: o = !1, iskey: s = !1, isblockseq: c = !1 } = i, l = (a = i.compact)
|
|
2087
|
-
|
|
2088
|
-
let d, f = n.tagged, p = o && (n.kind === "mapping" || n.kind === "sequence") && n.style ===
|
|
2089
|
-
if (n.kind === "mapping") d = p ?
|
|
2090
|
-
else if (n.kind === "sequence") d = p ? e.seqNoIndent && !c && t > 0 ?
|
|
2113
|
+
let { block: o = !1, iskey: s = !1, isblockseq: c = !1 } = i, l = (a = i.compact) != null && a, u = n.anchor !== void 0;
|
|
2114
|
+
mi(e, n, t) && (l = !1);
|
|
2115
|
+
let d, f = n.tagged, p = o && (n.kind === "mapping" || n.kind === "sequence") && n.style === T.BLOCK && n.items.length !== 0;
|
|
2116
|
+
if (n.kind === "mapping") d = p ? pi(e, t, n, l) : fi(e, t, n);
|
|
2117
|
+
else if (n.kind === "sequence") d = p ? e.seqNoIndent && !c && t > 0 ? di(e, t - 1, n, l) : di(e, t, n, l) : ui(e, t, n);
|
|
2091
2118
|
else {
|
|
2092
|
-
let i =
|
|
2093
|
-
|
|
2119
|
+
let i = li(e, n, r, t, s, !o);
|
|
2120
|
+
Vr(i);
|
|
2094
2121
|
for (let t of e.scalarStyleRules) t(i);
|
|
2095
|
-
d =
|
|
2122
|
+
d = Hr(i), e.openEnded = (i.style === w.LITERAL_BLOCK || i.style === w.FOLDED_BLOCK) && (n.value === "\n" || n.value.endsWith("\n\n")), f = n.tagged || d === "" && i.flowOnly && (r == null ? void 0 : r.kind) === "sequence" && !u || i.style !== w.PLAIN && n.tag !== e.defaultScalarTagName;
|
|
2096
2123
|
}
|
|
2097
2124
|
(n.kind === "mapping" || n.kind === "sequence") && !p && (e.openEnded = !1), p && l && t > 0 && e.indent > 2 && (d = `${" ".repeat(e.indent - 2)}${d}`);
|
|
2098
2125
|
let m = d === "", h = d;
|
|
2099
2126
|
if (f || u) {
|
|
2100
|
-
let t = [], r = f ?
|
|
2127
|
+
let t = [], r = f ? oi(n) : null, i = u ? `&${n.anchor}` : null;
|
|
2101
2128
|
e.tagBeforeAnchor ? (r !== null && t.push(r), i !== null && t.push(i)) : (i !== null && t.push(i), r !== null && t.push(r));
|
|
2102
2129
|
let a = d === "" || d.charCodeAt(0) === Z ? "" : " ";
|
|
2103
2130
|
h = `${t.join(" ")}${a}${d}`;
|
|
@@ -2107,10 +2134,10 @@ function Q(e, t, n, r, i) {
|
|
|
2107
2134
|
noBody: m
|
|
2108
2135
|
};
|
|
2109
2136
|
}
|
|
2110
|
-
function
|
|
2111
|
-
return (e.kind === "sequence" || e.kind === "mapping") && e.style ===
|
|
2137
|
+
function hi(e) {
|
|
2138
|
+
return (e.kind === "sequence" || e.kind === "mapping") && e.style === T.BLOCK && e.items.length !== 0 && !e.tagged && e.anchor === void 0;
|
|
2112
2139
|
}
|
|
2113
|
-
function
|
|
2140
|
+
function gi(e) {
|
|
2114
2141
|
let t = "";
|
|
2115
2142
|
for (let n of e.directives) {
|
|
2116
2143
|
if (n.kind === "yaml") {
|
|
@@ -2122,18 +2149,18 @@ function di(e) {
|
|
|
2122
2149
|
}
|
|
2123
2150
|
return t;
|
|
2124
2151
|
}
|
|
2125
|
-
function
|
|
2126
|
-
let n =
|
|
2152
|
+
function _i(e, t) {
|
|
2153
|
+
let n = si(t), r = "", i = !1;
|
|
2127
2154
|
for (let t = 0; t < e.length; t += 1) {
|
|
2128
2155
|
let a = e[t];
|
|
2129
2156
|
n.openEnded = !1;
|
|
2130
|
-
let o =
|
|
2157
|
+
let o = gi(a), s = o !== "", c = a.explicitStart || s || t > 0 && !i;
|
|
2131
2158
|
if (r += o, a.contents === null) c && (r += "---\n");
|
|
2132
2159
|
else if (c) {
|
|
2133
2160
|
let e = Q(n, 0, a.contents, null, {
|
|
2134
2161
|
block: !0,
|
|
2135
2162
|
compact: !0
|
|
2136
|
-
}).text, t = e === "" ? "" : s ||
|
|
2163
|
+
}).text, t = e === "" ? "" : s || hi(a.contents) ? "\n" : " ";
|
|
2137
2164
|
r += `---${t}${e}\n`;
|
|
2138
2165
|
} else r += Q(n, 0, a.contents, null, {
|
|
2139
2166
|
block: !0,
|
|
@@ -2145,73 +2172,73 @@ function fi(e, t) {
|
|
|
2145
2172
|
}
|
|
2146
2173
|
//#endregion
|
|
2147
2174
|
//#region src/dump.ts
|
|
2148
|
-
var
|
|
2149
|
-
schema:
|
|
2175
|
+
var vi = b(b({}, ai), {}, {
|
|
2176
|
+
schema: rt,
|
|
2150
2177
|
skipInvalid: !1,
|
|
2151
2178
|
noRefs: !1,
|
|
2152
2179
|
flowLevel: -1,
|
|
2153
2180
|
sortKeys: !1,
|
|
2154
2181
|
transform: () => {}
|
|
2155
2182
|
});
|
|
2156
|
-
function
|
|
2183
|
+
function yi(e, t) {
|
|
2157
2184
|
let n = String(e), r = String(t);
|
|
2158
2185
|
return n < r ? -1 : +(n > r);
|
|
2159
2186
|
}
|
|
2160
|
-
function
|
|
2161
|
-
let n =
|
|
2187
|
+
function bi(e, t = {}) {
|
|
2188
|
+
let n = b(b({}, vi), t), r = Un(e, n.schema, {
|
|
2162
2189
|
noRefs: n.noRefs,
|
|
2163
2190
|
skipInvalid: n.skipInvalid
|
|
2164
2191
|
});
|
|
2165
|
-
if (n.flowLevel >= 0 &&
|
|
2166
|
-
if (!(t.depth < n.flowLevel)) return (e.kind === "sequence" || e.kind === "mapping") && (e.style =
|
|
2192
|
+
if (n.flowLevel >= 0 && qn(r, (e, t) => {
|
|
2193
|
+
if (!(t.depth < n.flowLevel)) return (e.kind === "sequence" || e.kind === "mapping") && (e.style = T.FLOW), Gn;
|
|
2167
2194
|
}), n.sortKeys) {
|
|
2168
|
-
let e = n.sortKeys === !0 ?
|
|
2169
|
-
|
|
2195
|
+
let e = n.sortKeys === !0 ? yi : n.sortKeys;
|
|
2196
|
+
qn(r, (t) => {
|
|
2170
2197
|
t.kind === "mapping" && t.items.sort((t, n) => e(t.key.kind === "scalar" ? t.key.value : "", n.key.kind === "scalar" ? n.key.value : ""));
|
|
2171
2198
|
});
|
|
2172
2199
|
}
|
|
2173
|
-
return n.transform(r),
|
|
2200
|
+
return n.transform(r), _i(r, b(b({}, He(n, Object.keys(ai))), {}, { schema: n.schema }));
|
|
2174
2201
|
}
|
|
2175
2202
|
//#endregion
|
|
2176
2203
|
//#region src/ast/from_events.ts
|
|
2177
2204
|
var $ = -1;
|
|
2178
|
-
function
|
|
2205
|
+
function xi(e) {
|
|
2179
2206
|
return "tagStart" in e && e.tagStart !== $ ? e.tagStart : "anchorStart" in e && e.anchorStart !== $ ? e.anchorStart : "valueStart" in e && e.valueStart !== $ ? e.valueStart : "start" in e ? e.start : 0;
|
|
2180
2207
|
}
|
|
2181
|
-
function
|
|
2208
|
+
function Si(e, t) {
|
|
2182
2209
|
return t.tagStart === $ ? "" : e.source.slice(t.tagStart, t.tagEnd);
|
|
2183
2210
|
}
|
|
2184
|
-
function
|
|
2211
|
+
function Ci(e, t) {
|
|
2185
2212
|
return t.anchorStart === $ ? void 0 : e.source.slice(t.anchorStart, t.anchorEnd);
|
|
2186
2213
|
}
|
|
2187
|
-
function
|
|
2188
|
-
let n =
|
|
2189
|
-
return r === "" ? i = t.style ===
|
|
2214
|
+
function wi(e, t) {
|
|
2215
|
+
let n = wt(e.source, t), r = Si(e, t), i, a = !1;
|
|
2216
|
+
return r === "" ? i = t.style === w.PLAIN ? e.schema.resolveImplicitScalarTag(n).tag.tagName : e.schema.defaultScalarTag.tagName : (a = !0, i = r), {
|
|
2190
2217
|
kind: "scalar",
|
|
2191
2218
|
tag: i,
|
|
2192
2219
|
tagged: a,
|
|
2193
2220
|
style: t.style,
|
|
2194
|
-
anchor:
|
|
2221
|
+
anchor: Ci(e, t),
|
|
2195
2222
|
value: n
|
|
2196
2223
|
};
|
|
2197
2224
|
}
|
|
2198
|
-
function
|
|
2199
|
-
let r =
|
|
2225
|
+
function Ti(e, t, n) {
|
|
2226
|
+
let r = Si(e, t), i, a = !1;
|
|
2200
2227
|
return r === "" ? i = n : (i = r, a = !0), {
|
|
2201
2228
|
tag: i,
|
|
2202
2229
|
tagged: a,
|
|
2203
2230
|
style: t.style,
|
|
2204
|
-
anchor:
|
|
2231
|
+
anchor: Ci(e, t)
|
|
2205
2232
|
};
|
|
2206
2233
|
}
|
|
2207
|
-
function
|
|
2234
|
+
function Ei(e, t) {
|
|
2208
2235
|
let n = e.frames[e.frames.length - 1];
|
|
2209
2236
|
n.kind === "document" ? n.doc.contents = t : n.kind === "sequence" ? n.node.items.push(t) : n.key ? (n.node.items.push({
|
|
2210
2237
|
key: n.key,
|
|
2211
2238
|
value: t
|
|
2212
2239
|
}), n.key = null) : n.key = t;
|
|
2213
2240
|
}
|
|
2214
|
-
function
|
|
2241
|
+
function Di(e, t) {
|
|
2215
2242
|
let n = {
|
|
2216
2243
|
source: t.source,
|
|
2217
2244
|
schema: t.schema,
|
|
@@ -2222,8 +2249,8 @@ function Si(e, t) {
|
|
|
2222
2249
|
};
|
|
2223
2250
|
for (; n.eventIndex < e.length;) {
|
|
2224
2251
|
let t = e[n.eventIndex++];
|
|
2225
|
-
switch (n.position =
|
|
2226
|
-
case
|
|
2252
|
+
switch (n.position = xi(t), t.type) {
|
|
2253
|
+
case C.DOCUMENT: {
|
|
2227
2254
|
let e = {
|
|
2228
2255
|
contents: null,
|
|
2229
2256
|
explicitStart: t.explicitStart,
|
|
@@ -2236,11 +2263,11 @@ function Si(e, t) {
|
|
|
2236
2263
|
});
|
|
2237
2264
|
break;
|
|
2238
2265
|
}
|
|
2239
|
-
case
|
|
2240
|
-
|
|
2266
|
+
case C.SCALAR:
|
|
2267
|
+
Ei(n, wi(n, t));
|
|
2241
2268
|
break;
|
|
2242
|
-
case
|
|
2243
|
-
let { tag: e, tagged: r, style: i, anchor: a } =
|
|
2269
|
+
case C.SEQUENCE: {
|
|
2270
|
+
let { tag: e, tagged: r, style: i, anchor: a } = Ti(n, t, "tag:yaml.org,2002:seq"), o = {
|
|
2244
2271
|
kind: "sequence",
|
|
2245
2272
|
tag: e,
|
|
2246
2273
|
tagged: r,
|
|
@@ -2254,8 +2281,8 @@ function Si(e, t) {
|
|
|
2254
2281
|
});
|
|
2255
2282
|
break;
|
|
2256
2283
|
}
|
|
2257
|
-
case
|
|
2258
|
-
let { tag: e, tagged: r, style: i, anchor: a } =
|
|
2284
|
+
case C.MAPPING: {
|
|
2285
|
+
let { tag: e, tagged: r, style: i, anchor: a } = Ti(n, t, "tag:yaml.org,2002:map"), o = {
|
|
2259
2286
|
kind: "mapping",
|
|
2260
2287
|
tag: e,
|
|
2261
2288
|
tagged: r,
|
|
@@ -2270,16 +2297,16 @@ function Si(e, t) {
|
|
|
2270
2297
|
});
|
|
2271
2298
|
break;
|
|
2272
2299
|
}
|
|
2273
|
-
case
|
|
2274
|
-
|
|
2300
|
+
case C.ALIAS:
|
|
2301
|
+
Ei(n, {
|
|
2275
2302
|
kind: "alias",
|
|
2276
2303
|
anchor: n.source.slice(t.anchorStart, t.anchorEnd)
|
|
2277
2304
|
});
|
|
2278
2305
|
break;
|
|
2279
|
-
case
|
|
2306
|
+
case C.POP: {
|
|
2280
2307
|
let e = n.frames.pop();
|
|
2281
2308
|
if (e.kind === "mapping" && e.key) throw Error("incomplete mapping pair in event stream");
|
|
2282
|
-
e.kind === "document" ? n.documents.push(e.doc) :
|
|
2309
|
+
e.kind === "document" ? n.documents.push(e.doc) : Ei(n, e.node);
|
|
2283
2310
|
break;
|
|
2284
2311
|
}
|
|
2285
2312
|
}
|
|
@@ -2288,8 +2315,8 @@ function Si(e, t) {
|
|
|
2288
2315
|
}
|
|
2289
2316
|
//#endregion
|
|
2290
2317
|
//#region src/index.ts
|
|
2291
|
-
var
|
|
2318
|
+
var Oi = C.DOCUMENT, ki = C.SEQUENCE, Ai = C.MAPPING, ji = C.SCALAR, Mi = C.ALIAS, Ni = C.POP, Pi = w.PLAIN, Fi = w.SINGLE_QUOTED, Ii = w.DOUBLE_QUOTED, Li = w.LITERAL_BLOCK, Ri = w.FOLDED_BLOCK, zi = T.BLOCK, Bi = T.FLOW, Vi = E.CLIP, Hi = E.STRIP, Ui = E.KEEP;
|
|
2292
2319
|
//#endregion
|
|
2293
|
-
export {
|
|
2320
|
+
export { Vi as CHOMPING_CLIP, Ui as CHOMPING_KEEP, E as CHOMPING_MODE, Hi as CHOMPING_STRIP, T as COLLECTION_STYLE, zi as COLLECTION_STYLE_BLOCK, Bi as COLLECTION_STYLE_FLOW, tt as CORE_SCHEMA, Yn as DEFAULT_SCALAR_STYLE_RULES, rt as DUMP_SCHEMA, Mi as EVENT_ALIAS, Oi as EVENT_DOCUMENT, C as EVENT_ID, Ai as EVENT_MAPPING, Ni as EVENT_POP, ji as EVENT_SCALAR, ki as EVENT_SEQUENCE, $e as FAILSAFE_SCHEMA, et as JSON_SCHEMA, e as NOT_RESOLVED, w as SCALAR_STYLE, Ii as SCALAR_STYLE_DOUBLE_QUOTED, Ri as SCALAR_STYLE_FOLDED_BLOCK, Li as SCALAR_STYLE_LITERAL_BLOCK, Pi as SCALAR_STYLE_PLAIN, Fi as SCALAR_STYLE_SINGLE_QUOTED, x as Schema, Wn as VISIT_BREAK, Gn as VISIT_SKIP, nt as YAML11_SCHEMA, S as YAMLException, Fe as binaryTag, f as boolCoreTag, h as boolJsonTag, ne as boolYaml11Tag, Kt as constructFromEvents, r as defineMappingTag, t as defineScalarTag, n as defineSequenceTag, bi as dump, Di as eventsToAst, be as floatCoreTag, Te as floatJsonTag, Ae as floatYaml11Tag, wt as getScalarValue, se as intCoreTag, fe as intJsonTag, g as intYaml11Tag, Un as jsToAst, ot as legacyMapTag, Bn as load, zn as loadAll, Ge as mapTag, je as mergeTag, o as nullCoreTag, s as nullJsonTag, l as nullYaml11Tag, Ue as omapTag, We as pairsTag, In as parseEvents, _i as present, it as realMapTag, Ve as seqTag, Ke as setTag, i as strTag, Be as timestampTag, qn as visit };
|
|
2294
2321
|
|
|
2295
2322
|
//# sourceMappingURL=js-yaml.esm.min.mjs.map
|