@cdklabs/cdk-construct-connect-datalake 0.0.15 → 0.0.16
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/.jsii +9 -9
- package/lib/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
- package/node_modules/@aws-sdk/client-connect/package.json +3 -3
- package/node_modules/@aws-sdk/client-glue/package.json +3 -3
- package/node_modules/@aws-sdk/client-lakeformation/package.json +3 -3
- package/node_modules/@aws-sdk/client-ram/package.json +3 -3
- package/node_modules/@aws-sdk/client-sts/package.json +3 -3
- package/node_modules/@aws-sdk/core/account-id-endpoint.d.ts +1 -3
- package/node_modules/@aws-sdk/core/client.d.ts +1 -3
- package/node_modules/@aws-sdk/core/httpAuthSchemes.d.ts +1 -3
- package/node_modules/@aws-sdk/core/package.json +8 -14
- package/node_modules/@aws-sdk/core/protocols.d.ts +1 -3
- package/node_modules/@aws-sdk/core/util.d.ts +1 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +172 -1
- package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +58 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -8
- package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
- package/node_modules/@aws-sdk/nested-clients/signin.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sso-oidc.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sso.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sts.d.ts +1 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +236 -3
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +233 -43
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -1
- package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.d.ts +2 -1
- package/node_modules/@aws-sdk/xml-builder/package.json +6 -7
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +355 -145
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +456 -142
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +355 -145
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +30 -36
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +54 -110
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +30 -36
- package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Js.js +27 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Node.js +21 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.browser.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.native.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Js.js +92 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Node.js +29 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Js.js +179 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Node.js +59 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256WebCrypto.js +71 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/concatBytes.js +15 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js +4 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/headStream.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js +12 -38
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.js +18 -33
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.browser.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.js +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Js.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Node.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.browser.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.native.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Js.d.ts +19 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Node.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Js.d.ts +28 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Node.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256WebCrypto.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/concatBytes.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/checksum/ChecksumStream.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.browser.d.ts +8 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.d.ts +4 -1
- package/node_modules/@smithy/core/package.json +4 -3
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -55
- package/node_modules/@smithy/fetch-http-handler/dist-es/index.js +2 -2
- package/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +3 -51
- package/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/README.md +3 -0
- package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/dist/js-yaml.js +7 -1
- package/node_modules/aws-lambda/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
- package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/loader.js +6 -0
- package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/package.json +4 -1
- package/package.json +10 -10
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +0 -869
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +0 -862
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +0 -42
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +0 -27
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +0 -71
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +0 -49
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +0 -13
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +0 -29
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +0 -25
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +0 -333
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +0 -57
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +0 -44
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-external/nodable_entities.js +0 -332
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-external/nodable_entities.d.ts +0 -66
- package/node_modules/@aws-sdk/xml-builder/dist-types/xml-external/nodable_entities.d.ts +0 -65
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +0 -827
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/LICENSE +0 -21
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/README.md +0 -202
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +0 -770
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/package.json +0 -93
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/cli.js +0 -97
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/man.js +0 -17
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/read.js +0 -43
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +0 -739
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.js +0 -14
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/ignoreAttributes.js +0 -18
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/util.js +0 -61
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/CharsSymbol.js +0 -16
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +0 -106
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +0 -61
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +0 -69
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +0 -103
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsMinArrBuilder.js +0 -100
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +0 -154
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +0 -94
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/Report.js +0 -0
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/TagPath.js +0 -81
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/TagPathMatcher.js +0 -13
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XMLParser.js +0 -83
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/Xml2JsParser.js +0 -235
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XmlPartReader.js +0 -210
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XmlSpecialTagsReader.js +0 -111
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/inputSource/BufferSource.js +0 -116
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/inputSource/StringSource.js +0 -121
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +0 -105
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParser.js +0 -22
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParserExt.js +0 -19
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/currency.js +0 -38
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/join.js +0 -13
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/number.js +0 -14
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/trim.js +0 -6
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/validator.js +0 -425
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +0 -6
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +0 -407
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +0 -163
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +0 -840
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +0 -71
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/node2json.js +0 -177
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +0 -40
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/CHANGELOG.md +0 -51
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/LICENSE +0 -21
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/README.md +0 -113
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/package.json +0 -36
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/strnum.js +0 -171
- package/node_modules/@nodable/entities/README.md +0 -41
- package/node_modules/@nodable/entities/package.json +0 -57
- package/node_modules/@nodable/entities/src/EntityDecoder.js +0 -644
- package/node_modules/@nodable/entities/src/EntityEncoder.js +0 -194
- package/node_modules/@nodable/entities/src/entities.js +0 -1159
- package/node_modules/@nodable/entities/src/entityTries.js +0 -49
- package/node_modules/@nodable/entities/src/index.d.ts +0 -341
- package/node_modules/@nodable/entities/src/index.js +0 -29
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/constants.js +0 -3
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/md5.js +0 -168
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/constants.d.ts +0 -12
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/md5.d.ts +0 -16
- package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +0 -53
- package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -5
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +0 -7
- package/node_modules/anynum/LICENSE +0 -21
- package/node_modules/anynum/README.md +0 -142
- package/node_modules/anynum/anynum.js +0 -135
- package/node_modules/anynum/digitTable.js +0 -116
- package/node_modules/anynum/package.json +0 -42
- package/node_modules/fast-xml-builder/CHANGELOG.md +0 -40
- package/node_modules/fast-xml-builder/LICENSE +0 -21
- package/node_modules/fast-xml-builder/README.md +0 -74
- package/node_modules/fast-xml-builder/lib/fxb.cjs +0 -1
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +0 -270
- package/node_modules/fast-xml-builder/lib/fxb.min.js +0 -2
- package/node_modules/fast-xml-builder/lib/fxb.min.js.map +0 -1
- package/node_modules/fast-xml-builder/package.json +0 -81
- package/node_modules/fast-xml-builder/src/fxb.d.ts +0 -270
- package/node_modules/fast-xml-builder/src/fxb.js +0 -599
- package/node_modules/fast-xml-builder/src/ignoreAttributes.js +0 -18
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +0 -359
- package/node_modules/fast-xml-builder/src/prettifyJs2Xml.js +0 -0
- package/node_modules/fast-xml-builder/src/util.js +0 -16
- package/node_modules/js-yaml/dist/js-yaml.min.js +0 -1
- package/node_modules/path-expression-matcher/LICENSE +0 -21
- package/node_modules/path-expression-matcher/README.md +0 -947
- package/node_modules/path-expression-matcher/lib/pem.cjs +0 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +0 -715
- package/node_modules/path-expression-matcher/lib/pem.min.js +0 -2
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +0 -1
- package/node_modules/path-expression-matcher/package.json +0 -79
- package/node_modules/path-expression-matcher/src/Expression.js +0 -232
- package/node_modules/path-expression-matcher/src/ExpressionSet.js +0 -225
- package/node_modules/path-expression-matcher/src/Matcher.js +0 -660
- package/node_modules/path-expression-matcher/src/index.d.ts +0 -589
- package/node_modules/path-expression-matcher/src/index.js +0 -29
- package/node_modules/xml-naming/README.md +0 -189
- package/node_modules/xml-naming/package.json +0 -54
- package/node_modules/xml-naming/src/index.d.ts +0 -74
- package/node_modules/xml-naming/src/index.js +0 -270
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/LICENSE +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/bin/js-yaml.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/index.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/common.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/dumper.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/exception.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/mark.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/core.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_full.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_safe.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/failsafe.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/json.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/binary.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/bool.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/float.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/int.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/function.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/regexp.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/undefined.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/map.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/merge.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/null.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/omap.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/pairs.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/seq.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/set.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/str.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/timestamp.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml.js +0 -0
|
@@ -1,359 +0,0 @@
|
|
|
1
|
-
import { Expression, Matcher } from 'path-expression-matcher';
|
|
2
|
-
import { safeComment, safeCdata, escapeAttribute } from "./util.js";
|
|
3
|
-
import { qName } from 'xml-naming';
|
|
4
|
-
|
|
5
|
-
const EOL = "\n";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Detect XML version from the first element of the ordered array input.
|
|
9
|
-
* The first element must be a ?xml processing instruction with a version attribute.
|
|
10
|
-
* Returns '1.0' if not found.
|
|
11
|
-
*
|
|
12
|
-
* @param {array} jArray
|
|
13
|
-
* @param {object} options
|
|
14
|
-
*/
|
|
15
|
-
function detectXmlVersionFromArray(jArray, options) {
|
|
16
|
-
if (!Array.isArray(jArray) || jArray.length === 0) return '1.0';
|
|
17
|
-
const first = jArray[0];
|
|
18
|
-
const firstKey = propName(first);
|
|
19
|
-
if (firstKey === '?xml') {
|
|
20
|
-
const attrs = first[':@'];
|
|
21
|
-
if (attrs) {
|
|
22
|
-
const versionKey = options.attributeNamePrefix + 'version';
|
|
23
|
-
if (attrs[versionKey]) return attrs[versionKey];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return '1.0';
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Resolve a tag or attribute name through sanitizeName if configured.
|
|
31
|
-
* Validation via xml-naming's qName is performed first; the sanitizeName
|
|
32
|
-
* callback is invoked only when the name is invalid. If sanitizeName is
|
|
33
|
-
* false (default), no validation occurs and the name is used as-is.
|
|
34
|
-
*
|
|
35
|
-
* @param {string} name - raw name from the JS object
|
|
36
|
-
* @param {boolean} isAttribute - true when resolving an attribute name
|
|
37
|
-
* @param {object} options
|
|
38
|
-
* @param {Matcher} matcher - current matcher state (readonly from callback perspective)
|
|
39
|
-
* @param {string} xmlVersion - '1.0' or '1.1', forwarded to xml-naming
|
|
40
|
-
*/
|
|
41
|
-
function resolveTagName(name, isAttribute, options, matcher, xmlVersion) {
|
|
42
|
-
if (!options.sanitizeName) return name;
|
|
43
|
-
if (qName(name, { xmlVersion })) return name;
|
|
44
|
-
return options.sanitizeName(name, { isAttribute, matcher: matcher.readOnly() });
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @param {array} jArray
|
|
49
|
-
* @param {any} options
|
|
50
|
-
* @returns
|
|
51
|
-
*/
|
|
52
|
-
export default function toXml(jArray, options) {
|
|
53
|
-
let indentation = "";
|
|
54
|
-
if (options.format) {
|
|
55
|
-
indentation = EOL;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Pre-compile stopNode expressions for pattern matching
|
|
59
|
-
const stopNodeExpressions = [];
|
|
60
|
-
if (options.stopNodes && Array.isArray(options.stopNodes)) {
|
|
61
|
-
for (let i = 0; i < options.stopNodes.length; i++) {
|
|
62
|
-
const node = options.stopNodes[i];
|
|
63
|
-
if (typeof node === 'string') {
|
|
64
|
-
stopNodeExpressions.push(new Expression(node));
|
|
65
|
-
} else if (node instanceof Expression) {
|
|
66
|
-
stopNodeExpressions.push(node);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// Detect XML version for use in name validation
|
|
72
|
-
const xmlVersion = detectXmlVersionFromArray(jArray, options);
|
|
73
|
-
|
|
74
|
-
// Initialize matcher for path tracking
|
|
75
|
-
const matcher = new Matcher();
|
|
76
|
-
|
|
77
|
-
return arrToStr(jArray, options, indentation, matcher, stopNodeExpressions, xmlVersion);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function arrToStr(arr, options, indentation, matcher, stopNodeExpressions, xmlVersion) {
|
|
81
|
-
let xmlStr = "";
|
|
82
|
-
let isPreviousElementTag = false;
|
|
83
|
-
|
|
84
|
-
if (options.maxNestedTags && matcher.getDepth() > options.maxNestedTags) {
|
|
85
|
-
throw new Error("Maximum nested tags exceeded");
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
if (!Array.isArray(arr)) {
|
|
89
|
-
// Non-array values (e.g. string tag values) should be treated as text content
|
|
90
|
-
if (arr !== undefined && arr !== null) {
|
|
91
|
-
let text = arr.toString();
|
|
92
|
-
text = replaceEntitiesValue(text, options);
|
|
93
|
-
return text;
|
|
94
|
-
}
|
|
95
|
-
return "";
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
for (let i = 0; i < arr.length; i++) {
|
|
99
|
-
const tagObj = arr[i];
|
|
100
|
-
const rawTagName = propName(tagObj);
|
|
101
|
-
if (rawTagName === undefined) continue;
|
|
102
|
-
|
|
103
|
-
// Special names are exempt from sanitizeName: internal conventions and PI tags
|
|
104
|
-
// are not user-supplied XML element names.
|
|
105
|
-
const isSpecialName = rawTagName === options.textNodeName
|
|
106
|
-
|| rawTagName === options.cdataPropName
|
|
107
|
-
|| rawTagName === options.commentPropName
|
|
108
|
-
|| rawTagName[0] === '?';
|
|
109
|
-
|
|
110
|
-
// Resolve tag name (may transform it; may throw for invalid names)
|
|
111
|
-
const tagName = isSpecialName
|
|
112
|
-
? rawTagName
|
|
113
|
-
: resolveTagName(rawTagName, false, options, matcher, xmlVersion);
|
|
114
|
-
|
|
115
|
-
// Extract attributes from ":@" property
|
|
116
|
-
const attrValues = extractAttributeValues(tagObj[":@"], options);
|
|
117
|
-
|
|
118
|
-
// Push resolved tag to matcher WITH attributes
|
|
119
|
-
matcher.push(tagName, attrValues);
|
|
120
|
-
|
|
121
|
-
// Check if this is a stop node using Expression matching
|
|
122
|
-
const isStopNode = checkStopNode(matcher, stopNodeExpressions);
|
|
123
|
-
|
|
124
|
-
if (tagName === options.textNodeName) {
|
|
125
|
-
let tagText = tagObj[rawTagName];
|
|
126
|
-
if (!isStopNode) {
|
|
127
|
-
tagText = options.tagValueProcessor(tagName, tagText);
|
|
128
|
-
tagText = replaceEntitiesValue(tagText, options);
|
|
129
|
-
}
|
|
130
|
-
if (isPreviousElementTag) {
|
|
131
|
-
xmlStr += indentation;
|
|
132
|
-
}
|
|
133
|
-
xmlStr += tagText;
|
|
134
|
-
isPreviousElementTag = false;
|
|
135
|
-
matcher.pop();
|
|
136
|
-
continue;
|
|
137
|
-
} else if (tagName === options.cdataPropName) {
|
|
138
|
-
if (isPreviousElementTag) {
|
|
139
|
-
xmlStr += indentation;
|
|
140
|
-
}
|
|
141
|
-
const val = tagObj[rawTagName][0][options.textNodeName];
|
|
142
|
-
const safeVal = safeCdata(val);
|
|
143
|
-
xmlStr += `<![CDATA[${safeVal}]]>`;
|
|
144
|
-
isPreviousElementTag = false;
|
|
145
|
-
matcher.pop();
|
|
146
|
-
continue;
|
|
147
|
-
} else if (tagName === options.commentPropName) {
|
|
148
|
-
const val = tagObj[rawTagName][0][options.textNodeName];
|
|
149
|
-
const safeVal = safeComment(val);
|
|
150
|
-
xmlStr += indentation + `<!--${safeVal}-->`;
|
|
151
|
-
isPreviousElementTag = true;
|
|
152
|
-
matcher.pop();
|
|
153
|
-
continue;
|
|
154
|
-
} else if (tagName[0] === "?") {
|
|
155
|
-
const attStr = attr_to_str(tagObj[":@"], options, isStopNode, matcher, xmlVersion);
|
|
156
|
-
const tempInd = tagName === "?xml" ? "" : indentation;
|
|
157
|
-
// Text node content on PI/XML declaration tags is intentionally ignored.
|
|
158
|
-
// Only attributes are valid on these tags per the XML spec.
|
|
159
|
-
xmlStr += tempInd + `<${tagName}${attStr}?>`;
|
|
160
|
-
isPreviousElementTag = true;
|
|
161
|
-
matcher.pop();
|
|
162
|
-
continue;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
let newIdentation = indentation;
|
|
166
|
-
if (newIdentation !== "") {
|
|
167
|
-
newIdentation += options.indentBy;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// Pass isStopNode to attr_to_str so attributes are also not processed for stopNodes
|
|
171
|
-
const attStr = attr_to_str(tagObj[":@"], options, isStopNode, matcher, xmlVersion);
|
|
172
|
-
const tagStart = indentation + `<${tagName}${attStr}`;
|
|
173
|
-
|
|
174
|
-
// If this is a stopNode, get raw content without processing
|
|
175
|
-
let tagValue;
|
|
176
|
-
if (isStopNode) {
|
|
177
|
-
tagValue = getRawContent(tagObj[rawTagName], options);
|
|
178
|
-
} else {
|
|
179
|
-
tagValue = arrToStr(tagObj[rawTagName], options, newIdentation, matcher, stopNodeExpressions, xmlVersion);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
if (options.unpairedTags.indexOf(tagName) !== -1) {
|
|
183
|
-
if (options.suppressUnpairedNode) xmlStr += tagStart + ">";
|
|
184
|
-
else xmlStr += tagStart + "/>";
|
|
185
|
-
} else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) {
|
|
186
|
-
xmlStr += tagStart + "/>";
|
|
187
|
-
} else if (tagValue && tagValue.endsWith(">")) {
|
|
188
|
-
xmlStr += tagStart + `>${tagValue}${indentation}</${tagName}>`;
|
|
189
|
-
} else {
|
|
190
|
-
xmlStr += tagStart + ">";
|
|
191
|
-
if (tagValue && indentation !== "" && (tagValue.includes("/>") || tagValue.includes("</"))) {
|
|
192
|
-
xmlStr += indentation + options.indentBy + tagValue + indentation;
|
|
193
|
-
} else {
|
|
194
|
-
xmlStr += tagValue;
|
|
195
|
-
}
|
|
196
|
-
xmlStr += `</${tagName}>`;
|
|
197
|
-
}
|
|
198
|
-
isPreviousElementTag = true;
|
|
199
|
-
|
|
200
|
-
// Pop tag from matcher
|
|
201
|
-
matcher.pop();
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
return xmlStr;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Extract attribute values from the ":@" object and return as plain object
|
|
209
|
-
* for passing to matcher.push()
|
|
210
|
-
*/
|
|
211
|
-
function extractAttributeValues(attrMap, options) {
|
|
212
|
-
if (!attrMap || options.ignoreAttributes) return null;
|
|
213
|
-
|
|
214
|
-
const attrValues = {};
|
|
215
|
-
let hasAttrs = false;
|
|
216
|
-
|
|
217
|
-
for (let attr in attrMap) {
|
|
218
|
-
if (!Object.prototype.hasOwnProperty.call(attrMap, attr)) continue;
|
|
219
|
-
// Remove the attribute prefix to get clean attribute name
|
|
220
|
-
const cleanAttrName = attr.startsWith(options.attributeNamePrefix)
|
|
221
|
-
? attr.substr(options.attributeNamePrefix.length)
|
|
222
|
-
: attr;
|
|
223
|
-
attrValues[cleanAttrName] = escapeAttribute(attrMap[attr]);
|
|
224
|
-
hasAttrs = true;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
return hasAttrs ? attrValues : null;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Extract raw content from a stopNode without any processing
|
|
232
|
-
* This preserves the content exactly as-is, including special characters
|
|
233
|
-
*/
|
|
234
|
-
function getRawContent(arr, options) {
|
|
235
|
-
if (!Array.isArray(arr)) {
|
|
236
|
-
// Non-array values return as-is
|
|
237
|
-
if (arr !== undefined && arr !== null) {
|
|
238
|
-
return arr.toString();
|
|
239
|
-
}
|
|
240
|
-
return "";
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
let content = "";
|
|
244
|
-
for (let i = 0; i < arr.length; i++) {
|
|
245
|
-
const item = arr[i];
|
|
246
|
-
const tagName = propName(item);
|
|
247
|
-
|
|
248
|
-
if (tagName === options.textNodeName) {
|
|
249
|
-
// Raw text content - NO processing, NO entity replacement
|
|
250
|
-
content += item[tagName];
|
|
251
|
-
} else if (tagName === options.cdataPropName) {
|
|
252
|
-
// CDATA content
|
|
253
|
-
content += item[tagName][0][options.textNodeName];
|
|
254
|
-
} else if (tagName === options.commentPropName) {
|
|
255
|
-
// Comment content
|
|
256
|
-
content += item[tagName][0][options.textNodeName];
|
|
257
|
-
} else if (tagName && tagName[0] === "?") {
|
|
258
|
-
// Processing instruction - skip for stopNodes
|
|
259
|
-
continue;
|
|
260
|
-
} else if (tagName) {
|
|
261
|
-
// Nested tags within stopNode — no sanitizeName, content is raw
|
|
262
|
-
const attStr = attr_to_str_raw(item[":@"], options);
|
|
263
|
-
const nestedContent = getRawContent(item[tagName], options);
|
|
264
|
-
|
|
265
|
-
if (!nestedContent || nestedContent.length === 0) {
|
|
266
|
-
content += `<${tagName}${attStr}/>`;
|
|
267
|
-
} else {
|
|
268
|
-
content += `<${tagName}${attStr}>${nestedContent}</${tagName}>`;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
return content;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Build attribute string for stopNodes - NO entity replacement
|
|
277
|
-
*/
|
|
278
|
-
function attr_to_str_raw(attrMap, options) {
|
|
279
|
-
let attrStr = "";
|
|
280
|
-
if (attrMap && !options.ignoreAttributes) {
|
|
281
|
-
for (let attr in attrMap) {
|
|
282
|
-
if (!Object.prototype.hasOwnProperty.call(attrMap, attr)) continue;
|
|
283
|
-
// For stopNodes, use raw value without processing
|
|
284
|
-
let attrVal = attrMap[attr];
|
|
285
|
-
if (attrVal === true && options.suppressBooleanAttributes) {
|
|
286
|
-
attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`;
|
|
287
|
-
} else {
|
|
288
|
-
attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}="${escapeAttribute(attrVal)}"`;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
return attrStr;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
function propName(obj) {
|
|
296
|
-
const keys = Object.keys(obj);
|
|
297
|
-
for (let i = 0; i < keys.length; i++) {
|
|
298
|
-
const key = keys[i];
|
|
299
|
-
if (!Object.prototype.hasOwnProperty.call(obj, key)) continue;
|
|
300
|
-
if (key !== ":@") return key;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Build attribute string, resolving attribute names through sanitizeName when configured.
|
|
306
|
-
* Accepts matcher so the callback has path context.
|
|
307
|
-
*/
|
|
308
|
-
function attr_to_str(attrMap, options, isStopNode, matcher, xmlVersion) {
|
|
309
|
-
let attrStr = "";
|
|
310
|
-
if (attrMap && !options.ignoreAttributes) {
|
|
311
|
-
for (let attr in attrMap) {
|
|
312
|
-
if (!Object.prototype.hasOwnProperty.call(attrMap, attr)) continue;
|
|
313
|
-
|
|
314
|
-
// Strip prefix to get the clean XML attribute name, then optionally sanitize it
|
|
315
|
-
const cleanAttrName = attr.substr(options.attributeNamePrefix.length);
|
|
316
|
-
const resolvedAttrName = isStopNode
|
|
317
|
-
? cleanAttrName // stopNodes are raw — skip sanitizeName for attr names too
|
|
318
|
-
: resolveTagName(cleanAttrName, true, options, matcher, xmlVersion);
|
|
319
|
-
|
|
320
|
-
let attrVal;
|
|
321
|
-
if (isStopNode) {
|
|
322
|
-
// For stopNodes, use raw value without any processing
|
|
323
|
-
attrVal = attrMap[attr];
|
|
324
|
-
} else {
|
|
325
|
-
// Normal processing: apply attributeValueProcessor and entity replacement
|
|
326
|
-
attrVal = options.attributeValueProcessor(attr, attrMap[attr]);
|
|
327
|
-
attrVal = replaceEntitiesValue(attrVal, options);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
if (attrVal === true && options.suppressBooleanAttributes) {
|
|
331
|
-
attrStr += ` ${resolvedAttrName}`;
|
|
332
|
-
} else {
|
|
333
|
-
attrStr += ` ${resolvedAttrName}="${escapeAttribute(attrVal)}"`;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
return attrStr;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
function checkStopNode(matcher, stopNodeExpressions) {
|
|
341
|
-
if (!stopNodeExpressions || stopNodeExpressions.length === 0) return false;
|
|
342
|
-
|
|
343
|
-
for (let i = 0; i < stopNodeExpressions.length; i++) {
|
|
344
|
-
if (matcher.matches(stopNodeExpressions[i])) {
|
|
345
|
-
return true;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
return false;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
function replaceEntitiesValue(textValue, options) {
|
|
352
|
-
if (textValue && textValue.length > 0 && options.processEntities) {
|
|
353
|
-
for (let i = 0; i < options.entities.length; i++) {
|
|
354
|
-
const entity = options.entities[i];
|
|
355
|
-
textValue = textValue.replace(entity.regex, entity.val);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
return textValue;
|
|
359
|
-
}
|
|
File without changes
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export function safeComment(val) {
|
|
4
|
-
return String(val)
|
|
5
|
-
.replace(/--/g, '- -') // -- is illegal anywhere in comment content
|
|
6
|
-
.replace(/--/g, '- -') // handle the scenario when 2 consiucative dashes appears
|
|
7
|
-
.replace(/-$/, '- '); // trailing - would form -- with the closing -->
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function safeCdata(val) {
|
|
11
|
-
return String(val).replace(/\]\]>/g, ']]]]><![CDATA[>')
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export function escapeAttribute(val) {
|
|
15
|
-
return String(val).replace(/"/g, '"').replace(/'/g, ''')
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! js-yaml 3.14.2 https://github.com/nodeca/js-yaml */!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).jsyaml=e()}(function(){return function i(r,o,a){function s(t,e){if(!o[t]){if(!r[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=o[t]={exports:{}},r[t][0].call(n.exports,function(e){return s(r[t][1][e]||e)},n,n.exports,i,r,o,a)}return o[t].exports}for(var c="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,t,n){var i=e("./js-yaml/loader"),r=e("./js-yaml/dumper");function o(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}t.exports.Type=e("./js-yaml/type"),t.exports.Schema=e("./js-yaml/schema"),t.exports.FAILSAFE_SCHEMA=e("./js-yaml/schema/failsafe"),t.exports.JSON_SCHEMA=e("./js-yaml/schema/json"),t.exports.CORE_SCHEMA=e("./js-yaml/schema/core"),t.exports.DEFAULT_SAFE_SCHEMA=e("./js-yaml/schema/default_safe"),t.exports.DEFAULT_FULL_SCHEMA=e("./js-yaml/schema/default_full"),t.exports.load=i.load,t.exports.loadAll=i.loadAll,t.exports.safeLoad=i.safeLoad,t.exports.safeLoadAll=i.safeLoadAll,t.exports.dump=r.dump,t.exports.safeDump=r.safeDump,t.exports.YAMLException=e("./js-yaml/exception"),t.exports.MINIMAL_SCHEMA=e("./js-yaml/schema/failsafe"),t.exports.SAFE_SCHEMA=e("./js-yaml/schema/default_safe"),t.exports.DEFAULT_SCHEMA=e("./js-yaml/schema/default_full"),t.exports.scan=o("scan"),t.exports.parse=o("parse"),t.exports.compose=o("compose"),t.exports.addConstructor=o("addConstructor")},{"./js-yaml/dumper":3,"./js-yaml/exception":4,"./js-yaml/loader":5,"./js-yaml/schema":7,"./js-yaml/schema/core":8,"./js-yaml/schema/default_full":9,"./js-yaml/schema/default_safe":10,"./js-yaml/schema/failsafe":11,"./js-yaml/schema/json":12,"./js-yaml/type":13}],2:[function(e,t,n){function i(e){return null==e}t.exports.isNothing=i,t.exports.isObject=function(e){return"object"==typeof e&&null!==e},t.exports.toArray=function(e){return Array.isArray(e)?e:i(e)?[]:[e]},t.exports.repeat=function(e,t){for(var n="",i=0;i<t;i+=1)n+=e;return n},t.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},t.exports.extend=function(e,t){var n,i,r,o;if(t)for(n=0,i=(o=Object.keys(t)).length;n<i;n+=1)e[r=o[n]]=t[r];return e}},{}],3:[function(e,t,F){var c=e("./common"),K=e("./exception"),n=e("./schema/default_full"),i=e("./schema/default_safe"),$=Object.prototype.toString,l=Object.prototype.hasOwnProperty,r=9,H=10,o=13,_=32,N=33,M=34,h=35,T=37,L=38,D=39,U=42,m=44,q=45,g=58,Y=61,R=62,B=63,P=64,y=91,x=93,W=96,A=123,z=124,b=125,J={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Q=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function s(e){var t,n,i=e.toString(16).toUpperCase();if(e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else{if(!(e<=4294967295))throw new K("code point within a string may not be greater than 0xFFFFFFFF");t="U",n=8}return"\\"+t+c.repeat("0",n-i.length)+i}function X(e){this.schema=e.schema||n,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=c.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=((e,t)=>{var n,i,r,o,a,s,c;if(null===t)return{};for(n={},r=0,o=(i=Object.keys(t)).length;r<o;r+=1)a=i[r],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(c=e.compiledTypeMap.fallback[a])&&l.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[a]=s;return n})(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function u(e,t){for(var n,i,r=c.repeat(" ",t),o=0,a="",s=e.length;o<s;)o=-1===(n=e.indexOf("\n",o))?(i=e.slice(o),s):(i=e.slice(o,n+1),n+1),i.length&&"\n"!==i&&(a+=r),a+=i;return a}function G(e,t){return"\n"+c.repeat(" ",e.indent*t)}function v(e){return e===_||e===r}function w(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function C(e,t){return w(e)&&65279!==e&&e!==m&&e!==y&&e!==x&&e!==A&&e!==b&&e!==g&&(e!==h||t&&w(e=t)&&!v(e)&&65279!==e&&e!==o&&e!==H)}function k(e){return/^\n* /.test(e)}var j=1,S=2,I=3,O=4,E=5;function ee(e,t,n,i,r){var o,a,s,c,l=!1,u=!1,p=-1!==i,f=-1,d=w(c=e.charCodeAt(0))&&65279!==c&&!v(c)&&c!==q&&c!==B&&c!==g&&c!==m&&c!==y&&c!==x&&c!==A&&c!==b&&c!==h&&c!==L&&c!==U&&c!==N&&c!==z&&c!==Y&&c!==R&&c!==D&&c!==M&&c!==T&&c!==P&&c!==W&&!v(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(!w(a=e.charCodeAt(o)))return E;s=0<o?e.charCodeAt(o-1):null,d=d&&C(a,s)}else{for(o=0;o<e.length;o++){if((a=e.charCodeAt(o))===H)l=!0,p&&(u=u||i<o-f-1&&" "!==e[f+1],f=o);else if(!w(a))return E;s=0<o?e.charCodeAt(o-1):null,d=d&&C(a,s)}u=u||p&&i<o-f-1&&" "!==e[f+1]}return l||u?9<n&&k(e)?E:u?O:I:d&&!r(e)?j:S}function te(o,i,r,a){o.dump=(()=>{if(0===i.length)return"''";if(!o.noCompatMode&&-1!==Q.indexOf(i))return"'"+i+"'";var e=o.indent*Math.max(1,r),t=-1===o.lineWidth?-1:Math.max(Math.min(o.lineWidth,40),o.lineWidth-e),n=a||-1<o.flowLevel&&r>=o.flowLevel;switch(ee(i,n,o.indent,t,function(e){for(var t=o,n=e,i=0,r=t.implicitTypes.length;i<r;i+=1)if(t.implicitTypes[i].resolve(n))return 1;return})){case j:return i;case S:return"'"+i.replace(/'/g,"''")+"'";case I:return"|"+p(i,o.indent)+f(u(i,e));case O:return">"+p(i,o.indent)+f(u(((t,n)=>{for(var e,i=/(\n+)([^\n]*)/g,r=(()=>{var e=-1!==(e=t.indexOf("\n"))?e:t.length;return i.lastIndex=e,d(t.slice(0,e),n)})(),o="\n"===t[0]||" "===t[0];s=i.exec(t);){var a=s[1],s=s[2];e=" "===s[0],r+=a+(o||e||""===s?"":"\n")+d(s,n),o=e}return r})(i,t),e));case E:return'"'+(e=>{for(var t,n,i="",r=0;r<e.length;r++)55296<=(t=e.charCodeAt(r))&&t<=56319&&56320<=(n=e.charCodeAt(r+1))&&n<=57343?(i+=s(1024*(t-55296)+n-56320+65536),r++):(n=J[t],i+=!n&&w(t)?e[r]:n||s(t));return i})(i)+'"';default:throw new K("impossible error: invalid scalar style")}})()}function p(e,t){var t=k(e)?String(t):"",n="\n"===e[e.length-1];return t+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function f(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function d(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,o=0,a=0,s="";i=r.exec(e);)t<(i=i.index)-o&&(s+="\n"+e.slice(o,n=o<a?a:i),o=n+1),a=i;return s+="\n",e.length-o>t&&o<a?s+=e.slice(o,a)+"\n"+e.slice(a+1):s+=e.slice(o),s.slice(1)}function V(e,t,n){for(var i,r,o,a=n?e.explicitTypes:e.implicitTypes,s=0,c=a.length;s<c;s+=1)if(((r=a[s]).instanceOf||r.predicate)&&(!r.instanceOf||"object"==typeof t&&t instanceof r.instanceOf)&&(!r.predicate||r.predicate(t))){if(e.tag=n?r.tag:"?",r.represent){if(o=e.styleMap[r.tag]||r.defaultStyle,"[object Function]"===$.call(r.represent))i=r.represent(t,o);else{if(!l.call(r.represent,o))throw new K("!<"+r.tag+'> tag resolver accepts not "'+o+'" style');i=r.represent[o](t,o)}e.dump=i}return 1}}function Z(e,t,n,i,r,D){e.tag=null,e.dump=n,V(e,n,!1)||V(e,n,!0);var o,a,s=$.call(e.dump),c=(i=i&&(e.flowLevel<0||e.flowLevel>t),"[object Object]"===s||"[object Array]"===s);if(c&&(a=-1!==(o=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||a||2!==e.indent&&0<t)&&(r=!1),a&&e.usedDuplicates[o])e.dump="*ref_"+o;else{if(c&&a&&!e.usedDuplicates[o]&&(e.usedDuplicates[o]=!0),"[object Object]"===s)if(i&&0!==Object.keys(e.dump).length){var l,u,p,f,d,h=e,m=t,g=e.dump,U=r,y="",n=h.tag,x=Object.keys(g);if(!0===h.sortKeys)x.sort();else if("function"==typeof h.sortKeys)x.sort(h.sortKeys);else if(h.sortKeys)throw new K("sortKeys must be a boolean or a function");for(l=0,u=x.length;l<u;l+=1)d="",U&&0===l||(d+=G(h,m)),p=g[f=x[l]],Z(h,m+1,f,!0,!0,!0)&&((f=null!==h.tag&&"?"!==h.tag||h.dump&&1024<h.dump.length)&&(h.dump&&H===h.dump.charCodeAt(0)?d+="?":d+="? "),d+=h.dump,f&&(d+=G(h,m)),Z(h,m+1,p,!0,f))&&(h.dump&&H===h.dump.charCodeAt(0)?d+=":":d+=": ",y+=d+=h.dump);h.tag=n,h.dump=y||"{}",a&&(e.dump="&ref_"+o+e.dump)}else{for(var A,b,v,w=e,C=t,k=e.dump,j="",c=w.tag,S=Object.keys(k),I=0,q=S.length;I<q;I+=1)v="",0!==I&&(v+=", "),w.condenseFlow&&(v+='"'),b=k[A=S[I]],Z(w,C,A,!1,!1)&&(1024<w.dump.length&&(v+="? "),v+=w.dump+(w.condenseFlow?'"':"")+":"+(w.condenseFlow?"":" "),Z(w,C,b,!1,!1))&&(j+=v+=w.dump);w.tag=c,w.dump="{"+j+"}",a&&(e.dump="&ref_"+o+" "+e.dump)}else if("[object Array]"===s){n=e.noArrayIndent&&0<t?t-1:t;if(i&&0!==e.dump.length){for(var O=e,E=n,F=e.dump,Y=r,_="",c=O.tag,N=0,R=F.length;N<R;N+=1)Z(O,E+1,F[N],!0,!0)&&(Y&&0===N||(_+=G(O,E)),O.dump&&H===O.dump.charCodeAt(0)?_+="-":_+="- ",_+=O.dump);O.tag=c,O.dump=_||"[]",a&&(e.dump="&ref_"+o+e.dump)}else{for(var M=e,B=n,P=e.dump,T="",i=M.tag,L=0,W=P.length;L<W;L+=1)Z(M,B,P[L],!1,!1)&&(0!==L&&(T+=","+(M.condenseFlow?"":" ")),T+=M.dump);M.tag=i,M.dump="["+T+"]",a&&(e.dump="&ref_"+o+" "+e.dump)}}else{if("[object String]"!==s){if(e.skipInvalid)return;throw new K("unacceptable kind of an object to dump "+s)}"?"!==e.tag&&te(e,e.dump,t,D)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return 1}function ne(e,t){var n,i,r=[],o=[];for(!function e(t,n,i){var r,o,a;if(null!==t&&"object"==typeof t)if(-1!==(o=n.indexOf(t)))-1===i.indexOf(o)&&i.push(o);else if(n.push(t),Array.isArray(t))for(o=0,a=t.length;o<a;o+=1)e(t[o],n,i);else for(r=Object.keys(t),o=0,a=r.length;o<a;o+=1)e(t[r[o]],n,i)}(e,r,o),n=0,i=o.length;n<i;n+=1)t.duplicates.push(r[o[n]]);t.usedDuplicates=new Array(i)}function a(e,t){t=new X(t=t||{});return t.noRefs||ne(e,t),Z(t,0,e,!0,!0)?t.dump+"\n":""}t.exports.dump=a,t.exports.safeDump=function(e,t){return a(e,c.extend({schema:i},t))}},{"./common":2,"./exception":4,"./schema/default_full":9,"./schema/default_safe":10}],4:[function(e,t,n){function i(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}((i.prototype=Object.create(Error.prototype)).constructor=i).prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},t.exports=i},{}],5:[function(e,t,s){var h=e("./common"),n=e("./exception"),c=e("./mark"),i=e("./schema/default_safe"),l=e("./schema/default_full"),m=Object.prototype.hasOwnProperty,g=1,y=2,x=3,A=4,b=1,Y=2,v=3,R=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,B=/[\x85\u2028\u2029]/,P=/[,\[\]\{\}]/,w=/^(?:!|!!|![a-z\-]+!)$/i,C=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function u(e){return Object.prototype.toString.call(e)}function k(e){return 10===e||13===e}function j(e){return 9===e||32===e}function S(e){return 9===e||32===e||10===e||13===e}function I(e){return 44===e||91===e||93===e||123===e||125===e}function r(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function p(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var f=new Array(256),d=new Array(256),o=0;o<256;o++)f[o]=r(o)?1:0,d[o]=r(o);function W(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||l,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function a(e,t){return new n(t,new c(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function O(e,t){throw a(e,t)}function E(e,t){e.onWarning&&e.onWarning.call(null,a(e,t))}var F={YAML:function(e,t,n){var i,r;null!==e.version&&O(e,"duplication of %YAML directive"),1!==n.length&&O(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&O(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),r=parseInt(r[2],10),1!==i&&O(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=r<2,1!==r&&2!==r&&E(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i;2!==n.length&&O(e,"TAG directive accepts exactly two arguments"),i=n[1],w.test(n=n[0])||O(e,"ill-formed tag handle (first argument) of the TAG directive"),m.call(e.tagMap,n)&&O(e,'there is a previously declared suffix for "'+n+'" tag handle'),C.test(i)||O(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=i}};function _(e,t,n,i){var r,o,a,s;if(t<n){if(s=e.input.slice(t,n),i)for(r=0,o=s.length;r<o;r+=1)9===(a=s.charCodeAt(r))||32<=a&&a<=1114111||O(e,"expected valid JSON character");else R.test(s)&&O(e,"the stream contains non-printable characters");e.result+=s}}function N(e,t,n,i){var r,o,a,s;for(h.isObject(n)||O(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(r=Object.keys(n)).length;a<s;a+=1)o=r[a],m.call(t,o)||(p(t,o,n[o]),i[o]=!0)}function M(e,t,n,i,r,o,a,s){var c,l;if(Array.isArray(r))for(c=0,l=(r=Array.prototype.slice.call(r)).length;c<l;c+=1)Array.isArray(r[c])&&O(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===u(r[c])&&(r[c]="[object Object]");if("object"==typeof r&&"[object Object]"===u(r)&&(r="[object Object]"),r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)N(e,t,o[c],n);else N(e,t,o,n);else e.json||m.call(n,r)||!m.call(t,r)||(e.line=a||e.line,e.position=s||e.position,O(e,"duplicated mapping key")),p(t,r,o),delete n[r];return t}function T(e){var t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):O(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function L(e,t,n){for(var i=0,r=e.input.charCodeAt(e.position);0!==r;){for(;j(r);)r=e.input.charCodeAt(++e.position);if(t&&35===r)for(;10!==(r=e.input.charCodeAt(++e.position))&&13!==r&&0!==r;);if(!k(r))break;for(T(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return-1!==n&&0!==i&&e.lineIndent<n&&E(e,"deficient indentation"),i}function D(e){var t=e.position,n=e.input.charCodeAt(t);return!(45!==n&&46!==n||n!==e.input.charCodeAt(t+1)||n!==e.input.charCodeAt(t+2)||0!==(n=e.input.charCodeAt(t+=3))&&!S(n))}function U(e,t){1===t?e.result+=" ":1<t&&(e.result+=h.repeat("\n",t-1))}function K(e,t){var n,i,r,o,a,s,c,l=e.input.charCodeAt(e.position);if(34===l){for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(l=e.input.charCodeAt(e.position));){if(34===l)return _(e,n,e.position,!0),e.position++,1;if(92===l){if(_(e,n,e.position,!0),k(l=e.input.charCodeAt(++e.position)))L(e,!1,t);else if(l<256&&f[l])e.result+=d[l],e.position++;else if(0<(a=120===(c=l)?2:117===c?4:85===c?8:0)){for(r=a,o=0;0<r;r--)l=e.input.charCodeAt(++e.position),0<=(a=48<=(s=l)&&s<=57?s-48:97<=(s=32|s)&&s<=102?s-97+10:-1)?o=(o<<4)+a:O(e,"expected hexadecimal character");e.result+=(c=o)<=65535?String.fromCharCode(c):String.fromCharCode(55296+(c-65536>>10),56320+(c-65536&1023)),e.position++}else O(e,"unknown escape sequence");n=i=e.position}else k(l)?(_(e,n,i,!0),U(e,L(e,!1,t)),n=i=e.position):e.position===e.lineStart&&D(e)?O(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}O(e,"unexpected end of the stream within a double quoted scalar")}}function $(e,t){var n,i,r=e.tag,o=e.anchor,a=[],s=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&45===i&&S(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,L(e,!0,-1)&&e.lineIndent<=t)a.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,q(e,t,x,!1,!0),a.push(e.result),L(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)O(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=r,e.anchor=o,e.kind="sequence",e.result=a,!0)}function q(e,t,n,i,r){var o,a,s,c,l,u,p=1,f=!1,d=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=s=A===n||x===n,i&&L(e,!0,-1)&&(f=!0,e.lineIndent>t?p=1:e.lineIndent===t?p=0:e.lineIndent<t&&(p=-1)),1===p)for(;(e=>{var t,n,i,r=!1,o=!1,a=e.input.charCodeAt(e.position);if(33===a){if(null!==e.tag&&O(e,"duplication of a tag property"),60===(a=e.input.charCodeAt(++e.position))?(r=!0,a=e.input.charCodeAt(++e.position)):33===a?(o=!0,n="!!",a=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){for(;0!==(a=e.input.charCodeAt(++e.position))&&62!==a;);e.position<e.length?(i=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):O(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==a&&!S(a);)33===a&&(o?O(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),w.test(n)||O(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),P.test(i)&&O(e,"tag suffix cannot contain flow indicator characters")}return i&&!C.test(i)&&O(e,"tag name cannot contain such characters: "+i),r?e.tag=i:m.call(e.tagMap,n)?e.tag=e.tagMap[n]+i:"!"===n?e.tag="!"+i:"!!"===n?e.tag="tag:yaml.org,2002:"+i:O(e,'undeclared tag handle "'+n+'"'),1}})(e)||(e=>{var t,n=e.input.charCodeAt(e.position);if(38===n){for(null!==e.anchor&&O(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!S(n)&&!I(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&O(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),1}})(e);)L(e,!0,-1)?(f=!0,s=o,e.lineIndent>t?p=1:e.lineIndent===t?p=0:e.lineIndent<t&&(p=-1)):s=!1;if(s=s&&(f||r),1!==p&&A!==n||(i=g===n||y===n?t:t+1,r=e.position-e.lineStart,1===p?s&&($(e,r)||((e,t,n)=>{var i,r,o,a,s,c=e.tag,l=e.anchor,u={},p={},f=null,d=null,h=null,m=!1,g=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=u),s=e.input.charCodeAt(e.position);0!==s;){if(i=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,63!==s&&58!==s||!S(i)){if(!q(e,n,y,!1,!0))break;if(e.line===o){for(s=e.input.charCodeAt(e.position);j(s);)s=e.input.charCodeAt(++e.position);if(58===s)S(s=e.input.charCodeAt(++e.position))||O(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(M(e,u,p,f,d,null),f=d=h=null),r=m=!(g=!0),f=e.tag,d=e.result;else{if(!g)return e.tag=c,e.anchor=l,1;O(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!g)return e.tag=c,e.anchor=l,1;O(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===s?(m&&(M(e,u,p,f,d,null),f=d=h=null),r=m=g=!0):m?r=!(m=!1):O(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=i;if((e.line===o||e.lineIndent>t)&&(q(e,t,A,!0,r)&&(m?d=e.result:h=e.result),m||(M(e,u,p,f,d,h,o,a),f=d=h=null),L(e,!0,-1),s=e.input.charCodeAt(e.position)),t<e.lineIndent&&0!==s)O(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&M(e,u,p,f,d,null),g&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=u),g})(e,r,i))||((e,t)=>{var n,i,r,o,a,s,c,l,u,p=!0,f=e.tag,d=e.anchor,h={},m=e.input.charCodeAt(e.position);if(91===m)s=!(r=93),i=[];else{if(123!==m)return;r=125,s=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),m=e.input.charCodeAt(++e.position);0!==m;){if(L(e,!0,t),(m=e.input.charCodeAt(e.position))===r)return e.position++,e.tag=f,e.anchor=d,e.kind=s?"mapping":"sequence",e.result=i,1;p||O(e,"missed comma between flow collection entries"),u=null,o=a=!1,63===m&&S(e.input.charCodeAt(e.position+1))&&(o=a=!0,e.position++,L(e,!0,t)),n=e.line,q(e,t,g,!1,!0),l=e.tag,c=e.result,L(e,!0,t),m=e.input.charCodeAt(e.position),!a&&e.line!==n||58!==m||(o=!0,m=e.input.charCodeAt(++e.position),L(e,!0,t),q(e,t,g,!1,!0),u=e.result),s?M(e,i,h,l,c,u):o?i.push(M(e,null,h,l,c,u)):i.push(c),L(e,!0,t),44===(m=e.input.charCodeAt(e.position))?(p=!0,m=e.input.charCodeAt(++e.position)):p=!1}O(e,"unexpected end of the stream within a flow collection")})(e,i)?d=!0:(a&&((e,t)=>{var n,i,r,o=b,a=!1,s=!1,c=t,l=0,u=!1,p=e.input.charCodeAt(e.position);if(124===p)i=!1;else{if(62!==p)return;i=!0}for(e.kind="scalar",e.result="";0!==p;)if(43===(p=e.input.charCodeAt(++e.position))||45===p)b===o?o=43===p?v:Y:O(e,"repeat of a chomping mode identifier");else{if(!(0<=(r=48<=(r=p)&&r<=57?r-48:-1)))break;0==r?O(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?O(e,"repeat of an indentation width identifier"):(c=t+r-1,s=!0)}if(j(p)){for(;j(p=e.input.charCodeAt(++e.position)););if(35===p)for(;!k(p=e.input.charCodeAt(++e.position))&&0!==p;);}for(;0!==p;){for(T(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<c)&&32===p;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>c&&(c=e.lineIndent),k(p))l++;else{if(e.lineIndent<c){o===v?e.result+=h.repeat("\n",a?1+l:l):o===b&&a&&(e.result+="\n");break}for(i?j(p)?(u=!0,e.result+=h.repeat("\n",a?1+l:l)):u?(u=!1,e.result+=h.repeat("\n",l+1)):0===l?a&&(e.result+=" "):e.result+=h.repeat("\n",l):e.result+=h.repeat("\n",a?1+l:l),s=a=!0,l=0,n=e.position;!k(p)&&0!==p;)p=e.input.charCodeAt(++e.position);_(e,n,e.position,!1)}}return 1})(e,i)||((e,t)=>{var n,i,r=e.input.charCodeAt(e.position);if(39===r){for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(_(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return 1;n=e.position,e.position++,i=e.position}else k(r)?(_(e,n,i,!0),U(e,L(e,!1,t)),n=i=e.position):e.position===e.lineStart&&D(e)?O(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);O(e,"unexpected end of the stream within a single quoted scalar")}})(e,i)||K(e,i)?d=!0:(e=>{var t,n=e.input.charCodeAt(e.position);if(42===n){for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!S(n)&&!I(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&O(e,"name of an alias node must contain at least one character"),t=e.input.slice(t,e.position),m.call(e.anchorMap,t)||O(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],L(e,!0,-1),1}})(e)?(d=!0,null===e.tag&&null===e.anchor||O(e,"alias node should not have any properties")):((e,t,n)=>{var i,r,o,a,s,c,l,u=e.kind,p=e.result,f=e.input.charCodeAt(e.position);if(!S(f)&&!I(f)&&35!==f&&38!==f&&42!==f&&33!==f&&124!==f&&62!==f&&39!==f&&34!==f&&37!==f&&64!==f&&96!==f&&(63!==f&&45!==f||!(S(i=e.input.charCodeAt(e.position+1))||n&&I(i)))){for(e.kind="scalar",e.result="",r=o=e.position,a=!1;0!==f;){if(58===f){if(S(i=e.input.charCodeAt(e.position+1))||n&&I(i))break}else if(35===f){if(S(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&D(e)||n&&I(f))break;if(k(f)){if(s=e.line,c=e.lineStart,l=e.lineIndent,L(e,!1,-1),t<=e.lineIndent){a=!0,f=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=c,e.lineIndent=l;break}}a&&(_(e,r,o,!1),U(e,e.line-s),r=o=e.position,a=!1),j(f)||(o=e.position+1),f=e.input.charCodeAt(++e.position)}if(_(e,r,o,!1),e.result)return 1;e.kind=u,e.result=p}})(e,i,g===n)&&(d=!0,null===e.tag)&&(e.tag="?"),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===p&&(d=s&&$(e,r))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&O(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((u=e.implicitTypes[c]).resolve(e.result)){e.result=u.construct(e.result),e.tag=u.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else m.call(e.typeMap[e.kind||"fallback"],e.tag)?(u=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&u.kind!==e.kind&&O(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result)?(e.result=u.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):O(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):O(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||d}function H(e,t){t=t||{};var n=new W(e=0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0))?e.slice(1):e,t),t=e.indexOf("\0");for(-1!==t&&(n.position=t,O(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;){a=l=o=r=i=c=s=void 0;var i,r,o,a,s=n,c=s.position,l=!1;for(s.version=null,s.checkLineBreaks=s.legacy,s.tagMap={},s.anchorMap={};0!==(a=s.input.charCodeAt(s.position))&&(L(s,!0,-1),a=s.input.charCodeAt(s.position),!(0<s.lineIndent||37!==a));){for(l=!0,a=s.input.charCodeAt(++s.position),i=s.position;0!==a&&!S(a);)a=s.input.charCodeAt(++s.position);for(o=[],(r=s.input.slice(i,s.position)).length<1&&O(s,"directive name must not be less than one character in length");0!==a;){for(;j(a);)a=s.input.charCodeAt(++s.position);if(35===a){for(;0!==(a=s.input.charCodeAt(++s.position))&&!k(a););break}if(k(a))break;for(i=s.position;0!==a&&!S(a);)a=s.input.charCodeAt(++s.position);o.push(s.input.slice(i,s.position))}0!==a&&T(s),m.call(F,r)?F[r](s,r,o):E(s,'unknown document directive "'+r+'"')}L(s,!0,-1),0===s.lineIndent&&45===s.input.charCodeAt(s.position)&&45===s.input.charCodeAt(s.position+1)&&45===s.input.charCodeAt(s.position+2)?(s.position+=3,L(s,!0,-1)):l&&O(s,"directives end mark is expected"),q(s,s.lineIndent-1,A,!1,!0),L(s,!0,-1),s.checkLineBreaks&&B.test(s.input.slice(c,s.position))&&E(s,"non-ASCII line breaks are interpreted as content"),s.documents.push(s.result),s.position===s.lineStart&&D(s)?46===s.input.charCodeAt(s.position)&&(s.position+=3,L(s,!0,-1)):s.position<s.length-1&&O(s,"end of the stream or a document separator is expected")}return n.documents}function G(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var i=H(e,n);if("function"!=typeof t)return i;for(var r=0,o=i.length;r<o;r+=1)t(i[r])}function V(e,t){e=H(e,t);if(0!==e.length){if(1===e.length)return e[0];throw new n("expected a single document in the stream, but found more")}}t.exports.loadAll=G,t.exports.load=V,t.exports.safeLoadAll=function(e,t,n){return"object"==typeof t&&null!==t&&void 0===n&&(n=t,t=null),G(e,t,h.extend({schema:i},n))},t.exports.safeLoad=function(e,t){return V(e,h.extend({schema:i},t))}},{"./common":2,"./exception":4,"./mark":6,"./schema/default_full":9,"./schema/default_safe":10}],6:[function(e,t,n){var s=e("./common");function i(e,t,n,i,r){this.name=e,this.buffer=t,this.position=n,this.line=i,this.column=r}i.prototype.getSnippet=function(e,t){var n,i,r,o,a;if(!this.buffer)return null;for(e=e||4,t=t||75,n="",i=this.position;0<i&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(this.position- --i>t/2-1){n=" ... ",i+=5;break}for(r="",o=this.position;o<this.buffer.length&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(o));)if((o+=1)-this.position>t/2-1){r=" ... ",o-=5;break}return a=this.buffer.slice(i,o),s.repeat(" ",e)+n+a+r+"\n"+s.repeat(" ",e+this.position-i+n.length)+"^"},i.prototype.toString=function(e){var t="";return this.name&&(t+='in "'+this.name+'" '),t+="at line "+(this.line+1)+", column "+(this.column+1),e||(e=this.getSnippet())&&(t+=":\n"+e),t},t.exports=i},{"./common":2}],7:[function(e,t,n){var i=e("./common"),r=e("./exception"),o=e("./type");function a(e,t,i){var r=[];return e.include.forEach(function(e){i=a(e,t,i)}),e[t].forEach(function(n){i.forEach(function(e,t){e.tag===n.tag&&e.kind===n.kind&&r.push(t)}),i.push(n)}),i.filter(function(e,t){return-1===r.indexOf(t)})}function s(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function i(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(i);return n}(this.compiledImplicit,this.compiledExplicit)}s.DEFAULT=null,s.create=function(){var e,t;switch(arguments.length){case 1:e=s.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new r("Wrong number of arguments for Schema.create function")}if(e=i.toArray(e),t=i.toArray(t),!e.every(function(e){return e instanceof s}))throw new r("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(t.every(function(e){return e instanceof o}))return new s({include:e,explicit:t});throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")},t.exports=s},{"./common":2,"./exception":4,"./type":13}],8:[function(e,t,n){var i=e("../schema");t.exports=new i({include:[e("./json")]})},{"../schema":7,"./json":12}],9:[function(e,t,n){var i=e("../schema");t.exports=i.DEFAULT=new i({include:[e("./default_safe")],explicit:[e("../type/js/undefined"),e("../type/js/regexp"),e("../type/js/function")]})},{"../schema":7,"../type/js/function":18,"../type/js/regexp":19,"../type/js/undefined":20,"./default_safe":10}],10:[function(e,t,n){var i=e("../schema");t.exports=new i({include:[e("./core")],implicit:[e("../type/timestamp"),e("../type/merge")],explicit:[e("../type/binary"),e("../type/omap"),e("../type/pairs"),e("../type/set")]})},{"../schema":7,"../type/binary":14,"../type/merge":22,"../type/omap":24,"../type/pairs":25,"../type/set":27,"../type/timestamp":29,"./core":8}],11:[function(e,t,n){var i=e("../schema");t.exports=new i({explicit:[e("../type/str"),e("../type/seq"),e("../type/map")]})},{"../schema":7,"../type/map":21,"../type/seq":26,"../type/str":28}],12:[function(e,t,n){var i=e("../schema");t.exports=new i({include:[e("./failsafe")],implicit:[e("../type/null"),e("../type/bool"),e("../type/int"),e("../type/float")]})},{"../schema":7,"../type/bool":15,"../type/float":16,"../type/int":17,"../type/null":23,"./failsafe":11}],13:[function(e,t,n){var r=e("./exception"),o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];t.exports=function(t,e){var n,i;if(e=e||{},Object.keys(e).forEach(function(e){if(-1===o.indexOf(e))throw new r('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(e){return e},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=(n=e.styleAliases||null,i={},null!==n&&Object.keys(n).forEach(function(t){n[t].forEach(function(e){i[String(e)]=t})}),i),-1===a.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}},{"./exception":4}],14:[function(e,t,n){try{var s=e("buffer").Buffer}catch(e){}var e=e("../type"),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;for(var t,n=0,i=e.length,r=c,o=0;o<i;o++)if(!(64<(t=r.indexOf(e.charAt(o))))){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){for(var t=e.replace(/[\r\n=]/g,""),n=t.length,i=c,r=0,o=[],a=0;a<n;a++)a%4==0&&a&&(o.push(r>>16&255),o.push(r>>8&255),o.push(255&r)),r=r<<6|i.indexOf(t.charAt(a));return 0==(e=n%4*6)?(o.push(r>>16&255),o.push(r>>8&255),o.push(255&r)):18==e?(o.push(r>>10&255),o.push(r>>2&255)):12==e&&o.push(r>>4&255),s?s.from?s.from(o):new s(o):o},predicate:function(e){return s&&s.isBuffer(e)},represent:function(e){for(var t,n="",i=0,r=e.length,o=c,a=0;a<r;a++)a%3==0&&a&&(n=(n=n+o[i>>18&63]+o[i>>12&63])+o[i>>6&63]+o[63&i]),i=(i<<8)+e[a];return 0==(t=r%3)?n=(n=n+o[i>>18&63]+o[i>>12&63])+o[i>>6&63]+o[63&i]:2==t?n=(n=n+o[i>>10&63]+o[i>>4&63])+o[i<<2&63]+o[64]:1==t&&(n=(n=n+o[i>>2&63]+o[i<<4&63])+o[64]+o[64]),n}})},{"../type":13}],15:[function(e,t,n){e=e("../type");t.exports=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){var t;return null!==e&&(4===(t=e.length)&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e))},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},{"../type":13}],16:[function(e,t,n){var i=e("../common"),e=e("../type"),r=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var o=/^[-+]?[0-9]+e/;t.exports=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!r.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n=e.replace(/_/g,"").toLowerCase(),e="-"===n[0]?-1:1,i=[];return".inf"===(n=0<="+-".indexOf(n[0])?n.slice(1):n)?1==e?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===n?NaN:0<=n.indexOf(":")?(n.split(":").forEach(function(e){i.unshift(parseFloat(e,10))}),n=0,t=1,i.forEach(function(e){n+=e*t,t*=60}),e*n):e*parseFloat(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||i.isNegativeZero(e))},represent:function(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(i.isNegativeZero(e))return"-0.0";return t=e.toString(10),o.test(t)?t.replace("e",".e"):t},defaultStyle:"lowercase"})},{"../common":2,"../type":13}],17:[function(e,t,n){var i=e("../common"),e=e("../type");t.exports=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i,r,o=e.length,a=0,s=!1;if(!o)return!1;if("0"===(t="-"!==(t=e[a])&&"+"!==t?t:e[++a])){if(a+1===o)return!0;if("b"===(t=e[++a])){for(a++;a<o;a++)if("_"!==(t=e[a])){if("0"!==t&&"1"!==t)return!1;s=!0}}else if("x"===t){for(a++;a<o;a++)if("_"!==(t=e[a])){if(!(48<=(i=e.charCodeAt(a))&&i<=57||65<=i&&i<=70||97<=i&&i<=102))return!1;s=!0}}else for(;a<o;a++)if("_"!==(t=e[a])){if(!(48<=(n=e.charCodeAt(a))&&n<=55))return!1;s=!0}return s&&"_"!==t}if("_"===t)return!1;for(;a<o;a++)if("_"!==(t=e[a])){if(":"===t)break;if(!(48<=(r=e.charCodeAt(a))&&r<=57))return!1;s=!0}return!(!s||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(a)))},construct:function(e){var t,n,i=e,e=1,r=[];return"-"!==(t=(i=-1!==i.indexOf("_")?i.replace(/_/g,""):i)[0])&&"+"!==t||("-"===t&&(e=-1),t=(i=i.slice(1))[0]),"0"===i?0:"0"===t?"b"===i[1]?e*parseInt(i.slice(2),2):"x"===i[1]?e*parseInt(i,16):e*parseInt(i,8):-1!==i.indexOf(":")?(i.split(":").forEach(function(e){r.unshift(parseInt(e,10))}),i=0,n=1,r.forEach(function(e){i+=e*n,n*=60}),e*i):e*parseInt(i,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!i.isNegativeZero(e)},represent:{binary:function(e){return 0<=e?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return 0<=e?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return 0<=e?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},{"../common":2,"../type":13}],18:[function(e,t,n){try{var r=e("esprima")}catch(e){"undefined"!=typeof window&&(r=window.esprima)}e=e("../../type");t.exports=new e("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=r.parse(t,{range:!0});return"Program"!==n.type||1!==n.body.length||"ExpressionStatement"!==n.body[0].type||"ArrowFunctionExpression"!==n.body[0].expression.type&&"FunctionExpression"!==n.body[0].expression.type?!1:!0}catch(e){return!1}},construct:function(e){var t,e="("+e+")",n=r.parse(e,{range:!0}),i=[];if("Program"!==n.type||1!==n.body.length||"ExpressionStatement"!==n.body[0].type||"ArrowFunctionExpression"!==n.body[0].expression.type&&"FunctionExpression"!==n.body[0].expression.type)throw new Error("Failed to resolve function");return n.body[0].expression.params.forEach(function(e){i.push(e.name)}),t=n.body[0].expression.body.range,"BlockStatement"===n.body[0].expression.body.type?new Function(i,e.slice(t[0]+1,t[1]-1)):new Function(i,"return "+e.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},{"../../type":13}],19:[function(e,t,n){e=e("../../type");t.exports=new e("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,e=/\/([gim]*)$/.exec(e),n="";if("/"===t[0]){if(3<(n=e?e[1]:n).length)return!1;if("/"!==t[t.length-n.length-1])return!1}return!0},construct:function(e){var t=e,e=/\/([gim]*)$/.exec(e),n="";return"/"===t[0]&&(e&&(n=e[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},{"../../type":13}],20:[function(e,t,n){e=e("../../type");t.exports=new e("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},{"../../type":13}],21:[function(e,t,n){e=e("../type");t.exports=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},{"../type":13}],22:[function(e,t,n){e=e("../type");t.exports=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},{"../type":13}],23:[function(e,t,n){e=e("../type");t.exports=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){var t;return null===e||1===(t=e.length)&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":13}],24:[function(e,t,n){var e=e("../type"),c=Object.prototype.hasOwnProperty,l=Object.prototype.toString;t.exports=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null!==e)for(var t,n,i,r=[],o=e,a=0,s=o.length;a<s;a+=1){if(t=o[a],i=!1,"[object Object]"!==l.call(t))return!1;for(n in t)if(c.call(t,n)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==r.indexOf(n))return!1;r.push(n)}return!0},construct:function(e){return null!==e?e:[]}})},{"../type":13}],25:[function(e,t,n){var e=e("../type"),s=Object.prototype.toString;t.exports=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null!==e)for(var t,n,i=e,r=new Array(i.length),o=0,a=i.length;o<a;o+=1){if(t=i[o],"[object Object]"!==s.call(t))return!1;if(1!==(n=Object.keys(t)).length)return!1;r[o]=[n[0],t[n[0]]]}return!0},construct:function(e){if(null===e)return[];for(var t,n,i=e,r=new Array(i.length),o=0,a=i.length;o<a;o+=1)t=i[o],n=Object.keys(t),r[o]=[n[0],t[n[0]]];return r}})},{"../type":13}],26:[function(e,t,n){e=e("../type");t.exports=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},{"../type":13}],27:[function(e,t,n){var e=e("../type"),i=Object.prototype.hasOwnProperty;t.exports=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null!==e){var t,n=e;for(t in n)if(i.call(n,t)&&null!==n[t])return!1}return!0},construct:function(e){return null!==e?e:{}}})},{"../type":13}],28:[function(e,t,n){e=e("../type");t.exports=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},{"../type":13}],29:[function(e,t,n){var e=e("../type"),l=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),u=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");t.exports=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==l.exec(e)||null!==u.exec(e))},construct:function(e){var t,n,i,r,o,a=0,s=null,c=l.exec(e);if(null===(c=null===c?u.exec(e):c))throw new Error("Date resolve error");if(e=+c[1],t=+c[2]-1,n=+c[3],!c[4])return new Date(Date.UTC(e,t,n));if(i=+c[4],r=+c[5],o=+c[6],c[7]){for(a=c[7].slice(0,3);a.length<3;)a+="0";a=+a}return c[9]&&(s=6e4*(60*+c[10]+ +(c[11]||0)),"-"===c[9])&&(s=-s),c=new Date(Date.UTC(e,t,n,i,r,o,a)),s&&c.setTime(c.getTime()-s),c},instanceOf:Date,represent:function(e){return e.toISOString()}})},{"../type":13}],"/":[function(e,t,n){e=e("./lib/js-yaml.js");t.exports=e},{"./lib/js-yaml.js":1}]},{},[])("/")});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|