From 0940198c06eb2f057c4fb0e48b2860078353cca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20L=C3=B3pez=20de=20la=20Franca=20Beltran?= Date: Tue, 9 Jan 2024 16:53:05 +0100 Subject: [PATCH 1/5] Switch from 'build' to 'dist' --- .eslintignore | 2 +- .github/workflows/all.yml | 16 ++++++++++++---- .gitignore | 3 ++- CONTRIBUTING.md | 6 +++--- README.md | 7 ++----- {build => dist}/aws.js | 0 {build => dist}/aws.js.LICENSE.txt | 0 {build => dist}/aws.js.map | 0 {build => dist}/event-bridge.js | 0 {build => dist}/event-bridge.js.LICENSE.txt | 0 {build => dist}/event-bridge.js.map | 0 {build => dist}/index.js | 0 {build => dist}/index.js.LICENSE.txt | 0 {build => dist}/index.js.map | 0 {build => dist}/kinesis.js | 0 {build => dist}/kinesis.js.LICENSE.txt | 0 {build => dist}/kinesis.js.map | 0 {build => dist}/kms.js | 0 {build => dist}/kms.js.LICENSE.txt | 0 {build => dist}/kms.js.map | 0 {build => dist}/lambda.js | 0 {build => dist}/lambda.js.LICENSE.txt | 0 {build => dist}/lambda.js.map | 0 {build => dist}/s3.js | 0 {build => dist}/s3.js.LICENSE.txt | 0 {build => dist}/s3.js.map | 0 {build => dist}/secrets-manager.js | 0 {build => dist}/secrets-manager.js.LICENSE.txt | 0 {build => dist}/secrets-manager.js.map | 0 {build => dist}/signature.js | 0 {build => dist}/signature.js.map | 0 {build => dist}/sqs.js | 0 {build => dist}/sqs.js.LICENSE.txt | 0 {build => dist}/sqs.js.map | 0 {build => dist}/ssm.js | 0 {build => dist}/ssm.js.LICENSE.txt | 0 {build => dist}/ssm.js.map | 0 examples/event-bridge.js | 2 +- examples/kinesis.js | 2 +- examples/kms.js | 2 +- examples/lambda.js | 2 +- examples/s3-multipart.js | 2 +- examples/s3.js | 2 +- examples/secrets-manager.js | 2 +- examples/signature-presign.js | 2 +- examples/signature-sign.js | 2 +- examples/sqs.js | 2 +- examples/ssm.js | 2 +- tests/index.js | 2 +- tests/internal/event-bridge.js | 2 +- tests/internal/kinesis.js | 2 +- tests/internal/kms.js | 2 +- tests/internal/lambda.js | 2 +- tests/internal/s3.js | 2 +- tests/internal/secrets-manager.js | 2 +- tests/internal/signature.js | 2 +- tests/internal/sqs.js | 2 +- tests/internal/ssm.js | 2 +- webpack.config.js | 2 +- 59 files changed, 42 insertions(+), 36 deletions(-) rename {build => dist}/aws.js (100%) rename {build => dist}/aws.js.LICENSE.txt (100%) rename {build => dist}/aws.js.map (100%) rename {build => dist}/event-bridge.js (100%) rename {build => dist}/event-bridge.js.LICENSE.txt (100%) rename {build => dist}/event-bridge.js.map (100%) rename {build => dist}/index.js (100%) rename {build => dist}/index.js.LICENSE.txt (100%) rename {build => dist}/index.js.map (100%) rename {build => dist}/kinesis.js (100%) rename {build => dist}/kinesis.js.LICENSE.txt (100%) rename {build => dist}/kinesis.js.map (100%) rename {build => dist}/kms.js (100%) rename {build => dist}/kms.js.LICENSE.txt (100%) rename {build => dist}/kms.js.map (100%) rename {build => dist}/lambda.js (100%) rename {build => dist}/lambda.js.LICENSE.txt (100%) rename {build => dist}/lambda.js.map (100%) rename {build => dist}/s3.js (100%) rename {build => dist}/s3.js.LICENSE.txt (100%) rename {build => dist}/s3.js.map (100%) rename {build => dist}/secrets-manager.js (100%) rename {build => dist}/secrets-manager.js.LICENSE.txt (100%) rename {build => dist}/secrets-manager.js.map (100%) rename {build => dist}/signature.js (100%) rename {build => dist}/signature.js.map (100%) rename {build => dist}/sqs.js (100%) rename {build => dist}/sqs.js.LICENSE.txt (100%) rename {build => dist}/sqs.js.map (100%) rename {build => dist}/ssm.js (100%) rename {build => dist}/ssm.js.LICENSE.txt (100%) rename {build => dist}/ssm.js.map (100%) diff --git a/.eslintignore b/.eslintignore index 685d12f..1924f06 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,4 @@ .cache/ -build/ +dist/ public/ node_modules/ diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index dd90499..b2fad8e 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -17,6 +17,17 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install npm packages + run: npm install + + - name: Verify the build is up to date + run: | + npm run webpack -- --output-path="${RUNNER_TEMP}/dist" + if ! diff -r "${RUNNER_TEMP}/dist" dist; then + echo "Build is out of date, please run 'npm run webpack' and commit the changes" + exit 1 + fi + - name: Install Go uses: actions/setup-go@v4 with: @@ -31,8 +42,5 @@ jobs: - name: Wait for the localstack scripts to have been applied run: sleep 30 - - name: Install npm packages - run: npm install - - name: Test - run: npm run webpack && npm run ci-test + run: npm run ci-test diff --git a/.gitignore b/.gitignore index 661015b..77d4eae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ -/volume \ No newline at end of file +/volume +build/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bca7102..a72cac1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -39,9 +39,9 @@ If the jslib-aws does not support the service you need yet, the best way to get 1. The service should have tests. 2. The service should have documentation. 3. The service should be re-exported in the `src/index.ts` file. -4. The service should be exposed in the `aws.js` file in the `build` directory when running the `npm run webpack` command. -5. The service should produce a dedicated `{service-name}.js` file in the `build` directory when running the `npm run webpack` command. -6. The service should produce source map files for the dedicated `{service-name}.js` file and the `aws.js` file in the `build` directory when running the `npm run webpack` command. +4. The service should be exposed in the `aws.js` file in the `dist` directory when running the `npm run webpack` command. +5. The service should produce a dedicated `{service-name}.js` file in the `dist` directory when running the `npm run webpack` command. +6. The service should produce source map files for the dedicated `{service-name}.js` file and the `aws.js` file in the `dist` directory when running the `npm run webpack` command. #### Steps diff --git a/README.md b/README.md index bba7b42..dbe45a3 100644 --- a/README.md +++ b/README.md @@ -417,16 +417,13 @@ The scope of this library has been kept minimal and limited to the use cases we, npm install # Bundle it in preparation for a publication -npm run-script webpack +npm run webpack # Run the tests npm test ``` -### Deploying new versions - -1. Build. -2. Use the `./dist/aws.js` to make a PR to [jslib.k6.io](https://github.com/grafana/jslib.k6.io). +For further details, take a look at [CONTRIBUTING.md](CONTRIBUTING.md). ## Maintainers diff --git a/build/aws.js b/dist/aws.js similarity index 100% rename from build/aws.js rename to dist/aws.js diff --git a/build/aws.js.LICENSE.txt b/dist/aws.js.LICENSE.txt similarity index 100% rename from build/aws.js.LICENSE.txt rename to dist/aws.js.LICENSE.txt diff --git a/build/aws.js.map b/dist/aws.js.map similarity index 100% rename from build/aws.js.map rename to dist/aws.js.map diff --git a/build/event-bridge.js b/dist/event-bridge.js similarity index 100% rename from build/event-bridge.js rename to dist/event-bridge.js diff --git a/build/event-bridge.js.LICENSE.txt b/dist/event-bridge.js.LICENSE.txt similarity index 100% rename from build/event-bridge.js.LICENSE.txt rename to dist/event-bridge.js.LICENSE.txt diff --git a/build/event-bridge.js.map b/dist/event-bridge.js.map similarity index 100% rename from build/event-bridge.js.map rename to dist/event-bridge.js.map diff --git a/build/index.js b/dist/index.js similarity index 100% rename from build/index.js rename to dist/index.js diff --git a/build/index.js.LICENSE.txt b/dist/index.js.LICENSE.txt similarity index 100% rename from build/index.js.LICENSE.txt rename to dist/index.js.LICENSE.txt diff --git a/build/index.js.map b/dist/index.js.map similarity index 100% rename from build/index.js.map rename to dist/index.js.map diff --git a/build/kinesis.js b/dist/kinesis.js similarity index 100% rename from build/kinesis.js rename to dist/kinesis.js diff --git a/build/kinesis.js.LICENSE.txt b/dist/kinesis.js.LICENSE.txt similarity index 100% rename from build/kinesis.js.LICENSE.txt rename to dist/kinesis.js.LICENSE.txt diff --git a/build/kinesis.js.map b/dist/kinesis.js.map similarity index 100% rename from build/kinesis.js.map rename to dist/kinesis.js.map diff --git a/build/kms.js b/dist/kms.js similarity index 100% rename from build/kms.js rename to dist/kms.js diff --git a/build/kms.js.LICENSE.txt b/dist/kms.js.LICENSE.txt similarity index 100% rename from build/kms.js.LICENSE.txt rename to dist/kms.js.LICENSE.txt diff --git a/build/kms.js.map b/dist/kms.js.map similarity index 100% rename from build/kms.js.map rename to dist/kms.js.map diff --git a/build/lambda.js b/dist/lambda.js similarity index 100% rename from build/lambda.js rename to dist/lambda.js diff --git a/build/lambda.js.LICENSE.txt b/dist/lambda.js.LICENSE.txt similarity index 100% rename from build/lambda.js.LICENSE.txt rename to dist/lambda.js.LICENSE.txt diff --git a/build/lambda.js.map b/dist/lambda.js.map similarity index 100% rename from build/lambda.js.map rename to dist/lambda.js.map diff --git a/build/s3.js b/dist/s3.js similarity index 100% rename from build/s3.js rename to dist/s3.js diff --git a/build/s3.js.LICENSE.txt b/dist/s3.js.LICENSE.txt similarity index 100% rename from build/s3.js.LICENSE.txt rename to dist/s3.js.LICENSE.txt diff --git a/build/s3.js.map b/dist/s3.js.map similarity index 100% rename from build/s3.js.map rename to dist/s3.js.map diff --git a/build/secrets-manager.js b/dist/secrets-manager.js similarity index 100% rename from build/secrets-manager.js rename to dist/secrets-manager.js diff --git a/build/secrets-manager.js.LICENSE.txt b/dist/secrets-manager.js.LICENSE.txt similarity index 100% rename from build/secrets-manager.js.LICENSE.txt rename to dist/secrets-manager.js.LICENSE.txt diff --git a/build/secrets-manager.js.map b/dist/secrets-manager.js.map similarity index 100% rename from build/secrets-manager.js.map rename to dist/secrets-manager.js.map diff --git a/build/signature.js b/dist/signature.js similarity index 100% rename from build/signature.js rename to dist/signature.js diff --git a/build/signature.js.map b/dist/signature.js.map similarity index 100% rename from build/signature.js.map rename to dist/signature.js.map diff --git a/build/sqs.js b/dist/sqs.js similarity index 100% rename from build/sqs.js rename to dist/sqs.js diff --git a/build/sqs.js.LICENSE.txt b/dist/sqs.js.LICENSE.txt similarity index 100% rename from build/sqs.js.LICENSE.txt rename to dist/sqs.js.LICENSE.txt diff --git a/build/sqs.js.map b/dist/sqs.js.map similarity index 100% rename from build/sqs.js.map rename to dist/sqs.js.map diff --git a/build/ssm.js b/dist/ssm.js similarity index 100% rename from build/ssm.js rename to dist/ssm.js diff --git a/build/ssm.js.LICENSE.txt b/dist/ssm.js.LICENSE.txt similarity index 100% rename from build/ssm.js.LICENSE.txt rename to dist/ssm.js.LICENSE.txt diff --git a/build/ssm.js.map b/dist/ssm.js.map similarity index 100% rename from build/ssm.js.map rename to dist/ssm.js.map diff --git a/examples/event-bridge.js b/examples/event-bridge.js index 444b8d9..2948fe6 100644 --- a/examples/event-bridge.js +++ b/examples/event-bridge.js @@ -1,4 +1,4 @@ -import { AWSConfig, EventBridgeClient } from '../build/event-bridge.js'; +import { AWSConfig, EventBridgeClient } from '../dist/event-bridge.js'; const awsConfig = new AWSConfig({ region: __ENV.AWS_REGION, diff --git a/examples/kinesis.js b/examples/kinesis.js index 857e0bc..46eaf15 100644 --- a/examples/kinesis.js +++ b/examples/kinesis.js @@ -1,4 +1,4 @@ -import { AWSConfig, KinesisClient } from '../build/kinesis.js' +import { AWSConfig, KinesisClient } from '../dist/kinesis.js' import encoding from 'k6/encoding' import { fail } from 'k6' diff --git a/examples/kms.js b/examples/kms.js index 1ca912f..ad14005 100644 --- a/examples/kms.js +++ b/examples/kms.js @@ -1,6 +1,6 @@ import exec from 'k6/execution' -import { AWSConfig, KMSClient } from '../build/kms.js' +import { AWSConfig, KMSClient } from '../dist/kms.js' const awsConfig = new AWSConfig({ region: __ENV.AWS_REGION, diff --git a/examples/lambda.js b/examples/lambda.js index 2dc18a5..8a0a6c4 100644 --- a/examples/lambda.js +++ b/examples/lambda.js @@ -1,4 +1,4 @@ -import { AWSConfig, LambdaClient } from '../build/lambda.js' +import { AWSConfig, LambdaClient } from '../dist/lambda.js' import { check } from 'k6'; const awsConfig = new AWSConfig({ diff --git a/examples/s3-multipart.js b/examples/s3-multipart.js index e1e0389..e5928b6 100644 --- a/examples/s3-multipart.js +++ b/examples/s3-multipart.js @@ -1,7 +1,7 @@ import crypto from 'k6/crypto' import exec from 'k6/execution' -import { AWSConfig, S3Client } from '../build/s3.js' +import { AWSConfig, S3Client } from '../dist/s3.js' const awsConfig = new AWSConfig({ region: __ENV.AWS_REGION, diff --git a/examples/s3.js b/examples/s3.js index ae6529f..d0cf473 100644 --- a/examples/s3.js +++ b/examples/s3.js @@ -1,6 +1,6 @@ import exec from 'k6/execution' -import { AWSConfig, S3Client } from '../build/s3.js' +import { AWSConfig, S3Client } from '../dist/s3.js' const testFile = open('./bonjour.txt', 'r') diff --git a/examples/secrets-manager.js b/examples/secrets-manager.js index 62668d0..1adcb3d 100644 --- a/examples/secrets-manager.js +++ b/examples/secrets-manager.js @@ -1,6 +1,6 @@ import exec from 'k6/execution' -import { AWSConfig, SecretsManagerClient } from '../build/secrets-manager.js' +import { AWSConfig, SecretsManagerClient } from '../dist/secrets-manager.js' const awsConfig = new AWSConfig({ region: __ENV.AWS_REGION, diff --git a/examples/signature-presign.js b/examples/signature-presign.js index 1da86bf..61c5c02 100644 --- a/examples/signature-presign.js +++ b/examples/signature-presign.js @@ -5,7 +5,7 @@ import { AWSConfig, SignatureV4, AMZ_CONTENT_SHA256_HEADER, -} from '../build/aws.js' +} from '../dist/aws.js' const awsConfig = new AWSConfig({ region: __ENV.AWS_REGION, diff --git a/examples/signature-sign.js b/examples/signature-sign.js index cd40260..6135000 100644 --- a/examples/signature-sign.js +++ b/examples/signature-sign.js @@ -1,6 +1,6 @@ import http from 'k6/http' -import { AWSConfig, SignatureV4 } from '../build/signature.js' +import { AWSConfig, SignatureV4 } from '../dist/signature.js' const awsConfig = new AWSConfig({ region: __ENV.AWS_REGION, diff --git a/examples/sqs.js b/examples/sqs.js index d7a6838..6df1989 100644 --- a/examples/sqs.js +++ b/examples/sqs.js @@ -1,6 +1,6 @@ import exec from 'k6/execution' -import { AWSConfig, SQSClient } from '../build/sqs.js' +import { AWSConfig, SQSClient } from '../dist/sqs.js' const awsConfig = new AWSConfig({ region: __ENV.AWS_REGION, diff --git a/examples/ssm.js b/examples/ssm.js index d260819..3d108e7 100644 --- a/examples/ssm.js +++ b/examples/ssm.js @@ -1,6 +1,6 @@ import exec from 'k6/execution' -import { AWSConfig, SystemsManagerClient } from '../build/ssm.js' +import { AWSConfig, SystemsManagerClient } from '../dist/ssm.js' const awsConfig = new AWSConfig({ region: __ENV.AWS_REGION, diff --git a/tests/index.js b/tests/index.js index 10824e1..7ea2685 100644 --- a/tests/index.js +++ b/tests/index.js @@ -1,6 +1,6 @@ import { randomIntBetween } from 'https://jslib.k6.io/k6-utils/1.2.0/index.js' -import { AWSConfig } from '../build/aws.js' +import { AWSConfig } from '../dist/aws.js' import { s3TestSuite } from './internal/s3.js' import { secretsManagerTestSuite } from './internal/secrets-manager.js' diff --git a/tests/internal/event-bridge.js b/tests/internal/event-bridge.js index ba10b3d..e604aa4 100644 --- a/tests/internal/event-bridge.js +++ b/tests/internal/event-bridge.js @@ -1,5 +1,5 @@ import { asyncDescribe } from './helpers.js' -import { EventBridgeClient } from '../../build/event-bridge.js' +import { EventBridgeClient } from '../../dist/event-bridge.js' export async function eventBridgeTestSuite(data) { const eventBridge = new EventBridgeClient(data.awsConfig) diff --git a/tests/internal/kinesis.js b/tests/internal/kinesis.js index f02003b..35febd0 100644 --- a/tests/internal/kinesis.js +++ b/tests/internal/kinesis.js @@ -1,5 +1,5 @@ import { asyncDescribe } from './helpers.js' -import { KinesisClient } from '../../build/kinesis.js' +import { KinesisClient } from '../../dist/kinesis.js' import encoding from 'k6/encoding' import { sleep } from 'k6' diff --git a/tests/internal/kms.js b/tests/internal/kms.js index ffc2502..596cad5 100644 --- a/tests/internal/kms.js +++ b/tests/internal/kms.js @@ -1,5 +1,5 @@ import { asyncDescribe } from './helpers.js' -import { KMSClient } from '../../build/kms.js' +import { KMSClient } from '../../dist/kms.js' export async function kmsTestSuite(data) { const kmsClient = new KMSClient(data.awsConfig) diff --git a/tests/internal/lambda.js b/tests/internal/lambda.js index ea8c7a8..d4c7c11 100644 --- a/tests/internal/lambda.js +++ b/tests/internal/lambda.js @@ -1,5 +1,5 @@ import { asyncDescribe } from './helpers.js' -import { LambdaClient } from '../../build/lambda.js' +import { LambdaClient } from '../../dist/lambda.js' export async function lambdaTestSuite(data) { const lambdaClient = new LambdaClient(data.awsConfig) diff --git a/tests/internal/s3.js b/tests/internal/s3.js index 470640d..a65c0e8 100644 --- a/tests/internal/s3.js +++ b/tests/internal/s3.js @@ -1,6 +1,6 @@ import { asyncDescribe } from './helpers.js' -import { S3Client, S3ServiceError } from '../../build/s3.js' +import { S3Client, S3ServiceError } from '../../dist/s3.js' export async function s3TestSuite(data) { const s3Client = new S3Client(data.awsConfig) diff --git a/tests/internal/secrets-manager.js b/tests/internal/secrets-manager.js index 9d397c5..c515240 100644 --- a/tests/internal/secrets-manager.js +++ b/tests/internal/secrets-manager.js @@ -2,7 +2,7 @@ import { asyncDescribe } from './helpers.js' import { SecretsManagerClient, SecretsManagerServiceError, -} from '../../build/secrets-manager.js' +} from '../../dist/secrets-manager.js' export async function secretsManagerTestSuite(data) { const secretsManagerClient = new SecretsManagerClient(data.awsConfig) diff --git a/tests/internal/signature.js b/tests/internal/signature.js index aca8cf8..18b0393 100644 --- a/tests/internal/signature.js +++ b/tests/internal/signature.js @@ -14,7 +14,7 @@ import { HOST_HEADER, SIGNING_ALGORITHM_IDENTIFIER, UNSIGNED_PAYLOAD, -} from '../../build/signature.js' +} from '../../dist/signature.js' import { describe, expect } from 'https://jslib.k6.io/k6chaijs/4.3.4.0/index.js' diff --git a/tests/internal/sqs.js b/tests/internal/sqs.js index 1bdbc1c..470cff6 100644 --- a/tests/internal/sqs.js +++ b/tests/internal/sqs.js @@ -1,6 +1,6 @@ import { asyncDescribe } from './helpers.js' import { b64encode } from 'k6/encoding' -import { SQSClient, SQSServiceError } from '../../build/sqs.js' +import { SQSClient, SQSServiceError } from '../../dist/sqs.js' export async function sqsTestSuite(data) { const sqsClient = new SQSClient(data.awsConfig) diff --git a/tests/internal/ssm.js b/tests/internal/ssm.js index 1057223..8ab7e9a 100644 --- a/tests/internal/ssm.js +++ b/tests/internal/ssm.js @@ -1,5 +1,5 @@ import { asyncDescribe } from './helpers.js' -import { SystemsManagerClient, SystemsManagerServiceError } from '../../build/ssm.js' +import { SystemsManagerClient, SystemsManagerServiceError } from '../../dist/ssm.js' export async function ssmTestSuite(data) { const systemsManagerClient = new SystemsManagerClient(data.awsConfig) diff --git a/webpack.config.js b/webpack.config.js index 7858e13..fbfade5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -25,7 +25,7 @@ module.exports = { signature: path.resolve(__dirname, 'src/signature.ts'), }, output: { - path: path.resolve(__dirname, 'build'), + path: path.resolve(__dirname, 'dist'), libraryTarget: 'commonjs', filename: '[name].js', }, From ca1bb09868472292a725ba40e94cc18ffd2d1408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20L=C3=B3pez=20de=20la=20Franca=20Beltran?= Date: Tue, 9 Jan 2024 16:56:19 +0100 Subject: [PATCH 2/5] Update release gh workflow --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d317a6..9902682 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,11 +22,11 @@ jobs: run: | set -x VERSION="${GITHUB_REF##*/}" - npm run webpack && tar -zcf "k6-jslib-aws-${VERSION}.tar.gz" -C build . + npm run webpack && tar -zcf "k6-jslib-aws-${VERSION}.tar.gz" -C dist . - name: Create release with assets env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -x VERSION="${GITHUB_REF##*/}" - gh release create "${VERSION}" "k6-jslib-aws-${VERSION}.tar.gz" "build/*" --target "${GITHUB_SHA}" --title "${VERSION}" \ No newline at end of file + gh release create "${VERSION}" "k6-jslib-aws-${VERSION}.tar.gz" "dist/*" --target "${GITHUB_SHA}" --title "${VERSION}" \ No newline at end of file From b59031a695980974c38be88f26be4d67d942ef23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20L=C3=B3pez=20de=20la=20Franca=20Beltran?= Date: Tue, 9 Jan 2024 17:04:21 +0100 Subject: [PATCH 3/5] Break CI (intentionally) --- dist/aws.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/aws.js b/dist/aws.js index 2d03476..426e8a4 100644 --- a/dist/aws.js +++ b/dist/aws.js @@ -1,3 +1,3 @@ /*! For license information please see aws.js.LICENSE.txt */ -(()=>{var t={393:(t,e,r)=>{"use strict";r.d(e,{k:()=>u});var n=r(89);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r{"use strict";r.d(e,{l:()=>m,o:()=>v});var n=r(89);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=u();return function(){var r,n=f(t);if(e){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},a(t)}function c(t,e,r){return c=u()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&s(o,r.prototype),o},c.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var r=0;r128)throw new m("invalid AWS access key ID; reason: size should be between 16 and 128 characters, got ".concat(e.accessKeyId.length));if(!e.secretAccessKey||""===e.secretAccessKey)throw new m("invalid AWS secret access key; reason: expected a non empty string, got `".concat(e.secretAccessKey,"`"));if(e.secretAccessKey.length<16||e.secretAccessKey.length>128)throw new m("invalid AWS secret access key; reason: size should be between 16 and 128 characters, got ".concat(e.secretAccessKey.length));this.region=e.region,this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,void 0!==e.sessionToken&&(this.sessionToken=e.sessionToken),void 0!==e.endpoint&&("string"==typeof e.endpoint?this.endpoint=new n.F(e.endpoint):this.endpoint=e.endpoint)}return p(t,null,[{key:"fromEnvironment",value:function(e){return new t({region:__ENV.AWS_REGION,accessKeyId:__ENV.AWS_ACCESS_KEY_ID,secretAccessKey:__ENV.AWS_SECRET_ACCESS_KEY,sessionToken:__ENV.AWS_SESSION_TOKEN,endpoint:null==e?void 0:e.endpoint})}}]),t}(),m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(r,t);var e=i(r);function r(t){return l(this,r),e.call(this,t)}return p(r)}(a(Error))},592:(t,e,r)=>{"use strict";r.d(e,{$l:()=>o,Aq:()=>b,B3:()=>v,Dz:()=>d,K0:()=>n,NL:()=>s,Qk:()=>i,R$:()=>f,SG:()=>w,U4:()=>h,VR:()=>u,a_:()=>l,al:()=>g,cG:()=>c,mc:()=>p,md:()=>m,n8:()=>j,sH:()=>S,th:()=>O,w1:()=>y,zC:()=>a});var n="X-Amz-Algorithm",o="X-Amz-Credential",i="X-Amz-Date",a="X-Amz-Expires",c="X-Amz-Signature",u="X-Amz-SignedHeaders",s="X-Amz-Security-Token",f="x-amz-content-sha256",l=i.toLowerCase(),h=c.toLowerCase(),p="X-Amz-Target".toLowerCase(),y=s.toLowerCase(),d="authorization",v=[d,l,"date"],m="host",b={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},g="aws4_request",w="AWS4-HMAC-SHA256",O=604800,S="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",j="UNSIGNED-PAYLOAD"},89:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rs});var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,"_protocol",void 0),c(this,"_hostname",void 0),c(this,"_port",void 0);var r=!e.startsWith("http://")&&!e.startsWith("https://")?"".concat(t.DEFAULT_PROTOCOL,"://").concat(e):e,n=r.match(/^https?:/),i=o(r.replace(/^https?:\/\//,"").split("/"),1)[0];this._protocol=n?n[0].slice(0,-1):t.DEFAULT_PROTOCOL,this._hostname=i.split(":")[0],this._port=i.split(":")[1]?parseInt(i.split(":")[1]):void 0}var e,r,n;return e=t,(r=[{key:"copy",value:function(){return new t(this.href)}},{key:"host",get:function(){return this._port?"".concat(this._hostname,":").concat(this._port):this._hostname},set:function(t){var e=o(t.split(":"),2),r=e[0],n=e[1];this._hostname=r,this._port=n?parseInt(n):void 0}},{key:"hostname",get:function(){return this._hostname},set:function(t){this._hostname=t}},{key:"href",get:function(){return"".concat(this.protocol,"://").concat(this.host)},set:function(e){var r=e.match(/^https?:/),n=o(e.replace(/^https?:\/\//,"").split("/"),1)[0];this._protocol=r?r[0].slice(0,-1):t.DEFAULT_PROTOCOL,this._hostname=n.split(":")[0],this._port=n.split(":")[1]?parseInt(n.split(":")[1]):void 0}},{key:"port",get:function(){return this._port},set:function(t){this._port=t}},{key:"protocol",get:function(){return this._protocol},set:function(t){this._protocol=t}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();c(s,"DEFAULT_PROTOCOL","https")},380:(t,e,r)=>{"use strict";r.d(e,{t:()=>y});var n=r(255);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r{"use strict";function n(t,e){t=t.toLowerCase();for(var r=0,n=Object.keys(e);rn})},137:(t,e,r)=>{"use strict";r.d(e,{L:()=>S,w:()=>j});var n=r(400),o=r.n(n),i=r(592),a=r(380),c=r(491),u=r(23);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=h(t);if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:{},r=v(v({},{signingDate:new Date,unsignableHeaders:new Set,signableHeaders:new Set}),e),n=x(r.signingDate),o=n.longDate,a=n.shortDate,u=r.signingService||this.service,s=r.signingRegion||this.region,f="".concat(a,"/").concat(s,"/").concat(u,"/").concat(i.al);t.headers[i.md]=t.endpoint.hostname;for(var l=0,h=Object.keys(t.headers);l-1&&delete t.headers[p]}t.headers[i.a_]=o,this.credentials.sessionToken&&(t.headers[i.w1]=this.credentials.sessionToken),ArrayBuffer.isView(t.body)&&(t.body=t.body.buffer),t.body||(t.body="");var y=this.computePayloadHash(t);!(0,c.L)(i.R$,t.headers)&&this.applyChecksum&&(t.headers[i.R$]=y);var d=this.computeCanonicalHeaders(t,r.unsignableHeaders,r.signableHeaders),m=this.calculateSignature(o,f,this.deriveSigningKey(this.credentials,u,s,a),this.createCanonicalRequest(t,d,y));t.headers[i.Dz]="".concat(i.SG," ")+"Credential=".concat(this.credentials.accessKeyId,"/").concat(f,", ")+"SignedHeaders=".concat(Object.keys(d).sort().join(";"),", ")+"Signature=".concat(m);var b=t.endpoint.href;return t.path&&(b+=t.path),t.query&&(b+="?".concat(this.serializeQueryParameters(t.query))),v({url:b},t)}},{key:"presign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.signingDate,n=void 0===r?new Date:r,o=e.expiresIn,a=void 0===o?3600:o,c=e.unsignableHeaders,u=e.unhoistableHeaders,s=e.signableHeaders,f=e.signingRegion,l=e.signingService,h=x(n),p=h.longDate,y=h.shortDate,d=f||this.region,m=l||this.service;if(a>i.th)throw new j("Signature version 4 presigned URLs can't be valid for more than 7 days");var b="".concat(y,"/").concat(d,"/").concat(m,"/").concat(i.al),g=this.moveHeadersToQuery(t,{unhoistableHeaders:u});g.headers[i.md]=t.endpoint.hostname,this.credentials.sessionToken&&(g.query[i.NL]=this.credentials.sessionToken),g.query[i.K0]=i.SG,g.query[i.$l]="".concat(this.credentials.accessKeyId,"/").concat(b),g.query[i.Qk]=p,g.query[i.zC]=a.toString(10);var w=this.computeCanonicalHeaders(g,c,s);g.query[i.VR]=Object.keys(w).sort().join(";");var O=this.deriveSigningKey(this.credentials,m,d,y),S=this.computePayloadHash(t),_=this.createCanonicalRequest(g,w,S);g.query[i.cG]=this.calculateSignature(p,b,O,_);var E=g.endpoint.href;return g.path&&(E+=g.path),g.query&&(E+="?".concat(this.serializeQueryParameters(g.query))),v({url:E},g)}},{key:"createCanonicalRequest",value:function(t,e,r){var n=Object.keys(e).sort(),o=n.map((function(t){return"".concat(t,":").concat(e[t])})).join("\n"),i=n.join(";");return"".concat(t.method,"\n")+"".concat(this.computeCanonicalURI(t),"\n")+"".concat(this.computeCanonicalQuerystring(t),"\n")+"".concat(o,"\n\n")+"".concat(i,"\n")+"".concat(r)}},{key:"createStringToSign",value:function(t,e,r){var n=o().sha256(r,"hex");return"".concat(i.SG,"\n")+"".concat(t,"\n")+"".concat(e,"\n")+"".concat(n)}},{key:"calculateSignature",value:function(t,e,r,n){var i=this.createStringToSign(t,e,n);return o().hmac("sha256",r,i,"hex")}},{key:"deriveSigningKey",value:function(t,e,r,n){var i=t.secretAccessKey,a=o().hmac("sha256","AWS4"+i,n,"binary"),c=o().hmac("sha256",a,r,"binary"),u=o().hmac("sha256",c,e,"binary");return o().hmac("sha256",u,"aws4_request","binary")}},{key:"computeCanonicalURI",value:function(t){var e=t.path;if(this.uriEscapePath){var r,n=[],o=p(e.split("/"));try{for(o.s();!(r=o.n()).done;){var i=r.value;0!==(null==i?void 0:i.length)&&("."!==i&&(".."===i?n.pop():n.push(i)))}}catch(t){o.e(t)}finally{o.f()}var a=null!=e&&e.startsWith("/")?"/":"",c=n.join("/"),u=n.length>0&&null!=e&&e.endsWith("/")?"/":"",s="".concat(a).concat(c).concat(u);return encodeURIComponent(s).replace(/%2F/g,"/")}return e}},{key:"computeCanonicalQuerystring",value:function(t){var e,r=t.query,n=void 0===r?{}:r,o=[],a={},c=function(t){if(t.toLowerCase()===i.U4)return 1;o.push(t);var e=n[t];"string"==typeof e?a[t]="".concat(_(t),"=").concat(_(e)):Array.isArray(e)&&(a[t]=e.slice(0).sort().reduce((function(e,r){return e.concat(["".concat(_(t),"=").concat(_(r))])}),[]).join("&"))},u=p(Object.keys(n).sort());try{for(u.s();!(e=u.n()).done;){c(e.value)}}catch(t){u.e(t)}finally{u.f()}return o.map((function(t){return a[t]})).filter((function(t){return t})).join("&")}},{key:"computeCanonicalHeaders",value:function(t,e,r){var n,o=t.headers,a={},c=p(Object.keys(o).sort());try{for(c.s();!(n=c.n()).done;){var u=n.value;if(null!=o[u]){var s=u.toLowerCase();(s in i.Aq||null!=e&&e.has(s))&&(!r||r&&!r.has(s))||"string"==typeof o[u]&&(a[s]=o[u]=o[u].trim().replace(/\s+/g," "))}}}catch(t){c.e(t)}finally{c.f()}return a}},{key:"computePayloadHash",value:function(t){var e=t.headers,r=t.body;return e[i.R$]?e[i.R$]:null==r?i.sH:"string"==typeof r||(0,u.e)(r)?o().sha256(r,"hex").toLowerCase():ArrayBuffer.isView(r)?o().sha256(r.buffer,"hex").toLowerCase():i.n8}},{key:"moveHeadersToQuery",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=JSON.parse(JSON.stringify(t)),n=r.headers,o=r.query,i=void 0===o?{}:o,a=0,c=Object.keys(n);a{"use strict";function n(t){return"function"==typeof ArrayBuffer&&(t instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(t))}function o(t){return Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&e.push("".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))),e}),[]).join("&")}r.d(e,{C:()=>o,e:()=>n})},890:(t,e,r)=>{"use strict";r.d(e,{LambdaClient:()=>k,LambdaInvocationError:()=>T});r(223);var n=r(137),o=r(409),i=r.n(o);const a=require("k6/encoding");var c=r.n(a),u=r(393),s=r(380),f=r(592);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return p(t,arguments,E(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,t)},h(t)}function p(t,e,r){return p=x()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&S(o,r.prototype),o},p.apply(null,arguments)}function y(){y=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};s(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=h(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e2&&void 0!==m[2]?m[2]:{}).invocationType||"RequestResponse",u=v(v({},this.commonHeaders),{},P(P(P({},f.mc,"AWSLambda.".concat(a)),"X-Amz-Invocation-Type",a),"X-Amz-Log-Type",n.logType||"None")),n.clientContext&&(u["X-Amz-Client-Context"]=n.clientContext),n.qualifier&&(o.Qualifier=n.qualifier),s=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/2015-03-31/functions/".concat(e,"/invocations"),query:o,headers:u,body:r||""},{}),t.next=9,i().asyncRequest(this.method,s.url,s.body,{headers:s.headers});case 9:if(l=t.sent,this._handle_error(l),h=l.headers["X-Amz-Log-Result"],p={executedVersion:l.headers["X-Amz-Executed-Version"],logResult:h?c().b64decode(h,"std","s"):void 0,statusCode:l.status,payload:l.body},!(d=l.headers["X-Amz-Function-Error"])){t.next=18;break}throw new T(d,p);case 18:return t.abrupt("return",p);case 19:case"end":return t.stop()}}),t,this)})),r=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){m(i,n,o,a,c,"next",t)}function c(t){m(i,n,o,a,c,"throw",t)}a(void 0)}))},function(t,e){return r.apply(this,arguments)})},{key:"_handle_error",value:function(t){var e=t.error_code;if(""!=t.error||0!==e){var r=s.t.parse(t);switch(r.code){case"AuthorizationHeaderMalformed":case"InvalidSignatureException":throw new n.w(r.message,r.code);default:throw r}}}}]),a}(u.k),T=function(t){O(r,t);var e=j(r);function r(t,n){var o;return b(this,r),P(_(o=e.call(this,"".concat(t,": ").concat(n.payload))),"response",void 0),o.response=n,o}return w(r)}(h(Error))},41:(t,e,r)=>{"use strict";r.d(e,{SQSClient:()=>L});r(223);var n=r(137),o=r(393),i=r(409),a=r.n(i),c=r(23),u=r(380);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};l(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==s(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=y;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==p[2]?p[2]:{}).messageDeduplicationId&&(o=y(y({},o),{},{MessageDeduplicationId:n.messageDeduplicationId})),void 0!==n.messageGroupId&&(o=y(y({},o),{},{MessageGroupId:n.messageGroupId})),void 0!==n.messageAttributes&&(i=Object.entries(n.messageAttributes).reduce((function(t,e,r){var n=l(e,2),o=n[0],i=n[1],a="Binary"===i.type?"BinaryValue":"StringValue";return Object.assign(t,x(x(x({},"MessageAttribute.".concat(r+1,".Name"),o),"MessageAttribute.".concat(r+1,".Value.").concat(a),i.value),"MessageAttribute.".concat(r+1,".Value.DataType"),i.type))}),{}),o=y(y({},o),i)),void 0!==n.delaySeconds&&(o=y(y({},o),{},{DelaySeconds:n.delaySeconds})),u=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:y({},this.commonHeaders),body:(0,c.C)(o)},{}),t.next=10,a().asyncRequest("POST",u.url,u.body||"",{headers:u.headers});case 10:return s=t.sent,this._handleError("SendMessage",s),h=s.html("SendMessageResponse > SendMessageResult"),t.abrupt("return",new k(h.find("MessageId").text(),h.find("MD5OfMessageBody").text()));case 14:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"listQueues",value:(e=v(f().mark((function t(){var e,r,n,o,i,u=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={Action:"ListQueues",Version:P},void 0!==(null==(e=u.length>0&&void 0!==u[0]?u[0]:{})?void 0:e.maxResults)&&(r=y(y({},r),{},{MaxResults:e.maxResults})),void 0!==(null==e?void 0:e.nextToken)&&(r=y(y({},r),{},{NextToken:e.nextToken})),void 0!==(null==e?void 0:e.queueNamePrefix)&&(r=y(y({},r),{},{QueueNamePrefix:e.queueNamePrefix})),n=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:y(y({},this.commonHeaders),{},{Host:this.endpoint.host}),body:(0,c.C)(r)},{}),t.next=9,a().asyncRequest("POST",n.url,n.body||"",{headers:n.headers});case 9:return o=t.sent,this._handleError("ListQueues",o),i=o.html(),t.abrupt("return",{urls:i.find("QueueUrl").toArray().map((function(t){return t.text()})),nextToken:i.find("NextToken").text()||void 0});case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"_handleError",value:function(t,e){var r=e.error_code;if(""!=e.error||0!==r){var o=u.t.parseXML(e.body);if("AuthorizationHeaderMalformed"===o.code)throw new n.w(o.message,o.code);throw new T(o.message,o.code||"unknown",t)}}}]),i}(o.k),k=g((function t(e,r){m(this,t),x(this,"id",void 0),x(this,"bodyMD5",void 0),this.id=e,this.bodyMD5=r})),T=function(t){w(r,t);var e=S(r);function r(t,n,o){var i;return m(this,r),x(j(i=e.call(this,t,n)),"operation",void 0),i.name="SQSServiceError",i.operation=o,i}return g(r)}(u.t)},877:(t,e,r)=>{var n=r(570),o=r(171),i=o;i.v1=n,i.v4=o,t.exports=i},327:t=>{for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);t.exports=function(t,r){var n=r||0,o=e;return[o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]]].join("")}},217:t=>{var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var r=new Uint8Array(16);t.exports=function(){return e(r),r}}else{var n=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}},570:(t,e,r)=>{var n,o,i=r(217),a=r(327),c=0,u=0;t.exports=function(t,e,r){var s=e&&r||0,f=e||[],l=(t=t||{}).node||n,h=void 0!==t.clockseq?t.clockseq:o;if(null==l||null==h){var p=i();null==l&&(l=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=o=16383&(p[6]<<8|p[7]))}var y=void 0!==t.msecs?t.msecs:(new Date).getTime(),d=void 0!==t.nsecs?t.nsecs:u+1,v=y-c+(d-u)/1e4;if(v<0&&void 0===t.clockseq&&(h=h+1&16383),(v<0||y>c)&&void 0===t.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=y,u=d,o=h;var m=(1e4*(268435455&(y+=122192928e5))+d)%4294967296;f[s++]=m>>>24&255,f[s++]=m>>>16&255,f[s++]=m>>>8&255,f[s++]=255&m;var b=y/4294967296*1e4&268435455;f[s++]=b>>>8&255,f[s++]=255&b,f[s++]=b>>>24&15|16,f[s++]=b>>>16&255,f[s++]=h>>>8|128,f[s++]=255&h;for(var g=0;g<6;++g)f[s+g]=l[g];return e||a(f)}},171:(t,e,r)=>{var n=r(217),o=r(327);t.exports=function(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var c=0;c<16;++c)e[i+c]=a[c];return e||o(a)}},400:t=>{"use strict";t.exports=require("k6/crypto")},255:t=>{"use strict";t.exports=require("k6/html")},409:t=>{"use strict";t.exports=require("k6/http")}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{AMZ_CONTENT_SHA256_HEADER:()=>o.R$,AWSConfig:()=>e.o,EventBridgeClient:()=>ke,InvalidAWSConfigError:()=>e.l,InvalidSignatureError:()=>t.w,KMSClient:()=>x,KMSDataKey:()=>P,KMSServiceError:()=>L,KinesisClient:()=>ne,LambdaClient:()=>Ce.LambdaClient,LambdaInvocationError:()=>Ce.LambdaInvocationError,S3Bucket:()=>Q,S3Client:()=>W,S3Object:()=>X,S3ServiceError:()=>Z,SQSClient:()=>qt.SQSClient,Secret:()=>bt,SecretsManagerClient:()=>mt,SecretsManagerServiceError:()=>gt,SignatureV4:()=>t.L,SystemsManagerClient:()=>Dt,SystemsManagerParameter:()=>Gt,SystemsManagerServiceError:()=>Mt,UNSIGNED_PAYLOAD:()=>o.n8});var t=r(137),e=r(223),o=r(592),i=r(409),a=r.n(i),c=r(393),u=r(380);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};l(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==s(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=y;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e1&&void 0!==c[1]?c[1]:T.Size256,n=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/",headers:h(h({},this.commonHeaders),{},j({},o.mc,"TrentService.GenerateDataKey")),body:JSON.stringify({KeyId:e,NumberOfBytes:r})},{}),t.next=4,a().asyncRequest(this.method,n.url,n.body,{headers:n.headers});case 4:return i=t.sent,this._handle_error(k.GenerateDataKey,i),t.abrupt("return",P.fromJSON(i.json()));case 7:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new L(i,o.__type,e)}if(1500===n)throw new L("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),E=function(){function t(e,r){d(this,t),j(this,"keyArn",void 0),j(this,"keyId",void 0),this.keyArn=e,this.keyId=r}return m(t,null,[{key:"fromJSON",value:function(e){return new t(e.KeyArn,e.KeyId)}}]),t}(),P=function(){function t(e,r,n){d(this,t),j(this,"id",void 0),j(this,"ciphertextBlob",void 0),j(this,"plaintext",void 0),this.ciphertextBlob=e,this.id=r,this.plaintext=n}return m(t,null,[{key:"fromJSON",value:function(e){return new t(e.CiphertextBlob,e.KeyId,e.Plaintext)}}]),t}(),L=function(t){b(r,t);var e=w(r);function r(t,n,o){var i;return d(this,r),j(O(i=e.call(this,t,n)),"operation",void 0),i.name="KMSServiceError",i.operation=o,i}return m(r)}(u.t),k=function(t){return t.GenerateDataKey="GenerateDataKey",t.ListKeys="ListKeys",t}(k||{}),T=function(t){return t[t.Size256=32]="Size256",t[t.Size512=64]="Size512",t}(T||{}),N=r(255);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function D(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function G(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){D(i,n,o,a,c,"next",t)}function c(t){D(i,n,o,a,c,"throw",t)}a(void 0)}))}}function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){for(var r=0;r".concat(t.partNumber,"").concat(t.eTag,"")})).join(""),""),(u=this.endpoint.copy()).hostname="".concat(e,".").concat(this.endpoint.hostname),s=this.signature.sign({method:i,endpoint:u,path:"/".concat(r),headers:{},body:c,query:{uploadId:"".concat(n)}},{}),t.next=7,a().asyncRequest(i,s.url,s.body||null,{headers:s.headers});case 7:f=t.sent,this._handle_error("CompleteMultipartUpload",f);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,r,o){return n.apply(this,arguments)})},{key:"abortMultipartUpload",value:(r=G(I().mark((function t(e,r,n){var o,i,c,u;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="DELETE",(i=this.endpoint.copy()).hostname="".concat(e,".").concat(this.endpoint.hostname),c=this.signature.sign({method:o,endpoint:i,path:"/".concat(r),headers:{},query:{uploadId:"".concat(n)}},{}),t.next=6,a().asyncRequest(o,c.url,c.body||null,{headers:c.headers});case 6:u=t.sent,this._handle_error("AbortMultipartUpload",u);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.status,o=r.error_code,i=r.error;if(!(n>=200&&n<300&&""==i&&0===o)){if(301==n||i&&i.startsWith("301"))throw new Z("Resource not found","ResourceNotFound",e);var a=u.t.parseXML(r.body);if("AuthorizationHeaderMalformed"===a.code)throw new t.w(a.message,a.code);throw new Z(a.message,a.code||"unknown",e)}}}]),d}(c.k),Q=q((function t(e,r){M(this,t),U(this,"name",void 0),U(this,"creationDate",void 0),this.name=e,this.creationDate=r})),X=q((function t(e,r,n,o,i,a){M(this,t),U(this,"key",void 0),U(this,"lastModified",void 0),U(this,"etag",void 0),U(this,"size",void 0),U(this,"storageClass",void 0),U(this,"data",void 0),this.key=e,this.lastModified=r,this.etag=n,this.size=o,this.storageClass=i,this.data=a})),Y=q((function t(e,r){M(this,t),U(this,"key",void 0),U(this,"uploadId",void 0),this.key=e,this.uploadId=r})),$=q((function t(e,r){M(this,t),U(this,"partNumber",void 0),U(this,"eTag",void 0),this.partNumber=e,this.eTag=r})),Z=function(t){H(r,t);var e=z(r);function r(t,n,o){var i;return M(this,r),U(B(i=e.call(this,t,n)),"operation",void 0),i.name="S3ServiceError",i.operation=o,i}return q(r)}(u.t),tt=r(877);function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function rt(){rt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==et(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ot(t){for(var e=1;e=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new gt(i,o.__type,e)}if(1500===n)throw new gt("An error occured on the server side","InternalServiceError",e)}}}]),f}(c.k),bt=function(){function t(e,r,n,o,i,a){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[];ct(this,t),dt(this,"name",void 0),dt(this,"arn",void 0),dt(this,"secret",void 0),dt(this,"createdDate",void 0),dt(this,"lastAccessedDate",void 0),dt(this,"lastChangedDate",void 0),dt(this,"tags",void 0),this.name=e,this.arn=r,this.secret=n,this.createdDate=o,this.lastAccessedDate=i,this.lastChangedDate=a,this.tags=c}return st(t,null,[{key:"fromJSON",value:function(e){return new t(e.Name,e.ARN,e.SecretString,e.CreatedDate,e.LastAccessedDate,e.LastChangedDate,e.Tags)}}]),t}(),gt=function(t){ft(r,t);var e=ht(r);function r(t,n,o){var i;return ct(this,r),dt(pt(i=e.call(this,t,n)),"operation",void 0),i.name="SecretsManagerServiceError",i.operation=o,i}return st(r)}(u.t),wt=function(t){return t.ListSecrets="ListSecrets",t.GetSecretValue="GetSecretValue",t.CreateSecret="CreateSecret",t.PutSecretValue="PutSecretValue",t.DeleteSecret="DeleteSecret",t}(wt||{});function Ot(t){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(t)}function St(){St=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ot(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _t(t){for(var e=1;e1&&void 0!==c[1]&&c[1],n=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/",headers:_t(_t({},this.commonHeaders),{},At({},o.mc,"AmazonSSM.GetParameter")),body:JSON.stringify({Name:e,WithDecryption:r})},{}),t.next=4,a().asyncRequest(this.method,n.url,n.body,{headers:n.headers});case 4:return i=t.sent,this._handle_error(Kt.GetParameter,i),t.abrupt("return",Gt.fromJSON(i.json()));case 7:case"end":return t.stop()}}),t,this)})),n=function(){var t=this,e=arguments;return new Promise((function(n,o){var i=r.apply(t,e);function a(t){xt(i,n,o,a,c,"next",t)}function c(t){xt(i,n,o,a,c,"throw",t)}a(void 0)}))},function(t){return n.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new Mt(i,o.__type,e)}if(1500===n)throw new Mt("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),Gt=function(){function t(e,r,n,o,i,a,c,u,s){Et(this,t),At(this,"arn",void 0),At(this,"dataType",void 0),At(this,"lastModifiedDate",void 0),At(this,"name",void 0),At(this,"selector",void 0),At(this,"sourceResult",void 0),At(this,"type",void 0),At(this,"value",void 0),At(this,"version",void 0),this.arn=e,this.dataType=r,this.lastModifiedDate=n,this.name=o,this.selector=i,this.sourceResult=a,this.type=c,this.value=u,this.version=s}return Lt(t,null,[{key:"fromJSON",value:function(e){var r=e.Parameter;return new t(r.ARN,r.DataType,r.LastModifiedDate,r.Name,r.Selector,r.SourceResult,r.Type,r.Value,r.Version)}}]),t}(),Mt=function(t){kt(r,t);var e=Nt(r);function r(t,n,o){var i;return Et(this,r),At(Ct(i=e.call(this,t,n)),"operation",void 0),i.name="SystemsManagerServiceError",i.operation=o,i}return Lt(r)}(u.t),Kt=function(t){return t.GetParameter="GetParameter",t}(Kt||{}),qt=r(41);function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Ft(){Ft=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ht(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bt(t){for(var e=1;e1&&void 0!==o[1]?o[1]:{}).shardCount&&{ShardCount:r.shardCount}),r.streamModeDetails&&{StreamMode:r.streamModeDetails.streamMode}),t.next=4,this._send_request("CreateStream",n);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"deleteStream",value:(f=Ut(Ft().mark((function t(e){var r,n,o=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({StreamName:e},(r=o.length>1&&void 0!==o[1]?o[1]:{}).streamARN&&{StreamARN:r.streamARN}),r.enforceConsumerDeletion&&{EnforceConsumerDeletion:r.enforceConsumerDeletion}),t.next=4,this._send_request("DeleteStream",n);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"listStreams",value:(s=Ut(Ft().mark((function t(){var e,r,n,o=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Bt(Bt(Bt({},(e=o.length>0&&void 0!==o[0]?o[0]:{}).exclusiveStartStreamName&&{ExclusiveStartStreamName:e.exclusiveStartStreamName}),e.limit&&{Limit:e.limit}),e.nextToken&&{NextToken:e.nextToken}),t.next=4,this._send_request("ListStreams",r);case 4:return n=t.sent,t.abrupt("return",ie.fromJson(null==n?void 0:n.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"putRecords",value:(u=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=i.length>1&&void 0!==i[1]?i[1]:{}).streamName||r.streamARN){t.next=3;break}throw new Error("Either streamName or streamARN must be provided");case 3:return n=Bt(Bt({Records:e},r.streamName&&{StreamName:r.streamName}),r.streamARN&&{StreamARN:r.streamARN}),t.next=6,this._send_request("PutRecords",n);case 6:return o=t.sent,t.abrupt("return",ce.fromJson(null==o?void 0:o.json()));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"getRecords",value:(c=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({ShardIterator:e},(r=i.length>1&&void 0!==i[1]?i[1]:{}).limit&&{Limit:r.limit}),r.streamARN&&{StreamARN:r.streamARN}),t.next=4,this._send_request("GetRecords",n);case 4:return o=t.sent,t.abrupt("return",se.fromJson(null==o?void 0:o.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"listShards",value:(i=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({StreamName:e},(r=i.length>1&&void 0!==i[1]?i[1]:{}).nextToken&&{NextToken:r.nextToken}),r.maxResults&&{MaxResults:r.maxResults}),t.next=4,this._send_request("ListShards",n);case 4:return o=t.sent,t.abrupt("return",le.fromJson(null==o?void 0:o.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"getShardIterator",value:(n=Ut(Ft().mark((function t(e,r,n){var o,i,a,c=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Bt(Bt({StreamName:e,ShardId:r,ShardIteratorType:n},(o=c.length>3&&void 0!==c[3]?c[3]:{}).startingSequenceNumber&&{StartingSequenceNumber:o.startingSequenceNumber}),o.timestamp&&{Timestamp:o.timestamp}),t.next=4,this._send_request("GetShardIterator",i);case 4:return a=t.sent,t.abrupt("return",pe.fromJson(null==a?void 0:a.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:"_send_request",value:(r=Ut(Ft().mark((function t(e,r){var n,i;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:Bt(Bt({},this.commonHeaders),{},ee({},o.mc,"".concat(this.serviceVersion,".").concat(e))),body:JSON.stringify(r)},{}),t.next=3,a().asyncRequest("POST",n.url,n.body,{headers:n.headers});case 3:return i=t.sent,this._handle_error(e,i),t.abrupt("return",i);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new oe(i,o.__type,e)}if(1500===n)throw new oe("An error occured on the server side","InternalServiceError",e)}}}]),p}(c.k),oe=function(t){Xt(r,t);var e=$t(r);function r(t,n,o){var i;return Vt(this,r),ee(Zt(i=e.call(this,t,n)),"operation",void 0),i.name="KinesisServiceError",i.operation=o,i}return Qt(r)}(u.t),ie=function(){function t(e,r,n,o){Vt(this,t),ee(this,"hasMoreStreams",void 0),ee(this,"nextToken",void 0),ee(this,"streamNames",void 0),ee(this,"streamSummaries",void 0),this.hasMoreStreams=e,this.nextToken=r,this.streamNames=n,this.streamSummaries=o}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.HasMoreStreams,n=void 0!==r&&r,o=e.NextToken,i=void 0===o?"":o,a=e.StreamNames,c=void 0===a?[]:a,u=e.StreamSummaries,s=void 0===u?[]:u;return new t(n,i,c,null==s?void 0:s.map(ae.fromJson))}}]),t}(),ae=function(){function t(e,r,n,o,i){Vt(this,t),ee(this,"streamARN",void 0),ee(this,"streamCreationTimestamp",void 0),ee(this,"streamModeDetails",void 0),ee(this,"streamName",void 0),ee(this,"streamStatus",void 0),this.streamARN=e,this.streamCreationTimestamp=r,this.streamModeDetails=n,this.streamName=o,this.streamStatus=i}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.StreamARN,n=void 0===r?"":r,o=e.StreamCreationTimestamp,i=void 0===o?0:o,a=e.StreamModeDetails,c=void 0===a?{}:a,u=e.StreamName,s=void 0===u?"":u,f=e.StreamStatus;return new t(n,i,c,s,void 0===f?"":f)}}]),t}(),ce=function(){function t(e,r,n){Vt(this,t),ee(this,"encryptionType",void 0),ee(this,"failedRecordCount",void 0),ee(this,"records",void 0),this.encryptionType=e,this.failedRecordCount=r,this.records=n}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.EncryptionType,n=void 0===r?"NONE":r,o=e.FailedRecordCount,i=void 0===o?0:o,a=e.Records;return new t(n,i,(void 0===a?[]:a).map(ue.fromJson))}}]),t}(),ue=function(){function t(e,r){Vt(this,t),ee(this,"sequenceNumber",void 0),ee(this,"shardId",void 0),this.sequenceNumber=e,this.shardId=r}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.SequenceNumber,e.ShardId)}}]),t}(),se=function(){function t(e,r,n){Vt(this,t),ee(this,"nextShardIterator",void 0),ee(this,"records",void 0),ee(this,"millisBehindLatest",void 0),this.nextShardIterator=e,this.records=r,this.millisBehindLatest=n}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.NextShardIterator,n=void 0===r?"":r,o=e.Records,i=void 0===o?[]:o,a=e.MillisBehindLatest,c=void 0===a?0:a;return new t(n,i.map(fe.fromJson),c)}}]),t}(),fe=function(){function t(e,r,n){Vt(this,t),ee(this,"data",void 0),ee(this,"partitionKey",void 0),ee(this,"sequenceNumber",void 0),this.data=e,this.partitionKey=r,this.sequenceNumber=n}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.Data,e.PartitionKey,e.SequenceNumber)}}]),t}(),le=function(){function t(e,r){Vt(this,t),ee(this,"shards",void 0),ee(this,"nextToken",void 0),this.shards=e,this.nextToken=r}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.Shards,n=void 0===r?[]:r,o=e.NextToken;return new t(n.map(he.fromJson),o)}}]),t}(),he=function(){function t(e,r,n,o,i){Vt(this,t),ee(this,"id",void 0),ee(this,"parentShardId",void 0),ee(this,"adjacentParentShardId",void 0),ee(this,"hashKeyRange",void 0),ee(this,"sequenceNumberRange",void 0),this.id=e,this.parentShardId=o,this.adjacentParentShardId=i,this.hashKeyRange=r,this.sequenceNumberRange=n}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.ShardId,e.HashKeyRange,e.SequenceNumberRange,e.ParentShardId,e.AdjacentParentShardId)}}]),t}(),pe=function(){function t(e){Vt(this,t),ee(this,"shardIterator",void 0),this.shardIterator=e}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.ShardIterator)}}]),t}();function ye(t){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ye(t)}function de(){de=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==ye(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function ve(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function me(t){for(var e=1;e=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new Ne(i,o.__type,e)}if(1500===n)throw new Ne("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),Te=function(t){return t.PutEvents="PutEvents",t}(Te||{}),Ne=function(t){Se(r,t);var e=_e(r);function r(t,n,o){var i;return ge(this,r),Pe(xe(i=e.call(this,t,n)),"operation",void 0),i.name="EventBridgeServiceError",i.operation=o,i}return Oe(r)}(u.t),Ce=r(890)})();var o=exports;for(var i in n)o[i]=n[i];n.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})(); +(()=>{var t={444:(t,e,r)=>{"use strict";r.d(e,{k:()=>u});var n=r(89);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r{"use strict";r.d(e,{l:()=>m,o:()=>v});var n=r(89);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=u();return function(){var r,n=f(t);if(e){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},a(t)}function c(t,e,r){return c=u()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&s(o,r.prototype),o},c.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var r=0;r128)throw new m("invalid AWS access key ID; reason: size should be between 16 and 128 characters, got ".concat(e.accessKeyId.length));if(!e.secretAccessKey||""===e.secretAccessKey)throw new m("invalid AWS secret access key; reason: expected a non empty string, got `".concat(e.secretAccessKey,"`"));if(e.secretAccessKey.length<16||e.secretAccessKey.length>128)throw new m("invalid AWS secret access key; reason: size should be between 16 and 128 characters, got ".concat(e.secretAccessKey.length));this.region=e.region,this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,void 0!==e.sessionToken&&(this.sessionToken=e.sessionToken),void 0!==e.endpoint&&("string"==typeof e.endpoint?this.endpoint=new n.F(e.endpoint):this.endpoint=e.endpoint)}return p(t,null,[{key:"fromEnvironment",value:function(e){return new t({region:__ENV.AWS_REGION,accessKeyId:__ENV.AWS_ACCESS_KEY_ID,secretAccessKey:__ENV.AWS_SECRET_ACCESS_KEY,sessionToken:__ENV.AWS_SESSION_TOKEN,endpoint:null==e?void 0:e.endpoint})}}]),t}(),m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(r,t);var e=i(r);function r(t){return l(this,r),e.call(this,t)}return p(r)}(a(Error))},592:(t,e,r)=>{"use strict";r.d(e,{$l:()=>o,Aq:()=>b,B3:()=>v,Dz:()=>d,K0:()=>n,NL:()=>s,Qk:()=>i,R$:()=>f,SG:()=>w,U4:()=>h,VR:()=>u,a_:()=>l,al:()=>g,cG:()=>c,mc:()=>p,md:()=>m,n8:()=>j,sH:()=>S,th:()=>O,w1:()=>y,zC:()=>a});var n="X-Amz-Algorithm",o="X-Amz-Credential",i="X-Amz-Date",a="X-Amz-Expires",c="X-Amz-Signature",u="X-Amz-SignedHeaders",s="X-Amz-Security-Token",f="x-amz-content-sha256",l=i.toLowerCase(),h=c.toLowerCase(),p="X-Amz-Target".toLowerCase(),y=s.toLowerCase(),d="authorization",v=[d,l,"date"],m="host",b={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},g="aws4_request",w="AWS4-HMAC-SHA256",O=604800,S="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",j="UNSIGNED-PAYLOAD"},89:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rs});var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,"_protocol",void 0),c(this,"_hostname",void 0),c(this,"_port",void 0);var r=!e.startsWith("http://")&&!e.startsWith("https://")?"".concat(t.DEFAULT_PROTOCOL,"://").concat(e):e,n=r.match(/^https?:/),i=o(r.replace(/^https?:\/\//,"").split("/"),1)[0];this._protocol=n?n[0].slice(0,-1):t.DEFAULT_PROTOCOL,this._hostname=i.split(":")[0],this._port=i.split(":")[1]?parseInt(i.split(":")[1]):void 0}var e,r,n;return e=t,(r=[{key:"copy",value:function(){return new t(this.href)}},{key:"host",get:function(){return this._port?"".concat(this._hostname,":").concat(this._port):this._hostname},set:function(t){var e=o(t.split(":"),2),r=e[0],n=e[1];this._hostname=r,this._port=n?parseInt(n):void 0}},{key:"hostname",get:function(){return this._hostname},set:function(t){this._hostname=t}},{key:"href",get:function(){return"".concat(this.protocol,"://").concat(this.host)},set:function(e){var r=e.match(/^https?:/),n=o(e.replace(/^https?:\/\//,"").split("/"),1)[0];this._protocol=r?r[0].slice(0,-1):t.DEFAULT_PROTOCOL,this._hostname=n.split(":")[0],this._port=n.split(":")[1]?parseInt(n.split(":")[1]):void 0}},{key:"port",get:function(){return this._port},set:function(t){this._port=t}},{key:"protocol",get:function(){return this._protocol},set:function(t){this._protocol=t}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();c(s,"DEFAULT_PROTOCOL","https")},380:(t,e,r)=>{"use strict";r.d(e,{t:()=>y});var n=r(255);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r{"use strict";function n(t,e){t=t.toLowerCase();for(var r=0,n=Object.keys(e);rn})},137:(t,e,r)=>{"use strict";r.d(e,{L:()=>S,w:()=>j});var n=r(400),o=r.n(n),i=r(592),a=r(380),c=r(491),u=r(23);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=h(t);if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:{},r=v(v({},{signingDate:new Date,unsignableHeaders:new Set,signableHeaders:new Set}),e),n=x(r.signingDate),o=n.longDate,a=n.shortDate,u=r.signingService||this.service,s=r.signingRegion||this.region,f="".concat(a,"/").concat(s,"/").concat(u,"/").concat(i.al);t.headers[i.md]=t.endpoint.hostname;for(var l=0,h=Object.keys(t.headers);l-1&&delete t.headers[p]}t.headers[i.a_]=o,this.credentials.sessionToken&&(t.headers[i.w1]=this.credentials.sessionToken),ArrayBuffer.isView(t.body)&&(t.body=t.body.buffer),t.body||(t.body="");var y=this.computePayloadHash(t);!(0,c.L)(i.R$,t.headers)&&this.applyChecksum&&(t.headers[i.R$]=y);var d=this.computeCanonicalHeaders(t,r.unsignableHeaders,r.signableHeaders),m=this.calculateSignature(o,f,this.deriveSigningKey(this.credentials,u,s,a),this.createCanonicalRequest(t,d,y));t.headers[i.Dz]="".concat(i.SG," ")+"Credential=".concat(this.credentials.accessKeyId,"/").concat(f,", ")+"SignedHeaders=".concat(Object.keys(d).sort().join(";"),", ")+"Signature=".concat(m);var b=t.endpoint.href;return t.path&&(b+=t.path),t.query&&(b+="?".concat(this.serializeQueryParameters(t.query))),v({url:b},t)}},{key:"presign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.signingDate,n=void 0===r?new Date:r,o=e.expiresIn,a=void 0===o?3600:o,c=e.unsignableHeaders,u=e.unhoistableHeaders,s=e.signableHeaders,f=e.signingRegion,l=e.signingService,h=x(n),p=h.longDate,y=h.shortDate,d=f||this.region,m=l||this.service;if(a>i.th)throw new j("Signature version 4 presigned URLs can't be valid for more than 7 days");var b="".concat(y,"/").concat(d,"/").concat(m,"/").concat(i.al),g=this.moveHeadersToQuery(t,{unhoistableHeaders:u});g.headers[i.md]=t.endpoint.hostname,this.credentials.sessionToken&&(g.query[i.NL]=this.credentials.sessionToken),g.query[i.K0]=i.SG,g.query[i.$l]="".concat(this.credentials.accessKeyId,"/").concat(b),g.query[i.Qk]=p,g.query[i.zC]=a.toString(10);var w=this.computeCanonicalHeaders(g,c,s);g.query[i.VR]=Object.keys(w).sort().join(";");var O=this.deriveSigningKey(this.credentials,m,d,y),S=this.computePayloadHash(t),_=this.createCanonicalRequest(g,w,S);g.query[i.cG]=this.calculateSignature(p,b,O,_);var E=g.endpoint.href;return g.path&&(E+=g.path),g.query&&(E+="?".concat(this.serializeQueryParameters(g.query))),v({url:E},g)}},{key:"createCanonicalRequest",value:function(t,e,r){var n=Object.keys(e).sort(),o=n.map((function(t){return"".concat(t,":").concat(e[t])})).join("\n"),i=n.join(";");return"".concat(t.method,"\n")+"".concat(this.computeCanonicalURI(t),"\n")+"".concat(this.computeCanonicalQuerystring(t),"\n")+"".concat(o,"\n\n")+"".concat(i,"\n")+"".concat(r)}},{key:"createStringToSign",value:function(t,e,r){var n=o().sha256(r,"hex");return"".concat(i.SG,"\n")+"".concat(t,"\n")+"".concat(e,"\n")+"".concat(n)}},{key:"calculateSignature",value:function(t,e,r,n){var i=this.createStringToSign(t,e,n);return o().hmac("sha256",r,i,"hex")}},{key:"deriveSigningKey",value:function(t,e,r,n){var i=t.secretAccessKey,a=o().hmac("sha256","AWS4"+i,n,"binary"),c=o().hmac("sha256",a,r,"binary"),u=o().hmac("sha256",c,e,"binary");return o().hmac("sha256",u,"aws4_request","binary")}},{key:"computeCanonicalURI",value:function(t){var e=t.path;if(this.uriEscapePath){var r,n=[],o=p(e.split("/"));try{for(o.s();!(r=o.n()).done;){var i=r.value;0!==(null==i?void 0:i.length)&&("."!==i&&(".."===i?n.pop():n.push(i)))}}catch(t){o.e(t)}finally{o.f()}var a=null!=e&&e.startsWith("/")?"/":"",c=n.join("/"),u=n.length>0&&null!=e&&e.endsWith("/")?"/":"",s="".concat(a).concat(c).concat(u);return encodeURIComponent(s).replace(/%2F/g,"/")}return e}},{key:"computeCanonicalQuerystring",value:function(t){var e,r=t.query,n=void 0===r?{}:r,o=[],a={},c=function(t){if(t.toLowerCase()===i.U4)return 1;o.push(t);var e=n[t];"string"==typeof e?a[t]="".concat(_(t),"=").concat(_(e)):Array.isArray(e)&&(a[t]=e.slice(0).sort().reduce((function(e,r){return e.concat(["".concat(_(t),"=").concat(_(r))])}),[]).join("&"))},u=p(Object.keys(n).sort());try{for(u.s();!(e=u.n()).done;){c(e.value)}}catch(t){u.e(t)}finally{u.f()}return o.map((function(t){return a[t]})).filter((function(t){return t})).join("&")}},{key:"computeCanonicalHeaders",value:function(t,e,r){var n,o=t.headers,a={},c=p(Object.keys(o).sort());try{for(c.s();!(n=c.n()).done;){var u=n.value;if(null!=o[u]){var s=u.toLowerCase();(s in i.Aq||null!=e&&e.has(s))&&(!r||r&&!r.has(s))||"string"==typeof o[u]&&(a[s]=o[u]=o[u].trim().replace(/\s+/g," "))}}}catch(t){c.e(t)}finally{c.f()}return a}},{key:"computePayloadHash",value:function(t){var e=t.headers,r=t.body;return e[i.R$]?e[i.R$]:null==r?i.sH:"string"==typeof r||(0,u.e)(r)?o().sha256(r,"hex").toLowerCase():ArrayBuffer.isView(r)?o().sha256(r.buffer,"hex").toLowerCase():i.n8}},{key:"moveHeadersToQuery",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=JSON.parse(JSON.stringify(t)),n=r.headers,o=r.query,i=void 0===o?{}:o,a=0,c=Object.keys(n);a{"use strict";function n(t){return"function"==typeof ArrayBuffer&&(t instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(t))}function o(t){return Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&e.push("".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))),e}),[]).join("&")}r.d(e,{C:()=>o,e:()=>n})},890:(t,e,r)=>{"use strict";r.d(e,{LambdaClient:()=>k,LambdaInvocationError:()=>T});r(223);var n=r(137),o=r(409),i=r.n(o);const a=require("k6/encoding");var c=r.n(a),u=r(393),s=r(380),f=r(592);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return p(t,arguments,E(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,t)},h(t)}function p(t,e,r){return p=x()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&S(o,r.prototype),o},p.apply(null,arguments)}function y(){y=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};s(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=h(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e2&&void 0!==m[2]?m[2]:{}).invocationType||"RequestResponse",u=v(v({},this.commonHeaders),{},P(P(P({},f.mc,"AWSLambda.".concat(a)),"X-Amz-Invocation-Type",a),"X-Amz-Log-Type",n.logType||"None")),n.clientContext&&(u["X-Amz-Client-Context"]=n.clientContext),n.qualifier&&(o.Qualifier=n.qualifier),s=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/2015-03-31/functions/".concat(e,"/invocations"),query:o,headers:u,body:r||""},{}),t.next=9,i().asyncRequest(this.method,s.url,s.body,{headers:s.headers});case 9:if(l=t.sent,this._handle_error(l),h=l.headers["X-Amz-Log-Result"],p={executedVersion:l.headers["X-Amz-Executed-Version"],logResult:h?c().b64decode(h,"std","s"):void 0,statusCode:l.status,payload:l.body},!(d=l.headers["X-Amz-Function-Error"])){t.next=18;break}throw new T(d,p);case 18:return t.abrupt("return",p);case 19:case"end":return t.stop()}}),t,this)})),r=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){m(i,n,o,a,c,"next",t)}function c(t){m(i,n,o,a,c,"throw",t)}a(void 0)}))},function(t,e){return r.apply(this,arguments)})},{key:"_handle_error",value:function(t){var e=t.error_code;if(""!=t.error||0!==e){var r=s.t.parse(t);switch(r.code){case"AuthorizationHeaderMalformed":case"InvalidSignatureException":throw new n.w(r.message,r.code);default:throw r}}}}]),a}(u.k),T=function(t){O(r,t);var e=j(r);function r(t,n){var o;return b(this,r),P(_(o=e.call(this,"".concat(t,": ").concat(n.payload))),"response",void 0),o.response=n,o}return w(r)}(h(Error))},41:(t,e,r)=>{"use strict";r.d(e,{SQSClient:()=>L});r(223);var n=r(137),o=r(393),i=r(409),a=r.n(i),c=r(23),u=r(380);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};l(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==s(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=y;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==p[2]?p[2]:{}).messageDeduplicationId&&(o=y(y({},o),{},{MessageDeduplicationId:n.messageDeduplicationId})),void 0!==n.messageGroupId&&(o=y(y({},o),{},{MessageGroupId:n.messageGroupId})),void 0!==n.messageAttributes&&(i=Object.entries(n.messageAttributes).reduce((function(t,e,r){var n=l(e,2),o=n[0],i=n[1],a="Binary"===i.type?"BinaryValue":"StringValue";return Object.assign(t,x(x(x({},"MessageAttribute.".concat(r+1,".Name"),o),"MessageAttribute.".concat(r+1,".Value.").concat(a),i.value),"MessageAttribute.".concat(r+1,".Value.DataType"),i.type))}),{}),o=y(y({},o),i)),void 0!==n.delaySeconds&&(o=y(y({},o),{},{DelaySeconds:n.delaySeconds})),u=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:y({},this.commonHeaders),body:(0,c.C)(o)},{}),t.next=10,a().asyncRequest("POST",u.url,u.body||"",{headers:u.headers});case 10:return s=t.sent,this._handleError("SendMessage",s),h=s.html("SendMessageResponse > SendMessageResult"),t.abrupt("return",new k(h.find("MessageId").text(),h.find("MD5OfMessageBody").text()));case 14:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"listQueues",value:(e=v(f().mark((function t(){var e,r,n,o,i,u=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={Action:"ListQueues",Version:P},void 0!==(null==(e=u.length>0&&void 0!==u[0]?u[0]:{})?void 0:e.maxResults)&&(r=y(y({},r),{},{MaxResults:e.maxResults})),void 0!==(null==e?void 0:e.nextToken)&&(r=y(y({},r),{},{NextToken:e.nextToken})),void 0!==(null==e?void 0:e.queueNamePrefix)&&(r=y(y({},r),{},{QueueNamePrefix:e.queueNamePrefix})),n=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:y(y({},this.commonHeaders),{},{Host:this.endpoint.host}),body:(0,c.C)(r)},{}),t.next=9,a().asyncRequest("POST",n.url,n.body||"",{headers:n.headers});case 9:return o=t.sent,this._handleError("ListQueues",o),i=o.html(),t.abrupt("return",{urls:i.find("QueueUrl").toArray().map((function(t){return t.text()})),nextToken:i.find("NextToken").text()||void 0});case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"_handleError",value:function(t,e){var r=e.error_code;if(""!=e.error||0!==r){var o=u.t.parseXML(e.body);if("AuthorizationHeaderMalformed"===o.code)throw new n.w(o.message,o.code);throw new T(o.message,o.code||"unknown",t)}}}]),i}(o.k),k=g((function t(e,r){m(this,t),x(this,"id",void 0),x(this,"bodyMD5",void 0),this.id=e,this.bodyMD5=r})),T=function(t){w(r,t);var e=S(r);function r(t,n,o){var i;return m(this,r),x(j(i=e.call(this,t,n)),"operation",void 0),i.name="SQSServiceError",i.operation=o,i}return g(r)}(u.t)},877:(t,e,r)=>{var n=r(570),o=r(171),i=o;i.v1=n,i.v4=o,t.exports=i},327:t=>{for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);t.exports=function(t,r){var n=r||0,o=e;return[o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]]].join("")}},217:t=>{var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var r=new Uint8Array(16);t.exports=function(){return e(r),r}}else{var n=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}},570:(t,e,r)=>{var n,o,i=r(217),a=r(327),c=0,u=0;t.exports=function(t,e,r){var s=e&&r||0,f=e||[],l=(t=t||{}).node||n,h=void 0!==t.clockseq?t.clockseq:o;if(null==l||null==h){var p=i();null==l&&(l=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=o=16383&(p[6]<<8|p[7]))}var y=void 0!==t.msecs?t.msecs:(new Date).getTime(),d=void 0!==t.nsecs?t.nsecs:u+1,v=y-c+(d-u)/1e4;if(v<0&&void 0===t.clockseq&&(h=h+1&16383),(v<0||y>c)&&void 0===t.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=y,u=d,o=h;var m=(1e4*(268435455&(y+=122192928e5))+d)%4294967296;f[s++]=m>>>24&255,f[s++]=m>>>16&255,f[s++]=m>>>8&255,f[s++]=255&m;var b=y/4294967296*1e4&268435455;f[s++]=b>>>8&255,f[s++]=255&b,f[s++]=b>>>24&15|16,f[s++]=b>>>16&255,f[s++]=h>>>8|128,f[s++]=255&h;for(var g=0;g<6;++g)f[s+g]=l[g];return e||a(f)}},171:(t,e,r)=>{var n=r(217),o=r(327);t.exports=function(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var c=0;c<16;++c)e[i+c]=a[c];return e||o(a)}},400:t=>{"use strict";t.exports=require("k6/crypto")},255:t=>{"use strict";t.exports=require("k6/html")},409:t=>{"use strict";t.exports=require("k6/http")}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{AMZ_CONTENT_SHA256_HEADER:()=>o.R$,AWSConfig:()=>e.o,EventBridgeClient:()=>ke,InvalidAWSConfigError:()=>e.l,InvalidSignatureError:()=>t.w,KMSClient:()=>x,KMSDataKey:()=>P,KMSServiceError:()=>L,KinesisClient:()=>ne,LambdaClient:()=>Ce.LambdaClient,LambdaInvocationError:()=>Ce.LambdaInvocationError,S3Bucket:()=>Q,S3Client:()=>W,S3Object:()=>X,S3ServiceError:()=>Z,SQSClient:()=>qt.SQSClient,Secret:()=>bt,SecretsManagerClient:()=>mt,SecretsManagerServiceError:()=>gt,SignatureV4:()=>t.L,SystemsManagerClient:()=>Dt,SystemsManagerParameter:()=>Gt,SystemsManagerServiceError:()=>Mt,UNSIGNED_PAYLOAD:()=>o.n8});var t=r(137),e=r(223),o=r(592),i=r(409),a=r.n(i),c=r(393),u=r(380);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};l(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==s(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=y;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e1&&void 0!==c[1]?c[1]:T.Size256,n=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/",headers:h(h({},this.commonHeaders),{},j({},o.mc,"TrentService.GenerateDataKey")),body:JSON.stringify({KeyId:e,NumberOfBytes:r})},{}),t.next=4,a().asyncRequest(this.method,n.url,n.body,{headers:n.headers});case 4:return i=t.sent,this._handle_error(k.GenerateDataKey,i),t.abrupt("return",P.fromJSON(i.json()));case 7:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new L(i,o.__type,e)}if(1500===n)throw new L("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),E=function(){function t(e,r){d(this,t),j(this,"keyArn",void 0),j(this,"keyId",void 0),this.keyArn=e,this.keyId=r}return m(t,null,[{key:"fromJSON",value:function(e){return new t(e.KeyArn,e.KeyId)}}]),t}(),P=function(){function t(e,r,n){d(this,t),j(this,"id",void 0),j(this,"ciphertextBlob",void 0),j(this,"plaintext",void 0),this.ciphertextBlob=e,this.id=r,this.plaintext=n}return m(t,null,[{key:"fromJSON",value:function(e){return new t(e.CiphertextBlob,e.KeyId,e.Plaintext)}}]),t}(),L=function(t){b(r,t);var e=w(r);function r(t,n,o){var i;return d(this,r),j(O(i=e.call(this,t,n)),"operation",void 0),i.name="KMSServiceError",i.operation=o,i}return m(r)}(u.t),k=function(t){return t.GenerateDataKey="GenerateDataKey",t.ListKeys="ListKeys",t}(k||{}),T=function(t){return t[t.Size256=32]="Size256",t[t.Size512=64]="Size512",t}(T||{}),N=r(255);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function D(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function G(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){D(i,n,o,a,c,"next",t)}function c(t){D(i,n,o,a,c,"throw",t)}a(void 0)}))}}function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){for(var r=0;r".concat(t.partNumber,"").concat(t.eTag,"")})).join(""),""),(u=this.endpoint.copy()).hostname="".concat(e,".").concat(this.endpoint.hostname),s=this.signature.sign({method:i,endpoint:u,path:"/".concat(r),headers:{},body:c,query:{uploadId:"".concat(n)}},{}),t.next=7,a().asyncRequest(i,s.url,s.body||null,{headers:s.headers});case 7:f=t.sent,this._handle_error("CompleteMultipartUpload",f);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,r,o){return n.apply(this,arguments)})},{key:"abortMultipartUpload",value:(r=G(I().mark((function t(e,r,n){var o,i,c,u;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="DELETE",(i=this.endpoint.copy()).hostname="".concat(e,".").concat(this.endpoint.hostname),c=this.signature.sign({method:o,endpoint:i,path:"/".concat(r),headers:{},query:{uploadId:"".concat(n)}},{}),t.next=6,a().asyncRequest(o,c.url,c.body||null,{headers:c.headers});case 6:u=t.sent,this._handle_error("AbortMultipartUpload",u);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.status,o=r.error_code,i=r.error;if(!(n>=200&&n<300&&""==i&&0===o)){if(301==n||i&&i.startsWith("301"))throw new Z("Resource not found","ResourceNotFound",e);var a=u.t.parseXML(r.body);if("AuthorizationHeaderMalformed"===a.code)throw new t.w(a.message,a.code);throw new Z(a.message,a.code||"unknown",e)}}}]),d}(c.k),Q=q((function t(e,r){M(this,t),U(this,"name",void 0),U(this,"creationDate",void 0),this.name=e,this.creationDate=r})),X=q((function t(e,r,n,o,i,a){M(this,t),U(this,"key",void 0),U(this,"lastModified",void 0),U(this,"etag",void 0),U(this,"size",void 0),U(this,"storageClass",void 0),U(this,"data",void 0),this.key=e,this.lastModified=r,this.etag=n,this.size=o,this.storageClass=i,this.data=a})),Y=q((function t(e,r){M(this,t),U(this,"key",void 0),U(this,"uploadId",void 0),this.key=e,this.uploadId=r})),$=q((function t(e,r){M(this,t),U(this,"partNumber",void 0),U(this,"eTag",void 0),this.partNumber=e,this.eTag=r})),Z=function(t){H(r,t);var e=z(r);function r(t,n,o){var i;return M(this,r),U(B(i=e.call(this,t,n)),"operation",void 0),i.name="S3ServiceError",i.operation=o,i}return q(r)}(u.t),tt=r(877);function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function rt(){rt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==et(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ot(t){for(var e=1;e=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new gt(i,o.__type,e)}if(1500===n)throw new gt("An error occured on the server side","InternalServiceError",e)}}}]),f}(c.k),bt=function(){function t(e,r,n,o,i,a){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[];ct(this,t),dt(this,"name",void 0),dt(this,"arn",void 0),dt(this,"secret",void 0),dt(this,"createdDate",void 0),dt(this,"lastAccessedDate",void 0),dt(this,"lastChangedDate",void 0),dt(this,"tags",void 0),this.name=e,this.arn=r,this.secret=n,this.createdDate=o,this.lastAccessedDate=i,this.lastChangedDate=a,this.tags=c}return st(t,null,[{key:"fromJSON",value:function(e){return new t(e.Name,e.ARN,e.SecretString,e.CreatedDate,e.LastAccessedDate,e.LastChangedDate,e.Tags)}}]),t}(),gt=function(t){ft(r,t);var e=ht(r);function r(t,n,o){var i;return ct(this,r),dt(pt(i=e.call(this,t,n)),"operation",void 0),i.name="SecretsManagerServiceError",i.operation=o,i}return st(r)}(u.t),wt=function(t){return t.ListSecrets="ListSecrets",t.GetSecretValue="GetSecretValue",t.CreateSecret="CreateSecret",t.PutSecretValue="PutSecretValue",t.DeleteSecret="DeleteSecret",t}(wt||{});function Ot(t){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(t)}function St(){St=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ot(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _t(t){for(var e=1;e1&&void 0!==c[1]&&c[1],n=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/",headers:_t(_t({},this.commonHeaders),{},At({},o.mc,"AmazonSSM.GetParameter")),body:JSON.stringify({Name:e,WithDecryption:r})},{}),t.next=4,a().asyncRequest(this.method,n.url,n.body,{headers:n.headers});case 4:return i=t.sent,this._handle_error(Kt.GetParameter,i),t.abrupt("return",Gt.fromJSON(i.json()));case 7:case"end":return t.stop()}}),t,this)})),n=function(){var t=this,e=arguments;return new Promise((function(n,o){var i=r.apply(t,e);function a(t){xt(i,n,o,a,c,"next",t)}function c(t){xt(i,n,o,a,c,"throw",t)}a(void 0)}))},function(t){return n.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new Mt(i,o.__type,e)}if(1500===n)throw new Mt("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),Gt=function(){function t(e,r,n,o,i,a,c,u,s){Et(this,t),At(this,"arn",void 0),At(this,"dataType",void 0),At(this,"lastModifiedDate",void 0),At(this,"name",void 0),At(this,"selector",void 0),At(this,"sourceResult",void 0),At(this,"type",void 0),At(this,"value",void 0),At(this,"version",void 0),this.arn=e,this.dataType=r,this.lastModifiedDate=n,this.name=o,this.selector=i,this.sourceResult=a,this.type=c,this.value=u,this.version=s}return Lt(t,null,[{key:"fromJSON",value:function(e){var r=e.Parameter;return new t(r.ARN,r.DataType,r.LastModifiedDate,r.Name,r.Selector,r.SourceResult,r.Type,r.Value,r.Version)}}]),t}(),Mt=function(t){kt(r,t);var e=Nt(r);function r(t,n,o){var i;return Et(this,r),At(Ct(i=e.call(this,t,n)),"operation",void 0),i.name="SystemsManagerServiceError",i.operation=o,i}return Lt(r)}(u.t),Kt=function(t){return t.GetParameter="GetParameter",t}(Kt||{}),qt=r(41);function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Ft(){Ft=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ht(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bt(t){for(var e=1;e1&&void 0!==o[1]?o[1]:{}).shardCount&&{ShardCount:r.shardCount}),r.streamModeDetails&&{StreamMode:r.streamModeDetails.streamMode}),t.next=4,this._send_request("CreateStream",n);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"deleteStream",value:(f=Ut(Ft().mark((function t(e){var r,n,o=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({StreamName:e},(r=o.length>1&&void 0!==o[1]?o[1]:{}).streamARN&&{StreamARN:r.streamARN}),r.enforceConsumerDeletion&&{EnforceConsumerDeletion:r.enforceConsumerDeletion}),t.next=4,this._send_request("DeleteStream",n);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"listStreams",value:(s=Ut(Ft().mark((function t(){var e,r,n,o=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Bt(Bt(Bt({},(e=o.length>0&&void 0!==o[0]?o[0]:{}).exclusiveStartStreamName&&{ExclusiveStartStreamName:e.exclusiveStartStreamName}),e.limit&&{Limit:e.limit}),e.nextToken&&{NextToken:e.nextToken}),t.next=4,this._send_request("ListStreams",r);case 4:return n=t.sent,t.abrupt("return",ie.fromJson(null==n?void 0:n.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"putRecords",value:(u=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=i.length>1&&void 0!==i[1]?i[1]:{}).streamName||r.streamARN){t.next=3;break}throw new Error("Either streamName or streamARN must be provided");case 3:return n=Bt(Bt({Records:e},r.streamName&&{StreamName:r.streamName}),r.streamARN&&{StreamARN:r.streamARN}),t.next=6,this._send_request("PutRecords",n);case 6:return o=t.sent,t.abrupt("return",ce.fromJson(null==o?void 0:o.json()));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"getRecords",value:(c=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({ShardIterator:e},(r=i.length>1&&void 0!==i[1]?i[1]:{}).limit&&{Limit:r.limit}),r.streamARN&&{StreamARN:r.streamARN}),t.next=4,this._send_request("GetRecords",n);case 4:return o=t.sent,t.abrupt("return",se.fromJson(null==o?void 0:o.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"listShards",value:(i=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({StreamName:e},(r=i.length>1&&void 0!==i[1]?i[1]:{}).nextToken&&{NextToken:r.nextToken}),r.maxResults&&{MaxResults:r.maxResults}),t.next=4,this._send_request("ListShards",n);case 4:return o=t.sent,t.abrupt("return",le.fromJson(null==o?void 0:o.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"getShardIterator",value:(n=Ut(Ft().mark((function t(e,r,n){var o,i,a,c=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Bt(Bt({StreamName:e,ShardId:r,ShardIteratorType:n},(o=c.length>3&&void 0!==c[3]?c[3]:{}).startingSequenceNumber&&{StartingSequenceNumber:o.startingSequenceNumber}),o.timestamp&&{Timestamp:o.timestamp}),t.next=4,this._send_request("GetShardIterator",i);case 4:return a=t.sent,t.abrupt("return",pe.fromJson(null==a?void 0:a.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:"_send_request",value:(r=Ut(Ft().mark((function t(e,r){var n,i;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:Bt(Bt({},this.commonHeaders),{},ee({},o.mc,"".concat(this.serviceVersion,".").concat(e))),body:JSON.stringify(r)},{}),t.next=3,a().asyncRequest("POST",n.url,n.body,{headers:n.headers});case 3:return i=t.sent,this._handle_error(e,i),t.abrupt("return",i);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new oe(i,o.__type,e)}if(1500===n)throw new oe("An error occured on the server side","InternalServiceError",e)}}}]),p}(c.k),oe=function(t){Xt(r,t);var e=$t(r);function r(t,n,o){var i;return Vt(this,r),ee(Zt(i=e.call(this,t,n)),"operation",void 0),i.name="KinesisServiceError",i.operation=o,i}return Qt(r)}(u.t),ie=function(){function t(e,r,n,o){Vt(this,t),ee(this,"hasMoreStreams",void 0),ee(this,"nextToken",void 0),ee(this,"streamNames",void 0),ee(this,"streamSummaries",void 0),this.hasMoreStreams=e,this.nextToken=r,this.streamNames=n,this.streamSummaries=o}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.HasMoreStreams,n=void 0!==r&&r,o=e.NextToken,i=void 0===o?"":o,a=e.StreamNames,c=void 0===a?[]:a,u=e.StreamSummaries,s=void 0===u?[]:u;return new t(n,i,c,null==s?void 0:s.map(ae.fromJson))}}]),t}(),ae=function(){function t(e,r,n,o,i){Vt(this,t),ee(this,"streamARN",void 0),ee(this,"streamCreationTimestamp",void 0),ee(this,"streamModeDetails",void 0),ee(this,"streamName",void 0),ee(this,"streamStatus",void 0),this.streamARN=e,this.streamCreationTimestamp=r,this.streamModeDetails=n,this.streamName=o,this.streamStatus=i}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.StreamARN,n=void 0===r?"":r,o=e.StreamCreationTimestamp,i=void 0===o?0:o,a=e.StreamModeDetails,c=void 0===a?{}:a,u=e.StreamName,s=void 0===u?"":u,f=e.StreamStatus;return new t(n,i,c,s,void 0===f?"":f)}}]),t}(),ce=function(){function t(e,r,n){Vt(this,t),ee(this,"encryptionType",void 0),ee(this,"failedRecordCount",void 0),ee(this,"records",void 0),this.encryptionType=e,this.failedRecordCount=r,this.records=n}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.EncryptionType,n=void 0===r?"NONE":r,o=e.FailedRecordCount,i=void 0===o?0:o,a=e.Records;return new t(n,i,(void 0===a?[]:a).map(ue.fromJson))}}]),t}(),ue=function(){function t(e,r){Vt(this,t),ee(this,"sequenceNumber",void 0),ee(this,"shardId",void 0),this.sequenceNumber=e,this.shardId=r}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.SequenceNumber,e.ShardId)}}]),t}(),se=function(){function t(e,r,n){Vt(this,t),ee(this,"nextShardIterator",void 0),ee(this,"records",void 0),ee(this,"millisBehindLatest",void 0),this.nextShardIterator=e,this.records=r,this.millisBehindLatest=n}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.NextShardIterator,n=void 0===r?"":r,o=e.Records,i=void 0===o?[]:o,a=e.MillisBehindLatest,c=void 0===a?0:a;return new t(n,i.map(fe.fromJson),c)}}]),t}(),fe=function(){function t(e,r,n){Vt(this,t),ee(this,"data",void 0),ee(this,"partitionKey",void 0),ee(this,"sequenceNumber",void 0),this.data=e,this.partitionKey=r,this.sequenceNumber=n}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.Data,e.PartitionKey,e.SequenceNumber)}}]),t}(),le=function(){function t(e,r){Vt(this,t),ee(this,"shards",void 0),ee(this,"nextToken",void 0),this.shards=e,this.nextToken=r}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.Shards,n=void 0===r?[]:r,o=e.NextToken;return new t(n.map(he.fromJson),o)}}]),t}(),he=function(){function t(e,r,n,o,i){Vt(this,t),ee(this,"id",void 0),ee(this,"parentShardId",void 0),ee(this,"adjacentParentShardId",void 0),ee(this,"hashKeyRange",void 0),ee(this,"sequenceNumberRange",void 0),this.id=e,this.parentShardId=o,this.adjacentParentShardId=i,this.hashKeyRange=r,this.sequenceNumberRange=n}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.ShardId,e.HashKeyRange,e.SequenceNumberRange,e.ParentShardId,e.AdjacentParentShardId)}}]),t}(),pe=function(){function t(e){Vt(this,t),ee(this,"shardIterator",void 0),this.shardIterator=e}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.ShardIterator)}}]),t}();function ye(t){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ye(t)}function de(){de=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==ye(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function ve(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function me(t){for(var e=1;e=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new Ne(i,o.__type,e)}if(1500===n)throw new Ne("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),Te=function(t){return t.PutEvents="PutEvents",t}(Te||{}),Ne=function(t){Se(r,t);var e=_e(r);function r(t,n,o){var i;return ge(this,r),Pe(xe(i=e.call(this,t,n)),"operation",void 0),i.name="EventBridgeServiceError",i.operation=o,i}return Oe(r)}(u.t),Ce=r(890)})();var o=exports;for(var i in n)o[i]=n[i];n.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})(); //# sourceMappingURL=aws.js.map \ No newline at end of file From 75824c301d8c407e107a6cc3265bcc01db36167a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20L=C3=B3pez=20de=20la=20Franca=20Beltran?= Date: Tue, 9 Jan 2024 17:07:55 +0100 Subject: [PATCH 4/5] Redirect diff output to /dev/null --- .github/workflows/all.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index b2fad8e..e1f06ed 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -23,7 +23,7 @@ jobs: - name: Verify the build is up to date run: | npm run webpack -- --output-path="${RUNNER_TEMP}/dist" - if ! diff -r "${RUNNER_TEMP}/dist" dist; then + if ! diff -r "${RUNNER_TEMP}/dist" dist > /dev/null; then echo "Build is out of date, please run 'npm run webpack' and commit the changes" exit 1 fi From 780bd1ec66d31736509f503b19738f57cf54c01e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20L=C3=B3pez=20de=20la=20Franca=20Beltran?= Date: Tue, 9 Jan 2024 17:10:44 +0100 Subject: [PATCH 5/5] Undo temporary change --- dist/aws.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/aws.js b/dist/aws.js index 426e8a4..2d03476 100644 --- a/dist/aws.js +++ b/dist/aws.js @@ -1,3 +1,3 @@ /*! For license information please see aws.js.LICENSE.txt */ -(()=>{var t={444:(t,e,r)=>{"use strict";r.d(e,{k:()=>u});var n=r(89);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r{"use strict";r.d(e,{l:()=>m,o:()=>v});var n=r(89);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=u();return function(){var r,n=f(t);if(e){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},a(t)}function c(t,e,r){return c=u()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&s(o,r.prototype),o},c.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var r=0;r128)throw new m("invalid AWS access key ID; reason: size should be between 16 and 128 characters, got ".concat(e.accessKeyId.length));if(!e.secretAccessKey||""===e.secretAccessKey)throw new m("invalid AWS secret access key; reason: expected a non empty string, got `".concat(e.secretAccessKey,"`"));if(e.secretAccessKey.length<16||e.secretAccessKey.length>128)throw new m("invalid AWS secret access key; reason: size should be between 16 and 128 characters, got ".concat(e.secretAccessKey.length));this.region=e.region,this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,void 0!==e.sessionToken&&(this.sessionToken=e.sessionToken),void 0!==e.endpoint&&("string"==typeof e.endpoint?this.endpoint=new n.F(e.endpoint):this.endpoint=e.endpoint)}return p(t,null,[{key:"fromEnvironment",value:function(e){return new t({region:__ENV.AWS_REGION,accessKeyId:__ENV.AWS_ACCESS_KEY_ID,secretAccessKey:__ENV.AWS_SECRET_ACCESS_KEY,sessionToken:__ENV.AWS_SESSION_TOKEN,endpoint:null==e?void 0:e.endpoint})}}]),t}(),m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(r,t);var e=i(r);function r(t){return l(this,r),e.call(this,t)}return p(r)}(a(Error))},592:(t,e,r)=>{"use strict";r.d(e,{$l:()=>o,Aq:()=>b,B3:()=>v,Dz:()=>d,K0:()=>n,NL:()=>s,Qk:()=>i,R$:()=>f,SG:()=>w,U4:()=>h,VR:()=>u,a_:()=>l,al:()=>g,cG:()=>c,mc:()=>p,md:()=>m,n8:()=>j,sH:()=>S,th:()=>O,w1:()=>y,zC:()=>a});var n="X-Amz-Algorithm",o="X-Amz-Credential",i="X-Amz-Date",a="X-Amz-Expires",c="X-Amz-Signature",u="X-Amz-SignedHeaders",s="X-Amz-Security-Token",f="x-amz-content-sha256",l=i.toLowerCase(),h=c.toLowerCase(),p="X-Amz-Target".toLowerCase(),y=s.toLowerCase(),d="authorization",v=[d,l,"date"],m="host",b={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},g="aws4_request",w="AWS4-HMAC-SHA256",O=604800,S="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",j="UNSIGNED-PAYLOAD"},89:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rs});var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,"_protocol",void 0),c(this,"_hostname",void 0),c(this,"_port",void 0);var r=!e.startsWith("http://")&&!e.startsWith("https://")?"".concat(t.DEFAULT_PROTOCOL,"://").concat(e):e,n=r.match(/^https?:/),i=o(r.replace(/^https?:\/\//,"").split("/"),1)[0];this._protocol=n?n[0].slice(0,-1):t.DEFAULT_PROTOCOL,this._hostname=i.split(":")[0],this._port=i.split(":")[1]?parseInt(i.split(":")[1]):void 0}var e,r,n;return e=t,(r=[{key:"copy",value:function(){return new t(this.href)}},{key:"host",get:function(){return this._port?"".concat(this._hostname,":").concat(this._port):this._hostname},set:function(t){var e=o(t.split(":"),2),r=e[0],n=e[1];this._hostname=r,this._port=n?parseInt(n):void 0}},{key:"hostname",get:function(){return this._hostname},set:function(t){this._hostname=t}},{key:"href",get:function(){return"".concat(this.protocol,"://").concat(this.host)},set:function(e){var r=e.match(/^https?:/),n=o(e.replace(/^https?:\/\//,"").split("/"),1)[0];this._protocol=r?r[0].slice(0,-1):t.DEFAULT_PROTOCOL,this._hostname=n.split(":")[0],this._port=n.split(":")[1]?parseInt(n.split(":")[1]):void 0}},{key:"port",get:function(){return this._port},set:function(t){this._port=t}},{key:"protocol",get:function(){return this._protocol},set:function(t){this._protocol=t}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();c(s,"DEFAULT_PROTOCOL","https")},380:(t,e,r)=>{"use strict";r.d(e,{t:()=>y});var n=r(255);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r{"use strict";function n(t,e){t=t.toLowerCase();for(var r=0,n=Object.keys(e);rn})},137:(t,e,r)=>{"use strict";r.d(e,{L:()=>S,w:()=>j});var n=r(400),o=r.n(n),i=r(592),a=r(380),c=r(491),u=r(23);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=h(t);if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:{},r=v(v({},{signingDate:new Date,unsignableHeaders:new Set,signableHeaders:new Set}),e),n=x(r.signingDate),o=n.longDate,a=n.shortDate,u=r.signingService||this.service,s=r.signingRegion||this.region,f="".concat(a,"/").concat(s,"/").concat(u,"/").concat(i.al);t.headers[i.md]=t.endpoint.hostname;for(var l=0,h=Object.keys(t.headers);l-1&&delete t.headers[p]}t.headers[i.a_]=o,this.credentials.sessionToken&&(t.headers[i.w1]=this.credentials.sessionToken),ArrayBuffer.isView(t.body)&&(t.body=t.body.buffer),t.body||(t.body="");var y=this.computePayloadHash(t);!(0,c.L)(i.R$,t.headers)&&this.applyChecksum&&(t.headers[i.R$]=y);var d=this.computeCanonicalHeaders(t,r.unsignableHeaders,r.signableHeaders),m=this.calculateSignature(o,f,this.deriveSigningKey(this.credentials,u,s,a),this.createCanonicalRequest(t,d,y));t.headers[i.Dz]="".concat(i.SG," ")+"Credential=".concat(this.credentials.accessKeyId,"/").concat(f,", ")+"SignedHeaders=".concat(Object.keys(d).sort().join(";"),", ")+"Signature=".concat(m);var b=t.endpoint.href;return t.path&&(b+=t.path),t.query&&(b+="?".concat(this.serializeQueryParameters(t.query))),v({url:b},t)}},{key:"presign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.signingDate,n=void 0===r?new Date:r,o=e.expiresIn,a=void 0===o?3600:o,c=e.unsignableHeaders,u=e.unhoistableHeaders,s=e.signableHeaders,f=e.signingRegion,l=e.signingService,h=x(n),p=h.longDate,y=h.shortDate,d=f||this.region,m=l||this.service;if(a>i.th)throw new j("Signature version 4 presigned URLs can't be valid for more than 7 days");var b="".concat(y,"/").concat(d,"/").concat(m,"/").concat(i.al),g=this.moveHeadersToQuery(t,{unhoistableHeaders:u});g.headers[i.md]=t.endpoint.hostname,this.credentials.sessionToken&&(g.query[i.NL]=this.credentials.sessionToken),g.query[i.K0]=i.SG,g.query[i.$l]="".concat(this.credentials.accessKeyId,"/").concat(b),g.query[i.Qk]=p,g.query[i.zC]=a.toString(10);var w=this.computeCanonicalHeaders(g,c,s);g.query[i.VR]=Object.keys(w).sort().join(";");var O=this.deriveSigningKey(this.credentials,m,d,y),S=this.computePayloadHash(t),_=this.createCanonicalRequest(g,w,S);g.query[i.cG]=this.calculateSignature(p,b,O,_);var E=g.endpoint.href;return g.path&&(E+=g.path),g.query&&(E+="?".concat(this.serializeQueryParameters(g.query))),v({url:E},g)}},{key:"createCanonicalRequest",value:function(t,e,r){var n=Object.keys(e).sort(),o=n.map((function(t){return"".concat(t,":").concat(e[t])})).join("\n"),i=n.join(";");return"".concat(t.method,"\n")+"".concat(this.computeCanonicalURI(t),"\n")+"".concat(this.computeCanonicalQuerystring(t),"\n")+"".concat(o,"\n\n")+"".concat(i,"\n")+"".concat(r)}},{key:"createStringToSign",value:function(t,e,r){var n=o().sha256(r,"hex");return"".concat(i.SG,"\n")+"".concat(t,"\n")+"".concat(e,"\n")+"".concat(n)}},{key:"calculateSignature",value:function(t,e,r,n){var i=this.createStringToSign(t,e,n);return o().hmac("sha256",r,i,"hex")}},{key:"deriveSigningKey",value:function(t,e,r,n){var i=t.secretAccessKey,a=o().hmac("sha256","AWS4"+i,n,"binary"),c=o().hmac("sha256",a,r,"binary"),u=o().hmac("sha256",c,e,"binary");return o().hmac("sha256",u,"aws4_request","binary")}},{key:"computeCanonicalURI",value:function(t){var e=t.path;if(this.uriEscapePath){var r,n=[],o=p(e.split("/"));try{for(o.s();!(r=o.n()).done;){var i=r.value;0!==(null==i?void 0:i.length)&&("."!==i&&(".."===i?n.pop():n.push(i)))}}catch(t){o.e(t)}finally{o.f()}var a=null!=e&&e.startsWith("/")?"/":"",c=n.join("/"),u=n.length>0&&null!=e&&e.endsWith("/")?"/":"",s="".concat(a).concat(c).concat(u);return encodeURIComponent(s).replace(/%2F/g,"/")}return e}},{key:"computeCanonicalQuerystring",value:function(t){var e,r=t.query,n=void 0===r?{}:r,o=[],a={},c=function(t){if(t.toLowerCase()===i.U4)return 1;o.push(t);var e=n[t];"string"==typeof e?a[t]="".concat(_(t),"=").concat(_(e)):Array.isArray(e)&&(a[t]=e.slice(0).sort().reduce((function(e,r){return e.concat(["".concat(_(t),"=").concat(_(r))])}),[]).join("&"))},u=p(Object.keys(n).sort());try{for(u.s();!(e=u.n()).done;){c(e.value)}}catch(t){u.e(t)}finally{u.f()}return o.map((function(t){return a[t]})).filter((function(t){return t})).join("&")}},{key:"computeCanonicalHeaders",value:function(t,e,r){var n,o=t.headers,a={},c=p(Object.keys(o).sort());try{for(c.s();!(n=c.n()).done;){var u=n.value;if(null!=o[u]){var s=u.toLowerCase();(s in i.Aq||null!=e&&e.has(s))&&(!r||r&&!r.has(s))||"string"==typeof o[u]&&(a[s]=o[u]=o[u].trim().replace(/\s+/g," "))}}}catch(t){c.e(t)}finally{c.f()}return a}},{key:"computePayloadHash",value:function(t){var e=t.headers,r=t.body;return e[i.R$]?e[i.R$]:null==r?i.sH:"string"==typeof r||(0,u.e)(r)?o().sha256(r,"hex").toLowerCase():ArrayBuffer.isView(r)?o().sha256(r.buffer,"hex").toLowerCase():i.n8}},{key:"moveHeadersToQuery",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=JSON.parse(JSON.stringify(t)),n=r.headers,o=r.query,i=void 0===o?{}:o,a=0,c=Object.keys(n);a{"use strict";function n(t){return"function"==typeof ArrayBuffer&&(t instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(t))}function o(t){return Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&e.push("".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))),e}),[]).join("&")}r.d(e,{C:()=>o,e:()=>n})},890:(t,e,r)=>{"use strict";r.d(e,{LambdaClient:()=>k,LambdaInvocationError:()=>T});r(223);var n=r(137),o=r(409),i=r.n(o);const a=require("k6/encoding");var c=r.n(a),u=r(393),s=r(380),f=r(592);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return p(t,arguments,E(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,t)},h(t)}function p(t,e,r){return p=x()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&S(o,r.prototype),o},p.apply(null,arguments)}function y(){y=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};s(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=h(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e2&&void 0!==m[2]?m[2]:{}).invocationType||"RequestResponse",u=v(v({},this.commonHeaders),{},P(P(P({},f.mc,"AWSLambda.".concat(a)),"X-Amz-Invocation-Type",a),"X-Amz-Log-Type",n.logType||"None")),n.clientContext&&(u["X-Amz-Client-Context"]=n.clientContext),n.qualifier&&(o.Qualifier=n.qualifier),s=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/2015-03-31/functions/".concat(e,"/invocations"),query:o,headers:u,body:r||""},{}),t.next=9,i().asyncRequest(this.method,s.url,s.body,{headers:s.headers});case 9:if(l=t.sent,this._handle_error(l),h=l.headers["X-Amz-Log-Result"],p={executedVersion:l.headers["X-Amz-Executed-Version"],logResult:h?c().b64decode(h,"std","s"):void 0,statusCode:l.status,payload:l.body},!(d=l.headers["X-Amz-Function-Error"])){t.next=18;break}throw new T(d,p);case 18:return t.abrupt("return",p);case 19:case"end":return t.stop()}}),t,this)})),r=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){m(i,n,o,a,c,"next",t)}function c(t){m(i,n,o,a,c,"throw",t)}a(void 0)}))},function(t,e){return r.apply(this,arguments)})},{key:"_handle_error",value:function(t){var e=t.error_code;if(""!=t.error||0!==e){var r=s.t.parse(t);switch(r.code){case"AuthorizationHeaderMalformed":case"InvalidSignatureException":throw new n.w(r.message,r.code);default:throw r}}}}]),a}(u.k),T=function(t){O(r,t);var e=j(r);function r(t,n){var o;return b(this,r),P(_(o=e.call(this,"".concat(t,": ").concat(n.payload))),"response",void 0),o.response=n,o}return w(r)}(h(Error))},41:(t,e,r)=>{"use strict";r.d(e,{SQSClient:()=>L});r(223);var n=r(137),o=r(393),i=r(409),a=r.n(i),c=r(23),u=r(380);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};l(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==s(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=y;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==p[2]?p[2]:{}).messageDeduplicationId&&(o=y(y({},o),{},{MessageDeduplicationId:n.messageDeduplicationId})),void 0!==n.messageGroupId&&(o=y(y({},o),{},{MessageGroupId:n.messageGroupId})),void 0!==n.messageAttributes&&(i=Object.entries(n.messageAttributes).reduce((function(t,e,r){var n=l(e,2),o=n[0],i=n[1],a="Binary"===i.type?"BinaryValue":"StringValue";return Object.assign(t,x(x(x({},"MessageAttribute.".concat(r+1,".Name"),o),"MessageAttribute.".concat(r+1,".Value.").concat(a),i.value),"MessageAttribute.".concat(r+1,".Value.DataType"),i.type))}),{}),o=y(y({},o),i)),void 0!==n.delaySeconds&&(o=y(y({},o),{},{DelaySeconds:n.delaySeconds})),u=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:y({},this.commonHeaders),body:(0,c.C)(o)},{}),t.next=10,a().asyncRequest("POST",u.url,u.body||"",{headers:u.headers});case 10:return s=t.sent,this._handleError("SendMessage",s),h=s.html("SendMessageResponse > SendMessageResult"),t.abrupt("return",new k(h.find("MessageId").text(),h.find("MD5OfMessageBody").text()));case 14:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"listQueues",value:(e=v(f().mark((function t(){var e,r,n,o,i,u=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={Action:"ListQueues",Version:P},void 0!==(null==(e=u.length>0&&void 0!==u[0]?u[0]:{})?void 0:e.maxResults)&&(r=y(y({},r),{},{MaxResults:e.maxResults})),void 0!==(null==e?void 0:e.nextToken)&&(r=y(y({},r),{},{NextToken:e.nextToken})),void 0!==(null==e?void 0:e.queueNamePrefix)&&(r=y(y({},r),{},{QueueNamePrefix:e.queueNamePrefix})),n=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:y(y({},this.commonHeaders),{},{Host:this.endpoint.host}),body:(0,c.C)(r)},{}),t.next=9,a().asyncRequest("POST",n.url,n.body||"",{headers:n.headers});case 9:return o=t.sent,this._handleError("ListQueues",o),i=o.html(),t.abrupt("return",{urls:i.find("QueueUrl").toArray().map((function(t){return t.text()})),nextToken:i.find("NextToken").text()||void 0});case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"_handleError",value:function(t,e){var r=e.error_code;if(""!=e.error||0!==r){var o=u.t.parseXML(e.body);if("AuthorizationHeaderMalformed"===o.code)throw new n.w(o.message,o.code);throw new T(o.message,o.code||"unknown",t)}}}]),i}(o.k),k=g((function t(e,r){m(this,t),x(this,"id",void 0),x(this,"bodyMD5",void 0),this.id=e,this.bodyMD5=r})),T=function(t){w(r,t);var e=S(r);function r(t,n,o){var i;return m(this,r),x(j(i=e.call(this,t,n)),"operation",void 0),i.name="SQSServiceError",i.operation=o,i}return g(r)}(u.t)},877:(t,e,r)=>{var n=r(570),o=r(171),i=o;i.v1=n,i.v4=o,t.exports=i},327:t=>{for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);t.exports=function(t,r){var n=r||0,o=e;return[o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]]].join("")}},217:t=>{var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var r=new Uint8Array(16);t.exports=function(){return e(r),r}}else{var n=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}},570:(t,e,r)=>{var n,o,i=r(217),a=r(327),c=0,u=0;t.exports=function(t,e,r){var s=e&&r||0,f=e||[],l=(t=t||{}).node||n,h=void 0!==t.clockseq?t.clockseq:o;if(null==l||null==h){var p=i();null==l&&(l=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=o=16383&(p[6]<<8|p[7]))}var y=void 0!==t.msecs?t.msecs:(new Date).getTime(),d=void 0!==t.nsecs?t.nsecs:u+1,v=y-c+(d-u)/1e4;if(v<0&&void 0===t.clockseq&&(h=h+1&16383),(v<0||y>c)&&void 0===t.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=y,u=d,o=h;var m=(1e4*(268435455&(y+=122192928e5))+d)%4294967296;f[s++]=m>>>24&255,f[s++]=m>>>16&255,f[s++]=m>>>8&255,f[s++]=255&m;var b=y/4294967296*1e4&268435455;f[s++]=b>>>8&255,f[s++]=255&b,f[s++]=b>>>24&15|16,f[s++]=b>>>16&255,f[s++]=h>>>8|128,f[s++]=255&h;for(var g=0;g<6;++g)f[s+g]=l[g];return e||a(f)}},171:(t,e,r)=>{var n=r(217),o=r(327);t.exports=function(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var c=0;c<16;++c)e[i+c]=a[c];return e||o(a)}},400:t=>{"use strict";t.exports=require("k6/crypto")},255:t=>{"use strict";t.exports=require("k6/html")},409:t=>{"use strict";t.exports=require("k6/http")}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{AMZ_CONTENT_SHA256_HEADER:()=>o.R$,AWSConfig:()=>e.o,EventBridgeClient:()=>ke,InvalidAWSConfigError:()=>e.l,InvalidSignatureError:()=>t.w,KMSClient:()=>x,KMSDataKey:()=>P,KMSServiceError:()=>L,KinesisClient:()=>ne,LambdaClient:()=>Ce.LambdaClient,LambdaInvocationError:()=>Ce.LambdaInvocationError,S3Bucket:()=>Q,S3Client:()=>W,S3Object:()=>X,S3ServiceError:()=>Z,SQSClient:()=>qt.SQSClient,Secret:()=>bt,SecretsManagerClient:()=>mt,SecretsManagerServiceError:()=>gt,SignatureV4:()=>t.L,SystemsManagerClient:()=>Dt,SystemsManagerParameter:()=>Gt,SystemsManagerServiceError:()=>Mt,UNSIGNED_PAYLOAD:()=>o.n8});var t=r(137),e=r(223),o=r(592),i=r(409),a=r.n(i),c=r(393),u=r(380);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};l(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==s(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=y;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e1&&void 0!==c[1]?c[1]:T.Size256,n=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/",headers:h(h({},this.commonHeaders),{},j({},o.mc,"TrentService.GenerateDataKey")),body:JSON.stringify({KeyId:e,NumberOfBytes:r})},{}),t.next=4,a().asyncRequest(this.method,n.url,n.body,{headers:n.headers});case 4:return i=t.sent,this._handle_error(k.GenerateDataKey,i),t.abrupt("return",P.fromJSON(i.json()));case 7:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new L(i,o.__type,e)}if(1500===n)throw new L("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),E=function(){function t(e,r){d(this,t),j(this,"keyArn",void 0),j(this,"keyId",void 0),this.keyArn=e,this.keyId=r}return m(t,null,[{key:"fromJSON",value:function(e){return new t(e.KeyArn,e.KeyId)}}]),t}(),P=function(){function t(e,r,n){d(this,t),j(this,"id",void 0),j(this,"ciphertextBlob",void 0),j(this,"plaintext",void 0),this.ciphertextBlob=e,this.id=r,this.plaintext=n}return m(t,null,[{key:"fromJSON",value:function(e){return new t(e.CiphertextBlob,e.KeyId,e.Plaintext)}}]),t}(),L=function(t){b(r,t);var e=w(r);function r(t,n,o){var i;return d(this,r),j(O(i=e.call(this,t,n)),"operation",void 0),i.name="KMSServiceError",i.operation=o,i}return m(r)}(u.t),k=function(t){return t.GenerateDataKey="GenerateDataKey",t.ListKeys="ListKeys",t}(k||{}),T=function(t){return t[t.Size256=32]="Size256",t[t.Size512=64]="Size512",t}(T||{}),N=r(255);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function D(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function G(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){D(i,n,o,a,c,"next",t)}function c(t){D(i,n,o,a,c,"throw",t)}a(void 0)}))}}function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){for(var r=0;r".concat(t.partNumber,"").concat(t.eTag,"")})).join(""),""),(u=this.endpoint.copy()).hostname="".concat(e,".").concat(this.endpoint.hostname),s=this.signature.sign({method:i,endpoint:u,path:"/".concat(r),headers:{},body:c,query:{uploadId:"".concat(n)}},{}),t.next=7,a().asyncRequest(i,s.url,s.body||null,{headers:s.headers});case 7:f=t.sent,this._handle_error("CompleteMultipartUpload",f);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,r,o){return n.apply(this,arguments)})},{key:"abortMultipartUpload",value:(r=G(I().mark((function t(e,r,n){var o,i,c,u;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="DELETE",(i=this.endpoint.copy()).hostname="".concat(e,".").concat(this.endpoint.hostname),c=this.signature.sign({method:o,endpoint:i,path:"/".concat(r),headers:{},query:{uploadId:"".concat(n)}},{}),t.next=6,a().asyncRequest(o,c.url,c.body||null,{headers:c.headers});case 6:u=t.sent,this._handle_error("AbortMultipartUpload",u);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.status,o=r.error_code,i=r.error;if(!(n>=200&&n<300&&""==i&&0===o)){if(301==n||i&&i.startsWith("301"))throw new Z("Resource not found","ResourceNotFound",e);var a=u.t.parseXML(r.body);if("AuthorizationHeaderMalformed"===a.code)throw new t.w(a.message,a.code);throw new Z(a.message,a.code||"unknown",e)}}}]),d}(c.k),Q=q((function t(e,r){M(this,t),U(this,"name",void 0),U(this,"creationDate",void 0),this.name=e,this.creationDate=r})),X=q((function t(e,r,n,o,i,a){M(this,t),U(this,"key",void 0),U(this,"lastModified",void 0),U(this,"etag",void 0),U(this,"size",void 0),U(this,"storageClass",void 0),U(this,"data",void 0),this.key=e,this.lastModified=r,this.etag=n,this.size=o,this.storageClass=i,this.data=a})),Y=q((function t(e,r){M(this,t),U(this,"key",void 0),U(this,"uploadId",void 0),this.key=e,this.uploadId=r})),$=q((function t(e,r){M(this,t),U(this,"partNumber",void 0),U(this,"eTag",void 0),this.partNumber=e,this.eTag=r})),Z=function(t){H(r,t);var e=z(r);function r(t,n,o){var i;return M(this,r),U(B(i=e.call(this,t,n)),"operation",void 0),i.name="S3ServiceError",i.operation=o,i}return q(r)}(u.t),tt=r(877);function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function rt(){rt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==et(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ot(t){for(var e=1;e=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new gt(i,o.__type,e)}if(1500===n)throw new gt("An error occured on the server side","InternalServiceError",e)}}}]),f}(c.k),bt=function(){function t(e,r,n,o,i,a){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[];ct(this,t),dt(this,"name",void 0),dt(this,"arn",void 0),dt(this,"secret",void 0),dt(this,"createdDate",void 0),dt(this,"lastAccessedDate",void 0),dt(this,"lastChangedDate",void 0),dt(this,"tags",void 0),this.name=e,this.arn=r,this.secret=n,this.createdDate=o,this.lastAccessedDate=i,this.lastChangedDate=a,this.tags=c}return st(t,null,[{key:"fromJSON",value:function(e){return new t(e.Name,e.ARN,e.SecretString,e.CreatedDate,e.LastAccessedDate,e.LastChangedDate,e.Tags)}}]),t}(),gt=function(t){ft(r,t);var e=ht(r);function r(t,n,o){var i;return ct(this,r),dt(pt(i=e.call(this,t,n)),"operation",void 0),i.name="SecretsManagerServiceError",i.operation=o,i}return st(r)}(u.t),wt=function(t){return t.ListSecrets="ListSecrets",t.GetSecretValue="GetSecretValue",t.CreateSecret="CreateSecret",t.PutSecretValue="PutSecretValue",t.DeleteSecret="DeleteSecret",t}(wt||{});function Ot(t){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(t)}function St(){St=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ot(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _t(t){for(var e=1;e1&&void 0!==c[1]&&c[1],n=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/",headers:_t(_t({},this.commonHeaders),{},At({},o.mc,"AmazonSSM.GetParameter")),body:JSON.stringify({Name:e,WithDecryption:r})},{}),t.next=4,a().asyncRequest(this.method,n.url,n.body,{headers:n.headers});case 4:return i=t.sent,this._handle_error(Kt.GetParameter,i),t.abrupt("return",Gt.fromJSON(i.json()));case 7:case"end":return t.stop()}}),t,this)})),n=function(){var t=this,e=arguments;return new Promise((function(n,o){var i=r.apply(t,e);function a(t){xt(i,n,o,a,c,"next",t)}function c(t){xt(i,n,o,a,c,"throw",t)}a(void 0)}))},function(t){return n.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new Mt(i,o.__type,e)}if(1500===n)throw new Mt("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),Gt=function(){function t(e,r,n,o,i,a,c,u,s){Et(this,t),At(this,"arn",void 0),At(this,"dataType",void 0),At(this,"lastModifiedDate",void 0),At(this,"name",void 0),At(this,"selector",void 0),At(this,"sourceResult",void 0),At(this,"type",void 0),At(this,"value",void 0),At(this,"version",void 0),this.arn=e,this.dataType=r,this.lastModifiedDate=n,this.name=o,this.selector=i,this.sourceResult=a,this.type=c,this.value=u,this.version=s}return Lt(t,null,[{key:"fromJSON",value:function(e){var r=e.Parameter;return new t(r.ARN,r.DataType,r.LastModifiedDate,r.Name,r.Selector,r.SourceResult,r.Type,r.Value,r.Version)}}]),t}(),Mt=function(t){kt(r,t);var e=Nt(r);function r(t,n,o){var i;return Et(this,r),At(Ct(i=e.call(this,t,n)),"operation",void 0),i.name="SystemsManagerServiceError",i.operation=o,i}return Lt(r)}(u.t),Kt=function(t){return t.GetParameter="GetParameter",t}(Kt||{}),qt=r(41);function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Ft(){Ft=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ht(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bt(t){for(var e=1;e1&&void 0!==o[1]?o[1]:{}).shardCount&&{ShardCount:r.shardCount}),r.streamModeDetails&&{StreamMode:r.streamModeDetails.streamMode}),t.next=4,this._send_request("CreateStream",n);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"deleteStream",value:(f=Ut(Ft().mark((function t(e){var r,n,o=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({StreamName:e},(r=o.length>1&&void 0!==o[1]?o[1]:{}).streamARN&&{StreamARN:r.streamARN}),r.enforceConsumerDeletion&&{EnforceConsumerDeletion:r.enforceConsumerDeletion}),t.next=4,this._send_request("DeleteStream",n);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"listStreams",value:(s=Ut(Ft().mark((function t(){var e,r,n,o=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Bt(Bt(Bt({},(e=o.length>0&&void 0!==o[0]?o[0]:{}).exclusiveStartStreamName&&{ExclusiveStartStreamName:e.exclusiveStartStreamName}),e.limit&&{Limit:e.limit}),e.nextToken&&{NextToken:e.nextToken}),t.next=4,this._send_request("ListStreams",r);case 4:return n=t.sent,t.abrupt("return",ie.fromJson(null==n?void 0:n.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"putRecords",value:(u=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=i.length>1&&void 0!==i[1]?i[1]:{}).streamName||r.streamARN){t.next=3;break}throw new Error("Either streamName or streamARN must be provided");case 3:return n=Bt(Bt({Records:e},r.streamName&&{StreamName:r.streamName}),r.streamARN&&{StreamARN:r.streamARN}),t.next=6,this._send_request("PutRecords",n);case 6:return o=t.sent,t.abrupt("return",ce.fromJson(null==o?void 0:o.json()));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"getRecords",value:(c=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({ShardIterator:e},(r=i.length>1&&void 0!==i[1]?i[1]:{}).limit&&{Limit:r.limit}),r.streamARN&&{StreamARN:r.streamARN}),t.next=4,this._send_request("GetRecords",n);case 4:return o=t.sent,t.abrupt("return",se.fromJson(null==o?void 0:o.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"listShards",value:(i=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({StreamName:e},(r=i.length>1&&void 0!==i[1]?i[1]:{}).nextToken&&{NextToken:r.nextToken}),r.maxResults&&{MaxResults:r.maxResults}),t.next=4,this._send_request("ListShards",n);case 4:return o=t.sent,t.abrupt("return",le.fromJson(null==o?void 0:o.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"getShardIterator",value:(n=Ut(Ft().mark((function t(e,r,n){var o,i,a,c=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Bt(Bt({StreamName:e,ShardId:r,ShardIteratorType:n},(o=c.length>3&&void 0!==c[3]?c[3]:{}).startingSequenceNumber&&{StartingSequenceNumber:o.startingSequenceNumber}),o.timestamp&&{Timestamp:o.timestamp}),t.next=4,this._send_request("GetShardIterator",i);case 4:return a=t.sent,t.abrupt("return",pe.fromJson(null==a?void 0:a.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:"_send_request",value:(r=Ut(Ft().mark((function t(e,r){var n,i;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:Bt(Bt({},this.commonHeaders),{},ee({},o.mc,"".concat(this.serviceVersion,".").concat(e))),body:JSON.stringify(r)},{}),t.next=3,a().asyncRequest("POST",n.url,n.body,{headers:n.headers});case 3:return i=t.sent,this._handle_error(e,i),t.abrupt("return",i);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new oe(i,o.__type,e)}if(1500===n)throw new oe("An error occured on the server side","InternalServiceError",e)}}}]),p}(c.k),oe=function(t){Xt(r,t);var e=$t(r);function r(t,n,o){var i;return Vt(this,r),ee(Zt(i=e.call(this,t,n)),"operation",void 0),i.name="KinesisServiceError",i.operation=o,i}return Qt(r)}(u.t),ie=function(){function t(e,r,n,o){Vt(this,t),ee(this,"hasMoreStreams",void 0),ee(this,"nextToken",void 0),ee(this,"streamNames",void 0),ee(this,"streamSummaries",void 0),this.hasMoreStreams=e,this.nextToken=r,this.streamNames=n,this.streamSummaries=o}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.HasMoreStreams,n=void 0!==r&&r,o=e.NextToken,i=void 0===o?"":o,a=e.StreamNames,c=void 0===a?[]:a,u=e.StreamSummaries,s=void 0===u?[]:u;return new t(n,i,c,null==s?void 0:s.map(ae.fromJson))}}]),t}(),ae=function(){function t(e,r,n,o,i){Vt(this,t),ee(this,"streamARN",void 0),ee(this,"streamCreationTimestamp",void 0),ee(this,"streamModeDetails",void 0),ee(this,"streamName",void 0),ee(this,"streamStatus",void 0),this.streamARN=e,this.streamCreationTimestamp=r,this.streamModeDetails=n,this.streamName=o,this.streamStatus=i}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.StreamARN,n=void 0===r?"":r,o=e.StreamCreationTimestamp,i=void 0===o?0:o,a=e.StreamModeDetails,c=void 0===a?{}:a,u=e.StreamName,s=void 0===u?"":u,f=e.StreamStatus;return new t(n,i,c,s,void 0===f?"":f)}}]),t}(),ce=function(){function t(e,r,n){Vt(this,t),ee(this,"encryptionType",void 0),ee(this,"failedRecordCount",void 0),ee(this,"records",void 0),this.encryptionType=e,this.failedRecordCount=r,this.records=n}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.EncryptionType,n=void 0===r?"NONE":r,o=e.FailedRecordCount,i=void 0===o?0:o,a=e.Records;return new t(n,i,(void 0===a?[]:a).map(ue.fromJson))}}]),t}(),ue=function(){function t(e,r){Vt(this,t),ee(this,"sequenceNumber",void 0),ee(this,"shardId",void 0),this.sequenceNumber=e,this.shardId=r}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.SequenceNumber,e.ShardId)}}]),t}(),se=function(){function t(e,r,n){Vt(this,t),ee(this,"nextShardIterator",void 0),ee(this,"records",void 0),ee(this,"millisBehindLatest",void 0),this.nextShardIterator=e,this.records=r,this.millisBehindLatest=n}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.NextShardIterator,n=void 0===r?"":r,o=e.Records,i=void 0===o?[]:o,a=e.MillisBehindLatest,c=void 0===a?0:a;return new t(n,i.map(fe.fromJson),c)}}]),t}(),fe=function(){function t(e,r,n){Vt(this,t),ee(this,"data",void 0),ee(this,"partitionKey",void 0),ee(this,"sequenceNumber",void 0),this.data=e,this.partitionKey=r,this.sequenceNumber=n}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.Data,e.PartitionKey,e.SequenceNumber)}}]),t}(),le=function(){function t(e,r){Vt(this,t),ee(this,"shards",void 0),ee(this,"nextToken",void 0),this.shards=e,this.nextToken=r}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.Shards,n=void 0===r?[]:r,o=e.NextToken;return new t(n.map(he.fromJson),o)}}]),t}(),he=function(){function t(e,r,n,o,i){Vt(this,t),ee(this,"id",void 0),ee(this,"parentShardId",void 0),ee(this,"adjacentParentShardId",void 0),ee(this,"hashKeyRange",void 0),ee(this,"sequenceNumberRange",void 0),this.id=e,this.parentShardId=o,this.adjacentParentShardId=i,this.hashKeyRange=r,this.sequenceNumberRange=n}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.ShardId,e.HashKeyRange,e.SequenceNumberRange,e.ParentShardId,e.AdjacentParentShardId)}}]),t}(),pe=function(){function t(e){Vt(this,t),ee(this,"shardIterator",void 0),this.shardIterator=e}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.ShardIterator)}}]),t}();function ye(t){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ye(t)}function de(){de=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==ye(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function ve(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function me(t){for(var e=1;e=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new Ne(i,o.__type,e)}if(1500===n)throw new Ne("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),Te=function(t){return t.PutEvents="PutEvents",t}(Te||{}),Ne=function(t){Se(r,t);var e=_e(r);function r(t,n,o){var i;return ge(this,r),Pe(xe(i=e.call(this,t,n)),"operation",void 0),i.name="EventBridgeServiceError",i.operation=o,i}return Oe(r)}(u.t),Ce=r(890)})();var o=exports;for(var i in n)o[i]=n[i];n.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})(); +(()=>{var t={393:(t,e,r)=>{"use strict";r.d(e,{k:()=>u});var n=r(89);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r{"use strict";r.d(e,{l:()=>m,o:()=>v});var n=r(89);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=u();return function(){var r,n=f(t);if(e){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},a(t)}function c(t,e,r){return c=u()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&s(o,r.prototype),o},c.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var r=0;r128)throw new m("invalid AWS access key ID; reason: size should be between 16 and 128 characters, got ".concat(e.accessKeyId.length));if(!e.secretAccessKey||""===e.secretAccessKey)throw new m("invalid AWS secret access key; reason: expected a non empty string, got `".concat(e.secretAccessKey,"`"));if(e.secretAccessKey.length<16||e.secretAccessKey.length>128)throw new m("invalid AWS secret access key; reason: size should be between 16 and 128 characters, got ".concat(e.secretAccessKey.length));this.region=e.region,this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,void 0!==e.sessionToken&&(this.sessionToken=e.sessionToken),void 0!==e.endpoint&&("string"==typeof e.endpoint?this.endpoint=new n.F(e.endpoint):this.endpoint=e.endpoint)}return p(t,null,[{key:"fromEnvironment",value:function(e){return new t({region:__ENV.AWS_REGION,accessKeyId:__ENV.AWS_ACCESS_KEY_ID,secretAccessKey:__ENV.AWS_SECRET_ACCESS_KEY,sessionToken:__ENV.AWS_SESSION_TOKEN,endpoint:null==e?void 0:e.endpoint})}}]),t}(),m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(r,t);var e=i(r);function r(t){return l(this,r),e.call(this,t)}return p(r)}(a(Error))},592:(t,e,r)=>{"use strict";r.d(e,{$l:()=>o,Aq:()=>b,B3:()=>v,Dz:()=>d,K0:()=>n,NL:()=>s,Qk:()=>i,R$:()=>f,SG:()=>w,U4:()=>h,VR:()=>u,a_:()=>l,al:()=>g,cG:()=>c,mc:()=>p,md:()=>m,n8:()=>j,sH:()=>S,th:()=>O,w1:()=>y,zC:()=>a});var n="X-Amz-Algorithm",o="X-Amz-Credential",i="X-Amz-Date",a="X-Amz-Expires",c="X-Amz-Signature",u="X-Amz-SignedHeaders",s="X-Amz-Security-Token",f="x-amz-content-sha256",l=i.toLowerCase(),h=c.toLowerCase(),p="X-Amz-Target".toLowerCase(),y=s.toLowerCase(),d="authorization",v=[d,l,"date"],m="host",b={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},g="aws4_request",w="AWS4-HMAC-SHA256",O=604800,S="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",j="UNSIGNED-PAYLOAD"},89:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rs});var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,"_protocol",void 0),c(this,"_hostname",void 0),c(this,"_port",void 0);var r=!e.startsWith("http://")&&!e.startsWith("https://")?"".concat(t.DEFAULT_PROTOCOL,"://").concat(e):e,n=r.match(/^https?:/),i=o(r.replace(/^https?:\/\//,"").split("/"),1)[0];this._protocol=n?n[0].slice(0,-1):t.DEFAULT_PROTOCOL,this._hostname=i.split(":")[0],this._port=i.split(":")[1]?parseInt(i.split(":")[1]):void 0}var e,r,n;return e=t,(r=[{key:"copy",value:function(){return new t(this.href)}},{key:"host",get:function(){return this._port?"".concat(this._hostname,":").concat(this._port):this._hostname},set:function(t){var e=o(t.split(":"),2),r=e[0],n=e[1];this._hostname=r,this._port=n?parseInt(n):void 0}},{key:"hostname",get:function(){return this._hostname},set:function(t){this._hostname=t}},{key:"href",get:function(){return"".concat(this.protocol,"://").concat(this.host)},set:function(e){var r=e.match(/^https?:/),n=o(e.replace(/^https?:\/\//,"").split("/"),1)[0];this._protocol=r?r[0].slice(0,-1):t.DEFAULT_PROTOCOL,this._hostname=n.split(":")[0],this._port=n.split(":")[1]?parseInt(n.split(":")[1]):void 0}},{key:"port",get:function(){return this._port},set:function(t){this._port=t}},{key:"protocol",get:function(){return this._protocol},set:function(t){this._protocol=t}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();c(s,"DEFAULT_PROTOCOL","https")},380:(t,e,r)=>{"use strict";r.d(e,{t:()=>y});var n=r(255);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r{"use strict";function n(t,e){t=t.toLowerCase();for(var r=0,n=Object.keys(e);rn})},137:(t,e,r)=>{"use strict";r.d(e,{L:()=>S,w:()=>j});var n=r(400),o=r.n(n),i=r(592),a=r(380),c=r(491),u=r(23);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=h(t);if(e){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:{},r=v(v({},{signingDate:new Date,unsignableHeaders:new Set,signableHeaders:new Set}),e),n=x(r.signingDate),o=n.longDate,a=n.shortDate,u=r.signingService||this.service,s=r.signingRegion||this.region,f="".concat(a,"/").concat(s,"/").concat(u,"/").concat(i.al);t.headers[i.md]=t.endpoint.hostname;for(var l=0,h=Object.keys(t.headers);l-1&&delete t.headers[p]}t.headers[i.a_]=o,this.credentials.sessionToken&&(t.headers[i.w1]=this.credentials.sessionToken),ArrayBuffer.isView(t.body)&&(t.body=t.body.buffer),t.body||(t.body="");var y=this.computePayloadHash(t);!(0,c.L)(i.R$,t.headers)&&this.applyChecksum&&(t.headers[i.R$]=y);var d=this.computeCanonicalHeaders(t,r.unsignableHeaders,r.signableHeaders),m=this.calculateSignature(o,f,this.deriveSigningKey(this.credentials,u,s,a),this.createCanonicalRequest(t,d,y));t.headers[i.Dz]="".concat(i.SG," ")+"Credential=".concat(this.credentials.accessKeyId,"/").concat(f,", ")+"SignedHeaders=".concat(Object.keys(d).sort().join(";"),", ")+"Signature=".concat(m);var b=t.endpoint.href;return t.path&&(b+=t.path),t.query&&(b+="?".concat(this.serializeQueryParameters(t.query))),v({url:b},t)}},{key:"presign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.signingDate,n=void 0===r?new Date:r,o=e.expiresIn,a=void 0===o?3600:o,c=e.unsignableHeaders,u=e.unhoistableHeaders,s=e.signableHeaders,f=e.signingRegion,l=e.signingService,h=x(n),p=h.longDate,y=h.shortDate,d=f||this.region,m=l||this.service;if(a>i.th)throw new j("Signature version 4 presigned URLs can't be valid for more than 7 days");var b="".concat(y,"/").concat(d,"/").concat(m,"/").concat(i.al),g=this.moveHeadersToQuery(t,{unhoistableHeaders:u});g.headers[i.md]=t.endpoint.hostname,this.credentials.sessionToken&&(g.query[i.NL]=this.credentials.sessionToken),g.query[i.K0]=i.SG,g.query[i.$l]="".concat(this.credentials.accessKeyId,"/").concat(b),g.query[i.Qk]=p,g.query[i.zC]=a.toString(10);var w=this.computeCanonicalHeaders(g,c,s);g.query[i.VR]=Object.keys(w).sort().join(";");var O=this.deriveSigningKey(this.credentials,m,d,y),S=this.computePayloadHash(t),_=this.createCanonicalRequest(g,w,S);g.query[i.cG]=this.calculateSignature(p,b,O,_);var E=g.endpoint.href;return g.path&&(E+=g.path),g.query&&(E+="?".concat(this.serializeQueryParameters(g.query))),v({url:E},g)}},{key:"createCanonicalRequest",value:function(t,e,r){var n=Object.keys(e).sort(),o=n.map((function(t){return"".concat(t,":").concat(e[t])})).join("\n"),i=n.join(";");return"".concat(t.method,"\n")+"".concat(this.computeCanonicalURI(t),"\n")+"".concat(this.computeCanonicalQuerystring(t),"\n")+"".concat(o,"\n\n")+"".concat(i,"\n")+"".concat(r)}},{key:"createStringToSign",value:function(t,e,r){var n=o().sha256(r,"hex");return"".concat(i.SG,"\n")+"".concat(t,"\n")+"".concat(e,"\n")+"".concat(n)}},{key:"calculateSignature",value:function(t,e,r,n){var i=this.createStringToSign(t,e,n);return o().hmac("sha256",r,i,"hex")}},{key:"deriveSigningKey",value:function(t,e,r,n){var i=t.secretAccessKey,a=o().hmac("sha256","AWS4"+i,n,"binary"),c=o().hmac("sha256",a,r,"binary"),u=o().hmac("sha256",c,e,"binary");return o().hmac("sha256",u,"aws4_request","binary")}},{key:"computeCanonicalURI",value:function(t){var e=t.path;if(this.uriEscapePath){var r,n=[],o=p(e.split("/"));try{for(o.s();!(r=o.n()).done;){var i=r.value;0!==(null==i?void 0:i.length)&&("."!==i&&(".."===i?n.pop():n.push(i)))}}catch(t){o.e(t)}finally{o.f()}var a=null!=e&&e.startsWith("/")?"/":"",c=n.join("/"),u=n.length>0&&null!=e&&e.endsWith("/")?"/":"",s="".concat(a).concat(c).concat(u);return encodeURIComponent(s).replace(/%2F/g,"/")}return e}},{key:"computeCanonicalQuerystring",value:function(t){var e,r=t.query,n=void 0===r?{}:r,o=[],a={},c=function(t){if(t.toLowerCase()===i.U4)return 1;o.push(t);var e=n[t];"string"==typeof e?a[t]="".concat(_(t),"=").concat(_(e)):Array.isArray(e)&&(a[t]=e.slice(0).sort().reduce((function(e,r){return e.concat(["".concat(_(t),"=").concat(_(r))])}),[]).join("&"))},u=p(Object.keys(n).sort());try{for(u.s();!(e=u.n()).done;){c(e.value)}}catch(t){u.e(t)}finally{u.f()}return o.map((function(t){return a[t]})).filter((function(t){return t})).join("&")}},{key:"computeCanonicalHeaders",value:function(t,e,r){var n,o=t.headers,a={},c=p(Object.keys(o).sort());try{for(c.s();!(n=c.n()).done;){var u=n.value;if(null!=o[u]){var s=u.toLowerCase();(s in i.Aq||null!=e&&e.has(s))&&(!r||r&&!r.has(s))||"string"==typeof o[u]&&(a[s]=o[u]=o[u].trim().replace(/\s+/g," "))}}}catch(t){c.e(t)}finally{c.f()}return a}},{key:"computePayloadHash",value:function(t){var e=t.headers,r=t.body;return e[i.R$]?e[i.R$]:null==r?i.sH:"string"==typeof r||(0,u.e)(r)?o().sha256(r,"hex").toLowerCase():ArrayBuffer.isView(r)?o().sha256(r.buffer,"hex").toLowerCase():i.n8}},{key:"moveHeadersToQuery",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=JSON.parse(JSON.stringify(t)),n=r.headers,o=r.query,i=void 0===o?{}:o,a=0,c=Object.keys(n);a{"use strict";function n(t){return"function"==typeof ArrayBuffer&&(t instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(t))}function o(t){return Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&e.push("".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))),e}),[]).join("&")}r.d(e,{C:()=>o,e:()=>n})},890:(t,e,r)=>{"use strict";r.d(e,{LambdaClient:()=>k,LambdaInvocationError:()=>T});r(223);var n=r(137),o=r(409),i=r.n(o);const a=require("k6/encoding");var c=r.n(a),u=r(393),s=r(380),f=r(592);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return p(t,arguments,E(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,t)},h(t)}function p(t,e,r){return p=x()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&S(o,r.prototype),o},p.apply(null,arguments)}function y(){y=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};s(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=h(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e2&&void 0!==m[2]?m[2]:{}).invocationType||"RequestResponse",u=v(v({},this.commonHeaders),{},P(P(P({},f.mc,"AWSLambda.".concat(a)),"X-Amz-Invocation-Type",a),"X-Amz-Log-Type",n.logType||"None")),n.clientContext&&(u["X-Amz-Client-Context"]=n.clientContext),n.qualifier&&(o.Qualifier=n.qualifier),s=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/2015-03-31/functions/".concat(e,"/invocations"),query:o,headers:u,body:r||""},{}),t.next=9,i().asyncRequest(this.method,s.url,s.body,{headers:s.headers});case 9:if(l=t.sent,this._handle_error(l),h=l.headers["X-Amz-Log-Result"],p={executedVersion:l.headers["X-Amz-Executed-Version"],logResult:h?c().b64decode(h,"std","s"):void 0,statusCode:l.status,payload:l.body},!(d=l.headers["X-Amz-Function-Error"])){t.next=18;break}throw new T(d,p);case 18:return t.abrupt("return",p);case 19:case"end":return t.stop()}}),t,this)})),r=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){m(i,n,o,a,c,"next",t)}function c(t){m(i,n,o,a,c,"throw",t)}a(void 0)}))},function(t,e){return r.apply(this,arguments)})},{key:"_handle_error",value:function(t){var e=t.error_code;if(""!=t.error||0!==e){var r=s.t.parse(t);switch(r.code){case"AuthorizationHeaderMalformed":case"InvalidSignatureException":throw new n.w(r.message,r.code);default:throw r}}}}]),a}(u.k),T=function(t){O(r,t);var e=j(r);function r(t,n){var o;return b(this,r),P(_(o=e.call(this,"".concat(t,": ").concat(n.payload))),"response",void 0),o.response=n,o}return w(r)}(h(Error))},41:(t,e,r)=>{"use strict";r.d(e,{SQSClient:()=>L});r(223);var n=r(137),o=r(393),i=r(409),a=r.n(i),c=r(23),u=r(380);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};l(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==s(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=y;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==p[2]?p[2]:{}).messageDeduplicationId&&(o=y(y({},o),{},{MessageDeduplicationId:n.messageDeduplicationId})),void 0!==n.messageGroupId&&(o=y(y({},o),{},{MessageGroupId:n.messageGroupId})),void 0!==n.messageAttributes&&(i=Object.entries(n.messageAttributes).reduce((function(t,e,r){var n=l(e,2),o=n[0],i=n[1],a="Binary"===i.type?"BinaryValue":"StringValue";return Object.assign(t,x(x(x({},"MessageAttribute.".concat(r+1,".Name"),o),"MessageAttribute.".concat(r+1,".Value.").concat(a),i.value),"MessageAttribute.".concat(r+1,".Value.DataType"),i.type))}),{}),o=y(y({},o),i)),void 0!==n.delaySeconds&&(o=y(y({},o),{},{DelaySeconds:n.delaySeconds})),u=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:y({},this.commonHeaders),body:(0,c.C)(o)},{}),t.next=10,a().asyncRequest("POST",u.url,u.body||"",{headers:u.headers});case 10:return s=t.sent,this._handleError("SendMessage",s),h=s.html("SendMessageResponse > SendMessageResult"),t.abrupt("return",new k(h.find("MessageId").text(),h.find("MD5OfMessageBody").text()));case 14:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"listQueues",value:(e=v(f().mark((function t(){var e,r,n,o,i,u=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={Action:"ListQueues",Version:P},void 0!==(null==(e=u.length>0&&void 0!==u[0]?u[0]:{})?void 0:e.maxResults)&&(r=y(y({},r),{},{MaxResults:e.maxResults})),void 0!==(null==e?void 0:e.nextToken)&&(r=y(y({},r),{},{NextToken:e.nextToken})),void 0!==(null==e?void 0:e.queueNamePrefix)&&(r=y(y({},r),{},{QueueNamePrefix:e.queueNamePrefix})),n=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:y(y({},this.commonHeaders),{},{Host:this.endpoint.host}),body:(0,c.C)(r)},{}),t.next=9,a().asyncRequest("POST",n.url,n.body||"",{headers:n.headers});case 9:return o=t.sent,this._handleError("ListQueues",o),i=o.html(),t.abrupt("return",{urls:i.find("QueueUrl").toArray().map((function(t){return t.text()})),nextToken:i.find("NextToken").text()||void 0});case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"_handleError",value:function(t,e){var r=e.error_code;if(""!=e.error||0!==r){var o=u.t.parseXML(e.body);if("AuthorizationHeaderMalformed"===o.code)throw new n.w(o.message,o.code);throw new T(o.message,o.code||"unknown",t)}}}]),i}(o.k),k=g((function t(e,r){m(this,t),x(this,"id",void 0),x(this,"bodyMD5",void 0),this.id=e,this.bodyMD5=r})),T=function(t){w(r,t);var e=S(r);function r(t,n,o){var i;return m(this,r),x(j(i=e.call(this,t,n)),"operation",void 0),i.name="SQSServiceError",i.operation=o,i}return g(r)}(u.t)},877:(t,e,r)=>{var n=r(570),o=r(171),i=o;i.v1=n,i.v4=o,t.exports=i},327:t=>{for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);t.exports=function(t,r){var n=r||0,o=e;return[o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],"-",o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]],o[t[n++]]].join("")}},217:t=>{var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var r=new Uint8Array(16);t.exports=function(){return e(r),r}}else{var n=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}},570:(t,e,r)=>{var n,o,i=r(217),a=r(327),c=0,u=0;t.exports=function(t,e,r){var s=e&&r||0,f=e||[],l=(t=t||{}).node||n,h=void 0!==t.clockseq?t.clockseq:o;if(null==l||null==h){var p=i();null==l&&(l=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=o=16383&(p[6]<<8|p[7]))}var y=void 0!==t.msecs?t.msecs:(new Date).getTime(),d=void 0!==t.nsecs?t.nsecs:u+1,v=y-c+(d-u)/1e4;if(v<0&&void 0===t.clockseq&&(h=h+1&16383),(v<0||y>c)&&void 0===t.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=y,u=d,o=h;var m=(1e4*(268435455&(y+=122192928e5))+d)%4294967296;f[s++]=m>>>24&255,f[s++]=m>>>16&255,f[s++]=m>>>8&255,f[s++]=255&m;var b=y/4294967296*1e4&268435455;f[s++]=b>>>8&255,f[s++]=255&b,f[s++]=b>>>24&15|16,f[s++]=b>>>16&255,f[s++]=h>>>8|128,f[s++]=255&h;for(var g=0;g<6;++g)f[s+g]=l[g];return e||a(f)}},171:(t,e,r)=>{var n=r(217),o=r(327);t.exports=function(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var c=0;c<16;++c)e[i+c]=a[c];return e||o(a)}},400:t=>{"use strict";t.exports=require("k6/crypto")},255:t=>{"use strict";t.exports=require("k6/html")},409:t=>{"use strict";t.exports=require("k6/http")}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{AMZ_CONTENT_SHA256_HEADER:()=>o.R$,AWSConfig:()=>e.o,EventBridgeClient:()=>ke,InvalidAWSConfigError:()=>e.l,InvalidSignatureError:()=>t.w,KMSClient:()=>x,KMSDataKey:()=>P,KMSServiceError:()=>L,KinesisClient:()=>ne,LambdaClient:()=>Ce.LambdaClient,LambdaInvocationError:()=>Ce.LambdaInvocationError,S3Bucket:()=>Q,S3Client:()=>W,S3Object:()=>X,S3ServiceError:()=>Z,SQSClient:()=>qt.SQSClient,Secret:()=>bt,SecretsManagerClient:()=>mt,SecretsManagerServiceError:()=>gt,SignatureV4:()=>t.L,SystemsManagerClient:()=>Dt,SystemsManagerParameter:()=>Gt,SystemsManagerServiceError:()=>Mt,UNSIGNED_PAYLOAD:()=>o.n8});var t=r(137),e=r(223),o=r(592),i=r(409),a=r.n(i),c=r(393),u=r(380);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function O(){}var S={};l(S,a,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(R([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=O.prototype=g.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==s(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=y;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e1&&void 0!==c[1]?c[1]:T.Size256,n=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/",headers:h(h({},this.commonHeaders),{},j({},o.mc,"TrentService.GenerateDataKey")),body:JSON.stringify({KeyId:e,NumberOfBytes:r})},{}),t.next=4,a().asyncRequest(this.method,n.url,n.body,{headers:n.headers});case 4:return i=t.sent,this._handle_error(k.GenerateDataKey,i),t.abrupt("return",P.fromJSON(i.json()));case 7:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new L(i,o.__type,e)}if(1500===n)throw new L("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),E=function(){function t(e,r){d(this,t),j(this,"keyArn",void 0),j(this,"keyId",void 0),this.keyArn=e,this.keyId=r}return m(t,null,[{key:"fromJSON",value:function(e){return new t(e.KeyArn,e.KeyId)}}]),t}(),P=function(){function t(e,r,n){d(this,t),j(this,"id",void 0),j(this,"ciphertextBlob",void 0),j(this,"plaintext",void 0),this.ciphertextBlob=e,this.id=r,this.plaintext=n}return m(t,null,[{key:"fromJSON",value:function(e){return new t(e.CiphertextBlob,e.KeyId,e.Plaintext)}}]),t}(),L=function(t){b(r,t);var e=w(r);function r(t,n,o){var i;return d(this,r),j(O(i=e.call(this,t,n)),"operation",void 0),i.name="KMSServiceError",i.operation=o,i}return m(r)}(u.t),k=function(t){return t.GenerateDataKey="GenerateDataKey",t.ListKeys="ListKeys",t}(k||{}),T=function(t){return t[t.Size256=32]="Size256",t[t.Size512=64]="Size512",t}(T||{}),N=r(255);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function D(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function G(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){D(i,n,o,a,c,"next",t)}function c(t){D(i,n,o,a,c,"throw",t)}a(void 0)}))}}function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){for(var r=0;r".concat(t.partNumber,"").concat(t.eTag,"")})).join(""),""),(u=this.endpoint.copy()).hostname="".concat(e,".").concat(this.endpoint.hostname),s=this.signature.sign({method:i,endpoint:u,path:"/".concat(r),headers:{},body:c,query:{uploadId:"".concat(n)}},{}),t.next=7,a().asyncRequest(i,s.url,s.body||null,{headers:s.headers});case 7:f=t.sent,this._handle_error("CompleteMultipartUpload",f);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,r,o){return n.apply(this,arguments)})},{key:"abortMultipartUpload",value:(r=G(I().mark((function t(e,r,n){var o,i,c,u;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="DELETE",(i=this.endpoint.copy()).hostname="".concat(e,".").concat(this.endpoint.hostname),c=this.signature.sign({method:o,endpoint:i,path:"/".concat(r),headers:{},query:{uploadId:"".concat(n)}},{}),t.next=6,a().asyncRequest(o,c.url,c.body||null,{headers:c.headers});case 6:u=t.sent,this._handle_error("AbortMultipartUpload",u);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.status,o=r.error_code,i=r.error;if(!(n>=200&&n<300&&""==i&&0===o)){if(301==n||i&&i.startsWith("301"))throw new Z("Resource not found","ResourceNotFound",e);var a=u.t.parseXML(r.body);if("AuthorizationHeaderMalformed"===a.code)throw new t.w(a.message,a.code);throw new Z(a.message,a.code||"unknown",e)}}}]),d}(c.k),Q=q((function t(e,r){M(this,t),U(this,"name",void 0),U(this,"creationDate",void 0),this.name=e,this.creationDate=r})),X=q((function t(e,r,n,o,i,a){M(this,t),U(this,"key",void 0),U(this,"lastModified",void 0),U(this,"etag",void 0),U(this,"size",void 0),U(this,"storageClass",void 0),U(this,"data",void 0),this.key=e,this.lastModified=r,this.etag=n,this.size=o,this.storageClass=i,this.data=a})),Y=q((function t(e,r){M(this,t),U(this,"key",void 0),U(this,"uploadId",void 0),this.key=e,this.uploadId=r})),$=q((function t(e,r){M(this,t),U(this,"partNumber",void 0),U(this,"eTag",void 0),this.partNumber=e,this.eTag=r})),Z=function(t){H(r,t);var e=z(r);function r(t,n,o){var i;return M(this,r),U(B(i=e.call(this,t,n)),"operation",void 0),i.name="S3ServiceError",i.operation=o,i}return q(r)}(u.t),tt=r(877);function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function rt(){rt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==et(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ot(t){for(var e=1;e=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new gt(i,o.__type,e)}if(1500===n)throw new gt("An error occured on the server side","InternalServiceError",e)}}}]),f}(c.k),bt=function(){function t(e,r,n,o,i,a){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[];ct(this,t),dt(this,"name",void 0),dt(this,"arn",void 0),dt(this,"secret",void 0),dt(this,"createdDate",void 0),dt(this,"lastAccessedDate",void 0),dt(this,"lastChangedDate",void 0),dt(this,"tags",void 0),this.name=e,this.arn=r,this.secret=n,this.createdDate=o,this.lastAccessedDate=i,this.lastChangedDate=a,this.tags=c}return st(t,null,[{key:"fromJSON",value:function(e){return new t(e.Name,e.ARN,e.SecretString,e.CreatedDate,e.LastAccessedDate,e.LastChangedDate,e.Tags)}}]),t}(),gt=function(t){ft(r,t);var e=ht(r);function r(t,n,o){var i;return ct(this,r),dt(pt(i=e.call(this,t,n)),"operation",void 0),i.name="SecretsManagerServiceError",i.operation=o,i}return st(r)}(u.t),wt=function(t){return t.ListSecrets="ListSecrets",t.GetSecretValue="GetSecretValue",t.CreateSecret="CreateSecret",t.PutSecretValue="PutSecretValue",t.DeleteSecret="DeleteSecret",t}(wt||{});function Ot(t){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(t)}function St(){St=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ot(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _t(t){for(var e=1;e1&&void 0!==c[1]&&c[1],n=this.signature.sign({method:this.method,endpoint:this.endpoint,path:"/",headers:_t(_t({},this.commonHeaders),{},At({},o.mc,"AmazonSSM.GetParameter")),body:JSON.stringify({Name:e,WithDecryption:r})},{}),t.next=4,a().asyncRequest(this.method,n.url,n.body,{headers:n.headers});case 4:return i=t.sent,this._handle_error(Kt.GetParameter,i),t.abrupt("return",Gt.fromJSON(i.json()));case 7:case"end":return t.stop()}}),t,this)})),n=function(){var t=this,e=arguments;return new Promise((function(n,o){var i=r.apply(t,e);function a(t){xt(i,n,o,a,c,"next",t)}function c(t){xt(i,n,o,a,c,"throw",t)}a(void 0)}))},function(t){return n.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new Mt(i,o.__type,e)}if(1500===n)throw new Mt("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),Gt=function(){function t(e,r,n,o,i,a,c,u,s){Et(this,t),At(this,"arn",void 0),At(this,"dataType",void 0),At(this,"lastModifiedDate",void 0),At(this,"name",void 0),At(this,"selector",void 0),At(this,"sourceResult",void 0),At(this,"type",void 0),At(this,"value",void 0),At(this,"version",void 0),this.arn=e,this.dataType=r,this.lastModifiedDate=n,this.name=o,this.selector=i,this.sourceResult=a,this.type=c,this.value=u,this.version=s}return Lt(t,null,[{key:"fromJSON",value:function(e){var r=e.Parameter;return new t(r.ARN,r.DataType,r.LastModifiedDate,r.Name,r.Selector,r.SourceResult,r.Type,r.Value,r.Version)}}]),t}(),Mt=function(t){kt(r,t);var e=Nt(r);function r(t,n,o){var i;return Et(this,r),At(Ct(i=e.call(this,t,n)),"operation",void 0),i.name="SystemsManagerServiceError",i.operation=o,i}return Lt(r)}(u.t),Kt=function(t){return t.GetParameter="GetParameter",t}(Kt||{}),qt=r(41);function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Ft(){Ft=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ht(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bt(t){for(var e=1;e1&&void 0!==o[1]?o[1]:{}).shardCount&&{ShardCount:r.shardCount}),r.streamModeDetails&&{StreamMode:r.streamModeDetails.streamMode}),t.next=4,this._send_request("CreateStream",n);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"deleteStream",value:(f=Ut(Ft().mark((function t(e){var r,n,o=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({StreamName:e},(r=o.length>1&&void 0!==o[1]?o[1]:{}).streamARN&&{StreamARN:r.streamARN}),r.enforceConsumerDeletion&&{EnforceConsumerDeletion:r.enforceConsumerDeletion}),t.next=4,this._send_request("DeleteStream",n);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"listStreams",value:(s=Ut(Ft().mark((function t(){var e,r,n,o=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Bt(Bt(Bt({},(e=o.length>0&&void 0!==o[0]?o[0]:{}).exclusiveStartStreamName&&{ExclusiveStartStreamName:e.exclusiveStartStreamName}),e.limit&&{Limit:e.limit}),e.nextToken&&{NextToken:e.nextToken}),t.next=4,this._send_request("ListStreams",r);case 4:return n=t.sent,t.abrupt("return",ie.fromJson(null==n?void 0:n.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"putRecords",value:(u=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=i.length>1&&void 0!==i[1]?i[1]:{}).streamName||r.streamARN){t.next=3;break}throw new Error("Either streamName or streamARN must be provided");case 3:return n=Bt(Bt({Records:e},r.streamName&&{StreamName:r.streamName}),r.streamARN&&{StreamARN:r.streamARN}),t.next=6,this._send_request("PutRecords",n);case 6:return o=t.sent,t.abrupt("return",ce.fromJson(null==o?void 0:o.json()));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"getRecords",value:(c=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({ShardIterator:e},(r=i.length>1&&void 0!==i[1]?i[1]:{}).limit&&{Limit:r.limit}),r.streamARN&&{StreamARN:r.streamARN}),t.next=4,this._send_request("GetRecords",n);case 4:return o=t.sent,t.abrupt("return",se.fromJson(null==o?void 0:o.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"listShards",value:(i=Ut(Ft().mark((function t(e){var r,n,o,i=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Bt(Bt({StreamName:e},(r=i.length>1&&void 0!==i[1]?i[1]:{}).nextToken&&{NextToken:r.nextToken}),r.maxResults&&{MaxResults:r.maxResults}),t.next=4,this._send_request("ListShards",n);case 4:return o=t.sent,t.abrupt("return",le.fromJson(null==o?void 0:o.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"getShardIterator",value:(n=Ut(Ft().mark((function t(e,r,n){var o,i,a,c=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Bt(Bt({StreamName:e,ShardId:r,ShardIteratorType:n},(o=c.length>3&&void 0!==c[3]?c[3]:{}).startingSequenceNumber&&{StartingSequenceNumber:o.startingSequenceNumber}),o.timestamp&&{Timestamp:o.timestamp}),t.next=4,this._send_request("GetShardIterator",i);case 4:return a=t.sent,t.abrupt("return",pe.fromJson(null==a?void 0:a.json()));case 6:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:"_send_request",value:(r=Ut(Ft().mark((function t(e,r){var n,i;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.signature.sign({method:"POST",endpoint:this.endpoint,path:"/",headers:Bt(Bt({},this.commonHeaders),{},ee({},o.mc,"".concat(this.serviceVersion,".").concat(e))),body:JSON.stringify(r)},{}),t.next=3,a().asyncRequest("POST",n.url,n.body,{headers:n.headers});case 3:return i=t.sent,this._handle_error(e,i),t.abrupt("return",i);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"_handle_error",value:function(e,r){var n=r.error_code;if(0!==n){var o=r.json();if(n>=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new oe(i,o.__type,e)}if(1500===n)throw new oe("An error occured on the server side","InternalServiceError",e)}}}]),p}(c.k),oe=function(t){Xt(r,t);var e=$t(r);function r(t,n,o){var i;return Vt(this,r),ee(Zt(i=e.call(this,t,n)),"operation",void 0),i.name="KinesisServiceError",i.operation=o,i}return Qt(r)}(u.t),ie=function(){function t(e,r,n,o){Vt(this,t),ee(this,"hasMoreStreams",void 0),ee(this,"nextToken",void 0),ee(this,"streamNames",void 0),ee(this,"streamSummaries",void 0),this.hasMoreStreams=e,this.nextToken=r,this.streamNames=n,this.streamSummaries=o}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.HasMoreStreams,n=void 0!==r&&r,o=e.NextToken,i=void 0===o?"":o,a=e.StreamNames,c=void 0===a?[]:a,u=e.StreamSummaries,s=void 0===u?[]:u;return new t(n,i,c,null==s?void 0:s.map(ae.fromJson))}}]),t}(),ae=function(){function t(e,r,n,o,i){Vt(this,t),ee(this,"streamARN",void 0),ee(this,"streamCreationTimestamp",void 0),ee(this,"streamModeDetails",void 0),ee(this,"streamName",void 0),ee(this,"streamStatus",void 0),this.streamARN=e,this.streamCreationTimestamp=r,this.streamModeDetails=n,this.streamName=o,this.streamStatus=i}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.StreamARN,n=void 0===r?"":r,o=e.StreamCreationTimestamp,i=void 0===o?0:o,a=e.StreamModeDetails,c=void 0===a?{}:a,u=e.StreamName,s=void 0===u?"":u,f=e.StreamStatus;return new t(n,i,c,s,void 0===f?"":f)}}]),t}(),ce=function(){function t(e,r,n){Vt(this,t),ee(this,"encryptionType",void 0),ee(this,"failedRecordCount",void 0),ee(this,"records",void 0),this.encryptionType=e,this.failedRecordCount=r,this.records=n}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.EncryptionType,n=void 0===r?"NONE":r,o=e.FailedRecordCount,i=void 0===o?0:o,a=e.Records;return new t(n,i,(void 0===a?[]:a).map(ue.fromJson))}}]),t}(),ue=function(){function t(e,r){Vt(this,t),ee(this,"sequenceNumber",void 0),ee(this,"shardId",void 0),this.sequenceNumber=e,this.shardId=r}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.SequenceNumber,e.ShardId)}}]),t}(),se=function(){function t(e,r,n){Vt(this,t),ee(this,"nextShardIterator",void 0),ee(this,"records",void 0),ee(this,"millisBehindLatest",void 0),this.nextShardIterator=e,this.records=r,this.millisBehindLatest=n}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.NextShardIterator,n=void 0===r?"":r,o=e.Records,i=void 0===o?[]:o,a=e.MillisBehindLatest,c=void 0===a?0:a;return new t(n,i.map(fe.fromJson),c)}}]),t}(),fe=function(){function t(e,r,n){Vt(this,t),ee(this,"data",void 0),ee(this,"partitionKey",void 0),ee(this,"sequenceNumber",void 0),this.data=e,this.partitionKey=r,this.sequenceNumber=n}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.Data,e.PartitionKey,e.SequenceNumber)}}]),t}(),le=function(){function t(e,r){Vt(this,t),ee(this,"shards",void 0),ee(this,"nextToken",void 0),this.shards=e,this.nextToken=r}return Qt(t,null,[{key:"fromJson",value:function(e){var r=e.Shards,n=void 0===r?[]:r,o=e.NextToken;return new t(n.map(he.fromJson),o)}}]),t}(),he=function(){function t(e,r,n,o,i){Vt(this,t),ee(this,"id",void 0),ee(this,"parentShardId",void 0),ee(this,"adjacentParentShardId",void 0),ee(this,"hashKeyRange",void 0),ee(this,"sequenceNumberRange",void 0),this.id=e,this.parentShardId=o,this.adjacentParentShardId=i,this.hashKeyRange=r,this.sequenceNumberRange=n}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.ShardId,e.HashKeyRange,e.SequenceNumberRange,e.ParentShardId,e.AdjacentParentShardId)}}]),t}(),pe=function(){function t(e){Vt(this,t),ee(this,"shardIterator",void 0),this.shardIterator=e}return Qt(t,null,[{key:"fromJson",value:function(e){return new t(e.ShardIterator)}}]),t}();function ye(t){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ye(t)}function de(){de=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(N([])));S&&S!==r&&n.call(S,a)&&(w=S);var j=g.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==ye(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function ve(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function me(t){for(var e=1;e=1400&&n<=1499){var i=o.Message||o.message||o.__type;if("InvalidSignatureException"===o.__type)throw new t.w(i,o.__type);throw new Ne(i,o.__type,e)}if(1500===n)throw new Ne("An error occured on the server side","InternalServiceError",e)}}}]),c}(c.k),Te=function(t){return t.PutEvents="PutEvents",t}(Te||{}),Ne=function(t){Se(r,t);var e=_e(r);function r(t,n,o){var i;return ge(this,r),Pe(xe(i=e.call(this,t,n)),"operation",void 0),i.name="EventBridgeServiceError",i.operation=o,i}return Oe(r)}(u.t),Ce=r(890)})();var o=exports;for(var i in n)o[i]=n[i];n.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})(); //# sourceMappingURL=aws.js.map \ No newline at end of file